import type { PriceAdjustment } from './PriceAdjustment'; /** * @type ShippingItem: Document representing a shipping item. * * @property adjustedTax: The tax for the shipping item, including price adjustments. It is read only. * * @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. It is read only. * * @property itemId: The shipping item ID. Use it to identify this shipping item when updating its quantity or creating a custom price adjustment for it. It is read only. * * @property itemText: The text describing the shipping item. * * @property price: The price of the line item before applying any adjustments. If the line item is based on net pricing then the net price is returned. If the line item is based on gross pricing then the gross price is returned. It is read only. * * @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. It is read only. * * @property shipmentId: The identifier of the shipment to which this item belongs. * - **Min Length:** 1 * * @property tax: The tax on the product item, not including adjustments. It is read only. * * @property taxBasis: The price used to calculate the tax for this shipping item. It is read only. * * @property taxClassId: The tax class ID for the product item, or null if no tax class ID is associated with the product item. It is read only. * * @property taxRate: The tax rate applicable to this product line item. For a 10% tax rate, the value is 0.1. It is read only. * */ export type ShippingItem = { adjustedTax?: number; basePrice?: number; itemId?: string; itemText?: string; price?: number; priceAdjustments?: Array; priceAfterItemDiscount?: number; shipmentId?: string; tax?: number; taxBasis?: number; taxClassId?: string; taxRate?: number; } & { [key: string]: any; };