Class OrderCancelEntry

java.lang.Object
de.hybris.platform.ordercancel.OrderCancelEntry

public class OrderCancelEntry extends Object
Represents a cancel entry in an Order Cancel Request or Order Cancel Response. A single cancel entry refers to an OrderEntry and has a cancelQuantity value. cancelQuantity value must be greater than zero and less than or equal to OrderEntry.getQuantity(). if cancelQuantity value is equal to the OrderEntry quantity, the OrderEntry is subject to complete cancel operation, , otherwise it is subject to partial cancel. In case of Order Cancel Request the cancelQuantity value means how many items should be canceled from the actual OrderEntry. In case of Order Cancel Response the cancelQuantity value means how many items were successfully canceled from the actual OrderEntry.
  • Constructor Details

    • OrderCancelEntry

      public OrderCancelEntry(AbstractOrderEntryModel orderEntry)
      Creates an entry that represents cancellation of the whole Order Entry
      Parameters:
      orderEntry -
    • OrderCancelEntry

      public OrderCancelEntry(AbstractOrderEntryModel orderEntry, long cancelQuantity)
      Creates an entry that represents cancellation of a part of the Order Entry (i.e. reducing Order Entry quantity). Reducing Order Entry quantity to zero is the same as canceling it completely.
      Parameters:
      orderEntry -
    • OrderCancelEntry

      public OrderCancelEntry(AbstractOrderEntryModel orderEntry, long cancelQuantity, String notes)
      Creates an entry that represents cancellation of a part of the Order Entry (i.e. reducing Order Entry quantity). Reducing Order Entry quantity to zero is the same as canceling it completely.
      Parameters:
      orderEntry - - order entry
      cancelQuantity - - how much of the entry's quantity should be cancelled
      notes - - additional notes (I.E from CSAdmin)
    • OrderCancelEntry

      public OrderCancelEntry(AbstractOrderEntryModel orderEntry, String notes, CancelReason cancelReason)
      Creates an entry that represents cancellation of a part of the Order Entry completely.
      Parameters:
      orderEntry - - order entry
      cancelReason - - reason of this order entry cancellation
      notes - - additional notes (I.E from CSAdmin)
    • OrderCancelEntry

      public OrderCancelEntry(AbstractOrderEntryModel orderEntry, long cancelQuantity, String notes, CancelReason cancelReason)
  • Method Details

    • getOrderEntry

      public AbstractOrderEntryModel getOrderEntry()
      Returns:
      the orderEntry
    • getCancelQuantity

      public long getCancelQuantity()
      Returns:
      the cancelQuantity
    • getNotes

      public String getNotes()
      Returns:
      the notes
    • getCancelReason

      public CancelReason getCancelReason()
      Returns:
      the cancelReason
    • setCancelReason

      public void setCancelReason(CancelReason cancelReason)
      Parameters:
      cancelReason - the cancelReason to set