/** * @type Discount: Document representing a discount. * * @property amount: The discount amount for discount types that define specific discount amounts. * * @property percentage: The discount percent for discount types that define percentage discounts. * * @property priceBookId: The ID of the price book for discount types that use a price book. * - **Max Length:** 256 * * @property type: The type of discount. * */ export type Discount = { amount?: number; percentage?: number; priceBookId?: string; type: DiscountTypeEnum; } & { [key: string]: any; }; export type DiscountTypeEnum = 'percentage' | 'fixed_price' | 'amount' | 'free' | 'price_book_price' | 'bonus' | 'total_fixed_price' | 'bonus_choice' | 'percentage_off_options';