Interface OrderLineItemRemovedMessagePayload
- All Superinterfaces:
MessagePayload
,MessagePayloadMixin
,OrderMessagePayload
Generated after a successful Remove LineItem update action.
Example to create an instance using the builder pattern
OrderLineItemRemovedMessagePayload orderLineItemRemovedMessagePayload = OrderLineItemRemovedMessagePayload.builder()
.lineItemId("{lineItemId}")
.removedQuantity(0.3)
.newQuantity(0.3)
.plusNewState(newStateBuilder -> newStateBuilder)
.newTotalPrice(newTotalPriceBuilder -> newTotalPriceBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for OrderLineItemRemovedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderLineItemRemovedMessagePayloadbuilder
(OrderLineItemRemovedMessagePayload template) create builder for OrderLineItemRemovedMessagePayload instancedeepCopy
(OrderLineItemRemovedMessagePayload template) factory method to create a deep copy of OrderLineItemRemovedMessagePayload@NotNull String
Unique identifier of the Line Item.User-defined unique identifier of the LineItem.@Valid Price
Price of the Order after the Remove LineItem update action.@NotNull Long
Line Item quantity after the Remove LineItem update action.@Valid ItemShippingDetails
Shipping Details of the Order after the Remove LineItem update action.ItemStates after the Remove LineItem update action.@Valid TaxedItemPrice
TaxedItemPrice of the Order after the Remove LineItem update action.@NotNull @Valid CentPrecisionMoney
totalPrice
of the Order after the Remove LineItem update action.@NotNull Long
Quantity of Line Items that were removed during the Remove LineItem update action.of()
factory methodof
(OrderLineItemRemovedMessagePayload template) factory method to create a shallow copy OrderLineItemRemovedMessagePayloadvoid
setLineItemId
(String lineItemId) Unique identifier of the Line Item.void
setLineItemKey
(String lineItemKey) User-defined unique identifier of the LineItem.void
setNewPrice
(Price newPrice) Price of the Order after the Remove LineItem update action.void
setNewQuantity
(Long newQuantity) Line Item quantity after the Remove LineItem update action.void
setNewShippingDetail
(ItemShippingDetails newShippingDetail) Shipping Details of the Order after the Remove LineItem update action.void
setNewState
(ItemState... newState) ItemStates after the Remove LineItem update action.void
setNewState
(List<ItemState> newState) ItemStates after the Remove LineItem update action.void
setNewTaxedPrice
(TaxedItemPrice newTaxedPrice) TaxedItemPrice of the Order after the Remove LineItem update action.void
setNewTotalPrice
(CentPrecisionMoney newTotalPrice) totalPrice
of the Order after the Remove LineItem update action.void
setRemovedQuantity
(Long removedQuantity) Quantity of Line Items that were removed during the Remove LineItem update action.static com.fasterxml.jackson.core.type.TypeReference<OrderLineItemRemovedMessagePayload>
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_REMOVED
discriminator value for OrderLineItemRemovedMessagePayload- See Also:
-
-
Method Details
-
getLineItemId
Unique identifier of the Line Item.
- Returns:
- lineItemId
-
getLineItemKey
String getLineItemKey()User-defined unique identifier of the LineItem.
- Returns:
- lineItemKey
-
getRemovedQuantity
Quantity of Line Items that were removed during the Remove LineItem update action.
- Returns:
- removedQuantity
-
getNewQuantity
Line Item quantity after the Remove LineItem update action.
- Returns:
- newQuantity
-
getNewState
ItemStates after the Remove LineItem update action.
- Returns:
- newState
-
getNewTotalPrice
totalPrice
of the Order after the Remove LineItem update action.- Returns:
- newTotalPrice
-
getNewTaxedPrice
TaxedItemPrice of the Order after the Remove LineItem update action.
- Returns:
- newTaxedPrice
-
getNewPrice
Price of the Order after the Remove LineItem update action.
- Returns:
- newPrice
-
getNewShippingDetail
Shipping Details of the Order after the Remove LineItem update action.
- Returns:
- newShippingDetail
-
setLineItemId
Unique identifier of the Line Item.
- Parameters:
lineItemId
- value to be set
-
setLineItemKey
User-defined unique identifier of the LineItem.
- Parameters:
lineItemKey
- value to be set
-
setRemovedQuantity
Quantity of Line Items that were removed during the Remove LineItem update action.
- Parameters:
removedQuantity
- value to be set
-
setNewQuantity
Line Item quantity after the Remove LineItem update action.
- Parameters:
newQuantity
- value to be set
-
setNewState
ItemStates after the Remove LineItem update action.
- Parameters:
newState
- values to be set
-
setNewState
ItemStates after the Remove LineItem update action.
- Parameters:
newState
- values to be set
-
setNewTotalPrice
totalPrice
of the Order after the Remove LineItem update action.- Parameters:
newTotalPrice
- value to be set
-
setNewTaxedPrice
TaxedItemPrice of the Order after the Remove LineItem update action.
- Parameters:
newTaxedPrice
- value to be set
-
setNewPrice
Price of the Order after the Remove LineItem update action.
- Parameters:
newPrice
- value to be set
-
setNewShippingDetail
Shipping Details of the Order after the Remove LineItem update action.
- Parameters:
newShippingDetail
- value to be set
-
of
factory method- Returns:
- instance of OrderLineItemRemovedMessagePayload
-
of
factory method to create a shallow copy OrderLineItemRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderLineItemRemovedMessagePayload deepCopy(@Nullable OrderLineItemRemovedMessagePayload template) factory method to create a deep copy of OrderLineItemRemovedMessagePayload- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderLineItemRemovedMessagePayload- Returns:
- builder
-
builder
static OrderLineItemRemovedMessagePayloadBuilder builder(OrderLineItemRemovedMessagePayload template) create builder for OrderLineItemRemovedMessagePayload instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderLineItemRemovedMessagePayload
default <T> T withOrderLineItemRemovedMessagePayload(Function<OrderLineItemRemovedMessagePayload, 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<OrderLineItemRemovedMessagePayload> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-