Transformer
Transformer: (item?
: LineItem, quantity?
: number
, additional?
: OrdersReturnItem) => Promise<DeepPartial<LineItem>> | DeepPartial<LineItem>
Type declaration
(item?, quantity?, additional?): Promise<DeepPartial<[LineItem](/references/services/classes/LineItem)>> \| DeepPartial<[LineItem](/references/services/classes/LineItem)>
Parameters
item
LineItemLine Items are created when a product is added to a Cart. When Line Items are purchased they will get copied to the resulting order, swap, or claim, and can eventually be referenced in Fulfillments and Returns. Line items may also be used for order edits.
quantity
numberadditional
OrdersReturnItemReturns
Was this section helpful?