Class ShippingImpl

java.lang.Object
com.commercetools.api.models.cart.ShippingImpl
All Implemented Interfaces:
Shipping, io.vrap.rmf.base.client.ModelBase

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

    • ShippingImpl

      public ShippingImpl()
      create empty instance
  • Method Details

    • getShippingKey

      public String getShippingKey()

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

      Specified by:
      getShippingKey in interface Shipping
      Returns:
      shippingKey
    • getShippingInfo

      public ShippingInfo getShippingInfo()

      Automatically set when the Shipping Method is added.

      Specified by:
      getShippingInfo in interface Shipping
      Returns:
      shippingInfo
    • getShippingAddress

      public Address getShippingAddress()

      Determines the shipping rates and Tax Rates of associated Line Items.

      Specified by:
      getShippingAddress in interface Shipping
      Returns:
      shippingAddress
    • getShippingRateInput

      public ShippingRateInput getShippingRateInput()

      Used as an input to select a ShippingRatePriceTier. The data type of this field depends on the shippingRateInputType.type configured in the Project:

      • If CartClassification, it is ClassificationShippingRateInput.
      • If CartScore, it is ScoreShippingRateInput.
      • If CartValue, it cannot be used.
      Specified by:
      getShippingRateInput in interface Shipping
      Returns:
      shippingRateInput
    • getShippingCustomFields

      public CustomFields getShippingCustomFields()

      Custom Fields of Shipping with Multiple ShippingMode.

      Specified by:
      getShippingCustomFields in interface Shipping
      Returns:
      shippingCustomFields
    • setShippingKey

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

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

      Specified by:
      setShippingKey in interface Shipping
      Parameters:
      shippingKey - value to be set
    • setShippingInfo

      public void setShippingInfo(ShippingInfo shippingInfo)
      Description copied from interface: Shipping

      Automatically set when the Shipping Method is added.

      Specified by:
      setShippingInfo in interface Shipping
      Parameters:
      shippingInfo - value to be set
    • setShippingAddress

      public void setShippingAddress(Address shippingAddress)
      Description copied from interface: Shipping

      Determines the shipping rates and Tax Rates of associated Line Items.

      Specified by:
      setShippingAddress in interface Shipping
      Parameters:
      shippingAddress - value to be set
    • setShippingRateInput

      public void setShippingRateInput(ShippingRateInput shippingRateInput)
      Description copied from interface: Shipping

      Used as an input to select a ShippingRatePriceTier. The data type of this field depends on the shippingRateInputType.type configured in the Project:

      • If CartClassification, it is ClassificationShippingRateInput.
      • If CartScore, it is ScoreShippingRateInput.
      • If CartValue, it cannot be used.
      Specified by:
      setShippingRateInput in interface Shipping
      Parameters:
      shippingRateInput - value to be set
    • setShippingCustomFields

      public void setShippingCustomFields(CustomFields shippingCustomFields)
      Description copied from interface: Shipping

      Custom Fields of Shipping with Multiple ShippingMode.

      Specified by:
      setShippingCustomFields in interface Shipping
      Parameters:
      shippingCustomFields - value to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object