Interface CartDiscountTarget
- All Known Subinterfaces:
CartDiscountCustomLineItemsTarget
,CartDiscountLineItemsTarget
,CartDiscountShippingCostTarget
,CartDiscountTotalPriceTarget
,MultiBuyCustomLineItemsTarget
,MultiBuyLineItemsTarget
public interface CartDiscountTarget
CartDiscountTarget
Example to create a subtype instance using the builder pattern
Example to create a subtype instance using the builder pattern
CartDiscountTarget cartDiscountTarget = CartDiscountTarget.customLineItemsBuilder()
predicate("{predicate}")
.build()
-
Method Summary
Modifier and TypeMethodDescriptionbuilder for customLineItems subtypestatic CartDiscountTarget
deepCopy
(CartDiscountTarget template) factory method to create a deep copy of CartDiscountTarget@NotNull String
getType()
builder for lineItems subtypebuilder for multiBuyCustomLineItems subtypebuilder for multiBuyLineItems subtypebuilder for shipping subtypebuilder for totalPrice subtypestatic com.fasterxml.jackson.core.type.TypeReference<CartDiscountTarget>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withCartDiscountTarget
(Function<CartDiscountTarget, T> helper) accessor map function
-
Method Details
-
getType
- Returns:
- type
-
deepCopy
factory method to create a deep copy of CartDiscountTarget- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
customLineItemsBuilder
builder for customLineItems subtype- Returns:
- builder
-
lineItemsBuilder
builder for lineItems subtype- Returns:
- builder
-
shippingBuilder
builder for shipping subtype- Returns:
- builder
-
totalPriceBuilder
builder for totalPrice subtype- Returns:
- builder
-
multiBuyCustomLineItemsBuilder
builder for multiBuyCustomLineItems subtype- Returns:
- builder
-
multiBuyLineItemsBuilder
builder for multiBuyLineItems subtype- Returns:
- builder
-
withCartDiscountTarget
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
-