Class ReturnInfoImpl

java.lang.Object
com.commercetools.api.models.order.ReturnInfoImpl
All Implemented Interfaces:
ReturnInfo, io.vrap.rmf.base.client.ModelBase

public class ReturnInfoImpl extends Object implements ReturnInfo, io.vrap.rmf.base.client.ModelBase

Stores information about returns connected to an Order.

  • Constructor Details

    • ReturnInfoImpl

      public ReturnInfoImpl()
      create empty instance
  • Method Details

    • getItems

      public List<ReturnItem> getItems()

      Information on the Line Items or Custom Line Items returned.

      Specified by:
      getItems in interface ReturnInfo
      Returns:
      items
    • getReturnTrackingId

      public String getReturnTrackingId()

      User-defined identifier to track the return.

      Specified by:
      getReturnTrackingId in interface ReturnInfo
      Returns:
      returnTrackingId
    • getReturnDate

      public ZonedDateTime getReturnDate()

      Date and time (UTC) the return is initiated.

      Specified by:
      getReturnDate in interface ReturnInfo
      Returns:
      returnDate
    • setItems

      public void setItems(ReturnItem... items)
      Description copied from interface: ReturnInfo

      Information on the Line Items or Custom Line Items returned.

      Specified by:
      setItems in interface ReturnInfo
      Parameters:
      items - values to be set
    • setItems

      public void setItems(List<ReturnItem> items)
      Description copied from interface: ReturnInfo

      Information on the Line Items or Custom Line Items returned.

      Specified by:
      setItems in interface ReturnInfo
      Parameters:
      items - values to be set
    • setReturnTrackingId

      public void setReturnTrackingId(String returnTrackingId)
      Description copied from interface: ReturnInfo

      User-defined identifier to track the return.

      Specified by:
      setReturnTrackingId in interface ReturnInfo
      Parameters:
      returnTrackingId - value to be set
    • setReturnDate

      public void setReturnDate(ZonedDateTime returnDate)
      Description copied from interface: ReturnInfo

      Date and time (UTC) the return is initiated.

      Specified by:
      setReturnDate in interface ReturnInfo
      Parameters:
      returnDate - 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