import type { DiscountRequest } from './DiscountRequest'; /** * @type PriceAdjustmentRequest: Request that represents a price adjustment. * * @property discount: A discount that can be specified instead of a price. * * @property itemId: The item to which the price adjustment should be added, depending on the specified level. If the level is ´order´, item id is not needed. If `shipping`, specify the UUID of the shipping item. If `product`, specify the UUID of the product item. * * @property itemText: The text describing the item in more detail. * * @property level: The level at which the adjustment is applied. - `order` indicates that the price adjustment should be added directly to basket. - `product` indicates that the price adjustment should be added to the product item. - `shipping` indicates that the price adjustment is added to the shipping item. * * @property promotionId: The ID of the related promotion. Custom price adjustments can be assigned any promotion ID as long as it\'s not used by a price adjustment belonging to the same item and isn\'t used by a promotion defined in the promotion engine. If not specified, a promotion ID is generated. * * @property reasonCode: The reason for the price adjustment. * */ export type PriceAdjustmentRequest = { discount?: DiscountRequest; itemId?: string; itemText?: string; level: PriceAdjustmentRequestLevelEnum; promotionId?: string; reasonCode?: string; } & { [key: string]: any; }; export type PriceAdjustmentRequestLevelEnum = 'product' | 'shipping' | 'order';