Interface DiscountTypeCombination
public interface DiscountTypeCombination
DiscountTypeCombination
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
DiscountTypeCombination discountTypeCombination = DiscountTypeCombination.bestDealBuilder()
chosenDiscountType("{chosenDiscountType}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic BestDealBuilder
builder for bestDeal subtypestatic DiscountTypeCombination
deepCopy
(DiscountTypeCombination template) factory method to create a deep copy of DiscountTypeCombination@NotNull String
getType()
static StackingBuilder
builder for stacking subtypestatic com.fasterxml.jackson.core.type.TypeReference<DiscountTypeCombination>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
accessor map function
-
Method Details
-
getType
- Returns:
- type
-
deepCopy
factory method to create a deep copy of DiscountTypeCombination- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
bestDealBuilder
builder for bestDeal subtype- Returns:
- builder
-
stackingBuilder
builder for stacking subtype- Returns:
- builder
-
withDiscountTypeCombination
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
-