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.
Example to create an instance using the builder pattern
CustomerSetStoresAction customerSetStoresAction = CustomerSetStoresAction.builder()
.plusStores(storesBuilder -> storesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CustomerSetStoresAction -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CustomerSetStoresActionbuilder
(CustomerSetStoresAction template) create builder for CustomerSetStoresAction instancestatic CustomerSetStoresAction
deepCopy
(CustomerSetStoresAction template) factory method to create a deep copy of CustomerSetStoresAction@NotNull @Valid List<StoreResourceIdentifier>
ResourceIdentifier of the Stores to set.static CustomerSetStoresAction
of()
factory methodstatic CustomerSetStoresAction
of
(CustomerSetStoresAction template) factory method to create a shallow copy CustomerSetStoresActionvoid
setStores
(StoreResourceIdentifier... stores) ResourceIdentifier of the Stores to set.void
setStores
(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> 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
-
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
-
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
-