Interface CustomerSetDefaultBillingAddressAction
- All Superinterfaces:
CustomerUpdateAction,ResourceUpdateAction<CustomerUpdateAction>
Sets the default billing address from addresses. The action adds the id of the specified Address to the billingAddressIds if not contained already. Either addressId or addressKey is required.
This action generates the CustomerDefaultBillingAddressSet Message.
Example to create an instance using the builder pattern
CustomerSetDefaultBillingAddressAction customerSetDefaultBillingAddressAction = CustomerSetDefaultBillingAddressAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerSetDefaultBillingAddressAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerSetDefaultBillingAddressActioncreate builder for CustomerSetDefaultBillingAddressAction instancecopyDeep()factory method to create a deep copy of CustomerSetDefaultBillingAddressActionidof the Address to become the default billing address.keyof the Address to become the default billing address.of()factory methodof(CustomerSetDefaultBillingAddressAction template) factory method to create a shallow copy CustomerSetDefaultBillingAddressActionvoidsetAddressId(String addressId) idof the Address to become the default billing address.voidsetAddressKey(String addressKey) keyof the Address to become the default billing address.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetDefaultBillingAddressAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithCustomerSetDefaultBillingAddressAction(Function<CustomerSetDefaultBillingAddressAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_DEFAULT_BILLING_ADDRESS
discriminator value for CustomerSetDefaultBillingAddressAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()idof the Address to become the default billing address.- Returns:
- addressId
-
getAddressKey
String getAddressKey()keyof the Address to become the default billing address.- Returns:
- addressKey
-
setAddressId
idof the Address to become the default billing address.- Parameters:
addressId- value to be set
-
setAddressKey
keyof the Address to become the default billing address.- Parameters:
addressKey- value to be set
-
of
factory method- Returns:
- instance of CustomerSetDefaultBillingAddressAction
-
of
factory method to create a shallow copy CustomerSetDefaultBillingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerSetDefaultBillingAddressAction copyDeep()- Specified by:
copyDeepin interfaceCustomerUpdateAction
-
deepCopy
@Nullable static CustomerSetDefaultBillingAddressAction deepCopy(@Nullable CustomerSetDefaultBillingAddressAction template) factory method to create a deep copy of CustomerSetDefaultBillingAddressAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSetDefaultBillingAddressAction- Returns:
- builder
-
builder
static CustomerSetDefaultBillingAddressActionBuilder builder(CustomerSetDefaultBillingAddressAction template) create builder for CustomerSetDefaultBillingAddressAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSetDefaultBillingAddressAction
default <T> T withCustomerSetDefaultBillingAddressAction(Function<CustomerSetDefaultBillingAddressAction, 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<CustomerSetDefaultBillingAddressAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-