Package | Description |
---|---|
io.sphere.sdk.cartdiscounts |
Provides model classes and builders for cart discounts.
|
io.sphere.sdk.cartdiscounts.commands.updateactions |
Provides the possible operations which can be performed on update commands for cart discounts.
|
Modifier and Type | Class and Description |
---|---|
class |
CustomLineItemsTarget |
class |
LineItemsTarget |
class |
MultiBuyCustomLineItemsTarget
The multi-buy discount represents a "Buy 4 items, get 2 of them at a discounted rate" type of discount.
|
class |
MultiBuyLineItemsTarget
Multi-Buy discount represents a "Buy 6 items get 2 of them discounted" type of discount.
|
class |
ShippingCostTarget |
Modifier and Type | Method and Description |
---|---|
CartDiscountTarget |
CartDiscount.getTarget()
Defines what part of the cart will be discounted.
|
CartDiscountTarget |
CartDiscountDraft.getTarget() |
Modifier and Type | Method and Description |
---|---|
static CartDiscountDraftBuilder |
CartDiscountDraftBuilder.of(LocalizedString name,
CartPredicate cartPredicate,
CartDiscountValue value,
CartDiscountTarget target,
String sortOrder,
boolean requiresDiscountCode) |
static CartDiscountDraftBuilder |
CartDiscountDraftBuilder.of(String cartPredicate,
LocalizedString name,
boolean requiresDiscountCode,
String sortOrder,
CartDiscountTarget target,
CartDiscountValue value) |
Modifier and Type | Method and Description |
---|---|
CartDiscountTarget |
ChangeTarget.getTarget() |
Modifier and Type | Method and Description |
---|---|
static ChangeTarget |
ChangeTarget.of(CartDiscountTarget target)
Creates a new object initialized with the given values.
|