Interface CartDiscountTotalPriceTarget
- All Superinterfaces:
CartDiscountTarget
Discount is applied to the total price of the Cart.
Example to create an instance using the builder pattern
CartDiscountTotalPriceTarget cartDiscountTotalPriceTarget = CartDiscountTotalPriceTarget.builder()
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for CartDiscountTotalPriceTarget -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for CartDiscountTotalPriceTargetbuilder
(CartDiscountTotalPriceTarget template) create builder for CartDiscountTotalPriceTarget instancestatic CartDiscountTotalPriceTarget
deepCopy
(CartDiscountTotalPriceTarget template) factory method to create a deep copy of CartDiscountTotalPriceTargetstatic CartDiscountTotalPriceTarget
of()
factory methodstatic CartDiscountTotalPriceTarget
of
(CartDiscountTotalPriceTarget template) factory method to create a shallow copy CartDiscountTotalPriceTargetstatic com.fasterxml.jackson.core.type.TypeReference<CartDiscountTotalPriceTarget>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map functionMethods inherited from interface com.commercetools.api.models.cart_discount.CartDiscountTarget
getType, withCartDiscountTarget
-
Field Details
-
TOTAL_PRICE
discriminator value for CartDiscountTotalPriceTarget- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of CartDiscountTotalPriceTarget
-
of
factory method to create a shallow copy CartDiscountTotalPriceTarget- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static CartDiscountTotalPriceTarget deepCopy(@Nullable CartDiscountTotalPriceTarget template) factory method to create a deep copy of CartDiscountTotalPriceTarget- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for CartDiscountTotalPriceTarget- Returns:
- builder
-
builder
create builder for CartDiscountTotalPriceTarget instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withCartDiscountTotalPriceTarget
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
-