Class ReturnItemImpl

java.lang.Object
com.commercetools.api.models.order.ReturnItemImpl
All Implemented Interfaces:
Customizable<ReturnItem>, ReturnItem, io.vrap.rmf.base.client.ModelBase

public class ReturnItemImpl extends Object implements ReturnItem, io.vrap.rmf.base.client.ModelBase
ReturnItem
  • Constructor Details

    • ReturnItemImpl

      public ReturnItemImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Return Item.

      Specified by:
      getId in interface ReturnItem
      Returns:
      id
    • getKey

      public String getKey()

      User-defined unique identifier of the Return Item.

      Specified by:
      getKey in interface ReturnItem
      Returns:
      key
    • getQuantity

      public Long getQuantity()

      Number of Line Items or Custom Line Items returned.

      Specified by:
      getQuantity in interface ReturnItem
      Returns:
      quantity
    • getType

      public String getType()
      Specified by:
      getType in interface ReturnItem
      Returns:
      type
    • getComment

      public String getComment()

      User-defined description for the return.

      Specified by:
      getComment in interface ReturnItem
      Returns:
      comment
    • getShipmentState

      public ReturnShipmentState getShipmentState()

      Shipment status of the Return Item.

      Specified by:
      getShipmentState in interface ReturnItem
      Returns:
      shipmentState
    • getPaymentState

      public ReturnPaymentState getPaymentState()

      Payment status of the Return Item:

      • NonRefundable, for items in the Advised ReturnShipmentState
      • Initial, for items in the Returned ReturnShipmentState
      Specified by:
      getPaymentState in interface ReturnItem
      Returns:
      paymentState
    • getCustom

      public CustomFields getCustom()

      Custom Fields of the Return Item.

      Specified by:
      getCustom in interface Customizable<ReturnItem>
      Specified by:
      getCustom in interface ReturnItem
      Returns:
      custom
    • getLastModifiedAt

      public ZonedDateTime getLastModifiedAt()

      Date and time (UTC) the Return Item was last updated.

      Specified by:
      getLastModifiedAt in interface ReturnItem
      Returns:
      lastModifiedAt
    • getCreatedAt

      public ZonedDateTime getCreatedAt()

      Date and time (UTC) the Return Item was intitially created.

      Specified by:
      getCreatedAt in interface ReturnItem
      Returns:
      createdAt
    • setId

      public void setId(String id)
      Description copied from interface: ReturnItem

      Unique identifier of the Return Item.

      Specified by:
      setId in interface ReturnItem
      Parameters:
      id - value to be set
    • setKey

      public void setKey(String key)
      Description copied from interface: ReturnItem

      User-defined unique identifier of the Return Item.

      Specified by:
      setKey in interface ReturnItem
      Parameters:
      key - value to be set
    • setQuantity

      public void setQuantity(Long quantity)
      Description copied from interface: ReturnItem

      Number of Line Items or Custom Line Items returned.

      Specified by:
      setQuantity in interface ReturnItem
      Parameters:
      quantity - value to be set
    • setComment

      public void setComment(String comment)
      Description copied from interface: ReturnItem

      User-defined description for the return.

      Specified by:
      setComment in interface ReturnItem
      Parameters:
      comment - value to be set
    • setShipmentState

      public void setShipmentState(ReturnShipmentState shipmentState)
      Description copied from interface: ReturnItem

      Shipment status of the Return Item.

      Specified by:
      setShipmentState in interface ReturnItem
      Parameters:
      shipmentState - value to be set
    • setPaymentState

      public void setPaymentState(ReturnPaymentState paymentState)
      Description copied from interface: ReturnItem

      Payment status of the Return Item:

      • NonRefundable, for items in the Advised ReturnShipmentState
      • Initial, for items in the Returned ReturnShipmentState
      Specified by:
      setPaymentState in interface ReturnItem
      Parameters:
      paymentState - value to be set
    • setCustom

      public void setCustom(CustomFields custom)
      Description copied from interface: ReturnItem

      Custom Fields of the Return Item.

      Specified by:
      setCustom in interface Customizable<ReturnItem>
      Specified by:
      setCustom in interface ReturnItem
      Parameters:
      custom - value to be set
    • setLastModifiedAt

      public void setLastModifiedAt(ZonedDateTime lastModifiedAt)
      Description copied from interface: ReturnItem

      Date and time (UTC) the Return Item was last updated.

      Specified by:
      setLastModifiedAt in interface ReturnItem
      Parameters:
      lastModifiedAt - value to be set
    • setCreatedAt

      public void setCreatedAt(ZonedDateTime createdAt)
      Description copied from interface: ReturnItem

      Date and time (UTC) the Return Item was intitially created.

      Specified by:
      setCreatedAt in interface ReturnItem
      Parameters:
      createdAt - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object