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 PaymentMethodsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class PaymentMethodsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: PaymentMethodsClient.Options); /** * Returns a paginated list of saved payment methods for a member or account, or for the authenticated user when you pass neither. * * Required permissions: * - `member:payment_methods:read` * * @param {Whop.ListPaymentMethodsRequest} request * @param {PaymentMethodsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.paymentMethods.list({ * first: 42, * last: 42, * member_id: "mber_xxxxxxxxxxxxx", * created_before: "2023-12-01T05:00:00Z", * created_after: "2023-12-01T05:00:00Z", * account_id: "biz_xxxxxxxxxxxxxx" * }) */ list(request?: Whop.ListPaymentMethodsRequest, requestOptions?: PaymentMethodsClient.RequestOptions): Promise>; /** * Retrieves a saved payment method from a member's wallet when you pass `member_id` or `account_id`, or from your own otherwise. * * Required permissions: * - `member:payment_methods:read` * * @param {Whop.RetrievePaymentMethodsRequest} request * @param {PaymentMethodsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.paymentMethods.retrieve({ * id: "payt_xxxxxxxxxxxxx", * member_id: "mber_xxxxxxxxxxxxx", * account_id: "biz_xxxxxxxxxxxxxx" * }) */ retrieve(request: Whop.RetrievePaymentMethodsRequest, requestOptions?: PaymentMethodsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Delete a saved payment method. Cannot delete a payment method attached to an active subscription. * * Required permissions: * - `member:payment_methods:manage` * * @param {Whop.DeletePaymentMethodRequest} request * @param {PaymentMethodsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link Whop.UnprocessableEntityError} * @throws {@link Whop.TooManyRequestsError} * @throws {@link Whop.InternalServerError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.paymentMethods.deletePaymentMethod({ * id: "payt_xxxxxxxxxxxxx", * member_id: "mber_xxxxxxxxxxxxx", * account_id: "biz_xxxxxxxxxxxxxx" * }) */ deletePaymentMethod(request: Whop.DeletePaymentMethodRequest, requestOptions?: PaymentMethodsClient.RequestOptions): core.HttpResponsePromise; private __deletePaymentMethod; }