Interface CustomerAddBillingAddressIdAction
- All Superinterfaces:
CustomerUpdateAction,ResourceUpdateAction<CustomerUpdateAction>
Adds an Address from the addresses array to billingAddressIds. Either addressId or addressKey is required.
Example to create an instance using the builder pattern
CustomerAddBillingAddressIdAction customerAddBillingAddressIdAction = CustomerAddBillingAddressIdAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerAddBillingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerAddBillingAddressIdActionbuilder(CustomerAddBillingAddressIdAction template) create builder for CustomerAddBillingAddressIdAction instancecopyDeep()deepCopy(CustomerAddBillingAddressIdAction template) factory method to create a deep copy of CustomerAddBillingAddressIdActionidof the Address to become a billing address.keyof the Address to become a billing address.of()factory methodof(CustomerAddBillingAddressIdAction template) factory method to create a shallow copy CustomerAddBillingAddressIdActionvoidsetAddressId(String addressId) idof the Address to become a billing address.voidsetAddressKey(String addressKey) keyof the Address to become a billing address.static com.fasterxml.jackson.core.type.TypeReference<CustomerAddBillingAddressIdAction>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
-
ADD_BILLING_ADDRESS_ID
discriminator value for CustomerAddBillingAddressIdAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()idof the Address to become a billing address.- Returns:
- addressId
-
getAddressKey
String getAddressKey()keyof the Address to become a billing address.- Returns:
- addressKey
-
setAddressId
idof the Address to become a billing address.- Parameters:
addressId- value to be set
-
setAddressKey
keyof the Address to become a billing address.- Parameters:
addressKey- value to be set
-
of
factory method- Returns:
- instance of CustomerAddBillingAddressIdAction
-
of
factory method to create a shallow copy CustomerAddBillingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerAddBillingAddressIdAction copyDeep()- Specified by:
copyDeepin interfaceCustomerUpdateAction
-
deepCopy
@Nullable static CustomerAddBillingAddressIdAction deepCopy(@Nullable CustomerAddBillingAddressIdAction template) factory method to create a deep copy of CustomerAddBillingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerAddBillingAddressIdAction- Returns:
- builder
-
builder
create builder for CustomerAddBillingAddressIdAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerAddBillingAddressIdAction
default <T> T withCustomerAddBillingAddressIdAction(Function<CustomerAddBillingAddressIdAction, 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<CustomerAddBillingAddressIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-