Interface OrderCustomLineItemAddedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Add CustomLineItem update action.
Example to create an instance using the builder pattern
OrderCustomLineItemAddedMessagePayload orderCustomLineItemAddedMessagePayload = OrderCustomLineItemAddedMessagePayload.builder()
.customLineItem(customLineItemBuilder -> customLineItemBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderCustomLineItemAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderCustomLineItemAddedMessagePayloadcreate builder for OrderCustomLineItemAddedMessagePayload instancefactory method to create a deep copy of OrderCustomLineItemAddedMessagePayload@NotNull @Valid CustomLineItem
Custom Line Item that was added to the Order.of()
factory methodof
(OrderCustomLineItemAddedMessagePayload template) factory method to create a shallow copy OrderCustomLineItemAddedMessagePayloadvoid
setCustomLineItem
(CustomLineItem customLineItem) Custom Line Item that was added to the Order.static com.fasterxml.jackson.core.type.TypeReference<OrderCustomLineItemAddedMessagePayload>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withOrderCustomLineItemAddedMessagePayload
(Function<OrderCustomLineItemAddedMessagePayload, 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_CUSTOM_LINE_ITEM_ADDED
discriminator value for OrderCustomLineItemAddedMessagePayload- See Also:
-
-
Method Details
-
getCustomLineItem
Custom Line Item that was added to the Order.
- Returns:
- customLineItem
-
setCustomLineItem
Custom Line Item that was added to the Order.
- Parameters:
customLineItem
- value to be set
-
of
factory method- Returns:
- instance of OrderCustomLineItemAddedMessagePayload
-
of
factory method to create a shallow copy OrderCustomLineItemAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderCustomLineItemAddedMessagePayload deepCopy(@Nullable OrderCustomLineItemAddedMessagePayload template) factory method to create a deep copy of OrderCustomLineItemAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderCustomLineItemAddedMessagePayload- Returns:
- builder
-
builder
static OrderCustomLineItemAddedMessagePayloadBuilder builder(OrderCustomLineItemAddedMessagePayload template) create builder for OrderCustomLineItemAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderCustomLineItemAddedMessagePayload
default <T> T withOrderCustomLineItemAddedMessagePayload(Function<OrderCustomLineItemAddedMessagePayload, 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<OrderCustomLineItemAddedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-