public final class LineItemDraftDsl extends Base
clone, finalize, getClass, notify, notifyAll, wait, wait, waitof, ofpublic LineItemDraftDsl withSupplyChannel(@Nullable Referenceable<Channel> supplyChannel)
public LineItemDraftDsl withDistributionChannel(@Nullable Referenceable<Channel> distributionChannel)
@Nullable public ZonedDateTime getAddedAt()
getAddedAt in interface LineItemDraft@Nullable public CustomFieldsDraft getCustom()
getCustom in interface LineItemDraft@Nullable public ResourceIdentifier<Channel> getDistributionChannel()
getDistributionChannel in interface LineItemDraft@Nullable public javax.money.MonetaryAmount getExternalPrice()
getExternalPrice in interface LineItemDraft@Nullable public ExternalTaxRateDraft getExternalTaxRate()
LineItemDraftTaxMode.EXTERNAL.getExternalTaxRate in interface LineItemDraftTaxMode@Nullable public ExternalLineItemTotalPrice getExternalTotalPrice()
getExternalTotalPrice in interface LineItemDraftpublic String getProductId()
getProductId in interface LineItemDraft@Nullable public Long getQuantity()
getQuantity in interface LineItemDraft@Nullable public ItemShippingDetailsDraft getShippingDetails()
LineItemDraftgetShippingDetails in interface LineItemDraftpublic String getSku()
getSku in interface LineItemDraft@Nullable public ResourceIdentifier<Channel> getSupplyChannel()
getSupplyChannel in interface LineItemDraftpublic Integer getVariantId()
getVariantId in interface LineItemDraftpublic LineItemDraftBuilder newBuilder()
public T withAddedAt(@Nullable ZonedDateTime addedAt)
public T withCustom(@Nullable CustomFieldsDraft custom)
public T withDistributionChannel(@Nullable ResourceIdentifier<Channel> distributionChannel)
public T withExternalPrice(@Nullable javax.money.MonetaryAmount externalPrice)
public T withExternalTaxRate(@Nullable ExternalTaxRateDraft externalTaxRate)
public T withExternalTotalPrice(@Nullable ExternalLineItemTotalPrice externalTotalPrice)
public T withProductId(String productId)
public T withShippingDetails(@Nullable ItemShippingDetailsDraft shippingDetails)
public T withSku(String sku)
public T withSupplyChannel(@Nullable ResourceIdentifier<Channel> supplyChannel)
public T withVariantId(Integer variantId)
public static LineItemDraftDsl ofSku(String sku, @Nullable Long quantity)
sku - initial value for the LineItemDraft.getSku() propertyquantity - initial value for the LineItemDraft.getQuantity() propertypublic static LineItemDraftDsl of(String productId, Integer variantId, @Nullable Long quantity, @Nullable ResourceIdentifier<Channel> supplyChannel, @Nullable ResourceIdentifier<Channel> distributionChannel, @Nullable CustomFieldsDraft custom, @Nullable ExternalTaxRateDraft externalTaxRate, @Nullable javax.money.MonetaryAmount externalPrice, @Nullable ExternalLineItemTotalPrice externalTotalPrice)
productId - initial value for the LineItemDraft.getProductId() propertyvariantId - initial value for the LineItemDraft.getVariantId() propertyquantity - initial value for the LineItemDraft.getQuantity() propertysupplyChannel - initial value for the LineItemDraft.getSupplyChannel() propertydistributionChannel - initial value for the LineItemDraft.getDistributionChannel() propertycustom - initial value for the LineItemDraft.getCustom() propertyexternalTaxRate - initial value for the LineItemDraft.getExternalTaxRate() propertyexternalPrice - initial value for the LineItemDraft.getExternalPrice() propertyexternalTotalPrice - initial value for the LineItemDraft.getExternalTotalPrice() propertypublic static LineItemDraftDsl of(LineItemDraft template)
template - the template