Class PriceTierImpl
java.lang.Object
com.commercetools.importapi.models.common.PriceTierImpl
- All Implemented Interfaces:
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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
The minimum quantity this price tier is valid for.getValue()
The currency of a price tier is always the same as the currency of the base Price.int
hashCode()
void
setMinimumQuantity
(Long minimumQuantity) The minimum quantity this price tier is valid for.void
setValue
(TypedMoney value) 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
The minimum quantity this price tier is valid for.
- Specified by:
getMinimumQuantity
in interfacePriceTier
- Returns:
- minimumQuantity
-
getValue
The currency of a price tier is always the same as the currency of the base Price.
-
setMinimumQuantity
Description copied from interface:PriceTier
The minimum quantity this price tier is valid for.
- Specified by:
setMinimumQuantity
in interfacePriceTier
- Parameters:
minimumQuantity
- value to be set
-
setValue
Description copied from interface:PriceTier
The currency of a price tier is always the same as the currency of the base Price.
-
equals
-
hashCode
public int hashCode()
-