Class CartValueTierImpl
java.lang.Object
com.commercetools.api.models.shipping_method.CartValueTierImpl
- All Implemented Interfaces:
CartValueTier
,ShippingRatePriceTier
,io.vrap.rmf.base.client.ModelBase
public class CartValueTierImpl
extends Object
implements CartValueTier, io.vrap.rmf.base.client.ModelBase
Used when the ShippingRate maps to the sum of LineItem Prices. The value of the Cart is used to select a tier. If chosen, it is not possible to set a value for the shippingRateInput
on the Cart. Tiers contain the centAmount
(a value of 100
in the currency USD
corresponds to $ 1.00
), and start at 1
.'
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.shipping_method.CartValueTier
CART_VALUE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Appears in response to Get ShippingMethods for a Cart if the shipping rate matches the search query.Minimum total price of a Cart for which a shipping rate applies.getPrice()
Fixed shipping rate Price for a CartValue.getType()
int
hashCode()
void
setIsMatching
(Boolean isMatching) Appears in response to Get ShippingMethods for a Cart if the shipping rate matches the search query.void
setMinimumCentAmount
(Long minimumCentAmount) Minimum total price of a Cart for which a shipping rate applies.void
Fixed shipping rate Price for a CartValue.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.shipping_method.CartValueTier
withCartValueTier
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.shipping_method.ShippingRatePriceTier
withShippingRatePriceTier
-
Constructor Details
-
CartValueTierImpl
public CartValueTierImpl()create empty instance
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceShippingRatePriceTier
- Returns:
- type
-
getMinimumCentAmount
Minimum total price of a Cart for which a shipping rate applies.
- Specified by:
getMinimumCentAmount
in interfaceCartValueTier
- Returns:
- minimumCentAmount
-
getPrice
Fixed shipping rate Price for a CartValue.
- Specified by:
getPrice
in interfaceCartValueTier
- Returns:
- price
-
getIsMatching
Appears in response to Get ShippingMethods for a Cart if the shipping rate matches the search query.
- Specified by:
getIsMatching
in interfaceCartValueTier
- Returns:
- isMatching
-
setMinimumCentAmount
Description copied from interface:CartValueTier
Minimum total price of a Cart for which a shipping rate applies.
- Specified by:
setMinimumCentAmount
in interfaceCartValueTier
- Parameters:
minimumCentAmount
- value to be set
-
setPrice
Description copied from interface:CartValueTier
Fixed shipping rate Price for a CartValue.
- Specified by:
setPrice
in interfaceCartValueTier
- Parameters:
price
- value to be set
-
setIsMatching
Description copied from interface:CartValueTier
Appears in response to Get ShippingMethods for a Cart if the shipping rate matches the search query.
- Specified by:
setIsMatching
in interfaceCartValueTier
- Parameters:
isMatching
- value to be set
-
equals
-
hashCode
-