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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for OrderLineItemRemovedMessage -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for OrderLineItemRemovedMessagebuilder(OrderLineItemRemovedMessage template) create builder for OrderLineItemRemovedMessage instancecopyDeep()static OrderLineItemRemovedMessagedeepCopy(OrderLineItemRemovedMessage template) factory method to create a deep copy of OrderLineItemRemovedMessage@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.static OrderLineItemRemovedMessageof()factory methodstatic OrderLineItemRemovedMessageof(OrderLineItemRemovedMessage template) factory method to create a shallow copy OrderLineItemRemovedMessagevoidsetLineItemId(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<OrderLineItemRemovedMessage>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.common.BaseResource
withBaseResourceMethods inherited from interface com.commercetools.api.models.DomainResource
getMethods 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, withMessageMethods 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
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 OrderLineItemRemovedMessage
-
of
factory method to create a shallow copy OrderLineItemRemovedMessage- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
OrderLineItemRemovedMessage copyDeep()- Specified by:
copyDeepin interfaceBaseResource- Specified by:
copyDeepin interfaceMessage- Specified by:
copyDeepin interfaceOrderMessage
-
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
-