Package com.commercetools.api.models.me
Interface MyCustomerRemoveShippingAddressIdAction
- All Superinterfaces:
MyCustomerUpdateAction,ResourceUpdateAction<MyCustomerUpdateAction>
Removes an existing shipping address from shippingAddressesIds. If the shipping address is the default shipping address, the defaultShippingAddressId is unset. Either addressId or addressKey is required.
Example to create an instance using the builder pattern
MyCustomerRemoveShippingAddressIdAction myCustomerRemoveShippingAddressIdAction = MyCustomerRemoveShippingAddressIdAction.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for MyCustomerRemoveShippingAddressIdAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for MyCustomerRemoveShippingAddressIdActioncreate builder for MyCustomerRemoveShippingAddressIdAction instancecopyDeep()factory method to create a deep copy of MyCustomerRemoveShippingAddressIdActionof()factory methodof(MyCustomerRemoveShippingAddressIdAction template) factory method to create a shallow copy MyCustomerRemoveShippingAddressIdActionvoidsetAddressId(String addressId) voidsetAddressKey(String addressKey) static com.fasterxml.jackson.core.type.TypeReference<MyCustomerRemoveShippingAddressIdAction>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithMyCustomerRemoveShippingAddressIdAction(Function<MyCustomerRemoveShippingAddressIdAction, 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_SHIPPING_ADDRESS_ID
discriminator value for MyCustomerRemoveShippingAddressIdAction- See Also:
-
-
Method Details
-
getAddressId
String getAddressId()idof the Address to remove fromshippingAddressesIds.- Returns:
- addressId
-
getAddressKey
String getAddressKey()keyof the Address to remove fromshippingAddressesIds.- Returns:
- addressKey
-
setAddressId
idof the Address to remove fromshippingAddressesIds.- Parameters:
addressId- value to be set
-
setAddressKey
keyof the Address to remove fromshippingAddressesIds.- Parameters:
addressKey- value to be set
-
of
factory method- Returns:
- instance of MyCustomerRemoveShippingAddressIdAction
-
of
factory method to create a shallow copy MyCustomerRemoveShippingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
MyCustomerRemoveShippingAddressIdAction copyDeep()- Specified by:
copyDeepin interfaceMyCustomerUpdateAction
-
deepCopy
@Nullable static MyCustomerRemoveShippingAddressIdAction deepCopy(@Nullable MyCustomerRemoveShippingAddressIdAction template) factory method to create a deep copy of MyCustomerRemoveShippingAddressIdAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for MyCustomerRemoveShippingAddressIdAction- Returns:
- builder
-
builder
static MyCustomerRemoveShippingAddressIdActionBuilder builder(MyCustomerRemoveShippingAddressIdAction template) create builder for MyCustomerRemoveShippingAddressIdAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withMyCustomerRemoveShippingAddressIdAction
default <T> T withMyCustomerRemoveShippingAddressIdAction(Function<MyCustomerRemoveShippingAddressIdAction, 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<MyCustomerRemoveShippingAddressIdAction> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-