Interface CustomerRemoveStoreAction
- All Superinterfaces:
CustomerUpdateAction
,ResourceUpdateAction<CustomerUpdateAction>
Removes the association to a Store from the Customer. If no more Stores are assigned, the Customer becomes a global Customer.
Example to create an instance using the builder pattern
CustomerRemoveStoreAction customerRemoveStoreAction = CustomerRemoveStoreAction.builder()
.store(storeBuilder -> storeBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerRemoveStoreAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerRemoveStoreActionbuilder
(CustomerRemoveStoreAction template) create builder for CustomerRemoveStoreAction instancestatic CustomerRemoveStoreAction
deepCopy
(CustomerRemoveStoreAction template) factory method to create a deep copy of CustomerRemoveStoreAction@NotNull @Valid StoreResourceIdentifier
getStore()
ResourceIdentifier of the Store to remove.static CustomerRemoveStoreAction
of()
factory methodstatic CustomerRemoveStoreAction
of
(CustomerRemoveStoreAction template) factory method to create a shallow copy CustomerRemoveStoreActionvoid
setStore
(StoreResourceIdentifier store) ResourceIdentifier of the Store to remove.static com.fasterxml.jackson.core.type.TypeReference<CustomerRemoveStoreAction>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
REMOVE_STORE
discriminator value for CustomerRemoveStoreAction- See Also:
-
-
Method Details
-
getStore
ResourceIdentifier of the Store to remove.
- Returns:
- store
-
setStore
ResourceIdentifier of the Store to remove.
- Parameters:
store
- value to be set
-
of
factory method- Returns:
- instance of CustomerRemoveStoreAction
-
of
factory method to create a shallow copy CustomerRemoveStoreAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CustomerRemoveStoreAction- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerRemoveStoreAction- Returns:
- builder
-
builder
create builder for CustomerRemoveStoreAction instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerRemoveStoreAction
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-