Package com.commercetools.api.models.me
Interface MyCustomerAddBillingAddressIdAction
- All Superinterfaces:
MyCustomerUpdateAction,ResourceUpdateAction<MyCustomerUpdateAction>
Adds an address from the addresses array to billingAddressIds. Either addressId or addressKey is required.
Example to create an instance using the builder pattern
MyCustomerAddBillingAddressIdAction myCustomerAddBillingAddressIdAction = MyCustomerAddBillingAddressIdAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCustomerAddBillingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCustomerAddBillingAddressIdActionbuilder(MyCustomerAddBillingAddressIdAction template) create builder for MyCustomerAddBillingAddressIdAction instancecopyDeep()deepCopy(MyCustomerAddBillingAddressIdAction template) factory method to create a deep copy of MyCustomerAddBillingAddressIdActionidof the Address to become a billing address.keyof the Address to become a billing address.of()factory methodof(MyCustomerAddBillingAddressIdAction template) factory method to create a shallow copy MyCustomerAddBillingAddressIdActionvoidsetAddressId(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<MyCustomerAddBillingAddressIdAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCustomerUpdateAction
getAction, withMyCustomerUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
ADD_BILLING_ADDRESS_ID
discriminator value for MyCustomerAddBillingAddressIdAction- 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 MyCustomerAddBillingAddressIdAction
-
of
factory method to create a shallow copy MyCustomerAddBillingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCustomerAddBillingAddressIdAction copyDeep()- Specified by:
copyDeepin interfaceMyCustomerUpdateAction
-
deepCopy
@Nullable static MyCustomerAddBillingAddressIdAction deepCopy(@Nullable MyCustomerAddBillingAddressIdAction template) factory method to create a deep copy of MyCustomerAddBillingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerAddBillingAddressIdAction- Returns:
- builder
-
builder
static MyCustomerAddBillingAddressIdActionBuilder builder(MyCustomerAddBillingAddressIdAction template) create builder for MyCustomerAddBillingAddressIdAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerAddBillingAddressIdAction
default <T> T withMyCustomerAddBillingAddressIdAction(Function<MyCustomerAddBillingAddressIdAction, 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<MyCustomerAddBillingAddressIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-