Package com.commercetools.api.models.me
Interface MyCustomerRemoveBillingAddressIdAction
- All Superinterfaces:
MyCustomerUpdateAction,ResourceUpdateAction<MyCustomerUpdateAction>
Removes an existing 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
MyCustomerRemoveBillingAddressIdAction myCustomerRemoveBillingAddressIdAction = MyCustomerRemoveBillingAddressIdAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCustomerRemoveBillingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCustomerRemoveBillingAddressIdActioncreate builder for MyCustomerRemoveBillingAddressIdAction instancecopyDeep()factory method to create a deep copy of MyCustomerRemoveBillingAddressIdActionof()factory methodof(MyCustomerRemoveBillingAddressIdAction template) factory method to create a shallow copy MyCustomerRemoveBillingAddressIdActionvoidsetAddressId(String addressId) voidsetAddressKey(String addressKey) static com.fasterxml.jackson.core.type.TypeReference<MyCustomerRemoveBillingAddressIdAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyCustomerRemoveBillingAddressIdAction(Function<MyCustomerRemoveBillingAddressIdAction, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.me.MyCustomerUpdateAction
getAction, withMyCustomerUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_BILLING_ADDRESS_ID
discriminator value for MyCustomerRemoveBillingAddressIdAction- 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 MyCustomerRemoveBillingAddressIdAction
-
of
factory method to create a shallow copy MyCustomerRemoveBillingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCustomerRemoveBillingAddressIdAction copyDeep()- Specified by:
copyDeepin interfaceMyCustomerUpdateAction
-
deepCopy
@Nullable static MyCustomerRemoveBillingAddressIdAction deepCopy(@Nullable MyCustomerRemoveBillingAddressIdAction template) factory method to create a deep copy of MyCustomerRemoveBillingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerRemoveBillingAddressIdAction- Returns:
- builder
-
builder
static MyCustomerRemoveBillingAddressIdActionBuilder builder(MyCustomerRemoveBillingAddressIdAction template) create builder for MyCustomerRemoveBillingAddressIdAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerRemoveBillingAddressIdAction
default <T> T withMyCustomerRemoveBillingAddressIdAction(Function<MyCustomerRemoveBillingAddressIdAction, 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<MyCustomerRemoveBillingAddressIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-