import type * as Whop from "../../../../index.mjs"; /** * @example * { * account_id: "account_id", * product_ids: ["prod_xxxxxxxxxxxxxx"], * variant_ids: ["plan_xxxxxxxxxxxxxx"] * } */ export interface ListPromoCodesRequest { /** Account whose promo codes are listed (`biz_` tag). */ account_id: string; /** Promo-code status. `expired` groups inactive and archived codes. */ status?: Whop.ListPromoCodesRequestStatus; /** Only promo codes scoped to these product IDs. */ product_ids?: string | string[]; /** Only promo codes scoped to these variant IDs. */ variant_ids?: string | string[]; /** Only promo codes created before this ISO 8601 timestamp. */ created_before?: string; /** Only promo codes created after this ISO 8601 timestamp. */ created_after?: string; /** Sort field. */ order?: Whop.ListPromoCodesRequestOrder; /** Sort direction. */ direction?: Whop.ListPromoCodesRequestDirection; /** Number of results to return from the start of the range. */ first?: number; /** Return results after this cursor. Use `page_info.end_cursor` from the previous response to fetch the next page. */ after?: string; /** Number of results to return from the end of the range. */ last?: number; /** Return results before this cursor. Use `page_info.start_cursor` from the previous response to fetch the previous page. */ before?: string; }