Interface CartValueType
- All Superinterfaces:
ShippingRateInputType
The ShippingRate maps to the value of the Cart and is used to select a tier. The value of the Cart is the sum of all Line Item totals and Custom Line Item totals (via the totalPrice field) after any Product Discounts and Cart Discounts have been applied. 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
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic CartValueTypeBuilderbuilder()builder factory method for CartValueTypestatic CartValueTypeBuilderbuilder(CartValueType template) create builder for CartValueType instancecopyDeep()static CartValueTypedeepCopy(CartValueType template) factory method to create a deep copy of CartValueTypestatic CartValueTypeof()factory methodstatic CartValueTypeof(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> TwithCartValueType(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
-
copyDeep
CartValueType copyDeep()- Specified by:
copyDeepin interfaceShippingRateInputType
-
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
-