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