Class PriceTierImpl

java.lang.Object
com.commercetools.importapi.models.common.PriceTierImpl
All Implemented Interfaces:
PriceTier, io.vrap.rmf.base.client.ModelBase

public class PriceTierImpl extends Object implements PriceTier, io.vrap.rmf.base.client.ModelBase

A price tier is selected instead of the default price when a certain quantity of the ProductVariant is added to a cart and ordered.

  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    The minimum quantity this price tier is valid for.
    The currency of a price tier is always the same as the currency of the base Price.
    int
     
    void
    setMinimumQuantity(Long minimumQuantity)
    The minimum quantity this price tier is valid for.
    void
    The currency of a price tier is always the same as the currency of the base Price.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString

    Methods inherited from interface com.commercetools.importapi.models.common.PriceTier

    withPriceTier
  • Constructor Details

    • PriceTierImpl

      public PriceTierImpl()
      create empty instance
  • Method Details

    • getMinimumQuantity

      public Long getMinimumQuantity()

      The minimum quantity this price tier is valid for.

      Specified by:
      getMinimumQuantity in interface PriceTier
      Returns:
      minimumQuantity
    • getValue

      public TypedMoney getValue()

      The currency of a price tier is always the same as the currency of the base Price.

      Specified by:
      getValue in interface PriceTier
      Returns:
      value
    • setMinimumQuantity

      public void setMinimumQuantity(Long minimumQuantity)
      Description copied from interface: PriceTier

      The minimum quantity this price tier is valid for.

      Specified by:
      setMinimumQuantity in interface PriceTier
      Parameters:
      minimumQuantity - value to be set
    • setValue

      public void setValue(TypedMoney value)
      Description copied from interface: PriceTier

      The currency of a price tier is always the same as the currency of the base Price.

      Specified by:
      setValue in interface PriceTier
      Parameters:
      value - value to be set
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object