Interface OrderLineItemAddedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Add LineItem update action.
Example to create an instance using the builder pattern
OrderLineItemAddedMessagePayload orderLineItemAddedMessagePayload = OrderLineItemAddedMessagePayload.builder()
.lineItem(lineItemBuilder -> lineItemBuilder)
.addedQuantity(0.3)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderLineItemAddedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderLineItemAddedMessagePayloadbuilder
(OrderLineItemAddedMessagePayload template) create builder for OrderLineItemAddedMessagePayload instancedeepCopy
(OrderLineItemAddedMessagePayload template) factory method to create a deep copy of OrderLineItemAddedMessagePayload@NotNull Long
Quantity of Line Items that were added to the Order.@NotNull @Valid LineItem
Line Item that was added to the Order.of()
factory methodof
(OrderLineItemAddedMessagePayload template) factory method to create a shallow copy OrderLineItemAddedMessagePayloadvoid
setAddedQuantity
(Long addedQuantity) Quantity of Line Items that were added to the Order.void
setLineItem
(LineItem lineItem) Line Item that was added to the Order.static com.fasterxml.jackson.core.type.TypeReference<OrderLineItemAddedMessagePayload>
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
Methods inherited from interface com.commercetools.api.models.message.OrderMessagePayload
withOrderMessagePayload
-
Field Details
-
ORDER_LINE_ITEM_ADDED
discriminator value for OrderLineItemAddedMessagePayload- See Also:
-
-
Method Details
-
getLineItem
Line Item that was added to the Order.
- Returns:
- lineItem
-
getAddedQuantity
Quantity of Line Items that were added to the Order.
- Returns:
- addedQuantity
-
setLineItem
Line Item that was added to the Order.
- Parameters:
lineItem
- value to be set
-
setAddedQuantity
Quantity of Line Items that were added to the Order.
- Parameters:
addedQuantity
- value to be set
-
of
factory method- Returns:
- instance of OrderLineItemAddedMessagePayload
-
of
factory method to create a shallow copy OrderLineItemAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderLineItemAddedMessagePayload deepCopy(@Nullable OrderLineItemAddedMessagePayload template) factory method to create a deep copy of OrderLineItemAddedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderLineItemAddedMessagePayload- Returns:
- builder
-
builder
create builder for OrderLineItemAddedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderLineItemAddedMessagePayload
default <T> T withOrderLineItemAddedMessagePayload(Function<OrderLineItemAddedMessagePayload, 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<OrderLineItemAddedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-