Interface CartClassificationType
- All Superinterfaces:
ShippingRateInputType
The ShippingRate maps to an abstract Cart categorization expressed by strings (for example, Light
, Medium
, or Heavy
). Only keys defined in the values
array can be used to create a tier or to set a value of the shippingRateInput
on the Cart. Keys must be unique.
Example to create an instance using the builder pattern
CartClassificationType cartClassificationType = CartClassificationType.builder()
.plusValues(valuesBuilder -> valuesBuilder)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartClassificationType -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartClassificationTypebuilder
(CartClassificationType template) create builder for CartClassificationType instancestatic CartClassificationType
deepCopy
(CartClassificationType template) factory method to create a deep copy of CartClassificationType@NotNull @Valid List<CustomFieldLocalizedEnumValue>
The classification items that can be used for specifying any ShippingRatePriceTier.static CartClassificationType
of()
factory methodstatic CartClassificationType
of
(CartClassificationType template) factory method to create a shallow copy CartClassificationTypevoid
setValues
(CustomFieldLocalizedEnumValue... values) The classification items that can be used for specifying any ShippingRatePriceTier.void
setValues
(List<CustomFieldLocalizedEnumValue> values) The classification items that can be used for specifying any ShippingRatePriceTier.static com.fasterxml.jackson.core.type.TypeReference<CartClassificationType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.project.ShippingRateInputType
getType, withShippingRateInputType
-
Field Details
-
CART_CLASSIFICATION
discriminator value for CartClassificationType- See Also:
-
-
Method Details
-
getValues
The classification items that can be used for specifying any ShippingRatePriceTier.
- Returns:
- values
-
setValues
The classification items that can be used for specifying any ShippingRatePriceTier.
- Parameters:
values
- values to be set
-
setValues
The classification items that can be used for specifying any ShippingRatePriceTier.
- Parameters:
values
- values to be set
-
of
factory method- Returns:
- instance of CartClassificationType
-
of
factory method to create a shallow copy CartClassificationType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartClassificationType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartClassificationType- Returns:
- builder
-
builder
create builder for CartClassificationType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartClassificationType
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
-