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 FinancingApplicationsClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * To accept payment-financing methods, an account applies through a financing application: a request to review the account for payment financing, not a loan or business capital. Create an application, save answers to its requirements, then submit it for review. You can manage applications for your own account and its direct connected accounts. */ export declare class FinancingApplicationsClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: FinancingApplicationsClient.Options); /** * Lists payment-financing applications. Without `account_id`, an account credential lists its own account and its direct connected accounts, but not deeper descendants, and a user credential lists every account it can read applications for. * * @param {Whop.ListFinancingApplicationsRequest} request * @param {FinancingApplicationsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.BadRequestError} * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.financingApplications.list() */ list(request?: Whop.ListFinancingApplicationsRequest, requestOptions?: FinancingApplicationsClient.RequestOptions): Promise>; /** * Starts an application for payment-financing approval, or returns the account's open one: an application in `awaiting_review` takes precedence over one in `requires_collection`, and the open application is reused across different `Idempotency-Key` values. Creating an application does not submit it for review. The account must have a Whop balance set up, and accounts in restricted industries cannot apply. Once an application closes, the account can apply again. * * @param {Whop.CreateFinancingApplicationsRequest} request * @param {FinancingApplicationsClient.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.financingApplications.create() */ create(request?: Whop.CreateFinancingApplicationsRequest, requestOptions?: FinancingApplicationsClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves a payment-financing application with its review state, requirements, saved answers, documents, current terms, and review feedback. Requires read access to the account that owns it. * * @param {Whop.RetrieveFinancingApplicationsRequest} request * @param {FinancingApplicationsClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Whop.UnauthorizedError} * @throws {@link Whop.ForbiddenError} * @throws {@link Whop.NotFoundError} * @throws {@link errors.WhopError} * @throws {@link errors.WhopTimeoutError} * * @example * await client.financingApplications.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrieveFinancingApplicationsRequest, requestOptions?: FinancingApplicationsClient.RequestOptions): core.HttpResponsePromise; private __retrieve; /** * Saves merchant answers to an application in `requires_collection`. The batch is atomic: if any answer is rejected, none are saved. Omitted requirements and answer fields are left unchanged. Saving answers does not submit the application; call Submit Financing Application when it is complete. * * @param {Whop.UpdateFinancingApplicationsRequest} request * @param {FinancingApplicationsClient.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.financingApplications.update({ * id: "id", * answers: [{ * requirement_id: "inrqi_xxxxxxxxxxxxxx" * }] * }) */ update(request: Whop.UpdateFinancingApplicationsRequest, requestOptions?: FinancingApplicationsClient.RequestOptions): core.HttpResponsePromise; private __update; /** * Submits a complete application for financing review, recording the merchant's acceptance, who submitted, and when, then moving it to `awaiting_review`. Before calling, present the application's `terms.content`, policies, and disclosure to the merchant and collect affirmative acceptance; every resubmission needs acceptance again. Only an application in `requires_collection` can be submitted, including after a reviewer requests more information. Retry with the same `Idempotency-Key`: submitting an application already in review without a replay returns an error. Approval does not by itself enable financing payment methods. * * @param {Whop.SubmitFinancingApplicationsRequest} request * @param {FinancingApplicationsClient.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.financingApplications.submit({ * id: "id", * merchant_acceptance: { * accepted: true, * terms_version: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" * } * }) */ submit(request: Whop.SubmitFinancingApplicationsRequest, requestOptions?: FinancingApplicationsClient.RequestOptions): core.HttpResponsePromise; private __submit; }