import type { PriceAdjustment } from './PriceAdjustment'; /** * @type ShippingItem: Document representing a shipping item. * * @property basePrice: The base price of the shipping item, which is the unit price not including adjustments. If the taxation policy is net, it doesn\'t include tax. If the taxation policy is gross, it includes tax. * * @property grossPrice: The gross price of the shipping item before applying any adjustments. * * @property itemText: The text describing the shipping item. * - **Max Length:** 256 * * @property netPrice: The net price of the shipping item before applying any adjustments. * * @property tax: The tax for the shipping item, not including price adjustments. * * @property taxBasis: The amount used to calculate the tax for this shipping item. * * @property adjustedTax: The tax for the shipping item, including price adjustments. * * @property itemId: The shipping item ID. Use this value to identify this shipping item when updating its quantity or creating a custom price adjustment for it. * - **Min Length:** 1 * - **Max Length:** 256 * * @property priceAdjustments: The price adjustments. * * @property priceAfterItemDiscount: The price of the shipping item including item-level adjustments, but not including order-level adjustments or shipping charges. If the taxation policy is net, it doesn\'t include tax. If the taxation policy is gross, it includes tax. * * @property shipmentId: The ID of the shipment to which this item belongs. * - **Min Length:** 1 * - **Max Length:** 256 * * @property taxRate: The tax rate applicable to this shipping line item. For a 10% tax rate, the value is 0.1. * * @property type: The type of shipping charge applicable to this shipping item. * */ export type ShippingItem = { basePrice?: number; grossPrice?: number; itemText?: string; netPrice?: number; tax?: number; taxBasis?: number; adjustedTax?: number; itemId?: string; priceAdjustments?: Array; priceAfterItemDiscount?: number; shipmentId?: string; taxRate: number; type?: ShippingItemTypeEnum; } & { [key: string]: any; }; export type ShippingItemTypeEnum = 'fixed_price' | 'surcharge';