Interface CartDiscountStoreAddedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Add Store update action.
Example to create an instance using the builder pattern
CartDiscountStoreAddedMessagePayload cartDiscountStoreAddedMessagePayload = CartDiscountStoreAddedMessagePayload.builder()
.store(storeBuilder -> storeBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountStoreAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountStoreAddedMessagePayloadbuilder
(CartDiscountStoreAddedMessagePayload template) create builder for CartDiscountStoreAddedMessagePayload instancedeepCopy
(CartDiscountStoreAddedMessagePayload template) factory method to create a deep copy of CartDiscountStoreAddedMessagePayload@NotNull @Valid StoreKeyReference
getStore()
The Store that was added to the Cart Discount.of()
factory methodof
(CartDiscountStoreAddedMessagePayload template) factory method to create a shallow copy CartDiscountStoreAddedMessagePayloadvoid
setStore
(StoreKeyReference store) The Store that was added to the Cart Discount.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountStoreAddedMessagePayload>
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_STORE_ADDED
discriminator value for CartDiscountStoreAddedMessagePayload- See Also:
-
-
Method Details
-
getStore
The Store that was added to the Cart Discount.
- Returns:
- store
-
setStore
The Store that was added to the Cart Discount.
- Parameters:
store
- value to be set
-
of
factory method- Returns:
- instance of CartDiscountStoreAddedMessagePayload
-
of
factory method to create a shallow copy CartDiscountStoreAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartDiscountStoreAddedMessagePayload deepCopy(@Nullable CartDiscountStoreAddedMessagePayload template) factory method to create a deep copy of CartDiscountStoreAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountStoreAddedMessagePayload- Returns:
- builder
-
builder
static CartDiscountStoreAddedMessagePayloadBuilder builder(CartDiscountStoreAddedMessagePayload template) create builder for CartDiscountStoreAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountStoreAddedMessagePayload
default <T> T withCartDiscountStoreAddedMessagePayload(Function<CartDiscountStoreAddedMessagePayload, 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<CartDiscountStoreAddedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-