import BaseResource from '../../BaseResource.js'; import type * as ApiTypes from '../ApiTypes.js'; import type * as RawApiTypes from '../RawApiTypes.js'; export default class PaymentIntent extends BaseResource { static readonly TYPE: "payment_intent"; /** * Create a payment intent starting from a payment method * * @throws {ApiError} * @throws {TimeoutError} * * @deprecated This API call is to be considered private and might change without notice */ createFromPaymentMethod(paymentMethodId: string | ApiTypes.PaymentMethodData, body: ApiTypes.PaymentIntentCreateFromPaymentMethodSchema): Promise; /** * Create a payment intent starting from a payment method * * @throws {ApiError} * @throws {TimeoutError} * * @deprecated This API call is to be considered private and might change without notice */ rawCreateFromPaymentMethod(paymentMethodId: string, body: RawApiTypes.PaymentIntentCreateFromPaymentMethodSchema): Promise; /** * Create a payment intent starting from an existing per-site billing profile * * @throws {ApiError} * @throws {TimeoutError} * * @deprecated This API call is to be considered private and might change without notice */ createForPerSitePricingBillingProfile(perSitePricingBillingProfileId: string | ApiTypes.PerSitePricingBillingProfileData, body: ApiTypes.PaymentIntentCreateForPerSitePricingBillingProfileSchema): Promise; /** * Create a payment intent starting from an existing per-site billing profile * * @throws {ApiError} * @throws {TimeoutError} * * @deprecated This API call is to be considered private and might change without notice */ rawCreateForPerSitePricingBillingProfile(perSitePricingBillingProfileId: string, body: RawApiTypes.PaymentIntentCreateForPerSitePricingBillingProfileSchema): Promise; /** * Create a payment intent starting from an existing per-owner billing profile * * @throws {ApiError} * @throws {TimeoutError} * * @deprecated This API call is to be considered private and might change without notice */ createForPerOwnerPricingBillingProfile(body: ApiTypes.PaymentIntentCreateForPerOwnerPricingBillingProfileSchema): Promise; /** * Create a payment intent starting from an existing per-owner billing profile * * @throws {ApiError} * @throws {TimeoutError} * * @deprecated This API call is to be considered private and might change without notice */ rawCreateForPerOwnerPricingBillingProfile(body: RawApiTypes.PaymentIntentCreateForPerOwnerPricingBillingProfileSchema): Promise; /** * Confirm a payment intent * * @throws {ApiError} * @throws {TimeoutError} * * @deprecated This API call is to be considered private and might change without notice */ confirm(paymentIntentId: string | ApiTypes.PaymentIntentData): Promise; /** * Confirm a payment intent * * @throws {ApiError} * @throws {TimeoutError} * * @deprecated This API call is to be considered private and might change without notice */ rawConfirm(paymentIntentId: string): Promise; }