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 PaymentQuotesClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * A Payment Quote prices a purchase exactly as a payment for it will be charged: the same line pricing, promo code, and tax, for a buyer located by the address, country, or IP address you send. A quote is priced once, can be consumed by one payment, and expires. * * Use the Payment Quotes API to show a buyer the total, tax, and currency before they pay, then pass the quote's `id` as `quote_id` when you create the payment to charge exactly that quote. Quote again whenever the cart, promo code, or address changes. */ export declare class PaymentQuotesClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: PaymentQuotesClient.Options); /** * Prices a purchase the way a payment for it will be charged. The body is the `PaymentInput` a payment takes plus where the buyer is, which a seller that collects no tax on the purchase can leave out. The purchase is priced from exactly what you send: no buyer is looked up, so no stored registration or purchase history applies. Pass the quote's `id` as `quote_id` when you create the payment to charge exactly the purchase, promo code, and tax shown here. A quote is priced once and may be consumed by one payment before `expires_at`. Cart entries must name existing variants with `variant_id`. * * @param {Whop.CreatePaymentQuotesRequest} request * @param {PaymentQuotesClient.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.paymentQuotes.create({ * account_id: "biz_xxxxxxxxxxxxxx" * }) */ create(request: Whop.CreatePaymentQuotesRequest, requestOptions?: PaymentQuotesClient.RequestOptions): core.HttpResponsePromise; private __create; /** * Retrieves a payment quote. Use it to check which payment holds the quote, through `payment_id`, and when it expires. * * @param {Whop.RetrievePaymentQuotesRequest} request * @param {PaymentQuotesClient.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.paymentQuotes.retrieve({ * id: "id" * }) */ retrieve(request: Whop.RetrievePaymentQuotesRequest, requestOptions?: PaymentQuotesClient.RequestOptions): core.HttpResponsePromise; private __retrieve; }