UNPKG

@salla.sa/twilight-components

Version:
27 lines (26 loc) 823 B
/** * Amount structure with currency */ export interface CouponAmount { amount: string; currency: string; } /** * Coupon data structure interface (matches API response) */ export interface Coupon { /** Unique coupon code */ code: string; /** Discount amount (number, string, or CouponAmount object for fixed coupons) */ amount: number | string | CouponAmount; /** Type of discount - percentage or fixed */ type: 'percentage' | 'fixed'; /** Minimum cart amount required to use this coupon */ minimum_amount?: CouponAmount; /** Maximum discount amount (for percentage coupons) */ maximum_amount?: CouponAmount; /** Remaining days until expiry */ remaining_days?: number; /** Whether this coupon includes free shipping */ free_shipping?: number | boolean; }