Package | Description |
---|---|
io.sphere.sdk.productdiscounts.commands |
Provides types to change the state of product discounts.
|
Modifier and Type | Method and Description |
---|---|
static ProductDiscountUpdateCommand |
ProductDiscountUpdateCommand.of(Versioned<ProductDiscount> versioned,
List<? extends UpdateAction<ProductDiscount>> updateActions)
Creates a command to update a ProductDiscount selected by its ID using several update actions.
|
static ProductDiscountUpdateCommand |
ProductDiscountUpdateCommand.of(Versioned<ProductDiscount> versioned,
UpdateAction<ProductDiscount> updateAction,
UpdateAction<ProductDiscount>... updateActions)
Creates a command to update a ProductDiscount selected by its ID using one update action.
|
static ProductDiscountUpdateCommand |
ProductDiscountUpdateCommand.ofKey(String key,
Long version,
List<? extends UpdateAction<ProductDiscount>> updateActions)
Creates a command to update a ProductDiscount selected by its key using several update actions.
|
static ProductDiscountUpdateCommand |
ProductDiscountUpdateCommand.ofKey(String key,
Long version,
UpdateAction<ProductDiscount> updateAction)
Creates a command to update a ProductDiscount selected by its key using one update action.
|