Class ZoneRateImpl

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

public class ZoneRateImpl extends Object implements ZoneRate, io.vrap.rmf.base.client.ModelBase

Defines shipping rates in different currencies for a specific Zone.

  • Constructor Details

    • ZoneRateImpl

      public ZoneRateImpl()
      create empty instance
  • Method Details

    • getZone

      public ZoneReference getZone()

      Zone for which the shipping rates are valid.

      Specified by:
      getZone in interface ZoneRate
      Returns:
      zone
    • getShippingRates

      public List<ShippingRate> getShippingRates()

      Shipping rates defined per currency.

      Specified by:
      getShippingRates in interface ZoneRate
      Returns:
      shippingRates
    • setZone

      public void setZone(ZoneReference zone)
      Description copied from interface: ZoneRate

      Zone for which the shipping rates are valid.

      Specified by:
      setZone in interface ZoneRate
      Parameters:
      zone - value to be set
    • setShippingRates

      public void setShippingRates(ShippingRate... shippingRates)
      Description copied from interface: ZoneRate

      Shipping rates defined per currency.

      Specified by:
      setShippingRates in interface ZoneRate
      Parameters:
      shippingRates - values to be set
    • setShippingRates

      public void setShippingRates(List<ShippingRate> shippingRates)
      Description copied from interface: ZoneRate

      Shipping rates defined per currency.

      Specified by:
      setShippingRates in interface ZoneRate
      Parameters:
      shippingRates - values to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object