export interface CreateCouponRequest { /** * The amount of money to subtract from an invoice total. This parameter is required if `percent_off` is unset. */ amount_off?: number; /** * Three-letter ISO 4217 code for the currency used in the `amount_off` parameter. Uppercase. Required when you define an amount off. */ currency?: string; /** * Specifies how long the discount remains in effect: **forever**, **once** or **repeating** */ duration: string; /** * Specifies the number of months that the coupon remains in effect after its creation. Relevant when `duration` is **repeating**. */ duration_in_months?: string; /** * Unique ID for this coupon. English alphanumeric characters with no special characters except underscore. If the merchant does not define an ID, Rapyd generates a string starting with **coupon_**. */ id?: `coupon_${string}`; /** * Specifies the number of instances of the coupon that can be redeemed. */ max_redemptions?: string; /** * A JSON object defined by the client. */ metadata?: object; /** * Determines the size of the discount, measured in percent. Range: 1-100. Required when `amount_off` is 0 or null. */ percent_off?: number; /** * Date the coupon expires, in Unix time. */ redeem_by?: number; } //# sourceMappingURL=CreateCouponRequest.d.ts.map