Class DeliveryAddedMessagePayloadImpl

java.lang.Object
com.commercetools.api.models.message.DeliveryAddedMessagePayloadImpl
All Implemented Interfaces:
DeliveryAddedMessagePayload, MessagePayload, MessagePayloadMixin, OrderMessagePayload, io.vrap.rmf.base.client.ModelBase

public class DeliveryAddedMessagePayloadImpl extends Object implements DeliveryAddedMessagePayload, io.vrap.rmf.base.client.ModelBase

Generated after a successful Add Delivery update action.

  • Constructor Details

    • DeliveryAddedMessagePayloadImpl

      public DeliveryAddedMessagePayloadImpl()
      create empty instance
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface MessagePayload
      Returns:
      type
    • getDelivery

      public Delivery getDelivery()

      Delivery that was added to the Order. The Delivery in the Message body does not contain Parcels if those were part of the initial Add Delivery update action. In that case, the update action produces an additional Parcel Added To Delivery Message containing information about the Parcels.

      Specified by:
      getDelivery in interface DeliveryAddedMessagePayload
      Returns:
      delivery
    • getShippingKey

      public String getShippingKey()

      User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

      Specified by:
      getShippingKey in interface DeliveryAddedMessagePayload
      Returns:
      shippingKey
    • setDelivery

      public void setDelivery(Delivery delivery)
      Description copied from interface: DeliveryAddedMessagePayload

      Delivery that was added to the Order. The Delivery in the Message body does not contain Parcels if those were part of the initial Add Delivery update action. In that case, the update action produces an additional Parcel Added To Delivery Message containing information about the Parcels.

      Specified by:
      setDelivery in interface DeliveryAddedMessagePayload
      Parameters:
      delivery - value to be set
    • setShippingKey

      public void setShippingKey(String shippingKey)
      Description copied from interface: DeliveryAddedMessagePayload

      User-defined unique identifier of the Shipping Method in a Cart with Multiple ShippingMode.

      Specified by:
      setShippingKey in interface DeliveryAddedMessagePayload
      Parameters:
      shippingKey - 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