Interface OrderDiscountCodeRemovedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Remove DiscountCode update action.
Example to create an instance using the builder pattern
OrderDiscountCodeRemovedMessagePayload orderDiscountCodeRemovedMessagePayload = OrderDiscountCodeRemovedMessagePayload.builder()
.discountCode(discountCodeBuilder -> discountCodeBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderDiscountCodeRemovedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderDiscountCodeRemovedMessagePayloadcreate builder for OrderDiscountCodeRemovedMessagePayload instancefactory method to create a deep copy of OrderDiscountCodeRemovedMessagePayload@NotNull @Valid DiscountCodeReference
DiscountCode that was removed.of()
factory methodof
(OrderDiscountCodeRemovedMessagePayload template) factory method to create a shallow copy OrderDiscountCodeRemovedMessagePayloadvoid
setDiscountCode
(DiscountCodeReference discountCode) DiscountCode that was removed.static com.fasterxml.jackson.core.type.TypeReference<OrderDiscountCodeRemovedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderDiscountCodeRemovedMessagePayload
(Function<OrderDiscountCodeRemovedMessagePayload, 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
Methods inherited from interface com.commercetools.api.models.message.OrderMessagePayload
withOrderMessagePayload
-
Field Details
-
ORDER_DISCOUNT_CODE_REMOVED
discriminator value for OrderDiscountCodeRemovedMessagePayload- See Also:
-
-
Method Details
-
getDiscountCode
DiscountCode that was removed.
- Returns:
- discountCode
-
setDiscountCode
DiscountCode that was removed.
- Parameters:
discountCode
- value to be set
-
of
factory method- Returns:
- instance of OrderDiscountCodeRemovedMessagePayload
-
of
factory method to create a shallow copy OrderDiscountCodeRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderDiscountCodeRemovedMessagePayload deepCopy(@Nullable OrderDiscountCodeRemovedMessagePayload template) factory method to create a deep copy of OrderDiscountCodeRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderDiscountCodeRemovedMessagePayload- Returns:
- builder
-
builder
static OrderDiscountCodeRemovedMessagePayloadBuilder builder(OrderDiscountCodeRemovedMessagePayload template) create builder for OrderDiscountCodeRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderDiscountCodeRemovedMessagePayload
default <T> T withOrderDiscountCodeRemovedMessagePayload(Function<OrderDiscountCodeRemovedMessagePayload, 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<OrderDiscountCodeRemovedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-