Interface CartClassificationTier
- All Superinterfaces:
ShippingRatePriceTier
The ShippingRate maps to an abstract Cart categorization expressed by strings (for example, Light
, Medium
, or Heavy
).
Example to create an instance using the builder pattern
CartClassificationTier cartClassificationTier = CartClassificationTier.builder()
.value("{value}")
.price(priceBuilder -> priceBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartClassificationTier -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartClassificationTierbuilder
(CartClassificationTier template) create builder for CartClassificationTier instancestatic CartClassificationTier
deepCopy
(CartClassificationTier template) factory method to create a deep copy of CartClassificationTierAppears in response to Get ShippingMethods for a Cart if the shipping rate matches the search query.@NotNull @Valid Money
getPrice()
Fixed shipping rate for the selected classification.@NotNull String
getValue()
key
selected from thevalues
of the CartClassificationType configured in the Project.static CartClassificationTier
of()
factory methodstatic CartClassificationTier
of
(CartClassificationTier template) factory method to create a shallow copy CartClassificationTiervoid
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.static com.fasterxml.jackson.core.type.TypeReference<CartClassificationTier>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.shipping_method.ShippingRatePriceTier
getType, withShippingRatePriceTier
-
Field Details
-
CART_CLASSIFICATION
discriminator value for CartClassificationTier- See Also:
-
-
Method Details
-
getValue
key
selected from thevalues
of the CartClassificationType configured in the Project.- Returns:
- value
-
getPrice
Fixed shipping rate for the selected classification.
- Returns:
- price
-
getIsMatching
Boolean getIsMatching()Appears in response to Get ShippingMethods for a Cart if the shipping rate matches the search query.
- Returns:
- isMatching
-
setValue
key
selected from thevalues
of the CartClassificationType configured in the Project.- Parameters:
value
- value to be set
-
setPrice
Fixed shipping rate for the selected classification.
- Parameters:
price
- value to be set
-
setIsMatching
Appears in response to Get ShippingMethods for a Cart if the shipping rate matches the search query.
- Parameters:
isMatching
- value to be set
-
of
factory method- Returns:
- instance of CartClassificationTier
-
of
factory method to create a shallow copy CartClassificationTier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartClassificationTier- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartClassificationTier- Returns:
- builder
-
builder
create builder for CartClassificationTier instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartClassificationTier
accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-