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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderLineItemRemovedMessagePayload -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderLineItemRemovedMessagePayloadbuilder(OrderLineItemRemovedMessagePayload template) create builder for OrderLineItemRemovedMessagePayload instancecopyDeep()deepCopy(OrderLineItemRemovedMessagePayload template) factory method to create a deep copy of OrderLineItemRemovedMessagePayload@NotNull StringUnique identifier of the Line Item.User-defined unique identifier of the LineItem.@Valid Price@NotNull LongLine Item quantity after the Remove LineItem update action.@Valid ItemShippingDetailsItemStates after the Remove LineItem update action.@Valid TaxedItemPrice@NotNull @Valid CentPrecisionMoney@NotNull LongQuantity of Line Items that were removed during the Remove LineItem update action.of()factory methodof(OrderLineItemRemovedMessagePayload template) factory method to create a shallow copy OrderLineItemRemovedMessagePayloadvoidsetLineItemId(String lineItemId) Unique identifier of the Line Item.voidsetLineItemKey(String lineItemKey) User-defined unique identifier of the LineItem.voidsetNewPrice(Price newPrice) voidsetNewQuantity(Long newQuantity) Line Item quantity after the Remove LineItem update action.voidsetNewShippingDetail(ItemShippingDetails newShippingDetail) voidsetNewState(ItemState... newState) ItemStates after the Remove LineItem update action.voidsetNewState(List<ItemState> newState) ItemStates after the Remove LineItem update action.voidsetNewTaxedPrice(TaxedItemPrice newTaxedPrice) voidsetNewTotalPrice(CentPrecisionMoney newTotalPrice) voidsetRemovedQuantity(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> Taccessor map functionMethods inherited from interface com.commercetools.api.models.message.MessagePayload
getType, withMessagePayloadMethods inherited from interface com.commercetools.api.models.message.MessagePayloadMixin
asMethods 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
totalPriceof 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
totalPriceof 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
-
copyDeep
OrderLineItemRemovedMessagePayload copyDeep()- Specified by:
copyDeepin interfaceMessagePayload- Specified by:
copyDeepin interfaceOrderMessagePayload
-
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
-