interface StagedOrderAddCustomLineItemAction {
    action: "addCustomLineItem";
    custom?: CustomFieldsDraft;
    externalTaxRate?: ExternalTaxRateDraft;
    money: _Money;
    name: LocalizedString;
    priceMode?: string;
    quantity?: number;
    slug: string;
    taxCategory?: TaxCategoryResourceIdentifier;
}

Properties

action: "addCustomLineItem"

The representation used when creating or updating a customizable data type with Custom Fields.

externalTaxRate?: ExternalTaxRateDraft

Controls calculation of taxed prices for Line Items, Custom Line Items, and Shipping Methods as explained in Cart tax calculation.

money: _Money

Draft type that stores amounts only in cent precision for the specified currency.

JSON object where the keys are of type Locale, and the values are the strings used for the corresponding language.

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
slug: string

Generated using TypeDoc