public interface LineItemDraft
CartCreateCommand
Modifier and Type | Method and Description |
---|---|
ZonedDateTime |
getAddedAt() |
CustomFieldsDraft |
getCustom() |
ResourceIdentifier<Channel> |
getDistributionChannel() |
javax.money.MonetaryAmount |
getExternalPrice() |
ExternalTaxRateDraft |
getExternalTaxRate()
The optional external tax rate if the cart has the tax mode
TaxMode.EXTERNAL . |
ExternalLineItemTotalPrice |
getExternalTotalPrice() |
String |
getProductId() |
Long |
getQuantity() |
ItemShippingDetailsDraft |
getShippingDetails()
Container for the sub-quantity of the line item quantity for the specific address
when multiple shipping addresses are required.
|
String |
getSku() |
ResourceIdentifier<Channel> |
getSupplyChannel() |
Integer |
getVariantId() |
static LineItemDraftDsl |
of(ProductIdentifiable product,
Integer variantId,
long quantity) |
static LineItemDraftDsl |
of(String productId,
Integer variantId,
long quantity) |
String getSku()
@Nullable CustomFieldsDraft getCustom()
@Nullable ResourceIdentifier<Channel> getDistributionChannel()
String getProductId()
@Nullable ResourceIdentifier<Channel> getSupplyChannel()
Integer getVariantId()
@Nullable ExternalTaxRateDraft getExternalTaxRate()
TaxMode.EXTERNAL
.TaxMode
@Nullable javax.money.MonetaryAmount getExternalPrice()
@Nullable ExternalLineItemTotalPrice getExternalTotalPrice()
@Nullable ZonedDateTime getAddedAt()
@Nullable ItemShippingDetailsDraft getShippingDetails()
static LineItemDraftDsl of(ProductIdentifiable product, Integer variantId, long quantity)
static LineItemDraftDsl of(String productId, Integer variantId, long quantity)