Class CartClassificationTierImpl
java.lang.Object
com.commercetools.api.models.shipping_method.CartClassificationTierImpl
- All Implemented Interfaces:
CartClassificationTier
,ShippingRatePriceTier
,io.vrap.rmf.base.client.ModelBase
public class CartClassificationTierImpl
extends Object
implements CartClassificationTier, io.vrap.rmf.base.client.ModelBase
Used when the ShippingRate maps to an abstract Cart categorization expressed by strings (for example, Light
, Medium
, or Heavy
).
-
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.CartClassificationTier
CART_CLASSIFICATION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Appears in response to Get ShippingMethods for a Cart if the shipping rate matches the search query.getPrice()
Fixed shipping rate for the selected classification.getType()
getValue()
key
selected from thevalues
of the CartClassificationType configured in the Project.int
hashCode()
void
setIsMatching
(Boolean isMatching) Appears in response to Get ShippingMethods for a Cart if the shipping rate matches the search query.void
Fixed shipping rate for the selected classification.void
key
selected from thevalues
of the CartClassificationType configured in the Project.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.shipping_method.CartClassificationTier
withCartClassificationTier
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
-
CartClassificationTierImpl
public CartClassificationTierImpl()create empty instance
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceShippingRatePriceTier
- Returns:
- type
-
getValue
key
selected from thevalues
of the CartClassificationType configured in the Project.- Specified by:
getValue
in interfaceCartClassificationTier
- Returns:
- value
-
getPrice
Fixed shipping rate for the selected classification.
- Specified by:
getPrice
in interfaceCartClassificationTier
- Returns:
- price
-
getIsMatching
Appears in response to Get ShippingMethods for a Cart if the shipping rate matches the search query.
- Specified by:
getIsMatching
in interfaceCartClassificationTier
- Returns:
- isMatching
-
setValue
Description copied from interface:CartClassificationTier
key
selected from thevalues
of the CartClassificationType configured in the Project.- Specified by:
setValue
in interfaceCartClassificationTier
- Parameters:
value
- value to be set
-
setPrice
Description copied from interface:CartClassificationTier
Fixed shipping rate for the selected classification.
- Specified by:
setPrice
in interfaceCartClassificationTier
- Parameters:
price
- value to be set
-
setIsMatching
Description copied from interface:CartClassificationTier
Appears in response to Get ShippingMethods for a Cart if the shipping rate matches the search query.
- Specified by:
setIsMatching
in interfaceCartClassificationTier
- Parameters:
isMatching
- value to be set
-
equals
-
hashCode
public int hashCode()
-