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.
|
io.sphere.sdk.productdiscounts.expansion |
Provides reference expansion models for product discounts.
|
io.sphere.sdk.productdiscounts.queries |
Provides types to retrieve the state of product discounts.
|
io.sphere.sdk.products.queries |
Provides types to retrieve the state of products.
|
Modifier and Type | Method and Description |
---|---|
Reference<ProductDiscount> |
DiscountedPrice.getDiscount() |
static Reference<ProductDiscount> |
ProductDiscount.referenceOfId(String id)
Creates a reference for one item of this class by a known ID.
|
default Reference<ProductDiscount> |
ProductDiscount.toReference() |
static com.fasterxml.jackson.core.type.TypeReference<ProductDiscount> |
ProductDiscount.typeReference()
Creates a container which contains the full Java type information to deserialize this class from JSON.
|
Modifier and Type | Method and Description |
---|---|
static DiscountedPrice |
DiscountedPrice.of(javax.money.MonetaryAmount value,
Reference<ProductDiscount> discount) |
Modifier and Type | Method and Description |
---|---|
static ProductDiscountDeleteCommand |
ProductDiscountDeleteCommand.of(Versioned<ProductDiscount> versioned)
Creates a command object to delete a
ProductDiscount by ID. |
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,
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.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.
|
Modifier and Type | Method and Description |
---|---|
static ProductDiscountExpansionModel<ProductDiscount> |
ProductDiscountExpansionModel.of() |
Modifier and Type | Method and Description |
---|---|
ProductDiscount |
MatchingProductDiscountGet.deserialize(HttpResponse httpResponse) |
Modifier and Type | Method and Description |
---|---|
BooleanQueryModel<ProductDiscount> |
ProductDiscountQueryModel.active() |
List<ExpansionPath<ProductDiscount>> |
ProductDiscountByIdGet.expansionPaths() |
List<ExpansionPath<ProductDiscount>> |
ProductDiscountByKeyGet.expansionPaths() |
default BooleanQueryModel<ProductDiscount> |
ProductDiscountQueryModel.isActive() |
StringQuerySortingModel<ProductDiscount> |
ProductDiscountQueryModel.key() |
LocalizedStringQuerySortingModel<ProductDiscount> |
ProductDiscountQueryModel.name() |
static com.fasterxml.jackson.core.type.TypeReference<PagedQueryResult<ProductDiscount>> |
ProductDiscountQuery.resultTypeReference()
Creates a container which contains the full Java type information to deserialize the query result (NOT this class) from JSON.
|
TimestampSortingModel<ProductDiscount> |
ProductDiscountQueryModel.validFrom() |
TimestampSortingModel<ProductDiscount> |
ProductDiscountQueryModel.validUntil() |
Modifier and Type | Method and Description |
---|---|
ReferenceQueryModel<T,ProductDiscount> |
DiscountedPriceOptionalQueryModel.discount() |