Interface CustomerRemoveBillingAddressIdAction
- All Superinterfaces:
CustomerUpdateAction,ResourceUpdateAction<CustomerUpdateAction>
Removes a billing address from billingAddressesIds. If the billing address is the default billing address, the defaultBillingAddressId is unset. Either addressId or addressKey is required.
Example to create an instance using the builder pattern
CustomerRemoveBillingAddressIdAction customerRemoveBillingAddressIdAction = CustomerRemoveBillingAddressIdAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerRemoveBillingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerRemoveBillingAddressIdActionbuilder(CustomerRemoveBillingAddressIdAction template) create builder for CustomerRemoveBillingAddressIdAction instancecopyDeep()deepCopy(CustomerRemoveBillingAddressIdAction template) factory method to create a deep copy of CustomerRemoveBillingAddressIdActionof()factory methodof(CustomerRemoveBillingAddressIdAction template) factory method to create a shallow copy CustomerRemoveBillingAddressIdActionvoidsetAddressId(String addressId) voidsetAddressKey(String addressKey) static com.fasterxml.jackson.core.type.TypeReference<CustomerRemoveBillingAddressIdAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_BILLING_ADDRESS_ID
discriminator value for CustomerRemoveBillingAddressIdAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()idof the Address to remove frombillingAddressesIds.- Returns:
- addressId
-
getAddressKey
String getAddressKey()keyof the Address to remove frombillingAddressesIds.- Returns:
- addressKey
-
setAddressId
idof the Address to remove frombillingAddressesIds.- Parameters:
addressId- value to be set
-
setAddressKey
keyof the Address to remove frombillingAddressesIds.- Parameters:
addressKey- value to be set
-
of
factory method- Returns:
- instance of CustomerRemoveBillingAddressIdAction
-
of
factory method to create a shallow copy CustomerRemoveBillingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerRemoveBillingAddressIdAction copyDeep()- Specified by:
copyDeepin interfaceCustomerUpdateAction
-
deepCopy
@Nullable static CustomerRemoveBillingAddressIdAction deepCopy(@Nullable CustomerRemoveBillingAddressIdAction template) factory method to create a deep copy of CustomerRemoveBillingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerRemoveBillingAddressIdAction- Returns:
- builder
-
builder
static CustomerRemoveBillingAddressIdActionBuilder builder(CustomerRemoveBillingAddressIdAction template) create builder for CustomerRemoveBillingAddressIdAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerRemoveBillingAddressIdAction
default <T> T withCustomerRemoveBillingAddressIdAction(Function<CustomerRemoveBillingAddressIdAction, T> helper) accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<CustomerRemoveBillingAddressIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-