Package | Description |
---|---|
io.sphere.sdk.productdiscounts |
Provides model classes and builders for product discounts.
|
io.sphere.sdk.productdiscounts.commands |
Provides types to change the state of product discounts.
|
Modifier and Type | Class and Description |
---|---|
class |
ProductDiscountDraftDsl
Dsl class for
ProductDiscountDraft . |
Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
static ProductDiscountDraftDsl |
ProductDiscountDraftDsl.of(ProductDiscountDraft template)
Creates a new object initialized with the fields of the template parameter.
|
Modifier and Type | Method and Description |
---|---|
static ProductDiscountCreateCommand |
ProductDiscountCreateCommand.of(ProductDiscountDraft draft)
Creates a command object to create a
ProductDiscount . |