Interface ChangeTargetMultiBuyCustomLineItemsChangeValue
- All Superinterfaces:
ChangeTargetChangeValue
ChangeTargetMultiBuyCustomLineItemsChangeValue
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
ChangeTargetMultiBuyCustomLineItemsChangeValue changeTargetMultiBuyCustomLineItemsChangeValue = ChangeTargetMultiBuyCustomLineItemsChangeValue.builder()
.predicate("{predicate}")
.triggerQuantity(1)
.discountedQuantity(1)
.maxOccurrence(1)
.selectionMode(SelectionMode.CHEAPEST)
.build()
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
discriminator value for ChangeTargetMultiBuyCustomLineItemsChangeValue -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder factory method for ChangeTargetMultiBuyCustomLineItemsChangeValuecreate builder for ChangeTargetMultiBuyCustomLineItemsChangeValue instancefactory method to create a deep copy of ChangeTargetMultiBuyCustomLineItemsChangeValue@NotNull Integer
Quantity of Custom Line Items discounted per application of this discount.@NotNull Integer
Maximum number of times the discount is applicable.@NotNull String
Valid CustomLineItem target predicate.@NotNull SelectionMode
SelectionMode based on which particular Custom Line Items were discounted.@NotNull Integer
Quantity of Custom Line Items that triggered the application of the discount.@NotNull String
getType()
of()
factory methodfactory method to create a shallow copy ChangeTargetMultiBuyCustomLineItemsChangeValuevoid
setDiscountedQuantity
(Integer discountedQuantity) Quantity of Custom Line Items discounted per application of this discount.void
setMaxOccurrence
(Integer maxOccurrence) Maximum number of times the discount is applicable.void
setPredicate
(String predicate) Valid CustomLineItem target predicate.void
setSelectionMode
(SelectionMode selectionMode) SelectionMode based on which particular Custom Line Items were discounted.void
setTriggerQuantity
(Integer triggerQuantity) Quantity of Custom Line Items that triggered the application of the discount.static com.fasterxml.jackson.core.type.TypeReference<ChangeTargetMultiBuyCustomLineItemsChangeValue>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withChangeTargetMultiBuyCustomLineItemsChangeValue
(Function<ChangeTargetMultiBuyCustomLineItemsChangeValue, T> helper) accessor map functionMethods inherited from interface com.commercetools.history.models.change_value.ChangeTargetChangeValue
withChangeTargetChangeValue
-
Field Details
-
MULTI_BUY_CUSTOM_LINE_ITEMS
discriminator value for ChangeTargetMultiBuyCustomLineItemsChangeValue- See Also:
-
-
Method Details
-
getType
- Specified by:
getType
in interfaceChangeTargetChangeValue
- Returns:
- type
-
getPredicate
Valid CustomLineItem target predicate.
- Returns:
- predicate
-
getTriggerQuantity
Quantity of Custom Line Items that triggered the application of the discount.
- Returns:
- triggerQuantity
-
getDiscountedQuantity
Quantity of Custom Line Items discounted per application of this discount.
- Returns:
- discountedQuantity
-
getMaxOccurrence
Maximum number of times the discount is applicable.
- Returns:
- maxOccurrence
-
getSelectionMode
SelectionMode based on which particular Custom Line Items were discounted.
- Returns:
- selectionMode
-
setPredicate
Valid CustomLineItem target predicate.
- Parameters:
predicate
- value to be set
-
setTriggerQuantity
Quantity of Custom Line Items that triggered the application of the discount.
- Parameters:
triggerQuantity
- value to be set
-
setDiscountedQuantity
Quantity of Custom Line Items discounted per application of this discount.
- Parameters:
discountedQuantity
- value to be set
-
setMaxOccurrence
Maximum number of times the discount is applicable.
- Parameters:
maxOccurrence
- value to be set
-
setSelectionMode
SelectionMode based on which particular Custom Line Items were discounted.
- Parameters:
selectionMode
- value to be set
-
of
factory method- Returns:
- instance of ChangeTargetMultiBuyCustomLineItemsChangeValue
-
of
static ChangeTargetMultiBuyCustomLineItemsChangeValue of(ChangeTargetMultiBuyCustomLineItemsChangeValue template) factory method to create a shallow copy ChangeTargetMultiBuyCustomLineItemsChangeValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
deepCopy
@Nullable static ChangeTargetMultiBuyCustomLineItemsChangeValue deepCopy(@Nullable ChangeTargetMultiBuyCustomLineItemsChangeValue template) factory method to create a deep copy of ChangeTargetMultiBuyCustomLineItemsChangeValue- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for ChangeTargetMultiBuyCustomLineItemsChangeValue- Returns:
- builder
-
builder
static ChangeTargetMultiBuyCustomLineItemsChangeValueBuilder builder(ChangeTargetMultiBuyCustomLineItemsChangeValue template) create builder for ChangeTargetMultiBuyCustomLineItemsChangeValue instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-
withChangeTargetMultiBuyCustomLineItemsChangeValue
default <T> T withChangeTargetMultiBuyCustomLineItemsChangeValue(Function<ChangeTargetMultiBuyCustomLineItemsChangeValue, T> helper) accessor map function- Type Parameters:
T
- mapped type- Parameters:
helper
- function to map the object- Returns:
- mapped value
-
typeReference
static com.fasterxml.jackson.core.type.TypeReference<ChangeTargetMultiBuyCustomLineItemsChangeValue> typeReference()gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-