Interface Stacking
- All Superinterfaces:
DiscountTypeCombination
Indicates both Product Discounts and Cart Discounts apply to a Cart and Order.
Example to create an instance using the builder pattern
Stacking stacking = Stacking.builder()
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic StackingBuilderbuilder()builder factory method for Stackingstatic StackingBuildercreate builder for Stacking instancecopyDeep()static Stackingfactory method to create a deep copy of Stackingstatic Stackingof()factory methodstatic Stackingfactory method to create a shallow copy Stackingstatic com.fasterxml.jackson.core.type.TypeReference<Stacking>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithStacking(Function<Stacking, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.cart.DiscountTypeCombination
getType, withDiscountTypeCombination
-
Field Details
-
STACKING
discriminator value for Stacking- See Also:
-
-
Method Details
-
of
factory method- Returns:
- instance of Stacking
-
of
factory method to create a shallow copy Stacking- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
Stacking copyDeep()- Specified by:
copyDeepin interfaceDiscountTypeCombination
-
deepCopy
factory method to create a deep copy of Stacking- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for Stacking- Returns:
- builder
-
builder
create builder for Stacking instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStacking
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
-