Package | Description |
---|---|
io.sphere.sdk.products |
Provides model classes and builders for products.
|
Modifier and Type | Class and Description |
---|---|
class |
ProductVariantDraftDsl
Dsl class for
ProductVariantDraft . |
Modifier and Type | Method and Description |
---|---|
ProductVariantDraft |
ProductDraft.getMasterVariant() |
ProductVariantDraft |
ProductDraftDsl.getMasterVariant() |
Modifier and Type | Method and Description |
---|---|
List<ProductVariantDraft> |
ProductDraft.getVariants() |
List<ProductVariantDraft> |
ProductDraftDsl.getVariants() |
Modifier and Type | Method and Description |
---|---|
static ProductVariantDraftDsl |
ProductVariantDraftDsl.of(ProductVariantDraft template)
Creates a new object initialized with the fields of the template parameter.
|
static ProductDraftBuilder |
ProductDraftBuilder.of(ResourceIdentifiable<ProductType> productType,
LocalizedString name,
LocalizedString slug,
ProductVariantDraft masterVariant) |
static ProductDraftDsl |
ProductDraftDsl.of(ResourceIdentifier<ProductType> productType,
LocalizedString name,
LocalizedString slug,
ProductVariantDraft masterVariant)
Creates a new object initialized with the given values.
|
ProductDraftBuilder |
ProductDraftBuilder.plusVariants(ProductVariantDraft variantToAdd) |
ProductDraftDsl |
ProductDraftDsl.withMasterVariant(ProductVariantDraft masterVariant) |
Modifier and Type | Method and Description |
---|---|
static ProductDraftBuilder |
ProductDraftBuilder.of(ResourceIdentifiable<ProductType> productType,
LocalizedString name,
LocalizedString slug,
List<ProductVariantDraft> allVariants) |
ProductDraftBuilder |
ProductDraftBuilder.plusVariants(List<ProductVariantDraft> variantsToAdd) |
ProductDraftBuilder |
ProductDraftBuilder.variants(List<ProductVariantDraft> variants) |
ProductDraftDsl |
ProductDraftDsl.withVariants(List<ProductVariantDraft> variants) |