public final class LineItemDraftDsl extends Base
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
of, of
public 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()
LineItemDraft
TaxMode.EXTERNAL
.getExternalTaxRate
in interface LineItemDraft
TaxMode
@Nullable public ExternalLineItemTotalPrice getExternalTotalPrice()
getExternalTotalPrice
in interface LineItemDraft
public String getProductId()
getProductId
in interface LineItemDraft
@Nullable public Long getQuantity()
getQuantity
in interface LineItemDraft
@Nullable public ItemShippingDetailsDraft getShippingDetails()
LineItemDraft
getShippingDetails
in interface LineItemDraft
public String getSku()
getSku
in interface LineItemDraft
@Nullable public ResourceIdentifier<Channel> getSupplyChannel()
getSupplyChannel
in interface LineItemDraft
public Integer getVariantId()
getVariantId
in interface LineItemDraft
public 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