/// /// /// declare module 'chargebee' { export interface CouponSet { id: string; coupon_id: string; name: string; total_count?: number; redeemed_count?: number; archived_count?: number; meta_data?: any; } export namespace CouponSet { export class CouponSetResource { create( input: CreateInputParam, headers?: ChargebeeRequestHeader, ): Promise>; addCouponCodes( coupon_set_id: string, input?: AddCouponCodesInputParam, headers?: ChargebeeRequestHeader, ): Promise>; list( input?: ListInputParam, headers?: ChargebeeRequestHeader, ): Promise>; retrieve( coupon_set_id: string, headers?: ChargebeeRequestHeader, ): Promise>; update( coupon_set_id: string, input?: UpdateInputParam, headers?: ChargebeeRequestHeader, ): Promise>; delete( coupon_set_id: string, headers?: ChargebeeRequestHeader, ): Promise>; deleteUnusedCouponCodes( coupon_set_id: string, headers?: ChargebeeRequestHeader, ): Promise>; } export interface CreateResponse { coupon_set: CouponSet; } export interface AddCouponCodesResponse { coupon_set: CouponSet; } export interface ListResponse { list: { coupon_set: CouponSet }[]; next_offset?: string; } export interface RetrieveResponse { coupon_set: CouponSet; } export interface UpdateResponse { coupon_set: CouponSet; } export interface DeleteResponse { coupon_set: CouponSet; } export interface DeleteUnusedCouponCodesResponse { coupon_set: CouponSet; } // REQUEST PARAMS //--------------- export interface CreateInputParam { coupon_id: string; name: string; id: string; meta_data?: any; } export interface AddCouponCodesInputParam { code?: string[]; } export interface ListInputParam { limit?: number; offset?: string; id?: filter.String; name?: filter.String; coupon_id?: filter.String; total_count?: filter.Number; redeemed_count?: filter.Number; archived_count?: filter.Number; } export interface UpdateInputParam { name?: string; meta_data?: any; } } }