Interface OrderLineItemRemovedMessage

All Superinterfaces:
BaseResource, DomainResource<Message>, Identifiable<Message>, Message, OrderMessage, Versioned<Message>

public interface OrderLineItemRemovedMessage extends OrderMessage

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 Details

    • ORDER_LINE_ITEM_REMOVED

      static final String ORDER_LINE_ITEM_REMOVED
      discriminator value for OrderLineItemRemovedMessage
      See Also:
  • Method Details

    • getLineItemId

      @NotNull @NotNull String getLineItemId()

      Unique identifier of the Line Item.

      Returns:
      lineItemId
    • getLineItemKey

      String getLineItemKey()

      User-defined unique identifier of the LineItem.

      Returns:
      lineItemKey
    • getRemovedQuantity

      @NotNull @NotNull Long getRemovedQuantity()

      Quantity of Line Items that were removed during the Remove LineItem update action.

      Returns:
      removedQuantity
    • getNewQuantity

      @NotNull @NotNull Long getNewQuantity()

      Line Item quantity after the Remove LineItem update action.

      Returns:
      newQuantity
    • getNewState

      @NotNull @Valid @NotNull @Valid List<ItemState> getNewState()

      ItemStates after the Remove LineItem update action.

      Returns:
      newState
    • getNewTotalPrice

      @NotNull @Valid @NotNull @Valid CentPrecisionMoney getNewTotalPrice()

      totalPrice of the Order after the Remove LineItem update action.

      Returns:
      newTotalPrice
    • getNewTaxedPrice

      @Valid @Valid TaxedItemPrice getNewTaxedPrice()

      TaxedItemPrice of the Order after the Remove LineItem update action.

      Returns:
      newTaxedPrice
    • getNewPrice

      @Valid @Valid Price getNewPrice()

      Price of the Order after the Remove LineItem update action.

      Returns:
      newPrice
    • getNewShippingDetail

      @Valid @Valid ItemShippingDetails getNewShippingDetail()

      Shipping Details of the Order after the Remove LineItem update action.

      Returns:
      newShippingDetail
    • setLineItemId

      void setLineItemId(String lineItemId)

      Unique identifier of the Line Item.

      Parameters:
      lineItemId - value to be set
    • setLineItemKey

      void setLineItemKey(String lineItemKey)

      User-defined unique identifier of the LineItem.

      Parameters:
      lineItemKey - value to be set
    • setRemovedQuantity

      void setRemovedQuantity(Long removedQuantity)

      Quantity of Line Items that were removed during the Remove LineItem update action.

      Parameters:
      removedQuantity - value to be set
    • setNewQuantity

      void setNewQuantity(Long newQuantity)

      Line Item quantity after the Remove LineItem update action.

      Parameters:
      newQuantity - value to be set
    • setNewState

      void setNewState(ItemState... newState)

      ItemStates after the Remove LineItem update action.

      Parameters:
      newState - values to be set
    • setNewState

      void setNewState(List<ItemState> newState)

      ItemStates after the Remove LineItem update action.

      Parameters:
      newState - values to be set
    • setNewTotalPrice

      void setNewTotalPrice(CentPrecisionMoney newTotalPrice)

      totalPrice of the Order after the Remove LineItem update action.

      Parameters:
      newTotalPrice - value to be set
    • setNewTaxedPrice

      void setNewTaxedPrice(TaxedItemPrice newTaxedPrice)

      TaxedItemPrice of the Order after the Remove LineItem update action.

      Parameters:
      newTaxedPrice - value to be set
    • setNewPrice

      void setNewPrice(Price newPrice)

      Price of the Order after the Remove LineItem update action.

      Parameters:
      newPrice - value to be set
    • setNewShippingDetail

      void setNewShippingDetail(ItemShippingDetails newShippingDetail)

      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

      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

      default <T> T withOrderLineItemRemovedMessage(Function<OrderLineItemRemovedMessage,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<OrderLineItemRemovedMessage> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference