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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartDiscountStoresSetMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartDiscountStoresSetMessagePayloadbuilder(CartDiscountStoresSetMessagePayload template) create builder for CartDiscountStoresSetMessagePayload instancecopyDeep()deepCopy(CartDiscountStoresSetMessagePayload template) factory method to create a deep copy of CartDiscountStoresSetMessagePayload@NotNull @Valid List<StoreKeyReference>of()factory methodof(CartDiscountStoresSetMessagePayload template) factory method to create a shallow copy CartDiscountStoresSetMessagePayloadvoidsetStores(StoreKeyReference... stores) voidsetStores(List<StoreKeyReference> stores) static com.fasterxml.jackson.core.type.TypeReference<CartDiscountStoresSetMessagePayload>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods 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
-
copyDeep
CartDiscountStoresSetMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload
-
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
-