Class ShippingRateImpl

java.lang.Object
com.commercetools.api.models.shipping_method.ShippingRateImpl
All Implemented Interfaces:
ShippingRate, io.vrap.rmf.base.client.ModelBase

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

    • ShippingRateImpl

      public ShippingRateImpl()
      create empty instance
  • Method Details

    • getPrice

      public TypedMoney getPrice()

      Currency amount of the ShippingRate.

      Specified by:
      getPrice in interface ShippingRate
      Returns:
      price
    • getFreeAbove

      public TypedMoney getFreeAbove()

      Shipping is free if the sum of the (Custom) Line Item Prices reaches the specified value.

      Specified by:
      getFreeAbove in interface ShippingRate
      Returns:
      freeAbove
    • getIsMatching

      public Boolean getIsMatching()

      true if the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

      Specified by:
      getIsMatching in interface ShippingRate
      Returns:
      isMatching
    • getTiers

      public List<ShippingRatePriceTier> getTiers()

      Price tiers for the ShippingRate.

      Specified by:
      getTiers in interface ShippingRate
      Returns:
      tiers
    • setPrice

      public void setPrice(TypedMoney price)
      Description copied from interface: ShippingRate

      Currency amount of the ShippingRate.

      Specified by:
      setPrice in interface ShippingRate
      Parameters:
      price - value to be set
    • setFreeAbove

      public void setFreeAbove(TypedMoney freeAbove)
      Description copied from interface: ShippingRate

      Shipping is free if the sum of the (Custom) Line Item Prices reaches the specified value.

      Specified by:
      setFreeAbove in interface ShippingRate
      Parameters:
      freeAbove - value to be set
    • setIsMatching

      public void setIsMatching(Boolean isMatching)
      Description copied from interface: ShippingRate

      true if the ShippingRate matches given Cart or Location. Only appears in response to requests for Get ShippingMethods for a Cart or Get ShippingMethods for a Location.

      Specified by:
      setIsMatching in interface ShippingRate
      Parameters:
      isMatching - value to be set
    • setTiers

      public void setTiers(ShippingRatePriceTier... tiers)
      Description copied from interface: ShippingRate

      Price tiers for the ShippingRate.

      Specified by:
      setTiers in interface ShippingRate
      Parameters:
      tiers - values to be set
    • setTiers

      public void setTiers(List<ShippingRatePriceTier> tiers)
      Description copied from interface: ShippingRate

      Price tiers for the ShippingRate.

      Specified by:
      setTiers in interface ShippingRate
      Parameters:
      tiers - values to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object