Interface CartDiscountCreatedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
Generated after a successful Create CartDiscount request.
Example to create an instance using the builder pattern
CartDiscountCreatedMessagePayload cartDiscountCreatedMessagePayload = CartDiscountCreatedMessagePayload.builder()
.cartDiscount(cartDiscountBuilder -> cartDiscountBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountCreatedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountCreatedMessagePayloadbuilder
(CartDiscountCreatedMessagePayload template) create builder for CartDiscountCreatedMessagePayload instancedeepCopy
(CartDiscountCreatedMessagePayload template) factory method to create a deep copy of CartDiscountCreatedMessagePayload@NotNull @Valid CartDiscount
The Cart Discount that was created.of()
factory methodof
(CartDiscountCreatedMessagePayload template) factory method to create a shallow copy CartDiscountCreatedMessagePayloadvoid
setCartDiscount
(CartDiscount cartDiscount) The Cart Discount that was created.static com.fasterxml.jackson.core.type.TypeReference<CartDiscountCreatedMessagePayload>
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_CREATED
discriminator value for CartDiscountCreatedMessagePayload- See Also:
-
-
Method Details
-
getCartDiscount
The Cart Discount that was created.
- Returns:
- cartDiscount
-
setCartDiscount
The Cart Discount that was created.
- Parameters:
cartDiscount
- value to be set
-
of
factory method- Returns:
- instance of CartDiscountCreatedMessagePayload
-
of
factory method to create a shallow copy CartDiscountCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartDiscountCreatedMessagePayload deepCopy(@Nullable CartDiscountCreatedMessagePayload template) factory method to create a deep copy of CartDiscountCreatedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountCreatedMessagePayload- Returns:
- builder
-
builder
create builder for CartDiscountCreatedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountCreatedMessagePayload
default <T> T withCartDiscountCreatedMessagePayload(Function<CartDiscountCreatedMessagePayload, 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<CartDiscountCreatedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-