public final class MultiBuyLineItemsTarget extends Base
Modifier and Type | Method and Description |
---|---|
Long |
getDiscountedQuantity()
Quantity of line items that are discounted per application of this discount.
|
Long |
getMaxOccurrence()
Maximum number of applications of this discount.
|
String |
getPredicate()
A valid line item target predicate.
|
SelectionMode |
getSelectionMode()
The selection mode.
|
Long |
getTriggerQuantity()
Quantity of line items that need to be present in order to trigger an application of this discount.
|
static MultiBuyLineItemsTarget |
of(String predicate,
Long triggerQuantity,
Long discountedQuantity,
SelectionMode selectionMode) |
static MultiBuyLineItemsTarget |
of(String predicate,
Long triggerQuantity,
Long discountedQuantity,
SelectionMode selectionMode,
Long maxOccurrence) |
public static MultiBuyLineItemsTarget of(String predicate, Long triggerQuantity, Long discountedQuantity, SelectionMode selectionMode)
public static MultiBuyLineItemsTarget of(String predicate, Long triggerQuantity, Long discountedQuantity, SelectionMode selectionMode, @Nullable Long maxOccurrence)
public String getPredicate()
public Long getTriggerQuantity()
public Long getDiscountedQuantity()
@Nullable public Long getMaxOccurrence()
public SelectionMode getSelectionMode()