Package | Description |
---|---|
io.sphere.sdk.productdiscounts |
Provides model classes and builders for product discounts.
|
io.sphere.sdk.productdiscounts.commands.updateactions |
Provides the possible operations which can be performed on update commands for product discounts.
|
Modifier and Type | Class and Description |
---|---|
class |
AbsoluteProductDiscountValue
An absolute discount reduces the matching price by a fixed amount (for example 10€ off).
|
class |
ExternalProductDiscountValue
An external discount.
|
class |
RelativeProductDiscountValue
A relative product discount with the corresponding basis point value.
|
Modifier and Type | Method and Description |
---|---|
ProductDiscountValue |
ProductDiscount.getValue() |
ProductDiscountValue |
ProductDiscountDraft.getValue() |
ProductDiscountValue |
ProductDiscountDraftDsl.getValue() |
Modifier and Type | Method and Description |
---|---|
static ProductDiscountDraftDsl |
ProductDiscountDraftDsl.of(Boolean active,
LocalizedString description,
LocalizedString name,
String predicate,
String sortOrder,
ProductDiscountValue value)
Creates a new object initialized with the given values.
|
static ProductDiscountDraft |
ProductDiscountDraft.of(LocalizedString name,
LocalizedString description,
ProductDiscountPredicate predicate,
ProductDiscountValue value,
String sortOrder,
boolean active) |
static ProductDiscountDraft |
ProductDiscountDraft.of(LocalizedString name,
String key,
LocalizedString description,
ProductDiscountPredicate predicate,
ProductDiscountValue value,
String sortOrder,
boolean active) |
ProductDiscountDraftDsl |
ProductDiscountDraftDsl.withValue(ProductDiscountValue value) |
Modifier and Type | Method and Description |
---|---|
ProductDiscountValue |
ChangeValue.getValue() |
Modifier and Type | Method and Description |
---|---|
static ChangeValue |
ChangeValue.of(ProductDiscountValue value) |