Interface CartDiscountStoresSetMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Set Stores update action.
Example to create an instance using the builder pattern
CartDiscountStoresSetMessagePayload cartDiscountStoresSetMessagePayload = CartDiscountStoresSetMessagePayload.builder()
.plusStores(storesBuilder -> storesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountStoresSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountStoresSetMessagePayloadbuilder
(CartDiscountStoresSetMessagePayload template) create builder for CartDiscountStoresSetMessagePayload instancedeepCopy
(CartDiscountStoresSetMessagePayload template) factory method to create a deep copy of CartDiscountStoresSetMessagePayload@NotNull @Valid List<StoreKeyReference>
Stores of the Cart Discount after the Set Stores update action.of()
factory methodof
(CartDiscountStoresSetMessagePayload template) factory method to create a shallow copy CartDiscountStoresSetMessagePayloadvoid
setStores
(StoreKeyReference... stores) Stores of the Cart Discount after the Set Stores update action.void
setStores
(List<StoreKeyReference> stores) Stores of the Cart Discount after the Set Stores update action.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountStoresSetMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayload
Methods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
as
-
Field Details
-
CART_DISCOUNT_STORES_SET
discriminator value for CartDiscountStoresSetMessagePayload- See Also:
-
-
Method Details
-
getStores
Stores of the Cart Discount after the Set Stores update action.
- Returns:
- stores
-
setStores
Stores of the Cart Discount after the Set Stores update action.
- Parameters:
stores
- values to be set
-
setStores
Stores of the Cart Discount after the Set Stores update action.
- Parameters:
stores
- values to be set
-
of
factory method- Returns:
- instance of CartDiscountStoresSetMessagePayload
-
of
factory method to create a shallow copy CartDiscountStoresSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartDiscountStoresSetMessagePayload deepCopy(@Nullable CartDiscountStoresSetMessagePayload template) factory method to create a deep copy of CartDiscountStoresSetMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountStoresSetMessagePayload- Returns:
- builder
-
builder
static CartDiscountStoresSetMessagePayloadBuilder builder(CartDiscountStoresSetMessagePayload template) create builder for CartDiscountStoresSetMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountStoresSetMessagePayload
default <T> T withCartDiscountStoresSetMessagePayload(Function<CartDiscountStoresSetMessagePayload, 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<CartDiscountStoresSetMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-