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 |
AbsoluteCartDiscountValue
Cart discount value of an absolute amount.
|
class |
FixedCartDiscountValue
Cart discount value of an absolute amount.
|
class |
GiftLineItemCartDiscountValue
Adds a free line item as a gift to the cart.
|
class |
RelativeCartDiscountValue |
Modifier and Type | Method and Description |
---|---|
CartDiscountValue |
CartDiscount.getValue()
The value of the discount (determines the reduced price).
|
CartDiscountValue |
CartDiscountDraft.getValue() |
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 |
---|---|
CartDiscountValue |
ChangeValue.getValue() |
Modifier and Type | Method and Description |
---|---|
static ChangeValue |
ChangeValue.of(CartDiscountValue value)
Creates a new object initialized with the given values.
|