public final class MultiBuyCustomLineItemsTarget extends Base
MultiBuyLineItemsTarget
but applied on custom line items instead of line items.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 MultiBuyCustomLineItemsTarget |
of(String predicate,
Long triggerQuantity,
Long discountedQuantity,
SelectionMode selectionMode) |
static MultiBuyCustomLineItemsTarget |
of(String predicate,
Long triggerQuantity,
Long discountedQuantity,
SelectionMode selectionMode,
Long maxOccurrence) |
public static MultiBuyCustomLineItemsTarget of(String predicate, Long triggerQuantity, Long discountedQuantity, SelectionMode selectionMode)
public static MultiBuyCustomLineItemsTarget 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()