Class DeliveryImpl

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

public class DeliveryImpl extends Object implements Delivery, io.vrap.rmf.base.client.ModelBase

Contains information on how items are shipped to Customers, for example, a delivery note.

  • Constructor Details

    • DeliveryImpl

      public DeliveryImpl()
      create empty instance
  • Method Details

    • getId

      public String getId()

      Unique identifier of the Delivery.

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

      public String getKey()

      User-defined unique identifier of the Delivery.

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

      public ZonedDateTime getCreatedAt()

      Date and time (UTC) the Delivery was created.

      Specified by:
      getCreatedAt in interface Delivery
      Returns:
      createdAt
    • getItems

      public List<DeliveryItem> getItems()

      Line Items or Custom Line Items that are delivered.

      Specified by:
      getItems in interface Delivery
      Specified by:
      getItems in interface DeliveryMixin
      Returns:
      items
    • getParcels

      public List<Parcel> getParcels()

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

      Specified by:
      getParcels in interface Delivery
      Specified by:
      getParcels in interface DeliveryMixin
      Returns:
      parcels
    • getAddress

      public Address getAddress()

      Address to which Parcels are delivered.

      Specified by:
      getAddress in interface Delivery
      Specified by:
      getAddress in interface DeliveryMixin
      Returns:
      address
    • getCustom

      public CustomFields getCustom()

      Custom Fields of the Delivery.

      Specified by:
      getCustom in interface Customizable<Delivery>
      Specified by:
      getCustom in interface Delivery
      Specified by:
      getCustom in interface DeliveryMixin
      Returns:
      custom
    • setId

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

      Unique identifier of the Delivery.

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

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

      User-defined unique identifier of the Delivery.

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

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

      Date and time (UTC) the Delivery was created.

      Specified by:
      setCreatedAt in interface Delivery
      Parameters:
      createdAt - value to be set
    • setItems

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

      Line Items or Custom Line Items that are delivered.

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

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

      Line Items or Custom Line Items that are delivered.

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

      public void setParcels(Parcel... parcels)
      Description copied from interface: Delivery

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

      Specified by:
      setParcels in interface Delivery
      Parameters:
      parcels - values to be set
    • setParcels

      public void setParcels(List<Parcel> parcels)
      Description copied from interface: Delivery

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

      Specified by:
      setParcels in interface Delivery
      Parameters:
      parcels - values to be set
    • setAddress

      public void setAddress(Address address)
      Description copied from interface: Delivery

      Address to which Parcels are delivered.

      Specified by:
      setAddress in interface Delivery
      Parameters:
      address - value to be set
    • setCustom

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

      Custom Fields of the Delivery.

      Specified by:
      setCustom in interface Customizable<Delivery>
      Specified by:
      setCustom in interface Delivery
      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