Interface CustomerSetStoresAction
- All Superinterfaces:
CustomerUpdateAction,ResourceUpdateAction<CustomerUpdateAction>
Sets the Stores the Customer account is associated with. If no Stores are specified, the Customer becomes a global Customer.
This action generates the CustomerStoresSet Message.
Example to create an instance using the builder pattern
CustomerSetStoresAction customerSetStoresAction = CustomerSetStoresAction.builder()
.plusStores(storesBuilder -> storesBuilder)
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CustomerSetStoresAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CustomerSetStoresActionbuilder(CustomerSetStoresAction template) create builder for CustomerSetStoresAction instancecopyDeep()static CustomerSetStoresActiondeepCopy(CustomerSetStoresAction template) factory method to create a deep copy of CustomerSetStoresAction@NotNull @Valid List<StoreResourceIdentifier>ResourceIdentifier of the Stores to set.static CustomerSetStoresActionof()factory methodstatic CustomerSetStoresActionof(CustomerSetStoresAction template) factory method to create a shallow copy CustomerSetStoresActionvoidsetStores(StoreResourceIdentifier... stores) ResourceIdentifier of the Stores to set.voidsetStores(List<StoreResourceIdentifier> stores) ResourceIdentifier of the Stores to set.static com.fasterxml.jackson.core.type.TypeReference<CustomerSetStoresAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.customer.CustomerUpdateAction
getAction, withCustomerUpdateActionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Field Details
-
SET_STORES
discriminator value for CustomerSetStoresAction- See Also:
-
-
Method Details
-
getStores
ResourceIdentifier of the Stores to set.
- Returns:
- stores
-
setStores
ResourceIdentifier of the Stores to set.
- Parameters:
stores- values to be set
-
setStores
ResourceIdentifier of the Stores to set.
- Parameters:
stores- values to be set
-
of
factory method- Returns:
- instance of CustomerSetStoresAction
-
of
factory method to create a shallow copy CustomerSetStoresAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
CustomerSetStoresAction copyDeep()- Specified by:
copyDeepin interfaceCustomerUpdateAction
-
deepCopy
factory method to create a deep copy of CustomerSetStoresAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CustomerSetStoresAction- Returns:
- builder
-
builder
create builder for CustomerSetStoresAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withCustomerSetStoresAction
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
-