import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.mjs"; import * as core from "../../../../core/index.mjs"; import * as Whop from "../../../index.mjs"; export declare namespace CardsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * Cards represent virtual payment cards that spend from an account or user balance. Cards can be assigned to cardholders and configured with spending limits for controlled spending. * * Use the Cards API to issue cards, list cards for an account or user, retrieve active card details such as the card number and CVC, and list the transactions made with them. */ export declare class CardsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: CardsClient.Options); /** * Lists the Whop cards of an account or user, including ones still being set up. Team members only see the cards assigned to them. * * @param {Whop.ListCardsRequest} request * @param {CardsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.cards.list() */ list(request?: Whop.ListCardsRequest, requestOptions?: CardsClient.RequestOptions): core.HttpResponsePromise; private __list; /** * Issues a virtual card, or applies for card issuing. An account with no application files one here and gets back a `202`; call again to issue the card once it is approved. An account whose application was denied or canceled applies again the same way, replacing that application. * * @param {Whop.CreateCardsRequest} request * @param {CardsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.cards.create() */ create(request?: Whop.CreateCardsRequest, requestOptions?: CardsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves a single card, including its `secrets` (card number, CVC, and PIN), which List Cards does not return. * * @param {Whop.RetrieveCardsRequest} request * @param {CardsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.cards.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveCardsRequest, requestOptions?: CardsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Updates, freezes, or cancels a card. Updating the card's name, billing address, or limits requires both `payout:account:update` and `company:balance:read`; a card's assigned holder may update their own card's pin and frozen state with any user token. * * @param {Whop.UpdateCardsRequest} request * @param {CardsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.cards.update({ * id: "id" * }) */ update(request: Whop.UpdateCardsRequest, requestOptions?: CardsClient.RequestOptions): core.HttpResponsePromise; private __update; }