public final class AddLineItem extends StagedUpdateActionBase<OrderEdit>
Modifier and Type | Method and Description |
---|---|
CustomFieldsDraft |
getCustom() |
ResourceIdentifier<Channel> |
getDistributionChannel() |
javax.money.MonetaryAmount |
getExternalPrice() |
ExternalTaxRateDraft |
getExternalTaxRate() |
ExternalLineItemTotalPrice |
getExternalTotalPrice() |
String |
getProductId() |
Long |
getQuantity() |
ItemShippingDetailsDraft |
getShippingDetails() |
String |
getSku() |
ResourceIdentifier<Channel> |
getSupplyChannel() |
Integer |
getVariantId() |
static AddLineItem |
of(LineItemDraft template) |
static AddLineItem |
of(ProductIdentifiable product,
int variantId,
long quantity) |
static AddLineItem |
of(String productId,
int variantId,
long quantity) |
getAction
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getAction
public static AddLineItem of(ProductIdentifiable product, int variantId, long quantity)
public static AddLineItem of(String productId, int variantId, long quantity)
public static AddLineItem of(LineItemDraft template)
public String getProductId()
public Integer getVariantId()
public Long getQuantity()
@Nullable public ResourceIdentifier<Channel> getDistributionChannel()
@Nullable public ResourceIdentifier<Channel> getSupplyChannel()
@Nullable public CustomFieldsDraft getCustom()
@Nullable public ExternalTaxRateDraft getExternalTaxRate()
@Nullable public javax.money.MonetaryAmount getExternalPrice()
@Nullable public ExternalLineItemTotalPrice getExternalTotalPrice()
@Nullable public ItemShippingDetailsDraft getShippingDetails()