Interface CartValueType
- All Superinterfaces:
ShippingRateInputType
- All Known Implementing Classes:
CartValueTypeImpl
Used when the ShippingRate maps to the sum of LineItem Prices. The value of the Cart is used to select a tier. If chosen, it is not possible to set a value for the shippingRateInput
on the Cart.
Example to create an instance using the builder pattern
CartValueType cartValueType = CartValueType.builder()
.build()
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic CartValueTypeBuilder
builder()
builder factory method for CartValueTypestatic CartValueTypeBuilder
builder
(CartValueType template) create builder for CartValueType instancestatic CartValueType
deepCopy
(CartValueType template) factory method to create a deep copy of CartValueTypestatic CartValueType
of()
factory methodstatic CartValueType
of
(CartValueType template) factory method to create a shallow copy CartValueTypestatic com.fasterxml.jackson.core.type.TypeReference<CartValueType>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartValueType
(Function<CartValueType, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.project.ShippingRateInputType
getType, withShippingRateInputType
-
Field Details
-
CART_VALUE
discriminator value for CartValueType- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of CartValueType
-
of
factory method to create a shallow copy CartValueType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
factory method to create a deep copy of CartValueType- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartValueType- Returns:
- builder
-
builder
create builder for CartValueType instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartValueType
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
-