/** * @type DiscountRequest: Request that represents a discount to be applied to a custom price adjustment. * * @property type: The type of discount. - `amount` describes a (unit) price discount, and its corresponding value (positive) defines the amount each unit is to be reduced by. Example: For a $10 discount, set `type` to `amount` and `value` to `10.00`. - `percentage` describes a percentage discount, and its corresponding value (positive) defines the percentage reduction. Example: For a 5% discount, set `type` to `percentage` and `value` to `5.00`. - `fixed_price` describes a fixed price discount, and its corresponding value (positive) defines the resulting fixed price for the item. Only one `fixed_price` discount can be set for each item. Example: To set a fixed price of $15, set `type` to `fixed_price` and `value` to `15.00`. **Important**: Setting `type` to `fixed_price` is not supported when `level` is set to `order`. * * @property value: The amount of the discount. * */ export type DiscountRequest = { type: DiscountRequestTypeEnum; value: number; } & { [key: string]: any; }; export type DiscountRequestTypeEnum = 'percentage' | 'fixed_price' | 'amount';