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
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartClassificationType -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartClassificationTypebuilder(CartClassificationType template) create builder for CartClassificationType instancecopyDeep()static CartClassificationTypedeepCopy(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 CartClassificationTypeof()factory methodstatic CartClassificationTypeof(CartClassificationType template) factory method to create a shallow copy CartClassificationTypevoidsetValues(CustomFieldLocalizedEnumValue... values) The classification items that can be used for specifying any ShippingRatePriceTier.voidsetValues(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> Taccessor 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
-
copyDeep
CartClassificationType copyDeep()- Specified by:
copyDeepin interfaceShippingRateInputType
-
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
-