Package | Description |
---|---|
io.sphere.sdk.cartdiscounts |
Provides model classes and builders for cart discounts.
|
io.sphere.sdk.cartdiscounts.commands |
Provides types to change the state of cart discounts.
|
io.sphere.sdk.cartdiscounts.expansion |
Provides reference expansion models for cart discounts.
|
io.sphere.sdk.cartdiscounts.queries |
Provides types to retrieve the state of cart discounts.
|
io.sphere.sdk.carts |
Provides model classes and builders for carts.
|
io.sphere.sdk.carts.queries |
Provides types to retrieve the state of carts.
|
io.sphere.sdk.discountcodes |
Provides model classes and builders for discount codes.
|
io.sphere.sdk.discountcodes.commands.updateactions |
Provides the possible operations which can be performed on update commands for discount codes.
|
io.sphere.sdk.orders |
Provides model classes and builders for orders.
|
Modifier and Type | Method and Description |
---|---|
Reference<CartDiscount> |
DiscountedLineItemPortion.getDiscount() |
static Reference<CartDiscount> |
CartDiscount.referenceOfId(String id)
Creates a reference for one item of this class by a known ID.
|
default Reference<CartDiscount> |
CartDiscount.toReference() |
static com.fasterxml.jackson.core.type.TypeReference<CartDiscount> |
CartDiscount.typeReference()
Creates a container which contains the full Java type information to deserialize this class from JSON.
|
Modifier and Type | Method and Description |
---|---|
static DiscountedLineItemPortion |
DiscountedLineItemPortion.of(Referenceable<CartDiscount> discount,
javax.money.MonetaryAmount discountedAmount) |
Modifier and Type | Method and Description |
---|---|
static CartDiscountDeleteCommand |
CartDiscountDeleteCommand.of(Versioned<CartDiscount> versioned)
Creates a command object to delete a
CartDiscount by ID. |
static CartDiscountUpdateCommand |
CartDiscountUpdateCommand.of(Versioned<CartDiscount> versioned,
List<? extends UpdateAction<CartDiscount>> updateActions)
Creates a command to update a CartDiscount selected by its ID using several update actions.
|
static CartDiscountUpdateCommand |
CartDiscountUpdateCommand.of(Versioned<CartDiscount> versioned,
List<? extends UpdateAction<CartDiscount>> updateActions)
Creates a command to update a CartDiscount selected by its ID using several update actions.
|
static CartDiscountUpdateCommand |
CartDiscountUpdateCommand.of(Versioned<CartDiscount> versioned,
UpdateAction<CartDiscount> updateAction,
UpdateAction<CartDiscount>... updateActions)
Creates a command to update a CartDiscount selected by its ID using one update action.
|
static CartDiscountUpdateCommand |
CartDiscountUpdateCommand.of(Versioned<CartDiscount> versioned,
UpdateAction<CartDiscount> updateAction,
UpdateAction<CartDiscount>... updateActions)
Creates a command to update a CartDiscount selected by its ID using one update action.
|
static CartDiscountUpdateCommand |
CartDiscountUpdateCommand.ofKey(String key,
Long version,
List<? extends UpdateAction<CartDiscount>> updateActions)
Creates a command to update a CartDiscount selected by its key using several update actions.
|
static CartDiscountUpdateCommand |
CartDiscountUpdateCommand.ofKey(String key,
Long version,
UpdateAction<CartDiscount> updateAction)
Creates a command to update a CartDiscount selected by its key using one update action.
|
Modifier and Type | Method and Description |
---|---|
static CartDiscountExpansionModel<CartDiscount> |
CartDiscountExpansionModel.of() |
Modifier and Type | Method and Description |
---|---|
List<ExpansionPath<CartDiscount>> |
CartDiscountByIdGet.expansionPaths() |
List<ExpansionPath<CartDiscount>> |
CartDiscountByKeyGet.expansionPaths() |
StringQuerySortingModel<CartDiscount> |
CartDiscountQueryModel.key() |
LocalizedStringQuerySortingModel<CartDiscount> |
CartDiscountQueryModel.name() |
static com.fasterxml.jackson.core.type.TypeReference<PagedQueryResult<CartDiscount>> |
CartDiscountQuery.resultTypeReference()
Creates a container which contains the full Java type information to deserialize the query result (NOT this class) from JSON.
|
Modifier and Type | Method and Description |
---|---|
List<Reference<CartDiscount>> |
Cart.getRefusedGifts()
The refused gifts of this cart.
|
Modifier and Type | Method and Description |
---|---|
ReferenceQueryModel<T,CartDiscount> |
DiscountedLineItemPortionQueryModel.discount() |
Modifier and Type | Method and Description |
---|---|
List<Reference<CartDiscount>> |
DiscountCode.getCartDiscounts()
The referenced matching cart discounts can be applied to the cart once the discount code is added (
AddDiscountCode ). |
List<Reference<CartDiscount>> |
DiscountCodeDraft.getCartDiscounts() |
Modifier and Type | Method and Description |
---|---|
static DiscountCodeDraftDsl |
DiscountCodeDraft.of(String code,
List<Reference<CartDiscount>> cartDiscounts) |
static DiscountCodeDraftDsl |
DiscountCodeDraftDsl.of(String code,
Referenceable<CartDiscount> cartDiscount) |
static DiscountCodeDraftBuilder |
DiscountCodeDraftBuilder.of(String code,
Referenceable<CartDiscount> cartDiscount) |
static DiscountCodeDraftDsl |
DiscountCodeDraft.of(String code,
Referenceable<CartDiscount> cartDiscount) |
DiscountCodeDraftDsl |
DiscountCodeDraftDsl.withCartDiscounts(Referenceable<CartDiscount> cartDiscount) |
Modifier and Type | Method and Description |
---|---|
List<Reference<CartDiscount>> |
ChangeCartDiscounts.getCartDiscounts() |
Modifier and Type | Method and Description |
---|---|
static ChangeCartDiscounts |
ChangeCartDiscounts.of(List<Reference<CartDiscount>> cartDiscounts) |
static ChangeCartDiscounts |
ChangeCartDiscounts.of(Referenceable<CartDiscount> cartDiscount) |
Modifier and Type | Method and Description |
---|---|
List<Reference<CartDiscount>> |
Order.getRefusedGifts()
The refused gifts of this cart.
|