Class ZoneRateDraftImpl

java.lang.Object
com.commercetools.api.models.shipping_method.ZoneRateDraftImpl
All Implemented Interfaces:
ZoneRateDraft, io.vrap.rmf.base.client.Draft<ZoneRateDraft>, io.vrap.rmf.base.client.ModelBase

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

    • ZoneRateDraftImpl

      public ZoneRateDraftImpl()
      create empty instance
  • Method Details

    • getZone

      public ZoneResourceIdentifier getZone()

      Sets the Zone for which the shippng rates are valid.

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

      public List<ShippingRateDraft> getShippingRates()

      Shipping rates for the currencies configured in the Project. The array must not contain two ShippingRates with the same CurrencyCode.

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

      public void setZone(ZoneResourceIdentifier zone)
      Description copied from interface: ZoneRateDraft

      Sets the Zone for which the shippng rates are valid.

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

      public void setShippingRates(ShippingRateDraft... shippingRates)
      Description copied from interface: ZoneRateDraft

      Shipping rates for the currencies configured in the Project. The array must not contain two ShippingRates with the same CurrencyCode.

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

      public void setShippingRates(List<ShippingRateDraft> shippingRates)
      Description copied from interface: ZoneRateDraft

      Shipping rates for the currencies configured in the Project. The array must not contain two ShippingRates with the same CurrencyCode.

      Specified by:
      setShippingRates in interface ZoneRateDraft
      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