Class ParcelImpl

java.lang.Object
com.commercetools.importapi.models.orders.ParcelImpl
All Implemented Interfaces:
Parcel, io.vrap.rmf.base.client.ModelBase

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

    • ParcelImpl

      public ParcelImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface Parcel
      Returns:
      id
    • getCreatedAt

      public ZonedDateTime getCreatedAt()
      Specified by:
      getCreatedAt in interface Parcel
      Returns:
      createdAt
    • getMeasurements

      public ParcelMeasurements getMeasurements()
      Specified by:
      getMeasurements in interface Parcel
      Returns:
      measurements
    • getTrackingData

      public TrackingData getTrackingData()
      Specified by:
      getTrackingData in interface Parcel
      Returns:
      trackingData
    • getItems

      public List<DeliveryItem> getItems()
      Specified by:
      getItems in interface Parcel
      Returns:
      items
    • getCustom

      public Custom getCustom()

      The representation to be sent to the server when creating a resource with Custom Fields.

      Specified by:
      getCustom in interface Parcel
      Returns:
      custom
    • setId

      public void setId(String id)
      Description copied from interface: Parcel
      set id
      Specified by:
      setId in interface Parcel
      Parameters:
      id - value to be set
    • setCreatedAt

      public void setCreatedAt(ZonedDateTime createdAt)
      Description copied from interface: Parcel
      set createdAt
      Specified by:
      setCreatedAt in interface Parcel
      Parameters:
      createdAt - value to be set
    • setMeasurements

      public void setMeasurements(ParcelMeasurements measurements)
      Description copied from interface: Parcel
      set measurements
      Specified by:
      setMeasurements in interface Parcel
      Parameters:
      measurements - value to be set
    • setTrackingData

      public void setTrackingData(TrackingData trackingData)
      Description copied from interface: Parcel
      set trackingData
      Specified by:
      setTrackingData in interface Parcel
      Parameters:
      trackingData - value to be set
    • setItems

      public void setItems(DeliveryItem... items)
      Description copied from interface: Parcel
      set items
      Specified by:
      setItems in interface Parcel
      Parameters:
      items - values to be set
    • setItems

      public void setItems(List<DeliveryItem> items)
      Description copied from interface: Parcel
      set items
      Specified by:
      setItems in interface Parcel
      Parameters:
      items - values to be set
    • setCustom

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

      The representation to be sent to the server when creating a resource with Custom Fields.

      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