Interface CartDiscountTotalPriceTarget
- All Superinterfaces:
CartDiscountTarget
Discount is applied to the total price of the Cart. The same percentage of discount applies on the Cart or Order taxedPrice and taxedShippingPrice.
Example to create an instance using the builder pattern
CartDiscountTotalPriceTarget cartDiscountTotalPriceTarget = CartDiscountTotalPriceTarget.builder()
.build()
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringdiscriminator value for CartDiscountTotalPriceTarget -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for CartDiscountTotalPriceTargetbuilder(CartDiscountTotalPriceTarget template) create builder for CartDiscountTotalPriceTarget instancecopyDeep()static CartDiscountTotalPriceTargetdeepCopy(CartDiscountTotalPriceTarget template) factory method to create a deep copy of CartDiscountTotalPriceTargetstatic CartDiscountTotalPriceTargetof()factory methodstatic CartDiscountTotalPriceTargetof(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> Taccessor 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
-
copyDeep
CartDiscountTotalPriceTarget copyDeep()- Specified by:
copyDeepin interfaceCartDiscountTarget
-
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
-