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
Modifier and TypeFieldDescriptionstatic final String
discriminator value for MyCustomerAddBillingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for MyCustomerAddBillingAddressIdActionbuilder
(MyCustomerAddBillingAddressIdAction template) create builder for MyCustomerAddBillingAddressIdAction instancedeepCopy
(MyCustomerAddBillingAddressIdAction template) factory method to create a deep copy of MyCustomerAddBillingAddressIdActionid
of the Address to become a billing address.key
of the Address to become a billing address.of()
factory methodof
(MyCustomerAddBillingAddressIdAction template) factory method to create a shallow copy MyCustomerAddBillingAddressIdActionvoid
setAddressId
(String addressId) id
of the Address to become a billing address.void
setAddressKey
(String addressKey) key
of the Address to become a billing address.static com.fasterxml.jackson.core.type.TypeReference<MyCustomerAddBillingAddressIdAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCustomerUpdateAction
getAction, withMyCustomerUpdateAction
Methods 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()id
of the Address to become a billing address.- Returns:
- addressId
-
getAddressKey
String getAddressKey()key
of the Address to become a billing address.- Returns:
- addressKey
-
setAddressId
id
of the Address to become a billing address.- Parameters:
addressId
- value to be set
-
setAddressKey
key
of 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
-
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
-