public static AddLineItem of(final String productId, final int variantId, final int quantity) { return new AddLineItem(productId, variantId, quantity); }
public static AddLineItem of(final String productId, final int variantId, final long quantity) { return new AddLineItem(productId, variantId, quantity, null, null, null); }
public static AddLineItem of(final String productId, final int variantId, final long quantity) { return new AddLineItem(productId, variantId, null, quantity, null, null, null, null, null, null); }
public static AddLineItem of(final String productId, final int variantId, final long quantity) { return new AddLineItem(productId, variantId, quantity); }
public static AddLineItem of(final String productId, final int variantId, final long quantity) { return new AddLineItem(productId, variantId, null, quantity, null, null, null, null, null, null); }
public AddLineItem withCustom(final CustomFieldsDraft custom) { return new AddLineItem(getProductId(), getVariantId(), getQuantity(), getSupplyChannel(), getDistributionChannel(), custom); } }
public AddLineItem withExternalPrice(@Nullable final MonetaryAmount externalPrice) { return new AddLineItem(getProductId(), getVariantId(), getSku(), getQuantity(), getSupplyChannel(), getDistributionChannel(), getCustom(), getExternalTaxRate(), externalPrice, getExternalTotalPrice()); }
public AddLineItem withSupplyChannel(final Referenceable<Channel> supplyChannel) { return new AddLineItem(getProductId(), getVariantId(), getQuantity(), supplyChannel.toReference(), getDistributionChannel(), getCustom()); }
public AddLineItem withDistributionChannel(final Referenceable<Channel> distributionChannel) { return new AddLineItem(getProductId(), getVariantId(), getQuantity(), getSupplyChannel(), distributionChannel.toReference(), getCustom()); }
public AddLineItem withExternalTotalPrice(@Nullable final ExternalLineItemTotalPrice externalTotalPrice) { return new AddLineItem(getProductId(), getVariantId(), getSku(), getQuantity(), getSupplyChannel(), getDistributionChannel(), getCustom(), getExternalTaxRate(), getExternalPrice(), externalTotalPrice); } }
public AddLineItem withExternalTotalPrice(@Nullable final ExternalLineItemTotalPrice externalTotalPrice) { return new AddLineItem(getProductId(), getVariantId(), getSku(), getQuantity(), getSupplyChannel(), getDistributionChannel(), getCustom(), getExternalTaxRate(), getExternalPrice(), externalTotalPrice); } }
public AddLineItem withExternalTaxRate(@Nullable final ExternalTaxRateDraft externalTaxRate) { return new AddLineItem(getProductId(), getVariantId(), getSku(), getQuantity(), getSupplyChannel(), getDistributionChannel(), getCustom(), externalTaxRate, getExternalPrice(), getExternalTotalPrice()); }
public AddLineItem withExternalTaxRate(@Nullable final ExternalTaxRateDraft externalTaxRate) { return new AddLineItem(getProductId(), getVariantId(), getSku(), getQuantity(), getSupplyChannel(), getDistributionChannel(), getCustom(), externalTaxRate, getExternalPrice(), getExternalTotalPrice()); }
public AddLineItem withCustom(final CustomFieldsDraft custom) { return new AddLineItem(getProductId(), getVariantId(), getSku(), getQuantity(), getSupplyChannel(), getDistributionChannel(), custom, getExternalTaxRate(), getExternalPrice(), getExternalTotalPrice()); }
public AddLineItem withDistributionChannel(final Referenceable<Channel> distributionChannel) { return new AddLineItem(getProductId(), getVariantId(), getSku(), getQuantity(), getSupplyChannel(), distributionChannel.toReference(), getCustom(), getExternalTaxRate(), getExternalPrice(), getExternalTotalPrice()); }
public AddLineItem withDistributionChannel(final Referenceable<Channel> distributionChannel) { return new AddLineItem(getProductId(), getVariantId(), getSku(), getQuantity(), getSupplyChannel(), distributionChannel.toReference(), getCustom(), getExternalTaxRate(), getExternalPrice(), getExternalTotalPrice()); }
public AddLineItem withSupplyChannel(final Referenceable<Channel> supplyChannel) { return new AddLineItem(getProductId(), getVariantId(), getSku(), getQuantity(), supplyChannel.toReference(), getDistributionChannel(), getCustom(), getExternalTaxRate(), getExternalPrice(), getExternalTotalPrice()); }
public static AddLineItem of(final LineItemDraft template) { return new AddLineItem(template.getProductId(), template.getVariantId(), template.getSku(), template.getQuantity(), template.getSupplyChannel(), template.getDistributionChannel(), template.getCustom(), template.getExternalTaxRate(), template.getExternalPrice(), template.getExternalTotalPrice()); }
public AddLineItem withSupplyChannel(final Referenceable<Channel> supplyChannel) { return new AddLineItem(getProductId(), getVariantId(), getSku(), getQuantity(), supplyChannel.toReference(), getDistributionChannel(), getCustom(), getExternalTaxRate(), getExternalPrice(), getExternalTotalPrice()); }
public static AddLineItem of(final LineItemDraft template) { return new AddLineItem(template.getProductId(), template.getVariantId(), template.getSku(), template.getQuantity(), template.getSupplyChannel(), template.getDistributionChannel(), template.getCustom(), template.getExternalTaxRate(), template.getExternalPrice(), template.getExternalTotalPrice()); }