Package | Description |
---|---|
io.sphere.sdk.cartdiscounts |
Provides model classes and builders for cart discounts.
|
io.sphere.sdk.carts |
Provides model classes and builders for carts.
|
io.sphere.sdk.products |
Provides model classes and builders for products.
|
io.sphere.sdk.products.commands |
Provides types to change the state of products.
|
io.sphere.sdk.shoppinglists |
Provides model classes and builders for shopping lists.
|
Modifier and Type | Method and Description |
---|---|
static GiftLineItemCartDiscountValue |
CartDiscountValue.ofGiftLineItem(ByIdVariantIdentifier variantIdentifier,
ResourceIdentifier<Channel> supplyChannel,
ResourceIdentifier<Channel> distributionChannel) |
Modifier and Type | Method and Description |
---|---|
static LineItemDraftBuilder |
LineItemDraftBuilder.ofVariantIdentifier(ByIdVariantIdentifier variantIdentifier,
Long quantity)
Creates a new object initialized with the given values.
|
Modifier and Type | Method and Description |
---|---|
ByIdVariantIdentifier |
ProductVariant.getIdentifier()
Gets the id of the product and the variant.
|
static ByIdVariantIdentifier |
ByIdVariantIdentifier.of(Referenceable<Product> product,
Integer variantId) |
static ByIdVariantIdentifier |
ByIdVariantIdentifier.of(String productId,
Integer variantId) |
Modifier and Type | Method and Description |
---|---|
default Optional<ProductVariant> |
ProductProjection.findVariant(ByIdVariantIdentifier identifier) |
Modifier and Type | Method and Description |
---|---|
static ProductImageUploadCommand |
ProductImageUploadCommand.ofVariantId(File body,
ByIdVariantIdentifier variantIdentifier) |
Modifier and Type | Method and Description |
---|---|
static LineItemDraftBuilder |
LineItemDraftBuilder.ofVariantIdentifier(ByIdVariantIdentifier variantIdentifier,
Long quantity)
Creates a new object initialized with the given values.
|