import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Whop from "../../../index.js"; export declare namespace CheckoutConfigurationsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * A Checkout Configuration is a reusable checkout link owned by an account. In `payment` mode it sells a specific variant; in `setup` mode it collects and saves payment details without charging. Each configuration can also override which payment methods are accepted and how 3D Secure is enforced for that checkout. * * Use the Checkout Configurations API to create checkout links for an existing or inline variant, list configurations for an account, retrieve the configuration behind a checkout URL, and delete links that should no longer be used. */ export declare class CheckoutConfigurationsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: CheckoutConfigurationsClient.Options); /** * Lists checkout configurations for an account. * * @param {Whop.ListCheckoutConfigurationsRequest} request * @param {CheckoutConfigurationsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.checkoutConfigurations.list({ * account_id: "account_id" * }) */ list(request: Whop.ListCheckoutConfigurationsRequest, requestOptions?: CheckoutConfigurationsClient.RequestOptions): Promise>; /** * Creates a reusable checkout configuration for an existing or inline variant. Send customers to its `purchase_url` to check out. * * @param {Whop.CreateCheckoutConfigurationsRequest} request * @param {CheckoutConfigurationsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ConflictError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.checkoutConfigurations.create({ * account_id: "biz_xxxxxxxxxxxxxx", * variant_id: "plan_xxxxxxxxxxxxx" * }) */ create(request?: Whop.CreateCheckoutConfigurationsRequest, requestOptions?: CheckoutConfigurationsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves a checkout configuration by ID. This endpoint is public so a checkout page can load from the configuration URL. * * @param {Whop.RetrieveCheckoutConfigurationsRequest} request * @param {CheckoutConfigurationsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.checkoutConfigurations.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveCheckoutConfigurationsRequest, requestOptions?: CheckoutConfigurationsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Deletes a checkout configuration so its checkout URL can no longer be used. * * @param {Whop.DeleteCheckoutConfigurationsRequest} request * @param {CheckoutConfigurationsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.checkoutConfigurations.delete({ * id: "id" * }) */ delete(request: Whop.DeleteCheckoutConfigurationsRequest, requestOptions?: CheckoutConfigurationsClient.RequestOptions): core.HttpResponsePromise; private __delete; }