Class ShippingInfoImpl

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

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

    • ShippingInfoImpl

      public ShippingInfoImpl()
      create empty instance
  • Method Details

    • getShippingMethodName

      public String getShippingMethodName()

      Name of the Shipping Method.

      Specified by:
      getShippingMethodName in interface ShippingInfo
      Returns:
      shippingMethodName
    • getPrice

      public CentPrecisionMoney getPrice()

      Determined based on the ShippingRate and its tiered prices, and either the sum of LineItem prices or the shippingRateInput field.

      Specified by:
      getPrice in interface ShippingInfo
      Returns:
      price
    • getShippingRate

      public ShippingRate getShippingRate()

      Used to determine the price.

      Specified by:
      getShippingRate in interface ShippingInfo
      Returns:
      shippingRate
    • getTaxedPrice

      public TaxedItemPrice getTaxedPrice()

      Automatically set after the taxRate is set.

      Specified by:
      getTaxedPrice in interface ShippingInfo
      Returns:
      taxedPrice
    • getTaxRate

      public TaxRate getTaxRate()

      Automatically set in the Platform TaxMode after the shipping address is set.

      For the External TaxMode the Tax Rate must be set explicitly with the ExternalTaxRateDraft.

      Specified by:
      getTaxRate in interface ShippingInfo
      Returns:
      taxRate
    • getTaxCategory

      public TaxCategoryReference getTaxCategory()

      Used to select a Tax Rate when a Cart has the Platform TaxMode.

      Specified by:
      getTaxCategory in interface ShippingInfo
      Returns:
      taxCategory
    • getShippingMethod

      public ShippingMethodReference getShippingMethod()

      Not set if a custom Shipping Method is used.

      Specified by:
      getShippingMethod in interface ShippingInfo
      Returns:
      shippingMethod
    • getDeliveries

      public List<Delivery> getDeliveries()

      Information on how items are delivered to customers.

      Specified by:
      getDeliveries in interface ShippingInfo
      Returns:
      deliveries
    • getDiscountedPrice

      public DiscountedLineItemPrice getDiscountedPrice()

      Discounted price of the Shipping Method.

      Specified by:
      getDiscountedPrice in interface ShippingInfo
      Returns:
      discountedPrice
    • getShippingMethodState

      public ShippingMethodState getShippingMethodState()

      Indicates whether the ShippingMethod referenced in this ShippingInfo is allowed for the Cart.

      Specified by:
      getShippingMethodState in interface ShippingInfo
      Returns:
      shippingMethodState
    • setShippingMethodName

      public void setShippingMethodName(String shippingMethodName)
      Description copied from interface: ShippingInfo

      Name of the Shipping Method.

      Specified by:
      setShippingMethodName in interface ShippingInfo
      Parameters:
      shippingMethodName - value to be set
    • setPrice

      public void setPrice(CentPrecisionMoney price)
      Description copied from interface: ShippingInfo

      Determined based on the ShippingRate and its tiered prices, and either the sum of LineItem prices or the shippingRateInput field.

      Specified by:
      setPrice in interface ShippingInfo
      Parameters:
      price - value to be set
    • setShippingRate

      public void setShippingRate(ShippingRate shippingRate)
      Description copied from interface: ShippingInfo

      Used to determine the price.

      Specified by:
      setShippingRate in interface ShippingInfo
      Parameters:
      shippingRate - value to be set
    • setTaxedPrice

      public void setTaxedPrice(TaxedItemPrice taxedPrice)
      Description copied from interface: ShippingInfo

      Automatically set after the taxRate is set.

      Specified by:
      setTaxedPrice in interface ShippingInfo
      Parameters:
      taxedPrice - value to be set
    • setTaxRate

      public void setTaxRate(TaxRate taxRate)
      Description copied from interface: ShippingInfo

      Automatically set in the Platform TaxMode after the shipping address is set.

      For the External TaxMode the Tax Rate must be set explicitly with the ExternalTaxRateDraft.

      Specified by:
      setTaxRate in interface ShippingInfo
      Parameters:
      taxRate - value to be set
    • setTaxCategory

      public void setTaxCategory(TaxCategoryReference taxCategory)
      Description copied from interface: ShippingInfo

      Used to select a Tax Rate when a Cart has the Platform TaxMode.

      Specified by:
      setTaxCategory in interface ShippingInfo
      Parameters:
      taxCategory - value to be set
    • setShippingMethod

      public void setShippingMethod(ShippingMethodReference shippingMethod)
      Description copied from interface: ShippingInfo

      Not set if a custom Shipping Method is used.

      Specified by:
      setShippingMethod in interface ShippingInfo
      Parameters:
      shippingMethod - value to be set
    • setDeliveries

      public void setDeliveries(Delivery... deliveries)
      Description copied from interface: ShippingInfo

      Information on how items are delivered to customers.

      Specified by:
      setDeliveries in interface ShippingInfo
      Parameters:
      deliveries - values to be set
    • setDeliveries

      public void setDeliveries(List<Delivery> deliveries)
      Description copied from interface: ShippingInfo

      Information on how items are delivered to customers.

      Specified by:
      setDeliveries in interface ShippingInfo
      Parameters:
      deliveries - values to be set
    • setDiscountedPrice

      public void setDiscountedPrice(DiscountedLineItemPrice discountedPrice)
      Description copied from interface: ShippingInfo

      Discounted price of the Shipping Method.

      Specified by:
      setDiscountedPrice in interface ShippingInfo
      Parameters:
      discountedPrice - value to be set
    • setShippingMethodState

      public void setShippingMethodState(ShippingMethodState shippingMethodState)
      Description copied from interface: ShippingInfo

      Indicates whether the ShippingMethod referenced in this ShippingInfo is allowed for the Cart.

      Specified by:
      setShippingMethodState in interface ShippingInfo
      Parameters:
      shippingMethodState - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object