Class ParcelImpl

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

public class ParcelImpl extends Object implements Parcel, io.vrap.rmf.base.client.ModelBase

Information regarding the appearance, content, and shipment of a Parcel.

  • Constructor Details

    • ParcelImpl

      public ParcelImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Parcel.

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

      public String getKey()

      User-defined unique identifier of the Parcel.

      Specified by:
      getKey in interface Parcel
      Returns:
      key
    • getCreatedAt

      public ZonedDateTime getCreatedAt()

      Date and time (UTC) the Parcel was created.

      Specified by:
      getCreatedAt in interface Parcel
      Returns:
      createdAt
    • getMeasurements

      public ParcelMeasurements getMeasurements()

      Information about the dimensions of the Parcel.

      Specified by:
      getMeasurements in interface Parcel
      Specified by:
      getMeasurements in interface ParcelMixin
      Returns:
      measurements
    • getTrackingData

      public TrackingData getTrackingData()

      Shipment tracking information of the Parcel.

      Specified by:
      getTrackingData in interface Parcel
      Specified by:
      getTrackingData in interface ParcelMixin
      Returns:
      trackingData
    • getItems

      public List<DeliveryItem> getItems()

      Line Items or Custom Line Items delivered in this Parcel.

      Specified by:
      getItems in interface Parcel
      Specified by:
      getItems in interface ParcelMixin
      Returns:
      items
    • getCustom

      public CustomFields getCustom()

      Custom Fields of the Parcel.

      Specified by:
      getCustom in interface Customizable<Parcel>
      Specified by:
      getCustom in interface Parcel
      Specified by:
      getCustom in interface ParcelMixin
      Returns:
      custom
    • setId

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

      Unique identifier of the Parcel.

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

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

      User-defined unique identifier of the Parcel.

      Specified by:
      setKey in interface Parcel
      Parameters:
      key - value to be set
    • setCreatedAt

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

      Date and time (UTC) the Parcel was created.

      Specified by:
      setCreatedAt in interface Parcel
      Parameters:
      createdAt - value to be set
    • setMeasurements

      public void setMeasurements(ParcelMeasurements measurements)
      Description copied from interface: Parcel

      Information about the dimensions of the Parcel.

      Specified by:
      setMeasurements in interface Parcel
      Parameters:
      measurements - value to be set
    • setTrackingData

      public void setTrackingData(TrackingData trackingData)
      Description copied from interface: Parcel

      Shipment tracking information of the Parcel.

      Specified by:
      setTrackingData in interface Parcel
      Parameters:
      trackingData - value to be set
    • setItems

      public void setItems(DeliveryItem... items)
      Description copied from interface: Parcel

      Line Items or Custom Line Items delivered in this Parcel.

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

      public void setItems(List<DeliveryItem> items)
      Description copied from interface: Parcel

      Line Items or Custom Line Items delivered in this Parcel.

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

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

      Custom Fields of the Parcel.

      Specified by:
      setCustom in interface Customizable<Parcel>
      Specified by:
      setCustom in interface Parcel
      Parameters:
      custom - 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