interface CustomLineItemImportDraft {
    custom?: CustomFieldsDraft;
    money: _Money;
    name: LocalizedString;
    priceMode: string;
    quantity: number;
    shippingDetails?: ItemShippingDetailsDraft;
    slug: string;
    state?: ItemState[];
    taxCategory?: TaxCategoryResourceIdentifier;
    taxRate?: TaxRate;
}

Properties

The custom fields.

money: _Money

The cost to add to the cart. The amount can be negative.

priceMode: string
  • If Standard, Cart Discounts with a matching CartDiscountCustomLineItemsTarget are applied to the Custom Line Item.
    • If External, Cart Discounts are not considered on the Custom Line Item.
quantity: number

The amount of a CustomLineItem in the cart. Must be a positive integer.

shippingDetails?: ItemShippingDetailsDraft
slug: string
state?: ItemState[]
taxRate?: TaxRate

Generated using TypeDoc