Interface CartScoreType
- All Superinterfaces:
ShippingRateInputType
- All Known Implementing Classes:
CartScoreTypeImpl
Used when the ShippingRate maps to an abstract Cart categorization expressed by integers (such as shipping scores or weight ranges).
Example to create an instance using the builder pattern
CartScoreType cartScoreType = CartScoreType.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CartScoreTypeBuilder
builder()
builder factory method for CartScoreTypestatic CartScoreTypeBuilder
builder
(CartScoreType template) create builder for CartScoreType instancestatic CartScoreType
deepCopy
(CartScoreType template) factory method to create a deep copy of CartScoreTypestatic CartScoreType
of()
factory methodstatic CartScoreType
of
(CartScoreType template) factory method to create a shallow copy CartScoreTypestatic com.fasterxml.jackson.core.type.TypeReference<CartScoreType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartScoreType
(Function<CartScoreType, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.project.ShippingRateInputType
getType, withShippingRateInputType
-
Field Details
-
CART_SCORE
discriminator value for CartScoreType- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of CartScoreType
-
of
factory method to create a shallow copy CartScoreType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartScoreType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartScoreType- Returns:
- builder
-
builder
create builder for CartScoreType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartScoreType
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
-