Interface OrderLineItemRemovedMessage
- All Superinterfaces:
BaseResource
,DomainResource<Message>
,Identifiable<Message>
,Message
,OrderMessage
,Versioned<Message>
Generated after a successful Remove LineItem update action.
Example to create an instance using the builder pattern
OrderLineItemRemovedMessage orderLineItemRemovedMessage = OrderLineItemRemovedMessage.builder()
.id("{id}")
.version(0.3)
.createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
.sequenceNumber(0.3)
.resource(resourceBuilder -> resourceBuilder)
.resourceVersion(0.3)
.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 OrderLineItemRemovedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for OrderLineItemRemovedMessagebuilder
(OrderLineItemRemovedMessage template) create builder for OrderLineItemRemovedMessage instancestatic OrderLineItemRemovedMessage
deepCopy
(OrderLineItemRemovedMessage template) factory method to create a deep copy of OrderLineItemRemovedMessage@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.static OrderLineItemRemovedMessage
of()
factory methodstatic OrderLineItemRemovedMessage
of
(OrderLineItemRemovedMessage template) factory method to create a shallow copy OrderLineItemRemovedMessagevoid
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<OrderLineItemRemovedMessage>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResource
Methods inherited from interface com.commercetools.api.models.DomainResource
get
Methods inherited from interface com.commercetools.api.models.message.Message
getCreatedAt, getCreatedBy, getId, getLastModifiedAt, getLastModifiedBy, getResource, getResourceUserProvidedIdentifiers, getResourceVersion, getSequenceNumber, getType, getVersion, setCreatedAt, setCreatedBy, setId, setLastModifiedAt, setLastModifiedBy, setResource, setResourceUserProvidedIdentifiers, setResourceVersion, setSequenceNumber, setVersion, withMessage
Methods inherited from interface com.commercetools.api.models.message.OrderMessage
withOrderMessage
-
Field Details
-
ORDER_LINE_ITEM_REMOVED
discriminator value for OrderLineItemRemovedMessage- 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 OrderLineItemRemovedMessage
-
of
factory method to create a shallow copy OrderLineItemRemovedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static OrderLineItemRemovedMessage deepCopy(@Nullable OrderLineItemRemovedMessage template) factory method to create a deep copy of OrderLineItemRemovedMessage- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for OrderLineItemRemovedMessage- Returns:
- builder
-
builder
create builder for OrderLineItemRemovedMessage instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withOrderLineItemRemovedMessage
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-