Package | Description |
---|---|
io.sphere.sdk.carts |
Provides model classes and builders for carts.
|
io.sphere.sdk.carts.commands.updateactions |
Provides the possible operations which can be performed on update commands for carts.
|
Modifier and Type | Method and Description |
---|---|
static CustomLineItemDraft |
CustomLineItemDraft.of(LocalizedString name,
String slug,
javax.money.MonetaryAmount money,
Referenceable<TaxCategory> taxCategory,
long quantity)
Creates a draft having a standard tax category and no custom fields.
|
static CustomLineItemDraft |
CustomLineItemDraft.of(LocalizedString name,
String slug,
javax.money.MonetaryAmount money,
Referenceable<TaxCategory> taxCategory,
long quantity,
CustomFieldsDraft custom)
Creates a draft having a standard tax category and custom fields.
|
static CustomLineItemDraft |
CustomLineItemDraft.ofExternalTaxCalculation(LocalizedString name,
String slug,
javax.money.MonetaryAmount money,
ExternalTaxRateDraft externalTaxRate,
long quantity)
Creates a draft having an external tax rate and no custom fields.
|
static CustomLineItemDraft |
CustomLineItemDraft.ofExternalTaxCalculation(LocalizedString name,
String slug,
javax.money.MonetaryAmount money,
ExternalTaxRateDraft externalTaxRate,
long quantity,
CustomFieldsDraft custom)
Creates a draft having an external tax rate and custom fields.
|
static CustomLineItemDraft |
CustomLineItemDraft.ofExternalTaxCalculation(LocalizedString name,
String slug,
javax.money.MonetaryAmount money,
long quantity)
Creates a draft having no tax rate (for external tax calculation) and no custom fields.
|
static CustomLineItemDraft |
CustomLineItemDraft.ofExternalTaxCalculation(LocalizedString name,
String slug,
javax.money.MonetaryAmount money,
long quantity,
CustomFieldsDraft custom)
Creates a draft having no tax rate (for external tax calculation) and custom fields.
|
Modifier and Type | Method and Description |
---|---|
List<CustomLineItemDraft> |
CartDraft.getCustomLineItems() |
Modifier and Type | Method and Description |
---|---|
static AddCustomLineItem |
AddCustomLineItem.of(CustomLineItemDraft draft) |