diff --git a/CHANGELOG.md b/CHANGELOG.md index 8bff09117e..aba5c8ef44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,9 @@ This release changes the pinned API version to 2026-05-27.private. * Add support for new value `chaps` on enum `V2.FinancialAddressCreditSimulationCreditParams.network` * Add support for error codes `payment_method_microdeposit_processing_error` and `siret_invalid` on `QuotePreviewInvoice.last_finalization_error` +## 22.2.3 - 2026-06-22 +* [#2761](https://github.com/stripe/stripe-node/pull/2761) Encode URI path params in `accounts.retrieve` + ## 22.2.2 - 2026-06-18 * [#2725](https://github.com/stripe/stripe-node/pull/2725) Fixes CJS type exports for stripe package (reported in [#2683](https://github.com/stripe/stripe-node/issues/2683)) * [#2758](https://github.com/stripe/stripe-node/pull/2758) Fix `Stripe.ErrorType.StripeError` incorrectly being usable as a runtime class (reported in [#2661](https://github.com/stripe/stripe-node/issues/2661)) diff --git a/justfile b/justfile index 3f74a7fa9d..e78224a4bf 100644 --- a/justfile +++ b/justfile @@ -68,7 +68,7 @@ prettier *args: install prettier "{src,examples,scripts,test,types}/**/*.{ts,js}" {{ args }} # ⭐ format all files -format: (prettier "--write --loglevel silent") +format: (prettier "--write --loglevel error") # verify formatting of files (without changes) format-check: (prettier "--check") diff --git a/src/resources/Accounts.ts b/src/resources/Accounts.ts index b3708148c2..3bacc6a7a2 100644 --- a/src/resources/Accounts.ts +++ b/src/resources/Accounts.ts @@ -52,7 +52,7 @@ export class AccountResource extends StripeResource { if (typeof id === 'string') { return this._makeRequest( 'GET', - `/v1/accounts/${id}`, + `/v1/accounts/${encodeURIComponent(id)}`, params, options ) as any; diff --git a/src/resources/Apps/Secrets.ts b/src/resources/Apps/Secrets.ts index 1d072d3f0c..18c2399034 100644 --- a/src/resources/Apps/Secrets.ts +++ b/src/resources/Apps/Secrets.ts @@ -100,25 +100,23 @@ export interface Secret { */ payload?: string | null; - scope: Apps.Secret.Scope; + scope: Secret.Scope; } -export namespace Apps { - export namespace Secret { - export interface Scope { - /** - * The secret scope type. - */ - type: Scope.Type; +export namespace Secret { + export interface Scope { + /** + * The secret scope type. + */ + type: Scope.Type; - /** - * The user ID, if type is set to "user" - */ - user?: string; - } + /** + * The user ID, if type is set to "user" + */ + user?: string; + } - export namespace Scope { - export type Type = 'account' | 'user'; - } + export namespace Scope { + export type Type = 'account' | 'user'; } } export namespace Apps { diff --git a/src/resources/Billing/Alerts.ts b/src/resources/Billing/Alerts.ts index 1db6ae4532..3bfa1f3f30 100644 --- a/src/resources/Billing/Alerts.ts +++ b/src/resources/Billing/Alerts.ts @@ -117,7 +117,7 @@ export interface Alert { /** * Status of the alert. This can be active, inactive or archived. */ - status: Billing.Alert.Status | null; + status: Alert.Status | null; /** * Title of the alert. @@ -127,43 +127,41 @@ export interface Alert { /** * Encapsulates configuration of the alert to monitor usage on a specific [Billing Meter](https://docs.stripe.com/api/billing/meter). */ - usage_threshold: Billing.Alert.UsageThreshold | null; + usage_threshold: Alert.UsageThreshold | null; } -export namespace Billing { - export namespace Alert { - export type Status = 'active' | 'archived' | 'inactive'; +export namespace Alert { + export type Status = 'active' | 'archived' | 'inactive'; - export interface UsageThreshold { - /** - * The filters allow limiting the scope of this usage alert. You can only specify up to one filter at this time. - */ - filters: Array | null; + export interface UsageThreshold { + /** + * The filters allow limiting the scope of this usage alert. You can only specify up to one filter at this time. + */ + filters: Array | null; - /** - * The value at which this alert will trigger. - */ - gte: number; + /** + * The value at which this alert will trigger. + */ + gte: number; - /** - * The [Billing Meter](https://docs.stripe.com/api/billing/meter) ID whose usage is monitored. - */ - meter: string | Meter; + /** + * The [Billing Meter](https://docs.stripe.com/api/billing/meter) ID whose usage is monitored. + */ + meter: string | Meter; + + /** + * Defines how the alert will behave. + */ + recurrence: 'one_time'; + } + export namespace UsageThreshold { + export interface Filter { /** - * Defines how the alert will behave. + * Limit the scope of the alert to this customer ID */ - recurrence: 'one_time'; - } + customer: string | Customer | null; - export namespace UsageThreshold { - export interface Filter { - /** - * Limit the scope of the alert to this customer ID - */ - customer: string | Customer | null; - - type: 'customer'; - } + type: 'customer'; } } } diff --git a/src/resources/Billing/CreditBalanceSummary.ts b/src/resources/Billing/CreditBalanceSummary.ts index d96674746d..bffd120d4c 100644 --- a/src/resources/Billing/CreditBalanceSummary.ts +++ b/src/resources/Billing/CreditBalanceSummary.ts @@ -29,7 +29,7 @@ export interface CreditBalanceSummary { /** * The billing credit balances. One entry per credit grant currency. If a customer only has credit grants in a single currency, then this will have a single balance entry. */ - balances: Array; + balances: Array; /** * The customer the balance is for. @@ -46,65 +46,63 @@ export interface CreditBalanceSummary { */ livemode: boolean; } -export namespace Billing { - export namespace CreditBalanceSummary { - export interface Balance { - available_balance: Balance.AvailableBalance; +export namespace CreditBalanceSummary { + export interface Balance { + available_balance: Balance.AvailableBalance; + + ledger_balance: Balance.LedgerBalance; + } + + export namespace Balance { + export interface AvailableBalance { + /** + * The monetary amount. + */ + monetary: AvailableBalance.Monetary | null; + + /** + * The type of this amount. We currently only support `monetary` billing credits. + */ + type: 'monetary'; + } + + export interface LedgerBalance { + /** + * The monetary amount. + */ + monetary: LedgerBalance.Monetary | null; - ledger_balance: Balance.LedgerBalance; + /** + * The type of this amount. We currently only support `monetary` billing credits. + */ + type: 'monetary'; } - export namespace Balance { - export interface AvailableBalance { + export namespace AvailableBalance { + export interface Monetary { /** - * The monetary amount. + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). */ - monetary: AvailableBalance.Monetary | null; + currency: string; /** - * The type of this amount. We currently only support `monetary` billing credits. + * A positive integer representing the amount. */ - type: 'monetary'; + value: number; } + } - export interface LedgerBalance { + export namespace LedgerBalance { + export interface Monetary { /** - * The monetary amount. + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). */ - monetary: LedgerBalance.Monetary | null; + currency: string; /** - * The type of this amount. We currently only support `monetary` billing credits. + * A positive integer representing the amount. */ - type: 'monetary'; - } - - export namespace AvailableBalance { - export interface Monetary { - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency: string; - - /** - * A positive integer representing the amount. - */ - value: number; - } - } - - export namespace LedgerBalance { - export interface Monetary { - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency: string; - - /** - * A positive integer representing the amount. - */ - value: number; - } + value: number; } } } diff --git a/src/resources/Billing/CreditBalanceTransactions.ts b/src/resources/Billing/CreditBalanceTransactions.ts index 9204cfb3e6..7288655b88 100644 --- a/src/resources/Billing/CreditBalanceTransactions.ts +++ b/src/resources/Billing/CreditBalanceTransactions.ts @@ -60,7 +60,7 @@ export interface CreditBalanceTransaction { /** * Credit details for this credit balance transaction. Only present if type is `credit`. */ - credit: Billing.CreditBalanceTransaction.Credit | null; + credit: CreditBalanceTransaction.Credit | null; /** * The credit grant associated with this credit balance transaction. @@ -70,7 +70,7 @@ export interface CreditBalanceTransaction { /** * Debit details for this credit balance transaction. Only present if type is `debit`. */ - debit: Billing.CreditBalanceTransaction.Debit | null; + debit: CreditBalanceTransaction.Debit | null; /** * The effective time of this credit balance transaction. @@ -90,126 +90,119 @@ export interface CreditBalanceTransaction { /** * The type of credit balance transaction (credit or debit). */ - type: Billing.CreditBalanceTransaction.Type | null; + type: CreditBalanceTransaction.Type | null; } -export namespace Billing { - export namespace CreditBalanceTransaction { - export interface Credit { - amount: Credit.Amount; +export namespace CreditBalanceTransaction { + export interface Credit { + amount: Credit.Amount; + + /** + * Details of the invoice to which the reinstated credits were originally applied. Only present if `type` is `credits_application_invoice_voided`. + */ + credits_application_invoice_voided: Credit.CreditsApplicationInvoiceVoided | null; + + /** + * The type of credit transaction. + */ + type: Credit.Type; + } + + export interface Debit { + amount: Debit.Amount; + + /** + * Details of how the billing credits were applied to an invoice. Only present if `type` is `credits_applied`. + */ + credits_applied: Debit.CreditsApplied | null; + + /** + * The type of debit transaction. + */ + type: Debit.Type; + } + + export type Type = 'credit' | 'debit'; + export namespace Credit { + export interface Amount { /** - * Details of the invoice to which the reinstated credits were originally applied. Only present if `type` is `credits_application_invoice_voided`. + * The monetary amount. */ - credits_application_invoice_voided: Credit.CreditsApplicationInvoiceVoided | null; + monetary: Amount.Monetary | null; /** - * The type of credit transaction. + * The type of this amount. We currently only support `monetary` billing credits. */ - type: Credit.Type; + type: 'monetary'; } - export interface Debit { - amount: Debit.Amount; - + export interface CreditsApplicationInvoiceVoided { /** - * Details of how the billing credits were applied to an invoice. Only present if `type` is `credits_applied`. + * The invoice to which the reinstated billing credits were originally applied. */ - credits_applied: Debit.CreditsApplied | null; + invoice: string | Invoice; /** - * The type of debit transaction. + * The invoice line item to which the reinstated billing credits were originally applied. */ - type: Debit.Type; + invoice_line_item: string; } - export type Type = 'credit' | 'debit'; + export type Type = 'credits_application_invoice_voided' | 'credits_granted'; - export namespace Credit { - export interface Amount { + export namespace Amount { + export interface Monetary { /** - * The monetary amount. + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). */ - monetary: Amount.Monetary | null; + currency: string; /** - * The type of this amount. We currently only support `monetary` billing credits. + * A positive integer representing the amount. */ - type: 'monetary'; + value: number; } + } + } - export interface CreditsApplicationInvoiceVoided { - /** - * The invoice to which the reinstated billing credits were originally applied. - */ - invoice: string | Invoice; - - /** - * The invoice line item to which the reinstated billing credits were originally applied. - */ - invoice_line_item: string; - } + export namespace Debit { + export interface Amount { + /** + * The monetary amount. + */ + monetary: Amount.Monetary | null; - export type Type = - | 'credits_application_invoice_voided' - | 'credits_granted'; - - export namespace Amount { - export interface Monetary { - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency: string; - - /** - * A positive integer representing the amount. - */ - value: number; - } - } + /** + * The type of this amount. We currently only support `monetary` billing credits. + */ + type: 'monetary'; } - export namespace Debit { - export interface Amount { - /** - * The monetary amount. - */ - monetary: Amount.Monetary | null; + export interface CreditsApplied { + /** + * The invoice to which the billing credits were applied. + */ + invoice: string | Invoice; - /** - * The type of this amount. We currently only support `monetary` billing credits. - */ - type: 'monetary'; - } + /** + * The invoice line item to which the billing credits were applied. + */ + invoice_line_item: string; + } + + export type Type = 'credits_applied' | 'credits_expired' | 'credits_voided'; - export interface CreditsApplied { + export namespace Amount { + export interface Monetary { /** - * The invoice to which the billing credits were applied. + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). */ - invoice: string | Invoice; + currency: string; /** - * The invoice line item to which the billing credits were applied. + * A positive integer representing the amount. */ - invoice_line_item: string; - } - - export type Type = - | 'credits_applied' - | 'credits_expired' - | 'credits_voided'; - - export namespace Amount { - export interface Monetary { - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency: string; - - /** - * A positive integer representing the amount. - */ - value: number; - } + value: number; } } } diff --git a/src/resources/Billing/CreditGrants.ts b/src/resources/Billing/CreditGrants.ts index effcc673fa..cdc220d134 100644 --- a/src/resources/Billing/CreditGrants.ts +++ b/src/resources/Billing/CreditGrants.ts @@ -115,14 +115,14 @@ export interface CreditGrant { */ object: 'billing.credit_grant'; - amount: Billing.CreditGrant.Amount; + amount: CreditGrant.Amount; - applicability_config: Billing.CreditGrant.ApplicabilityConfig; + applicability_config: CreditGrant.ApplicabilityConfig; /** * The category of this credit grant. This is for tracking purposes and isn't displayed to the customer. */ - category: Billing.CreditGrant.Category; + category: CreditGrant.Category; /** * Time at which the object was created. Measured in seconds since the Unix epoch. @@ -184,60 +184,58 @@ export interface CreditGrant { */ voided_at: number | null; } -export namespace Billing { - export namespace CreditGrant { - export interface Amount { +export namespace CreditGrant { + export interface Amount { + /** + * The monetary amount. + */ + monetary: Amount.Monetary | null; + + /** + * The type of this amount. We currently only support `monetary` billing credits. + */ + type: 'monetary'; + } + + export interface ApplicabilityConfig { + scope: ApplicabilityConfig.Scope; + } + + export type Category = 'paid' | 'promotional'; + + export namespace Amount { + export interface Monetary { /** - * The monetary amount. + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). */ - monetary: Amount.Monetary | null; + currency: string; /** - * The type of this amount. We currently only support `monetary` billing credits. + * A positive integer representing the amount. */ - type: 'monetary'; - } - - export interface ApplicabilityConfig { - scope: ApplicabilityConfig.Scope; + value: number; } + } - export type Category = 'paid' | 'promotional'; - - export namespace Amount { - export interface Monetary { - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency: string; + export namespace ApplicabilityConfig { + export interface Scope { + /** + * The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`. + */ + price_type?: 'metered'; - /** - * A positive integer representing the amount. - */ - value: number; - } + /** + * The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `price_type`. + */ + prices?: Array; } - export namespace ApplicabilityConfig { - export interface Scope { - /** - * The price type that credit grants can apply to. We currently only support the `metered` price type. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `prices`. - */ - price_type?: 'metered'; - + export namespace Scope { + export interface Price { /** - * The prices that credit grants can apply to. We currently only support `metered` prices. This refers to prices that have a [Billing Meter](https://docs.stripe.com/api/billing/meter) attached to them. Cannot be used in combination with `price_type`. + * Unique identifier for the object. */ - prices?: Array; - } - - export namespace Scope { - export interface Price { - /** - * Unique identifier for the object. - */ - id: string | null; - } + id: string | null; } } } diff --git a/src/resources/Billing/MeterEventAdjustments.ts b/src/resources/Billing/MeterEventAdjustments.ts index eb4395b396..7e9abfc8ca 100644 --- a/src/resources/Billing/MeterEventAdjustments.ts +++ b/src/resources/Billing/MeterEventAdjustments.ts @@ -28,7 +28,7 @@ export interface MeterEventAdjustment { /** * Specifies which event to cancel. */ - cancel: Billing.MeterEventAdjustment.Cancel | null; + cancel: MeterEventAdjustment.Cancel | null; /** * The name of the meter event. Corresponds with the `event_name` field on a meter. @@ -43,24 +43,22 @@ export interface MeterEventAdjustment { /** * The meter event adjustment's status. */ - status: Billing.MeterEventAdjustment.Status; + status: MeterEventAdjustment.Status; /** * Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet. */ type: 'cancel'; } -export namespace Billing { - export namespace MeterEventAdjustment { - export interface Cancel { - /** - * Unique identifier for the event. - */ - identifier: string | null; - } - - export type Status = 'complete' | 'pending'; +export namespace MeterEventAdjustment { + export interface Cancel { + /** + * Unique identifier for the event. + */ + identifier: string | null; } + + export type Status = 'complete' | 'pending'; } export namespace Billing { export interface MeterEventAdjustmentCreateParams { diff --git a/src/resources/Billing/Meters.ts b/src/resources/Billing/Meters.ts index 8a9b79c1a1..cdfedbc7bd 100644 --- a/src/resources/Billing/Meters.ts +++ b/src/resources/Billing/Meters.ts @@ -126,9 +126,9 @@ export interface Meter { */ created: number; - customer_mapping: Billing.Meter.CustomerMapping; + customer_mapping: Meter.CustomerMapping; - default_aggregation: Billing.Meter.DefaultAggregation; + default_aggregation: Meter.DefaultAggregation; /** * The meter's name. @@ -143,7 +143,7 @@ export interface Meter { /** * The time window which meter events have been pre-aggregated for, if any. */ - event_time_window: Billing.Meter.EventTimeWindow | null; + event_time_window: Meter.EventTimeWindow | null; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -153,59 +153,57 @@ export interface Meter { /** * The meter's status. */ - status: Billing.Meter.Status; + status: Meter.Status; - status_transitions: Billing.Meter.StatusTransitions; + status_transitions: Meter.StatusTransitions; /** * Time at which the object was last updated. Measured in seconds since the Unix epoch. */ updated: number; - value_settings: Billing.Meter.ValueSettings; + value_settings: Meter.ValueSettings; } -export namespace Billing { - export namespace Meter { - export interface CustomerMapping { - /** - * The key in the meter event payload to use for mapping the event to a customer. - */ - event_payload_key: string; +export namespace Meter { + export interface CustomerMapping { + /** + * The key in the meter event payload to use for mapping the event to a customer. + */ + event_payload_key: string; - /** - * The method for mapping a meter event to a customer. - */ - type: 'by_id'; - } + /** + * The method for mapping a meter event to a customer. + */ + type: 'by_id'; + } - export interface DefaultAggregation { - /** - * Specifies how events are aggregated. - */ - formula: DefaultAggregation.Formula; - } + export interface DefaultAggregation { + /** + * Specifies how events are aggregated. + */ + formula: DefaultAggregation.Formula; + } - export type EventTimeWindow = 'day' | 'hour'; + export type EventTimeWindow = 'day' | 'hour'; - export type Status = 'active' | 'inactive'; + export type Status = 'active' | 'inactive'; - export interface StatusTransitions { - /** - * The time the meter was deactivated, if any. Measured in seconds since Unix epoch. - */ - deactivated_at: number | null; - } + export interface StatusTransitions { + /** + * The time the meter was deactivated, if any. Measured in seconds since Unix epoch. + */ + deactivated_at: number | null; + } - export interface ValueSettings { - /** - * The key in the meter event payload to use as the value for this meter. - */ - event_payload_key: string; - } + export interface ValueSettings { + /** + * The key in the meter event payload to use as the value for this meter. + */ + event_payload_key: string; + } - export namespace DefaultAggregation { - export type Formula = 'count' | 'last' | 'sum'; - } + export namespace DefaultAggregation { + export type Formula = 'count' | 'last' | 'sum'; } } export namespace Billing { diff --git a/src/resources/BillingPortal/Configurations.ts b/src/resources/BillingPortal/Configurations.ts index 14efafff61..9cd128bcdc 100644 --- a/src/resources/BillingPortal/Configurations.ts +++ b/src/resources/BillingPortal/Configurations.ts @@ -94,7 +94,7 @@ export interface Configuration { */ application: string | Application | DeletedApplication | null; - business_profile: BillingPortal.Configuration.BusinessProfile; + business_profile: Configuration.BusinessProfile; /** * Time at which the object was created. Measured in seconds since the Unix epoch. @@ -106,7 +106,7 @@ export interface Configuration { */ default_return_url: string | null; - features: BillingPortal.Configuration.Features; + features: Configuration.Features; /** * Whether the configuration is the default. If `true`, this configuration can be managed in the Dashboard and portal sessions will use this configuration unless it is overriden when creating the session. @@ -118,7 +118,7 @@ export interface Configuration { */ livemode: boolean; - login_page: BillingPortal.Configuration.LoginPage; + login_page: Configuration.LoginPage; /** * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. @@ -135,245 +135,243 @@ export interface Configuration { */ updated: number; } -export namespace BillingPortal { - export namespace Configuration { - export interface BusinessProfile { +export namespace Configuration { + export interface BusinessProfile { + /** + * The messaging shown to customers in the portal. + */ + headline: string | null; + + /** + * A link to the business's publicly available privacy policy. + */ + privacy_policy_url: string | null; + + /** + * A link to the business's publicly available terms of service. + */ + terms_of_service_url: string | null; + } + + export interface Features { + customer_update: Features.CustomerUpdate; + + invoice_history: Features.InvoiceHistory; + + payment_method_update: Features.PaymentMethodUpdate; + + subscription_cancel: Features.SubscriptionCancel; + + subscription_update: Features.SubscriptionUpdate; + } + + export interface LoginPage { + /** + * If `true`, a shareable `url` will be generated that will take your customers to a hosted login page for the customer portal. + * + * If `false`, the previously generated `url`, if any, will be deactivated. + */ + enabled: boolean; + + /** + * A shareable URL to the hosted portal login page. Your customers will be able to log in with their [email](https://docs.stripe.com/api/customers/object#customer_object-email) and receive a link to their customer portal. + */ + url: string | null; + } + + export namespace Features { + export interface CustomerUpdate { /** - * The messaging shown to customers in the portal. + * The types of customer updates that are supported. When empty, customers are not updateable. */ - headline: string | null; + allowed_updates: Array; /** - * A link to the business's publicly available privacy policy. + * Whether the feature is enabled. */ - privacy_policy_url: string | null; + enabled: boolean; + } + export interface InvoiceHistory { /** - * A link to the business's publicly available terms of service. + * Whether the feature is enabled. */ - terms_of_service_url: string | null; + enabled: boolean; } - export interface Features { - customer_update: Features.CustomerUpdate; + export interface PaymentMethodUpdate { + /** + * Whether the feature is enabled. + */ + enabled: boolean; - invoice_history: Features.InvoiceHistory; + /** + * The [Payment Method Configuration](https://docs.stripe.com/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set, the default payment method configuration is used. + */ + payment_method_configuration: string | null; + } - payment_method_update: Features.PaymentMethodUpdate; + export interface SubscriptionCancel { + cancellation_reason: SubscriptionCancel.CancellationReason; - subscription_cancel: Features.SubscriptionCancel; + /** + * Whether the feature is enabled. + */ + enabled: boolean; - subscription_update: Features.SubscriptionUpdate; + /** + * Whether to cancel subscriptions immediately or at the end of the billing period. + */ + mode: SubscriptionCancel.Mode; + + /** + * Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`. + */ + proration_behavior: SubscriptionCancel.ProrationBehavior; } - export interface LoginPage { + export interface SubscriptionUpdate { /** - * If `true`, a shareable `url` will be generated that will take your customers to a hosted login page for the customer portal. - * - * If `false`, the previously generated `url`, if any, will be deactivated. + * Determines the value to use for the billing cycle anchor on subscription updates. Valid values are `now` or `unchanged`, and the default value is `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). */ - enabled: boolean; + billing_cycle_anchor: SubscriptionUpdate.BillingCycleAnchor | null; /** - * A shareable URL to the hosted portal login page. Your customers will be able to log in with their [email](https://docs.stripe.com/api/customers/object#customer_object-email) and receive a link to their customer portal. + * The types of subscription updates that are supported for items listed in the `products` attribute. When empty, subscriptions are not updateable. */ - url: string | null; - } + default_allowed_updates: Array; - export namespace Features { - export interface CustomerUpdate { - /** - * The types of customer updates that are supported. When empty, customers are not updateable. - */ - allowed_updates: Array; + /** + * Whether the feature is enabled. + */ + enabled: boolean; - /** - * Whether the feature is enabled. - */ - enabled: boolean; - } + /** + * The list of up to 10 products that support subscription updates. + */ + products?: Array | null; - export interface InvoiceHistory { - /** - * Whether the feature is enabled. - */ - enabled: boolean; - } + /** + * Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. Defaults to a value of `none` if you don't set it during creation. + */ + proration_behavior: SubscriptionUpdate.ProrationBehavior; - export interface PaymentMethodUpdate { - /** - * Whether the feature is enabled. - */ - enabled: boolean; + schedule_at_period_end: SubscriptionUpdate.ScheduleAtPeriodEnd; - /** - * The [Payment Method Configuration](https://docs.stripe.com/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set, the default payment method configuration is used. - */ - payment_method_configuration: string | null; - } + /** + * Determines how handle updates to trialing subscriptions. Valid values are `end_trial` and `continue_trial`. Defaults to a value of `end_trial` if you don't set it during creation. + */ + trial_update_behavior: SubscriptionUpdate.TrialUpdateBehavior; + } - export interface SubscriptionCancel { - cancellation_reason: SubscriptionCancel.CancellationReason; + export namespace CustomerUpdate { + export type AllowedUpdate = + | 'address' + | 'email' + | 'name' + | 'phone' + | 'shipping' + | 'tax_id'; + } + export namespace SubscriptionCancel { + export interface CancellationReason { /** * Whether the feature is enabled. */ enabled: boolean; /** - * Whether to cancel subscriptions immediately or at the end of the billing period. + * Which cancellation reasons will be given as options to the customer. */ - mode: SubscriptionCancel.Mode; + options: Array; + } - /** - * Whether to create prorations when canceling subscriptions. Possible values are `none` and `create_prorations`. - */ - proration_behavior: SubscriptionCancel.ProrationBehavior; + export type Mode = 'at_period_end' | 'immediately'; + + export type ProrationBehavior = + | 'always_invoice' + | 'create_prorations' + | 'none'; + + export namespace CancellationReason { + export type Option = + | 'customer_service' + | 'low_quality' + | 'missing_features' + | 'other' + | 'switched_service' + | 'too_complex' + | 'too_expensive' + | 'unused'; } + } - export interface SubscriptionUpdate { - /** - * Determines the value to use for the billing cycle anchor on subscription updates. Valid values are `now` or `unchanged`, and the default value is `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle). - */ - billing_cycle_anchor: SubscriptionUpdate.BillingCycleAnchor | null; + export namespace SubscriptionUpdate { + export type BillingCycleAnchor = 'now' | 'unchanged'; - /** - * The types of subscription updates that are supported for items listed in the `products` attribute. When empty, subscriptions are not updateable. - */ - default_allowed_updates: Array; + export type DefaultAllowedUpdate = + | 'price' + | 'promotion_code' + | 'quantity'; - /** - * Whether the feature is enabled. - */ - enabled: boolean; + export interface Product { + adjustable_quantity: Product.AdjustableQuantity; /** - * The list of up to 10 products that support subscription updates. + * The list of price IDs which, when subscribed to, a subscription can be updated. */ - products?: Array | null; + prices: Array; /** - * Determines how to handle prorations resulting from subscription updates. Valid values are `none`, `create_prorations`, and `always_invoice`. Defaults to a value of `none` if you don't set it during creation. + * The product ID. */ - proration_behavior: SubscriptionUpdate.ProrationBehavior; + product: string; + } - schedule_at_period_end: SubscriptionUpdate.ScheduleAtPeriodEnd; + export type ProrationBehavior = + | 'always_invoice' + | 'create_prorations' + | 'none'; + export interface ScheduleAtPeriodEnd { /** - * Determines how handle updates to trialing subscriptions. Valid values are `end_trial` and `continue_trial`. Defaults to a value of `end_trial` if you don't set it during creation. + * List of conditions. When any condition is true, an update will be scheduled at the end of the current period. */ - trial_update_behavior: SubscriptionUpdate.TrialUpdateBehavior; + conditions: Array; } - export namespace CustomerUpdate { - export type AllowedUpdate = - | 'address' - | 'email' - | 'name' - | 'phone' - | 'shipping' - | 'tax_id'; - } + export type TrialUpdateBehavior = 'continue_trial' | 'end_trial'; - export namespace SubscriptionCancel { - export interface CancellationReason { + export namespace Product { + export interface AdjustableQuantity { /** - * Whether the feature is enabled. + * If true, the quantity can be adjusted to any non-negative integer. */ enabled: boolean; /** - * Which cancellation reasons will be given as options to the customer. - */ - options: Array; - } - - export type Mode = 'at_period_end' | 'immediately'; - - export type ProrationBehavior = - | 'always_invoice' - | 'create_prorations' - | 'none'; - - export namespace CancellationReason { - export type Option = - | 'customer_service' - | 'low_quality' - | 'missing_features' - | 'other' - | 'switched_service' - | 'too_complex' - | 'too_expensive' - | 'unused'; - } - } - - export namespace SubscriptionUpdate { - export type BillingCycleAnchor = 'now' | 'unchanged'; - - export type DefaultAllowedUpdate = - | 'price' - | 'promotion_code' - | 'quantity'; - - export interface Product { - adjustable_quantity: Product.AdjustableQuantity; - - /** - * The list of price IDs which, when subscribed to, a subscription can be updated. + * The maximum quantity that can be set for the product. */ - prices: Array; + maximum: number | null; /** - * The product ID. + * The minimum quantity that can be set for the product. */ - product: string; + minimum: number; } + } - export type ProrationBehavior = - | 'always_invoice' - | 'create_prorations' - | 'none'; - - export interface ScheduleAtPeriodEnd { + export namespace ScheduleAtPeriodEnd { + export interface Condition { /** - * List of conditions. When any condition is true, an update will be scheduled at the end of the current period. + * The type of condition. */ - conditions: Array; + type: Condition.Type; } - export type TrialUpdateBehavior = 'continue_trial' | 'end_trial'; - - export namespace Product { - export interface AdjustableQuantity { - /** - * If true, the quantity can be adjusted to any non-negative integer. - */ - enabled: boolean; - - /** - * The maximum quantity that can be set for the product. - */ - maximum: number | null; - - /** - * The minimum quantity that can be set for the product. - */ - minimum: number; - } - } - - export namespace ScheduleAtPeriodEnd { - export interface Condition { - /** - * The type of condition. - */ - type: Condition.Type; - } - - export namespace Condition { - export type Type = 'decreasing_item_amount' | 'shortening_interval'; - } + export namespace Condition { + export type Type = 'decreasing_item_amount' | 'shortening_interval'; } } } diff --git a/src/resources/BillingPortal/Sessions.ts b/src/resources/BillingPortal/Sessions.ts index ae1d535a66..e2b4122b00 100644 --- a/src/resources/BillingPortal/Sessions.ts +++ b/src/resources/BillingPortal/Sessions.ts @@ -54,7 +54,7 @@ export interface Session { /** * Information about a specific flow for the customer to go through. See the [docs](https://docs.stripe.com/customer-management/portal-deep-links) to learn more about using customer portal deep links and flows. */ - flow: BillingPortal.Session.Flow | null; + flow: Session.Flow | null; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -64,7 +64,7 @@ export interface Session { /** * The IETF language tag of the locale Customer Portal is displayed in. If blank or auto, the customer's `preferred_locales` or browser's locale is used. */ - locale: BillingPortal.Session.Locale | null; + locale: Session.Locale | null; /** * The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://docs.stripe.com/connect/separate-charges-and-transfers#settlement-merchant). Use the [Accounts API](https://docs.stripe.com/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays. @@ -81,214 +81,209 @@ export interface Session { */ url: string; } -export namespace BillingPortal { - export namespace Session { - export interface Flow { - after_completion: Flow.AfterCompletion; +export namespace Session { + export interface Flow { + after_completion: Flow.AfterCompletion; + + /** + * Configuration when `flow.type=subscription_cancel`. + */ + subscription_cancel: Flow.SubscriptionCancel | null; + + /** + * Configuration when `flow.type=subscription_update`. + */ + subscription_update: Flow.SubscriptionUpdate | null; + + /** + * Configuration when `flow.type=subscription_update_confirm`. + */ + subscription_update_confirm: Flow.SubscriptionUpdateConfirm | null; + /** + * Type of flow that the customer will go through. + */ + type: Flow.Type; + } + + export type Locale = + | 'auto' + | 'bg' + | 'cs' + | 'da' + | 'de' + | 'el' + | 'en' + | 'en-AU' + | 'en-CA' + | 'en-GB' + | 'en-IE' + | 'en-IN' + | 'en-NZ' + | 'en-SG' + | 'es' + | 'es-419' + | 'et' + | 'fi' + | 'fil' + | 'fr' + | 'fr-CA' + | 'hr' + | 'hu' + | 'id' + | 'it' + | 'ja' + | 'ko' + | 'lt' + | 'lv' + | 'ms' + | 'mt' + | 'nb' + | 'nl' + | 'pl' + | 'pt' + | 'pt-BR' + | 'ro' + | 'ru' + | 'sk' + | 'sl' + | 'sv' + | 'th' + | 'tr' + | 'vi' + | 'zh' + | 'zh-HK' + | 'zh-TW'; + + export namespace Flow { + export interface AfterCompletion { /** - * Configuration when `flow.type=subscription_cancel`. + * Configuration when `after_completion.type=hosted_confirmation`. */ - subscription_cancel: Flow.SubscriptionCancel | null; + hosted_confirmation: AfterCompletion.HostedConfirmation | null; /** - * Configuration when `flow.type=subscription_update`. + * Configuration when `after_completion.type=redirect`. */ - subscription_update: Flow.SubscriptionUpdate | null; + redirect: AfterCompletion.Redirect | null; /** - * Configuration when `flow.type=subscription_update_confirm`. + * The specified type of behavior after the flow is completed. */ - subscription_update_confirm: Flow.SubscriptionUpdateConfirm | null; + type: AfterCompletion.Type; + } + export interface SubscriptionCancel { /** - * Type of flow that the customer will go through. + * Specify a retention strategy to be used in the cancellation flow. */ - type: Flow.Type; + retention: SubscriptionCancel.Retention | null; + + /** + * The ID of the subscription to be canceled. + */ + subscription: string; } - export type Locale = - | 'auto' - | 'bg' - | 'cs' - | 'da' - | 'de' - | 'el' - | 'en' - | 'en-AU' - | 'en-CA' - | 'en-GB' - | 'en-IE' - | 'en-IN' - | 'en-NZ' - | 'en-SG' - | 'es' - | 'es-419' - | 'et' - | 'fi' - | 'fil' - | 'fr' - | 'fr-CA' - | 'hr' - | 'hu' - | 'id' - | 'it' - | 'ja' - | 'ko' - | 'lt' - | 'lv' - | 'ms' - | 'mt' - | 'nb' - | 'nl' - | 'pl' - | 'pt' - | 'pt-BR' - | 'ro' - | 'ru' - | 'sk' - | 'sl' - | 'sv' - | 'th' - | 'tr' - | 'vi' - | 'zh' - | 'zh-HK' - | 'zh-TW'; + export interface SubscriptionUpdate { + /** + * The ID of the subscription to be updated. + */ + subscription: string; + } - export namespace Flow { - export interface AfterCompletion { - /** - * Configuration when `after_completion.type=hosted_confirmation`. - */ - hosted_confirmation: AfterCompletion.HostedConfirmation | null; + export interface SubscriptionUpdateConfirm { + /** + * The coupon or promotion code to apply to this subscription update. + */ + discounts: Array | null; - /** - * Configuration when `after_completion.type=redirect`. - */ - redirect: AfterCompletion.Redirect | null; + /** + * The [subscription item](https://docs.stripe.com/api/subscription_items) to be updated through this flow. Currently, only up to one may be specified and subscriptions with multiple items are not updatable. + */ + items: Array; - /** - * The specified type of behavior after the flow is completed. - */ - type: AfterCompletion.Type; - } + /** + * The ID of the subscription to be updated. + */ + subscription: string; + } - export interface SubscriptionCancel { - /** - * Specify a retention strategy to be used in the cancellation flow. - */ - retention: SubscriptionCancel.Retention | null; + export type Type = + | 'payment_method_update' + | 'subscription_cancel' + | 'subscription_update' + | 'subscription_update_confirm'; + export namespace AfterCompletion { + export interface HostedConfirmation { /** - * The ID of the subscription to be canceled. + * A custom message to display to the customer after the flow is completed. */ - subscription: string; + custom_message: string | null; } - export interface SubscriptionUpdate { + export interface Redirect { /** - * The ID of the subscription to be updated. + * The URL the customer will be redirected to after the flow is completed. */ - subscription: string; + return_url: string; } - export interface SubscriptionUpdateConfirm { - /** - * The coupon or promotion code to apply to this subscription update. - */ - discounts: Array | null; + export type Type = 'hosted_confirmation' | 'portal_homepage' | 'redirect'; + } + export namespace SubscriptionCancel { + export interface Retention { /** - * The [subscription item](https://docs.stripe.com/api/subscription_items) to be updated through this flow. Currently, only up to one may be specified and subscriptions with multiple items are not updatable. + * Configuration when `retention.type=coupon_offer`. */ - items: Array; + coupon_offer: Retention.CouponOffer | null; /** - * The ID of the subscription to be updated. + * Type of retention strategy that will be used. */ - subscription: string; + type: 'coupon_offer'; } - export type Type = - | 'payment_method_update' - | 'subscription_cancel' - | 'subscription_update' - | 'subscription_update_confirm'; - - export namespace AfterCompletion { - export interface HostedConfirmation { + export namespace Retention { + export interface CouponOffer { /** - * A custom message to display to the customer after the flow is completed. + * The ID of the coupon to be offered. */ - custom_message: string | null; + coupon: string; } - - export interface Redirect { - /** - * The URL the customer will be redirected to after the flow is completed. - */ - return_url: string; - } - - export type Type = - | 'hosted_confirmation' - | 'portal_homepage' - | 'redirect'; } + } - export namespace SubscriptionCancel { - export interface Retention { - /** - * Configuration when `retention.type=coupon_offer`. - */ - coupon_offer: Retention.CouponOffer | null; - - /** - * Type of retention strategy that will be used. - */ - type: 'coupon_offer'; - } + export namespace SubscriptionUpdateConfirm { + export interface Discount { + /** + * The ID of the coupon to apply to this subscription update. + */ + coupon: string | null; - export namespace Retention { - export interface CouponOffer { - /** - * The ID of the coupon to be offered. - */ - coupon: string; - } - } + /** + * The ID of a promotion code to apply to this subscription update. + */ + promotion_code: string | null; } - export namespace SubscriptionUpdateConfirm { - export interface Discount { - /** - * The ID of the coupon to apply to this subscription update. - */ - coupon: string | null; - - /** - * The ID of a promotion code to apply to this subscription update. - */ - promotion_code: string | null; - } - - export interface Item { - /** - * The ID of the [subscription item](https://docs.stripe.com/api/subscriptions/object#subscription_object-items-data-id) to be updated. - */ - id: string | null; + export interface Item { + /** + * The ID of the [subscription item](https://docs.stripe.com/api/subscriptions/object#subscription_object-items-data-id) to be updated. + */ + id: string | null; - /** - * The price the customer should subscribe to through this flow. The price must also be included in the configuration's [`features.subscription_update.products`](https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products). - */ - price: string | null; + /** + * The price the customer should subscribe to through this flow. The price must also be included in the configuration's [`features.subscription_update.products`](https://docs.stripe.com/api/customer_portal/configuration#portal_configuration_object-features-subscription_update-products). + */ + price: string | null; - /** - * [Quantity](https://docs.stripe.com/subscriptions/quantities) for this item that the customer should subscribe to through this flow. - */ - quantity?: number; - } + /** + * [Quantity](https://docs.stripe.com/subscriptions/quantities) for this item that the customer should subscribe to through this flow. + */ + quantity?: number; } } } diff --git a/src/resources/Capital/FinancingOffers.ts b/src/resources/Capital/FinancingOffers.ts index d2cc1bd7b7..da5b0bd0a0 100644 --- a/src/resources/Capital/FinancingOffers.ts +++ b/src/resources/Capital/FinancingOffers.ts @@ -71,7 +71,7 @@ export interface FinancingOffer { * the terms accepted by the Connected account, which may differ from those * offered. */ - accepted_terms?: Capital.FinancingOffer.AcceptedTerms; + accepted_terms?: FinancingOffer.AcceptedTerms; /** * The ID of the merchant associated with this financing object. @@ -96,7 +96,7 @@ export interface FinancingOffer { /** * The type of financing being offered. */ - financing_type?: Capital.FinancingOffer.FinancingType; + financing_type?: FinancingOffer.FinancingType; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -113,12 +113,12 @@ export interface FinancingOffer { * Stripe Capital to a Connected account. This resource represents * both the terms offered to the Connected account. */ - offered_terms?: Capital.FinancingOffer.OfferedTerms; + offered_terms?: FinancingOffer.OfferedTerms; /** * Financing product identifier. */ - product_type?: Capital.FinancingOffer.ProductType; + product_type?: FinancingOffer.ProductType; /** * The ID of the financing offer that replaced this offer. @@ -133,102 +133,100 @@ export interface FinancingOffer { /** * The current status of the offer. */ - status: Capital.FinancingOffer.Status; + status: FinancingOffer.Status; /** * See [financing_type](https://docs.stripe.com/api/capital/connect_financing_object#financing_offer_object-financing_type). */ - type?: Capital.FinancingOffer.Type; + type?: FinancingOffer.Type; } -export namespace Capital { - export namespace FinancingOffer { - export interface AcceptedTerms { - /** - * Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000. - */ - advance_amount: number; - - /** - * Currency that the financing offer is transacted in. For example, `usd`. - */ - currency: string; - - /** - * Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. - */ - fee_amount: number; - - /** - * Populated when the `product_type` of the `financingoffer` is `refill`. - * Represents the discount amount on remaining premium for the existing loan at payout time. - */ - previous_financing_fee_discount_amount: number | null; - - /** - * Per-transaction rate at which Stripe withholds funds to repay the financing. - */ - withhold_rate: number; - } - - export type FinancingType = 'cash_advance' | 'flex_loan'; - - export interface OfferedTerms { - /** - * Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000. - */ - advance_amount: number; - - /** - * Describes the type of user the offer is being extended to. - */ - campaign_type: OfferedTerms.CampaignType; - - /** - * Currency that the financing offer is transacted in. For example, `usd`. - */ - currency: string; - - /** - * Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. - */ - fee_amount: number; - - /** - * Populated when the `product_type` of the `financingoffer` is `refill`. - * Represents the discount rate percentage on remaining fee on the existing loan. When the `financing_offer` - * is paid out, the `previous_financing_fee_discount_amount` will be computed as the multiple of this rate - * and the remaining fee. - */ - previous_financing_fee_discount_rate: number | null; - - /** - * Per-transaction rate at which Stripe withholds funds to repay the financing. - */ - withhold_rate: number; - } - - export type ProductType = 'refill' | 'standard'; +export namespace FinancingOffer { + export interface AcceptedTerms { + /** + * Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000. + */ + advance_amount: number; - export type Status = - | 'accepted' - | 'canceled' - | 'completed' - | 'delivered' - | 'expired' - | 'fully_repaid' - | 'paid_out' - | 'rejected' - | 'replaced' - | 'undelivered'; + /** + * Currency that the financing offer is transacted in. For example, `usd`. + */ + currency: string; + + /** + * Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. + */ + fee_amount: number; + + /** + * Populated when the `product_type` of the `financingoffer` is `refill`. + * Represents the discount amount on remaining premium for the existing loan at payout time. + */ + previous_financing_fee_discount_amount: number | null; + + /** + * Per-transaction rate at which Stripe withholds funds to repay the financing. + */ + withhold_rate: number; + } + + export type FinancingType = 'cash_advance' | 'flex_loan'; + + export interface OfferedTerms { + /** + * Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000. + */ + advance_amount: number; + + /** + * Describes the type of user the offer is being extended to. + */ + campaign_type: OfferedTerms.CampaignType; + + /** + * Currency that the financing offer is transacted in. For example, `usd`. + */ + currency: string; + + /** + * Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. + */ + fee_amount: number; - export type Type = 'cash_advance' | 'fixed_term_loan' | 'flex_loan'; + /** + * Populated when the `product_type` of the `financingoffer` is `refill`. + * Represents the discount rate percentage on remaining fee on the existing loan. When the `financing_offer` + * is paid out, the `previous_financing_fee_discount_amount` will be computed as the multiple of this rate + * and the remaining fee. + */ + previous_financing_fee_discount_rate: number | null; + + /** + * Per-transaction rate at which Stripe withholds funds to repay the financing. + */ + withhold_rate: number; + } - export namespace OfferedTerms { - export type CampaignType = - | 'newly_eligible_user' - | 'previously_eligible_user' - | 'repeat_user'; - } + export type ProductType = 'refill' | 'standard'; + + export type Status = + | 'accepted' + | 'canceled' + | 'completed' + | 'delivered' + | 'expired' + | 'fully_repaid' + | 'paid_out' + | 'rejected' + | 'replaced' + | 'undelivered'; + + export type Type = 'cash_advance' | 'fixed_term_loan' | 'flex_loan'; + + export namespace OfferedTerms { + export type CampaignType = + | 'newly_eligible_user' + | 'previously_eligible_user' + | 'repeat_user'; } } export namespace Capital { diff --git a/src/resources/Capital/FinancingSummary.ts b/src/resources/Capital/FinancingSummary.ts index 8946dde12a..fef1f77c59 100644 --- a/src/resources/Capital/FinancingSummary.ts +++ b/src/resources/Capital/FinancingSummary.ts @@ -32,7 +32,7 @@ export interface FinancingSummary { * * Only present for financing offers with the `paid_out` status. */ - details: Capital.FinancingSummary.Details | null; + details: FinancingSummary.Details | null; /** * The unique identifier of the Financing Offer object that corresponds to the Financing Summary object. @@ -42,77 +42,75 @@ export interface FinancingSummary { /** * The financing status of the connected account. */ - status: Capital.FinancingSummary.Status | null; + status: FinancingSummary.Status | null; } -export namespace Capital { - export namespace FinancingSummary { - export interface Details { - /** - * Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000. - */ - advance_amount: number; +export namespace FinancingSummary { + export interface Details { + /** + * Amount of financing offered, in minor units. For example, 1,000 USD is represented as 100000. + */ + advance_amount: number; - /** - * The time at which the funds were paid out to the connected account's Stripe balance. Given in milliseconds since unix epoch. - */ - advance_paid_out_at: number | null; + /** + * The time at which the funds were paid out to the connected account's Stripe balance. Given in milliseconds since unix epoch. + */ + advance_paid_out_at: number | null; - /** - * Currency that the financing offer is transacted in. For example, `usd`. - */ - currency: string; + /** + * Currency that the financing offer is transacted in. For example, `usd`. + */ + currency: string; - /** - * The chronologically current repayment interval for the financing offer. - */ - current_repayment_interval: Details.CurrentRepaymentInterval | null; + /** + * The chronologically current repayment interval for the financing offer. + */ + current_repayment_interval: Details.CurrentRepaymentInterval | null; - /** - * Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. - */ - fee_amount: number; + /** + * Fixed fee amount, in minor units. For example, 100 USD is represented as 10000. + */ + fee_amount: number; - /** - * The amount the Connected account has paid toward the financing debt so far, in minor units. For example, 1,000 USD is represented as 100000. - */ - paid_amount: number; + /** + * The amount the Connected account has paid toward the financing debt so far, in minor units. For example, 1,000 USD is represented as 100000. + */ + paid_amount: number; + + /** + * The balance remaining to be paid on the financing, in minor units. For example, 1,000 USD is represented as 100000. + */ + remaining_amount: number; + + /** + * The time at which Capital will begin withholding from payments. Given in seconds since unix epoch. + */ + repayments_begin_at: number | null; + + /** + * Per-transaction rate at which Stripe withholds funds to repay the financing. + */ + withhold_rate: number; + } + export type Status = 'accepted' | 'delivered' | 'none'; + + export namespace Details { + export interface CurrentRepaymentInterval { /** - * The balance remaining to be paid on the financing, in minor units. For example, 1,000 USD is represented as 100000. + * The time at which the minimum payment amount will be due. If not met through withholding, the Connected account's linked bank account or account balance will be debited. + * Given in seconds since unix epoch. */ - remaining_amount: number; + due_at: number; /** - * The time at which Capital will begin withholding from payments. Given in seconds since unix epoch. + * The amount that has already been paid in the current repayment interval, in minor units. For example, 100 USD is represented as 10000. */ - repayments_begin_at: number | null; + paid_amount: number | null; /** - * Per-transaction rate at which Stripe withholds funds to repay the financing. + * The amount that is yet to be paid in the current repayment interval, in minor units. For example, 100 USD is represented as 10000. */ - withhold_rate: number; - } - - export type Status = 'accepted' | 'delivered' | 'none'; - - export namespace Details { - export interface CurrentRepaymentInterval { - /** - * The time at which the minimum payment amount will be due. If not met through withholding, the Connected account's linked bank account or account balance will be debited. - * Given in seconds since unix epoch. - */ - due_at: number; - - /** - * The amount that has already been paid in the current repayment interval, in minor units. For example, 100 USD is represented as 10000. - */ - paid_amount: number | null; - - /** - * The amount that is yet to be paid in the current repayment interval, in minor units. For example, 100 USD is represented as 10000. - */ - remaining_amount: number; - } + remaining_amount: number; } } } diff --git a/src/resources/Capital/FinancingTransactions.ts b/src/resources/Capital/FinancingTransactions.ts index 60e4cb8b73..e3635883c7 100644 --- a/src/resources/Capital/FinancingTransactions.ts +++ b/src/resources/Capital/FinancingTransactions.ts @@ -63,7 +63,7 @@ export interface FinancingTransaction { /** * This is an object representing a transaction on a Capital financing offer. */ - details: Capital.FinancingTransaction.Details; + details: FinancingTransaction.Details; /** * The Capital financing offer for this financing transaction. @@ -85,82 +85,80 @@ export interface FinancingTransaction { /** * The type of the financing transaction. */ - type: Capital.FinancingTransaction.Type; + type: FinancingTransaction.Type; /** * A human-friendly description of the financing transaction. */ user_facing_description: string | null; } -export namespace Capital { - export namespace FinancingTransaction { - export interface Details { - /** - * The advance amount being repaid, paid out, or reversed in minor units. - */ - advance_amount: number; +export namespace FinancingTransaction { + export interface Details { + /** + * The advance amount being repaid, paid out, or reversed in minor units. + */ + advance_amount: number; - /** - * The currency of the financing transaction. - */ - currency: string; + /** + * The currency of the financing transaction. + */ + currency: string; - /** - * The fee amount being repaid, paid out, or reversed in minor units. - */ - fee_amount: number; + /** + * The fee amount being repaid, paid out, or reversed in minor units. + */ + fee_amount: number; - /** - * The linked payment for the transaction. This field only applies to financing transactions of type `paydown` and reason `automatic_withholding`. - */ - linked_payment?: string; + /** + * The linked payment for the transaction. This field only applies to financing transactions of type `paydown` and reason `automatic_withholding`. + */ + linked_payment?: string; - /** - * The reason for the financing transaction (if applicable). - */ - reason?: Details.Reason; + /** + * The reason for the financing transaction (if applicable). + */ + reason?: Details.Reason; - /** - * The reversed transaction. This field only applies to financing - * transactions of type `reversal`. - */ - reversed_transaction?: string; + /** + * The reversed transaction. This field only applies to financing + * transactions of type `reversal`. + */ + reversed_transaction?: string; + + /** + * The advance and fee amount being repaid, paid out, or reversed in minor units. + */ + total_amount: number; + /** + * This is an object representing a linked transaction on a Capital Financing Transaction. + */ + transaction?: Details.Transaction; + } + + export type Type = 'payment' | 'payout' | 'reversal'; + + export namespace Details { + export type Reason = + | 'automatic_withholding' + | 'automatic_withholding_refund' + | 'collection' + | 'collection_failure' + | 'financing_cancellation' + | 'refill' + | 'requested_by_user' + | 'user_initiated'; + + export interface Transaction { /** - * The advance and fee amount being repaid, paid out, or reversed in minor units. + * The linked payment ID. */ - total_amount: number; + charge?: string; /** - * This is an object representing a linked transaction on a Capital Financing Transaction. + * The linked Treasury Financing Transaction ID. */ - transaction?: Details.Transaction; - } - - export type Type = 'payment' | 'payout' | 'reversal'; - - export namespace Details { - export type Reason = - | 'automatic_withholding' - | 'automatic_withholding_refund' - | 'collection' - | 'collection_failure' - | 'financing_cancellation' - | 'refill' - | 'requested_by_user' - | 'user_initiated'; - - export interface Transaction { - /** - * The linked payment ID. - */ - charge?: string; - - /** - * The linked Treasury Financing Transaction ID. - */ - treasury_transaction?: string; - } + treasury_transaction?: string; } } } diff --git a/src/resources/Checkout/Sessions.ts b/src/resources/Checkout/Sessions.ts index 6d490a4f0a..02c09e5a01 100644 --- a/src/resources/Checkout/Sessions.ts +++ b/src/resources/Checkout/Sessions.ts @@ -653,12 +653,12 @@ export interface Session { /** * Settings for price localization with [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing). */ - adaptive_pricing: Checkout.Session.AdaptivePricing | null; + adaptive_pricing: Session.AdaptivePricing | null; /** * When set, provides configuration for actions to take if this Checkout Session expires. */ - after_expiration: Checkout.Session.AfterExpiration | null; + after_expiration: Session.AfterExpiration | null; /** * Enables user redeemable promotion codes. @@ -675,14 +675,14 @@ export interface Session { */ amount_total: number | null; - automatic_tax: Checkout.Session.AutomaticTax; + automatic_tax: Session.AutomaticTax; /** * Describes whether Checkout should collect the customer's billing address. Defaults to `auto`. */ - billing_address_collection: Checkout.Session.BillingAddressCollection | null; + billing_address_collection: Session.BillingAddressCollection | null; - branding_settings?: Checkout.Session.BrandingSettings; + branding_settings?: Session.BrandingSettings; /** * If set, Checkout displays a back button and customers will be directed to this URL if they decide to cancel payment and return to your website. @@ -705,17 +705,17 @@ export interface Session { /** * Information about the customer collected within the Checkout Session. */ - collected_information: Checkout.Session.CollectedInformation | null; + collected_information: Session.CollectedInformation | null; /** * Results of `consent_collection` for this session. */ - consent: Checkout.Session.Consent | null; + consent: Session.Consent | null; /** * When set, provides configuration for the Checkout Session to gather active consent from customers. */ - consent_collection: Checkout.Session.ConsentCollection | null; + consent_collection: Session.ConsentCollection | null; /** * Time at which the object was created. Measured in seconds since the Unix epoch. @@ -730,14 +730,14 @@ export interface Session { /** * Currency conversion details for [Adaptive Pricing](https://docs.stripe.com/payments/checkout/adaptive-pricing) sessions created before 2025-03-31. */ - currency_conversion: Checkout.Session.CurrencyConversion | null; + currency_conversion: Session.CurrencyConversion | null; /** * Collect additional information from your customer using custom fields. Up to 3 fields are supported. You can't set this parameter if `ui_mode` is `custom`. */ - custom_fields: Array; + custom_fields: Array; - custom_text: Checkout.Session.CustomText; + custom_text: Session.CustomText; /** * The ID of the customer for this Session. @@ -756,12 +756,12 @@ export interface Session { /** * Configure whether a Checkout Session creates a Customer when the Checkout Session completes. */ - customer_creation: Checkout.Session.CustomerCreation | null; + customer_creation: Session.CustomerCreation | null; /** * The customer details including the customer's tax exempt status and the customer's tax IDs. Customer's address details are not present on Sessions in `setup` mode. */ - customer_details: Checkout.Session.CustomerDetails | null; + customer_details: Session.CustomerDetails | null; /** * If provided, this value will be used when the Customer object is created. @@ -775,7 +775,7 @@ export interface Session { /** * List of coupons and promotion codes attached to the Checkout Session. */ - discounts: Array | null; + discounts: Array | null; /** * A list of the types of payment methods (e.g., `card`) that should be excluded from this Checkout Session. This should only be used when payment methods for this Checkout Session are managed through the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). @@ -800,7 +800,7 @@ export interface Session { /** * Details on the state of invoice creation for the Checkout Session. */ - invoice_creation: Checkout.Session.InvoiceCreation | null; + invoice_creation: Session.InvoiceCreation | null; /** * The line items purchased by the customer. @@ -815,12 +815,12 @@ export interface Session { /** * The IETF language tag of the locale Checkout is displayed in. If blank or `auto`, the browser's locale is used. */ - locale: Checkout.Session.Locale | null; + locale: Session.Locale | null; /** * Settings for Managed Payments for this Checkout Session and resulting [PaymentIntents](https://docs.stripe.com/api/payment_intents/object), [Invoices](https://docs.stripe.com/api/invoices/object), and [Subscriptions](https://docs.stripe.com/api/subscriptions/object). */ - managed_payments: Checkout.Session.ManagedPayments | null; + managed_payments: Session.ManagedPayments | null; /** * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. @@ -830,19 +830,19 @@ export interface Session { /** * The mode of the Checkout Session. */ - mode: Checkout.Session.Mode; + mode: Session.Mode; - name_collection?: Checkout.Session.NameCollection; + name_collection?: Session.NameCollection; /** * The optional items presented to the customer at checkout. */ - optional_items?: Array | null; + optional_items?: Array | null; /** * Where the user is coming from. This informs the optimizations that are applied to the session. */ - origin_context: Checkout.Session.OriginContext | null; + origin_context: Session.OriginContext | null; /** * The ID of the PaymentIntent for Checkout Sessions in `payment` mode. You can't confirm or cancel the PaymentIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://docs.stripe.com/api/checkout/sessions/expire) instead. @@ -857,17 +857,17 @@ export interface Session { /** * Configure whether a Checkout Session should collect a payment method. Defaults to `always`. */ - payment_method_collection: Checkout.Session.PaymentMethodCollection | null; + payment_method_collection: Session.PaymentMethodCollection | null; /** * Information about the payment method configuration used for this Checkout session if using dynamic payment methods. */ - payment_method_configuration_details: Checkout.Session.PaymentMethodConfigurationDetails | null; + payment_method_configuration_details: Session.PaymentMethodConfigurationDetails | null; /** * Payment-method-specific configuration for the PaymentIntent or SetupIntent of this CheckoutSession. */ - payment_method_options: Checkout.Session.PaymentMethodOptions | null; + payment_method_options: Session.PaymentMethodOptions | null; /** * A list of the types of payment methods (e.g. card) this Checkout @@ -879,18 +879,18 @@ export interface Session { * The payment status of the Checkout Session, one of `paid`, `unpaid`, or `no_payment_required`. * You can use this value to decide when to fulfill your customer's order. */ - payment_status: Checkout.Session.PaymentStatus; + payment_status: Session.PaymentStatus; /** * This property is used to set up permissions for various actions (e.g., update) on the CheckoutSession object. * * For specific permissions, please refer to their dedicated subsections, such as `permissions.update_shipping_details`. */ - permissions: Checkout.Session.Permissions | null; + permissions: Session.Permissions | null; - phone_number_collection?: Checkout.Session.PhoneNumberCollection; + phone_number_collection?: Session.PhoneNumberCollection; - presentment_details?: Checkout.Session.PresentmentDetails; + presentment_details?: Session.PresentmentDetails; /** * The ID of the original expired Checkout Session that triggered the recovery flow. @@ -900,7 +900,7 @@ export interface Session { /** * This parameter applies to `ui_mode: embedded_page`. Learn more about the [redirect behavior](https://docs.stripe.com/payments/checkout/custom-success-page?payment-ui=embedded-form) of embedded sessions. Defaults to `always`. */ - redirect_on_completion?: Checkout.Session.RedirectOnCompletion; + redirect_on_completion?: Session.RedirectOnCompletion; /** * Applies to Checkout Sessions with `ui_mode: embedded_page` or `ui_mode: elements`. The URL to redirect your customer back to after they authenticate or cancel their payment on the payment method's app or site. @@ -910,7 +910,7 @@ export interface Session { /** * Controls saved payment method settings for the session. Only available in `payment` and `subscription` mode. */ - saved_payment_method_options: Checkout.Session.SavedPaymentMethodOptions | null; + saved_payment_method_options: Session.SavedPaymentMethodOptions | null; /** * The ID of the SetupIntent for Checkout Sessions in `setup` mode. You can't confirm or cancel the SetupIntent for a Checkout Session. To cancel, [expire the Checkout Session](https://docs.stripe.com/api/checkout/sessions/expire) instead. @@ -920,29 +920,29 @@ export interface Session { /** * When set, provides configuration for Checkout to collect a shipping address from a customer. */ - shipping_address_collection: Checkout.Session.ShippingAddressCollection | null; + shipping_address_collection: Session.ShippingAddressCollection | null; /** * The details of the customer cost of shipping, including the customer chosen ShippingRate. */ - shipping_cost: Checkout.Session.ShippingCost | null; + shipping_cost: Session.ShippingCost | null; /** * The shipping rate options applied to this Session. */ - shipping_options: Array; + shipping_options: Array; /** * The status of the Checkout Session, one of `open`, `complete`, or `expired`. */ - status: Checkout.Session.Status | null; + status: Session.Status | null; /** * Describes the type of transaction being performed by Checkout in order to customize * relevant text on the page, such as the submit button. `submit_type` can only be * specified on Checkout Sessions in `payment` mode. If blank or `auto`, `pay` is used. */ - submit_type: Checkout.Session.SubmitType | null; + submit_type: Session.SubmitType | null; /** * The ID of the [Subscription](https://docs.stripe.com/api/subscriptions) for Checkout Sessions in `subscription` mode. @@ -955,17 +955,17 @@ export interface Session { */ success_url: string | null; - tax_id_collection?: Checkout.Session.TaxIdCollection; + tax_id_collection?: Session.TaxIdCollection; /** * Tax and discount details for the computed total amount. */ - total_details: Checkout.Session.TotalDetails | null; + total_details: Session.TotalDetails | null; /** * The UI mode of the Session. Defaults to `hosted_page`. */ - ui_mode: Checkout.Session.UiMode | null; + ui_mode: Session.UiMode | null; /** * The URL to the Checkout Session. Applies to Checkout Sessions with `ui_mode: hosted_page`. Redirect customers to this URL to take them to Checkout. If you're using [Custom Domains](https://docs.stripe.com/payments/checkout/custom-domains), the URL will use your subdomain. Otherwise, it'll use `checkout.stripe.com.` @@ -976,2834 +976,2832 @@ export interface Session { /** * Wallet-specific configuration for this Checkout Session. */ - wallet_options: Checkout.Session.WalletOptions | null; + wallet_options: Session.WalletOptions | null; } -export namespace Checkout { - export namespace Session { - export interface AdaptivePricing { - /** - * If enabled, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions). - */ - enabled: boolean; - } +export namespace Session { + export interface AdaptivePricing { + /** + * If enabled, Adaptive Pricing is available on [eligible sessions](https://docs.stripe.com/payments/currencies/localize-prices/adaptive-pricing?payment-ui=stripe-hosted#restrictions). + */ + enabled: boolean; + } - export interface AfterExpiration { - /** - * When set, configuration used to recover the Checkout Session on expiry. - */ - recovery: AfterExpiration.Recovery | null; - } + export interface AfterExpiration { + /** + * When set, configuration used to recover the Checkout Session on expiry. + */ + recovery: AfterExpiration.Recovery | null; + } - export interface AutomaticTax { - /** - * Indicates whether automatic tax is enabled for the session - */ - enabled: boolean; + export interface AutomaticTax { + /** + * Indicates whether automatic tax is enabled for the session + */ + enabled: boolean; - /** - * The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account. - */ - liability: AutomaticTax.Liability | null; + /** + * The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account. + */ + liability: AutomaticTax.Liability | null; - /** - * The tax provider powering automatic tax. - */ - provider: string | null; + /** + * The tax provider powering automatic tax. + */ + provider: string | null; - /** - * The status of the most recent automated tax calculation for this session. - */ - status: AutomaticTax.Status | null; - } + /** + * The status of the most recent automated tax calculation for this session. + */ + status: AutomaticTax.Status | null; + } - export type BillingAddressCollection = 'auto' | 'required'; + export type BillingAddressCollection = 'auto' | 'required'; - export interface BrandingSettings { - /** - * A hex color value starting with `#` representing the background color for the Checkout Session. - */ - background_color: string; + export interface BrandingSettings { + /** + * A hex color value starting with `#` representing the background color for the Checkout Session. + */ + background_color: string; - /** - * The border style for the Checkout Session. Must be one of `rounded`, `rectangular`, or `pill`. - */ - border_style: BrandingSettings.BorderStyle; + /** + * The border style for the Checkout Session. Must be one of `rounded`, `rectangular`, or `pill`. + */ + border_style: BrandingSettings.BorderStyle; - /** - * A hex color value starting with `#` representing the button color for the Checkout Session. - */ - button_color: string; + /** + * A hex color value starting with `#` representing the button color for the Checkout Session. + */ + button_color: string; - /** - * The display name shown on the Checkout Session. - */ - display_name: string; + /** + * The display name shown on the Checkout Session. + */ + display_name: string; - /** - * The font family for the Checkout Session. Must be one of the [supported font families](https://docs.stripe.com/payments/checkout/customization/appearance?payment-ui=stripe-hosted#font-compatibility). - */ - font_family: string; + /** + * The font family for the Checkout Session. Must be one of the [supported font families](https://docs.stripe.com/payments/checkout/customization/appearance?payment-ui=stripe-hosted#font-compatibility). + */ + font_family: string; - /** - * The icon for the Checkout Session. You cannot set both `logo` and `icon`. - */ - icon: BrandingSettings.Icon | null; + /** + * The icon for the Checkout Session. You cannot set both `logo` and `icon`. + */ + icon: BrandingSettings.Icon | null; - /** - * The logo for the Checkout Session. You cannot set both `logo` and `icon`. - */ - logo: BrandingSettings.Logo | null; - } + /** + * The logo for the Checkout Session. You cannot set both `logo` and `icon`. + */ + logo: BrandingSettings.Logo | null; + } - export interface CollectedInformation { - /** - * Customer's business name for this Checkout Session - */ - business_name: string | null; + export interface CollectedInformation { + /** + * Customer's business name for this Checkout Session + */ + business_name: string | null; - /** - * Customer's email for this Checkout Session - */ - email?: string | null; + /** + * Customer's email for this Checkout Session + */ + email?: string | null; - /** - * Customer's individual name for this Checkout Session - */ - individual_name: string | null; + /** + * Customer's individual name for this Checkout Session + */ + individual_name: string | null; - /** - * Customer's phone number for this Checkout Session - */ - phone?: string | null; + /** + * Customer's phone number for this Checkout Session + */ + phone?: string | null; - /** - * Shipping information for this Checkout Session. - */ - shipping_details: CollectedInformation.ShippingDetails | null; + /** + * Shipping information for this Checkout Session. + */ + shipping_details: CollectedInformation.ShippingDetails | null; - /** - * Customer's tax ids for this Checkout Session. - */ - tax_ids?: Array | null; - } + /** + * Customer's tax ids for this Checkout Session. + */ + tax_ids?: Array | null; + } - export interface Consent { - /** - * If `opt_in`, the customer consents to receiving promotional communications - * from the merchant about this Checkout Session. - */ - promotions: Consent.Promotions | null; + export interface Consent { + /** + * If `opt_in`, the customer consents to receiving promotional communications + * from the merchant about this Checkout Session. + */ + promotions: Consent.Promotions | null; - /** - * If `accepted`, the customer in this Checkout Session has agreed to the merchant's terms of service. - */ - terms_of_service: 'accepted' | null; - } + /** + * If `accepted`, the customer in this Checkout Session has agreed to the merchant's terms of service. + */ + terms_of_service: 'accepted' | null; + } - export interface ConsentCollection { - /** - * If set to `hidden`, it will hide legal text related to the reuse of a payment method. - */ - payment_method_reuse_agreement: ConsentCollection.PaymentMethodReuseAgreement | null; + export interface ConsentCollection { + /** + * If set to `hidden`, it will hide legal text related to the reuse of a payment method. + */ + payment_method_reuse_agreement: ConsentCollection.PaymentMethodReuseAgreement | null; - /** - * If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout - * Session will determine whether to display an option to opt into promotional communication - * from the merchant depending on the customer's locale. Only available to US merchants and US customers. - */ - promotions: ConsentCollection.Promotions | null; + /** + * If set to `auto`, enables the collection of customer consent for promotional communications. The Checkout + * Session will determine whether to display an option to opt into promotional communication + * from the merchant depending on the customer's locale. Only available to US merchants and US customers. + */ + promotions: ConsentCollection.Promotions | null; - /** - * If set to `required`, it requires customers to accept the terms of service before being able to pay. - */ - terms_of_service: ConsentCollection.TermsOfService | null; - } + /** + * If set to `required`, it requires customers to accept the terms of service before being able to pay. + */ + terms_of_service: ConsentCollection.TermsOfService | null; + } - export interface CurrencyConversion { - /** - * Total of all items in source currency before discounts or taxes are applied. - */ - amount_subtotal: number; + export interface CurrencyConversion { + /** + * Total of all items in source currency before discounts or taxes are applied. + */ + amount_subtotal: number; - /** - * Total of all items in source currency after discounts and taxes are applied. - */ - amount_total: number; + /** + * Total of all items in source currency after discounts and taxes are applied. + */ + amount_total: number; - /** - * Exchange rate used to convert source currency amounts to customer currency amounts - */ - fx_rate: Decimal; + /** + * Exchange rate used to convert source currency amounts to customer currency amounts + */ + fx_rate: Decimal; - /** - * Creation currency of the CheckoutSession before localization - */ - source_currency: string; - } + /** + * Creation currency of the CheckoutSession before localization + */ + source_currency: string; + } - export interface CustomField { - dropdown?: CustomField.Dropdown; + export interface CustomField { + dropdown?: CustomField.Dropdown; - /** - * String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters. - */ - key: string; + /** + * String of your choice that your integration can use to reconcile this field. Must be unique to this field, alphanumeric, and up to 200 characters. + */ + key: string; - label: CustomField.Label; + label: CustomField.Label; - numeric?: CustomField.Numeric; + numeric?: CustomField.Numeric; - /** - * Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`. - */ - optional: boolean; + /** + * Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`. + */ + optional: boolean; - text?: CustomField.Text; + text?: CustomField.Text; - /** - * The type of the field. - */ - type: CustomField.Type; - } + /** + * The type of the field. + */ + type: CustomField.Type; + } - export interface CustomText { - /** - * Custom text that should be displayed after the payment confirmation button. - */ - after_submit: CustomText.AfterSubmit | null; + export interface CustomText { + /** + * Custom text that should be displayed after the payment confirmation button. + */ + after_submit: CustomText.AfterSubmit | null; - /** - * Custom text that should be displayed alongside shipping address collection. - */ - shipping_address: CustomText.ShippingAddress | null; + /** + * Custom text that should be displayed alongside shipping address collection. + */ + shipping_address: CustomText.ShippingAddress | null; - /** - * Custom text that should be displayed alongside the payment confirmation button. - */ - submit: CustomText.Submit | null; + /** + * Custom text that should be displayed alongside the payment confirmation button. + */ + submit: CustomText.Submit | null; - /** - * Custom text that should be displayed in place of the default terms of service agreement text. - */ - terms_of_service_acceptance: CustomText.TermsOfServiceAcceptance | null; - } + /** + * Custom text that should be displayed in place of the default terms of service agreement text. + */ + terms_of_service_acceptance: CustomText.TermsOfServiceAcceptance | null; + } - export type CustomerCreation = 'always' | 'if_required'; + export type CustomerCreation = 'always' | 'if_required'; - export interface CustomerDetails { - /** - * The customer's address after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022. - */ - address: Address | null; + export interface CustomerDetails { + /** + * The customer's address after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022. + */ + address: Address | null; - /** - * The customer's business name after a completed Checkout Session. - */ - business_name: string | null; + /** + * The customer's business name after a completed Checkout Session. + */ + business_name: string | null; - /** - * The email associated with the Customer, if one exists, on the Checkout Session after a completed Checkout Session or at time of session expiry. - * Otherwise, if the customer has consented to promotional content, this value is the most recent valid email provided by the customer on the Checkout form. - */ - email: string | null; + /** + * The email associated with the Customer, if one exists, on the Checkout Session after a completed Checkout Session or at time of session expiry. + * Otherwise, if the customer has consented to promotional content, this value is the most recent valid email provided by the customer on the Checkout form. + */ + email: string | null; - /** - * The customer's individual name after a completed Checkout Session. - */ - individual_name: string | null; + /** + * The customer's individual name after a completed Checkout Session. + */ + individual_name: string | null; - /** - * The customer's name after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022. - */ - name: string | null; + /** + * The customer's name after a completed Checkout Session. Note: This property is populated only for sessions on or after March 30, 2022. + */ + name: string | null; - /** - * The customer's phone number after a completed Checkout Session. - */ - phone: string | null; + /** + * The customer's phone number after a completed Checkout Session. + */ + phone: string | null; - /** - * The customer's tax exempt status after a completed Checkout Session. - */ - tax_exempt: CustomerDetails.TaxExempt | null; + /** + * The customer's tax exempt status after a completed Checkout Session. + */ + tax_exempt: CustomerDetails.TaxExempt | null; - /** - * The customer's tax IDs after a completed Checkout Session. - */ - tax_ids: Array | null; - } + /** + * The customer's tax IDs after a completed Checkout Session. + */ + tax_ids: Array | null; + } - export interface Discount { - /** - * Coupon attached to the Checkout Session. - */ - coupon: string | Coupon | null; + export interface Discount { + /** + * Coupon attached to the Checkout Session. + */ + coupon: string | Coupon | null; - /** - * Promotion code attached to the Checkout Session. - */ - promotion_code: string | PromotionCode | null; - } + /** + * Promotion code attached to the Checkout Session. + */ + promotion_code: string | PromotionCode | null; + } - export interface InvoiceCreation { - /** - * Indicates whether invoice creation is enabled for the Checkout Session. - */ - enabled: boolean; + export interface InvoiceCreation { + /** + * Indicates whether invoice creation is enabled for the Checkout Session. + */ + enabled: boolean; - invoice_data: InvoiceCreation.InvoiceData; - } + invoice_data: InvoiceCreation.InvoiceData; + } - export type Locale = - | 'auto' - | 'bg' - | 'cs' - | 'da' - | 'de' - | 'el' - | 'en' - | 'en-GB' - | 'es' - | 'es-419' - | 'et' - | 'fi' - | 'fil' - | 'fr' - | 'fr-CA' - | 'hr' - | 'hu' - | 'id' - | 'it' - | 'ja' - | 'ko' - | 'lt' - | 'lv' - | 'ms' - | 'mt' - | 'nb' - | 'nl' - | 'pl' - | 'pt' - | 'pt-BR' - | 'ro' - | 'ru' - | 'sk' - | 'sl' - | 'sv' - | 'th' - | 'tr' - | 'vi' - | 'zh' - | 'zh-HK' - | 'zh-TW'; + export type Locale = + | 'auto' + | 'bg' + | 'cs' + | 'da' + | 'de' + | 'el' + | 'en' + | 'en-GB' + | 'es' + | 'es-419' + | 'et' + | 'fi' + | 'fil' + | 'fr' + | 'fr-CA' + | 'hr' + | 'hu' + | 'id' + | 'it' + | 'ja' + | 'ko' + | 'lt' + | 'lv' + | 'ms' + | 'mt' + | 'nb' + | 'nl' + | 'pl' + | 'pt' + | 'pt-BR' + | 'ro' + | 'ru' + | 'sk' + | 'sl' + | 'sv' + | 'th' + | 'tr' + | 'vi' + | 'zh' + | 'zh-HK' + | 'zh-TW'; + + export interface ManagedPayments { + /** + * Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session. + */ + enabled: boolean; + } - export interface ManagedPayments { - /** - * Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session. - */ - enabled: boolean; - } + export type Mode = 'payment' | 'setup' | 'subscription'; - export type Mode = 'payment' | 'setup' | 'subscription'; + export interface NameCollection { + business?: NameCollection.Business; - export interface NameCollection { - business?: NameCollection.Business; + individual?: NameCollection.Individual; + } - individual?: NameCollection.Individual; - } + export interface OptionalItem { + adjustable_quantity: OptionalItem.AdjustableQuantity | null; - export interface OptionalItem { - adjustable_quantity: OptionalItem.AdjustableQuantity | null; + price: string; - price: string; + quantity: number; + } - quantity: number; - } + export type OriginContext = 'mobile_app' | 'web'; - export type OriginContext = 'mobile_app' | 'web'; + export type PaymentMethodCollection = 'always' | 'if_required'; - export type PaymentMethodCollection = 'always' | 'if_required'; + export interface PaymentMethodConfigurationDetails { + /** + * ID of the payment method configuration used. + */ + id: string; - export interface PaymentMethodConfigurationDetails { - /** - * ID of the payment method configuration used. - */ - id: string; + /** + * ID of the parent payment method configuration used. + */ + parent: string | null; + } - /** - * ID of the parent payment method configuration used. - */ - parent: string | null; - } + export interface PaymentMethodOptions { + acss_debit?: PaymentMethodOptions.AcssDebit; - export interface PaymentMethodOptions { - acss_debit?: PaymentMethodOptions.AcssDebit; + affirm?: PaymentMethodOptions.Affirm; - affirm?: PaymentMethodOptions.Affirm; + afterpay_clearpay?: PaymentMethodOptions.AfterpayClearpay; - afterpay_clearpay?: PaymentMethodOptions.AfterpayClearpay; + alipay?: PaymentMethodOptions.Alipay; - alipay?: PaymentMethodOptions.Alipay; + alma?: PaymentMethodOptions.Alma; - alma?: PaymentMethodOptions.Alma; + amazon_pay?: PaymentMethodOptions.AmazonPay; - amazon_pay?: PaymentMethodOptions.AmazonPay; + au_becs_debit?: PaymentMethodOptions.AuBecsDebit; - au_becs_debit?: PaymentMethodOptions.AuBecsDebit; + bacs_debit?: PaymentMethodOptions.BacsDebit; - bacs_debit?: PaymentMethodOptions.BacsDebit; + bancontact?: PaymentMethodOptions.Bancontact; - bancontact?: PaymentMethodOptions.Bancontact; + billie?: PaymentMethodOptions.Billie; - billie?: PaymentMethodOptions.Billie; + boleto?: PaymentMethodOptions.Boleto; - boleto?: PaymentMethodOptions.Boleto; + card?: PaymentMethodOptions.Card; - card?: PaymentMethodOptions.Card; + cashapp?: PaymentMethodOptions.Cashapp; - cashapp?: PaymentMethodOptions.Cashapp; + customer_balance?: PaymentMethodOptions.CustomerBalance; - customer_balance?: PaymentMethodOptions.CustomerBalance; + eps?: PaymentMethodOptions.Eps; - eps?: PaymentMethodOptions.Eps; + fpx?: PaymentMethodOptions.Fpx; - fpx?: PaymentMethodOptions.Fpx; + giropay?: PaymentMethodOptions.Giropay; - giropay?: PaymentMethodOptions.Giropay; + grabpay?: PaymentMethodOptions.Grabpay; - grabpay?: PaymentMethodOptions.Grabpay; + ideal?: PaymentMethodOptions.Ideal; - ideal?: PaymentMethodOptions.Ideal; + kakao_pay?: PaymentMethodOptions.KakaoPay; - kakao_pay?: PaymentMethodOptions.KakaoPay; + klarna?: PaymentMethodOptions.Klarna; - klarna?: PaymentMethodOptions.Klarna; + konbini?: PaymentMethodOptions.Konbini; - konbini?: PaymentMethodOptions.Konbini; + kr_card?: PaymentMethodOptions.KrCard; - kr_card?: PaymentMethodOptions.KrCard; + link?: PaymentMethodOptions.Link; - link?: PaymentMethodOptions.Link; + mobilepay?: PaymentMethodOptions.Mobilepay; - mobilepay?: PaymentMethodOptions.Mobilepay; + multibanco?: PaymentMethodOptions.Multibanco; - multibanco?: PaymentMethodOptions.Multibanco; + naver_pay?: PaymentMethodOptions.NaverPay; - naver_pay?: PaymentMethodOptions.NaverPay; + oxxo?: PaymentMethodOptions.Oxxo; - oxxo?: PaymentMethodOptions.Oxxo; + p24?: PaymentMethodOptions.P24; - p24?: PaymentMethodOptions.P24; + payco?: PaymentMethodOptions.Payco; - payco?: PaymentMethodOptions.Payco; + paynow?: PaymentMethodOptions.Paynow; - paynow?: PaymentMethodOptions.Paynow; + paypal?: PaymentMethodOptions.Paypal; - paypal?: PaymentMethodOptions.Paypal; + payto?: PaymentMethodOptions.Payto; - payto?: PaymentMethodOptions.Payto; + pix?: PaymentMethodOptions.Pix; - pix?: PaymentMethodOptions.Pix; + revolut_pay?: PaymentMethodOptions.RevolutPay; - revolut_pay?: PaymentMethodOptions.RevolutPay; + samsung_pay?: PaymentMethodOptions.SamsungPay; - samsung_pay?: PaymentMethodOptions.SamsungPay; + satispay?: PaymentMethodOptions.Satispay; - satispay?: PaymentMethodOptions.Satispay; + scalapay?: PaymentMethodOptions.Scalapay; - scalapay?: PaymentMethodOptions.Scalapay; + sepa_debit?: PaymentMethodOptions.SepaDebit; - sepa_debit?: PaymentMethodOptions.SepaDebit; + sofort?: PaymentMethodOptions.Sofort; - sofort?: PaymentMethodOptions.Sofort; + swish?: PaymentMethodOptions.Swish; - swish?: PaymentMethodOptions.Swish; + twint?: PaymentMethodOptions.Twint; - twint?: PaymentMethodOptions.Twint; + upi?: PaymentMethodOptions.Upi; - upi?: PaymentMethodOptions.Upi; + us_bank_account?: PaymentMethodOptions.UsBankAccount; + } - us_bank_account?: PaymentMethodOptions.UsBankAccount; - } + export type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid'; - export type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid'; + export interface Permissions { + /** + * Permissions for updating the Checkout Session. + */ + update?: Permissions.Update | null; - export interface Permissions { + /** + * Determines which entity is allowed to update the line items. + * + * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items. + * + * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API. + */ + update_line_items?: Permissions.UpdateLineItems | null; + + /** + * Determines which entity is allowed to update the shipping details. + * + * Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details. + * + * When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API. + */ + update_shipping_details: Permissions.UpdateShippingDetails | null; + } + + export interface PhoneNumberCollection { + /** + * Indicates whether phone number collection is enabled for the session + */ + enabled: boolean; + } + + export interface PresentmentDetails { + /** + * Amount intended to be collected by this payment, denominated in `presentment_currency`. + */ + presentment_amount: number; + + /** + * Currency presented to the customer during payment. + */ + presentment_currency: string; + } + + export type RedirectOnCompletion = 'always' | 'if_required' | 'never'; + + export interface SavedPaymentMethodOptions { + /** + * Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with 'allow_redisplay: ‘always' are shown in Checkout. + */ + allow_redisplay_filters: Array< + SavedPaymentMethodOptions.AllowRedisplayFilter + > | null; + + /** + * Enable customers to choose if they wish to remove their saved payment methods. Disabled by default. + */ + payment_method_remove: SavedPaymentMethodOptions.PaymentMethodRemove | null; + + /** + * Enable customers to choose if they wish to save their payment method for future use. Disabled by default. + */ + payment_method_save: SavedPaymentMethodOptions.PaymentMethodSave | null; + } + + export interface ShippingAddressCollection { + /** + * An array of two-letter ISO country codes representing which countries Checkout should provide as options for + * shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`. + */ + allowed_countries: Array; + } + + export interface ShippingCost { + /** + * Total shipping cost before any discounts or taxes are applied. + */ + amount_subtotal: number; + + /** + * Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0. + */ + amount_tax: number; + + /** + * Total shipping cost after discounts and taxes are applied. + */ + amount_total: number; + + /** + * The ID of the ShippingRate for this order. + */ + shipping_rate: string | ShippingRate | null; + + /** + * The taxes applied to the shipping rate. + */ + taxes?: Array; + } + + export interface ShippingOption { + /** + * A non-negative integer in cents representing how much to charge. + */ + shipping_amount: number; + + /** + * The shipping rate. + */ + shipping_rate: string | ShippingRate; + } + + export type Status = 'complete' | 'expired' | 'open'; + + export type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe'; + + export interface TaxIdCollection { + /** + * Indicates whether tax ID collection is enabled for the session + */ + enabled: boolean; + + /** + * Indicates whether a tax ID is required on the payment page + */ + required: TaxIdCollection.Required; + } + + export interface TotalDetails { + /** + * This is the sum of all the discounts. + */ + amount_discount: number; + + /** + * This is the sum of all the shipping amounts. + */ + amount_shipping: number | null; + + /** + * This is the sum of all the tax amounts. + */ + amount_tax: number; + + breakdown?: TotalDetails.Breakdown; + } + + export type UiMode = 'elements' | 'embedded_page' | 'form' | 'hosted_page'; + + export interface WalletOptions { + link?: WalletOptions.Link; + } + + export namespace AfterExpiration { + export interface Recovery { /** - * Permissions for updating the Checkout Session. + * Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false` */ - update?: Permissions.Update | null; + allow_promotion_codes: boolean; /** - * Determines which entity is allowed to update the line items. - * - * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items. - * - * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API. + * If `true`, a recovery url will be generated to recover this Checkout Session if it + * expires before a transaction is completed. It will be attached to the + * Checkout Session object upon expiration. */ - update_line_items?: Permissions.UpdateLineItems | null; + enabled: boolean; /** - * Determines which entity is allowed to update the shipping details. - * - * Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details. - * - * When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API. + * The timestamp at which the recovery URL will expire. */ - update_shipping_details: Permissions.UpdateShippingDetails | null; - } + expires_at: number | null; - export interface PhoneNumberCollection { /** - * Indicates whether phone number collection is enabled for the session + * URL that creates a new Checkout Session when clicked that is a copy of this expired Checkout Session */ - enabled: boolean; + url: string | null; } + } - export interface PresentmentDetails { + export namespace AutomaticTax { + export interface Liability { /** - * Amount intended to be collected by this payment, denominated in `presentment_currency`. + * The connected account being referenced when `type` is `account`. */ - presentment_amount: number; + account?: string | Account; /** - * Currency presented to the customer during payment. + * Type of the account referenced. */ - presentment_currency: string; + type: Liability.Type; } - export type RedirectOnCompletion = 'always' | 'if_required' | 'never'; + export type Status = 'complete' | 'failed' | 'requires_location_inputs'; - export interface SavedPaymentMethodOptions { + export namespace Liability { + export type Type = 'account' | 'self'; + } + } + + export namespace BrandingSettings { + export type BorderStyle = 'pill' | 'rectangular' | 'rounded'; + + export interface Icon { /** - * Uses the `allow_redisplay` value of each saved payment method to filter the set presented to a returning customer. By default, only saved payment methods with 'allow_redisplay: ‘always' are shown in Checkout. + * The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise. */ - allow_redisplay_filters: Array< - SavedPaymentMethodOptions.AllowRedisplayFilter - > | null; + file?: string; /** - * Enable customers to choose if they wish to remove their saved payment methods. Disabled by default. + * The type of image for the icon. Must be one of `file` or `url`. */ - payment_method_remove: SavedPaymentMethodOptions.PaymentMethodRemove | null; + type: Icon.Type; /** - * Enable customers to choose if they wish to save their payment method for future use. Disabled by default. + * The URL of the image. Present when `type` is `url`. */ - payment_method_save: SavedPaymentMethodOptions.PaymentMethodSave | null; + url?: string; } - export interface ShippingAddressCollection { + export interface Logo { /** - * An array of two-letter ISO country codes representing which countries Checkout should provide as options for - * shipping locations. Unsupported country codes: `AS, CX, CC, CU, HM, IR, KP, MH, FM, NF, MP, PW, SY, UM, VI`. + * The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise. */ - allowed_countries: Array; - } + file?: string; - export interface ShippingCost { /** - * Total shipping cost before any discounts or taxes are applied. + * The type of image for the logo. Must be one of `file` or `url`. */ - amount_subtotal: number; + type: Logo.Type; /** - * Total tax amount applied due to shipping costs. If no tax was applied, defaults to 0. + * The URL of the image. Present when `type` is `url`. */ - amount_tax: number; + url?: string; + } + + export namespace Icon { + export type Type = 'file' | 'url'; + } + + export namespace Logo { + export type Type = 'file' | 'url'; + } + } + + export namespace CollectedInformation { + export interface ShippingDetails { + address: Address; /** - * Total shipping cost after discounts and taxes are applied. + * Customer name. */ - amount_total: number; + name: string; + } + export interface TaxId { /** - * The ID of the ShippingRate for this order. + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` */ - shipping_rate: string | ShippingRate | null; + type: TaxId.Type; /** - * The taxes applied to the shipping rate. + * The value of the tax ID. */ - taxes?: Array; + value: string | null; } - export interface ShippingOption { - /** - * A non-negative integer in cents representing how much to charge. - */ - shipping_amount: number; + export namespace TaxId { + export type Type = + | 'ad_nrt' + | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' + | 'ar_cuit' + | 'au_abn' + | 'au_arn' + | 'aw_tin' + | 'az_tin' + | 'ba_tin' + | 'bb_tin' + | 'bd_bin' + | 'bf_ifu' + | 'bg_uic' + | 'bh_vat' + | 'bj_ifu' + | 'bo_tin' + | 'br_cnpj' + | 'br_cpf' + | 'bs_tin' + | 'by_tin' + | 'ca_bn' + | 'ca_gst_hst' + | 'ca_pst_bc' + | 'ca_pst_mb' + | 'ca_pst_sk' + | 'ca_qst' + | 'cd_nif' + | 'ch_uid' + | 'ch_vat' + | 'cl_tin' + | 'cm_niu' + | 'cn_tin' + | 'co_nit' + | 'cr_tin' + | 'cv_nif' + | 'de_stn' + | 'do_rcn' + | 'ec_ruc' + | 'eg_tin' + | 'es_cif' + | 'et_tin' + | 'eu_oss_vat' + | 'eu_vat' + | 'fo_vat' + | 'gb_vat' + | 'ge_vat' + | 'gi_tin' + | 'gn_nif' + | 'hk_br' + | 'hr_oib' + | 'hu_tin' + | 'id_npwp' + | 'il_vat' + | 'in_gst' + | 'is_vat' + | 'it_cf' + | 'jp_cn' + | 'jp_rn' + | 'jp_trn' + | 'ke_pin' + | 'kg_tin' + | 'kh_tin' + | 'kr_brn' + | 'kz_bin' + | 'la_tin' + | 'li_uid' + | 'li_vat' + | 'lk_vat' + | 'ma_vat' + | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' + | 'mx_rfc' + | 'my_frp' + | 'my_itn' + | 'my_sst' + | 'ng_tin' + | 'no_vat' + | 'no_voec' + | 'np_pan' + | 'nz_gst' + | 'om_vat' + | 'pe_ruc' + | 'ph_tin' + | 'pl_nip' + | 'py_ruc' + | 'ro_tin' + | 'rs_pib' + | 'ru_inn' + | 'ru_kpp' + | 'sa_vat' + | 'sg_gst' + | 'sg_uen' + | 'si_tin' + | 'sn_ninea' + | 'sr_fin' + | 'sv_nit' + | 'th_vat' + | 'tj_tin' + | 'tr_tin' + | 'tw_vat' + | 'tz_vat' + | 'ua_vat' + | 'ug_tin' + | 'unknown' + | 'us_ein' + | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' + | 've_rif' + | 'vn_tin' + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; + } + } + + export namespace Consent { + export type Promotions = 'opt_in' | 'opt_out'; + } + export namespace ConsentCollection { + export interface PaymentMethodReuseAgreement { /** - * The shipping rate. + * Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used. + * + * When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. */ - shipping_rate: string | ShippingRate; + position: PaymentMethodReuseAgreement.Position; } - export type Status = 'complete' | 'expired' | 'open'; + export type Promotions = 'auto' | 'none'; - export type SubmitType = 'auto' | 'book' | 'donate' | 'pay' | 'subscribe'; + export type TermsOfService = 'none' | 'required'; - export interface TaxIdCollection { + export namespace PaymentMethodReuseAgreement { + export type Position = 'auto' | 'hidden'; + } + } + + export namespace CustomerDetails { + export type TaxExempt = 'exempt' | 'none' | 'reverse'; + + export interface TaxId { /** - * Indicates whether tax ID collection is enabled for the session + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` */ - enabled: boolean; + type: TaxId.Type; /** - * Indicates whether a tax ID is required on the payment page + * The value of the tax ID. */ - required: TaxIdCollection.Required; + value: string | null; } - export interface TotalDetails { + export namespace TaxId { + export type Type = + | 'ad_nrt' + | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' + | 'ar_cuit' + | 'au_abn' + | 'au_arn' + | 'aw_tin' + | 'az_tin' + | 'ba_tin' + | 'bb_tin' + | 'bd_bin' + | 'bf_ifu' + | 'bg_uic' + | 'bh_vat' + | 'bj_ifu' + | 'bo_tin' + | 'br_cnpj' + | 'br_cpf' + | 'bs_tin' + | 'by_tin' + | 'ca_bn' + | 'ca_gst_hst' + | 'ca_pst_bc' + | 'ca_pst_mb' + | 'ca_pst_sk' + | 'ca_qst' + | 'cd_nif' + | 'ch_uid' + | 'ch_vat' + | 'cl_tin' + | 'cm_niu' + | 'cn_tin' + | 'co_nit' + | 'cr_tin' + | 'cv_nif' + | 'de_stn' + | 'do_rcn' + | 'ec_ruc' + | 'eg_tin' + | 'es_cif' + | 'et_tin' + | 'eu_oss_vat' + | 'eu_vat' + | 'fo_vat' + | 'gb_vat' + | 'ge_vat' + | 'gi_tin' + | 'gn_nif' + | 'hk_br' + | 'hr_oib' + | 'hu_tin' + | 'id_npwp' + | 'il_vat' + | 'in_gst' + | 'is_vat' + | 'it_cf' + | 'jp_cn' + | 'jp_rn' + | 'jp_trn' + | 'ke_pin' + | 'kg_tin' + | 'kh_tin' + | 'kr_brn' + | 'kz_bin' + | 'la_tin' + | 'li_uid' + | 'li_vat' + | 'lk_vat' + | 'ma_vat' + | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' + | 'mx_rfc' + | 'my_frp' + | 'my_itn' + | 'my_sst' + | 'ng_tin' + | 'no_vat' + | 'no_voec' + | 'np_pan' + | 'nz_gst' + | 'om_vat' + | 'pe_ruc' + | 'ph_tin' + | 'pl_nip' + | 'py_ruc' + | 'ro_tin' + | 'rs_pib' + | 'ru_inn' + | 'ru_kpp' + | 'sa_vat' + | 'sg_gst' + | 'sg_uen' + | 'si_tin' + | 'sn_ninea' + | 'sr_fin' + | 'sv_nit' + | 'th_vat' + | 'tj_tin' + | 'tr_tin' + | 'tw_vat' + | 'tz_vat' + | 'ua_vat' + | 'ug_tin' + | 'unknown' + | 'us_ein' + | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' + | 've_rif' + | 'vn_tin' + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; + } + } + + export namespace CustomField { + export interface Dropdown { /** - * This is the sum of all the discounts. + * The value that pre-fills on the payment page. */ - amount_discount: number; + default_value: string | null; /** - * This is the sum of all the shipping amounts. + * The options available for the customer to select. Up to 200 options allowed. */ - amount_shipping: number | null; + options: Array; /** - * This is the sum of all the tax amounts. + * The option selected by the customer. This will be the `value` for the option. */ - amount_tax: number; - - breakdown?: TotalDetails.Breakdown; + value: string | null; } - export type UiMode = 'elements' | 'embedded_page' | 'form' | 'hosted_page'; + export interface Label { + /** + * Custom text for the label, displayed to the customer. Up to 50 characters. + */ + custom: string | null; - export interface WalletOptions { - link?: WalletOptions.Link; + /** + * The type of the label. + */ + type: 'custom'; } - export namespace AfterExpiration { - export interface Recovery { - /** - * Enables user redeemable promotion codes on the recovered Checkout Sessions. Defaults to `false` - */ - allow_promotion_codes: boolean; + export interface Numeric { + /** + * The value that pre-fills the field on the payment page. + */ + default_value: string | null; - /** - * If `true`, a recovery url will be generated to recover this Checkout Session if it - * expires before a transaction is completed. It will be attached to the - * Checkout Session object upon expiration. - */ - enabled: boolean; + /** + * The maximum character length constraint for the customer's input. + */ + maximum_length: number | null; - /** - * The timestamp at which the recovery URL will expire. - */ - expires_at: number | null; + /** + * The minimum character length requirement for the customer's input. + */ + minimum_length: number | null; - /** - * URL that creates a new Checkout Session when clicked that is a copy of this expired Checkout Session - */ - url: string | null; - } + /** + * The value entered by the customer, containing only digits. + */ + value: string | null; } - export namespace AutomaticTax { - export interface Liability { - /** - * The connected account being referenced when `type` is `account`. - */ - account?: string | Account; + export interface Text { + /** + * The value that pre-fills the field on the payment page. + */ + default_value: string | null; - /** - * Type of the account referenced. - */ - type: Liability.Type; - } + /** + * The maximum character length constraint for the customer's input. + */ + maximum_length: number | null; - export type Status = 'complete' | 'failed' | 'requires_location_inputs'; + /** + * The minimum character length requirement for the customer's input. + */ + minimum_length: number | null; - export namespace Liability { - export type Type = 'account' | 'self'; - } + /** + * The value entered by the customer. + */ + value: string | null; } - export namespace BrandingSettings { - export type BorderStyle = 'pill' | 'rectangular' | 'rounded'; - - export interface Icon { - /** - * The ID of a [File upload](https://stripe.com/docs/api/files) representing the icon. Purpose must be `business_icon`. Required if `type` is `file` and disallowed otherwise. - */ - file?: string; - - /** - * The type of image for the icon. Must be one of `file` or `url`. - */ - type: Icon.Type; - - /** - * The URL of the image. Present when `type` is `url`. - */ - url?: string; - } - - export interface Logo { - /** - * The ID of a [File upload](https://stripe.com/docs/api/files) representing the logo. Purpose must be `business_logo`. Required if `type` is `file` and disallowed otherwise. - */ - file?: string; + export type Type = 'dropdown' | 'numeric' | 'text'; + export namespace Dropdown { + export interface Option { /** - * The type of image for the logo. Must be one of `file` or `url`. + * The label for the option, displayed to the customer. Up to 100 characters. */ - type: Logo.Type; + label: string; /** - * The URL of the image. Present when `type` is `url`. + * The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters. */ - url?: string; - } - - export namespace Icon { - export type Type = 'file' | 'url'; - } - - export namespace Logo { - export type Type = 'file' | 'url'; + value: string; } } + } - export namespace CollectedInformation { - export interface ShippingDetails { - address: Address; - - /** - * Customer name. - */ - name: string; - } - - export interface TaxId { - /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` - */ - type: TaxId.Type; + export namespace CustomText { + export interface AfterSubmit { + /** + * Text can be up to 1200 characters in length. + */ + message: string; + } - /** - * The value of the tax ID. - */ - value: string | null; - } + export interface ShippingAddress { + /** + * Text can be up to 1200 characters in length. + */ + message: string; + } - export namespace TaxId { - export type Type = - | 'ad_nrt' - | 'ae_trn' - | 'al_tin' - | 'am_tin' - | 'ao_tin' - | 'ar_cuit' - | 'au_abn' - | 'au_arn' - | 'aw_tin' - | 'az_tin' - | 'ba_tin' - | 'bb_tin' - | 'bd_bin' - | 'bf_ifu' - | 'bg_uic' - | 'bh_vat' - | 'bj_ifu' - | 'bo_tin' - | 'br_cnpj' - | 'br_cpf' - | 'bs_tin' - | 'by_tin' - | 'ca_bn' - | 'ca_gst_hst' - | 'ca_pst_bc' - | 'ca_pst_mb' - | 'ca_pst_sk' - | 'ca_qst' - | 'cd_nif' - | 'ch_uid' - | 'ch_vat' - | 'cl_tin' - | 'cm_niu' - | 'cn_tin' - | 'co_nit' - | 'cr_tin' - | 'cv_nif' - | 'de_stn' - | 'do_rcn' - | 'ec_ruc' - | 'eg_tin' - | 'es_cif' - | 'et_tin' - | 'eu_oss_vat' - | 'eu_vat' - | 'fo_vat' - | 'gb_vat' - | 'ge_vat' - | 'gi_tin' - | 'gn_nif' - | 'hk_br' - | 'hr_oib' - | 'hu_tin' - | 'id_npwp' - | 'il_vat' - | 'in_gst' - | 'is_vat' - | 'it_cf' - | 'jp_cn' - | 'jp_rn' - | 'jp_trn' - | 'ke_pin' - | 'kg_tin' - | 'kh_tin' - | 'kr_brn' - | 'kz_bin' - | 'la_tin' - | 'li_uid' - | 'li_vat' - | 'lk_vat' - | 'ma_vat' - | 'md_vat' - | 'me_pib' - | 'mk_vat' - | 'mr_nif' - | 'mx_rfc' - | 'my_frp' - | 'my_itn' - | 'my_sst' - | 'ng_tin' - | 'no_vat' - | 'no_voec' - | 'np_pan' - | 'nz_gst' - | 'om_vat' - | 'pe_ruc' - | 'ph_tin' - | 'pl_nip' - | 'py_ruc' - | 'ro_tin' - | 'rs_pib' - | 'ru_inn' - | 'ru_kpp' - | 'sa_vat' - | 'sg_gst' - | 'sg_uen' - | 'si_tin' - | 'sn_ninea' - | 'sr_fin' - | 'sv_nit' - | 'th_vat' - | 'tj_tin' - | 'tr_tin' - | 'tw_vat' - | 'tz_vat' - | 'ua_vat' - | 'ug_tin' - | 'unknown' - | 'us_ein' - | 'uy_ruc' - | 'uz_tin' - | 'uz_vat' - | 've_rif' - | 'vn_tin' - | 'za_vat' - | 'zm_tin' - | 'zw_tin'; - } - } - - export namespace Consent { - export type Promotions = 'opt_in' | 'opt_out'; + export interface Submit { + /** + * Text can be up to 1200 characters in length. + */ + message: string; } - export namespace ConsentCollection { - export interface PaymentMethodReuseAgreement { - /** - * Determines the position and visibility of the payment method reuse agreement in the UI. When set to `auto`, Stripe's defaults will be used. - * - * When set to `hidden`, the payment method reuse agreement text will always be hidden in the UI. - */ - position: PaymentMethodReuseAgreement.Position; - } + export interface TermsOfServiceAcceptance { + /** + * Text can be up to 1200 characters in length. + */ + message: string; + } + } - export type Promotions = 'auto' | 'none'; + export namespace InvoiceCreation { + export interface InvoiceData { + /** + * The account tax IDs associated with the invoice. + */ + account_tax_ids: Array | null; - export type TermsOfService = 'none' | 'required'; + /** + * Custom fields displayed on the invoice. + */ + custom_fields: Array | null; - export namespace PaymentMethodReuseAgreement { - export type Position = 'auto' | 'hidden'; - } - } + /** + * An arbitrary string attached to the object. Often useful for displaying to users. + */ + description: string | null; - export namespace CustomerDetails { - export type TaxExempt = 'exempt' | 'none' | 'reverse'; + /** + * Footer displayed on the invoice. + */ + footer: string | null; - export interface TaxId { - /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` - */ - type: TaxId.Type; + /** + * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. + */ + issuer: InvoiceData.Issuer | null; - /** - * The value of the tax ID. - */ - value: string | null; - } + /** + * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + */ + metadata: Metadata | null; - export namespace TaxId { - export type Type = - | 'ad_nrt' - | 'ae_trn' - | 'al_tin' - | 'am_tin' - | 'ao_tin' - | 'ar_cuit' - | 'au_abn' - | 'au_arn' - | 'aw_tin' - | 'az_tin' - | 'ba_tin' - | 'bb_tin' - | 'bd_bin' - | 'bf_ifu' - | 'bg_uic' - | 'bh_vat' - | 'bj_ifu' - | 'bo_tin' - | 'br_cnpj' - | 'br_cpf' - | 'bs_tin' - | 'by_tin' - | 'ca_bn' - | 'ca_gst_hst' - | 'ca_pst_bc' - | 'ca_pst_mb' - | 'ca_pst_sk' - | 'ca_qst' - | 'cd_nif' - | 'ch_uid' - | 'ch_vat' - | 'cl_tin' - | 'cm_niu' - | 'cn_tin' - | 'co_nit' - | 'cr_tin' - | 'cv_nif' - | 'de_stn' - | 'do_rcn' - | 'ec_ruc' - | 'eg_tin' - | 'es_cif' - | 'et_tin' - | 'eu_oss_vat' - | 'eu_vat' - | 'fo_vat' - | 'gb_vat' - | 'ge_vat' - | 'gi_tin' - | 'gn_nif' - | 'hk_br' - | 'hr_oib' - | 'hu_tin' - | 'id_npwp' - | 'il_vat' - | 'in_gst' - | 'is_vat' - | 'it_cf' - | 'jp_cn' - | 'jp_rn' - | 'jp_trn' - | 'ke_pin' - | 'kg_tin' - | 'kh_tin' - | 'kr_brn' - | 'kz_bin' - | 'la_tin' - | 'li_uid' - | 'li_vat' - | 'lk_vat' - | 'ma_vat' - | 'md_vat' - | 'me_pib' - | 'mk_vat' - | 'mr_nif' - | 'mx_rfc' - | 'my_frp' - | 'my_itn' - | 'my_sst' - | 'ng_tin' - | 'no_vat' - | 'no_voec' - | 'np_pan' - | 'nz_gst' - | 'om_vat' - | 'pe_ruc' - | 'ph_tin' - | 'pl_nip' - | 'py_ruc' - | 'ro_tin' - | 'rs_pib' - | 'ru_inn' - | 'ru_kpp' - | 'sa_vat' - | 'sg_gst' - | 'sg_uen' - | 'si_tin' - | 'sn_ninea' - | 'sr_fin' - | 'sv_nit' - | 'th_vat' - | 'tj_tin' - | 'tr_tin' - | 'tw_vat' - | 'tz_vat' - | 'ua_vat' - | 'ug_tin' - | 'unknown' - | 'us_ein' - | 'uy_ruc' - | 'uz_tin' - | 'uz_vat' - | 've_rif' - | 'vn_tin' - | 'za_vat' - | 'zm_tin' - | 'zw_tin'; - } + /** + * Options for invoice PDF rendering. + */ + rendering_options: InvoiceData.RenderingOptions | null; } - export namespace CustomField { - export interface Dropdown { - /** - * The value that pre-fills on the payment page. - */ - default_value: string | null; - + export namespace InvoiceData { + export interface CustomField { /** - * The options available for the customer to select. Up to 200 options allowed. + * The name of the custom field. */ - options: Array; + name: string; /** - * The option selected by the customer. This will be the `value` for the option. + * The value of the custom field. */ - value: string | null; + value: string; } - export interface Label { + export interface Issuer { /** - * Custom text for the label, displayed to the customer. Up to 50 characters. + * The connected account being referenced when `type` is `account`. */ - custom: string | null; + account?: string | Account; /** - * The type of the label. + * Type of the account referenced. */ - type: 'custom'; + type: Issuer.Type; } - export interface Numeric { - /** - * The value that pre-fills the field on the payment page. - */ - default_value: string | null; - + export interface RenderingOptions { /** - * The maximum character length constraint for the customer's input. + * How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. */ - maximum_length: number | null; + amount_tax_display: string | null; /** - * The minimum character length requirement for the customer's input. + * ID of the invoice rendering template to be used for the generated invoice. */ - minimum_length: number | null; + template: string | null; + } - /** - * The value entered by the customer, containing only digits. - */ - value: string | null; + export namespace Issuer { + export type Type = 'account' | 'self'; } + } + } - export interface Text { - /** - * The value that pre-fills the field on the payment page. - */ - default_value: string | null; + export namespace NameCollection { + export interface Business { + /** + * Indicates whether business name collection is enabled for the session + */ + enabled: boolean; - /** - * The maximum character length constraint for the customer's input. - */ - maximum_length: number | null; + /** + * Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`. + */ + optional: boolean; + } - /** - * The minimum character length requirement for the customer's input. - */ - minimum_length: number | null; + export interface Individual { + /** + * Indicates whether individual name collection is enabled for the session + */ + enabled: boolean; - /** - * The value entered by the customer. - */ - value: string | null; - } + /** + * Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`. + */ + optional: boolean; + } + } - export type Type = 'dropdown' | 'numeric' | 'text'; + export namespace OptionalItem { + export interface AdjustableQuantity { + /** + * Set to true if the quantity can be adjusted to any non-negative integer. + */ + enabled: boolean; - export namespace Dropdown { - export interface Option { - /** - * The label for the option, displayed to the customer. Up to 100 characters. - */ - label: string; + /** + * The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999. + */ + maximum: number | null; - /** - * The value for this option, not displayed to the customer, used by your integration to reconcile the option selected by the customer. Must be unique to this option, alphanumeric, and up to 100 characters. - */ - value: string; - } - } + /** + * The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0. + */ + minimum: number | null; } + } - export namespace CustomText { - export interface AfterSubmit { - /** - * Text can be up to 1200 characters in length. - */ - message: string; - } + export namespace PaymentMethodOptions { + export interface AcssDebit { + /** + * Currency supported by the bank account. Returned when the Session is in `setup` mode. + */ + currency?: AcssDebit.Currency; - export interface ShippingAddress { - /** - * Text can be up to 1200 characters in length. - */ - message: string; - } + mandate_options?: AcssDebit.MandateOptions; - export interface Submit { - /** - * Text can be up to 1200 characters in length. - */ - message: string; - } + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: AcssDebit.SetupFutureUsage; - export interface TermsOfServiceAcceptance { - /** - * Text can be up to 1200 characters in length. - */ - message: string; - } - } + /** + * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + */ + target_date?: string; - export namespace InvoiceCreation { - export interface InvoiceData { - /** - * The account tax IDs associated with the invoice. - */ - account_tax_ids: Array | null; + /** + * Bank account verification method. The default value is `automatic`. + */ + verification_method?: AcssDebit.VerificationMethod; + } - /** - * Custom fields displayed on the invoice. - */ - custom_fields: Array | null; + export interface Affirm { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; - /** - * An arbitrary string attached to the object. Often useful for displaying to users. - */ - description: string | null; + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - /** - * Footer displayed on the invoice. - */ - footer: string | null; + export interface AfterpayClearpay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; - /** - * The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account. - */ - issuer: InvoiceData.Issuer | null; + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - /** - * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. - */ - metadata: Metadata | null; + export interface Alipay { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - /** - * Options for invoice PDF rendering. - */ - rendering_options: InvoiceData.RenderingOptions | null; - } + export interface Alma { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } - export namespace InvoiceData { - export interface CustomField { - /** - * The name of the custom field. - */ - name: string; + export interface AmazonPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; - /** - * The value of the custom field. - */ - value: string; - } + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: AmazonPay.SetupFutureUsage; + } - export interface Issuer { - /** - * The connected account being referenced when `type` is `account`. - */ - account?: string | Account; + export interface AuBecsDebit { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; - /** - * Type of the account referenced. - */ - type: Issuer.Type; - } + /** + * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + */ + target_date?: string; + } - export interface RenderingOptions { - /** - * How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. - */ - amount_tax_display: string | null; + export interface BacsDebit { + mandate_options?: BacsDebit.MandateOptions; - /** - * ID of the invoice rendering template to be used for the generated invoice. - */ - template: string | null; - } + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: BacsDebit.SetupFutureUsage; - export namespace Issuer { - export type Type = 'account' | 'self'; - } - } + /** + * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + */ + target_date?: string; } - export namespace NameCollection { - export interface Business { - /** - * Indicates whether business name collection is enabled for the session - */ - enabled: boolean; + export interface Bancontact { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - /** - * Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`. - */ - optional: boolean; - } + export interface Billie { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } - export interface Individual { - /** - * Indicates whether individual name collection is enabled for the session - */ - enabled: boolean; + export interface Boleto { + /** + * The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time. + */ + expires_after_days: number; - /** - * Whether the customer is required to complete the field before completing the Checkout Session. Defaults to `false`. - */ - optional: boolean; - } + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Boleto.SetupFutureUsage; } - export namespace OptionalItem { - export interface AdjustableQuantity { - /** - * Set to true if the quantity can be adjusted to any non-negative integer. - */ - enabled: boolean; + export interface Card { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; - /** - * The maximum quantity of this item the customer can purchase. By default this value is 99. You can specify a value up to 999999. - */ - maximum: number | null; + installments?: Card.Installments; - /** - * The minimum quantity of this item the customer must purchase, if they choose to purchase it. Because this item is optional, the customer will always be able to remove it from their order, even if the `minimum` configured here is greater than 0. By default this value is 0. - */ - minimum: number | null; - } - } + /** + * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession. + */ + request_decremental_authorization?: Card.RequestDecrementalAuthorization; - export namespace PaymentMethodOptions { - export interface AcssDebit { - /** - * Currency supported by the bank account. Returned when the Session is in `setup` mode. - */ - currency?: AcssDebit.Currency; + /** + * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession. + */ + request_extended_authorization?: Card.RequestExtendedAuthorization; - mandate_options?: AcssDebit.MandateOptions; + /** + * Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this CheckoutSession. + */ + request_incremental_authorization?: Card.RequestIncrementalAuthorization; - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: AcssDebit.SetupFutureUsage; + /** + * Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this CheckoutSession. + */ + request_multicapture?: Card.RequestMulticapture; - /** - * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. - */ - target_date?: string; + /** + * Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this CheckoutSession. + */ + request_overcapture?: Card.RequestOvercapture; - /** - * Bank account verification method. The default value is `automatic`. - */ - verification_method?: AcssDebit.VerificationMethod; - } + /** + * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + */ + request_three_d_secure: Card.RequestThreeDSecure; - export interface Affirm { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; + restrictions?: Card.Restrictions; - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; - } + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Card.SetupFutureUsage; - export interface AfterpayClearpay { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; + /** + * Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters. + */ + statement_descriptor_suffix_kana?: string; - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; - } + /** + * Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters. + */ + statement_descriptor_suffix_kanji?: string; + } - export interface Alipay { - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; - } + export interface Cashapp { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; - export interface Alma { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; - } + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - export interface AmazonPay { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; + export interface CustomerBalance { + bank_transfer?: CustomerBalance.BankTransfer; - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: AmazonPay.SetupFutureUsage; - } + /** + * The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`. + */ + funding_type: 'bank_transfer' | null; - export interface AuBecsDebit { - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - /** - * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. - */ - target_date?: string; - } + export interface Eps { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - export interface BacsDebit { - mandate_options?: BacsDebit.MandateOptions; + export interface Fpx { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: BacsDebit.SetupFutureUsage; + export interface Giropay { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - /** - * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. - */ - target_date?: string; - } + export interface Grabpay { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - export interface Bancontact { - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; - } + export interface Ideal { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - export interface Billie { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; - } + export interface KakaoPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; - export interface Boleto { - /** - * The number of calendar days before a Boleto voucher expires. For example, if you create a Boleto voucher on Monday and you set expires_after_days to 2, the Boleto voucher will expire on Wednesday at 23:59 America/Sao_Paulo time. - */ - expires_after_days: number; + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KakaoPay.SetupFutureUsage; + } - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: Boleto.SetupFutureUsage; - } + export interface Klarna { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; - export interface Card { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Klarna.SetupFutureUsage; + } - installments?: Card.Installments; + export interface Konbini { + /** + * The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. + */ + expires_after_days: number | null; - /** - * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession. - */ - request_decremental_authorization?: Card.RequestDecrementalAuthorization; + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - /** - * Request ability to [capture beyond the standard authorization validity window](https://docs.stripe.com/payments/extended-authorization) for this CheckoutSession. - */ - request_extended_authorization?: Card.RequestExtendedAuthorization; + export interface KrCard { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; - /** - * Request ability to [increment the authorization](https://docs.stripe.com/payments/incremental-authorization) for this CheckoutSession. - */ - request_incremental_authorization?: Card.RequestIncrementalAuthorization; + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: KrCard.SetupFutureUsage; + } - /** - * Request ability to make [multiple captures](https://docs.stripe.com/payments/multicapture) for this CheckoutSession. - */ - request_multicapture?: Card.RequestMulticapture; + export interface Link { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; - /** - * Request ability to [overcapture](https://docs.stripe.com/payments/overcapture) for this CheckoutSession. - */ - request_overcapture?: Card.RequestOvercapture; + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Link.SetupFutureUsage; + } - /** - * We strongly recommend that you rely on our SCA Engine to automatically prompt your customers for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. If not provided, this value defaults to `automatic`. Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. - */ - request_three_d_secure: Card.RequestThreeDSecure; + export interface Mobilepay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; - restrictions?: Card.Restrictions; + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: Card.SetupFutureUsage; + export interface Multibanco { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - /** - * Provides information about a card payment that customers see on their statements. Concatenated with the Kana prefix (shortened Kana descriptor) or Kana statement descriptor that's set on the account to form the complete statement descriptor. Maximum 22 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 22 characters. - */ - statement_descriptor_suffix_kana?: string; + export interface NaverPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; - /** - * Provides information about a card payment that customers see on their statements. Concatenated with the Kanji prefix (shortened Kanji descriptor) or Kanji statement descriptor that's set on the account to form the complete statement descriptor. Maximum 17 characters. On card statements, the *concatenation* of both prefix and suffix (including separators) will appear truncated to 17 characters. - */ - statement_descriptor_suffix_kanji?: string; - } + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: NaverPay.SetupFutureUsage; + } - export interface Cashapp { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; + export interface Oxxo { + /** + * The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. + */ + expires_after_days: number; - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; - } + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } - export interface CustomerBalance { - bank_transfer?: CustomerBalance.BankTransfer; + export interface P24 { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } + + export interface Payco { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + + export interface Paynow { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } + + export interface Paypal { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + + /** + * Preferred locale of the PayPal checkout page that the customer is redirected to. + */ + preferred_locale: string | null; + + /** + * A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID. + */ + reference: string | null; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Paypal.SetupFutureUsage; + + /** + * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used. + */ + subsellers?: Array; + } + + export interface Payto { + mandate_options?: Payto.MandateOptions; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Payto.SetupFutureUsage; + } + + export interface Pix { + /** + * Determines if the amount includes the IOF tax. + */ + amount_includes_iof?: Pix.AmountIncludesIof; + + /** + * The number of seconds after which Pix payment will expire. + */ + expires_after_seconds: number | null; + + mandate_options?: Pix.MandateOptions; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Pix.SetupFutureUsage; + } + + export interface RevolutPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: RevolutPay.SetupFutureUsage; + } + + export interface SamsungPay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + + export interface Satispay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + + export interface Scalapay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + } + + export interface SepaDebit { + mandate_options?: SepaDebit.MandateOptions; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: SepaDebit.SetupFutureUsage; + + /** + * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + */ + target_date?: string; + } + + export interface Sofort { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } + + export interface Swish { + /** + * The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. + */ + reference: string | null; + } + + export interface Twint { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Twint.SetupFutureUsage; + } + export interface Upi { + mandate_options?: Upi.MandateOptions; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: Upi.SetupFutureUsage; + } + + export interface UsBankAccount { + financial_connections?: UsBankAccount.FinancialConnections; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. + * + * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * + * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + */ + setup_future_usage?: UsBankAccount.SetupFutureUsage; + + /** + * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. + */ + target_date?: string; + + /** + * Bank account verification method. The default value is `automatic`. + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + export namespace AcssDebit { + export type Currency = 'cad' | 'usd'; + + export interface MandateOptions { /** - * The funding method type to be used when there are not enough funds in the customer balance. Permitted values include: `bank_transfer`. + * A URL for custom mandate text */ - funding_type: 'bank_transfer' | null; + custom_mandate_url?: string; /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + * List of Stripe products where this mandate can be selected automatically. Returned when the Session is in `setup` mode. */ - setup_future_usage?: 'none'; - } + default_for?: Array; - export interface Eps { /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + * Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'. */ - setup_future_usage?: 'none'; - } + interval_description: string | null; - export interface Fpx { /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + * Payment schedule for the mandate. */ - setup_future_usage?: 'none'; - } + payment_schedule: MandateOptions.PaymentSchedule | null; - export interface Giropay { /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + * Transaction type of the mandate. */ - setup_future_usage?: 'none'; + transaction_type: MandateOptions.TransactionType | null; } - export interface Grabpay { - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; + export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; + + export type VerificationMethod = + | 'automatic' + | 'instant' + | 'microdeposits'; + + export namespace MandateOptions { + export type DefaultFor = 'invoice' | 'subscription'; + + export type PaymentSchedule = 'combined' | 'interval' | 'sporadic'; + + export type TransactionType = 'business' | 'personal'; } + } - export interface Ideal { + export namespace AmazonPay { + export type SetupFutureUsage = 'none' | 'off_session'; + } + + export namespace BacsDebit { + export interface MandateOptions { /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. */ - setup_future_usage?: 'none'; + reference_prefix?: string; } - export interface KakaoPay { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; + export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; + } + + export namespace Boleto { + export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; + } + export namespace Card { + export interface Installments { /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + * Indicates if installments are enabled */ - setup_future_usage?: KakaoPay.SetupFutureUsage; + enabled?: boolean; } - export interface Klarna { + export type RequestDecrementalAuthorization = 'if_available' | 'never'; + + export type RequestExtendedAuthorization = 'if_available' | 'never'; + + export type RequestIncrementalAuthorization = 'if_available' | 'never'; + + export type RequestMulticapture = 'if_available' | 'never'; + + export type RequestOvercapture = 'if_available' | 'never'; + + export type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; + + export interface Restrictions { /** - * Controls when the funds will be captured from the customer's account. + * The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. */ - capture_method?: 'manual'; + brands_blocked?: Array; + } + + export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; + + export namespace Restrictions { + export type BrandsBlocked = + | 'american_express' + | 'discover_global_network' + | 'mastercard' + | 'visa'; + } + } + + export namespace CustomerBalance { + export interface BankTransfer { + eu_bank_transfer?: BankTransfer.EuBankTransfer; /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. + * List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). + * Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. */ - setup_future_usage?: Klarna.SetupFutureUsage; - } + requested_address_types?: Array; - export interface Konbini { /** - * The number of calendar days (between 1 and 60) after which Konbini payment instructions will expire. For example, if a PaymentIntent is confirmed with Konbini and `expires_after_days` set to 2 on Monday JST, the instructions will expire on Wednesday 23:59:59 JST. + * The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. */ - expires_after_days: number | null; - - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; - } - - export interface KrCard { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; - - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: KrCard.SetupFutureUsage; - } - - export interface Link { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; - - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: Link.SetupFutureUsage; - } - - export interface Mobilepay { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; - - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; - } - - export interface Multibanco { - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; - } - - export interface NaverPay { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; - - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: NaverPay.SetupFutureUsage; - } - - export interface Oxxo { - /** - * The number of calendar days before an OXXO invoice expires. For example, if you create an OXXO invoice on Monday and you set expires_after_days to 2, the OXXO invoice will expire on Wednesday at 23:59 America/Mexico_City time. - */ - expires_after_days: number; - - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; - } - - export interface P24 { - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; - } - - export interface Payco { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; - } - - export interface Paynow { - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; - } - - export interface Paypal { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; - - /** - * Preferred locale of the PayPal checkout page that the customer is redirected to. - */ - preferred_locale: string | null; - - /** - * A reference of the PayPal transaction visible to customer which is mapped to PayPal's invoice ID. This must be a globally unique ID if you have configured in your PayPal settings to block multiple payments per invoice ID. - */ - reference: string | null; - - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: Paypal.SetupFutureUsage; - - /** - * The Stripe connected account IDs of the sellers on the platform for this transaction (optional). Only allowed when [separate charges and transfers](https://stripe.com/docs/connect/separate-charges-and-transfers) are used. - */ - subsellers?: Array; - } - - export interface Payto { - mandate_options?: Payto.MandateOptions; - - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: Payto.SetupFutureUsage; - } - - export interface Pix { - /** - * Determines if the amount includes the IOF tax. - */ - amount_includes_iof?: Pix.AmountIncludesIof; - - /** - * The number of seconds after which Pix payment will expire. - */ - expires_after_seconds: number | null; - - mandate_options?: Pix.MandateOptions; - - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: Pix.SetupFutureUsage; - } - - export interface RevolutPay { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; - - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: RevolutPay.SetupFutureUsage; - } - - export interface SamsungPay { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; - } - - export interface Satispay { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; - } - - export interface Scalapay { - /** - * Controls when the funds will be captured from the customer's account. - */ - capture_method?: 'manual'; - } - - export interface SepaDebit { - mandate_options?: SepaDebit.MandateOptions; - - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: SepaDebit.SetupFutureUsage; - - /** - * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. - */ - target_date?: string; - } - - export interface Sofort { - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: 'none'; - } - - export interface Swish { - /** - * The order reference that will be displayed to customers in the Swish application. Defaults to the `id` of the Payment Intent. - */ - reference: string | null; - } - - export interface Twint { - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: Twint.SetupFutureUsage; - } - - export interface Upi { - mandate_options?: Upi.MandateOptions; - - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: Upi.SetupFutureUsage; - } - - export interface UsBankAccount { - financial_connections?: UsBankAccount.FinancialConnections; - - /** - * Indicates that you intend to make future payments with this PaymentIntent's payment method. - * - * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes. - * - * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead. - * - * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication). - */ - setup_future_usage?: UsBankAccount.SetupFutureUsage; - - /** - * Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now. - */ - target_date?: string; - - /** - * Bank account verification method. The default value is `automatic`. - */ - verification_method?: UsBankAccount.VerificationMethod; - } - - export namespace AcssDebit { - export type Currency = 'cad' | 'usd'; - - export interface MandateOptions { - /** - * A URL for custom mandate text - */ - custom_mandate_url?: string; - - /** - * List of Stripe products where this mandate can be selected automatically. Returned when the Session is in `setup` mode. - */ - default_for?: Array; - - /** - * Description of the interval. Only required if the 'payment_schedule' parameter is 'interval' or 'combined'. - */ - interval_description: string | null; - - /** - * Payment schedule for the mandate. - */ - payment_schedule: MandateOptions.PaymentSchedule | null; - - /** - * Transaction type of the mandate. - */ - transaction_type: MandateOptions.TransactionType | null; - } - - export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; - - export type VerificationMethod = - | 'automatic' - | 'instant' - | 'microdeposits'; - - export namespace MandateOptions { - export type DefaultFor = 'invoice' | 'subscription'; - - export type PaymentSchedule = 'combined' | 'interval' | 'sporadic'; - - export type TransactionType = 'business' | 'personal'; - } - } - - export namespace AmazonPay { - export type SetupFutureUsage = 'none' | 'off_session'; - } - - export namespace BacsDebit { - export interface MandateOptions { - /** - * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. - */ - reference_prefix?: string; - } - - export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; - } - - export namespace Boleto { - export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; - } - - export namespace Card { - export interface Installments { - /** - * Indicates if installments are enabled - */ - enabled?: boolean; - } - - export type RequestDecrementalAuthorization = 'if_available' | 'never'; - - export type RequestExtendedAuthorization = 'if_available' | 'never'; - - export type RequestIncrementalAuthorization = 'if_available' | 'never'; - - export type RequestMulticapture = 'if_available' | 'never'; - - export type RequestOvercapture = 'if_available' | 'never'; - - export type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; - - export interface Restrictions { - /** - * The card brands to block. If a customer enters or selects a card belonging to a blocked brand, they can't complete the payment. - */ - brands_blocked?: Array; - } - - export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; - - export namespace Restrictions { - export type BrandsBlocked = - | 'american_express' - | 'discover_global_network' - | 'mastercard' - | 'visa'; - } - } - - export namespace CustomerBalance { - export interface BankTransfer { - eu_bank_transfer?: BankTransfer.EuBankTransfer; - - /** - * List of address types that should be returned in the financial_addresses response. If not specified, all valid types will be returned. - * - * Permitted values include: `sort_code`, `zengin`, `iban`, or `spei`. - */ - requested_address_types?: Array; - - /** - * The bank transfer type that this PaymentIntent is allowed to use for funding Permitted values include: `eu_bank_transfer`, `gb_bank_transfer`, `jp_bank_transfer`, `mx_bank_transfer`, or `us_bank_transfer`. - */ - type: BankTransfer.Type | null; - } - - export namespace BankTransfer { - export interface EuBankTransfer { - /** - * The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. - */ - country: EuBankTransfer.Country; - } - - export type RequestedAddressType = - | 'aba' - | 'iban' - | 'sepa' - | 'sort_code' - | 'spei' - | 'swift' - | 'zengin'; - - export type Type = - | 'eu_bank_transfer' - | 'gb_bank_transfer' - | 'jp_bank_transfer' - | 'mx_bank_transfer' - | 'us_bank_transfer'; - - export namespace EuBankTransfer { - export type Country = 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; - } - } - } - - export namespace KakaoPay { - export type SetupFutureUsage = 'none' | 'off_session'; - } - - export namespace Klarna { - export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; - } - - export namespace KrCard { - export type SetupFutureUsage = 'none' | 'off_session'; - } - - export namespace Link { - export type SetupFutureUsage = 'none' | 'off_session'; - } - - export namespace NaverPay { - export type SetupFutureUsage = 'none' | 'off_session'; - } - - export namespace Paypal { - export type SetupFutureUsage = 'none' | 'off_session'; - } - - export namespace Payto { - export interface MandateOptions { - /** - * Amount that will be collected. It is required when `amount_type` is `fixed`. - */ - amount: number | null; - - /** - * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. - */ - amount_type: MandateOptions.AmountType | null; - - /** - * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date. - */ - end_date: string | null; - - /** - * The periodicity at which payments will be collected. Defaults to `adhoc`. - */ - payment_schedule: MandateOptions.PaymentSchedule | null; - - /** - * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit. - */ - payments_per_period: number | null; - - /** - * The purpose for which payments are made. Has a default value based on your merchant category code. - */ - purpose: MandateOptions.Purpose | null; - - /** - * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time. - */ - start_date: string | null; - } - - export type SetupFutureUsage = 'none' | 'off_session'; - - export namespace MandateOptions { - export type AmountType = 'fixed' | 'maximum'; - - export type PaymentSchedule = - | 'adhoc' - | 'annual' - | 'daily' - | 'fortnightly' - | 'monthly' - | 'quarterly' - | 'semi_annual' - | 'weekly'; - - export type Purpose = - | 'dependant_support' - | 'government' - | 'loan' - | 'mortgage' - | 'other' - | 'pension' - | 'personal' - | 'retail' - | 'salary' - | 'tax' - | 'utility'; - } - } - - export namespace Pix { - export type AmountIncludesIof = 'always' | 'never'; - - export interface MandateOptions { - /** - * Amount to be charged for future payments. - */ - amount?: number; - - /** - * Determines if the amount includes the IOF tax. - */ - amount_includes_iof?: MandateOptions.AmountIncludesIof; - - /** - * Type of amount. - */ - amount_type?: MandateOptions.AmountType; - - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. - */ - currency?: string; - - /** - * Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. - */ - end_date?: string; - - /** - * Schedule at which the future payments will be charged. - */ - payment_schedule?: MandateOptions.PaymentSchedule; - - /** - * Subscription name displayed to buyers in their bank app. - */ - reference?: string; - - /** - * Start date of the mandate, in `YYYY-MM-DD`. - */ - start_date?: string; - } - - export type SetupFutureUsage = 'none' | 'off_session'; - - export namespace MandateOptions { - export type AmountIncludesIof = 'always' | 'never'; - - export type AmountType = 'fixed' | 'maximum'; - - export type PaymentSchedule = - | 'halfyearly' - | 'monthly' - | 'quarterly' - | 'weekly' - | 'yearly'; - } - } - - export namespace RevolutPay { - export type SetupFutureUsage = 'none' | 'off_session'; - } - - export namespace SepaDebit { - export interface MandateOptions { - /** - * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. - */ - reference_prefix?: string; - } - - export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; - } - - export namespace Twint { - export type SetupFutureUsage = 'none' | 'off_session'; - } - - export namespace Upi { - export interface MandateOptions { - /** - * Amount to be charged for future payments. - */ - amount: number | null; - - /** - * One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. - */ - amount_type: MandateOptions.AmountType | null; - - /** - * A description of the mandate or subscription that is meant to be displayed to the customer. - */ - description: string | null; - - /** - * End date of the mandate or subscription. - */ - end_date: number | null; - } - - export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; - - export namespace MandateOptions { - export type AmountType = 'fixed' | 'maximum'; - } - } - - export namespace UsBankAccount { - export interface FinancialConnections { - filters?: FinancialConnections.Filters; - - manual_entry?: FinancialConnections.ManualEntry; - - /** - * The list of permissions to request. The `payment_method` permission must be included. - */ - permissions?: Array; - - /** - * Data features requested to be retrieved upon account creation. - */ - prefetch: Array | null; - - /** - * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. - */ - return_url?: string; - } - - export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; - - export type VerificationMethod = 'automatic' | 'instant'; - - export namespace FinancialConnections { - export interface Filters { - /** - * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. - */ - account_subcategories?: Array; - - /** - * The institution to use to filter for possible accounts to link. - */ - institution?: string; - } - - export interface ManualEntry { - /** - * Settings for configuring manual entry of account details. - */ - mode?: ManualEntry.Mode; - } - - export type Permission = - | 'balances' - | 'ownership' - | 'payment_method' - | 'transactions'; - - export type Prefetch = - | 'balances' - | 'inferred_balances' - | 'ownership' - | 'transactions'; - - export namespace Filters { - export type AccountSubcategory = 'checking' | 'savings'; - } - - export namespace ManualEntry { - export type Mode = 'automatic' | 'custom'; - } - } - } - } - - export namespace Permissions { - export interface Update { - /** - * Determines which entity is allowed to update the line items. - * - * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items. - * - * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API. - */ - line_items?: Update.LineItems | null; - - /** - * Determines which entity is allowed to update the shipping details. - * - * Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details. - * - * When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API. - */ - shipping_details: Update.ShippingDetails | null; - } - - export type UpdateLineItems = 'client_only' | 'server_only'; - - export type UpdateShippingDetails = 'client_only' | 'server_only'; - - export namespace Update { - export type LineItems = 'client_only' | 'server_only'; - - export type ShippingDetails = 'client_only' | 'server_only'; + type: BankTransfer.Type | null; } - } - - export namespace SavedPaymentMethodOptions { - export type AllowRedisplayFilter = 'always' | 'limited' | 'unspecified'; - - export type PaymentMethodRemove = 'disabled' | 'enabled'; - export type PaymentMethodSave = 'disabled' | 'enabled'; - } - - export namespace ShippingAddressCollection { - export type AllowedCountry = - | 'AC' - | 'AD' - | 'AE' - | 'AF' - | 'AG' - | 'AI' - | 'AL' - | 'AM' - | 'AO' - | 'AQ' - | 'AR' - | 'AT' - | 'AU' - | 'AW' - | 'AX' - | 'AZ' - | 'BA' - | 'BB' - | 'BD' - | 'BE' - | 'BF' - | 'BG' - | 'BH' - | 'BI' - | 'BJ' - | 'BL' - | 'BM' - | 'BN' - | 'BO' - | 'BQ' - | 'BR' - | 'BS' - | 'BT' - | 'BV' - | 'BW' - | 'BY' - | 'BZ' - | 'CA' - | 'CD' - | 'CF' - | 'CG' - | 'CH' - | 'CI' - | 'CK' - | 'CL' - | 'CM' - | 'CN' - | 'CO' - | 'CR' - | 'CV' - | 'CW' - | 'CY' - | 'CZ' - | 'DE' - | 'DJ' - | 'DK' - | 'DM' - | 'DO' - | 'DZ' - | 'EC' - | 'EE' - | 'EG' - | 'EH' - | 'ER' - | 'ES' - | 'ET' - | 'FI' - | 'FJ' - | 'FK' - | 'FO' - | 'FR' - | 'GA' - | 'GB' - | 'GD' - | 'GE' - | 'GF' - | 'GG' - | 'GH' - | 'GI' - | 'GL' - | 'GM' - | 'GN' - | 'GP' - | 'GQ' - | 'GR' - | 'GS' - | 'GT' - | 'GU' - | 'GW' - | 'GY' - | 'HK' - | 'HN' - | 'HR' - | 'HT' - | 'HU' - | 'ID' - | 'IE' - | 'IL' - | 'IM' - | 'IN' - | 'IO' - | 'IQ' - | 'IS' - | 'IT' - | 'JE' - | 'JM' - | 'JO' - | 'JP' - | 'KE' - | 'KG' - | 'KH' - | 'KI' - | 'KM' - | 'KN' - | 'KR' - | 'KW' - | 'KY' - | 'KZ' - | 'LA' - | 'LB' - | 'LC' - | 'LI' - | 'LK' - | 'LR' - | 'LS' - | 'LT' - | 'LU' - | 'LV' - | 'LY' - | 'MA' - | 'MC' - | 'MD' - | 'ME' - | 'MF' - | 'MG' - | 'MK' - | 'ML' - | 'MM' - | 'MN' - | 'MO' - | 'MQ' - | 'MR' - | 'MS' - | 'MT' - | 'MU' - | 'MV' - | 'MW' - | 'MX' - | 'MY' - | 'MZ' - | 'NA' - | 'NC' - | 'NE' - | 'NG' - | 'NI' - | 'NL' - | 'NO' - | 'NP' - | 'NR' - | 'NU' - | 'NZ' - | 'OM' - | 'PA' - | 'PE' - | 'PF' - | 'PG' - | 'PH' - | 'PK' - | 'PL' - | 'PM' - | 'PN' - | 'PR' - | 'PS' - | 'PT' - | 'PY' - | 'QA' - | 'RE' - | 'RO' - | 'RS' - | 'RU' - | 'RW' - | 'SA' - | 'SB' - | 'SC' - | 'SD' - | 'SE' - | 'SG' - | 'SH' - | 'SI' - | 'SJ' - | 'SK' - | 'SL' - | 'SM' - | 'SN' - | 'SO' - | 'SR' - | 'SS' - | 'ST' - | 'SV' - | 'SX' - | 'SZ' - | 'TA' - | 'TC' - | 'TD' - | 'TF' - | 'TG' - | 'TH' - | 'TJ' - | 'TK' - | 'TL' - | 'TM' - | 'TN' - | 'TO' - | 'TR' - | 'TT' - | 'TV' - | 'TW' - | 'TZ' - | 'UA' - | 'UG' - | 'US' - | 'UY' - | 'UZ' - | 'VA' - | 'VC' - | 'VE' - | 'VG' - | 'VN' - | 'VU' - | 'WF' - | 'WS' - | 'XK' - | 'YE' - | 'YT' - | 'ZA' - | 'ZM' - | 'ZW' - | 'ZZ'; + export namespace BankTransfer { + export interface EuBankTransfer { + /** + * The desired country code of the bank account information. Permitted values include: `DE`, `FR`, `IE`, or `NL`. + */ + country: EuBankTransfer.Country; + } + + export type RequestedAddressType = + | 'aba' + | 'iban' + | 'sepa' + | 'sort_code' + | 'spei' + | 'swift' + | 'zengin'; + + export type Type = + | 'eu_bank_transfer' + | 'gb_bank_transfer' + | 'jp_bank_transfer' + | 'mx_bank_transfer' + | 'us_bank_transfer'; + + export namespace EuBankTransfer { + export type Country = 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; + } + } } - export namespace ShippingCost { - export interface Tax { + export namespace KakaoPay { + export type SetupFutureUsage = 'none' | 'off_session'; + } + + export namespace Klarna { + export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; + } + + export namespace KrCard { + export type SetupFutureUsage = 'none' | 'off_session'; + } + + export namespace Link { + export type SetupFutureUsage = 'none' | 'off_session'; + } + + export namespace NaverPay { + export type SetupFutureUsage = 'none' | 'off_session'; + } + + export namespace Paypal { + export type SetupFutureUsage = 'none' | 'off_session'; + } + + export namespace Payto { + export interface MandateOptions { /** - * Amount of tax applied for this rate. + * Amount that will be collected. It is required when `amount_type` is `fixed`. */ - amount: number; + amount: number | null; /** - * Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax. - * - * Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates) + * The type of amount that will be collected. The amount charged must be exact or up to the value of `amount` param for `fixed` or `maximum` type respectively. Defaults to `maximum`. */ - rate: TaxRate; + amount_type: MandateOptions.AmountType | null; /** - * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. + * Date, in YYYY-MM-DD format, after which payments will not be collected. Defaults to no end date. */ - taxability_reason: Tax.TaxabilityReason | null; + end_date: string | null; /** - * The amount on which tax is calculated, in cents (or local equivalent). + * The periodicity at which payments will be collected. Defaults to `adhoc`. */ - taxable_amount: number | null; + payment_schedule: MandateOptions.PaymentSchedule | null; + + /** + * The number of payments that will be made during a payment period. Defaults to 1 except for when `payment_schedule` is `adhoc`. In that case, it defaults to no limit. + */ + payments_per_period: number | null; + + /** + * The purpose for which payments are made. Has a default value based on your merchant category code. + */ + purpose: MandateOptions.Purpose | null; + + /** + * Date, in YYYY-MM-DD format, from which payments will be collected. Defaults to confirmation time. + */ + start_date: string | null; } - export namespace Tax { - export type TaxabilityReason = - | 'customer_exempt' - | 'not_collecting' - | 'not_subject_to_tax' - | 'not_supported' - | 'portion_product_exempt' - | 'portion_reduced_rated' - | 'portion_standard_rated' - | 'product_exempt' - | 'product_exempt_holiday' - | 'proportionally_rated' - | 'reduced_rated' - | 'reverse_charge' - | 'standard_rated' - | 'taxable_basis_reduced' - | 'zero_rated'; + export type SetupFutureUsage = 'none' | 'off_session'; + + export namespace MandateOptions { + export type AmountType = 'fixed' | 'maximum'; + + export type PaymentSchedule = + | 'adhoc' + | 'annual' + | 'daily' + | 'fortnightly' + | 'monthly' + | 'quarterly' + | 'semi_annual' + | 'weekly'; + + export type Purpose = + | 'dependant_support' + | 'government' + | 'loan' + | 'mortgage' + | 'other' + | 'pension' + | 'personal' + | 'retail' + | 'salary' + | 'tax' + | 'utility'; } } - export namespace TaxIdCollection { - export type Required = 'if_supported' | 'never'; + export namespace Pix { + export type AmountIncludesIof = 'always' | 'never'; + + export interface MandateOptions { + /** + * Amount to be charged for future payments. + */ + amount?: number; + + /** + * Determines if the amount includes the IOF tax. + */ + amount_includes_iof?: MandateOptions.AmountIncludesIof; + + /** + * Type of amount. + */ + amount_type?: MandateOptions.AmountType; + + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. + */ + currency?: string; + + /** + * Date when the mandate expires and no further payments will be charged, in `YYYY-MM-DD`. + */ + end_date?: string; + + /** + * Schedule at which the future payments will be charged. + */ + payment_schedule?: MandateOptions.PaymentSchedule; + + /** + * Subscription name displayed to buyers in their bank app. + */ + reference?: string; + + /** + * Start date of the mandate, in `YYYY-MM-DD`. + */ + start_date?: string; + } + + export type SetupFutureUsage = 'none' | 'off_session'; + + export namespace MandateOptions { + export type AmountIncludesIof = 'always' | 'never'; + + export type AmountType = 'fixed' | 'maximum'; + + export type PaymentSchedule = + | 'halfyearly' + | 'monthly' + | 'quarterly' + | 'weekly' + | 'yearly'; + } } - export namespace TotalDetails { - export interface Breakdown { + export namespace RevolutPay { + export type SetupFutureUsage = 'none' | 'off_session'; + } + + export namespace SepaDebit { + export interface MandateOptions { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must consist of only uppercase letters, numbers, spaces, or the following special characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + reference_prefix?: string; + } + + export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; + } + + export namespace Twint { + export type SetupFutureUsage = 'none' | 'off_session'; + } + + export namespace Upi { + export interface MandateOptions { + /** + * Amount to be charged for future payments. + */ + amount: number | null; + + /** + * One of `fixed` or `maximum`. If `fixed`, the `amount` param refers to the exact amount to be charged in future payments. If `maximum`, the amount charged can be up to the value passed for the `amount` param. + */ + amount_type: MandateOptions.AmountType | null; + + /** + * A description of the mandate or subscription that is meant to be displayed to the customer. + */ + description: string | null; + + /** + * End date of the mandate or subscription. + */ + end_date: number | null; + } + + export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; + + export namespace MandateOptions { + export type AmountType = 'fixed' | 'maximum'; + } + } + + export namespace UsBankAccount { + export interface FinancialConnections { + filters?: FinancialConnections.Filters; + + manual_entry?: FinancialConnections.ManualEntry; + + /** + * The list of permissions to request. The `payment_method` permission must be included. + */ + permissions?: Array; + /** - * The aggregated discounts. + * Data features requested to be retrieved upon account creation. */ - discounts: Array; + prefetch: Array | null; /** - * The aggregated tax amounts by rate. + * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. */ - taxes: Array; + return_url?: string; } - export namespace Breakdown { - export interface Discount { + export type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; + + export type VerificationMethod = 'automatic' | 'instant'; + + export namespace FinancialConnections { + export interface Filters { /** - * The amount discounted. + * The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`. */ - amount: number; + account_subcategories?: Array; /** - * A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes). - * It contains information about when the discount began, when it will end, and what it is applied to. - * - * Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts) + * The institution to use to filter for possible accounts to link. */ - discount: _Discount; + institution?: string; } - export interface Tax { + export interface ManualEntry { /** - * Amount of tax applied for this rate. + * Settings for configuring manual entry of account details. */ - amount: number; + mode?: ManualEntry.Mode; + } - /** - * Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax. - * - * Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates) - */ - rate: TaxRate; + export type Permission = + | 'balances' + | 'ownership' + | 'payment_method' + | 'transactions'; - /** - * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. - */ - taxability_reason: Tax.TaxabilityReason | null; + export type Prefetch = + | 'balances' + | 'inferred_balances' + | 'ownership' + | 'transactions'; - /** - * The amount on which tax is calculated, in cents (or local equivalent). - */ - taxable_amount: number | null; + export namespace Filters { + export type AccountSubcategory = 'checking' | 'savings'; } - export namespace Tax { - export type TaxabilityReason = - | 'customer_exempt' - | 'not_collecting' - | 'not_subject_to_tax' - | 'not_supported' - | 'portion_product_exempt' - | 'portion_reduced_rated' - | 'portion_standard_rated' - | 'product_exempt' - | 'product_exempt_holiday' - | 'proportionally_rated' - | 'reduced_rated' - | 'reverse_charge' - | 'standard_rated' - | 'taxable_basis_reduced' - | 'zero_rated'; + export namespace ManualEntry { + export type Mode = 'automatic' | 'custom'; } } } + } - export namespace WalletOptions { - export interface Link { + export namespace Permissions { + export interface Update { + /** + * Determines which entity is allowed to update the line items. + * + * Default is `client_only`. Stripe Checkout client will automatically update the line items. If set to `server_only`, only your server is allowed to update the line items. + * + * When set to `server_only`, you must add the onLineItemsChange event handler when initializing the Stripe Checkout client and manually update the line items from your server using the Stripe API. + */ + line_items?: Update.LineItems | null; + + /** + * Determines which entity is allowed to update the shipping details. + * + * Default is `client_only`. Stripe Checkout client will automatically update the shipping details. If set to `server_only`, only your server is allowed to update the shipping details. + * + * When set to `server_only`, you must add the onShippingDetailsChange event handler when initializing the Stripe Checkout client and manually update the shipping details from your server using the Stripe API. + */ + shipping_details: Update.ShippingDetails | null; + } + + export type UpdateLineItems = 'client_only' | 'server_only'; + + export type UpdateShippingDetails = 'client_only' | 'server_only'; + + export namespace Update { + export type LineItems = 'client_only' | 'server_only'; + + export type ShippingDetails = 'client_only' | 'server_only'; + } + } + + export namespace SavedPaymentMethodOptions { + export type AllowRedisplayFilter = 'always' | 'limited' | 'unspecified'; + + export type PaymentMethodRemove = 'disabled' | 'enabled'; + + export type PaymentMethodSave = 'disabled' | 'enabled'; + } + + export namespace ShippingAddressCollection { + export type AllowedCountry = + | 'AC' + | 'AD' + | 'AE' + | 'AF' + | 'AG' + | 'AI' + | 'AL' + | 'AM' + | 'AO' + | 'AQ' + | 'AR' + | 'AT' + | 'AU' + | 'AW' + | 'AX' + | 'AZ' + | 'BA' + | 'BB' + | 'BD' + | 'BE' + | 'BF' + | 'BG' + | 'BH' + | 'BI' + | 'BJ' + | 'BL' + | 'BM' + | 'BN' + | 'BO' + | 'BQ' + | 'BR' + | 'BS' + | 'BT' + | 'BV' + | 'BW' + | 'BY' + | 'BZ' + | 'CA' + | 'CD' + | 'CF' + | 'CG' + | 'CH' + | 'CI' + | 'CK' + | 'CL' + | 'CM' + | 'CN' + | 'CO' + | 'CR' + | 'CV' + | 'CW' + | 'CY' + | 'CZ' + | 'DE' + | 'DJ' + | 'DK' + | 'DM' + | 'DO' + | 'DZ' + | 'EC' + | 'EE' + | 'EG' + | 'EH' + | 'ER' + | 'ES' + | 'ET' + | 'FI' + | 'FJ' + | 'FK' + | 'FO' + | 'FR' + | 'GA' + | 'GB' + | 'GD' + | 'GE' + | 'GF' + | 'GG' + | 'GH' + | 'GI' + | 'GL' + | 'GM' + | 'GN' + | 'GP' + | 'GQ' + | 'GR' + | 'GS' + | 'GT' + | 'GU' + | 'GW' + | 'GY' + | 'HK' + | 'HN' + | 'HR' + | 'HT' + | 'HU' + | 'ID' + | 'IE' + | 'IL' + | 'IM' + | 'IN' + | 'IO' + | 'IQ' + | 'IS' + | 'IT' + | 'JE' + | 'JM' + | 'JO' + | 'JP' + | 'KE' + | 'KG' + | 'KH' + | 'KI' + | 'KM' + | 'KN' + | 'KR' + | 'KW' + | 'KY' + | 'KZ' + | 'LA' + | 'LB' + | 'LC' + | 'LI' + | 'LK' + | 'LR' + | 'LS' + | 'LT' + | 'LU' + | 'LV' + | 'LY' + | 'MA' + | 'MC' + | 'MD' + | 'ME' + | 'MF' + | 'MG' + | 'MK' + | 'ML' + | 'MM' + | 'MN' + | 'MO' + | 'MQ' + | 'MR' + | 'MS' + | 'MT' + | 'MU' + | 'MV' + | 'MW' + | 'MX' + | 'MY' + | 'MZ' + | 'NA' + | 'NC' + | 'NE' + | 'NG' + | 'NI' + | 'NL' + | 'NO' + | 'NP' + | 'NR' + | 'NU' + | 'NZ' + | 'OM' + | 'PA' + | 'PE' + | 'PF' + | 'PG' + | 'PH' + | 'PK' + | 'PL' + | 'PM' + | 'PN' + | 'PR' + | 'PS' + | 'PT' + | 'PY' + | 'QA' + | 'RE' + | 'RO' + | 'RS' + | 'RU' + | 'RW' + | 'SA' + | 'SB' + | 'SC' + | 'SD' + | 'SE' + | 'SG' + | 'SH' + | 'SI' + | 'SJ' + | 'SK' + | 'SL' + | 'SM' + | 'SN' + | 'SO' + | 'SR' + | 'SS' + | 'ST' + | 'SV' + | 'SX' + | 'SZ' + | 'TA' + | 'TC' + | 'TD' + | 'TF' + | 'TG' + | 'TH' + | 'TJ' + | 'TK' + | 'TL' + | 'TM' + | 'TN' + | 'TO' + | 'TR' + | 'TT' + | 'TV' + | 'TW' + | 'TZ' + | 'UA' + | 'UG' + | 'US' + | 'UY' + | 'UZ' + | 'VA' + | 'VC' + | 'VE' + | 'VG' + | 'VN' + | 'VU' + | 'WF' + | 'WS' + | 'XK' + | 'YE' + | 'YT' + | 'ZA' + | 'ZM' + | 'ZW' + | 'ZZ'; + } + + export namespace ShippingCost { + export interface Tax { + /** + * Amount of tax applied for this rate. + */ + amount: number; + + /** + * Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax. + * + * Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates) + */ + rate: TaxRate; + + /** + * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. + */ + taxability_reason: Tax.TaxabilityReason | null; + + /** + * The amount on which tax is calculated, in cents (or local equivalent). + */ + taxable_amount: number | null; + } + + export namespace Tax { + export type TaxabilityReason = + | 'customer_exempt' + | 'not_collecting' + | 'not_subject_to_tax' + | 'not_supported' + | 'portion_product_exempt' + | 'portion_reduced_rated' + | 'portion_standard_rated' + | 'product_exempt' + | 'product_exempt_holiday' + | 'proportionally_rated' + | 'reduced_rated' + | 'reverse_charge' + | 'standard_rated' + | 'taxable_basis_reduced' + | 'zero_rated'; + } + } + + export namespace TaxIdCollection { + export type Required = 'if_supported' | 'never'; + } + + export namespace TotalDetails { + export interface Breakdown { + /** + * The aggregated discounts. + */ + discounts: Array; + + /** + * The aggregated tax amounts by rate. + */ + taxes: Array; + } + + export namespace Breakdown { + export interface Discount { /** - * Describes whether Checkout should display Link. Defaults to `auto`. + * The amount discounted. */ - display?: Link.Display; + amount: number; + + /** + * A discount represents the actual application of a [coupon](https://api.stripe.com#coupons) or [promotion code](https://api.stripe.com#promotion_codes). + * It contains information about when the discount began, when it will end, and what it is applied to. + * + * Related guide: [Applying discounts to subscriptions](https://docs.stripe.com/billing/subscriptions/discounts) + */ + discount: _Discount; } - export namespace Link { - export type Display = 'auto' | 'never'; + export interface Tax { + /** + * Amount of tax applied for this rate. + */ + amount: number; + + /** + * Tax rates can be applied to [invoices](https://docs.stripe.com/invoicing/taxes/tax-rates), [subscriptions](https://docs.stripe.com/billing/taxes/tax-rates) and [Checkout Sessions](https://docs.stripe.com/payments/checkout/use-manual-tax-rates) to collect tax. + * + * Related guide: [Tax rates](https://docs.stripe.com/billing/taxes/tax-rates) + */ + rate: TaxRate; + + /** + * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. + */ + taxability_reason: Tax.TaxabilityReason | null; + + /** + * The amount on which tax is calculated, in cents (or local equivalent). + */ + taxable_amount: number | null; + } + + export namespace Tax { + export type TaxabilityReason = + | 'customer_exempt' + | 'not_collecting' + | 'not_subject_to_tax' + | 'not_supported' + | 'portion_product_exempt' + | 'portion_reduced_rated' + | 'portion_standard_rated' + | 'product_exempt' + | 'product_exempt_holiday' + | 'proportionally_rated' + | 'reduced_rated' + | 'reverse_charge' + | 'standard_rated' + | 'taxable_basis_reduced' + | 'zero_rated'; } } } + + export namespace WalletOptions { + export interface Link { + /** + * Describes whether Checkout should display Link. Defaults to `auto`. + */ + display?: Link.Display; + } + + export namespace Link { + export type Display = 'auto' | 'never'; + } + } } export namespace Checkout { export interface SessionCreateParams { diff --git a/src/resources/Climate/Orders.ts b/src/resources/Climate/Orders.ts index 8b1dddb9fa..03f3fc3389 100644 --- a/src/resources/Climate/Orders.ts +++ b/src/resources/Climate/Orders.ts @@ -149,7 +149,7 @@ export interface Order { */ amount_total: number; - beneficiary?: Climate.Order.Beneficiary; + beneficiary?: Order.Beneficiary; /** * Time at which the order was canceled. Measured in seconds since the Unix epoch. @@ -159,7 +159,7 @@ export interface Order { /** * Reason for the cancellation of this order. */ - cancellation_reason: Climate.Order.CancellationReason | null; + cancellation_reason: Order.CancellationReason | null; /** * For delivered orders, a URL to a delivery certificate for the order. @@ -194,7 +194,7 @@ export interface Order { /** * Details about the delivery of carbon removal for this order. */ - delivery_details: Array; + delivery_details: Array; /** * The year this order is expected to be delivered. @@ -229,83 +229,81 @@ export interface Order { /** * The current status of this order. */ - status: Climate.Order.Status; + status: Order.Status; } -export namespace Climate { - export namespace Order { - export interface Beneficiary { - /** - * Publicly displayable name for the end beneficiary of carbon removal. - */ - public_name: string; - } +export namespace Order { + export interface Beneficiary { + /** + * Publicly displayable name for the end beneficiary of carbon removal. + */ + public_name: string; + } + + export type CancellationReason = + | 'expired' + | 'product_unavailable' + | 'requested'; + + export interface DeliveryDetail { + /** + * Time at which the delivery occurred. Measured in seconds since the Unix epoch. + */ + delivered_at: number; + + /** + * Specific location of this delivery. + */ + location: DeliveryDetail.Location | null; + + /** + * Quantity of carbon removal supplied by this delivery. + */ + metric_tons: string; - export type CancellationReason = - | 'expired' - | 'product_unavailable' - | 'requested'; + /** + * Once retired, a URL to the registry entry for the tons from this delivery. + */ + registry_url: string | null; - export interface DeliveryDetail { + /** + * A supplier of carbon removal. + */ + supplier: Supplier; + } + + export type Status = + | 'awaiting_funds' + | 'canceled' + | 'confirmed' + | 'delivered' + | 'open'; + + export namespace DeliveryDetail { + export interface Location { /** - * Time at which the delivery occurred. Measured in seconds since the Unix epoch. + * The city where the supplier is located. */ - delivered_at: number; + city: string | null; /** - * Specific location of this delivery. + * Two-letter ISO code representing the country where the supplier is located. */ - location: DeliveryDetail.Location | null; + country: string; /** - * Quantity of carbon removal supplied by this delivery. + * The geographic latitude where the supplier is located. */ - metric_tons: string; + latitude: number | null; /** - * Once retired, a URL to the registry entry for the tons from this delivery. + * The geographic longitude where the supplier is located. */ - registry_url: string | null; + longitude: number | null; /** - * A supplier of carbon removal. + * The state/county/province/region where the supplier is located. */ - supplier: Supplier; - } - - export type Status = - | 'awaiting_funds' - | 'canceled' - | 'confirmed' - | 'delivered' - | 'open'; - - export namespace DeliveryDetail { - export interface Location { - /** - * The city where the supplier is located. - */ - city: string | null; - - /** - * Two-letter ISO code representing the country where the supplier is located. - */ - country: string; - - /** - * The geographic latitude where the supplier is located. - */ - latitude: number | null; - - /** - * The geographic longitude where the supplier is located. - */ - longitude: number | null; - - /** - * The state/county/province/region where the supplier is located. - */ - region: string | null; - } + region: string | null; } } } diff --git a/src/resources/Climate/Products.ts b/src/resources/Climate/Products.ts index 64bd8c1db2..6f986bb4f0 100644 --- a/src/resources/Climate/Products.ts +++ b/src/resources/Climate/Products.ts @@ -73,7 +73,7 @@ export interface Product { * Current prices for a metric ton of carbon removal in a currency's smallest unit. */ current_prices_per_metric_ton: { - [key: string]: Climate.Product.CurrentPricesPerMetricTon; + [key: string]: Product.CurrentPricesPerMetricTon; }; /** @@ -101,24 +101,22 @@ export interface Product { */ suppliers: Array; } -export namespace Climate { - export namespace Product { - export interface CurrentPricesPerMetricTon { - /** - * Fees for one metric ton of carbon removal in the currency's smallest unit. - */ - amount_fees: number; +export namespace Product { + export interface CurrentPricesPerMetricTon { + /** + * Fees for one metric ton of carbon removal in the currency's smallest unit. + */ + amount_fees: number; - /** - * Subtotal for one metric ton of carbon removal (excluding fees) in the currency's smallest unit. - */ - amount_subtotal: number; + /** + * Subtotal for one metric ton of carbon removal (excluding fees) in the currency's smallest unit. + */ + amount_subtotal: number; - /** - * Total for one metric ton of carbon removal (including fees) in the currency's smallest unit. - */ - amount_total: number; - } + /** + * Total for one metric ton of carbon removal (including fees) in the currency's smallest unit. + */ + amount_total: number; } } export namespace Climate { diff --git a/src/resources/Climate/Suppliers.ts b/src/resources/Climate/Suppliers.ts index 669fb92f3c..e60fa74835 100644 --- a/src/resources/Climate/Suppliers.ts +++ b/src/resources/Climate/Suppliers.ts @@ -56,7 +56,7 @@ export interface Supplier { /** * The locations in which this supplier operates. */ - locations: Array; + locations: Array; /** * Name of this carbon removal supplier. @@ -66,43 +66,41 @@ export interface Supplier { /** * The scientific pathway used for carbon removal. */ - removal_pathway: Climate.Supplier.RemovalPathway; + removal_pathway: Supplier.RemovalPathway; } -export namespace Climate { - export namespace Supplier { - export interface Location { - /** - * The city where the supplier is located. - */ - city: string | null; - - /** - * Two-letter ISO code representing the country where the supplier is located. - */ - country: string; +export namespace Supplier { + export interface Location { + /** + * The city where the supplier is located. + */ + city: string | null; - /** - * The geographic latitude where the supplier is located. - */ - latitude: number | null; + /** + * Two-letter ISO code representing the country where the supplier is located. + */ + country: string; - /** - * The geographic longitude where the supplier is located. - */ - longitude: number | null; + /** + * The geographic latitude where the supplier is located. + */ + latitude: number | null; - /** - * The state/county/province/region where the supplier is located. - */ - region: string | null; - } + /** + * The geographic longitude where the supplier is located. + */ + longitude: number | null; - export type RemovalPathway = - | 'biomass_carbon_removal_and_storage' - | 'direct_air_capture' - | 'enhanced_weathering' - | 'marine_carbon_removal'; + /** + * The state/county/province/region where the supplier is located. + */ + region: string | null; } + + export type RemovalPathway = + | 'biomass_carbon_removal_and_storage' + | 'direct_air_capture' + | 'enhanced_weathering' + | 'marine_carbon_removal'; } export namespace Climate { export interface SupplierRetrieveParams { diff --git a/src/resources/FinancialConnections/Accounts.ts b/src/resources/FinancialConnections/Accounts.ts index d636dc4bf7..8a6cc70b74 100644 --- a/src/resources/FinancialConnections/Accounts.ts +++ b/src/resources/FinancialConnections/Accounts.ts @@ -157,12 +157,12 @@ export interface Account { /** * The account holder that this account belongs to. */ - account_holder: FinancialConnections.Account.AccountHolder | null; + account_holder: Account.AccountHolder | null; /** * Details about the account numbers. */ - account_numbers: Array | null; + account_numbers: Array | null; /** * The ID of the Financial Connections Authorization this account belongs to. @@ -172,17 +172,17 @@ export interface Account { /** * The most recent information about the account's balance. */ - balance: FinancialConnections.Account.Balance | null; + balance: Account.Balance | null; /** * The state of the most recent attempt to refresh the account balance. */ - balance_refresh: FinancialConnections.Account.BalanceRefresh | null; + balance_refresh: Account.BalanceRefresh | null; /** * The type of the account. Account category is further divided in `subcategory`. */ - category: FinancialConnections.Account.Category; + category: Account.Category; /** * Time at which the object was created. Measured in seconds since the Unix epoch. @@ -197,7 +197,7 @@ export interface Account { /** * The state of the most recent attempt to refresh the account's inferred balance history. */ - inferred_balances_refresh?: FinancialConnections.Account.InferredBalancesRefresh | null; + inferred_balances_refresh?: Account.InferredBalancesRefresh | null; /** * The ID of the Financial Connections Institution this account belongs to. Note that this relationship may sometimes change in rare circumstances (e.g. institution mergers). @@ -227,19 +227,19 @@ export interface Account { /** * The state of the most recent attempt to refresh the account owners. */ - ownership_refresh: FinancialConnections.Account.OwnershipRefresh | null; + ownership_refresh: Account.OwnershipRefresh | null; /** * The list of permissions granted by this account. */ - permissions: Array | null; + permissions: Array | null; /** * The status of the link to the account. */ - status: FinancialConnections.Account.Status; + status: Account.Status; - status_details?: FinancialConnections.Account.StatusDetails; + status_details?: Account.StatusDetails; /** * If `category` is `cash`, one of: @@ -257,276 +257,270 @@ export interface Account { * * If `category` is `investment` or `other`, this will be `other`. */ - subcategory: FinancialConnections.Account.Subcategory; + subcategory: Account.Subcategory; /** * The list of data refresh subscriptions requested on this account. */ - subscriptions: Array | null; + subscriptions: Array | null; /** * The [PaymentMethod type](https://docs.stripe.com/api/payment_methods/object#payment_method_object-type)(s) that can be created from this account. */ - supported_payment_method_types: Array< - FinancialConnections.Account.SupportedPaymentMethodType - >; + supported_payment_method_types: Array; /** * The state of the most recent attempt to refresh the account transactions. */ - transaction_refresh: FinancialConnections.Account.TransactionRefresh | null; + transaction_refresh: Account.TransactionRefresh | null; } -export namespace FinancialConnections { - export namespace Account { - export interface AccountHolder { - /** - * The ID of the Stripe account that this account belongs to. Only available when `account_holder.type` is `account`. - */ - account?: string | Account; +export namespace Account { + export interface AccountHolder { + /** + * The ID of the Stripe account that this account belongs to. Only available when `account_holder.type` is `account`. + */ + account?: string | Account; - /** - * The ID for an Account representing a customer that this account belongs to. Only available when `account_holder.type` is `customer`. - */ - customer?: string | Customer; + /** + * The ID for an Account representing a customer that this account belongs to. Only available when `account_holder.type` is `customer`. + */ + customer?: string | Customer; - customer_account?: string; + customer_account?: string; - /** - * Type of account holder that this account belongs to. - */ - type: AccountHolder.Type; - } + /** + * Type of account holder that this account belongs to. + */ + type: AccountHolder.Type; + } - export interface AccountNumber { - /** - * When the account number is expected to expire, if applicable. - */ - expected_expiry_date: number | null; + export interface AccountNumber { + /** + * When the account number is expected to expire, if applicable. + */ + expected_expiry_date: number | null; - /** - * The type of account number associated with the account. - */ - identifier_type: AccountNumber.IdentifierType; + /** + * The type of account number associated with the account. + */ + identifier_type: AccountNumber.IdentifierType; - /** - * Whether the account number is currently active and usable for transactions. - */ - status: AccountNumber.Status; + /** + * Whether the account number is currently active and usable for transactions. + */ + status: AccountNumber.Status; - /** - * The payment networks that the account number can be used for. - */ - supported_networks: Array<'ach'>; - } + /** + * The payment networks that the account number can be used for. + */ + supported_networks: Array<'ach'>; + } - export interface Balance { - /** - * The time that the external institution calculated this balance. Measured in seconds since the Unix epoch. - */ - as_of: number; + export interface Balance { + /** + * The time that the external institution calculated this balance. Measured in seconds since the Unix epoch. + */ + as_of: number; - cash?: Balance.Cash; + cash?: Balance.Cash; - credit?: Balance.Credit; + credit?: Balance.Credit; - /** - * The balances owed to (or by) the account holder, before subtracting any outbound pending transactions or adding any inbound pending transactions. - * - * Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. - * - * Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. - */ - current: { - [key: string]: number; - }; + /** + * The balances owed to (or by) the account holder, before subtracting any outbound pending transactions or adding any inbound pending transactions. + * + * Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. + * + * Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. + */ + current: { + [key: string]: number; + }; - /** - * The `type` of the balance. An additional hash is included on the balance with a name matching this value. - */ - type: Balance.Type; - } + /** + * The `type` of the balance. An additional hash is included on the balance with a name matching this value. + */ + type: Balance.Type; + } - export interface BalanceRefresh { - /** - * The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. - */ - last_attempted_at: number; + export interface BalanceRefresh { + /** + * The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. + */ + last_attempted_at: number; - /** - * Time at which the next balance refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch. - */ - next_refresh_available_at: number | null; + /** + * Time at which the next balance refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch. + */ + next_refresh_available_at: number | null; - /** - * The status of the last refresh attempt. - */ - status: BalanceRefresh.Status; - } + /** + * The status of the last refresh attempt. + */ + status: BalanceRefresh.Status; + } - export type Category = 'cash' | 'credit' | 'investment' | 'other'; + export type Category = 'cash' | 'credit' | 'investment' | 'other'; - export interface InferredBalancesRefresh { - /** - * The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. - */ - last_attempted_at: number; + export interface InferredBalancesRefresh { + /** + * The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. + */ + last_attempted_at: number; - /** - * Time at which the next inferred balance refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch. - */ - next_refresh_available_at: number | null; + /** + * Time at which the next inferred balance refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch. + */ + next_refresh_available_at: number | null; - /** - * The status of the last refresh attempt. - */ - status: InferredBalancesRefresh.Status; - } + /** + * The status of the last refresh attempt. + */ + status: InferredBalancesRefresh.Status; + } - export interface OwnershipRefresh { - /** - * The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. - */ - last_attempted_at: number; + export interface OwnershipRefresh { + /** + * The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. + */ + last_attempted_at: number; - /** - * Time at which the next ownership refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch. - */ - next_refresh_available_at: number | null; + /** + * Time at which the next ownership refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch. + */ + next_refresh_available_at: number | null; - /** - * The status of the last refresh attempt. - */ - status: OwnershipRefresh.Status; - } + /** + * The status of the last refresh attempt. + */ + status: OwnershipRefresh.Status; + } - export type Permission = - | 'balances' - | 'ownership' - | 'payment_method' - | 'transactions'; + export type Permission = + | 'balances' + | 'ownership' + | 'payment_method' + | 'transactions'; - export type Status = 'active' | 'disconnected' | 'inactive'; + export type Status = 'active' | 'disconnected' | 'inactive'; - export interface StatusDetails { - inactive?: StatusDetails.Inactive; - } + export interface StatusDetails { + inactive?: StatusDetails.Inactive; + } - export type Subcategory = - | 'checking' - | 'credit_card' - | 'line_of_credit' - | 'mortgage' - | 'other' - | 'savings'; + export type Subcategory = + | 'checking' + | 'credit_card' + | 'line_of_credit' + | 'mortgage' + | 'other' + | 'savings'; - export type Subscription = 'balance' | 'inferred_balances' | 'transactions'; + export type Subscription = 'balance' | 'inferred_balances' | 'transactions'; - export type SupportedPaymentMethodType = 'link' | 'us_bank_account'; + export type SupportedPaymentMethodType = 'link' | 'us_bank_account'; - export interface TransactionRefresh { - /** - * Unique identifier for the object. - */ - id: string; + export interface TransactionRefresh { + /** + * Unique identifier for the object. + */ + id: string; - /** - * The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. - */ - last_attempted_at: number; + /** + * The time at which the last refresh attempt was initiated. Measured in seconds since the Unix epoch. + */ + last_attempted_at: number; - /** - * Time at which the next transaction refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch. - */ - next_refresh_available_at: number | null; + /** + * Time at which the next transaction refresh can be initiated. This value will be `null` when `status` is `pending`. Measured in seconds since the Unix epoch. + */ + next_refresh_available_at: number | null; + + /** + * The status of the last refresh attempt. + */ + status: TransactionRefresh.Status; + } + export namespace AccountHolder { + export type Type = 'account' | 'customer'; + } + + export namespace AccountNumber { + export type IdentifierType = 'account_number' | 'tokenized_account_number'; + + export type Status = 'deactivated' | 'transactable'; + } + + export namespace Balance { + export interface Cash { /** - * The status of the last refresh attempt. + * The funds available to the account holder. Typically this is the current balance after subtracting any outbound pending transactions and adding any inbound pending transactions. + * + * Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. + * + * Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. */ - status: TransactionRefresh.Status; - } - - export namespace AccountHolder { - export type Type = 'account' | 'customer'; + available: { + [key: string]: number; + } | null; } - export namespace AccountNumber { - export type IdentifierType = - | 'account_number' - | 'tokenized_account_number'; - - export type Status = 'deactivated' | 'transactable'; + export interface Credit { + /** + * The credit that has been used by the account holder. + * + * Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. + * + * Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. + */ + used: { + [key: string]: number; + } | null; } - export namespace Balance { - export interface Cash { - /** - * The funds available to the account holder. Typically this is the current balance after subtracting any outbound pending transactions and adding any inbound pending transactions. - * - * Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. - * - * Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. - */ - available: { - [key: string]: number; - } | null; - } + export type Type = 'cash' | 'credit'; + } - export interface Credit { - /** - * The credit that has been used by the account holder. - * - * Each key is a three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. - * - * Each value is a integer amount. A positive amount indicates money owed to the account holder. A negative amount indicates money owed by the account holder. - */ - used: { - [key: string]: number; - } | null; - } + export namespace BalanceRefresh { + export type Status = 'failed' | 'pending' | 'succeeded'; + } - export type Type = 'cash' | 'credit'; - } + export namespace InferredBalancesRefresh { + export type Status = 'failed' | 'pending' | 'succeeded'; + } - export namespace BalanceRefresh { - export type Status = 'failed' | 'pending' | 'succeeded'; - } + export namespace OwnershipRefresh { + export type Status = 'failed' | 'pending' | 'succeeded'; + } - export namespace InferredBalancesRefresh { - export type Status = 'failed' | 'pending' | 'succeeded'; - } + export namespace StatusDetails { + export interface Inactive { + /** + * The action (if any) to relink the inactive Account. + */ + action: Inactive.Action; - export namespace OwnershipRefresh { - export type Status = 'failed' | 'pending' | 'succeeded'; + /** + * The underlying cause of the Account being inactive. + */ + cause: Inactive.Cause; } - export namespace StatusDetails { - export interface Inactive { - /** - * The action (if any) to relink the inactive Account. - */ - action: Inactive.Action; - - /** - * The underlying cause of the Account being inactive. - */ - cause: Inactive.Cause; - } + export namespace Inactive { + export type Action = 'none' | 'relink_required'; - export namespace Inactive { - export type Action = 'none' | 'relink_required'; - - export type Cause = - | 'access_denied' - | 'access_expired' - | 'account_closed' - | 'account_unavailable' - | 'unspecified'; - } + export type Cause = + | 'access_denied' + | 'access_expired' + | 'account_closed' + | 'account_unavailable' + | 'unspecified'; } + } - export namespace TransactionRefresh { - export type Status = 'failed' | 'pending' | 'succeeded'; - } + export namespace TransactionRefresh { + export type Status = 'failed' | 'pending' | 'succeeded'; } } export namespace FinancialConnections { diff --git a/src/resources/FinancialConnections/Authorizations.ts b/src/resources/FinancialConnections/Authorizations.ts index 7f0a6178da..b7f42f1f63 100644 --- a/src/resources/FinancialConnections/Authorizations.ts +++ b/src/resources/FinancialConnections/Authorizations.ts @@ -37,7 +37,7 @@ export interface Authorization { /** * The account holder that this authorization belongs to. */ - account_holder?: FinancialConnections.Authorization.AccountHolder | null; + account_holder?: Authorization.AccountHolder | null; /** * The ID of the Financial Connections Institution this account belongs to. Note that this relationship may sometimes change in rare circumstances (e.g. institution mergers). @@ -57,52 +57,50 @@ export interface Authorization { /** * The status of the connection to the Authorization. */ - status: FinancialConnections.Authorization.Status; + status: Authorization.Status; - status_details: FinancialConnections.Authorization.StatusDetails; + status_details: Authorization.StatusDetails; } -export namespace FinancialConnections { - export namespace Authorization { - export interface AccountHolder { - /** - * The ID of the Stripe account that this account belongs to. Only available when `account_holder.type` is `account`. - */ - account?: string | Account; +export namespace Authorization { + export interface AccountHolder { + /** + * The ID of the Stripe account that this account belongs to. Only available when `account_holder.type` is `account`. + */ + account?: string | Account; - /** - * The ID for an Account representing a customer that this account belongs to. Only available when `account_holder.type` is `customer`. - */ - customer?: string | Customer; + /** + * The ID for an Account representing a customer that this account belongs to. Only available when `account_holder.type` is `customer`. + */ + customer?: string | Customer; - customer_account?: string; + customer_account?: string; - /** - * Type of account holder that this account belongs to. - */ - type: AccountHolder.Type; - } + /** + * Type of account holder that this account belongs to. + */ + type: AccountHolder.Type; + } - export type Status = 'active' | 'disconnected' | 'inactive'; + export type Status = 'active' | 'disconnected' | 'inactive'; - export interface StatusDetails { - inactive?: StatusDetails.Inactive; - } + export interface StatusDetails { + inactive?: StatusDetails.Inactive; + } + + export namespace AccountHolder { + export type Type = 'account' | 'customer'; + } - export namespace AccountHolder { - export type Type = 'account' | 'customer'; + export namespace StatusDetails { + export interface Inactive { + /** + * The action (if any) to relink the inactive Authorization. + */ + action: Inactive.Action; } - export namespace StatusDetails { - export interface Inactive { - /** - * The action (if any) to relink the inactive Authorization. - */ - action: Inactive.Action; - } - - export namespace Inactive { - export type Action = 'none' | 'relink_required'; - } + export namespace Inactive { + export type Action = 'none' | 'relink_required'; } } } diff --git a/src/resources/FinancialConnections/Institutions.ts b/src/resources/FinancialConnections/Institutions.ts index 7099b22173..e3e444b814 100644 --- a/src/resources/FinancialConnections/Institutions.ts +++ b/src/resources/FinancialConnections/Institutions.ts @@ -54,7 +54,7 @@ export interface Institution { */ countries: Array; - features: FinancialConnections.Institution.Features; + features: Institution.Features; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -74,55 +74,53 @@ export interface Institution { /** * The status of this institution in the Financial Connections authentication flow. */ - status: FinancialConnections.Institution.Status; + status: Institution.Status; /** * A URL corresponding to this institution. This URL is also displayed in the authentication flow to help end users confirm that they are authenticating with the right institution. */ url: string | null; } -export namespace FinancialConnections { - export namespace Institution { - export interface Features { - balances: Features.Balances; +export namespace Institution { + export interface Features { + balances: Features.Balances; - ownership: Features.Ownership; + ownership: Features.Ownership; - payment_method: Features.PaymentMethod; + payment_method: Features.PaymentMethod; - transactions: Features.Transactions; - } + transactions: Features.Transactions; + } - export type Status = 'active' | 'degraded' | 'inactive'; + export type Status = 'active' | 'degraded' | 'inactive'; - export namespace Features { - export interface Balances { - /** - * Whether the given feature is supported by this institution. - */ - supported: boolean; - } + export namespace Features { + export interface Balances { + /** + * Whether the given feature is supported by this institution. + */ + supported: boolean; + } - export interface Ownership { - /** - * Whether the given feature is supported by this institution. - */ - supported: boolean; - } + export interface Ownership { + /** + * Whether the given feature is supported by this institution. + */ + supported: boolean; + } - export interface PaymentMethod { - /** - * Whether the given feature is supported by this institution. - */ - supported: boolean; - } + export interface PaymentMethod { + /** + * Whether the given feature is supported by this institution. + */ + supported: boolean; + } - export interface Transactions { - /** - * Whether the given feature is supported by this institution. - */ - supported: boolean; - } + export interface Transactions { + /** + * Whether the given feature is supported by this institution. + */ + supported: boolean; } } } diff --git a/src/resources/FinancialConnections/Sessions.ts b/src/resources/FinancialConnections/Sessions.ts index ee3fdb6a79..57b7cbedff 100644 --- a/src/resources/FinancialConnections/Sessions.ts +++ b/src/resources/FinancialConnections/Sessions.ts @@ -50,7 +50,7 @@ export interface Session { /** * The account holder for whom accounts are collected in this session. */ - account_holder: FinancialConnections.Session.AccountHolder | null; + account_holder: Session.AccountHolder | null; /** * The accounts that were collected as part of this Session. @@ -62,35 +62,35 @@ export interface Session { */ client_secret: string | null; - filters?: FinancialConnections.Session.Filters; + filters?: Session.Filters; /** * Settings for the Hosted UI mode. */ - hosted?: FinancialConnections.Session.Hosted | null; + hosted?: Session.Hosted | null; - limits?: FinancialConnections.Session.Limits; + limits?: Session.Limits; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. */ livemode: boolean; - manual_entry?: FinancialConnections.Session.ManualEntry; + manual_entry?: Session.ManualEntry; /** * Permissions requested for accounts collected during this session. */ - permissions: Array; + permissions: Array; /** * Data features requested to be retrieved upon account creation. */ - prefetch: Array | null; + prefetch: Array | null; - relink_options?: FinancialConnections.Session.RelinkOptions; + relink_options?: Session.RelinkOptions; - relink_result?: FinancialConnections.Session.RelinkResult; + relink_result?: Session.RelinkResult; /** * For webview integrations only. Upon completing OAuth login in the native browser, the user will be redirected to this URL to return to your app. @@ -100,160 +100,158 @@ export interface Session { /** * The current state of the session. */ - status?: FinancialConnections.Session.Status; + status?: Session.Status; - status_details?: FinancialConnections.Session.StatusDetails; + status_details?: Session.StatusDetails; /** * The UI mode for this session. */ - ui_mode?: FinancialConnections.Session.UiMode; + ui_mode?: Session.UiMode; /** * The hosted URL for this Session. Redirect customers to this URL to take them to the hosted authentication flow. This value is only present when the Session is active and the `ui_mode` is `hosted`. */ url?: string | null; } -export namespace FinancialConnections { - export namespace Session { - export interface AccountHolder { - /** - * The ID of the Stripe account that this account belongs to. Only available when `account_holder.type` is `account`. - */ - account?: string | Account; +export namespace Session { + export interface AccountHolder { + /** + * The ID of the Stripe account that this account belongs to. Only available when `account_holder.type` is `account`. + */ + account?: string | Account; - /** - * The ID for an Account representing a customer that this account belongs to. Only available when `account_holder.type` is `customer`. - */ - customer?: string | Customer; + /** + * The ID for an Account representing a customer that this account belongs to. Only available when `account_holder.type` is `customer`. + */ + customer?: string | Customer; - customer_account?: string; + customer_account?: string; - /** - * Type of account holder that this account belongs to. - */ - type: AccountHolder.Type; - } + /** + * Type of account holder that this account belongs to. + */ + type: AccountHolder.Type; + } - export interface Filters { - /** - * Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. - */ - account_subcategories: Array | null; + export interface Filters { + /** + * Restricts the Session to subcategories of accounts that can be linked. Valid subcategories are: `checking`, `savings`, `mortgage`, `line_of_credit`, `credit_card`. + */ + account_subcategories: Array | null; - /** - * List of countries from which to filter accounts. - */ - countries: Array | null; + /** + * List of countries from which to filter accounts. + */ + countries: Array | null; - /** - * Stripe ID of the institution with which the customer should be directed to log in. - */ - institution?: string; - } + /** + * Stripe ID of the institution with which the customer should be directed to log in. + */ + institution?: string; + } - export interface Hosted { - /** - * How the user enters the hosted flow. You can only use the values `email` and `url` if you provide `relink_options`. - */ - delivery_method?: Hosted.DeliveryMethod; + export interface Hosted { + /** + * How the user enters the hosted flow. You can only use the values `email` and `url` if you provide `relink_options`. + */ + delivery_method?: Hosted.DeliveryMethod; - /** - * The URL to redirect your customer back to after they link their accounts or cancel this Session. This parameter is required if `ui_mode` is `hosted`. - */ - return_url: string | null; - } + /** + * The URL to redirect your customer back to after they link their accounts or cancel this Session. This parameter is required if `ui_mode` is `hosted`. + */ + return_url: string | null; + } - export interface Limits { - /** - * The number of accounts that can be linked in this Session. - */ - accounts: number; - } + export interface Limits { + /** + * The number of accounts that can be linked in this Session. + */ + accounts: number; + } - export interface ManualEntry {} + export interface ManualEntry {} - export type Permission = - | 'balances' - | 'ownership' - | 'payment_method' - | 'transactions'; + export type Permission = + | 'balances' + | 'ownership' + | 'payment_method' + | 'transactions'; - export type Prefetch = - | 'balances' - | 'inferred_balances' - | 'ownership' - | 'transactions'; + export type Prefetch = + | 'balances' + | 'inferred_balances' + | 'ownership' + | 'transactions'; - export interface RelinkOptions { - /** - * Requires the end user to repair this specific account during the authentication flow instead of connecting a different one. - */ - account?: string | null; + export interface RelinkOptions { + /** + * Requires the end user to repair this specific account during the authentication flow instead of connecting a different one. + */ + account?: string | null; - /** - * The authorization to relink in the Session. - */ - authorization: string; - } + /** + * The authorization to relink in the Session. + */ + authorization: string; + } - export interface RelinkResult { - /** - * The account relinked in the Session. Only present if `relink_options[account]` is set and relink is successful. - */ - account: string | null; + export interface RelinkResult { + /** + * The account relinked in the Session. Only present if `relink_options[account]` is set and relink is successful. + */ + account: string | null; - /** - * The authorization relinked in the Session. Only present if relink is successful. - */ - authorization: string | null; + /** + * The authorization relinked in the Session. Only present if relink is successful. + */ + authorization: string | null; - /** - * Reason for why relink failed. One of `no_authorization`, `no_account`, or `other`. - */ - failure_reason: RelinkResult.FailureReason | null; - } + /** + * Reason for why relink failed. One of `no_authorization`, `no_account`, or `other`. + */ + failure_reason: RelinkResult.FailureReason | null; + } - export type Status = 'cancelled' | 'failed' | 'pending' | 'succeeded'; + export type Status = 'cancelled' | 'failed' | 'pending' | 'succeeded'; - export interface StatusDetails { - cancelled?: StatusDetails.Cancelled; - } + export interface StatusDetails { + cancelled?: StatusDetails.Cancelled; + } - export type UiMode = 'hosted' | 'modal'; + export type UiMode = 'hosted' | 'modal'; - export namespace AccountHolder { - export type Type = 'account' | 'customer'; - } + export namespace AccountHolder { + export type Type = 'account' | 'customer'; + } - export namespace Filters { - export type AccountSubcategory = - | 'checking' - | 'credit_card' - | 'line_of_credit' - | 'mortgage' - | 'savings'; - } + export namespace Filters { + export type AccountSubcategory = + | 'checking' + | 'credit_card' + | 'line_of_credit' + | 'mortgage' + | 'savings'; + } - export namespace Hosted { - export type DeliveryMethod = 'email' | 'url'; - } + export namespace Hosted { + export type DeliveryMethod = 'email' | 'url'; + } - export namespace RelinkResult { - export type FailureReason = 'no_account' | 'no_authorization' | 'other'; + export namespace RelinkResult { + export type FailureReason = 'no_account' | 'no_authorization' | 'other'; + } + + export namespace StatusDetails { + export interface Cancelled { + /** + * The reason for the Session being cancelled. + */ + reason: Cancelled.Reason; } - export namespace StatusDetails { - export interface Cancelled { - /** - * The reason for the Session being cancelled. - */ - reason: Cancelled.Reason; - } - - export namespace Cancelled { - export type Reason = 'custom_manual_entry' | 'other'; - } + export namespace Cancelled { + export type Reason = 'custom_manual_entry' | 'other'; } } } diff --git a/src/resources/FinancialConnections/Transactions.ts b/src/resources/FinancialConnections/Transactions.ts index d5df0a6f57..fad48ba494 100644 --- a/src/resources/FinancialConnections/Transactions.ts +++ b/src/resources/FinancialConnections/Transactions.ts @@ -77,9 +77,9 @@ export interface Transaction { /** * The status of the transaction. */ - status: FinancialConnections.Transaction.Status; + status: Transaction.Status; - status_transitions: FinancialConnections.Transaction.StatusTransitions; + status_transitions: Transaction.StatusTransitions; /** * Time at which the transaction was transacted. Measured in seconds since the Unix epoch. @@ -96,21 +96,19 @@ export interface Transaction { */ updated: number; } -export namespace FinancialConnections { - export namespace Transaction { - export type Status = 'pending' | 'posted' | 'void'; +export namespace Transaction { + export type Status = 'pending' | 'posted' | 'void'; - export interface StatusTransitions { - /** - * Time at which this transaction posted. Measured in seconds since the Unix epoch. - */ - posted_at: number | null; + export interface StatusTransitions { + /** + * Time at which this transaction posted. Measured in seconds since the Unix epoch. + */ + posted_at: number | null; - /** - * Time at which this transaction was voided. Measured in seconds since the Unix epoch. - */ - void_at: number | null; - } + /** + * Time at which this transaction was voided. Measured in seconds since the Unix epoch. + */ + void_at: number | null; } } export namespace FinancialConnections { diff --git a/src/resources/Forwarding/Requests.ts b/src/resources/Forwarding/Requests.ts index d4c3852b5e..c1b9d798ad 100644 --- a/src/resources/Forwarding/Requests.ts +++ b/src/resources/Forwarding/Requests.ts @@ -91,109 +91,107 @@ export interface Request { /** * The field kinds to be replaced in the forwarded request. */ - replacements: Array; + replacements: Array; /** * Context about the request from Stripe's servers to the destination endpoint. */ - request_context: Forwarding.Request.RequestContext | null; + request_context: Request.RequestContext | null; /** * The request that was sent to the destination endpoint. We redact any sensitive fields. */ - request_details: Forwarding.Request.RequestDetails | null; + request_details: Request.RequestDetails | null; /** * The response that the destination endpoint returned to us. We redact any sensitive fields. */ - response_details: Forwarding.Request.ResponseDetails | null; + response_details: Request.ResponseDetails | null; /** * The destination URL for the forwarded request. Must be supported by the config. */ url: string | null; } -export namespace Forwarding { - export namespace Request { - export type Replacement = - | 'card_cvc' - | 'card_expiry' - | 'card_number' - | 'cardholder_name' - | 'request_signature'; +export namespace Request { + export type Replacement = + | 'card_cvc' + | 'card_expiry' + | 'card_number' + | 'cardholder_name' + | 'request_signature'; + + export interface RequestContext { + /** + * The time it took in milliseconds for the destination endpoint to respond. + */ + destination_duration: number; - export interface RequestContext { - /** - * The time it took in milliseconds for the destination endpoint to respond. - */ - destination_duration: number; + /** + * The IP address of the destination. + */ + destination_ip_address: string; + } - /** - * The IP address of the destination. - */ - destination_ip_address: string; - } + export interface RequestDetails { + /** + * The body payload to send to the destination endpoint. + */ + body: string; - export interface RequestDetails { - /** - * The body payload to send to the destination endpoint. - */ - body: string; + /** + * The headers to include in the forwarded request. Can be omitted if no additional headers (excluding Stripe-generated ones such as the Content-Type header) should be included. + */ + headers: Array; - /** - * The headers to include in the forwarded request. Can be omitted if no additional headers (excluding Stripe-generated ones such as the Content-Type header) should be included. - */ - headers: Array; + /** + * The HTTP method used to call the destination endpoint. + */ + http_method: 'POST'; + } + + export interface ResponseDetails { + /** + * The response body from the destination endpoint to Stripe. + */ + body: string; + /** + * HTTP headers that the destination endpoint returned. + */ + headers: Array; + + /** + * The HTTP status code that the destination endpoint returned. + */ + status: number; + } + + export namespace RequestDetails { + export interface Header { /** - * The HTTP method used to call the destination endpoint. + * The header name. */ - http_method: 'POST'; - } + name: string; - export interface ResponseDetails { /** - * The response body from the destination endpoint to Stripe. + * The header value. */ - body: string; + value: string; + } + } + export namespace ResponseDetails { + export interface Header { /** - * HTTP headers that the destination endpoint returned. + * The header name. */ - headers: Array; + name: string; /** - * The HTTP status code that the destination endpoint returned. + * The header value. */ - status: number; - } - - export namespace RequestDetails { - export interface Header { - /** - * The header name. - */ - name: string; - - /** - * The header value. - */ - value: string; - } - } - - export namespace ResponseDetails { - export interface Header { - /** - * The header name. - */ - name: string; - - /** - * The header value. - */ - value: string; - } + value: string; } } } diff --git a/src/resources/Identity/VerificationReports.ts b/src/resources/Identity/VerificationReports.ts index 6a82330442..1365d36a1d 100644 --- a/src/resources/Identity/VerificationReports.ts +++ b/src/resources/Identity/VerificationReports.ts @@ -62,39 +62,39 @@ export interface VerificationReport { /** * Result from a document check */ - document?: Identity.VerificationReport.Document; + document?: VerificationReport.Document; /** * Result from a email check */ - email?: Identity.VerificationReport.Email; + email?: VerificationReport.Email; /** * Result from an id_number check */ - id_number?: Identity.VerificationReport.IdNumber; + id_number?: VerificationReport.IdNumber; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. */ livemode: boolean; - options?: Identity.VerificationReport.Options; + options?: VerificationReport.Options; /** * Result from a phone check */ - phone?: Identity.VerificationReport.Phone; + phone?: VerificationReport.Phone; /** * Result from a selfie check */ - selfie?: Identity.VerificationReport.Selfie; + selfie?: VerificationReport.Selfie; /** * Type of report. */ - type: Identity.VerificationReport.Type; + type: VerificationReport.Type; /** * The configuration token of a verification flow from the dashboard. @@ -106,402 +106,400 @@ export interface VerificationReport { */ verification_session: string | null; } -export namespace Identity { - export namespace VerificationReport { - export interface Document { - /** - * Address as it appears in the document. - */ - address: Address | null; +export namespace VerificationReport { + export interface Document { + /** + * Address as it appears in the document. + */ + address: Address | null; - /** - * Date of birth as it appears in the document. - */ - dob?: Document.Dob | null; + /** + * Date of birth as it appears in the document. + */ + dob?: Document.Dob | null; - /** - * Details on the verification error. Present when status is `unverified`. - */ - error: Document.Error | null; + /** + * Details on the verification error. Present when status is `unverified`. + */ + error: Document.Error | null; - /** - * Expiration date of the document. - */ - expiration_date?: Document.ExpirationDate | null; + /** + * Expiration date of the document. + */ + expiration_date?: Document.ExpirationDate | null; - /** - * Array of [File](https://docs.stripe.com/api/files) ids containing images for this document. - */ - files: Array | null; + /** + * Array of [File](https://docs.stripe.com/api/files) ids containing images for this document. + */ + files: Array | null; - /** - * First name as it appears in the document. - */ - first_name: string | null; + /** + * First name as it appears in the document. + */ + first_name: string | null; - /** - * Issued date of the document. - */ - issued_date: Document.IssuedDate | null; + /** + * Issued date of the document. + */ + issued_date: Document.IssuedDate | null; - /** - * Issuing country of the document. - */ - issuing_country: string | null; + /** + * Issuing country of the document. + */ + issuing_country: string | null; - /** - * Last name as it appears in the document. - */ - last_name: string | null; + /** + * Last name as it appears in the document. + */ + last_name: string | null; - /** - * Document ID number. - */ - number?: string | null; + /** + * Document ID number. + */ + number?: string | null; + + /** + * Sex of the person in the document. + */ + sex?: Document.Sex | null; + + /** + * Status of this `document` check. + */ + status: Document.Status; + + /** + * Type of the document. + */ + type: Document.Type | null; + + /** + * Place of birth as it appears in the document. + */ + unparsed_place_of_birth?: string | null; + + /** + * Sex as it appears in the document. + */ + unparsed_sex?: string | null; + } + + export interface Email { + /** + * Email to be verified. + */ + email: string | null; + + /** + * Details on the verification error. Present when status is `unverified`. + */ + error: Email.Error | null; + + /** + * Status of this `email` check. + */ + status: Email.Status; + } + + export interface IdNumber { + /** + * Date of birth. + */ + dob?: IdNumber.Dob | null; + + /** + * Details on the verification error. Present when status is `unverified`. + */ + error: IdNumber.Error | null; + + /** + * First name. + */ + first_name: string | null; + + /** + * ID number. When `id_number_type` is `us_ssn`, only the last 4 digits are present. + */ + id_number?: string | null; + + /** + * Type of ID number. + */ + id_number_type: IdNumber.IdNumberType | null; + + /** + * Last name. + */ + last_name: string | null; + + /** + * Status of this `id_number` check. + */ + status: IdNumber.Status; + } + + export interface Options { + document?: Options.Document; + + id_number?: Options.IdNumber; + } + + export interface Phone { + /** + * Details on the verification error. Present when status is `unverified`. + */ + error: Phone.Error | null; + + /** + * Phone to be verified. + */ + phone: string | null; + + /** + * Status of this `phone` check. + */ + status: Phone.Status; + } + + export interface Selfie { + /** + * ID of the [File](https://docs.stripe.com/api/files) holding the image of the identity document used in this check. + */ + document: string | null; + + /** + * Details on the verification error. Present when status is `unverified`. + */ + error: Selfie.Error | null; + + /** + * ID of the [File](https://docs.stripe.com/api/files) holding the image of the selfie used in this check. + */ + selfie: string | null; + + /** + * Status of this `selfie` check. + */ + status: Selfie.Status; + } + + export type Type = 'document' | 'id_number' | 'verification_flow'; + export namespace Document { + export interface Dob { /** - * Sex of the person in the document. + * Numerical day between 1 and 31. */ - sex?: Document.Sex | null; + day: number | null; /** - * Status of this `document` check. + * Numerical month between 1 and 12. */ - status: Document.Status; + month: number | null; /** - * Type of the document. + * The four-digit year. */ - type: Document.Type | null; + year: number | null; + } + export interface Error { /** - * Place of birth as it appears in the document. + * A short machine-readable string giving the reason for the verification failure. */ - unparsed_place_of_birth?: string | null; + code: Error.Code | null; /** - * Sex as it appears in the document. + * A human-readable message giving the reason for the failure. These messages can be shown to your users. */ - unparsed_sex?: string | null; + reason: string | null; } - export interface Email { + export interface ExpirationDate { /** - * Email to be verified. + * Numerical day between 1 and 31. */ - email: string | null; + day: number | null; /** - * Details on the verification error. Present when status is `unverified`. + * Numerical month between 1 and 12. */ - error: Email.Error | null; + month: number | null; /** - * Status of this `email` check. + * The four-digit year. */ - status: Email.Status; + year: number | null; } - export interface IdNumber { + export interface IssuedDate { /** - * Date of birth. + * Numerical day between 1 and 31. */ - dob?: IdNumber.Dob | null; + day: number | null; /** - * Details on the verification error. Present when status is `unverified`. + * Numerical month between 1 and 12. */ - error: IdNumber.Error | null; + month: number | null; /** - * First name. + * The four-digit year. */ - first_name: string | null; + year: number | null; + } - /** - * ID number. When `id_number_type` is `us_ssn`, only the last 4 digits are present. - */ - id_number?: string | null; + export type Sex = '[redacted]' | 'female' | 'male' | 'unknown'; - /** - * Type of ID number. - */ - id_number_type: IdNumber.IdNumberType | null; + export type Status = 'unverified' | 'verified'; + + export type Type = 'driving_license' | 'id_card' | 'passport'; + + export namespace Error { + export type Code = + | 'document_expired' + | 'document_type_not_supported' + | 'document_unverified_other'; + } + } + export namespace Email { + export interface Error { /** - * Last name. + * A short machine-readable string giving the reason for the verification failure. */ - last_name: string | null; + code: Error.Code | null; /** - * Status of this `id_number` check. + * A human-readable message giving the reason for the failure. These messages can be shown to your users. */ - status: IdNumber.Status; + reason: string | null; } - export interface Options { - document?: Options.Document; + export type Status = 'unverified' | 'verified'; - id_number?: Options.IdNumber; + export namespace Error { + export type Code = + | 'email_unverified_other' + | 'email_verification_declined'; } + } - export interface Phone { + export namespace IdNumber { + export interface Dob { /** - * Details on the verification error. Present when status is `unverified`. + * Numerical day between 1 and 31. */ - error: Phone.Error | null; + day: number | null; /** - * Phone to be verified. + * Numerical month between 1 and 12. */ - phone: string | null; + month: number | null; /** - * Status of this `phone` check. + * The four-digit year. */ - status: Phone.Status; + year: number | null; } - export interface Selfie { - /** - * ID of the [File](https://docs.stripe.com/api/files) holding the image of the identity document used in this check. - */ - document: string | null; - + export interface Error { /** - * Details on the verification error. Present when status is `unverified`. + * A short machine-readable string giving the reason for the verification failure. */ - error: Selfie.Error | null; + code: Error.Code | null; /** - * ID of the [File](https://docs.stripe.com/api/files) holding the image of the selfie used in this check. + * A human-readable message giving the reason for the failure. These messages can be shown to your users. */ - selfie: string | null; - - /** - * Status of this `selfie` check. - */ - status: Selfie.Status; + reason: string | null; } - export type Type = 'document' | 'id_number' | 'verification_flow'; - - export namespace Document { - export interface Dob { - /** - * Numerical day between 1 and 31. - */ - day: number | null; - - /** - * Numerical month between 1 and 12. - */ - month: number | null; - - /** - * The four-digit year. - */ - year: number | null; - } - - export interface Error { - /** - * A short machine-readable string giving the reason for the verification failure. - */ - code: Error.Code | null; + export type IdNumberType = 'br_cpf' | 'sg_nric' | 'us_ssn'; - /** - * A human-readable message giving the reason for the failure. These messages can be shown to your users. - */ - reason: string | null; - } - - export interface ExpirationDate { - /** - * Numerical day between 1 and 31. - */ - day: number | null; - - /** - * Numerical month between 1 and 12. - */ - month: number | null; - - /** - * The four-digit year. - */ - year: number | null; - } + export type Status = 'unverified' | 'verified'; - export interface IssuedDate { - /** - * Numerical day between 1 and 31. - */ - day: number | null; - - /** - * Numerical month between 1 and 12. - */ - month: number | null; - - /** - * The four-digit year. - */ - year: number | null; - } + export namespace Error { + export type Code = + | 'id_number_insufficient_document_data' + | 'id_number_mismatch' + | 'id_number_unverified_other'; + } + } - export type Sex = '[redacted]' | 'female' | 'male' | 'unknown'; + export namespace Options { + export interface Document { + /** + * Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code. + */ + allowed_types?: Array; - export type Status = 'unverified' | 'verified'; + /** + * Collect an ID number and perform an [ID number check](https://docs.stripe.com/identity/verification-checks?type=id-number) with the document's extracted name and date of birth. + */ + require_id_number?: boolean; - export type Type = 'driving_license' | 'id_card' | 'passport'; + /** + * Disable image uploads, identity document images have to be captured using the device's camera. + */ + require_live_capture?: boolean; - export namespace Error { - export type Code = - | 'document_expired' - | 'document_type_not_supported' - | 'document_unverified_other'; - } + /** + * Capture a face image and perform a [selfie check](https://docs.stripe.com/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://docs.stripe.com/identity/selfie). + */ + require_matching_selfie?: boolean; } - export namespace Email { - export interface Error { - /** - * A short machine-readable string giving the reason for the verification failure. - */ - code: Error.Code | null; - - /** - * A human-readable message giving the reason for the failure. These messages can be shown to your users. - */ - reason: string | null; - } - - export type Status = 'unverified' | 'verified'; + export interface IdNumber {} - export namespace Error { - export type Code = - | 'email_unverified_other' - | 'email_verification_declined'; - } + export namespace Document { + export type AllowedType = 'driving_license' | 'id_card' | 'passport'; } + } - export namespace IdNumber { - export interface Dob { - /** - * Numerical day between 1 and 31. - */ - day: number | null; - - /** - * Numerical month between 1 and 12. - */ - month: number | null; - - /** - * The four-digit year. - */ - year: number | null; - } - - export interface Error { - /** - * A short machine-readable string giving the reason for the verification failure. - */ - code: Error.Code | null; - - /** - * A human-readable message giving the reason for the failure. These messages can be shown to your users. - */ - reason: string | null; - } - - export type IdNumberType = 'br_cpf' | 'sg_nric' | 'us_ssn'; - - export type Status = 'unverified' | 'verified'; + export namespace Phone { + export interface Error { + /** + * A short machine-readable string giving the reason for the verification failure. + */ + code: Error.Code | null; - export namespace Error { - export type Code = - | 'id_number_insufficient_document_data' - | 'id_number_mismatch' - | 'id_number_unverified_other'; - } + /** + * A human-readable message giving the reason for the failure. These messages can be shown to your users. + */ + reason: string | null; } - export namespace Options { - export interface Document { - /** - * Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code. - */ - allowed_types?: Array; - - /** - * Collect an ID number and perform an [ID number check](https://docs.stripe.com/identity/verification-checks?type=id-number) with the document's extracted name and date of birth. - */ - require_id_number?: boolean; - - /** - * Disable image uploads, identity document images have to be captured using the device's camera. - */ - require_live_capture?: boolean; - - /** - * Capture a face image and perform a [selfie check](https://docs.stripe.com/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://docs.stripe.com/identity/selfie). - */ - require_matching_selfie?: boolean; - } - - export interface IdNumber {} + export type Status = 'unverified' | 'verified'; - export namespace Document { - export type AllowedType = 'driving_license' | 'id_card' | 'passport'; - } + export namespace Error { + export type Code = + | 'phone_unverified_other' + | 'phone_verification_declined'; } + } - export namespace Phone { - export interface Error { - /** - * A short machine-readable string giving the reason for the verification failure. - */ - code: Error.Code | null; - - /** - * A human-readable message giving the reason for the failure. These messages can be shown to your users. - */ - reason: string | null; - } - - export type Status = 'unverified' | 'verified'; + export namespace Selfie { + export interface Error { + /** + * A short machine-readable string giving the reason for the verification failure. + */ + code: Error.Code | null; - export namespace Error { - export type Code = - | 'phone_unverified_other' - | 'phone_verification_declined'; - } + /** + * A human-readable message giving the reason for the failure. These messages can be shown to your users. + */ + reason: string | null; } - export namespace Selfie { - export interface Error { - /** - * A short machine-readable string giving the reason for the verification failure. - */ - code: Error.Code | null; - - /** - * A human-readable message giving the reason for the failure. These messages can be shown to your users. - */ - reason: string | null; - } + export type Status = 'unverified' | 'verified'; - export type Status = 'unverified' | 'verified'; - - export namespace Error { - export type Code = - | 'selfie_document_missing_photo' - | 'selfie_face_mismatch' - | 'selfie_manipulated' - | 'selfie_unverified_other'; - } + export namespace Error { + export type Code = + | 'selfie_document_missing_photo' + | 'selfie_face_mismatch' + | 'selfie_manipulated' + | 'selfie_unverified_other'; } } } diff --git a/src/resources/Identity/VerificationSessions.ts b/src/resources/Identity/VerificationSessions.ts index cafbb83e9d..b4b9e969bb 100644 --- a/src/resources/Identity/VerificationSessions.ts +++ b/src/resources/Identity/VerificationSessions.ts @@ -166,7 +166,7 @@ export interface VerificationSession { /** * If present, this property tells you the last error encountered when processing the verification. */ - last_error: Identity.VerificationSession.LastError | null; + last_error: VerificationSession.LastError | null; /** * ID of the most recent VerificationReport. [Learn more about accessing detailed verification results.](https://docs.stripe.com/identity/verification-sessions#results) @@ -186,17 +186,17 @@ export interface VerificationSession { /** * A set of options for the session's verification checks. */ - options: Identity.VerificationSession.Options | null; + options: VerificationSession.Options | null; /** * Details provided about the user being verified. These details may be shown to the user. */ - provided_details?: Identity.VerificationSession.ProvidedDetails | null; + provided_details?: VerificationSession.ProvidedDetails | null; /** * Redaction status of this VerificationSession. If the VerificationSession is not redacted, this field will be null. */ - redaction: Identity.VerificationSession.Redaction | null; + redaction: VerificationSession.Redaction | null; /** * Customer ID @@ -208,17 +208,17 @@ export interface VerificationSession { */ related_customer_account: string | null; - related_person?: Identity.VerificationSession.RelatedPerson; + related_person?: VerificationSession.RelatedPerson; /** * Status of this VerificationSession. [Learn more about the lifecycle of sessions](https://docs.stripe.com/identity/how-sessions-work). */ - status: Identity.VerificationSession.Status; + status: VerificationSession.Status; /** * The type of [verification check](https://docs.stripe.com/identity/verification-checks) to be performed. */ - type: Identity.VerificationSession.Type; + type: VerificationSession.Type; /** * The short-lived URL that you use to redirect a user to Stripe to submit their identity information. This URL expires after 48 hours and can only be used once. Don't store it, log it, send it in emails or expose it to anyone other than the user. Refer to our docs on [verifying identity documents](https://docs.stripe.com/identity/verify-identity-documents?platform=web&type=redirect) to learn how to redirect users to Stripe. @@ -233,241 +233,239 @@ export interface VerificationSession { /** * The user's verified data. */ - verified_outputs?: Identity.VerificationSession.VerifiedOutputs | null; + verified_outputs?: VerificationSession.VerifiedOutputs | null; } -export namespace Identity { - export namespace VerificationSession { - export interface LastError { - /** - * A short machine-readable string giving the reason for the verification or user-session failure. - */ - code: LastError.Code | null; +export namespace VerificationSession { + export interface LastError { + /** + * A short machine-readable string giving the reason for the verification or user-session failure. + */ + code: LastError.Code | null; - /** - * A message that explains the reason for verification or user-session failure. - */ - reason: string | null; - } + /** + * A message that explains the reason for verification or user-session failure. + */ + reason: string | null; + } - export interface Options { - document?: Options.Document; + export interface Options { + document?: Options.Document; - email?: Options.Email; + email?: Options.Email; - id_number?: Options.IdNumber; + id_number?: Options.IdNumber; - matching?: Options.Matching; + matching?: Options.Matching; - phone?: Options.Phone; - } + phone?: Options.Phone; + } - export interface ProvidedDetails { - /** - * Email of user being verified - */ - email?: string; + export interface ProvidedDetails { + /** + * Email of user being verified + */ + email?: string; - /** - * Phone number of user being verified - */ - phone?: string; - } + /** + * Phone number of user being verified + */ + phone?: string; + } - export interface Redaction { - /** - * Indicates whether this object and its related objects have been redacted or not. - */ - status: Redaction.Status; - } + export interface Redaction { + /** + * Indicates whether this object and its related objects have been redacted or not. + */ + status: Redaction.Status; + } - export interface RelatedPerson { - /** - * Token referencing the associated Account of the related Person resource. - */ - account: string; + export interface RelatedPerson { + /** + * Token referencing the associated Account of the related Person resource. + */ + account: string; - /** - * Token referencing the related Person resource. - */ - person: string; - } + /** + * Token referencing the related Person resource. + */ + person: string; + } - export type Status = - | 'canceled' - | 'processing' - | 'requires_input' - | 'verified'; + export type Status = + | 'canceled' + | 'processing' + | 'requires_input' + | 'verified'; - export type Type = 'document' | 'id_number' | 'verification_flow'; + export type Type = 'document' | 'id_number' | 'verification_flow'; - export interface VerifiedOutputs { - /** - * The user's verified address. - */ - address: Address | null; + export interface VerifiedOutputs { + /** + * The user's verified address. + */ + address: Address | null; - /** - * The user's verified date of birth. - */ - dob?: VerifiedOutputs.Dob | null; + /** + * The user's verified date of birth. + */ + dob?: VerifiedOutputs.Dob | null; - /** - * The user's verified email address - */ - email: string | null; + /** + * The user's verified email address + */ + email: string | null; + + /** + * The user's verified first name. + */ + first_name: string | null; + + /** + * The user's verified id number. + */ + id_number?: string | null; + + /** + * The user's verified id number type. + */ + id_number_type: VerifiedOutputs.IdNumberType | null; + + /** + * The user's verified last name. + */ + last_name: string | null; + + /** + * The user's verified phone number + */ + phone: string | null; + + /** + * The user's verified sex. + */ + sex?: VerifiedOutputs.Sex | null; + + /** + * The user's verified place of birth as it appears in the document. + */ + unparsed_place_of_birth?: string | null; + + /** + * The user's verified sex as it appears in the document. + */ + unparsed_sex?: string | null; + } + + export namespace LastError { + export type Code = + | 'abandoned' + | 'consent_declined' + | 'country_not_supported' + | 'device_not_supported' + | 'document_expired' + | 'document_type_not_supported' + | 'document_unverified_other' + | 'email_unverified_other' + | 'email_verification_declined' + | 'id_number_insufficient_document_data' + | 'id_number_mismatch' + | 'id_number_unverified_other' + | 'phone_unverified_other' + | 'phone_verification_declined' + | 'selfie_document_missing_photo' + | 'selfie_face_mismatch' + | 'selfie_manipulated' + | 'selfie_unverified_other' + | 'under_supported_age'; + } + export namespace Options { + export interface Document { /** - * The user's verified first name. + * Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code. */ - first_name: string | null; + allowed_types?: Array; /** - * The user's verified id number. + * Collect an ID number and perform an [ID number check](https://docs.stripe.com/identity/verification-checks?type=id-number) with the document's extracted name and date of birth. */ - id_number?: string | null; + require_id_number?: boolean; /** - * The user's verified id number type. + * Disable image uploads, identity document images have to be captured using the device's camera. */ - id_number_type: VerifiedOutputs.IdNumberType | null; + require_live_capture?: boolean; /** - * The user's verified last name. + * Capture a face image and perform a [selfie check](https://docs.stripe.com/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://docs.stripe.com/identity/selfie). */ - last_name: string | null; + require_matching_selfie?: boolean; + } + export interface Email { /** - * The user's verified phone number + * Request one time password verification of `provided_details.email`. */ - phone: string | null; + require_verification?: boolean; + } + export interface IdNumber {} + + export interface Matching { /** - * The user's verified sex. + * Strictness of the DOB matching policy to apply. */ - sex?: VerifiedOutputs.Sex | null; + dob?: Matching.Dob; /** - * The user's verified place of birth as it appears in the document. + * Strictness of the name matching policy to apply. */ - unparsed_place_of_birth?: string | null; + name?: Matching.Name; + } + export interface Phone { /** - * The user's verified sex as it appears in the document. + * Request one time password verification of `provided_details.phone`. */ - unparsed_sex?: string | null; + require_verification?: boolean; } - export namespace LastError { - export type Code = - | 'abandoned' - | 'consent_declined' - | 'country_not_supported' - | 'device_not_supported' - | 'document_expired' - | 'document_type_not_supported' - | 'document_unverified_other' - | 'email_unverified_other' - | 'email_verification_declined' - | 'id_number_insufficient_document_data' - | 'id_number_mismatch' - | 'id_number_unverified_other' - | 'phone_unverified_other' - | 'phone_verification_declined' - | 'selfie_document_missing_photo' - | 'selfie_face_mismatch' - | 'selfie_manipulated' - | 'selfie_unverified_other' - | 'under_supported_age'; + export namespace Document { + export type AllowedType = 'driving_license' | 'id_card' | 'passport'; } - export namespace Options { - export interface Document { - /** - * Array of strings of allowed identity document types. If the provided identity document isn't one of the allowed types, the verification check will fail with a document_type_not_allowed error code. - */ - allowed_types?: Array; - - /** - * Collect an ID number and perform an [ID number check](https://docs.stripe.com/identity/verification-checks?type=id-number) with the document's extracted name and date of birth. - */ - require_id_number?: boolean; - - /** - * Disable image uploads, identity document images have to be captured using the device's camera. - */ - require_live_capture?: boolean; - - /** - * Capture a face image and perform a [selfie check](https://docs.stripe.com/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user's face. [Learn more](https://docs.stripe.com/identity/selfie). - */ - require_matching_selfie?: boolean; - } + export namespace Matching { + export type Dob = 'none' | 'similar'; - export interface Email { - /** - * Request one time password verification of `provided_details.email`. - */ - require_verification?: boolean; - } - - export interface IdNumber {} - - export interface Matching { - /** - * Strictness of the DOB matching policy to apply. - */ - dob?: Matching.Dob; - - /** - * Strictness of the name matching policy to apply. - */ - name?: Matching.Name; - } - - export interface Phone { - /** - * Request one time password verification of `provided_details.phone`. - */ - require_verification?: boolean; - } - - export namespace Document { - export type AllowedType = 'driving_license' | 'id_card' | 'passport'; - } - - export namespace Matching { - export type Dob = 'none' | 'similar'; - - export type Name = 'none' | 'similar'; - } + export type Name = 'none' | 'similar'; } + } - export namespace Redaction { - export type Status = 'processing' | 'redacted'; - } + export namespace Redaction { + export type Status = 'processing' | 'redacted'; + } - export namespace VerifiedOutputs { - export interface Dob { - /** - * Numerical day between 1 and 31. - */ - day: number | null; + export namespace VerifiedOutputs { + export interface Dob { + /** + * Numerical day between 1 and 31. + */ + day: number | null; - /** - * Numerical month between 1 and 12. - */ - month: number | null; + /** + * Numerical month between 1 and 12. + */ + month: number | null; - /** - * The four-digit year. - */ - year: number | null; - } + /** + * The four-digit year. + */ + year: number | null; + } - export type IdNumberType = 'br_cpf' | 'sg_nric' | 'us_ssn'; + export type IdNumberType = 'br_cpf' | 'sg_nric' | 'us_ssn'; - export type Sex = '[redacted]' | 'female' | 'male' | 'unknown'; - } + export type Sex = '[redacted]' | 'female' | 'male' | 'unknown'; } } export namespace Identity { diff --git a/src/resources/Issuing/Authorizations.ts b/src/resources/Issuing/Authorizations.ts index d5a39060f1..6948021174 100644 --- a/src/resources/Issuing/Authorizations.ts +++ b/src/resources/Issuing/Authorizations.ts @@ -952,7 +952,7 @@ export interface Authorization { /** * Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). */ - amount_details: Issuing.Authorization.AmountDetails | null; + amount_details: Authorization.AmountDetails | null; /** * Whether the authorization has been approved. @@ -962,7 +962,7 @@ export interface Authorization { /** * How the card details were provided. */ - authorization_method: Issuing.Authorization.AuthorizationMethod; + authorization_method: Authorization.AuthorizationMethod; /** * List of balance transactions associated with this authorization. @@ -977,7 +977,7 @@ export interface Authorization { /** * Whether the card was present at the point of sale for the authorization. */ - card_presence: Issuing.Authorization.CardPresence | null; + card_presence: Authorization.CardPresence | null; /** * The cardholder to whom this authorization belongs. @@ -997,17 +997,17 @@ export interface Authorization { /** * Fleet-specific information for authorizations using Fleet cards. */ - fleet: Issuing.Authorization.Fleet | null; + fleet: Authorization.Fleet | null; /** * Fraud challenges sent to the cardholder, if this authorization was declined for fraud risk reasons. */ - fraud_challenges?: Array | null; + fraud_challenges?: Array | null; /** * Information about fuel that was purchased with this transaction. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. */ - fuel: Issuing.Authorization.Fuel | null; + fuel: Authorization.Fuel | null; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -1024,7 +1024,7 @@ export interface Authorization { */ merchant_currency: string; - merchant_data: Issuing.Authorization.MerchantData; + merchant_data: Authorization.MerchantData; /** * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. @@ -1034,22 +1034,22 @@ export interface Authorization { /** * Details about the authorization, such as identifiers, set by the card network. */ - network_data: Issuing.Authorization.NetworkData | null; + network_data: Authorization.NetworkData | null; /** * The pending authorization request. This field will only be non-null during an `issuing_authorization.request` webhook. */ - pending_request: Issuing.Authorization.PendingRequest | null; + pending_request: Authorization.PendingRequest | null; /** * History of every time a `pending_request` authorization was approved/declined, either by you directly or by Stripe (e.g. based on your spending_controls). If the merchant changes the authorization by performing an incremental authorization, you can look at this field to see the previous requests for the authorization. This field can be helpful in determining why a given authorization was approved/declined. */ - request_history: Array; + request_history: Array; /** * The current status of the authorization in its lifecycle. */ - status: Issuing.Authorization.Status; + status: Authorization.Status; /** * [Token](https://docs.stripe.com/api/issuing/tokens/object) object used for this authorization. If a network token was not used for this authorization, this field will be null. @@ -1064,9 +1064,9 @@ export interface Authorization { /** * [Treasury](https://docs.stripe.com/api/treasury) details related to this authorization if it was created on a [FinancialAccount](https://docs.stripe.com/api/treasury/financial_accounts). */ - treasury?: Issuing.Authorization.Treasury | null; + treasury?: Authorization.Treasury | null; - verification_data: Issuing.Authorization.VerificationData; + verification_data: Authorization.VerificationData; /** * Whether the authorization bypassed fraud risk checks because the cardholder has previously completed a fraud challenge on a similar high-risk authorization from the same merchant. @@ -1078,543 +1078,538 @@ export interface Authorization { */ wallet: string | null; } -export namespace Issuing { - export namespace Authorization { - export interface AmountDetails { - /** - * The fee charged by the ATM for the cash withdrawal. - */ - atm_fee: number | null; +export namespace Authorization { + export interface AmountDetails { + /** + * The fee charged by the ATM for the cash withdrawal. + */ + atm_fee: number | null; - /** - * The amount of cash requested by the cardholder. - */ - cashback_amount: number | null; - } + /** + * The amount of cash requested by the cardholder. + */ + cashback_amount: number | null; + } - export type AuthorizationMethod = - | 'chip' - | 'contactless' - | 'keyed_in' - | 'online' - | 'swipe'; + export type AuthorizationMethod = + | 'chip' + | 'contactless' + | 'keyed_in' + | 'online' + | 'swipe'; - export type CardPresence = 'not_present' | 'present'; + export type CardPresence = 'not_present' | 'present'; - export interface Fleet { - /** - * Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry. - */ - cardholder_prompt_data: Fleet.CardholderPromptData | null; + export interface Fleet { + /** + * Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry. + */ + cardholder_prompt_data: Fleet.CardholderPromptData | null; - /** - * The type of purchase. - */ - purchase_type: Fleet.PurchaseType | null; + /** + * The type of purchase. + */ + purchase_type: Fleet.PurchaseType | null; - /** - * More information about the total amount. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. This information is not guaranteed to be accurate as some merchants may provide unreliable data. - */ - reported_breakdown: Fleet.ReportedBreakdown | null; + /** + * More information about the total amount. Typically this information is received from the merchant after the authorization has been approved and the fuel dispensed. This information is not guaranteed to be accurate as some merchants may provide unreliable data. + */ + reported_breakdown: Fleet.ReportedBreakdown | null; - /** - * The type of fuel service. - */ - service_type: Fleet.ServiceType | null; - } + /** + * The type of fuel service. + */ + service_type: Fleet.ServiceType | null; + } - export interface FraudChallenge { - /** - * The method by which the fraud challenge was delivered to the cardholder. - */ - channel: 'sms'; + export interface FraudChallenge { + /** + * The method by which the fraud challenge was delivered to the cardholder. + */ + channel: 'sms'; - /** - * The status of the fraud challenge. - */ - status: FraudChallenge.Status; + /** + * The status of the fraud challenge. + */ + status: FraudChallenge.Status; - /** - * If the challenge is not deliverable, the reason why. - */ - undeliverable_reason: FraudChallenge.UndeliverableReason | null; - } + /** + * If the challenge is not deliverable, the reason why. + */ + undeliverable_reason: FraudChallenge.UndeliverableReason | null; + } - export interface Fuel { - /** - * [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. - */ - industry_product_code: string | null; + export interface Fuel { + /** + * [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. + */ + industry_product_code: string | null; - /** - * The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. - */ - quantity_decimal: Decimal | null; + /** + * The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. + */ + quantity_decimal: Decimal | null; - /** - * The type of fuel that was purchased. - */ - type: Fuel.Type | null; + /** + * The type of fuel that was purchased. + */ + type: Fuel.Type | null; - /** - * The units for `quantity_decimal`. - */ - unit: Fuel.Unit | null; + /** + * The units for `quantity_decimal`. + */ + unit: Fuel.Unit | null; - /** - * The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places. - */ - unit_cost_decimal: Decimal | null; - } + /** + * The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places. + */ + unit_cost_decimal: Decimal | null; + } - export interface MerchantData { - /** - * A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values. - */ - category: string; + export interface MerchantData { + /** + * A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values. + */ + category: string; - /** - * The merchant category code for the seller's business - */ - category_code: string; + /** + * The merchant category code for the seller's business + */ + category_code: string; - /** - * City where the seller is located - */ - city: string | null; + /** + * City where the seller is located + */ + city: string | null; - /** - * Country where the seller is located - */ - country: string | null; + /** + * Country where the seller is located + */ + country: string | null; - /** - * Name of the seller - */ - name: string | null; + /** + * Name of the seller + */ + name: string | null; - /** - * Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant. - */ - network_id: string; + /** + * Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant. + */ + network_id: string; - /** - * Postal code where the seller is located - */ - postal_code: string | null; + /** + * Postal code where the seller is located + */ + postal_code: string | null; - /** - * State where the seller is located - */ - state: string | null; + /** + * State where the seller is located + */ + state: string | null; - /** - * The seller's tax identification number. Currently populated for French merchants only. - */ - tax_id: string | null; + /** + * The seller's tax identification number. Currently populated for French merchants only. + */ + tax_id: string | null; - /** - * An ID assigned by the seller to the location of the sale. - */ - terminal_id: string | null; + /** + * An ID assigned by the seller to the location of the sale. + */ + terminal_id: string | null; - /** - * URL provided by the merchant on a 3DS request - */ - url: string | null; - } + /** + * URL provided by the merchant on a 3DS request + */ + url: string | null; + } - export interface NetworkData { - /** - * Identifier assigned to the acquirer by the card network. Sometimes this value is not provided by the network; in this case, the value will be `null`. - */ - acquiring_institution_id: string | null; + export interface NetworkData { + /** + * Identifier assigned to the acquirer by the card network. Sometimes this value is not provided by the network; in this case, the value will be `null`. + */ + acquiring_institution_id: string | null; - /** - * The System Trace Audit Number (STAN) is a 6-digit identifier assigned by the acquirer. Prefer `network_data.transaction_id` if present, unless you have special requirements. - */ - system_trace_audit_number: string | null; + /** + * The System Trace Audit Number (STAN) is a 6-digit identifier assigned by the acquirer. Prefer `network_data.transaction_id` if present, unless you have special requirements. + */ + system_trace_audit_number: string | null; - /** - * Unique identifier for the authorization assigned by the card network used to match subsequent messages, disputes, and transactions. - */ - transaction_id: string | null; - } + /** + * Unique identifier for the authorization assigned by the card network used to match subsequent messages, disputes, and transactions. + */ + transaction_id: string | null; + } - export interface PendingRequest { - /** - * The additional amount Stripe will hold if the authorization is approved, in the card's [currency](https://docs.stripe.com/api#issuing_authorization_object-pending-request-currency) and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). - */ - amount: number; + export interface PendingRequest { + /** + * The additional amount Stripe will hold if the authorization is approved, in the card's [currency](https://docs.stripe.com/api#issuing_authorization_object-pending-request-currency) and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + */ + amount: number; - /** - * Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). - */ - amount_details: PendingRequest.AmountDetails | null; + /** + * Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + */ + amount_details: PendingRequest.AmountDetails | null; - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency: string; + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; - /** - * If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization. - */ - is_amount_controllable: boolean; + /** + * If set `true`, you may provide [amount](https://docs.stripe.com/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization. + */ + is_amount_controllable: boolean; - /** - * The amount the merchant is requesting to be authorized in the `merchant_currency`. The amount is in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). - */ - merchant_amount: number; + /** + * The amount the merchant is requesting to be authorized in the `merchant_currency`. The amount is in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + */ + merchant_amount: number; - /** - * The local currency the merchant is requesting to authorize. - */ - merchant_currency: string; + /** + * The local currency the merchant is requesting to authorize. + */ + merchant_currency: string; - /** - * The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99. - */ - network_risk_score: number | null; - } + /** + * The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99. + */ + network_risk_score: number | null; + } - export interface RequestHistory { - /** - * The `pending_request.amount` at the time of the request, presented in your card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Stripe held this amount from your account to fund the authorization if the request was approved. - */ - amount: number; + export interface RequestHistory { + /** + * The `pending_request.amount` at the time of the request, presented in your card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). Stripe held this amount from your account to fund the authorization if the request was approved. + */ + amount: number; - /** - * Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). - */ - amount_details: RequestHistory.AmountDetails | null; + /** + * Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + */ + amount_details: RequestHistory.AmountDetails | null; - /** - * Whether this request was approved. - */ - approved: boolean; + /** + * Whether this request was approved. + */ + approved: boolean; - /** - * A code created by Stripe which is shared with the merchant to validate the authorization. This field will be populated if the authorization message was approved. The code typically starts with the letter "S", followed by a six-digit number. For example, "S498162". Please note that the code is not guaranteed to be unique across authorizations. - */ - authorization_code: string | null; + /** + * A code created by Stripe which is shared with the merchant to validate the authorization. This field will be populated if the authorization message was approved. The code typically starts with the letter "S", followed by a six-digit number. For example, "S498162". Please note that the code is not guaranteed to be unique across authorizations. + */ + authorization_code: string | null; - /** - * Time at which the object was created. Measured in seconds since the Unix epoch. - */ - created: number; + /** + * Time at which the object was created. Measured in seconds since the Unix epoch. + */ + created: number; - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency: string; + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; - /** - * The `pending_request.merchant_amount` at the time of the request, presented in the `merchant_currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). - */ - merchant_amount: number; + /** + * The `pending_request.merchant_amount` at the time of the request, presented in the `merchant_currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + */ + merchant_amount: number; - /** - * The currency that was collected by the merchant and presented to the cardholder for the authorization. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - merchant_currency: string; + /** + * The currency that was collected by the merchant and presented to the cardholder for the authorization. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + merchant_currency: string; - /** - * The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99. - */ - network_risk_score: number | null; + /** + * The card network's estimate of the likelihood that an authorization is fraudulent. Takes on values between 1 and 99. + */ + network_risk_score: number | null; - /** - * When an authorization is approved or declined by you or by Stripe, this field provides additional detail on the reason for the outcome. - */ - reason: RequestHistory.Reason; + /** + * When an authorization is approved or declined by you or by Stripe, this field provides additional detail on the reason for the outcome. + */ + reason: RequestHistory.Reason; - /** - * If the `request_history.reason` is `webhook_error` because the direct webhook response is invalid (for example, parsing errors or missing parameters), we surface a more detailed error message via this field. - */ - reason_message: string | null; + /** + * If the `request_history.reason` is `webhook_error` because the direct webhook response is invalid (for example, parsing errors or missing parameters), we surface a more detailed error message via this field. + */ + reason_message: string | null; - /** - * Time when the card network received an authorization request from the acquirer in UTC. Referred to by networks as transmission time. - */ - requested_at: number | null; - } + /** + * Time when the card network received an authorization request from the acquirer in UTC. Referred to by networks as transmission time. + */ + requested_at: number | null; + } - export type Status = 'closed' | 'expired' | 'pending' | 'reversed'; + export type Status = 'closed' | 'expired' | 'pending' | 'reversed'; - export interface Treasury { - /** - * The array of [ReceivedCredits](https://docs.stripe.com/api/treasury/received_credits) associated with this authorization - */ - received_credits: Array; + export interface Treasury { + /** + * The array of [ReceivedCredits](https://docs.stripe.com/api/treasury/received_credits) associated with this authorization + */ + received_credits: Array; + + /** + * The array of [ReceivedDebits](https://docs.stripe.com/api/treasury/received_debits) associated with this authorization + */ + received_debits: Array; + + /** + * The Treasury [Transaction](https://docs.stripe.com/api/treasury/transactions) associated with this authorization + */ + transaction: string | null; + } + + export interface VerificationData { + /** + * Whether the cardholder provided an address first line and if it matched the cardholder's `billing.address.line1`. + */ + address_line1_check: VerificationData.AddressLine1Check; + + /** + * Whether the cardholder provided a postal code and if it matched the cardholder's `billing.address.postal_code`. + */ + address_postal_code_check: VerificationData.AddressPostalCodeCheck; + + /** + * The exemption applied to this authorization. + */ + authentication_exemption: VerificationData.AuthenticationExemption | null; + + /** + * Whether the cardholder provided a CVC and if it matched Stripe's record. + */ + cvc_check: VerificationData.CvcCheck; + + /** + * Whether the cardholder provided an expiry date and if it matched Stripe's record. + */ + expiry_check: VerificationData.ExpiryCheck; + + /** + * The postal code submitted as part of the authorization used for postal code verification. + */ + postal_code: string | null; + /** + * 3D Secure details. + */ + three_d_secure: VerificationData.ThreeDSecure | null; + } + + export namespace Fleet { + export interface CardholderPromptData { /** - * The array of [ReceivedDebits](https://docs.stripe.com/api/treasury/received_debits) associated with this authorization + * [Deprecated] An alphanumeric ID, though typical point of sales only support numeric entry. The card program can be configured to prompt for a vehicle ID, driver ID, or generic ID. + * @deprecated */ - received_debits: Array; + alphanumeric_id: string | null; /** - * The Treasury [Transaction](https://docs.stripe.com/api/treasury/transactions) associated with this authorization + * Driver ID. */ - transaction: string | null; - } + driver_id: string | null; - export interface VerificationData { /** - * Whether the cardholder provided an address first line and if it matched the cardholder's `billing.address.line1`. + * Odometer reading. */ - address_line1_check: VerificationData.AddressLine1Check; + odometer: number | null; /** - * Whether the cardholder provided a postal code and if it matched the cardholder's `billing.address.postal_code`. + * An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type. */ - address_postal_code_check: VerificationData.AddressPostalCodeCheck; + unspecified_id: string | null; /** - * The exemption applied to this authorization. + * User ID. */ - authentication_exemption: VerificationData.AuthenticationExemption | null; + user_id: string | null; /** - * Whether the cardholder provided a CVC and if it matched Stripe's record. + * Vehicle number. */ - cvc_check: VerificationData.CvcCheck; + vehicle_number: string | null; + } + export type PurchaseType = + | 'fuel_and_non_fuel_purchase' + | 'fuel_purchase' + | 'non_fuel_purchase'; + + export interface ReportedBreakdown { /** - * Whether the cardholder provided an expiry date and if it matched Stripe's record. + * Breakdown of fuel portion of the purchase. */ - expiry_check: VerificationData.ExpiryCheck; + fuel: ReportedBreakdown.Fuel | null; /** - * The postal code submitted as part of the authorization used for postal code verification. + * Breakdown of non-fuel portion of the purchase. */ - postal_code: string | null; + non_fuel: ReportedBreakdown.NonFuel | null; /** - * 3D Secure details. + * Information about tax included in this transaction. */ - three_d_secure: VerificationData.ThreeDSecure | null; + tax: ReportedBreakdown.Tax | null; } - export namespace Fleet { - export interface CardholderPromptData { - /** - * [Deprecated] An alphanumeric ID, though typical point of sales only support numeric entry. The card program can be configured to prompt for a vehicle ID, driver ID, or generic ID. - * @deprecated - */ - alphanumeric_id: string | null; - - /** - * Driver ID. - */ - driver_id: string | null; - - /** - * Odometer reading. - */ - odometer: number | null; - - /** - * An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type. - */ - unspecified_id: string | null; + export type ServiceType = + | 'full_service' + | 'non_fuel_transaction' + | 'self_service'; + export namespace ReportedBreakdown { + export interface Fuel { /** - * User ID. + * Gross fuel amount that should equal Fuel Quantity multiplied by Fuel Unit Cost, inclusive of taxes. */ - user_id: string | null; - - /** - * Vehicle number. - */ - vehicle_number: string | null; + gross_amount_decimal: Decimal | null; } - export type PurchaseType = - | 'fuel_and_non_fuel_purchase' - | 'fuel_purchase' - | 'non_fuel_purchase'; - - export interface ReportedBreakdown { + export interface NonFuel { /** - * Breakdown of fuel portion of the purchase. + * Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. */ - fuel: ReportedBreakdown.Fuel | null; + gross_amount_decimal: Decimal | null; + } + export interface Tax { /** - * Breakdown of non-fuel portion of the purchase. + * Amount of state or provincial Sales Tax included in the transaction amount. `null` if not reported by merchant or not subject to tax. */ - non_fuel: ReportedBreakdown.NonFuel | null; + local_amount_decimal: Decimal | null; /** - * Information about tax included in this transaction. + * Amount of national Sales Tax or VAT included in the transaction amount. `null` if not reported by merchant or not subject to tax. */ - tax: ReportedBreakdown.Tax | null; - } - - export type ServiceType = - | 'full_service' - | 'non_fuel_transaction' - | 'self_service'; - - export namespace ReportedBreakdown { - export interface Fuel { - /** - * Gross fuel amount that should equal Fuel Quantity multiplied by Fuel Unit Cost, inclusive of taxes. - */ - gross_amount_decimal: Decimal | null; - } - - export interface NonFuel { - /** - * Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. - */ - gross_amount_decimal: Decimal | null; - } - - export interface Tax { - /** - * Amount of state or provincial Sales Tax included in the transaction amount. `null` if not reported by merchant or not subject to tax. - */ - local_amount_decimal: Decimal | null; - - /** - * Amount of national Sales Tax or VAT included in the transaction amount. `null` if not reported by merchant or not subject to tax. - */ - national_amount_decimal: Decimal | null; - } + national_amount_decimal: Decimal | null; } } + } - export namespace FraudChallenge { - export type Status = - | 'expired' - | 'pending' - | 'rejected' - | 'undeliverable' - | 'verified'; - - export type UndeliverableReason = - | 'no_phone_number' - | 'unsupported_phone_number'; - } + export namespace FraudChallenge { + export type Status = + | 'expired' + | 'pending' + | 'rejected' + | 'undeliverable' + | 'verified'; + + export type UndeliverableReason = + | 'no_phone_number' + | 'unsupported_phone_number'; + } - export namespace Fuel { - export type Type = - | 'diesel' - | 'other' - | 'unleaded_plus' - | 'unleaded_regular' - | 'unleaded_super'; - - export type Unit = - | 'charging_minute' - | 'imperial_gallon' - | 'kilogram' - | 'kilowatt_hour' - | 'liter' - | 'other' - | 'pound' - | 'us_gallon'; - } + export namespace Fuel { + export type Type = + | 'diesel' + | 'other' + | 'unleaded_plus' + | 'unleaded_regular' + | 'unleaded_super'; + + export type Unit = + | 'charging_minute' + | 'imperial_gallon' + | 'kilogram' + | 'kilowatt_hour' + | 'liter' + | 'other' + | 'pound' + | 'us_gallon'; + } - export namespace PendingRequest { - export interface AmountDetails { - /** - * The fee charged by the ATM for the cash withdrawal. - */ - atm_fee: number | null; + export namespace PendingRequest { + export interface AmountDetails { + /** + * The fee charged by the ATM for the cash withdrawal. + */ + atm_fee: number | null; - /** - * The amount of cash requested by the cardholder. - */ - cashback_amount: number | null; - } + /** + * The amount of cash requested by the cardholder. + */ + cashback_amount: number | null; } + } - export namespace RequestHistory { - export interface AmountDetails { - /** - * The fee charged by the ATM for the cash withdrawal. - */ - atm_fee: number | null; - - /** - * The amount of cash requested by the cardholder. - */ - cashback_amount: number | null; - } + export namespace RequestHistory { + export interface AmountDetails { + /** + * The fee charged by the ATM for the cash withdrawal. + */ + atm_fee: number | null; - export type Reason = - | 'account_disabled' - | 'card_active' - | 'card_canceled' - | 'card_expired' - | 'card_inactive' - | 'cardholder_blocked' - | 'cardholder_inactive' - | 'cardholder_verification_required' - | 'insecure_authorization_method' - | 'insufficient_funds' - | 'network_fallback' - | 'not_allowed' - | 'pin_blocked' - | 'spending_controls' - | 'suspected_fraud' - | 'verification_failed' - | 'webhook_approved' - | 'webhook_declined' - | 'webhook_error' - | 'webhook_timeout'; + /** + * The amount of cash requested by the cardholder. + */ + cashback_amount: number | null; } - export namespace VerificationData { - export type AddressLine1Check = 'match' | 'mismatch' | 'not_provided'; + export type Reason = + | 'account_disabled' + | 'card_active' + | 'card_canceled' + | 'card_expired' + | 'card_inactive' + | 'cardholder_blocked' + | 'cardholder_inactive' + | 'cardholder_verification_required' + | 'insecure_authorization_method' + | 'insufficient_funds' + | 'network_fallback' + | 'not_allowed' + | 'pin_blocked' + | 'spending_controls' + | 'suspected_fraud' + | 'verification_failed' + | 'webhook_approved' + | 'webhook_declined' + | 'webhook_error' + | 'webhook_timeout'; + } - export type AddressPostalCodeCheck = - | 'match' - | 'mismatch' - | 'not_provided'; + export namespace VerificationData { + export type AddressLine1Check = 'match' | 'mismatch' | 'not_provided'; - export interface AuthenticationExemption { - /** - * The entity that requested the exemption, either the acquiring merchant or the Issuing user. - */ - claimed_by: AuthenticationExemption.ClaimedBy; + export type AddressPostalCodeCheck = 'match' | 'mismatch' | 'not_provided'; - /** - * The specific exemption claimed for this authorization. - */ - type: AuthenticationExemption.Type; - } + export interface AuthenticationExemption { + /** + * The entity that requested the exemption, either the acquiring merchant or the Issuing user. + */ + claimed_by: AuthenticationExemption.ClaimedBy; - export type CvcCheck = 'match' | 'mismatch' | 'not_provided'; + /** + * The specific exemption claimed for this authorization. + */ + type: AuthenticationExemption.Type; + } - export type ExpiryCheck = 'match' | 'mismatch' | 'not_provided'; + export type CvcCheck = 'match' | 'mismatch' | 'not_provided'; - export interface ThreeDSecure { - /** - * The outcome of the 3D Secure authentication request. - */ - result: ThreeDSecure.Result; - } + export type ExpiryCheck = 'match' | 'mismatch' | 'not_provided'; + + export interface ThreeDSecure { + /** + * The outcome of the 3D Secure authentication request. + */ + result: ThreeDSecure.Result; + } - export namespace AuthenticationExemption { - export type ClaimedBy = 'acquirer' | 'issuer'; + export namespace AuthenticationExemption { + export type ClaimedBy = 'acquirer' | 'issuer'; - export type Type = - | 'low_value_transaction' - | 'transaction_risk_analysis' - | 'unknown'; - } + export type Type = + | 'low_value_transaction' + | 'transaction_risk_analysis' + | 'unknown'; + } - export namespace ThreeDSecure { - export type Result = - | 'attempt_acknowledged' - | 'authenticated' - | 'failed' - | 'required'; - } + export namespace ThreeDSecure { + export type Result = + | 'attempt_acknowledged' + | 'authenticated' + | 'failed' + | 'required'; } } } diff --git a/src/resources/Issuing/Cardholders.ts b/src/resources/Issuing/Cardholders.ts index 63716e3a2f..4a287f26c7 100644 --- a/src/resources/Issuing/Cardholders.ts +++ b/src/resources/Issuing/Cardholders.ts @@ -86,12 +86,12 @@ export interface Cardholder { */ object: 'issuing.cardholder'; - billing: Issuing.Cardholder.Billing; + billing: Cardholder.Billing; /** * Additional information about a `company` cardholder. */ - company: Issuing.Cardholder.Company | null; + company: Cardholder.Company | null; /** * Time at which the object was created. Measured in seconds since the Unix epoch. @@ -106,7 +106,7 @@ export interface Cardholder { /** * Additional information about an `individual` cardholder. */ - individual: Issuing.Cardholder.Individual | null; + individual: Cardholder.Individual | null; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -132,218 +132,827 @@ export interface Cardholder { * The cardholder's preferred locales (languages), ordered by preference. Locales can be `da`, `de`, `en`, `es`, `fr`, `it`, `pl`, or `sv`. * This changes the language of the [3D Secure flow](https://docs.stripe.com/issuing/3d-secure) and one-time password messages sent to the cardholder. */ - preferred_locales: Array | null; + preferred_locales: Array | null; - requirements: Issuing.Cardholder.Requirements; + requirements: Cardholder.Requirements; /** * Rules that control spending across this cardholder's cards. Refer to our [documentation](https://docs.stripe.com/issuing/controls/spending-controls) for more details. */ - spending_controls: Issuing.Cardholder.SpendingControls | null; + spending_controls: Cardholder.SpendingControls | null; /** * Specifies whether to permit authorizations on this cardholder's cards. */ - status: Issuing.Cardholder.Status; + status: Cardholder.Status; /** * One of `individual` or `company`. See [Choose a cardholder type](https://docs.stripe.com/issuing/other/choose-cardholder) for more details. */ - type: Issuing.Cardholder.Type; + type: Cardholder.Type; } -export namespace Issuing { - export namespace Cardholder { - export interface Billing { - address: Address; - } +export namespace Cardholder { + export interface Billing { + address: Address; + } - export interface Company { - /** - * Whether the company's business ID number was provided. - */ - tax_id_provided: boolean; - } + export interface Company { + /** + * Whether the company's business ID number was provided. + */ + tax_id_provided: boolean; + } - export interface Individual { - /** - * Information related to the card_issuing program for this cardholder. - */ - card_issuing?: Individual.CardIssuing | null; + export interface Individual { + /** + * Information related to the card_issuing program for this cardholder. + */ + card_issuing?: Individual.CardIssuing | null; - /** - * The date of birth of this cardholder. - */ - dob: Individual.Dob | null; + /** + * The date of birth of this cardholder. + */ + dob: Individual.Dob | null; - /** - * The first name of this cardholder. Required before activating Cards. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters. - */ - first_name: string | null; + /** + * The first name of this cardholder. Required before activating Cards. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters. + */ + first_name: string | null; - /** - * The last name of this cardholder. Required before activating Cards. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters. - */ - last_name: string | null; + /** + * The last name of this cardholder. Required before activating Cards. This field cannot contain any numbers, special characters (except periods, commas, hyphens, spaces and apostrophes) or non-latin letters. + */ + last_name: string | null; - /** - * Government-issued ID document for this cardholder. - */ - verification: Individual.Verification | null; - } + /** + * Government-issued ID document for this cardholder. + */ + verification: Individual.Verification | null; + } - export type PreferredLocale = 'de' | 'en' | 'es' | 'fr' | 'it'; + export type PreferredLocale = 'de' | 'en' | 'es' | 'fr' | 'it'; - export interface Requirements { - /** - * If `disabled_reason` is present, all cards will decline authorizations with `cardholder_verification_required` reason. - */ - disabled_reason: Requirements.DisabledReason | null; + export interface Requirements { + /** + * If `disabled_reason` is present, all cards will decline authorizations with `cardholder_verification_required` reason. + */ + disabled_reason: Requirements.DisabledReason | null; - /** - * Array of fields that need to be collected in order to verify and re-enable the cardholder. - */ - past_due: Array | null; - } + /** + * Array of fields that need to be collected in order to verify and re-enable the cardholder. + */ + past_due: Array | null; + } - export interface SpendingControls { - /** - * Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control. - */ - allowed_card_presences: Array< - SpendingControls.AllowedCardPresence - > | null; + export interface SpendingControls { + /** + * Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control. + */ + allowed_card_presences: Array | null; - /** - * Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`. - */ - allowed_categories: Array | null; + /** + * Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`. + */ + allowed_categories: Array | null; - /** - * Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control. - */ - allowed_merchant_countries: Array | null; + /** + * Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control. + */ + allowed_merchant_countries: Array | null; + + /** + * Array of card presence statuses from which authorizations will be declined. Possible options are `present`, `not_present`. Cannot be set with `allowed_card_presences`. Provide an empty value to unset this control. + */ + blocked_card_presences: Array | null; + + /** + * Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to decline. All other categories will be allowed. Cannot be set with `allowed_categories`. + */ + blocked_categories: Array | null; + + /** + * Array of strings containing representing countries from which authorizations will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `allowed_merchant_countries`. Provide an empty value to unset this control. + */ + blocked_merchant_countries: Array | null; + + /** + * Limit spending with amount-based rules that apply across this cardholder's cards. + */ + spending_limits: Array | null; + + /** + * Currency of the amounts within `spending_limits`. + */ + spending_limits_currency: string | null; + } + + export type Status = 'active' | 'blocked' | 'inactive'; + export type Type = 'company' | 'individual'; + + export namespace Individual { + export interface CardIssuing { /** - * Array of card presence statuses from which authorizations will be declined. Possible options are `present`, `not_present`. Cannot be set with `allowed_card_presences`. Provide an empty value to unset this control. + * Information about cardholder acceptance of Celtic [Authorized User Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms). Required for cards backed by a Celtic program. */ - blocked_card_presences: Array< - SpendingControls.BlockedCardPresence - > | null; + user_terms_acceptance: CardIssuing.UserTermsAcceptance | null; + } + export interface Dob { /** - * Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to decline. All other categories will be allowed. Cannot be set with `allowed_categories`. + * The day of birth, between 1 and 31. */ - blocked_categories: Array | null; + day: number | null; /** - * Array of strings containing representing countries from which authorizations will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `allowed_merchant_countries`. Provide an empty value to unset this control. + * The month of birth, between 1 and 12. */ - blocked_merchant_countries: Array | null; + month: number | null; /** - * Limit spending with amount-based rules that apply across this cardholder's cards. + * The four-digit year of birth. */ - spending_limits: Array | null; + year: number | null; + } + export interface Verification { /** - * Currency of the amounts within `spending_limits`. + * An identifying document, either a passport or local ID card. */ - spending_limits_currency: string | null; + document: Verification.Document | null; } - export type Status = 'active' | 'blocked' | 'inactive'; - - export type Type = 'company' | 'individual'; - - export namespace Individual { - export interface CardIssuing { + export namespace CardIssuing { + export interface UserTermsAcceptance { /** - * Information about cardholder acceptance of Celtic [Authorized User Terms](https://stripe.com/docs/issuing/cards#accept-authorized-user-terms). Required for cards backed by a Celtic program. + * The Unix timestamp marking when the cardholder accepted the Authorized User Terms. */ - user_terms_acceptance: CardIssuing.UserTermsAcceptance | null; - } + date: number | null; - export interface Dob { /** - * The day of birth, between 1 and 31. + * The IP address from which the cardholder accepted the Authorized User Terms. */ - day: number | null; + ip: string | null; /** - * The month of birth, between 1 and 12. + * The user agent of the browser from which the cardholder accepted the Authorized User Terms. */ - month: number | null; + user_agent: string | null; + } + } + export namespace Verification { + export interface Document { /** - * The four-digit year of birth. + * The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. */ - year: number | null; - } + back: string | File | null; - export interface Verification { /** - * An identifying document, either a passport or local ID card. + * The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. */ - document: Verification.Document | null; + front: string | File | null; } + } + } - export namespace CardIssuing { - export interface UserTermsAcceptance { - /** - * The Unix timestamp marking when the cardholder accepted the Authorized User Terms. - */ - date: number | null; - - /** - * The IP address from which the cardholder accepted the Authorized User Terms. - */ - ip: string | null; - - /** - * The user agent of the browser from which the cardholder accepted the Authorized User Terms. - */ - user_agent: string | null; - } - } + export namespace Requirements { + export type DisabledReason = + | 'listed' + | 'rejected.listed' + | 'requirements.past_due' + | 'under_review'; + + export type PastDue = + | 'company.tax_id' + | 'individual.card_issuing.user_terms_acceptance.date' + | 'individual.card_issuing.user_terms_acceptance.ip' + | 'individual.dob.day' + | 'individual.dob.month' + | 'individual.dob.year' + | 'individual.first_name' + | 'individual.last_name' + | 'individual.verification.document'; + } - export namespace Verification { - export interface Document { - /** - * The back of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. - */ - back: string | File | null; + export namespace SpendingControls { + export type AllowedCardPresence = 'not_present' | 'present'; + + export type AllowedCategory = + | 'ac_refrigeration_repair' + | 'accounting_bookkeeping_services' + | 'advertising_services' + | 'agricultural_cooperative' + | 'airlines_air_carriers' + | 'airports_flying_fields' + | 'ambulance_services' + | 'amusement_parks_carnivals' + | 'antique_reproductions' + | 'antique_shops' + | 'aquariums' + | 'architectural_surveying_services' + | 'art_dealers_and_galleries' + | 'artists_supply_and_craft_shops' + | 'auto_and_home_supply_stores' + | 'auto_body_repair_shops' + | 'auto_paint_shops' + | 'auto_service_shops' + | 'automated_cash_disburse' + | 'automated_fuel_dispensers' + | 'automobile_associations' + | 'automotive_parts_and_accessories_stores' + | 'automotive_tire_stores' + | 'bail_and_bond_payments' + | 'bakeries' + | 'bands_orchestras' + | 'barber_and_beauty_shops' + | 'betting_casino_gambling' + | 'bicycle_shops' + | 'billiard_pool_establishments' + | 'boat_dealers' + | 'boat_rentals_and_leases' + | 'book_stores' + | 'books_periodicals_and_newspapers' + | 'bowling_alleys' + | 'bus_lines' + | 'business_secretarial_schools' + | 'buying_shopping_services' + | 'cable_satellite_and_other_pay_television_and_radio' + | 'camera_and_photographic_supply_stores' + | 'candy_nut_and_confectionery_stores' + | 'car_and_truck_dealers_new_used' + | 'car_and_truck_dealers_used_only' + | 'car_rental_agencies' + | 'car_washes' + | 'carpentry_services' + | 'carpet_upholstery_cleaning' + | 'caterers' + | 'charitable_and_social_service_organizations_fundraising' + | 'chemicals_and_allied_products' + | 'child_care_services' + | 'childrens_and_infants_wear_stores' + | 'chiropodists_podiatrists' + | 'chiropractors' + | 'cigar_stores_and_stands' + | 'civic_social_fraternal_associations' + | 'cleaning_and_maintenance' + | 'clothing_rental' + | 'colleges_universities' + | 'commercial_equipment' + | 'commercial_footwear' + | 'commercial_photography_art_and_graphics' + | 'commuter_transport_and_ferries' + | 'computer_network_services' + | 'computer_programming' + | 'computer_repair' + | 'computer_software_stores' + | 'computers_peripherals_and_software' + | 'concrete_work_services' + | 'construction_materials' + | 'consulting_public_relations' + | 'correspondence_schools' + | 'cosmetic_stores' + | 'counseling_services' + | 'country_clubs' + | 'courier_services' + | 'court_costs' + | 'credit_reporting_agencies' + | 'cruise_lines' + | 'dairy_products_stores' + | 'dance_hall_studios_schools' + | 'dating_escort_services' + | 'dentists_orthodontists' + | 'department_stores' + | 'detective_agencies' + | 'digital_goods_applications' + | 'digital_goods_games' + | 'digital_goods_large_volume' + | 'digital_goods_media' + | 'direct_marketing_catalog_merchant' + | 'direct_marketing_combination_catalog_and_retail_merchant' + | 'direct_marketing_inbound_telemarketing' + | 'direct_marketing_insurance_services' + | 'direct_marketing_other' + | 'direct_marketing_outbound_telemarketing' + | 'direct_marketing_subscription' + | 'direct_marketing_travel' + | 'discount_stores' + | 'doctors' + | 'door_to_door_sales' + | 'drapery_window_covering_and_upholstery_stores' + | 'drinking_places' + | 'drug_stores_and_pharmacies' + | 'drugs_drug_proprietaries_and_druggist_sundries' + | 'dry_cleaners' + | 'durable_goods' + | 'duty_free_stores' + | 'eating_places_restaurants' + | 'educational_services' + | 'electric_razor_stores' + | 'electric_vehicle_charging' + | 'electrical_parts_and_equipment' + | 'electrical_services' + | 'electronics_repair_shops' + | 'electronics_stores' + | 'elementary_secondary_schools' + | 'emergency_services_gcas_visa_use_only' + | 'employment_temp_agencies' + | 'equipment_rental' + | 'exterminating_services' + | 'family_clothing_stores' + | 'fast_food_restaurants' + | 'financial_institutions' + | 'fines_government_administrative_entities' + | 'fireplace_fireplace_screens_and_accessories_stores' + | 'floor_covering_stores' + | 'florists' + | 'florists_supplies_nursery_stock_and_flowers' + | 'freezer_and_locker_meat_provisioners' + | 'fuel_dealers_non_automotive' + | 'funeral_services_crematories' + | 'furniture_home_furnishings_and_equipment_stores_except_appliances' + | 'furniture_repair_refinishing' + | 'furriers_and_fur_shops' + | 'general_services' + | 'gift_card_novelty_and_souvenir_shops' + | 'glass_paint_and_wallpaper_stores' + | 'glassware_crystal_stores' + | 'golf_courses_public' + | 'government_licensed_horse_dog_racing_us_region_only' + | 'government_licensed_online_casions_online_gambling_us_region_only' + | 'government_owned_lotteries_non_us_region' + | 'government_owned_lotteries_us_region_only' + | 'government_services' + | 'grocery_stores_supermarkets' + | 'hardware_equipment_and_supplies' + | 'hardware_stores' + | 'health_and_beauty_spas' + | 'hearing_aids_sales_and_supplies' + | 'heating_plumbing_a_c' + | 'hobby_toy_and_game_shops' + | 'home_supply_warehouse_stores' + | 'hospitals' + | 'hotels_motels_and_resorts' + | 'household_appliance_stores' + | 'industrial_supplies' + | 'information_retrieval_services' + | 'insurance_default' + | 'insurance_underwriting_premiums' + | 'intra_company_purchases' + | 'jewelry_stores_watches_clocks_and_silverware_stores' + | 'landscaping_services' + | 'laundries' + | 'laundry_cleaning_services' + | 'legal_services_attorneys' + | 'luggage_and_leather_goods_stores' + | 'lumber_building_materials_stores' + | 'manual_cash_disburse' + | 'marinas_service_and_supplies' + | 'marketplaces' + | 'masonry_stonework_and_plaster' + | 'massage_parlors' + | 'medical_and_dental_labs' + | 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies' + | 'medical_services' + | 'membership_organizations' + | 'mens_and_boys_clothing_and_accessories_stores' + | 'mens_womens_clothing_stores' + | 'metal_service_centers' + | 'miscellaneous' + | 'miscellaneous_apparel_and_accessory_shops' + | 'miscellaneous_auto_dealers' + | 'miscellaneous_business_services' + | 'miscellaneous_food_stores' + | 'miscellaneous_general_merchandise' + | 'miscellaneous_general_services' + | 'miscellaneous_home_furnishing_specialty_stores' + | 'miscellaneous_publishing_and_printing' + | 'miscellaneous_recreation_services' + | 'miscellaneous_repair_shops' + | 'miscellaneous_specialty_retail' + | 'mobile_home_dealers' + | 'motion_picture_theaters' + | 'motor_freight_carriers_and_trucking' + | 'motor_homes_dealers' + | 'motor_vehicle_supplies_and_new_parts' + | 'motorcycle_shops_and_dealers' + | 'motorcycle_shops_dealers' + | 'music_stores_musical_instruments_pianos_and_sheet_music' + | 'news_dealers_and_newsstands' + | 'non_fi_money_orders' + | 'non_fi_stored_value_card_purchase_load' + | 'nondurable_goods' + | 'nurseries_lawn_and_garden_supply_stores' + | 'nursing_personal_care' + | 'office_and_commercial_furniture' + | 'opticians_eyeglasses' + | 'optometrists_ophthalmologist' + | 'orthopedic_goods_prosthetic_devices' + | 'osteopaths' + | 'package_stores_beer_wine_and_liquor' + | 'paints_varnishes_and_supplies' + | 'parking_lots_garages' + | 'passenger_railways' + | 'pawn_shops' + | 'pet_shops_pet_food_and_supplies' + | 'petroleum_and_petroleum_products' + | 'photo_developing' + | 'photographic_photocopy_microfilm_equipment_and_supplies' + | 'photographic_studios' + | 'picture_video_production' + | 'piece_goods_notions_and_other_dry_goods' + | 'plumbing_heating_equipment_and_supplies' + | 'political_organizations' + | 'postal_services_government_only' + | 'precious_stones_and_metals_watches_and_jewelry' + | 'professional_services' + | 'public_warehousing_and_storage' + | 'quick_copy_repro_and_blueprint' + | 'railroads' + | 'real_estate_agents_and_managers_rentals' + | 'record_stores' + | 'recreational_vehicle_rentals' + | 'religious_goods_stores' + | 'religious_organizations' + | 'roofing_siding_sheet_metal' + | 'secretarial_support_services' + | 'security_brokers_dealers' + | 'service_stations' + | 'sewing_needlework_fabric_and_piece_goods_stores' + | 'shoe_repair_hat_cleaning' + | 'shoe_stores' + | 'small_appliance_repair' + | 'snowmobile_dealers' + | 'special_trade_services' + | 'specialty_cleaning' + | 'sporting_goods_stores' + | 'sporting_recreation_camps' + | 'sports_and_riding_apparel_stores' + | 'sports_clubs_fields' + | 'stamp_and_coin_stores' + | 'stationary_office_supplies_printing_and_writing_paper' + | 'stationery_stores_office_and_school_supply_stores' + | 'swimming_pools_sales' + | 't_ui_travel_germany' + | 'tailors_alterations' + | 'tax_payments_government_agencies' + | 'tax_preparation_services' + | 'taxicabs_limousines' + | 'telecommunication_equipment_and_telephone_sales' + | 'telecommunication_services' + | 'telegraph_services' + | 'tent_and_awning_shops' + | 'testing_laboratories' + | 'theatrical_ticket_agencies' + | 'timeshares' + | 'tire_retreading_and_repair' + | 'tolls_bridge_fees' + | 'tourist_attractions_and_exhibits' + | 'towing_services' + | 'trailer_parks_campgrounds' + | 'transportation_services' + | 'travel_agencies_tour_operators' + | 'truck_stop_iteration' + | 'truck_utility_trailer_rentals' + | 'typesetting_plate_making_and_related_services' + | 'typewriter_stores' + | 'u_s_federal_government_agencies_or_departments' + | 'uniforms_commercial_clothing' + | 'used_merchandise_and_secondhand_stores' + | 'utilities' + | 'variety_stores' + | 'veterinary_services' + | 'video_amusement_game_supplies' + | 'video_game_arcades' + | 'video_tape_rental_stores' + | 'vocational_trade_schools' + | 'watch_jewelry_repair' + | 'welding_repair' + | 'wholesale_clubs' + | 'wig_and_toupee_stores' + | 'wires_money_orders' + | 'womens_accessory_and_specialty_shops' + | 'womens_ready_to_wear_stores' + | 'wrecking_and_salvage_yards'; + + export type BlockedCardPresence = 'not_present' | 'present'; + + export type BlockedCategory = + | 'ac_refrigeration_repair' + | 'accounting_bookkeeping_services' + | 'advertising_services' + | 'agricultural_cooperative' + | 'airlines_air_carriers' + | 'airports_flying_fields' + | 'ambulance_services' + | 'amusement_parks_carnivals' + | 'antique_reproductions' + | 'antique_shops' + | 'aquariums' + | 'architectural_surveying_services' + | 'art_dealers_and_galleries' + | 'artists_supply_and_craft_shops' + | 'auto_and_home_supply_stores' + | 'auto_body_repair_shops' + | 'auto_paint_shops' + | 'auto_service_shops' + | 'automated_cash_disburse' + | 'automated_fuel_dispensers' + | 'automobile_associations' + | 'automotive_parts_and_accessories_stores' + | 'automotive_tire_stores' + | 'bail_and_bond_payments' + | 'bakeries' + | 'bands_orchestras' + | 'barber_and_beauty_shops' + | 'betting_casino_gambling' + | 'bicycle_shops' + | 'billiard_pool_establishments' + | 'boat_dealers' + | 'boat_rentals_and_leases' + | 'book_stores' + | 'books_periodicals_and_newspapers' + | 'bowling_alleys' + | 'bus_lines' + | 'business_secretarial_schools' + | 'buying_shopping_services' + | 'cable_satellite_and_other_pay_television_and_radio' + | 'camera_and_photographic_supply_stores' + | 'candy_nut_and_confectionery_stores' + | 'car_and_truck_dealers_new_used' + | 'car_and_truck_dealers_used_only' + | 'car_rental_agencies' + | 'car_washes' + | 'carpentry_services' + | 'carpet_upholstery_cleaning' + | 'caterers' + | 'charitable_and_social_service_organizations_fundraising' + | 'chemicals_and_allied_products' + | 'child_care_services' + | 'childrens_and_infants_wear_stores' + | 'chiropodists_podiatrists' + | 'chiropractors' + | 'cigar_stores_and_stands' + | 'civic_social_fraternal_associations' + | 'cleaning_and_maintenance' + | 'clothing_rental' + | 'colleges_universities' + | 'commercial_equipment' + | 'commercial_footwear' + | 'commercial_photography_art_and_graphics' + | 'commuter_transport_and_ferries' + | 'computer_network_services' + | 'computer_programming' + | 'computer_repair' + | 'computer_software_stores' + | 'computers_peripherals_and_software' + | 'concrete_work_services' + | 'construction_materials' + | 'consulting_public_relations' + | 'correspondence_schools' + | 'cosmetic_stores' + | 'counseling_services' + | 'country_clubs' + | 'courier_services' + | 'court_costs' + | 'credit_reporting_agencies' + | 'cruise_lines' + | 'dairy_products_stores' + | 'dance_hall_studios_schools' + | 'dating_escort_services' + | 'dentists_orthodontists' + | 'department_stores' + | 'detective_agencies' + | 'digital_goods_applications' + | 'digital_goods_games' + | 'digital_goods_large_volume' + | 'digital_goods_media' + | 'direct_marketing_catalog_merchant' + | 'direct_marketing_combination_catalog_and_retail_merchant' + | 'direct_marketing_inbound_telemarketing' + | 'direct_marketing_insurance_services' + | 'direct_marketing_other' + | 'direct_marketing_outbound_telemarketing' + | 'direct_marketing_subscription' + | 'direct_marketing_travel' + | 'discount_stores' + | 'doctors' + | 'door_to_door_sales' + | 'drapery_window_covering_and_upholstery_stores' + | 'drinking_places' + | 'drug_stores_and_pharmacies' + | 'drugs_drug_proprietaries_and_druggist_sundries' + | 'dry_cleaners' + | 'durable_goods' + | 'duty_free_stores' + | 'eating_places_restaurants' + | 'educational_services' + | 'electric_razor_stores' + | 'electric_vehicle_charging' + | 'electrical_parts_and_equipment' + | 'electrical_services' + | 'electronics_repair_shops' + | 'electronics_stores' + | 'elementary_secondary_schools' + | 'emergency_services_gcas_visa_use_only' + | 'employment_temp_agencies' + | 'equipment_rental' + | 'exterminating_services' + | 'family_clothing_stores' + | 'fast_food_restaurants' + | 'financial_institutions' + | 'fines_government_administrative_entities' + | 'fireplace_fireplace_screens_and_accessories_stores' + | 'floor_covering_stores' + | 'florists' + | 'florists_supplies_nursery_stock_and_flowers' + | 'freezer_and_locker_meat_provisioners' + | 'fuel_dealers_non_automotive' + | 'funeral_services_crematories' + | 'furniture_home_furnishings_and_equipment_stores_except_appliances' + | 'furniture_repair_refinishing' + | 'furriers_and_fur_shops' + | 'general_services' + | 'gift_card_novelty_and_souvenir_shops' + | 'glass_paint_and_wallpaper_stores' + | 'glassware_crystal_stores' + | 'golf_courses_public' + | 'government_licensed_horse_dog_racing_us_region_only' + | 'government_licensed_online_casions_online_gambling_us_region_only' + | 'government_owned_lotteries_non_us_region' + | 'government_owned_lotteries_us_region_only' + | 'government_services' + | 'grocery_stores_supermarkets' + | 'hardware_equipment_and_supplies' + | 'hardware_stores' + | 'health_and_beauty_spas' + | 'hearing_aids_sales_and_supplies' + | 'heating_plumbing_a_c' + | 'hobby_toy_and_game_shops' + | 'home_supply_warehouse_stores' + | 'hospitals' + | 'hotels_motels_and_resorts' + | 'household_appliance_stores' + | 'industrial_supplies' + | 'information_retrieval_services' + | 'insurance_default' + | 'insurance_underwriting_premiums' + | 'intra_company_purchases' + | 'jewelry_stores_watches_clocks_and_silverware_stores' + | 'landscaping_services' + | 'laundries' + | 'laundry_cleaning_services' + | 'legal_services_attorneys' + | 'luggage_and_leather_goods_stores' + | 'lumber_building_materials_stores' + | 'manual_cash_disburse' + | 'marinas_service_and_supplies' + | 'marketplaces' + | 'masonry_stonework_and_plaster' + | 'massage_parlors' + | 'medical_and_dental_labs' + | 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies' + | 'medical_services' + | 'membership_organizations' + | 'mens_and_boys_clothing_and_accessories_stores' + | 'mens_womens_clothing_stores' + | 'metal_service_centers' + | 'miscellaneous' + | 'miscellaneous_apparel_and_accessory_shops' + | 'miscellaneous_auto_dealers' + | 'miscellaneous_business_services' + | 'miscellaneous_food_stores' + | 'miscellaneous_general_merchandise' + | 'miscellaneous_general_services' + | 'miscellaneous_home_furnishing_specialty_stores' + | 'miscellaneous_publishing_and_printing' + | 'miscellaneous_recreation_services' + | 'miscellaneous_repair_shops' + | 'miscellaneous_specialty_retail' + | 'mobile_home_dealers' + | 'motion_picture_theaters' + | 'motor_freight_carriers_and_trucking' + | 'motor_homes_dealers' + | 'motor_vehicle_supplies_and_new_parts' + | 'motorcycle_shops_and_dealers' + | 'motorcycle_shops_dealers' + | 'music_stores_musical_instruments_pianos_and_sheet_music' + | 'news_dealers_and_newsstands' + | 'non_fi_money_orders' + | 'non_fi_stored_value_card_purchase_load' + | 'nondurable_goods' + | 'nurseries_lawn_and_garden_supply_stores' + | 'nursing_personal_care' + | 'office_and_commercial_furniture' + | 'opticians_eyeglasses' + | 'optometrists_ophthalmologist' + | 'orthopedic_goods_prosthetic_devices' + | 'osteopaths' + | 'package_stores_beer_wine_and_liquor' + | 'paints_varnishes_and_supplies' + | 'parking_lots_garages' + | 'passenger_railways' + | 'pawn_shops' + | 'pet_shops_pet_food_and_supplies' + | 'petroleum_and_petroleum_products' + | 'photo_developing' + | 'photographic_photocopy_microfilm_equipment_and_supplies' + | 'photographic_studios' + | 'picture_video_production' + | 'piece_goods_notions_and_other_dry_goods' + | 'plumbing_heating_equipment_and_supplies' + | 'political_organizations' + | 'postal_services_government_only' + | 'precious_stones_and_metals_watches_and_jewelry' + | 'professional_services' + | 'public_warehousing_and_storage' + | 'quick_copy_repro_and_blueprint' + | 'railroads' + | 'real_estate_agents_and_managers_rentals' + | 'record_stores' + | 'recreational_vehicle_rentals' + | 'religious_goods_stores' + | 'religious_organizations' + | 'roofing_siding_sheet_metal' + | 'secretarial_support_services' + | 'security_brokers_dealers' + | 'service_stations' + | 'sewing_needlework_fabric_and_piece_goods_stores' + | 'shoe_repair_hat_cleaning' + | 'shoe_stores' + | 'small_appliance_repair' + | 'snowmobile_dealers' + | 'special_trade_services' + | 'specialty_cleaning' + | 'sporting_goods_stores' + | 'sporting_recreation_camps' + | 'sports_and_riding_apparel_stores' + | 'sports_clubs_fields' + | 'stamp_and_coin_stores' + | 'stationary_office_supplies_printing_and_writing_paper' + | 'stationery_stores_office_and_school_supply_stores' + | 'swimming_pools_sales' + | 't_ui_travel_germany' + | 'tailors_alterations' + | 'tax_payments_government_agencies' + | 'tax_preparation_services' + | 'taxicabs_limousines' + | 'telecommunication_equipment_and_telephone_sales' + | 'telecommunication_services' + | 'telegraph_services' + | 'tent_and_awning_shops' + | 'testing_laboratories' + | 'theatrical_ticket_agencies' + | 'timeshares' + | 'tire_retreading_and_repair' + | 'tolls_bridge_fees' + | 'tourist_attractions_and_exhibits' + | 'towing_services' + | 'trailer_parks_campgrounds' + | 'transportation_services' + | 'travel_agencies_tour_operators' + | 'truck_stop_iteration' + | 'truck_utility_trailer_rentals' + | 'typesetting_plate_making_and_related_services' + | 'typewriter_stores' + | 'u_s_federal_government_agencies_or_departments' + | 'uniforms_commercial_clothing' + | 'used_merchandise_and_secondhand_stores' + | 'utilities' + | 'variety_stores' + | 'veterinary_services' + | 'video_amusement_game_supplies' + | 'video_game_arcades' + | 'video_tape_rental_stores' + | 'vocational_trade_schools' + | 'watch_jewelry_repair' + | 'welding_repair' + | 'wholesale_clubs' + | 'wig_and_toupee_stores' + | 'wires_money_orders' + | 'womens_accessory_and_specialty_shops' + | 'womens_ready_to_wear_stores' + | 'wrecking_and_salvage_yards'; + + export interface SpendingLimit { + /** + * Maximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + */ + amount: number; - /** - * The front of a document returned by a [file upload](https://api.stripe.com#create_file) with a `purpose` value of `identity_document`. - */ - front: string | File | null; - } - } - } + /** + * Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories. + */ + categories: Array | null; - export namespace Requirements { - export type DisabledReason = - | 'listed' - | 'rejected.listed' - | 'requirements.past_due' - | 'under_review'; - - export type PastDue = - | 'company.tax_id' - | 'individual.card_issuing.user_terms_acceptance.date' - | 'individual.card_issuing.user_terms_acceptance.ip' - | 'individual.dob.day' - | 'individual.dob.month' - | 'individual.dob.year' - | 'individual.first_name' - | 'individual.last_name' - | 'individual.verification.document'; + /** + * Interval (or event) to which the amount applies. + */ + interval: SpendingLimit.Interval; } - export namespace SpendingControls { - export type AllowedCardPresence = 'not_present' | 'present'; - - export type AllowedCategory = + export namespace SpendingLimit { + export type Category = | 'ac_refrigeration_repair' | 'accounting_bookkeeping_services' | 'advertising_services' @@ -640,628 +1249,13 @@ export namespace Issuing { | 'womens_ready_to_wear_stores' | 'wrecking_and_salvage_yards'; - export type BlockedCardPresence = 'not_present' | 'present'; - - export type BlockedCategory = - | 'ac_refrigeration_repair' - | 'accounting_bookkeeping_services' - | 'advertising_services' - | 'agricultural_cooperative' - | 'airlines_air_carriers' - | 'airports_flying_fields' - | 'ambulance_services' - | 'amusement_parks_carnivals' - | 'antique_reproductions' - | 'antique_shops' - | 'aquariums' - | 'architectural_surveying_services' - | 'art_dealers_and_galleries' - | 'artists_supply_and_craft_shops' - | 'auto_and_home_supply_stores' - | 'auto_body_repair_shops' - | 'auto_paint_shops' - | 'auto_service_shops' - | 'automated_cash_disburse' - | 'automated_fuel_dispensers' - | 'automobile_associations' - | 'automotive_parts_and_accessories_stores' - | 'automotive_tire_stores' - | 'bail_and_bond_payments' - | 'bakeries' - | 'bands_orchestras' - | 'barber_and_beauty_shops' - | 'betting_casino_gambling' - | 'bicycle_shops' - | 'billiard_pool_establishments' - | 'boat_dealers' - | 'boat_rentals_and_leases' - | 'book_stores' - | 'books_periodicals_and_newspapers' - | 'bowling_alleys' - | 'bus_lines' - | 'business_secretarial_schools' - | 'buying_shopping_services' - | 'cable_satellite_and_other_pay_television_and_radio' - | 'camera_and_photographic_supply_stores' - | 'candy_nut_and_confectionery_stores' - | 'car_and_truck_dealers_new_used' - | 'car_and_truck_dealers_used_only' - | 'car_rental_agencies' - | 'car_washes' - | 'carpentry_services' - | 'carpet_upholstery_cleaning' - | 'caterers' - | 'charitable_and_social_service_organizations_fundraising' - | 'chemicals_and_allied_products' - | 'child_care_services' - | 'childrens_and_infants_wear_stores' - | 'chiropodists_podiatrists' - | 'chiropractors' - | 'cigar_stores_and_stands' - | 'civic_social_fraternal_associations' - | 'cleaning_and_maintenance' - | 'clothing_rental' - | 'colleges_universities' - | 'commercial_equipment' - | 'commercial_footwear' - | 'commercial_photography_art_and_graphics' - | 'commuter_transport_and_ferries' - | 'computer_network_services' - | 'computer_programming' - | 'computer_repair' - | 'computer_software_stores' - | 'computers_peripherals_and_software' - | 'concrete_work_services' - | 'construction_materials' - | 'consulting_public_relations' - | 'correspondence_schools' - | 'cosmetic_stores' - | 'counseling_services' - | 'country_clubs' - | 'courier_services' - | 'court_costs' - | 'credit_reporting_agencies' - | 'cruise_lines' - | 'dairy_products_stores' - | 'dance_hall_studios_schools' - | 'dating_escort_services' - | 'dentists_orthodontists' - | 'department_stores' - | 'detective_agencies' - | 'digital_goods_applications' - | 'digital_goods_games' - | 'digital_goods_large_volume' - | 'digital_goods_media' - | 'direct_marketing_catalog_merchant' - | 'direct_marketing_combination_catalog_and_retail_merchant' - | 'direct_marketing_inbound_telemarketing' - | 'direct_marketing_insurance_services' - | 'direct_marketing_other' - | 'direct_marketing_outbound_telemarketing' - | 'direct_marketing_subscription' - | 'direct_marketing_travel' - | 'discount_stores' - | 'doctors' - | 'door_to_door_sales' - | 'drapery_window_covering_and_upholstery_stores' - | 'drinking_places' - | 'drug_stores_and_pharmacies' - | 'drugs_drug_proprietaries_and_druggist_sundries' - | 'dry_cleaners' - | 'durable_goods' - | 'duty_free_stores' - | 'eating_places_restaurants' - | 'educational_services' - | 'electric_razor_stores' - | 'electric_vehicle_charging' - | 'electrical_parts_and_equipment' - | 'electrical_services' - | 'electronics_repair_shops' - | 'electronics_stores' - | 'elementary_secondary_schools' - | 'emergency_services_gcas_visa_use_only' - | 'employment_temp_agencies' - | 'equipment_rental' - | 'exterminating_services' - | 'family_clothing_stores' - | 'fast_food_restaurants' - | 'financial_institutions' - | 'fines_government_administrative_entities' - | 'fireplace_fireplace_screens_and_accessories_stores' - | 'floor_covering_stores' - | 'florists' - | 'florists_supplies_nursery_stock_and_flowers' - | 'freezer_and_locker_meat_provisioners' - | 'fuel_dealers_non_automotive' - | 'funeral_services_crematories' - | 'furniture_home_furnishings_and_equipment_stores_except_appliances' - | 'furniture_repair_refinishing' - | 'furriers_and_fur_shops' - | 'general_services' - | 'gift_card_novelty_and_souvenir_shops' - | 'glass_paint_and_wallpaper_stores' - | 'glassware_crystal_stores' - | 'golf_courses_public' - | 'government_licensed_horse_dog_racing_us_region_only' - | 'government_licensed_online_casions_online_gambling_us_region_only' - | 'government_owned_lotteries_non_us_region' - | 'government_owned_lotteries_us_region_only' - | 'government_services' - | 'grocery_stores_supermarkets' - | 'hardware_equipment_and_supplies' - | 'hardware_stores' - | 'health_and_beauty_spas' - | 'hearing_aids_sales_and_supplies' - | 'heating_plumbing_a_c' - | 'hobby_toy_and_game_shops' - | 'home_supply_warehouse_stores' - | 'hospitals' - | 'hotels_motels_and_resorts' - | 'household_appliance_stores' - | 'industrial_supplies' - | 'information_retrieval_services' - | 'insurance_default' - | 'insurance_underwriting_premiums' - | 'intra_company_purchases' - | 'jewelry_stores_watches_clocks_and_silverware_stores' - | 'landscaping_services' - | 'laundries' - | 'laundry_cleaning_services' - | 'legal_services_attorneys' - | 'luggage_and_leather_goods_stores' - | 'lumber_building_materials_stores' - | 'manual_cash_disburse' - | 'marinas_service_and_supplies' - | 'marketplaces' - | 'masonry_stonework_and_plaster' - | 'massage_parlors' - | 'medical_and_dental_labs' - | 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies' - | 'medical_services' - | 'membership_organizations' - | 'mens_and_boys_clothing_and_accessories_stores' - | 'mens_womens_clothing_stores' - | 'metal_service_centers' - | 'miscellaneous' - | 'miscellaneous_apparel_and_accessory_shops' - | 'miscellaneous_auto_dealers' - | 'miscellaneous_business_services' - | 'miscellaneous_food_stores' - | 'miscellaneous_general_merchandise' - | 'miscellaneous_general_services' - | 'miscellaneous_home_furnishing_specialty_stores' - | 'miscellaneous_publishing_and_printing' - | 'miscellaneous_recreation_services' - | 'miscellaneous_repair_shops' - | 'miscellaneous_specialty_retail' - | 'mobile_home_dealers' - | 'motion_picture_theaters' - | 'motor_freight_carriers_and_trucking' - | 'motor_homes_dealers' - | 'motor_vehicle_supplies_and_new_parts' - | 'motorcycle_shops_and_dealers' - | 'motorcycle_shops_dealers' - | 'music_stores_musical_instruments_pianos_and_sheet_music' - | 'news_dealers_and_newsstands' - | 'non_fi_money_orders' - | 'non_fi_stored_value_card_purchase_load' - | 'nondurable_goods' - | 'nurseries_lawn_and_garden_supply_stores' - | 'nursing_personal_care' - | 'office_and_commercial_furniture' - | 'opticians_eyeglasses' - | 'optometrists_ophthalmologist' - | 'orthopedic_goods_prosthetic_devices' - | 'osteopaths' - | 'package_stores_beer_wine_and_liquor' - | 'paints_varnishes_and_supplies' - | 'parking_lots_garages' - | 'passenger_railways' - | 'pawn_shops' - | 'pet_shops_pet_food_and_supplies' - | 'petroleum_and_petroleum_products' - | 'photo_developing' - | 'photographic_photocopy_microfilm_equipment_and_supplies' - | 'photographic_studios' - | 'picture_video_production' - | 'piece_goods_notions_and_other_dry_goods' - | 'plumbing_heating_equipment_and_supplies' - | 'political_organizations' - | 'postal_services_government_only' - | 'precious_stones_and_metals_watches_and_jewelry' - | 'professional_services' - | 'public_warehousing_and_storage' - | 'quick_copy_repro_and_blueprint' - | 'railroads' - | 'real_estate_agents_and_managers_rentals' - | 'record_stores' - | 'recreational_vehicle_rentals' - | 'religious_goods_stores' - | 'religious_organizations' - | 'roofing_siding_sheet_metal' - | 'secretarial_support_services' - | 'security_brokers_dealers' - | 'service_stations' - | 'sewing_needlework_fabric_and_piece_goods_stores' - | 'shoe_repair_hat_cleaning' - | 'shoe_stores' - | 'small_appliance_repair' - | 'snowmobile_dealers' - | 'special_trade_services' - | 'specialty_cleaning' - | 'sporting_goods_stores' - | 'sporting_recreation_camps' - | 'sports_and_riding_apparel_stores' - | 'sports_clubs_fields' - | 'stamp_and_coin_stores' - | 'stationary_office_supplies_printing_and_writing_paper' - | 'stationery_stores_office_and_school_supply_stores' - | 'swimming_pools_sales' - | 't_ui_travel_germany' - | 'tailors_alterations' - | 'tax_payments_government_agencies' - | 'tax_preparation_services' - | 'taxicabs_limousines' - | 'telecommunication_equipment_and_telephone_sales' - | 'telecommunication_services' - | 'telegraph_services' - | 'tent_and_awning_shops' - | 'testing_laboratories' - | 'theatrical_ticket_agencies' - | 'timeshares' - | 'tire_retreading_and_repair' - | 'tolls_bridge_fees' - | 'tourist_attractions_and_exhibits' - | 'towing_services' - | 'trailer_parks_campgrounds' - | 'transportation_services' - | 'travel_agencies_tour_operators' - | 'truck_stop_iteration' - | 'truck_utility_trailer_rentals' - | 'typesetting_plate_making_and_related_services' - | 'typewriter_stores' - | 'u_s_federal_government_agencies_or_departments' - | 'uniforms_commercial_clothing' - | 'used_merchandise_and_secondhand_stores' - | 'utilities' - | 'variety_stores' - | 'veterinary_services' - | 'video_amusement_game_supplies' - | 'video_game_arcades' - | 'video_tape_rental_stores' - | 'vocational_trade_schools' - | 'watch_jewelry_repair' - | 'welding_repair' - | 'wholesale_clubs' - | 'wig_and_toupee_stores' - | 'wires_money_orders' - | 'womens_accessory_and_specialty_shops' - | 'womens_ready_to_wear_stores' - | 'wrecking_and_salvage_yards'; - - export interface SpendingLimit { - /** - * Maximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). - */ - amount: number; - - /** - * Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories. - */ - categories: Array | null; - - /** - * Interval (or event) to which the amount applies. - */ - interval: SpendingLimit.Interval; - } - - export namespace SpendingLimit { - export type Category = - | 'ac_refrigeration_repair' - | 'accounting_bookkeeping_services' - | 'advertising_services' - | 'agricultural_cooperative' - | 'airlines_air_carriers' - | 'airports_flying_fields' - | 'ambulance_services' - | 'amusement_parks_carnivals' - | 'antique_reproductions' - | 'antique_shops' - | 'aquariums' - | 'architectural_surveying_services' - | 'art_dealers_and_galleries' - | 'artists_supply_and_craft_shops' - | 'auto_and_home_supply_stores' - | 'auto_body_repair_shops' - | 'auto_paint_shops' - | 'auto_service_shops' - | 'automated_cash_disburse' - | 'automated_fuel_dispensers' - | 'automobile_associations' - | 'automotive_parts_and_accessories_stores' - | 'automotive_tire_stores' - | 'bail_and_bond_payments' - | 'bakeries' - | 'bands_orchestras' - | 'barber_and_beauty_shops' - | 'betting_casino_gambling' - | 'bicycle_shops' - | 'billiard_pool_establishments' - | 'boat_dealers' - | 'boat_rentals_and_leases' - | 'book_stores' - | 'books_periodicals_and_newspapers' - | 'bowling_alleys' - | 'bus_lines' - | 'business_secretarial_schools' - | 'buying_shopping_services' - | 'cable_satellite_and_other_pay_television_and_radio' - | 'camera_and_photographic_supply_stores' - | 'candy_nut_and_confectionery_stores' - | 'car_and_truck_dealers_new_used' - | 'car_and_truck_dealers_used_only' - | 'car_rental_agencies' - | 'car_washes' - | 'carpentry_services' - | 'carpet_upholstery_cleaning' - | 'caterers' - | 'charitable_and_social_service_organizations_fundraising' - | 'chemicals_and_allied_products' - | 'child_care_services' - | 'childrens_and_infants_wear_stores' - | 'chiropodists_podiatrists' - | 'chiropractors' - | 'cigar_stores_and_stands' - | 'civic_social_fraternal_associations' - | 'cleaning_and_maintenance' - | 'clothing_rental' - | 'colleges_universities' - | 'commercial_equipment' - | 'commercial_footwear' - | 'commercial_photography_art_and_graphics' - | 'commuter_transport_and_ferries' - | 'computer_network_services' - | 'computer_programming' - | 'computer_repair' - | 'computer_software_stores' - | 'computers_peripherals_and_software' - | 'concrete_work_services' - | 'construction_materials' - | 'consulting_public_relations' - | 'correspondence_schools' - | 'cosmetic_stores' - | 'counseling_services' - | 'country_clubs' - | 'courier_services' - | 'court_costs' - | 'credit_reporting_agencies' - | 'cruise_lines' - | 'dairy_products_stores' - | 'dance_hall_studios_schools' - | 'dating_escort_services' - | 'dentists_orthodontists' - | 'department_stores' - | 'detective_agencies' - | 'digital_goods_applications' - | 'digital_goods_games' - | 'digital_goods_large_volume' - | 'digital_goods_media' - | 'direct_marketing_catalog_merchant' - | 'direct_marketing_combination_catalog_and_retail_merchant' - | 'direct_marketing_inbound_telemarketing' - | 'direct_marketing_insurance_services' - | 'direct_marketing_other' - | 'direct_marketing_outbound_telemarketing' - | 'direct_marketing_subscription' - | 'direct_marketing_travel' - | 'discount_stores' - | 'doctors' - | 'door_to_door_sales' - | 'drapery_window_covering_and_upholstery_stores' - | 'drinking_places' - | 'drug_stores_and_pharmacies' - | 'drugs_drug_proprietaries_and_druggist_sundries' - | 'dry_cleaners' - | 'durable_goods' - | 'duty_free_stores' - | 'eating_places_restaurants' - | 'educational_services' - | 'electric_razor_stores' - | 'electric_vehicle_charging' - | 'electrical_parts_and_equipment' - | 'electrical_services' - | 'electronics_repair_shops' - | 'electronics_stores' - | 'elementary_secondary_schools' - | 'emergency_services_gcas_visa_use_only' - | 'employment_temp_agencies' - | 'equipment_rental' - | 'exterminating_services' - | 'family_clothing_stores' - | 'fast_food_restaurants' - | 'financial_institutions' - | 'fines_government_administrative_entities' - | 'fireplace_fireplace_screens_and_accessories_stores' - | 'floor_covering_stores' - | 'florists' - | 'florists_supplies_nursery_stock_and_flowers' - | 'freezer_and_locker_meat_provisioners' - | 'fuel_dealers_non_automotive' - | 'funeral_services_crematories' - | 'furniture_home_furnishings_and_equipment_stores_except_appliances' - | 'furniture_repair_refinishing' - | 'furriers_and_fur_shops' - | 'general_services' - | 'gift_card_novelty_and_souvenir_shops' - | 'glass_paint_and_wallpaper_stores' - | 'glassware_crystal_stores' - | 'golf_courses_public' - | 'government_licensed_horse_dog_racing_us_region_only' - | 'government_licensed_online_casions_online_gambling_us_region_only' - | 'government_owned_lotteries_non_us_region' - | 'government_owned_lotteries_us_region_only' - | 'government_services' - | 'grocery_stores_supermarkets' - | 'hardware_equipment_and_supplies' - | 'hardware_stores' - | 'health_and_beauty_spas' - | 'hearing_aids_sales_and_supplies' - | 'heating_plumbing_a_c' - | 'hobby_toy_and_game_shops' - | 'home_supply_warehouse_stores' - | 'hospitals' - | 'hotels_motels_and_resorts' - | 'household_appliance_stores' - | 'industrial_supplies' - | 'information_retrieval_services' - | 'insurance_default' - | 'insurance_underwriting_premiums' - | 'intra_company_purchases' - | 'jewelry_stores_watches_clocks_and_silverware_stores' - | 'landscaping_services' - | 'laundries' - | 'laundry_cleaning_services' - | 'legal_services_attorneys' - | 'luggage_and_leather_goods_stores' - | 'lumber_building_materials_stores' - | 'manual_cash_disburse' - | 'marinas_service_and_supplies' - | 'marketplaces' - | 'masonry_stonework_and_plaster' - | 'massage_parlors' - | 'medical_and_dental_labs' - | 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies' - | 'medical_services' - | 'membership_organizations' - | 'mens_and_boys_clothing_and_accessories_stores' - | 'mens_womens_clothing_stores' - | 'metal_service_centers' - | 'miscellaneous' - | 'miscellaneous_apparel_and_accessory_shops' - | 'miscellaneous_auto_dealers' - | 'miscellaneous_business_services' - | 'miscellaneous_food_stores' - | 'miscellaneous_general_merchandise' - | 'miscellaneous_general_services' - | 'miscellaneous_home_furnishing_specialty_stores' - | 'miscellaneous_publishing_and_printing' - | 'miscellaneous_recreation_services' - | 'miscellaneous_repair_shops' - | 'miscellaneous_specialty_retail' - | 'mobile_home_dealers' - | 'motion_picture_theaters' - | 'motor_freight_carriers_and_trucking' - | 'motor_homes_dealers' - | 'motor_vehicle_supplies_and_new_parts' - | 'motorcycle_shops_and_dealers' - | 'motorcycle_shops_dealers' - | 'music_stores_musical_instruments_pianos_and_sheet_music' - | 'news_dealers_and_newsstands' - | 'non_fi_money_orders' - | 'non_fi_stored_value_card_purchase_load' - | 'nondurable_goods' - | 'nurseries_lawn_and_garden_supply_stores' - | 'nursing_personal_care' - | 'office_and_commercial_furniture' - | 'opticians_eyeglasses' - | 'optometrists_ophthalmologist' - | 'orthopedic_goods_prosthetic_devices' - | 'osteopaths' - | 'package_stores_beer_wine_and_liquor' - | 'paints_varnishes_and_supplies' - | 'parking_lots_garages' - | 'passenger_railways' - | 'pawn_shops' - | 'pet_shops_pet_food_and_supplies' - | 'petroleum_and_petroleum_products' - | 'photo_developing' - | 'photographic_photocopy_microfilm_equipment_and_supplies' - | 'photographic_studios' - | 'picture_video_production' - | 'piece_goods_notions_and_other_dry_goods' - | 'plumbing_heating_equipment_and_supplies' - | 'political_organizations' - | 'postal_services_government_only' - | 'precious_stones_and_metals_watches_and_jewelry' - | 'professional_services' - | 'public_warehousing_and_storage' - | 'quick_copy_repro_and_blueprint' - | 'railroads' - | 'real_estate_agents_and_managers_rentals' - | 'record_stores' - | 'recreational_vehicle_rentals' - | 'religious_goods_stores' - | 'religious_organizations' - | 'roofing_siding_sheet_metal' - | 'secretarial_support_services' - | 'security_brokers_dealers' - | 'service_stations' - | 'sewing_needlework_fabric_and_piece_goods_stores' - | 'shoe_repair_hat_cleaning' - | 'shoe_stores' - | 'small_appliance_repair' - | 'snowmobile_dealers' - | 'special_trade_services' - | 'specialty_cleaning' - | 'sporting_goods_stores' - | 'sporting_recreation_camps' - | 'sports_and_riding_apparel_stores' - | 'sports_clubs_fields' - | 'stamp_and_coin_stores' - | 'stationary_office_supplies_printing_and_writing_paper' - | 'stationery_stores_office_and_school_supply_stores' - | 'swimming_pools_sales' - | 't_ui_travel_germany' - | 'tailors_alterations' - | 'tax_payments_government_agencies' - | 'tax_preparation_services' - | 'taxicabs_limousines' - | 'telecommunication_equipment_and_telephone_sales' - | 'telecommunication_services' - | 'telegraph_services' - | 'tent_and_awning_shops' - | 'testing_laboratories' - | 'theatrical_ticket_agencies' - | 'timeshares' - | 'tire_retreading_and_repair' - | 'tolls_bridge_fees' - | 'tourist_attractions_and_exhibits' - | 'towing_services' - | 'trailer_parks_campgrounds' - | 'transportation_services' - | 'travel_agencies_tour_operators' - | 'truck_stop_iteration' - | 'truck_utility_trailer_rentals' - | 'typesetting_plate_making_and_related_services' - | 'typewriter_stores' - | 'u_s_federal_government_agencies_or_departments' - | 'uniforms_commercial_clothing' - | 'used_merchandise_and_secondhand_stores' - | 'utilities' - | 'variety_stores' - | 'veterinary_services' - | 'video_amusement_game_supplies' - | 'video_game_arcades' - | 'video_tape_rental_stores' - | 'vocational_trade_schools' - | 'watch_jewelry_repair' - | 'welding_repair' - | 'wholesale_clubs' - | 'wig_and_toupee_stores' - | 'wires_money_orders' - | 'womens_accessory_and_specialty_shops' - | 'womens_ready_to_wear_stores' - | 'wrecking_and_salvage_yards'; - - export type Interval = - | 'all_time' - | 'daily' - | 'monthly' - | 'per_authorization' - | 'weekly' - | 'yearly'; - } + export type Interval = + | 'all_time' + | 'daily' + | 'monthly' + | 'per_authorization' + | 'weekly' + | 'yearly'; } } } diff --git a/src/resources/Issuing/Cards.ts b/src/resources/Issuing/Cards.ts index 2032e0b3c4..9ef5c190e4 100644 --- a/src/resources/Issuing/Cards.ts +++ b/src/resources/Issuing/Cards.ts @@ -89,7 +89,7 @@ export interface Card { /** * The reason why the card was canceled. */ - cancellation_reason: Issuing.Card.CancellationReason | null; + cancellation_reason: Card.CancellationReason | null; /** * An Issuing `Cardholder` object represents an individual or business entity who is [issued](https://docs.stripe.com/issuing) cards. @@ -136,12 +136,12 @@ export interface Card { /** * Stripe's assessment of whether this card's details have been compromised. If this property isn't null, cancel and reissue the card to prevent fraudulent activity risk. */ - latest_fraud_warning: Issuing.Card.LatestFraudWarning | null; + latest_fraud_warning: Card.LatestFraudWarning | null; /** * Rules that control the lifecycle of this card, such as automatic cancellation. Refer to our [documentation](https://docs.stripe.com/issuing/controls/lifecycle-controls) for more details. */ - lifecycle_controls: Issuing.Card.LifecycleControls | null; + lifecycle_controls: Card.LifecycleControls | null; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -176,7 +176,7 @@ export interface Card { /** * The reason why the previous card needed to be replaced. */ - replacement_reason: Issuing.Card.ReplacementReason | null; + replacement_reason: Card.ReplacementReason | null; /** * Text separate from cardholder name, printed on the card. @@ -186,255 +186,864 @@ export interface Card { /** * Where and how the card will be shipped. */ - shipping: Issuing.Card.Shipping | null; + shipping: Card.Shipping | null; - spending_controls: Issuing.Card.SpendingControls; + spending_controls: Card.SpendingControls; /** * Whether authorizations can be approved on this card. May be blocked from activating cards depending on past-due Cardholder requirements. Defaults to `inactive`. */ - status: Issuing.Card.Status; + status: Card.Status; /** * The type of the card. */ - type: Issuing.Card.Type; + type: Card.Type; /** * Information relating to digital wallets (like Apple Pay and Google Pay). */ - wallets: Issuing.Card.Wallets | null; + wallets: Card.Wallets | null; } -export namespace Issuing { - export namespace Card { - export type CancellationReason = - | 'design_rejected' - | 'fulfillment_error' - | 'lost' - | 'stolen'; - - export interface LatestFraudWarning { - /** - * Timestamp of the most recent fraud warning. - */ - started_at: number | null; +export namespace Card { + export type CancellationReason = + | 'design_rejected' + | 'fulfillment_error' + | 'lost' + | 'stolen'; + + export interface LatestFraudWarning { + /** + * Timestamp of the most recent fraud warning. + */ + started_at: number | null; - /** - * The type of fraud warning that most recently took place on this card. This field updates with every new fraud warning, so the value changes over time. If populated, cancel and reissue the card. - */ - type: LatestFraudWarning.Type | null; - } + /** + * The type of fraud warning that most recently took place on this card. This field updates with every new fraud warning, so the value changes over time. If populated, cancel and reissue the card. + */ + type: LatestFraudWarning.Type | null; + } - export interface LifecycleControls { - cancel_after: LifecycleControls.CancelAfter; - } + export interface LifecycleControls { + cancel_after: LifecycleControls.CancelAfter; + } - export type ReplacementReason = - | 'damaged' - | 'expired' - | 'fulfillment_error' - | 'lost' - | 'stolen'; + export type ReplacementReason = + | 'damaged' + | 'expired' + | 'fulfillment_error' + | 'lost' + | 'stolen'; - export interface Shipping { - address: Address; + export interface Shipping { + address: Address; - /** - * Address validation details for the shipment. - */ - address_validation: Shipping.AddressValidation | null; + /** + * Address validation details for the shipment. + */ + address_validation: Shipping.AddressValidation | null; - /** - * The delivery company that shipped a card. - */ - carrier: Shipping.Carrier | null; + /** + * The delivery company that shipped a card. + */ + carrier: Shipping.Carrier | null; - /** - * Additional information that may be required for clearing customs. - */ - customs: Shipping.Customs | null; + /** + * Additional information that may be required for clearing customs. + */ + customs: Shipping.Customs | null; - /** - * A unix timestamp representing a best estimate of when the card will be delivered. - */ - eta: number | null; + /** + * A unix timestamp representing a best estimate of when the card will be delivered. + */ + eta: number | null; - /** - * Recipient name. - */ - name: string; + /** + * Recipient name. + */ + name: string; - /** - * The phone number of the receiver of the shipment. Our courier partners will use this number to contact you in the event of card delivery issues. For individual shipments to the EU/UK, if this field is empty, we will provide them with the phone number provided when the cardholder was initially created. - */ - phone_number: string | null; + /** + * The phone number of the receiver of the shipment. Our courier partners will use this number to contact you in the event of card delivery issues. For individual shipments to the EU/UK, if this field is empty, we will provide them with the phone number provided when the cardholder was initially created. + */ + phone_number: string | null; - /** - * Whether a signature is required for card delivery. This feature is only supported for US users. Standard shipping service does not support signature on delivery. The default value for standard shipping service is false and for express and priority services is true. - */ - require_signature: boolean | null; + /** + * Whether a signature is required for card delivery. This feature is only supported for US users. Standard shipping service does not support signature on delivery. The default value for standard shipping service is false and for express and priority services is true. + */ + require_signature: boolean | null; - /** - * Shipment service, such as `standard` or `express`. - */ - service: Shipping.Service; + /** + * Shipment service, such as `standard` or `express`. + */ + service: Shipping.Service; - /** - * The delivery status of the card. - */ - status: Shipping.Status | null; + /** + * The delivery status of the card. + */ + status: Shipping.Status | null; - /** - * A tracking number for a card shipment. - */ - tracking_number: string | null; + /** + * A tracking number for a card shipment. + */ + tracking_number: string | null; - /** - * A link to the shipping carrier's site where you can view detailed information about a card shipment. - */ - tracking_url: string | null; + /** + * A link to the shipping carrier's site where you can view detailed information about a card shipment. + */ + tracking_url: string | null; - /** - * Packaging options. - */ - type: Shipping.Type; - } + /** + * Packaging options. + */ + type: Shipping.Type; + } - export interface SpendingControls { - /** - * Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control. - */ - allowed_card_presences: Array< - SpendingControls.AllowedCardPresence - > | null; + export interface SpendingControls { + /** + * Array of card presence statuses from which authorizations will be allowed. Possible options are `present`, `not_present`. All other statuses will be blocked. Cannot be set with `blocked_card_presences`. Provide an empty value to unset this control. + */ + allowed_card_presences: Array | null; - /** - * Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`. - */ - allowed_categories: Array | null; + /** + * Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to allow. All other categories will be blocked. Cannot be set with `blocked_categories`. + */ + allowed_categories: Array | null; - /** - * Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control. - */ - allowed_merchant_countries: Array | null; + /** + * Array of strings containing representing countries from which authorizations will be allowed. Authorizations from merchants in all other countries will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `blocked_merchant_countries`. Provide an empty value to unset this control. + */ + allowed_merchant_countries: Array | null; - /** - * Array of card presence statuses from which authorizations will be declined. Possible options are `present`, `not_present`. Cannot be set with `allowed_card_presences`. Provide an empty value to unset this control. - */ - blocked_card_presences: Array< - SpendingControls.BlockedCardPresence - > | null; + /** + * Array of card presence statuses from which authorizations will be declined. Possible options are `present`, `not_present`. Cannot be set with `allowed_card_presences`. Provide an empty value to unset this control. + */ + blocked_card_presences: Array | null; + + /** + * Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to decline. All other categories will be allowed. Cannot be set with `allowed_categories`. + */ + blocked_categories: Array | null; + + /** + * Array of strings containing representing countries from which authorizations will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `allowed_merchant_countries`. Provide an empty value to unset this control. + */ + blocked_merchant_countries: Array | null; + + /** + * Limit spending with amount-based rules that apply across any cards this card replaced (i.e., its `replacement_for` card and _that_ card's `replacement_for` card, up the chain). + */ + spending_limits: Array | null; + + /** + * Currency of the amounts within `spending_limits`. Always the same as the currency of the card. + */ + spending_limits_currency: string | null; + } + + export type Status = 'active' | 'canceled' | 'inactive'; + + export type Type = 'physical' | 'virtual'; + + export interface Wallets { + apple_pay: Wallets.ApplePay; + + google_pay: Wallets.GooglePay; + + /** + * Unique identifier for a card used with digital wallets + */ + primary_account_identifier: string | null; + } + + export namespace LatestFraudWarning { + export type Type = + | 'card_testing_exposure' + | 'fraud_dispute_filed' + | 'third_party_reported' + | 'user_indicated_fraud'; + } + export namespace LifecycleControls { + export interface CancelAfter { /** - * Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) of authorizations to decline. All other categories will be allowed. Cannot be set with `allowed_categories`. + * The card is automatically cancelled when it makes this number of non-zero payment authorizations and transactions. The count includes penny authorizations, but doesn't include non-payment actions, such as authorization advice. */ - blocked_categories: Array | null; + payment_count: number; + } + } + export namespace Shipping { + export interface AddressValidation { /** - * Array of strings containing representing countries from which authorizations will be declined. Country codes should be ISO 3166 alpha-2 country codes (e.g. `US`). Cannot be set with `allowed_merchant_countries`. Provide an empty value to unset this control. + * The address validation capabilities to use. */ - blocked_merchant_countries: Array | null; + mode: AddressValidation.Mode; /** - * Limit spending with amount-based rules that apply across any cards this card replaced (i.e., its `replacement_for` card and _that_ card's `replacement_for` card, up the chain). + * The normalized shipping address. */ - spending_limits: Array | null; + normalized_address: Address | null; /** - * Currency of the amounts within `spending_limits`. Always the same as the currency of the card. + * The validation result for the shipping address. */ - spending_limits_currency: string | null; + result: AddressValidation.Result | null; } - export type Status = 'active' | 'canceled' | 'inactive'; - - export type Type = 'physical' | 'virtual'; - - export interface Wallets { - apple_pay: Wallets.ApplePay; - - google_pay: Wallets.GooglePay; + export type Carrier = 'dhl' | 'fedex' | 'royal_mail' | 'usps'; + export interface Customs { /** - * Unique identifier for a card used with digital wallets + * A registration number used for customs in Europe. See [https://www.gov.uk/eori](https://www.gov.uk/eori) for the UK and [https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en](https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en) for the EU. */ - primary_account_identifier: string | null; - } - - export namespace LatestFraudWarning { - export type Type = - | 'card_testing_exposure' - | 'fraud_dispute_filed' - | 'third_party_reported' - | 'user_indicated_fraud'; + eori_number: string | null; } - export namespace LifecycleControls { - export interface CancelAfter { - /** - * The card is automatically cancelled when it makes this number of non-zero payment authorizations and transactions. The count includes penny authorizations, but doesn't include non-payment actions, such as authorization advice. - */ - payment_count: number; - } + export type Service = 'express' | 'priority' | 'standard'; + + export type Status = + | 'canceled' + | 'delivered' + | 'failure' + | 'pending' + | 'returned' + | 'shipped' + | 'submitted'; + + export type Type = 'bulk' | 'individual'; + + export namespace AddressValidation { + export type Mode = + | 'disabled' + | 'normalization_only' + | 'validation_and_normalization'; + + export type Result = + | 'indeterminate' + | 'likely_deliverable' + | 'likely_undeliverable'; } + } - export namespace Shipping { - export interface AddressValidation { - /** - * The address validation capabilities to use. - */ - mode: AddressValidation.Mode; - - /** - * The normalized shipping address. - */ - normalized_address: Address | null; - - /** - * The validation result for the shipping address. - */ - result: AddressValidation.Result | null; - } - - export type Carrier = 'dhl' | 'fedex' | 'royal_mail' | 'usps'; - - export interface Customs { - /** - * A registration number used for customs in Europe. See [https://www.gov.uk/eori](https://www.gov.uk/eori) for the UK and [https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en](https://ec.europa.eu/taxation_customs/business/customs-procedures-import-and-export/customs-procedures/economic-operators-registration-and-identification-number-eori_en) for the EU. - */ - eori_number: string | null; - } - - export type Service = 'express' | 'priority' | 'standard'; - - export type Status = - | 'canceled' - | 'delivered' - | 'failure' - | 'pending' - | 'returned' - | 'shipped' - | 'submitted'; - - export type Type = 'bulk' | 'individual'; + export namespace SpendingControls { + export type AllowedCardPresence = 'not_present' | 'present'; + + export type AllowedCategory = + | 'ac_refrigeration_repair' + | 'accounting_bookkeeping_services' + | 'advertising_services' + | 'agricultural_cooperative' + | 'airlines_air_carriers' + | 'airports_flying_fields' + | 'ambulance_services' + | 'amusement_parks_carnivals' + | 'antique_reproductions' + | 'antique_shops' + | 'aquariums' + | 'architectural_surveying_services' + | 'art_dealers_and_galleries' + | 'artists_supply_and_craft_shops' + | 'auto_and_home_supply_stores' + | 'auto_body_repair_shops' + | 'auto_paint_shops' + | 'auto_service_shops' + | 'automated_cash_disburse' + | 'automated_fuel_dispensers' + | 'automobile_associations' + | 'automotive_parts_and_accessories_stores' + | 'automotive_tire_stores' + | 'bail_and_bond_payments' + | 'bakeries' + | 'bands_orchestras' + | 'barber_and_beauty_shops' + | 'betting_casino_gambling' + | 'bicycle_shops' + | 'billiard_pool_establishments' + | 'boat_dealers' + | 'boat_rentals_and_leases' + | 'book_stores' + | 'books_periodicals_and_newspapers' + | 'bowling_alleys' + | 'bus_lines' + | 'business_secretarial_schools' + | 'buying_shopping_services' + | 'cable_satellite_and_other_pay_television_and_radio' + | 'camera_and_photographic_supply_stores' + | 'candy_nut_and_confectionery_stores' + | 'car_and_truck_dealers_new_used' + | 'car_and_truck_dealers_used_only' + | 'car_rental_agencies' + | 'car_washes' + | 'carpentry_services' + | 'carpet_upholstery_cleaning' + | 'caterers' + | 'charitable_and_social_service_organizations_fundraising' + | 'chemicals_and_allied_products' + | 'child_care_services' + | 'childrens_and_infants_wear_stores' + | 'chiropodists_podiatrists' + | 'chiropractors' + | 'cigar_stores_and_stands' + | 'civic_social_fraternal_associations' + | 'cleaning_and_maintenance' + | 'clothing_rental' + | 'colleges_universities' + | 'commercial_equipment' + | 'commercial_footwear' + | 'commercial_photography_art_and_graphics' + | 'commuter_transport_and_ferries' + | 'computer_network_services' + | 'computer_programming' + | 'computer_repair' + | 'computer_software_stores' + | 'computers_peripherals_and_software' + | 'concrete_work_services' + | 'construction_materials' + | 'consulting_public_relations' + | 'correspondence_schools' + | 'cosmetic_stores' + | 'counseling_services' + | 'country_clubs' + | 'courier_services' + | 'court_costs' + | 'credit_reporting_agencies' + | 'cruise_lines' + | 'dairy_products_stores' + | 'dance_hall_studios_schools' + | 'dating_escort_services' + | 'dentists_orthodontists' + | 'department_stores' + | 'detective_agencies' + | 'digital_goods_applications' + | 'digital_goods_games' + | 'digital_goods_large_volume' + | 'digital_goods_media' + | 'direct_marketing_catalog_merchant' + | 'direct_marketing_combination_catalog_and_retail_merchant' + | 'direct_marketing_inbound_telemarketing' + | 'direct_marketing_insurance_services' + | 'direct_marketing_other' + | 'direct_marketing_outbound_telemarketing' + | 'direct_marketing_subscription' + | 'direct_marketing_travel' + | 'discount_stores' + | 'doctors' + | 'door_to_door_sales' + | 'drapery_window_covering_and_upholstery_stores' + | 'drinking_places' + | 'drug_stores_and_pharmacies' + | 'drugs_drug_proprietaries_and_druggist_sundries' + | 'dry_cleaners' + | 'durable_goods' + | 'duty_free_stores' + | 'eating_places_restaurants' + | 'educational_services' + | 'electric_razor_stores' + | 'electric_vehicle_charging' + | 'electrical_parts_and_equipment' + | 'electrical_services' + | 'electronics_repair_shops' + | 'electronics_stores' + | 'elementary_secondary_schools' + | 'emergency_services_gcas_visa_use_only' + | 'employment_temp_agencies' + | 'equipment_rental' + | 'exterminating_services' + | 'family_clothing_stores' + | 'fast_food_restaurants' + | 'financial_institutions' + | 'fines_government_administrative_entities' + | 'fireplace_fireplace_screens_and_accessories_stores' + | 'floor_covering_stores' + | 'florists' + | 'florists_supplies_nursery_stock_and_flowers' + | 'freezer_and_locker_meat_provisioners' + | 'fuel_dealers_non_automotive' + | 'funeral_services_crematories' + | 'furniture_home_furnishings_and_equipment_stores_except_appliances' + | 'furniture_repair_refinishing' + | 'furriers_and_fur_shops' + | 'general_services' + | 'gift_card_novelty_and_souvenir_shops' + | 'glass_paint_and_wallpaper_stores' + | 'glassware_crystal_stores' + | 'golf_courses_public' + | 'government_licensed_horse_dog_racing_us_region_only' + | 'government_licensed_online_casions_online_gambling_us_region_only' + | 'government_owned_lotteries_non_us_region' + | 'government_owned_lotteries_us_region_only' + | 'government_services' + | 'grocery_stores_supermarkets' + | 'hardware_equipment_and_supplies' + | 'hardware_stores' + | 'health_and_beauty_spas' + | 'hearing_aids_sales_and_supplies' + | 'heating_plumbing_a_c' + | 'hobby_toy_and_game_shops' + | 'home_supply_warehouse_stores' + | 'hospitals' + | 'hotels_motels_and_resorts' + | 'household_appliance_stores' + | 'industrial_supplies' + | 'information_retrieval_services' + | 'insurance_default' + | 'insurance_underwriting_premiums' + | 'intra_company_purchases' + | 'jewelry_stores_watches_clocks_and_silverware_stores' + | 'landscaping_services' + | 'laundries' + | 'laundry_cleaning_services' + | 'legal_services_attorneys' + | 'luggage_and_leather_goods_stores' + | 'lumber_building_materials_stores' + | 'manual_cash_disburse' + | 'marinas_service_and_supplies' + | 'marketplaces' + | 'masonry_stonework_and_plaster' + | 'massage_parlors' + | 'medical_and_dental_labs' + | 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies' + | 'medical_services' + | 'membership_organizations' + | 'mens_and_boys_clothing_and_accessories_stores' + | 'mens_womens_clothing_stores' + | 'metal_service_centers' + | 'miscellaneous' + | 'miscellaneous_apparel_and_accessory_shops' + | 'miscellaneous_auto_dealers' + | 'miscellaneous_business_services' + | 'miscellaneous_food_stores' + | 'miscellaneous_general_merchandise' + | 'miscellaneous_general_services' + | 'miscellaneous_home_furnishing_specialty_stores' + | 'miscellaneous_publishing_and_printing' + | 'miscellaneous_recreation_services' + | 'miscellaneous_repair_shops' + | 'miscellaneous_specialty_retail' + | 'mobile_home_dealers' + | 'motion_picture_theaters' + | 'motor_freight_carriers_and_trucking' + | 'motor_homes_dealers' + | 'motor_vehicle_supplies_and_new_parts' + | 'motorcycle_shops_and_dealers' + | 'motorcycle_shops_dealers' + | 'music_stores_musical_instruments_pianos_and_sheet_music' + | 'news_dealers_and_newsstands' + | 'non_fi_money_orders' + | 'non_fi_stored_value_card_purchase_load' + | 'nondurable_goods' + | 'nurseries_lawn_and_garden_supply_stores' + | 'nursing_personal_care' + | 'office_and_commercial_furniture' + | 'opticians_eyeglasses' + | 'optometrists_ophthalmologist' + | 'orthopedic_goods_prosthetic_devices' + | 'osteopaths' + | 'package_stores_beer_wine_and_liquor' + | 'paints_varnishes_and_supplies' + | 'parking_lots_garages' + | 'passenger_railways' + | 'pawn_shops' + | 'pet_shops_pet_food_and_supplies' + | 'petroleum_and_petroleum_products' + | 'photo_developing' + | 'photographic_photocopy_microfilm_equipment_and_supplies' + | 'photographic_studios' + | 'picture_video_production' + | 'piece_goods_notions_and_other_dry_goods' + | 'plumbing_heating_equipment_and_supplies' + | 'political_organizations' + | 'postal_services_government_only' + | 'precious_stones_and_metals_watches_and_jewelry' + | 'professional_services' + | 'public_warehousing_and_storage' + | 'quick_copy_repro_and_blueprint' + | 'railroads' + | 'real_estate_agents_and_managers_rentals' + | 'record_stores' + | 'recreational_vehicle_rentals' + | 'religious_goods_stores' + | 'religious_organizations' + | 'roofing_siding_sheet_metal' + | 'secretarial_support_services' + | 'security_brokers_dealers' + | 'service_stations' + | 'sewing_needlework_fabric_and_piece_goods_stores' + | 'shoe_repair_hat_cleaning' + | 'shoe_stores' + | 'small_appliance_repair' + | 'snowmobile_dealers' + | 'special_trade_services' + | 'specialty_cleaning' + | 'sporting_goods_stores' + | 'sporting_recreation_camps' + | 'sports_and_riding_apparel_stores' + | 'sports_clubs_fields' + | 'stamp_and_coin_stores' + | 'stationary_office_supplies_printing_and_writing_paper' + | 'stationery_stores_office_and_school_supply_stores' + | 'swimming_pools_sales' + | 't_ui_travel_germany' + | 'tailors_alterations' + | 'tax_payments_government_agencies' + | 'tax_preparation_services' + | 'taxicabs_limousines' + | 'telecommunication_equipment_and_telephone_sales' + | 'telecommunication_services' + | 'telegraph_services' + | 'tent_and_awning_shops' + | 'testing_laboratories' + | 'theatrical_ticket_agencies' + | 'timeshares' + | 'tire_retreading_and_repair' + | 'tolls_bridge_fees' + | 'tourist_attractions_and_exhibits' + | 'towing_services' + | 'trailer_parks_campgrounds' + | 'transportation_services' + | 'travel_agencies_tour_operators' + | 'truck_stop_iteration' + | 'truck_utility_trailer_rentals' + | 'typesetting_plate_making_and_related_services' + | 'typewriter_stores' + | 'u_s_federal_government_agencies_or_departments' + | 'uniforms_commercial_clothing' + | 'used_merchandise_and_secondhand_stores' + | 'utilities' + | 'variety_stores' + | 'veterinary_services' + | 'video_amusement_game_supplies' + | 'video_game_arcades' + | 'video_tape_rental_stores' + | 'vocational_trade_schools' + | 'watch_jewelry_repair' + | 'welding_repair' + | 'wholesale_clubs' + | 'wig_and_toupee_stores' + | 'wires_money_orders' + | 'womens_accessory_and_specialty_shops' + | 'womens_ready_to_wear_stores' + | 'wrecking_and_salvage_yards'; + + export type BlockedCardPresence = 'not_present' | 'present'; + + export type BlockedCategory = + | 'ac_refrigeration_repair' + | 'accounting_bookkeeping_services' + | 'advertising_services' + | 'agricultural_cooperative' + | 'airlines_air_carriers' + | 'airports_flying_fields' + | 'ambulance_services' + | 'amusement_parks_carnivals' + | 'antique_reproductions' + | 'antique_shops' + | 'aquariums' + | 'architectural_surveying_services' + | 'art_dealers_and_galleries' + | 'artists_supply_and_craft_shops' + | 'auto_and_home_supply_stores' + | 'auto_body_repair_shops' + | 'auto_paint_shops' + | 'auto_service_shops' + | 'automated_cash_disburse' + | 'automated_fuel_dispensers' + | 'automobile_associations' + | 'automotive_parts_and_accessories_stores' + | 'automotive_tire_stores' + | 'bail_and_bond_payments' + | 'bakeries' + | 'bands_orchestras' + | 'barber_and_beauty_shops' + | 'betting_casino_gambling' + | 'bicycle_shops' + | 'billiard_pool_establishments' + | 'boat_dealers' + | 'boat_rentals_and_leases' + | 'book_stores' + | 'books_periodicals_and_newspapers' + | 'bowling_alleys' + | 'bus_lines' + | 'business_secretarial_schools' + | 'buying_shopping_services' + | 'cable_satellite_and_other_pay_television_and_radio' + | 'camera_and_photographic_supply_stores' + | 'candy_nut_and_confectionery_stores' + | 'car_and_truck_dealers_new_used' + | 'car_and_truck_dealers_used_only' + | 'car_rental_agencies' + | 'car_washes' + | 'carpentry_services' + | 'carpet_upholstery_cleaning' + | 'caterers' + | 'charitable_and_social_service_organizations_fundraising' + | 'chemicals_and_allied_products' + | 'child_care_services' + | 'childrens_and_infants_wear_stores' + | 'chiropodists_podiatrists' + | 'chiropractors' + | 'cigar_stores_and_stands' + | 'civic_social_fraternal_associations' + | 'cleaning_and_maintenance' + | 'clothing_rental' + | 'colleges_universities' + | 'commercial_equipment' + | 'commercial_footwear' + | 'commercial_photography_art_and_graphics' + | 'commuter_transport_and_ferries' + | 'computer_network_services' + | 'computer_programming' + | 'computer_repair' + | 'computer_software_stores' + | 'computers_peripherals_and_software' + | 'concrete_work_services' + | 'construction_materials' + | 'consulting_public_relations' + | 'correspondence_schools' + | 'cosmetic_stores' + | 'counseling_services' + | 'country_clubs' + | 'courier_services' + | 'court_costs' + | 'credit_reporting_agencies' + | 'cruise_lines' + | 'dairy_products_stores' + | 'dance_hall_studios_schools' + | 'dating_escort_services' + | 'dentists_orthodontists' + | 'department_stores' + | 'detective_agencies' + | 'digital_goods_applications' + | 'digital_goods_games' + | 'digital_goods_large_volume' + | 'digital_goods_media' + | 'direct_marketing_catalog_merchant' + | 'direct_marketing_combination_catalog_and_retail_merchant' + | 'direct_marketing_inbound_telemarketing' + | 'direct_marketing_insurance_services' + | 'direct_marketing_other' + | 'direct_marketing_outbound_telemarketing' + | 'direct_marketing_subscription' + | 'direct_marketing_travel' + | 'discount_stores' + | 'doctors' + | 'door_to_door_sales' + | 'drapery_window_covering_and_upholstery_stores' + | 'drinking_places' + | 'drug_stores_and_pharmacies' + | 'drugs_drug_proprietaries_and_druggist_sundries' + | 'dry_cleaners' + | 'durable_goods' + | 'duty_free_stores' + | 'eating_places_restaurants' + | 'educational_services' + | 'electric_razor_stores' + | 'electric_vehicle_charging' + | 'electrical_parts_and_equipment' + | 'electrical_services' + | 'electronics_repair_shops' + | 'electronics_stores' + | 'elementary_secondary_schools' + | 'emergency_services_gcas_visa_use_only' + | 'employment_temp_agencies' + | 'equipment_rental' + | 'exterminating_services' + | 'family_clothing_stores' + | 'fast_food_restaurants' + | 'financial_institutions' + | 'fines_government_administrative_entities' + | 'fireplace_fireplace_screens_and_accessories_stores' + | 'floor_covering_stores' + | 'florists' + | 'florists_supplies_nursery_stock_and_flowers' + | 'freezer_and_locker_meat_provisioners' + | 'fuel_dealers_non_automotive' + | 'funeral_services_crematories' + | 'furniture_home_furnishings_and_equipment_stores_except_appliances' + | 'furniture_repair_refinishing' + | 'furriers_and_fur_shops' + | 'general_services' + | 'gift_card_novelty_and_souvenir_shops' + | 'glass_paint_and_wallpaper_stores' + | 'glassware_crystal_stores' + | 'golf_courses_public' + | 'government_licensed_horse_dog_racing_us_region_only' + | 'government_licensed_online_casions_online_gambling_us_region_only' + | 'government_owned_lotteries_non_us_region' + | 'government_owned_lotteries_us_region_only' + | 'government_services' + | 'grocery_stores_supermarkets' + | 'hardware_equipment_and_supplies' + | 'hardware_stores' + | 'health_and_beauty_spas' + | 'hearing_aids_sales_and_supplies' + | 'heating_plumbing_a_c' + | 'hobby_toy_and_game_shops' + | 'home_supply_warehouse_stores' + | 'hospitals' + | 'hotels_motels_and_resorts' + | 'household_appliance_stores' + | 'industrial_supplies' + | 'information_retrieval_services' + | 'insurance_default' + | 'insurance_underwriting_premiums' + | 'intra_company_purchases' + | 'jewelry_stores_watches_clocks_and_silverware_stores' + | 'landscaping_services' + | 'laundries' + | 'laundry_cleaning_services' + | 'legal_services_attorneys' + | 'luggage_and_leather_goods_stores' + | 'lumber_building_materials_stores' + | 'manual_cash_disburse' + | 'marinas_service_and_supplies' + | 'marketplaces' + | 'masonry_stonework_and_plaster' + | 'massage_parlors' + | 'medical_and_dental_labs' + | 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies' + | 'medical_services' + | 'membership_organizations' + | 'mens_and_boys_clothing_and_accessories_stores' + | 'mens_womens_clothing_stores' + | 'metal_service_centers' + | 'miscellaneous' + | 'miscellaneous_apparel_and_accessory_shops' + | 'miscellaneous_auto_dealers' + | 'miscellaneous_business_services' + | 'miscellaneous_food_stores' + | 'miscellaneous_general_merchandise' + | 'miscellaneous_general_services' + | 'miscellaneous_home_furnishing_specialty_stores' + | 'miscellaneous_publishing_and_printing' + | 'miscellaneous_recreation_services' + | 'miscellaneous_repair_shops' + | 'miscellaneous_specialty_retail' + | 'mobile_home_dealers' + | 'motion_picture_theaters' + | 'motor_freight_carriers_and_trucking' + | 'motor_homes_dealers' + | 'motor_vehicle_supplies_and_new_parts' + | 'motorcycle_shops_and_dealers' + | 'motorcycle_shops_dealers' + | 'music_stores_musical_instruments_pianos_and_sheet_music' + | 'news_dealers_and_newsstands' + | 'non_fi_money_orders' + | 'non_fi_stored_value_card_purchase_load' + | 'nondurable_goods' + | 'nurseries_lawn_and_garden_supply_stores' + | 'nursing_personal_care' + | 'office_and_commercial_furniture' + | 'opticians_eyeglasses' + | 'optometrists_ophthalmologist' + | 'orthopedic_goods_prosthetic_devices' + | 'osteopaths' + | 'package_stores_beer_wine_and_liquor' + | 'paints_varnishes_and_supplies' + | 'parking_lots_garages' + | 'passenger_railways' + | 'pawn_shops' + | 'pet_shops_pet_food_and_supplies' + | 'petroleum_and_petroleum_products' + | 'photo_developing' + | 'photographic_photocopy_microfilm_equipment_and_supplies' + | 'photographic_studios' + | 'picture_video_production' + | 'piece_goods_notions_and_other_dry_goods' + | 'plumbing_heating_equipment_and_supplies' + | 'political_organizations' + | 'postal_services_government_only' + | 'precious_stones_and_metals_watches_and_jewelry' + | 'professional_services' + | 'public_warehousing_and_storage' + | 'quick_copy_repro_and_blueprint' + | 'railroads' + | 'real_estate_agents_and_managers_rentals' + | 'record_stores' + | 'recreational_vehicle_rentals' + | 'religious_goods_stores' + | 'religious_organizations' + | 'roofing_siding_sheet_metal' + | 'secretarial_support_services' + | 'security_brokers_dealers' + | 'service_stations' + | 'sewing_needlework_fabric_and_piece_goods_stores' + | 'shoe_repair_hat_cleaning' + | 'shoe_stores' + | 'small_appliance_repair' + | 'snowmobile_dealers' + | 'special_trade_services' + | 'specialty_cleaning' + | 'sporting_goods_stores' + | 'sporting_recreation_camps' + | 'sports_and_riding_apparel_stores' + | 'sports_clubs_fields' + | 'stamp_and_coin_stores' + | 'stationary_office_supplies_printing_and_writing_paper' + | 'stationery_stores_office_and_school_supply_stores' + | 'swimming_pools_sales' + | 't_ui_travel_germany' + | 'tailors_alterations' + | 'tax_payments_government_agencies' + | 'tax_preparation_services' + | 'taxicabs_limousines' + | 'telecommunication_equipment_and_telephone_sales' + | 'telecommunication_services' + | 'telegraph_services' + | 'tent_and_awning_shops' + | 'testing_laboratories' + | 'theatrical_ticket_agencies' + | 'timeshares' + | 'tire_retreading_and_repair' + | 'tolls_bridge_fees' + | 'tourist_attractions_and_exhibits' + | 'towing_services' + | 'trailer_parks_campgrounds' + | 'transportation_services' + | 'travel_agencies_tour_operators' + | 'truck_stop_iteration' + | 'truck_utility_trailer_rentals' + | 'typesetting_plate_making_and_related_services' + | 'typewriter_stores' + | 'u_s_federal_government_agencies_or_departments' + | 'uniforms_commercial_clothing' + | 'used_merchandise_and_secondhand_stores' + | 'utilities' + | 'variety_stores' + | 'veterinary_services' + | 'video_amusement_game_supplies' + | 'video_game_arcades' + | 'video_tape_rental_stores' + | 'vocational_trade_schools' + | 'watch_jewelry_repair' + | 'welding_repair' + | 'wholesale_clubs' + | 'wig_and_toupee_stores' + | 'wires_money_orders' + | 'womens_accessory_and_specialty_shops' + | 'womens_ready_to_wear_stores' + | 'wrecking_and_salvage_yards'; + + export interface SpendingLimit { + /** + * Maximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + */ + amount: number; - export namespace AddressValidation { - export type Mode = - | 'disabled' - | 'normalization_only' - | 'validation_and_normalization'; + /** + * Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories. + */ + categories: Array | null; - export type Result = - | 'indeterminate' - | 'likely_deliverable' - | 'likely_undeliverable'; - } + /** + * Interval (or event) to which the amount applies. + */ + interval: SpendingLimit.Interval; } - export namespace SpendingControls { - export type AllowedCardPresence = 'not_present' | 'present'; - - export type AllowedCategory = + export namespace SpendingLimit { + export type Category = | 'ac_refrigeration_repair' | 'accounting_bookkeeping_services' | 'advertising_services' @@ -731,668 +1340,53 @@ export namespace Issuing { | 'womens_ready_to_wear_stores' | 'wrecking_and_salvage_yards'; - export type BlockedCardPresence = 'not_present' | 'present'; + export type Interval = + | 'all_time' + | 'daily' + | 'monthly' + | 'per_authorization' + | 'weekly' + | 'yearly'; + } + } - export type BlockedCategory = - | 'ac_refrigeration_repair' - | 'accounting_bookkeeping_services' - | 'advertising_services' - | 'agricultural_cooperative' - | 'airlines_air_carriers' - | 'airports_flying_fields' - | 'ambulance_services' - | 'amusement_parks_carnivals' - | 'antique_reproductions' - | 'antique_shops' - | 'aquariums' - | 'architectural_surveying_services' - | 'art_dealers_and_galleries' - | 'artists_supply_and_craft_shops' - | 'auto_and_home_supply_stores' - | 'auto_body_repair_shops' - | 'auto_paint_shops' - | 'auto_service_shops' - | 'automated_cash_disburse' - | 'automated_fuel_dispensers' - | 'automobile_associations' - | 'automotive_parts_and_accessories_stores' - | 'automotive_tire_stores' - | 'bail_and_bond_payments' - | 'bakeries' - | 'bands_orchestras' - | 'barber_and_beauty_shops' - | 'betting_casino_gambling' - | 'bicycle_shops' - | 'billiard_pool_establishments' - | 'boat_dealers' - | 'boat_rentals_and_leases' - | 'book_stores' - | 'books_periodicals_and_newspapers' - | 'bowling_alleys' - | 'bus_lines' - | 'business_secretarial_schools' - | 'buying_shopping_services' - | 'cable_satellite_and_other_pay_television_and_radio' - | 'camera_and_photographic_supply_stores' - | 'candy_nut_and_confectionery_stores' - | 'car_and_truck_dealers_new_used' - | 'car_and_truck_dealers_used_only' - | 'car_rental_agencies' - | 'car_washes' - | 'carpentry_services' - | 'carpet_upholstery_cleaning' - | 'caterers' - | 'charitable_and_social_service_organizations_fundraising' - | 'chemicals_and_allied_products' - | 'child_care_services' - | 'childrens_and_infants_wear_stores' - | 'chiropodists_podiatrists' - | 'chiropractors' - | 'cigar_stores_and_stands' - | 'civic_social_fraternal_associations' - | 'cleaning_and_maintenance' - | 'clothing_rental' - | 'colleges_universities' - | 'commercial_equipment' - | 'commercial_footwear' - | 'commercial_photography_art_and_graphics' - | 'commuter_transport_and_ferries' - | 'computer_network_services' - | 'computer_programming' - | 'computer_repair' - | 'computer_software_stores' - | 'computers_peripherals_and_software' - | 'concrete_work_services' - | 'construction_materials' - | 'consulting_public_relations' - | 'correspondence_schools' - | 'cosmetic_stores' - | 'counseling_services' - | 'country_clubs' - | 'courier_services' - | 'court_costs' - | 'credit_reporting_agencies' - | 'cruise_lines' - | 'dairy_products_stores' - | 'dance_hall_studios_schools' - | 'dating_escort_services' - | 'dentists_orthodontists' - | 'department_stores' - | 'detective_agencies' - | 'digital_goods_applications' - | 'digital_goods_games' - | 'digital_goods_large_volume' - | 'digital_goods_media' - | 'direct_marketing_catalog_merchant' - | 'direct_marketing_combination_catalog_and_retail_merchant' - | 'direct_marketing_inbound_telemarketing' - | 'direct_marketing_insurance_services' - | 'direct_marketing_other' - | 'direct_marketing_outbound_telemarketing' - | 'direct_marketing_subscription' - | 'direct_marketing_travel' - | 'discount_stores' - | 'doctors' - | 'door_to_door_sales' - | 'drapery_window_covering_and_upholstery_stores' - | 'drinking_places' - | 'drug_stores_and_pharmacies' - | 'drugs_drug_proprietaries_and_druggist_sundries' - | 'dry_cleaners' - | 'durable_goods' - | 'duty_free_stores' - | 'eating_places_restaurants' - | 'educational_services' - | 'electric_razor_stores' - | 'electric_vehicle_charging' - | 'electrical_parts_and_equipment' - | 'electrical_services' - | 'electronics_repair_shops' - | 'electronics_stores' - | 'elementary_secondary_schools' - | 'emergency_services_gcas_visa_use_only' - | 'employment_temp_agencies' - | 'equipment_rental' - | 'exterminating_services' - | 'family_clothing_stores' - | 'fast_food_restaurants' - | 'financial_institutions' - | 'fines_government_administrative_entities' - | 'fireplace_fireplace_screens_and_accessories_stores' - | 'floor_covering_stores' - | 'florists' - | 'florists_supplies_nursery_stock_and_flowers' - | 'freezer_and_locker_meat_provisioners' - | 'fuel_dealers_non_automotive' - | 'funeral_services_crematories' - | 'furniture_home_furnishings_and_equipment_stores_except_appliances' - | 'furniture_repair_refinishing' - | 'furriers_and_fur_shops' - | 'general_services' - | 'gift_card_novelty_and_souvenir_shops' - | 'glass_paint_and_wallpaper_stores' - | 'glassware_crystal_stores' - | 'golf_courses_public' - | 'government_licensed_horse_dog_racing_us_region_only' - | 'government_licensed_online_casions_online_gambling_us_region_only' - | 'government_owned_lotteries_non_us_region' - | 'government_owned_lotteries_us_region_only' - | 'government_services' - | 'grocery_stores_supermarkets' - | 'hardware_equipment_and_supplies' - | 'hardware_stores' - | 'health_and_beauty_spas' - | 'hearing_aids_sales_and_supplies' - | 'heating_plumbing_a_c' - | 'hobby_toy_and_game_shops' - | 'home_supply_warehouse_stores' - | 'hospitals' - | 'hotels_motels_and_resorts' - | 'household_appliance_stores' - | 'industrial_supplies' - | 'information_retrieval_services' - | 'insurance_default' - | 'insurance_underwriting_premiums' - | 'intra_company_purchases' - | 'jewelry_stores_watches_clocks_and_silverware_stores' - | 'landscaping_services' - | 'laundries' - | 'laundry_cleaning_services' - | 'legal_services_attorneys' - | 'luggage_and_leather_goods_stores' - | 'lumber_building_materials_stores' - | 'manual_cash_disburse' - | 'marinas_service_and_supplies' - | 'marketplaces' - | 'masonry_stonework_and_plaster' - | 'massage_parlors' - | 'medical_and_dental_labs' - | 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies' - | 'medical_services' - | 'membership_organizations' - | 'mens_and_boys_clothing_and_accessories_stores' - | 'mens_womens_clothing_stores' - | 'metal_service_centers' - | 'miscellaneous' - | 'miscellaneous_apparel_and_accessory_shops' - | 'miscellaneous_auto_dealers' - | 'miscellaneous_business_services' - | 'miscellaneous_food_stores' - | 'miscellaneous_general_merchandise' - | 'miscellaneous_general_services' - | 'miscellaneous_home_furnishing_specialty_stores' - | 'miscellaneous_publishing_and_printing' - | 'miscellaneous_recreation_services' - | 'miscellaneous_repair_shops' - | 'miscellaneous_specialty_retail' - | 'mobile_home_dealers' - | 'motion_picture_theaters' - | 'motor_freight_carriers_and_trucking' - | 'motor_homes_dealers' - | 'motor_vehicle_supplies_and_new_parts' - | 'motorcycle_shops_and_dealers' - | 'motorcycle_shops_dealers' - | 'music_stores_musical_instruments_pianos_and_sheet_music' - | 'news_dealers_and_newsstands' - | 'non_fi_money_orders' - | 'non_fi_stored_value_card_purchase_load' - | 'nondurable_goods' - | 'nurseries_lawn_and_garden_supply_stores' - | 'nursing_personal_care' - | 'office_and_commercial_furniture' - | 'opticians_eyeglasses' - | 'optometrists_ophthalmologist' - | 'orthopedic_goods_prosthetic_devices' - | 'osteopaths' - | 'package_stores_beer_wine_and_liquor' - | 'paints_varnishes_and_supplies' - | 'parking_lots_garages' - | 'passenger_railways' - | 'pawn_shops' - | 'pet_shops_pet_food_and_supplies' - | 'petroleum_and_petroleum_products' - | 'photo_developing' - | 'photographic_photocopy_microfilm_equipment_and_supplies' - | 'photographic_studios' - | 'picture_video_production' - | 'piece_goods_notions_and_other_dry_goods' - | 'plumbing_heating_equipment_and_supplies' - | 'political_organizations' - | 'postal_services_government_only' - | 'precious_stones_and_metals_watches_and_jewelry' - | 'professional_services' - | 'public_warehousing_and_storage' - | 'quick_copy_repro_and_blueprint' - | 'railroads' - | 'real_estate_agents_and_managers_rentals' - | 'record_stores' - | 'recreational_vehicle_rentals' - | 'religious_goods_stores' - | 'religious_organizations' - | 'roofing_siding_sheet_metal' - | 'secretarial_support_services' - | 'security_brokers_dealers' - | 'service_stations' - | 'sewing_needlework_fabric_and_piece_goods_stores' - | 'shoe_repair_hat_cleaning' - | 'shoe_stores' - | 'small_appliance_repair' - | 'snowmobile_dealers' - | 'special_trade_services' - | 'specialty_cleaning' - | 'sporting_goods_stores' - | 'sporting_recreation_camps' - | 'sports_and_riding_apparel_stores' - | 'sports_clubs_fields' - | 'stamp_and_coin_stores' - | 'stationary_office_supplies_printing_and_writing_paper' - | 'stationery_stores_office_and_school_supply_stores' - | 'swimming_pools_sales' - | 't_ui_travel_germany' - | 'tailors_alterations' - | 'tax_payments_government_agencies' - | 'tax_preparation_services' - | 'taxicabs_limousines' - | 'telecommunication_equipment_and_telephone_sales' - | 'telecommunication_services' - | 'telegraph_services' - | 'tent_and_awning_shops' - | 'testing_laboratories' - | 'theatrical_ticket_agencies' - | 'timeshares' - | 'tire_retreading_and_repair' - | 'tolls_bridge_fees' - | 'tourist_attractions_and_exhibits' - | 'towing_services' - | 'trailer_parks_campgrounds' - | 'transportation_services' - | 'travel_agencies_tour_operators' - | 'truck_stop_iteration' - | 'truck_utility_trailer_rentals' - | 'typesetting_plate_making_and_related_services' - | 'typewriter_stores' - | 'u_s_federal_government_agencies_or_departments' - | 'uniforms_commercial_clothing' - | 'used_merchandise_and_secondhand_stores' - | 'utilities' - | 'variety_stores' - | 'veterinary_services' - | 'video_amusement_game_supplies' - | 'video_game_arcades' - | 'video_tape_rental_stores' - | 'vocational_trade_schools' - | 'watch_jewelry_repair' - | 'welding_repair' - | 'wholesale_clubs' - | 'wig_and_toupee_stores' - | 'wires_money_orders' - | 'womens_accessory_and_specialty_shops' - | 'womens_ready_to_wear_stores' - | 'wrecking_and_salvage_yards'; - - export interface SpendingLimit { - /** - * Maximum amount allowed to spend per interval. This amount is in the card's currency and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). - */ - amount: number; - - /** - * Array of strings containing [categories](https://docs.stripe.com/api#issuing_authorization_object-merchant_data-category) this limit applies to. Omitting this field will apply the limit to all categories. - */ - categories: Array | null; - - /** - * Interval (or event) to which the amount applies. - */ - interval: SpendingLimit.Interval; - } - - export namespace SpendingLimit { - export type Category = - | 'ac_refrigeration_repair' - | 'accounting_bookkeeping_services' - | 'advertising_services' - | 'agricultural_cooperative' - | 'airlines_air_carriers' - | 'airports_flying_fields' - | 'ambulance_services' - | 'amusement_parks_carnivals' - | 'antique_reproductions' - | 'antique_shops' - | 'aquariums' - | 'architectural_surveying_services' - | 'art_dealers_and_galleries' - | 'artists_supply_and_craft_shops' - | 'auto_and_home_supply_stores' - | 'auto_body_repair_shops' - | 'auto_paint_shops' - | 'auto_service_shops' - | 'automated_cash_disburse' - | 'automated_fuel_dispensers' - | 'automobile_associations' - | 'automotive_parts_and_accessories_stores' - | 'automotive_tire_stores' - | 'bail_and_bond_payments' - | 'bakeries' - | 'bands_orchestras' - | 'barber_and_beauty_shops' - | 'betting_casino_gambling' - | 'bicycle_shops' - | 'billiard_pool_establishments' - | 'boat_dealers' - | 'boat_rentals_and_leases' - | 'book_stores' - | 'books_periodicals_and_newspapers' - | 'bowling_alleys' - | 'bus_lines' - | 'business_secretarial_schools' - | 'buying_shopping_services' - | 'cable_satellite_and_other_pay_television_and_radio' - | 'camera_and_photographic_supply_stores' - | 'candy_nut_and_confectionery_stores' - | 'car_and_truck_dealers_new_used' - | 'car_and_truck_dealers_used_only' - | 'car_rental_agencies' - | 'car_washes' - | 'carpentry_services' - | 'carpet_upholstery_cleaning' - | 'caterers' - | 'charitable_and_social_service_organizations_fundraising' - | 'chemicals_and_allied_products' - | 'child_care_services' - | 'childrens_and_infants_wear_stores' - | 'chiropodists_podiatrists' - | 'chiropractors' - | 'cigar_stores_and_stands' - | 'civic_social_fraternal_associations' - | 'cleaning_and_maintenance' - | 'clothing_rental' - | 'colleges_universities' - | 'commercial_equipment' - | 'commercial_footwear' - | 'commercial_photography_art_and_graphics' - | 'commuter_transport_and_ferries' - | 'computer_network_services' - | 'computer_programming' - | 'computer_repair' - | 'computer_software_stores' - | 'computers_peripherals_and_software' - | 'concrete_work_services' - | 'construction_materials' - | 'consulting_public_relations' - | 'correspondence_schools' - | 'cosmetic_stores' - | 'counseling_services' - | 'country_clubs' - | 'courier_services' - | 'court_costs' - | 'credit_reporting_agencies' - | 'cruise_lines' - | 'dairy_products_stores' - | 'dance_hall_studios_schools' - | 'dating_escort_services' - | 'dentists_orthodontists' - | 'department_stores' - | 'detective_agencies' - | 'digital_goods_applications' - | 'digital_goods_games' - | 'digital_goods_large_volume' - | 'digital_goods_media' - | 'direct_marketing_catalog_merchant' - | 'direct_marketing_combination_catalog_and_retail_merchant' - | 'direct_marketing_inbound_telemarketing' - | 'direct_marketing_insurance_services' - | 'direct_marketing_other' - | 'direct_marketing_outbound_telemarketing' - | 'direct_marketing_subscription' - | 'direct_marketing_travel' - | 'discount_stores' - | 'doctors' - | 'door_to_door_sales' - | 'drapery_window_covering_and_upholstery_stores' - | 'drinking_places' - | 'drug_stores_and_pharmacies' - | 'drugs_drug_proprietaries_and_druggist_sundries' - | 'dry_cleaners' - | 'durable_goods' - | 'duty_free_stores' - | 'eating_places_restaurants' - | 'educational_services' - | 'electric_razor_stores' - | 'electric_vehicle_charging' - | 'electrical_parts_and_equipment' - | 'electrical_services' - | 'electronics_repair_shops' - | 'electronics_stores' - | 'elementary_secondary_schools' - | 'emergency_services_gcas_visa_use_only' - | 'employment_temp_agencies' - | 'equipment_rental' - | 'exterminating_services' - | 'family_clothing_stores' - | 'fast_food_restaurants' - | 'financial_institutions' - | 'fines_government_administrative_entities' - | 'fireplace_fireplace_screens_and_accessories_stores' - | 'floor_covering_stores' - | 'florists' - | 'florists_supplies_nursery_stock_and_flowers' - | 'freezer_and_locker_meat_provisioners' - | 'fuel_dealers_non_automotive' - | 'funeral_services_crematories' - | 'furniture_home_furnishings_and_equipment_stores_except_appliances' - | 'furniture_repair_refinishing' - | 'furriers_and_fur_shops' - | 'general_services' - | 'gift_card_novelty_and_souvenir_shops' - | 'glass_paint_and_wallpaper_stores' - | 'glassware_crystal_stores' - | 'golf_courses_public' - | 'government_licensed_horse_dog_racing_us_region_only' - | 'government_licensed_online_casions_online_gambling_us_region_only' - | 'government_owned_lotteries_non_us_region' - | 'government_owned_lotteries_us_region_only' - | 'government_services' - | 'grocery_stores_supermarkets' - | 'hardware_equipment_and_supplies' - | 'hardware_stores' - | 'health_and_beauty_spas' - | 'hearing_aids_sales_and_supplies' - | 'heating_plumbing_a_c' - | 'hobby_toy_and_game_shops' - | 'home_supply_warehouse_stores' - | 'hospitals' - | 'hotels_motels_and_resorts' - | 'household_appliance_stores' - | 'industrial_supplies' - | 'information_retrieval_services' - | 'insurance_default' - | 'insurance_underwriting_premiums' - | 'intra_company_purchases' - | 'jewelry_stores_watches_clocks_and_silverware_stores' - | 'landscaping_services' - | 'laundries' - | 'laundry_cleaning_services' - | 'legal_services_attorneys' - | 'luggage_and_leather_goods_stores' - | 'lumber_building_materials_stores' - | 'manual_cash_disburse' - | 'marinas_service_and_supplies' - | 'marketplaces' - | 'masonry_stonework_and_plaster' - | 'massage_parlors' - | 'medical_and_dental_labs' - | 'medical_dental_ophthalmic_and_hospital_equipment_and_supplies' - | 'medical_services' - | 'membership_organizations' - | 'mens_and_boys_clothing_and_accessories_stores' - | 'mens_womens_clothing_stores' - | 'metal_service_centers' - | 'miscellaneous' - | 'miscellaneous_apparel_and_accessory_shops' - | 'miscellaneous_auto_dealers' - | 'miscellaneous_business_services' - | 'miscellaneous_food_stores' - | 'miscellaneous_general_merchandise' - | 'miscellaneous_general_services' - | 'miscellaneous_home_furnishing_specialty_stores' - | 'miscellaneous_publishing_and_printing' - | 'miscellaneous_recreation_services' - | 'miscellaneous_repair_shops' - | 'miscellaneous_specialty_retail' - | 'mobile_home_dealers' - | 'motion_picture_theaters' - | 'motor_freight_carriers_and_trucking' - | 'motor_homes_dealers' - | 'motor_vehicle_supplies_and_new_parts' - | 'motorcycle_shops_and_dealers' - | 'motorcycle_shops_dealers' - | 'music_stores_musical_instruments_pianos_and_sheet_music' - | 'news_dealers_and_newsstands' - | 'non_fi_money_orders' - | 'non_fi_stored_value_card_purchase_load' - | 'nondurable_goods' - | 'nurseries_lawn_and_garden_supply_stores' - | 'nursing_personal_care' - | 'office_and_commercial_furniture' - | 'opticians_eyeglasses' - | 'optometrists_ophthalmologist' - | 'orthopedic_goods_prosthetic_devices' - | 'osteopaths' - | 'package_stores_beer_wine_and_liquor' - | 'paints_varnishes_and_supplies' - | 'parking_lots_garages' - | 'passenger_railways' - | 'pawn_shops' - | 'pet_shops_pet_food_and_supplies' - | 'petroleum_and_petroleum_products' - | 'photo_developing' - | 'photographic_photocopy_microfilm_equipment_and_supplies' - | 'photographic_studios' - | 'picture_video_production' - | 'piece_goods_notions_and_other_dry_goods' - | 'plumbing_heating_equipment_and_supplies' - | 'political_organizations' - | 'postal_services_government_only' - | 'precious_stones_and_metals_watches_and_jewelry' - | 'professional_services' - | 'public_warehousing_and_storage' - | 'quick_copy_repro_and_blueprint' - | 'railroads' - | 'real_estate_agents_and_managers_rentals' - | 'record_stores' - | 'recreational_vehicle_rentals' - | 'religious_goods_stores' - | 'religious_organizations' - | 'roofing_siding_sheet_metal' - | 'secretarial_support_services' - | 'security_brokers_dealers' - | 'service_stations' - | 'sewing_needlework_fabric_and_piece_goods_stores' - | 'shoe_repair_hat_cleaning' - | 'shoe_stores' - | 'small_appliance_repair' - | 'snowmobile_dealers' - | 'special_trade_services' - | 'specialty_cleaning' - | 'sporting_goods_stores' - | 'sporting_recreation_camps' - | 'sports_and_riding_apparel_stores' - | 'sports_clubs_fields' - | 'stamp_and_coin_stores' - | 'stationary_office_supplies_printing_and_writing_paper' - | 'stationery_stores_office_and_school_supply_stores' - | 'swimming_pools_sales' - | 't_ui_travel_germany' - | 'tailors_alterations' - | 'tax_payments_government_agencies' - | 'tax_preparation_services' - | 'taxicabs_limousines' - | 'telecommunication_equipment_and_telephone_sales' - | 'telecommunication_services' - | 'telegraph_services' - | 'tent_and_awning_shops' - | 'testing_laboratories' - | 'theatrical_ticket_agencies' - | 'timeshares' - | 'tire_retreading_and_repair' - | 'tolls_bridge_fees' - | 'tourist_attractions_and_exhibits' - | 'towing_services' - | 'trailer_parks_campgrounds' - | 'transportation_services' - | 'travel_agencies_tour_operators' - | 'truck_stop_iteration' - | 'truck_utility_trailer_rentals' - | 'typesetting_plate_making_and_related_services' - | 'typewriter_stores' - | 'u_s_federal_government_agencies_or_departments' - | 'uniforms_commercial_clothing' - | 'used_merchandise_and_secondhand_stores' - | 'utilities' - | 'variety_stores' - | 'veterinary_services' - | 'video_amusement_game_supplies' - | 'video_game_arcades' - | 'video_tape_rental_stores' - | 'vocational_trade_schools' - | 'watch_jewelry_repair' - | 'welding_repair' - | 'wholesale_clubs' - | 'wig_and_toupee_stores' - | 'wires_money_orders' - | 'womens_accessory_and_specialty_shops' - | 'womens_ready_to_wear_stores' - | 'wrecking_and_salvage_yards'; + export namespace Wallets { + export interface ApplePay { + /** + * Apple Pay Eligibility + */ + eligible: boolean; - export type Interval = - | 'all_time' - | 'daily' - | 'monthly' - | 'per_authorization' - | 'weekly' - | 'yearly'; - } + /** + * Reason the card is ineligible for Apple Pay + */ + ineligible_reason: ApplePay.IneligibleReason | null; } - export namespace Wallets { - export interface ApplePay { - /** - * Apple Pay Eligibility - */ - eligible: boolean; - - /** - * Reason the card is ineligible for Apple Pay - */ - ineligible_reason: ApplePay.IneligibleReason | null; - } - - export interface GooglePay { - /** - * Google Pay Eligibility - */ - eligible: boolean; + export interface GooglePay { + /** + * Google Pay Eligibility + */ + eligible: boolean; - /** - * Reason the card is ineligible for Google Pay - */ - ineligible_reason: GooglePay.IneligibleReason | null; - } + /** + * Reason the card is ineligible for Google Pay + */ + ineligible_reason: GooglePay.IneligibleReason | null; + } - export namespace ApplePay { - export type IneligibleReason = - | 'missing_agreement' - | 'missing_cardholder_contact' - | 'unsupported_region'; - } + export namespace ApplePay { + export type IneligibleReason = + | 'missing_agreement' + | 'missing_cardholder_contact' + | 'unsupported_region'; + } - export namespace GooglePay { - export type IneligibleReason = - | 'missing_agreement' - | 'missing_cardholder_contact' - | 'unsupported_region'; - } + export namespace GooglePay { + export type IneligibleReason = + | 'missing_agreement' + | 'missing_cardholder_contact' + | 'unsupported_region'; } } } diff --git a/src/resources/Issuing/CreditUnderwritingRecords.ts b/src/resources/Issuing/CreditUnderwritingRecords.ts index 09356e64db..aa08e0033f 100644 --- a/src/resources/Issuing/CreditUnderwritingRecords.ts +++ b/src/resources/Issuing/CreditUnderwritingRecords.ts @@ -114,7 +114,7 @@ export interface CreditUnderwritingRecord { /** * For decisions triggered by an application, details about the submission. */ - application: Issuing.CreditUnderwritingRecord.Application | null; + application: CreditUnderwritingRecord.Application | null; /** * Time at which the object was created. Measured in seconds since the Unix epoch. @@ -124,9 +124,9 @@ export interface CreditUnderwritingRecord { /** * The event that triggered the underwriting. */ - created_from: Issuing.CreditUnderwritingRecord.CreatedFrom; + created_from: CreditUnderwritingRecord.CreatedFrom; - credit_user: Issuing.CreditUnderwritingRecord.CreditUser; + credit_user: CreditUnderwritingRecord.CreditUser; /** * Date when a decision was made. @@ -136,7 +136,7 @@ export interface CreditUnderwritingRecord { /** * Details about the decision. */ - decision: Issuing.CreditUnderwritingRecord.Decision | null; + decision: CreditUnderwritingRecord.Decision | null; /** * For underwriting initiated by an application, a decision must be taken 30 days after the submission. @@ -161,383 +161,381 @@ export interface CreditUnderwritingRecord { /** * If an exception to the usual underwriting criteria was made for this application, details about the exception must be provided. Exceptions should only be granted in rare circumstances, in consultation with Stripe Compliance. */ - underwriting_exception: Issuing.CreditUnderwritingRecord.UnderwritingException | null; + underwriting_exception: CreditUnderwritingRecord.UnderwritingException | null; } -export namespace Issuing { - export namespace CreditUnderwritingRecord { - export interface Application { - /** - * The channel through which the applicant has submitted their application. - */ - application_method: Application.ApplicationMethod; +export namespace CreditUnderwritingRecord { + export interface Application { + /** + * The channel through which the applicant has submitted their application. + */ + application_method: Application.ApplicationMethod; + + /** + * Scope of demand made by the applicant. + */ + purpose: Application.Purpose; + + /** + * Date when the applicant submitted their application. + */ + submitted_at: number; + } + + export type CreatedFrom = 'application' | 'proactive_review'; + + export interface CreditUser { + /** + * Email of the applicant or accountholder. + */ + email: string; + + /** + * Full name of the company or person. + */ + name: string; + } + + export interface Decision { + /** + * Details about a decision application_rejected. + */ + application_rejected: Decision.ApplicationRejected | null; + + /** + * Details about a decision credit_limit_approved. + */ + credit_limit_approved: Decision.CreditLimitApproved | null; + + /** + * Details about a decision credit_limit_decreased. + */ + credit_limit_decreased: Decision.CreditLimitDecreased | null; + + /** + * Details about a decision credit_line_closed. + */ + credit_line_closed: Decision.CreditLineClosed | null; + + /** + * Outcome of the decision. + */ + type: Decision.Type; + } + + export interface UnderwritingException { + /** + * Written explanation for the exception. + */ + explanation: string; + + /** + * The decision before the exception was applied. + */ + original_decision_type: UnderwritingException.OriginalDecisionType; + } + + export namespace Application { + export type ApplicationMethod = 'in_person' | 'mail' | 'online' | 'phone'; + export type Purpose = 'credit_limit_increase' | 'credit_line_opening'; + } + + export namespace Decision { + export interface ApplicationRejected { /** - * Scope of demand made by the applicant. + * Details about the `reasons.other` when present. */ - purpose: Application.Purpose; + reason_other_explanation: string | null; /** - * Date when the applicant submitted their application. + * List of reasons why the application was rejected up to 4 reasons, in order of importance. */ - submitted_at: number; + reasons: Array; } - export type CreatedFrom = 'application' | 'proactive_review'; - - export interface CreditUser { + export interface CreditLimitApproved { /** - * Email of the applicant or accountholder. + * Credit amount approved. An approved credit limit is required before you can set a amount in the [CreditPolicy API](https://docs.stripe.com/api/issuing/credit_policy). */ - email: string; + amount: number; /** - * Full name of the company or person. + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). */ - name: string; + currency: string; } - export interface Decision { - /** - * Details about a decision application_rejected. - */ - application_rejected: Decision.ApplicationRejected | null; - + export interface CreditLimitDecreased { /** - * Details about a decision credit_limit_approved. + * Credit amount approved after decrease. An approved credit limit is required before you can set a amount in the [CreditPolicy API](https://docs.stripe.com/api/issuing/credit_policy). */ - credit_limit_approved: Decision.CreditLimitApproved | null; + amount: number; /** - * Details about a decision credit_limit_decreased. + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). */ - credit_limit_decreased: Decision.CreditLimitDecreased | null; + currency: string; /** - * Details about a decision credit_line_closed. + * Details about the `reasons.other` when present. */ - credit_line_closed: Decision.CreditLineClosed | null; + reason_other_explanation: string | null; /** - * Outcome of the decision. + * List of reasons why the existing credit was decreased, up to 4 reasons, in order of importance. */ - type: Decision.Type; + reasons: Array; } - export interface UnderwritingException { + export interface CreditLineClosed { /** - * Written explanation for the exception. + * Details about the `reasons.other` when present. */ - explanation: string; + reason_other_explanation: string | null; /** - * The decision before the exception was applied. + * List of reasons why the existing account was closed, up to 4 reasons, in order of importance. */ - original_decision_type: UnderwritingException.OriginalDecisionType; + reasons: Array; } - export namespace Application { - export type ApplicationMethod = 'in_person' | 'mail' | 'online' | 'phone'; - - export type Purpose = 'credit_limit_increase' | 'credit_line_opening'; + export type Type = + | 'additional_information_requested' + | 'application_rejected' + | 'credit_limit_approved' + | 'credit_limit_decreased' + | 'credit_line_closed' + | 'no_changes' + | 'withdrawn_by_applicant'; + + export namespace ApplicationRejected { + export type Reason = + | 'applicant_is_not_beneficial_owner' + | 'applicant_too_young' + | 'application_is_not_beneficial_owner' + | 'bankruptcy' + | 'business_size_too_small' + | 'current_account_tier_ineligible' + | 'customer_already_exists' + | 'customer_requested_account_closure' + | 'debt_to_cash_balance_ratio_too_high' + | 'debt_to_equity_ratio_too_high' + | 'delinquent_credit_obligations' + | 'dispute_rate_too_high' + | 'duration_of_residence' + | 'excessive_income_or_revenue_obligations' + | 'expenses_to_cash_balance_ratio_too_high' + | 'foreclosure_or_repossession' + | 'frozen_file_at_credit_bureau' + | 'garnishment_or_attachment' + | 'government_loan_program_criteria' + | 'high_concentration_of_clients' + | 'high_risk_industry' + | 'incomplete_application' + | 'inconsistent_monthly_revenues' + | 'insufficient_account_history_with_platform' + | 'insufficient_bank_account_history' + | 'insufficient_cash_balance' + | 'insufficient_cash_flow' + | 'insufficient_collateral' + | 'insufficient_credit_experience' + | 'insufficient_deposits' + | 'insufficient_income' + | 'insufficient_margin_ratio' + | 'insufficient_operating_profit' + | 'insufficient_period_in_operation' + | 'insufficient_reserves' + | 'insufficient_revenue' + | 'insufficient_social_media_performance' + | 'insufficient_time_in_network' + | 'insufficient_trade_credit_insurance' + | 'invalid_business_license' + | 'lacking_cash_account' + | 'late_payment_history_reported_to_bureau' + | 'lien_collection_action_or_judgement' + | 'negative_public_information' + | 'no_credit_file' + | 'other' + | 'outside_supported_country' + | 'outside_supported_state' + | 'poor_payment_history_with_platform' + | 'prior_or_current_legal_action' + | 'prohibited_industry' + | 'rate_of_cash_balance_fluctuation_too_high' + | 'recent_inquiries_on_business_credit_report' + | 'removal_of_bank_account_connection' + | 'revenue_discrepancy' + | 'runway_too_short' + | 'suspected_fraud' + | 'too_many_non_sufficient_funds_or_overdrafts' + | 'unable_to_verify_address' + | 'unable_to_verify_identity' + | 'unable_to_verify_income_or_revenue' + | 'unprofitable' + | 'unsupportable_business_type'; } - export namespace Decision { - export interface ApplicationRejected { - /** - * Details about the `reasons.other` when present. - */ - reason_other_explanation: string | null; - - /** - * List of reasons why the application was rejected up to 4 reasons, in order of importance. - */ - reasons: Array; - } - - export interface CreditLimitApproved { - /** - * Credit amount approved. An approved credit limit is required before you can set a amount in the [CreditPolicy API](https://docs.stripe.com/api/issuing/credit_policy). - */ - amount: number; - - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency: string; - } - - export interface CreditLimitDecreased { - /** - * Credit amount approved after decrease. An approved credit limit is required before you can set a amount in the [CreditPolicy API](https://docs.stripe.com/api/issuing/credit_policy). - */ - amount: number; - - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency: string; - - /** - * Details about the `reasons.other` when present. - */ - reason_other_explanation: string | null; - - /** - * List of reasons why the existing credit was decreased, up to 4 reasons, in order of importance. - */ - reasons: Array; - } - - export interface CreditLineClosed { - /** - * Details about the `reasons.other` when present. - */ - reason_other_explanation: string | null; - - /** - * List of reasons why the existing account was closed, up to 4 reasons, in order of importance. - */ - reasons: Array; - } - - export type Type = - | 'additional_information_requested' - | 'application_rejected' - | 'credit_limit_approved' - | 'credit_limit_decreased' - | 'credit_line_closed' - | 'no_changes' - | 'withdrawn_by_applicant'; - - export namespace ApplicationRejected { - export type Reason = - | 'applicant_is_not_beneficial_owner' - | 'applicant_too_young' - | 'application_is_not_beneficial_owner' - | 'bankruptcy' - | 'business_size_too_small' - | 'current_account_tier_ineligible' - | 'customer_already_exists' - | 'customer_requested_account_closure' - | 'debt_to_cash_balance_ratio_too_high' - | 'debt_to_equity_ratio_too_high' - | 'delinquent_credit_obligations' - | 'dispute_rate_too_high' - | 'duration_of_residence' - | 'excessive_income_or_revenue_obligations' - | 'expenses_to_cash_balance_ratio_too_high' - | 'foreclosure_or_repossession' - | 'frozen_file_at_credit_bureau' - | 'garnishment_or_attachment' - | 'government_loan_program_criteria' - | 'high_concentration_of_clients' - | 'high_risk_industry' - | 'incomplete_application' - | 'inconsistent_monthly_revenues' - | 'insufficient_account_history_with_platform' - | 'insufficient_bank_account_history' - | 'insufficient_cash_balance' - | 'insufficient_cash_flow' - | 'insufficient_collateral' - | 'insufficient_credit_experience' - | 'insufficient_deposits' - | 'insufficient_income' - | 'insufficient_margin_ratio' - | 'insufficient_operating_profit' - | 'insufficient_period_in_operation' - | 'insufficient_reserves' - | 'insufficient_revenue' - | 'insufficient_social_media_performance' - | 'insufficient_time_in_network' - | 'insufficient_trade_credit_insurance' - | 'invalid_business_license' - | 'lacking_cash_account' - | 'late_payment_history_reported_to_bureau' - | 'lien_collection_action_or_judgement' - | 'negative_public_information' - | 'no_credit_file' - | 'other' - | 'outside_supported_country' - | 'outside_supported_state' - | 'poor_payment_history_with_platform' - | 'prior_or_current_legal_action' - | 'prohibited_industry' - | 'rate_of_cash_balance_fluctuation_too_high' - | 'recent_inquiries_on_business_credit_report' - | 'removal_of_bank_account_connection' - | 'revenue_discrepancy' - | 'runway_too_short' - | 'suspected_fraud' - | 'too_many_non_sufficient_funds_or_overdrafts' - | 'unable_to_verify_address' - | 'unable_to_verify_identity' - | 'unable_to_verify_income_or_revenue' - | 'unprofitable' - | 'unsupportable_business_type'; - } - - export namespace CreditLimitDecreased { - export type Reason = - | 'applicant_is_not_beneficial_owner' - | 'applicant_too_young' - | 'application_is_not_beneficial_owner' - | 'bankruptcy' - | 'business_size_too_small' - | 'change_in_financial_state' - | 'change_in_utilization_of_credit_line' - | 'current_account_tier_ineligible' - | 'customer_already_exists' - | 'customer_requested_account_closure' - | 'debt_to_cash_balance_ratio_too_high' - | 'debt_to_equity_ratio_too_high' - | 'decrease_in_income_to_expense_ratio' - | 'decrease_in_social_media_performance' - | 'delinquent_credit_obligations' - | 'dispute_rate_too_high' - | 'duration_of_residence' - | 'exceeds_acceptable_platform_exposure' - | 'excessive_income_or_revenue_obligations' - | 'expenses_to_cash_balance_ratio_too_high' - | 'foreclosure_or_repossession' - | 'frozen_file_at_credit_bureau' - | 'garnishment_or_attachment' - | 'government_loan_program_criteria' - | 'has_recent_credit_limit_increase' - | 'high_concentration_of_clients' - | 'high_risk_industry' - | 'incomplete_application' - | 'inconsistent_monthly_revenues' - | 'insufficient_account_history_with_platform' - | 'insufficient_bank_account_history' - | 'insufficient_cash_balance' - | 'insufficient_cash_flow' - | 'insufficient_collateral' - | 'insufficient_credit_experience' - | 'insufficient_credit_utilization' - | 'insufficient_deposits' - | 'insufficient_income' - | 'insufficient_margin_ratio' - | 'insufficient_operating_profit' - | 'insufficient_period_in_operation' - | 'insufficient_reserves' - | 'insufficient_revenue' - | 'insufficient_social_media_performance' - | 'insufficient_time_in_network' - | 'insufficient_trade_credit_insurance' - | 'insufficient_usage_as_qualified_expenses' - | 'invalid_business_license' - | 'lacking_cash_account' - | 'late_payment_history_reported_to_bureau' - | 'lien_collection_action_or_judgement' - | 'negative_public_information' - | 'no_credit_file' - | 'other' - | 'outside_supported_country' - | 'outside_supported_state' - | 'poor_payment_history_with_platform' - | 'prior_or_current_legal_action' - | 'prohibited_industry' - | 'rate_of_cash_balance_fluctuation_too_high' - | 'recent_inquiries_on_business_credit_report' - | 'removal_of_bank_account_connection' - | 'revenue_discrepancy' - | 'runway_too_short' - | 'suspected_fraud' - | 'too_many_non_sufficient_funds_or_overdrafts' - | 'unable_to_verify_address' - | 'unable_to_verify_identity' - | 'unable_to_verify_income_or_revenue' - | 'unprofitable' - | 'unsupportable_business_type'; - } - - export namespace CreditLineClosed { - export type Reason = - | 'applicant_is_not_beneficial_owner' - | 'applicant_too_young' - | 'application_is_not_beneficial_owner' - | 'bankruptcy' - | 'business_size_too_small' - | 'change_in_financial_state' - | 'change_in_utilization_of_credit_line' - | 'current_account_tier_ineligible' - | 'customer_already_exists' - | 'customer_requested_account_closure' - | 'debt_to_cash_balance_ratio_too_high' - | 'debt_to_equity_ratio_too_high' - | 'decrease_in_income_to_expense_ratio' - | 'decrease_in_social_media_performance' - | 'delinquent_credit_obligations' - | 'dispute_rate_too_high' - | 'duration_of_residence' - | 'exceeds_acceptable_platform_exposure' - | 'excessive_income_or_revenue_obligations' - | 'expenses_to_cash_balance_ratio_too_high' - | 'foreclosure_or_repossession' - | 'frozen_file_at_credit_bureau' - | 'garnishment_or_attachment' - | 'government_loan_program_criteria' - | 'has_recent_credit_limit_increase' - | 'high_concentration_of_clients' - | 'high_risk_industry' - | 'incomplete_application' - | 'inconsistent_monthly_revenues' - | 'insufficient_account_history_with_platform' - | 'insufficient_bank_account_history' - | 'insufficient_cash_balance' - | 'insufficient_cash_flow' - | 'insufficient_collateral' - | 'insufficient_credit_experience' - | 'insufficient_credit_utilization' - | 'insufficient_deposits' - | 'insufficient_income' - | 'insufficient_margin_ratio' - | 'insufficient_operating_profit' - | 'insufficient_period_in_operation' - | 'insufficient_reserves' - | 'insufficient_revenue' - | 'insufficient_social_media_performance' - | 'insufficient_time_in_network' - | 'insufficient_trade_credit_insurance' - | 'insufficient_usage_as_qualified_expenses' - | 'invalid_business_license' - | 'lacking_cash_account' - | 'late_payment_history_reported_to_bureau' - | 'lien_collection_action_or_judgement' - | 'negative_public_information' - | 'no_credit_file' - | 'other' - | 'outside_supported_country' - | 'outside_supported_state' - | 'poor_payment_history_with_platform' - | 'prior_or_current_legal_action' - | 'prohibited_industry' - | 'rate_of_cash_balance_fluctuation_too_high' - | 'recent_inquiries_on_business_credit_report' - | 'removal_of_bank_account_connection' - | 'revenue_discrepancy' - | 'runway_too_short' - | 'suspected_fraud' - | 'too_many_non_sufficient_funds_or_overdrafts' - | 'unable_to_verify_address' - | 'unable_to_verify_identity' - | 'unable_to_verify_income_or_revenue' - | 'unprofitable' - | 'unsupportable_business_type'; - } + export namespace CreditLimitDecreased { + export type Reason = + | 'applicant_is_not_beneficial_owner' + | 'applicant_too_young' + | 'application_is_not_beneficial_owner' + | 'bankruptcy' + | 'business_size_too_small' + | 'change_in_financial_state' + | 'change_in_utilization_of_credit_line' + | 'current_account_tier_ineligible' + | 'customer_already_exists' + | 'customer_requested_account_closure' + | 'debt_to_cash_balance_ratio_too_high' + | 'debt_to_equity_ratio_too_high' + | 'decrease_in_income_to_expense_ratio' + | 'decrease_in_social_media_performance' + | 'delinquent_credit_obligations' + | 'dispute_rate_too_high' + | 'duration_of_residence' + | 'exceeds_acceptable_platform_exposure' + | 'excessive_income_or_revenue_obligations' + | 'expenses_to_cash_balance_ratio_too_high' + | 'foreclosure_or_repossession' + | 'frozen_file_at_credit_bureau' + | 'garnishment_or_attachment' + | 'government_loan_program_criteria' + | 'has_recent_credit_limit_increase' + | 'high_concentration_of_clients' + | 'high_risk_industry' + | 'incomplete_application' + | 'inconsistent_monthly_revenues' + | 'insufficient_account_history_with_platform' + | 'insufficient_bank_account_history' + | 'insufficient_cash_balance' + | 'insufficient_cash_flow' + | 'insufficient_collateral' + | 'insufficient_credit_experience' + | 'insufficient_credit_utilization' + | 'insufficient_deposits' + | 'insufficient_income' + | 'insufficient_margin_ratio' + | 'insufficient_operating_profit' + | 'insufficient_period_in_operation' + | 'insufficient_reserves' + | 'insufficient_revenue' + | 'insufficient_social_media_performance' + | 'insufficient_time_in_network' + | 'insufficient_trade_credit_insurance' + | 'insufficient_usage_as_qualified_expenses' + | 'invalid_business_license' + | 'lacking_cash_account' + | 'late_payment_history_reported_to_bureau' + | 'lien_collection_action_or_judgement' + | 'negative_public_information' + | 'no_credit_file' + | 'other' + | 'outside_supported_country' + | 'outside_supported_state' + | 'poor_payment_history_with_platform' + | 'prior_or_current_legal_action' + | 'prohibited_industry' + | 'rate_of_cash_balance_fluctuation_too_high' + | 'recent_inquiries_on_business_credit_report' + | 'removal_of_bank_account_connection' + | 'revenue_discrepancy' + | 'runway_too_short' + | 'suspected_fraud' + | 'too_many_non_sufficient_funds_or_overdrafts' + | 'unable_to_verify_address' + | 'unable_to_verify_identity' + | 'unable_to_verify_income_or_revenue' + | 'unprofitable' + | 'unsupportable_business_type'; } - export namespace UnderwritingException { - export type OriginalDecisionType = - | 'additional_information_requested' - | 'application_rejected' - | 'credit_limit_approved' - | 'credit_limit_decreased' - | 'credit_line_closed' - | 'no_changes' - | 'withdrawn_by_applicant'; + export namespace CreditLineClosed { + export type Reason = + | 'applicant_is_not_beneficial_owner' + | 'applicant_too_young' + | 'application_is_not_beneficial_owner' + | 'bankruptcy' + | 'business_size_too_small' + | 'change_in_financial_state' + | 'change_in_utilization_of_credit_line' + | 'current_account_tier_ineligible' + | 'customer_already_exists' + | 'customer_requested_account_closure' + | 'debt_to_cash_balance_ratio_too_high' + | 'debt_to_equity_ratio_too_high' + | 'decrease_in_income_to_expense_ratio' + | 'decrease_in_social_media_performance' + | 'delinquent_credit_obligations' + | 'dispute_rate_too_high' + | 'duration_of_residence' + | 'exceeds_acceptable_platform_exposure' + | 'excessive_income_or_revenue_obligations' + | 'expenses_to_cash_balance_ratio_too_high' + | 'foreclosure_or_repossession' + | 'frozen_file_at_credit_bureau' + | 'garnishment_or_attachment' + | 'government_loan_program_criteria' + | 'has_recent_credit_limit_increase' + | 'high_concentration_of_clients' + | 'high_risk_industry' + | 'incomplete_application' + | 'inconsistent_monthly_revenues' + | 'insufficient_account_history_with_platform' + | 'insufficient_bank_account_history' + | 'insufficient_cash_balance' + | 'insufficient_cash_flow' + | 'insufficient_collateral' + | 'insufficient_credit_experience' + | 'insufficient_credit_utilization' + | 'insufficient_deposits' + | 'insufficient_income' + | 'insufficient_margin_ratio' + | 'insufficient_operating_profit' + | 'insufficient_period_in_operation' + | 'insufficient_reserves' + | 'insufficient_revenue' + | 'insufficient_social_media_performance' + | 'insufficient_time_in_network' + | 'insufficient_trade_credit_insurance' + | 'insufficient_usage_as_qualified_expenses' + | 'invalid_business_license' + | 'lacking_cash_account' + | 'late_payment_history_reported_to_bureau' + | 'lien_collection_action_or_judgement' + | 'negative_public_information' + | 'no_credit_file' + | 'other' + | 'outside_supported_country' + | 'outside_supported_state' + | 'poor_payment_history_with_platform' + | 'prior_or_current_legal_action' + | 'prohibited_industry' + | 'rate_of_cash_balance_fluctuation_too_high' + | 'recent_inquiries_on_business_credit_report' + | 'removal_of_bank_account_connection' + | 'revenue_discrepancy' + | 'runway_too_short' + | 'suspected_fraud' + | 'too_many_non_sufficient_funds_or_overdrafts' + | 'unable_to_verify_address' + | 'unable_to_verify_identity' + | 'unable_to_verify_income_or_revenue' + | 'unprofitable' + | 'unsupportable_business_type'; } } + + export namespace UnderwritingException { + export type OriginalDecisionType = + | 'additional_information_requested' + | 'application_rejected' + | 'credit_limit_approved' + | 'credit_limit_decreased' + | 'credit_line_closed' + | 'no_changes' + | 'withdrawn_by_applicant'; + } } export namespace Issuing { export interface CreditUnderwritingRecordRetrieveParams { diff --git a/src/resources/Issuing/DisputeSettlementDetails.ts b/src/resources/Issuing/DisputeSettlementDetails.ts index 64090fa38f..e7c31f5a0e 100644 --- a/src/resources/Issuing/DisputeSettlementDetails.ts +++ b/src/resources/Issuing/DisputeSettlementDetails.ts @@ -77,7 +77,7 @@ export interface DisputeSettlementDetail { /** * The type of event corresponding to this dispute settlement detail, representing the stage in the dispute network lifecycle. */ - event_type: Issuing.DisputeSettlementDetail.EventType; + event_type: DisputeSettlementDetail.EventType; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -87,30 +87,28 @@ export interface DisputeSettlementDetail { /** * The card network for this dispute settlement detail. One of ["visa", "mastercard", "maestro"] */ - network: Issuing.DisputeSettlementDetail.Network; + network: DisputeSettlementDetail.Network; /** * Details about the transaction, such as processing dates, set by the card network. */ - network_data: Issuing.DisputeSettlementDetail.NetworkData | null; + network_data: DisputeSettlementDetail.NetworkData | null; /** * The ID of the linked card network settlement. */ settlement: string | null; } -export namespace Issuing { - export namespace DisputeSettlementDetail { - export type EventType = 'filing' | 'loss' | 'representment' | 'win'; +export namespace DisputeSettlementDetail { + export type EventType = 'filing' | 'loss' | 'representment' | 'win'; - export type Network = 'maestro' | 'mastercard' | 'visa'; + export type Network = 'maestro' | 'mastercard' | 'visa'; - export interface NetworkData { - /** - * The date the transaction was processed by the card network. This can be different from the date the seller recorded the transaction depending on when the acquirer submits the transaction to the network. - */ - processing_date: string | null; - } + export interface NetworkData { + /** + * The date the transaction was processed by the card network. This can be different from the date the seller recorded the transaction depending on when the acquirer submits the transaction to the network. + */ + processing_date: string | null; } } export namespace Issuing { diff --git a/src/resources/Issuing/Disputes.ts b/src/resources/Issuing/Disputes.ts index 65bd2db360..2a3712184c 100644 --- a/src/resources/Issuing/Disputes.ts +++ b/src/resources/Issuing/Disputes.ts @@ -116,7 +116,7 @@ export interface Dispute { */ currency: string; - evidence: Issuing.Dispute.Evidence; + evidence: Dispute.Evidence; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -126,7 +126,7 @@ export interface Dispute { /** * The enum that describes the dispute loss outcome. If the dispute is not lost, this field will be absent. New enum values may be added in the future, so be sure to handle unknown values. */ - loss_reason?: Issuing.Dispute.LossReason; + loss_reason?: Dispute.LossReason; /** * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. @@ -136,7 +136,7 @@ export interface Dispute { /** * Current status of the dispute. */ - status: Issuing.Dispute.Status; + status: Dispute.Status; /** * The transaction being disputed. @@ -146,318 +146,311 @@ export interface Dispute { /** * [Treasury](https://docs.stripe.com/api/treasury) details related to this dispute if it was created on a [FinancialAccount](https://docs.stripe.com/api/treasury/financial_accounts) */ - treasury?: Issuing.Dispute.Treasury | null; + treasury?: Dispute.Treasury | null; } -export namespace Issuing { - export namespace Dispute { - export interface Evidence { - canceled?: Evidence.Canceled; +export namespace Dispute { + export interface Evidence { + canceled?: Evidence.Canceled; - duplicate?: Evidence.Duplicate; + duplicate?: Evidence.Duplicate; - fraudulent?: Evidence.Fraudulent; + fraudulent?: Evidence.Fraudulent; - merchandise_not_as_described?: Evidence.MerchandiseNotAsDescribed; + merchandise_not_as_described?: Evidence.MerchandiseNotAsDescribed; - no_valid_authorization?: Evidence.NoValidAuthorization; + no_valid_authorization?: Evidence.NoValidAuthorization; - not_received?: Evidence.NotReceived; + not_received?: Evidence.NotReceived; - other?: Evidence.Other; + other?: Evidence.Other; - /** - * The reason for filing the dispute. Its value will match the field containing the evidence. - */ - reason: Evidence.Reason; + /** + * The reason for filing the dispute. Its value will match the field containing the evidence. + */ + reason: Evidence.Reason; - service_not_as_described?: Evidence.ServiceNotAsDescribed; - } + service_not_as_described?: Evidence.ServiceNotAsDescribed; + } - export type LossReason = - | 'cardholder_authentication_issuer_liability' - | 'eci5_token_transaction_with_tavv' - | 'excess_disputes_in_timeframe' - | 'has_not_met_the_minimum_dispute_amount_requirements' - | 'invalid_duplicate_dispute' - | 'invalid_incorrect_amount_dispute' - | 'invalid_no_authorization' - | 'invalid_use_of_disputes' - | 'merchandise_delivered_or_shipped' - | 'merchandise_or_service_as_described' - | 'not_cancelled' - | 'other' - | 'refund_issued' - | 'submitted_beyond_allowable_time_limit' - | 'transaction_3ds_required' - | 'transaction_approved_after_prior_fraud_dispute' - | 'transaction_authorized' - | 'transaction_electronically_read' - | 'transaction_qualifies_for_visa_easy_payment_service' - | 'transaction_unattended'; + export type LossReason = + | 'cardholder_authentication_issuer_liability' + | 'eci5_token_transaction_with_tavv' + | 'excess_disputes_in_timeframe' + | 'has_not_met_the_minimum_dispute_amount_requirements' + | 'invalid_duplicate_dispute' + | 'invalid_incorrect_amount_dispute' + | 'invalid_no_authorization' + | 'invalid_use_of_disputes' + | 'merchandise_delivered_or_shipped' + | 'merchandise_or_service_as_described' + | 'not_cancelled' + | 'other' + | 'refund_issued' + | 'submitted_beyond_allowable_time_limit' + | 'transaction_3ds_required' + | 'transaction_approved_after_prior_fraud_dispute' + | 'transaction_authorized' + | 'transaction_electronically_read' + | 'transaction_qualifies_for_visa_easy_payment_service' + | 'transaction_unattended'; + + export type Status = 'expired' | 'lost' | 'submitted' | 'unsubmitted' | 'won'; + + export interface Treasury { + /** + * The Treasury [DebitReversal](https://docs.stripe.com/api/treasury/debit_reversals) representing this Issuing dispute + */ + debit_reversal: string | null; - export type Status = - | 'expired' - | 'lost' - | 'submitted' - | 'unsubmitted' - | 'won'; + /** + * The Treasury [ReceivedDebit](https://docs.stripe.com/api/treasury/received_debits) that is being disputed. + */ + received_debit: string; + } - export interface Treasury { + export namespace Evidence { + export interface Canceled { /** - * The Treasury [DebitReversal](https://docs.stripe.com/api/treasury/debit_reversals) representing this Issuing dispute + * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. */ - debit_reversal: string | null; + additional_documentation: string | File | null; /** - * The Treasury [ReceivedDebit](https://docs.stripe.com/api/treasury/received_debits) that is being disputed. + * Date when order was canceled. */ - received_debit: string; - } + canceled_at: number | null; - export namespace Evidence { - export interface Canceled { - /** - * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - */ - additional_documentation: string | File | null; - - /** - * Date when order was canceled. - */ - canceled_at: number | null; - - /** - * Whether the cardholder was provided with a cancellation policy. - */ - cancellation_policy_provided: boolean | null; + /** + * Whether the cardholder was provided with a cancellation policy. + */ + cancellation_policy_provided: boolean | null; - /** - * Reason for canceling the order. - */ - cancellation_reason: string | null; + /** + * Reason for canceling the order. + */ + cancellation_reason: string | null; - /** - * Date when the cardholder expected to receive the product. - */ - expected_at: number | null; + /** + * Date when the cardholder expected to receive the product. + */ + expected_at: number | null; - /** - * Explanation of why the cardholder is disputing this transaction. - */ - explanation: string | null; + /** + * Explanation of why the cardholder is disputing this transaction. + */ + explanation: string | null; - /** - * Description of the merchandise or service that was purchased. - */ - product_description: string | null; + /** + * Description of the merchandise or service that was purchased. + */ + product_description: string | null; - /** - * Whether the product was a merchandise or service. - */ - product_type: Canceled.ProductType | null; + /** + * Whether the product was a merchandise or service. + */ + product_type: Canceled.ProductType | null; - /** - * Result of cardholder's attempt to return the product. - */ - return_status: Canceled.ReturnStatus | null; + /** + * Result of cardholder's attempt to return the product. + */ + return_status: Canceled.ReturnStatus | null; - /** - * Date when the product was returned or attempted to be returned. - */ - returned_at: number | null; - } + /** + * Date when the product was returned or attempted to be returned. + */ + returned_at: number | null; + } - export interface Duplicate { - /** - * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - */ - additional_documentation: string | File | null; + export interface Duplicate { + /** + * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + */ + additional_documentation: string | File | null; - /** - * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for. - */ - card_statement: string | File | null; + /** + * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the card statement showing that the product had already been paid for. + */ + card_statement: string | File | null; - /** - * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash. - */ - cash_receipt: string | File | null; + /** + * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Copy of the receipt showing that the product had been paid for in cash. + */ + cash_receipt: string | File | null; - /** - * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product. - */ - check_image: string | File | null; + /** + * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Image of the front and back of the check that was used to pay for the product. + */ + check_image: string | File | null; - /** - * Explanation of why the cardholder is disputing this transaction. - */ - explanation: string | null; + /** + * Explanation of why the cardholder is disputing this transaction. + */ + explanation: string | null; - /** - * Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of. Of the two or more transactions that are copies of each other, this is original undisputed one. - */ - original_transaction: string | null; - } + /** + * Transaction (e.g., ipi_...) that the disputed transaction is a duplicate of. Of the two or more transactions that are copies of each other, this is original undisputed one. + */ + original_transaction: string | null; + } - export interface Fraudulent { - /** - * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - */ - additional_documentation: string | File | null; + export interface Fraudulent { + /** + * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + */ + additional_documentation: string | File | null; - /** - * Explanation of why the cardholder is disputing this transaction. - */ - explanation: string | null; - } + /** + * Explanation of why the cardholder is disputing this transaction. + */ + explanation: string | null; + } - export interface MerchandiseNotAsDescribed { - /** - * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - */ - additional_documentation: string | File | null; + export interface MerchandiseNotAsDescribed { + /** + * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + */ + additional_documentation: string | File | null; - /** - * Explanation of why the cardholder is disputing this transaction. - */ - explanation: string | null; + /** + * Explanation of why the cardholder is disputing this transaction. + */ + explanation: string | null; - /** - * Date when the product was received. - */ - received_at: number | null; + /** + * Date when the product was received. + */ + received_at: number | null; - /** - * Description of the cardholder's attempt to return the product. - */ - return_description: string | null; + /** + * Description of the cardholder's attempt to return the product. + */ + return_description: string | null; - /** - * Result of cardholder's attempt to return the product. - */ - return_status: MerchandiseNotAsDescribed.ReturnStatus | null; + /** + * Result of cardholder's attempt to return the product. + */ + return_status: MerchandiseNotAsDescribed.ReturnStatus | null; - /** - * Date when the product was returned or attempted to be returned. - */ - returned_at: number | null; - } + /** + * Date when the product was returned or attempted to be returned. + */ + returned_at: number | null; + } - export interface NoValidAuthorization { - /** - * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - */ - additional_documentation: string | File | null; + export interface NoValidAuthorization { + /** + * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + */ + additional_documentation: string | File | null; - /** - * Explanation of why the cardholder is disputing this transaction. - */ - explanation: string | null; - } + /** + * Explanation of why the cardholder is disputing this transaction. + */ + explanation: string | null; + } - export interface NotReceived { - /** - * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - */ - additional_documentation: string | File | null; + export interface NotReceived { + /** + * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + */ + additional_documentation: string | File | null; - /** - * Date when the cardholder expected to receive the product. - */ - expected_at: number | null; + /** + * Date when the cardholder expected to receive the product. + */ + expected_at: number | null; - /** - * Explanation of why the cardholder is disputing this transaction. - */ - explanation: string | null; + /** + * Explanation of why the cardholder is disputing this transaction. + */ + explanation: string | null; - /** - * Description of the merchandise or service that was purchased. - */ - product_description: string | null; + /** + * Description of the merchandise or service that was purchased. + */ + product_description: string | null; - /** - * Whether the product was a merchandise or service. - */ - product_type: NotReceived.ProductType | null; - } + /** + * Whether the product was a merchandise or service. + */ + product_type: NotReceived.ProductType | null; + } - export interface Other { - /** - * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - */ - additional_documentation: string | File | null; + export interface Other { + /** + * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + */ + additional_documentation: string | File | null; - /** - * Explanation of why the cardholder is disputing this transaction. - */ - explanation: string | null; + /** + * Explanation of why the cardholder is disputing this transaction. + */ + explanation: string | null; - /** - * Description of the merchandise or service that was purchased. - */ - product_description: string | null; + /** + * Description of the merchandise or service that was purchased. + */ + product_description: string | null; - /** - * Whether the product was a merchandise or service. - */ - product_type: Other.ProductType | null; - } + /** + * Whether the product was a merchandise or service. + */ + product_type: Other.ProductType | null; + } - export type Reason = - | 'canceled' - | 'duplicate' - | 'fraudulent' - | 'merchandise_not_as_described' - | 'no_valid_authorization' - | 'not_received' - | 'other' - | 'service_not_as_described'; + export type Reason = + | 'canceled' + | 'duplicate' + | 'fraudulent' + | 'merchandise_not_as_described' + | 'no_valid_authorization' + | 'not_received' + | 'other' + | 'service_not_as_described'; - export interface ServiceNotAsDescribed { - /** - * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. - */ - additional_documentation: string | File | null; + export interface ServiceNotAsDescribed { + /** + * (ID of a [file upload](https://stripe.com/docs/guides/file-upload)) Additional documentation supporting the dispute. + */ + additional_documentation: string | File | null; - /** - * Date when order was canceled. - */ - canceled_at: number | null; + /** + * Date when order was canceled. + */ + canceled_at: number | null; - /** - * Reason for canceling the order. - */ - cancellation_reason: string | null; + /** + * Reason for canceling the order. + */ + cancellation_reason: string | null; - /** - * Explanation of why the cardholder is disputing this transaction. - */ - explanation: string | null; + /** + * Explanation of why the cardholder is disputing this transaction. + */ + explanation: string | null; - /** - * Date when the product was received. - */ - received_at: number | null; - } + /** + * Date when the product was received. + */ + received_at: number | null; + } - export namespace Canceled { - export type ProductType = 'merchandise' | 'service'; + export namespace Canceled { + export type ProductType = 'merchandise' | 'service'; - export type ReturnStatus = 'merchant_rejected' | 'successful'; - } + export type ReturnStatus = 'merchant_rejected' | 'successful'; + } - export namespace MerchandiseNotAsDescribed { - export type ReturnStatus = 'merchant_rejected' | 'successful'; - } + export namespace MerchandiseNotAsDescribed { + export type ReturnStatus = 'merchant_rejected' | 'successful'; + } - export namespace NotReceived { - export type ProductType = 'merchandise' | 'service'; - } + export namespace NotReceived { + export type ProductType = 'merchandise' | 'service'; + } - export namespace Other { - export type ProductType = 'merchandise' | 'service'; - } + export namespace Other { + export type ProductType = 'merchandise' | 'service'; } } } diff --git a/src/resources/Issuing/PersonalizationDesigns.ts b/src/resources/Issuing/PersonalizationDesigns.ts index d0dc4d4769..7dd3cd436b 100644 --- a/src/resources/Issuing/PersonalizationDesigns.ts +++ b/src/resources/Issuing/PersonalizationDesigns.ts @@ -93,7 +93,7 @@ export interface PersonalizationDesign { /** * Hash containing carrier text, for use with physical bundles that support carrier text. */ - carrier_text: Issuing.PersonalizationDesign.CarrierText | null; + carrier_text: PersonalizationDesign.CarrierText | null; /** * Time at which the object was created. Measured in seconds since the Unix epoch. @@ -125,85 +125,83 @@ export interface PersonalizationDesign { */ physical_bundle: string | PhysicalBundle; - preferences: Issuing.PersonalizationDesign.Preferences; + preferences: PersonalizationDesign.Preferences; - rejection_reasons: Issuing.PersonalizationDesign.RejectionReasons; + rejection_reasons: PersonalizationDesign.RejectionReasons; /** * Whether this personalization design can be used to create cards. */ - status: Issuing.PersonalizationDesign.Status; + status: PersonalizationDesign.Status; } -export namespace Issuing { - export namespace PersonalizationDesign { - export interface CarrierText { - /** - * The footer body text of the carrier letter. - */ - footer_body: string | null; - - /** - * The footer title text of the carrier letter. - */ - footer_title: string | null; +export namespace PersonalizationDesign { + export interface CarrierText { + /** + * The footer body text of the carrier letter. + */ + footer_body: string | null; - /** - * The header body text of the carrier letter. - */ - header_body: string | null; + /** + * The footer title text of the carrier letter. + */ + footer_title: string | null; - /** - * The header title text of the carrier letter. - */ - header_title: string | null; - } + /** + * The header body text of the carrier letter. + */ + header_body: string | null; - export interface Preferences { - /** - * Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design. - */ - is_default: boolean; + /** + * The header title text of the carrier letter. + */ + header_title: string | null; + } - /** - * Whether this personalization design is used to create cards when one is not specified and a default for this connected account does not exist. - */ - is_platform_default: boolean | null; - } + export interface Preferences { + /** + * Whether we use this personalization design to create cards when one isn't specified. A connected account uses the Connect platform's default design if no personalization design is set as the default design. + */ + is_default: boolean; - export interface RejectionReasons { - /** - * The reason(s) the card logo was rejected. - */ - card_logo: Array | null; + /** + * Whether this personalization design is used to create cards when one is not specified and a default for this connected account does not exist. + */ + is_platform_default: boolean | null; + } - /** - * The reason(s) the carrier text was rejected. - */ - carrier_text: Array | null; - } + export interface RejectionReasons { + /** + * The reason(s) the card logo was rejected. + */ + card_logo: Array | null; - export type Status = 'active' | 'inactive' | 'rejected' | 'review'; + /** + * The reason(s) the carrier text was rejected. + */ + carrier_text: Array | null; + } - export namespace RejectionReasons { - export type CardLogo = - | 'geographic_location' - | 'inappropriate' - | 'network_name' - | 'non_binary_image' - | 'non_fiat_currency' - | 'other' - | 'other_entity' - | 'promotional_material'; - - export type CarrierText = - | 'geographic_location' - | 'inappropriate' - | 'network_name' - | 'non_fiat_currency' - | 'other' - | 'other_entity' - | 'promotional_material'; - } + export type Status = 'active' | 'inactive' | 'rejected' | 'review'; + + export namespace RejectionReasons { + export type CardLogo = + | 'geographic_location' + | 'inappropriate' + | 'network_name' + | 'non_binary_image' + | 'non_fiat_currency' + | 'other' + | 'other_entity' + | 'promotional_material'; + + export type CarrierText = + | 'geographic_location' + | 'inappropriate' + | 'network_name' + | 'non_fiat_currency' + | 'other' + | 'other_entity' + | 'promotional_material'; } } export namespace Issuing { diff --git a/src/resources/Issuing/PhysicalBundles.ts b/src/resources/Issuing/PhysicalBundles.ts index 13f84b4987..eca84d0718 100644 --- a/src/resources/Issuing/PhysicalBundles.ts +++ b/src/resources/Issuing/PhysicalBundles.ts @@ -49,7 +49,7 @@ export interface PhysicalBundle { */ object: 'issuing.physical_bundle'; - features: Issuing.PhysicalBundle.Features; + features: PhysicalBundle.Features; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -64,43 +64,41 @@ export interface PhysicalBundle { /** * Whether this physical bundle can be used to create cards. */ - status: Issuing.PhysicalBundle.Status; + status: PhysicalBundle.Status; /** * Whether this physical bundle is a standard Stripe offering or custom-made for you. */ - type: Issuing.PhysicalBundle.Type; + type: PhysicalBundle.Type; } -export namespace Issuing { - export namespace PhysicalBundle { - export interface Features { - /** - * The policy for how to use card logo images in a card design with this physical bundle. - */ - card_logo: Features.CardLogo; - - /** - * The policy for how to use carrier letter text in a card design with this physical bundle. - */ - carrier_text: Features.CarrierText; - - /** - * The policy for how to use a second line on a card with this physical bundle. - */ - second_line: Features.SecondLine; - } +export namespace PhysicalBundle { + export interface Features { + /** + * The policy for how to use card logo images in a card design with this physical bundle. + */ + card_logo: Features.CardLogo; - export type Status = 'active' | 'inactive' | 'review'; + /** + * The policy for how to use carrier letter text in a card design with this physical bundle. + */ + carrier_text: Features.CarrierText; - export type Type = 'custom' | 'standard'; + /** + * The policy for how to use a second line on a card with this physical bundle. + */ + second_line: Features.SecondLine; + } + + export type Status = 'active' | 'inactive' | 'review'; + + export type Type = 'custom' | 'standard'; - export namespace Features { - export type CardLogo = 'optional' | 'required' | 'unsupported'; + export namespace Features { + export type CardLogo = 'optional' | 'required' | 'unsupported'; - export type CarrierText = 'optional' | 'required' | 'unsupported'; + export type CarrierText = 'optional' | 'required' | 'unsupported'; - export type SecondLine = 'optional' | 'required' | 'unsupported'; - } + export type SecondLine = 'optional' | 'required' | 'unsupported'; } } export namespace Issuing { diff --git a/src/resources/Issuing/Settlements.ts b/src/resources/Issuing/Settlements.ts index 16230b1766..bba29ad2ca 100644 --- a/src/resources/Issuing/Settlements.ts +++ b/src/resources/Issuing/Settlements.ts @@ -56,7 +56,7 @@ export interface Settlement { /** * The card network for this settlement report. One of ["visa", "maestro", "mastercard"] */ - network: Issuing.Settlement.Network; + network: Settlement.Network; /** * The total amount of fees owed to the network. @@ -86,7 +86,7 @@ export interface Settlement { /** * The current processing status of this settlement. */ - status: Issuing.Settlement.Status; + status: Settlement.Status; /** * The total transaction amount reflected in this settlement. @@ -98,10 +98,8 @@ export interface Settlement { */ transaction_count: number; } -export namespace Issuing { - export namespace Settlement { - export type Network = 'maestro' | 'mastercard' | 'visa'; +export namespace Settlement { + export type Network = 'maestro' | 'mastercard' | 'visa'; - export type Status = 'complete' | 'pending'; - } + export type Status = 'complete' | 'pending'; } diff --git a/src/resources/Issuing/Tokens.ts b/src/resources/Issuing/Tokens.ts index 601fcaa6ed..14850f31f0 100644 --- a/src/resources/Issuing/Tokens.ts +++ b/src/resources/Issuing/Tokens.ts @@ -87,9 +87,9 @@ export interface Token { /** * The token service provider / card network associated with the token. */ - network: Issuing.Token.Network; + network: Token.Network; - network_data?: Issuing.Token.NetworkData; + network_data?: Token.NetworkData; /** * Time at which the token was last updated by the card network. Measured in seconds since the Unix epoch. @@ -99,215 +99,213 @@ export interface Token { /** * The usage state of the token. */ - status: Issuing.Token.Status; + status: Token.Status; /** * The digital wallet for this token, if one was used. */ - wallet_provider?: Issuing.Token.WalletProvider; + wallet_provider?: Token.WalletProvider; } -export namespace Issuing { - export namespace Token { - export type Network = 'mastercard' | 'visa'; +export namespace Token { + export type Network = 'mastercard' | 'visa'; + + export interface NetworkData { + device?: NetworkData.Device; + + mastercard?: NetworkData.Mastercard; + + /** + * The network that the token is associated with. An additional hash is included with a name matching this value, containing tokenization data specific to the card network. + */ + type: NetworkData.Type; + + visa?: NetworkData.Visa; - export interface NetworkData { - device?: NetworkData.Device; + wallet_provider?: NetworkData.WalletProvider; + } + + export type Status = 'active' | 'deleted' | 'requested' | 'suspended'; - mastercard?: NetworkData.Mastercard; + export type WalletProvider = 'apple_pay' | 'google_pay' | 'samsung_pay'; + export namespace NetworkData { + export interface Device { /** - * The network that the token is associated with. An additional hash is included with a name matching this value, containing tokenization data specific to the card network. + * An obfuscated ID derived from the device ID. */ - type: NetworkData.Type; + device_fingerprint?: string; - visa?: NetworkData.Visa; - - wallet_provider?: NetworkData.WalletProvider; - } + /** + * The IP address of the device at provisioning time. + */ + ip_address?: string; - export type Status = 'active' | 'deleted' | 'requested' | 'suspended'; + /** + * The geographic latitude/longitude coordinates of the device at provisioning time. The format is [+-]decimal/[+-]decimal. + */ + location?: string; - export type WalletProvider = 'apple_pay' | 'google_pay' | 'samsung_pay'; + /** + * The name of the device used for tokenization. + */ + name?: string; - export namespace NetworkData { - export interface Device { - /** - * An obfuscated ID derived from the device ID. - */ - device_fingerprint?: string; + /** + * The phone number of the device used for tokenization. + */ + phone_number?: string; - /** - * The IP address of the device at provisioning time. - */ - ip_address?: string; + /** + * The type of device used for tokenization. + */ + type?: Device.Type; + } - /** - * The geographic latitude/longitude coordinates of the device at provisioning time. The format is [+-]decimal/[+-]decimal. - */ - location?: string; + export interface Mastercard { + /** + * A unique reference ID from MasterCard to represent the card account number. + */ + card_reference_id?: string; - /** - * The name of the device used for tokenization. - */ - name?: string; + /** + * The network-unique identifier for the token. + */ + token_reference_id: string; - /** - * The phone number of the device used for tokenization. - */ - phone_number?: string; + /** + * The ID of the entity requesting tokenization, specific to MasterCard. + */ + token_requestor_id: string; - /** - * The type of device used for tokenization. - */ - type?: Device.Type; - } + /** + * The name of the entity requesting tokenization, if known. This is directly provided from MasterCard. + */ + token_requestor_name?: string; + } - export interface Mastercard { - /** - * A unique reference ID from MasterCard to represent the card account number. - */ - card_reference_id?: string; + export type Type = 'mastercard' | 'visa'; - /** - * The network-unique identifier for the token. - */ - token_reference_id: string; + export interface Visa { + /** + * A unique reference ID from Visa to represent the card account number. + */ + card_reference_id: string | null; - /** - * The ID of the entity requesting tokenization, specific to MasterCard. - */ - token_requestor_id: string; + /** + * The network-unique identifier for the token. + */ + token_reference_id: string; - /** - * The name of the entity requesting tokenization, if known. This is directly provided from MasterCard. - */ - token_requestor_name?: string; - } + /** + * The ID of the entity requesting tokenization, specific to Visa. + */ + token_requestor_id: string; - export type Type = 'mastercard' | 'visa'; + /** + * Degree of risk associated with the token between `01` and `99`, with higher number indicating higher risk. A `00` value indicates the token was not scored by Visa. + */ + token_risk_score?: string; + } - export interface Visa { - /** - * A unique reference ID from Visa to represent the card account number. - */ - card_reference_id: string | null; + export interface WalletProvider { + /** + * The wallet provider-given account ID of the digital wallet the token belongs to. + */ + account_id?: string; - /** - * The network-unique identifier for the token. - */ - token_reference_id: string; + /** + * An evaluation on the trustworthiness of the wallet account between 1 and 5. A higher score indicates more trustworthy. + */ + account_trust_score?: number; - /** - * The ID of the entity requesting tokenization, specific to Visa. - */ - token_requestor_id: string; + /** + * The method used for tokenizing a card. + */ + card_number_source?: WalletProvider.CardNumberSource; - /** - * Degree of risk associated with the token between `01` and `99`, with higher number indicating higher risk. A `00` value indicates the token was not scored by Visa. - */ - token_risk_score?: string; - } + cardholder_address?: WalletProvider.CardholderAddress; - export interface WalletProvider { - /** - * The wallet provider-given account ID of the digital wallet the token belongs to. - */ - account_id?: string; + /** + * The name of the cardholder tokenizing the card. + */ + cardholder_name?: string; - /** - * An evaluation on the trustworthiness of the wallet account between 1 and 5. A higher score indicates more trustworthy. - */ - account_trust_score?: number; + /** + * An evaluation on the trustworthiness of the device. A higher score indicates more trustworthy. + */ + device_trust_score?: number; - /** - * The method used for tokenizing a card. - */ - card_number_source?: WalletProvider.CardNumberSource; + /** + * The hashed email address of the cardholder's account with the wallet provider. + */ + hashed_account_email_address?: string; - cardholder_address?: WalletProvider.CardholderAddress; + /** + * The reasons for suggested tokenization given by the card network. + */ + reason_codes?: Array; - /** - * The name of the cardholder tokenizing the card. - */ - cardholder_name?: string; + /** + * The recommendation on responding to the tokenization request. + */ + suggested_decision?: WalletProvider.SuggestedDecision; - /** - * An evaluation on the trustworthiness of the device. A higher score indicates more trustworthy. - */ - device_trust_score?: number; + /** + * The version of the standard for mapping reason codes followed by the wallet provider. + */ + suggested_decision_version?: string; + } - /** - * The hashed email address of the cardholder's account with the wallet provider. - */ - hashed_account_email_address?: string; + export namespace Device { + export type Type = 'other' | 'phone' | 'watch'; + } - /** - * The reasons for suggested tokenization given by the card network. - */ - reason_codes?: Array; + export namespace WalletProvider { + export type CardNumberSource = 'app' | 'manual' | 'on_file' | 'other'; + export interface CardholderAddress { /** - * The recommendation on responding to the tokenization request. + * The street address of the cardholder tokenizing the card. */ - suggested_decision?: WalletProvider.SuggestedDecision; + line1: string; /** - * The version of the standard for mapping reason codes followed by the wallet provider. + * The postal code of the cardholder tokenizing the card. */ - suggested_decision_version?: string; + postal_code: string; } - export namespace Device { - export type Type = 'other' | 'phone' | 'watch'; - } - - export namespace WalletProvider { - export type CardNumberSource = 'app' | 'manual' | 'on_file' | 'other'; - - export interface CardholderAddress { - /** - * The street address of the cardholder tokenizing the card. - */ - line1: string; - - /** - * The postal code of the cardholder tokenizing the card. - */ - postal_code: string; - } - - export type ReasonCode = - | 'account_card_too_new' - | 'account_recently_changed' - | 'account_too_new' - | 'account_too_new_since_launch' - | 'additional_device' - | 'data_expired' - | 'defer_id_v_decision' - | 'device_recently_lost' - | 'good_activity_history' - | 'has_suspended_tokens' - | 'high_risk' - | 'inactive_account' - | 'long_account_tenure' - | 'low_account_score' - | 'low_device_score' - | 'low_phone_number_score' - | 'network_service_error' - | 'outside_home_territory' - | 'provisioning_cardholder_mismatch' - | 'provisioning_device_and_cardholder_mismatch' - | 'provisioning_device_mismatch' - | 'same_device_no_prior_authentication' - | 'same_device_successful_prior_authentication' - | 'software_update' - | 'suspicious_activity' - | 'too_many_different_cardholders' - | 'too_many_recent_attempts' - | 'too_many_recent_tokens'; - - export type SuggestedDecision = 'approve' | 'decline' | 'require_auth'; - } + export type ReasonCode = + | 'account_card_too_new' + | 'account_recently_changed' + | 'account_too_new' + | 'account_too_new_since_launch' + | 'additional_device' + | 'data_expired' + | 'defer_id_v_decision' + | 'device_recently_lost' + | 'good_activity_history' + | 'has_suspended_tokens' + | 'high_risk' + | 'inactive_account' + | 'long_account_tenure' + | 'low_account_score' + | 'low_device_score' + | 'low_phone_number_score' + | 'network_service_error' + | 'outside_home_territory' + | 'provisioning_cardholder_mismatch' + | 'provisioning_device_and_cardholder_mismatch' + | 'provisioning_device_mismatch' + | 'same_device_no_prior_authentication' + | 'same_device_successful_prior_authentication' + | 'software_update' + | 'suspicious_activity' + | 'too_many_different_cardholders' + | 'too_many_recent_attempts' + | 'too_many_recent_tokens'; + + export type SuggestedDecision = 'approve' | 'decline' | 'require_auth'; } } } diff --git a/src/resources/Issuing/Transactions.ts b/src/resources/Issuing/Transactions.ts index 71f0d277c5..ea7336f623 100644 --- a/src/resources/Issuing/Transactions.ts +++ b/src/resources/Issuing/Transactions.ts @@ -344,7 +344,7 @@ export interface Transaction { /** * Detailed breakdown of amount components. These amounts are denominated in `currency` and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). */ - amount_details: Issuing.Transaction.AmountDetails | null; + amount_details: Transaction.AmountDetails | null; /** * The `Authorization` object that led to this transaction. @@ -396,7 +396,7 @@ export interface Transaction { */ merchant_currency: string; - merchant_data: Issuing.Transaction.MerchantData; + merchant_data: Transaction.MerchantData; /** * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. @@ -406,12 +406,12 @@ export interface Transaction { /** * Details about the transaction, such as processing dates, set by the card network. */ - network_data: Issuing.Transaction.NetworkData | null; + network_data: Transaction.NetworkData | null; /** * Additional purchase information that is optionally provided by the merchant. */ - purchase_details?: Issuing.Transaction.PurchaseDetails | null; + purchase_details?: Transaction.PurchaseDetails | null; /** * The ID of the [settlement](https://docs.stripe.com/api/issuing/settlements) to which this transaction belongs. @@ -426,371 +426,369 @@ export interface Transaction { /** * [Treasury](https://docs.stripe.com/api/treasury) details related to this transaction if it was created on a [FinancialAccount](/docs/api/treasury/financial_accounts */ - treasury?: Issuing.Transaction.Treasury | null; + treasury?: Transaction.Treasury | null; /** * The nature of the transaction. */ - type: Issuing.Transaction.Type; + type: Transaction.Type; /** * The digital wallet used for this transaction. One of `apple_pay`, `google_pay`, or `samsung_pay`. */ - wallet: Issuing.Transaction.Wallet | null; + wallet: Transaction.Wallet | null; } -export namespace Issuing { - export namespace Transaction { - export interface AmountDetails { - /** - * The fee charged by the ATM for the cash withdrawal. - */ - atm_fee: number | null; +export namespace Transaction { + export interface AmountDetails { + /** + * The fee charged by the ATM for the cash withdrawal. + */ + atm_fee: number | null; - /** - * The amount of cash requested by the cardholder. - */ - cashback_amount: number | null; - } + /** + * The amount of cash requested by the cardholder. + */ + cashback_amount: number | null; + } - export interface MerchantData { - /** - * A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values. - */ - category: string; + export interface MerchantData { + /** + * A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values. + */ + category: string; - /** - * The merchant category code for the seller's business - */ - category_code: string; + /** + * The merchant category code for the seller's business + */ + category_code: string; + + /** + * City where the seller is located + */ + city: string | null; + + /** + * Country where the seller is located + */ + country: string | null; + + /** + * Name of the seller + */ + name: string | null; + + /** + * Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant. + */ + network_id: string; + + /** + * Postal code where the seller is located + */ + postal_code: string | null; + + /** + * State where the seller is located + */ + state: string | null; + + /** + * The seller's tax identification number. Currently populated for French merchants only. + */ + tax_id: string | null; + + /** + * An ID assigned by the seller to the location of the sale. + */ + terminal_id: string | null; + /** + * URL provided by the merchant on a 3DS request + */ + url: string | null; + } + + export interface NetworkData { + /** + * A code created by Stripe which is shared with the merchant to validate the authorization. This field will be populated if the authorization message was approved. The code typically starts with the letter "S", followed by a six-digit number. For example, "S498162". Please note that the code is not guaranteed to be unique across authorizations. + */ + authorization_code: string | null; + + /** + * The date the transaction was processed by the card network. This can be different from the date the seller recorded the transaction depending on when the acquirer submits the transaction to the network. + */ + processing_date: string | null; + + /** + * Unique identifier for the authorization assigned by the card network used to match subsequent messages, disputes, and transactions. + */ + transaction_id: string | null; + } + + export interface PurchaseDetails { + /** + * Fleet-specific information for transactions using Fleet cards. + */ + fleet: PurchaseDetails.Fleet | null; + + /** + * Information about the flight that was purchased with this transaction. + */ + flight: PurchaseDetails.Flight | null; + + /** + * Information about fuel that was purchased with this transaction. + */ + fuel: PurchaseDetails.Fuel | null; + + /** + * Information about lodging that was purchased with this transaction. + */ + lodging: PurchaseDetails.Lodging | null; + + /** + * The line items in the purchase. + */ + receipt: Array | null; + + /** + * A merchant-specific order number. + */ + reference: string | null; + } + + export interface Treasury { + /** + * The Treasury [ReceivedCredit](https://docs.stripe.com/api/treasury/received_credits) representing this Issuing transaction if it is a refund + */ + received_credit: string | null; + + /** + * The Treasury [ReceivedDebit](https://docs.stripe.com/api/treasury/received_debits) representing this Issuing transaction if it is a capture + */ + received_debit: string | null; + } + + export type Type = 'capture' | 'refund'; + + export type Wallet = 'apple_pay' | 'google_pay' | 'samsung_pay'; + + export namespace PurchaseDetails { + export interface Fleet { /** - * City where the seller is located + * Answers to prompts presented to cardholder at point of sale. */ - city: string | null; + cardholder_prompt_data: Fleet.CardholderPromptData | null; /** - * Country where the seller is located + * The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`. */ - country: string | null; + purchase_type: string | null; /** - * Name of the seller + * More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data. */ - name: string | null; + reported_breakdown: Fleet.ReportedBreakdown | null; /** - * Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant. + * The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`. */ - network_id: string; + service_type: string | null; + } + export interface Flight { /** - * Postal code where the seller is located + * The time that the flight departed. */ - postal_code: string | null; + departure_at: number | null; /** - * State where the seller is located + * The name of the passenger. */ - state: string | null; + passenger_name: string | null; /** - * The seller's tax identification number. Currently populated for French merchants only. + * Whether the ticket is refundable. */ - tax_id: string | null; + refundable: boolean | null; /** - * An ID assigned by the seller to the location of the sale. + * The legs of the trip. */ - terminal_id: string | null; + segments: Array | null; /** - * URL provided by the merchant on a 3DS request + * The travel agency that issued the ticket. */ - url: string | null; + travel_agency: string | null; } - export interface NetworkData { + export interface Fuel { /** - * A code created by Stripe which is shared with the merchant to validate the authorization. This field will be populated if the authorization message was approved. The code typically starts with the letter "S", followed by a six-digit number. For example, "S498162". Please note that the code is not guaranteed to be unique across authorizations. + * [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. */ - authorization_code: string | null; + industry_product_code: string | null; /** - * The date the transaction was processed by the card network. This can be different from the date the seller recorded the transaction depending on when the acquirer submits the transaction to the network. + * The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. */ - processing_date: string | null; + quantity_decimal: Decimal | null; /** - * Unique identifier for the authorization assigned by the card network used to match subsequent messages, disputes, and transactions. + * The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`. */ - transaction_id: string | null; - } + type: string; - export interface PurchaseDetails { /** - * Fleet-specific information for transactions using Fleet cards. + * The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`. */ - fleet: PurchaseDetails.Fleet | null; + unit: string; /** - * Information about the flight that was purchased with this transaction. + * The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places. */ - flight: PurchaseDetails.Flight | null; + unit_cost_decimal: Decimal; + } + export interface Lodging { /** - * Information about fuel that was purchased with this transaction. + * The time of checking into the lodging. */ - fuel: PurchaseDetails.Fuel | null; + check_in_at: number | null; /** - * Information about lodging that was purchased with this transaction. + * The number of nights stayed at the lodging. */ - lodging: PurchaseDetails.Lodging | null; + nights: number | null; + } + export interface Receipt { /** - * The line items in the purchase. + * The description of the item. The maximum length of this field is 26 characters. */ - receipt: Array | null; + description: string | null; /** - * A merchant-specific order number. + * The quantity of the item. */ - reference: string | null; - } + quantity: number | null; - export interface Treasury { /** - * The Treasury [ReceivedCredit](https://docs.stripe.com/api/treasury/received_credits) representing this Issuing transaction if it is a refund + * The total for this line item in cents. */ - received_credit: string | null; + total: number | null; /** - * The Treasury [ReceivedDebit](https://docs.stripe.com/api/treasury/received_debits) representing this Issuing transaction if it is a capture + * The unit cost of the item in cents. */ - received_debit: string | null; + unit_cost: number | null; } - export type Type = 'capture' | 'refund'; - - export type Wallet = 'apple_pay' | 'google_pay' | 'samsung_pay'; - - export namespace PurchaseDetails { - export interface Fleet { + export namespace Fleet { + export interface CardholderPromptData { /** - * Answers to prompts presented to cardholder at point of sale. + * Driver ID. */ - cardholder_prompt_data: Fleet.CardholderPromptData | null; + driver_id: string | null; /** - * The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`. + * Odometer reading. */ - purchase_type: string | null; + odometer: number | null; /** - * More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data. + * An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type. */ - reported_breakdown: Fleet.ReportedBreakdown | null; - - /** - * The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`. - */ - service_type: string | null; - } + unspecified_id: string | null; - export interface Flight { /** - * The time that the flight departed. + * User ID. */ - departure_at: number | null; + user_id: string | null; /** - * The name of the passenger. + * Vehicle number. */ - passenger_name: string | null; + vehicle_number: string | null; + } + export interface ReportedBreakdown { /** - * Whether the ticket is refundable. + * Breakdown of fuel portion of the purchase. */ - refundable: boolean | null; + fuel: ReportedBreakdown.Fuel | null; /** - * The legs of the trip. + * Breakdown of non-fuel portion of the purchase. */ - segments: Array | null; + non_fuel: ReportedBreakdown.NonFuel | null; /** - * The travel agency that issued the ticket. + * Information about tax included in this transaction. */ - travel_agency: string | null; + tax: ReportedBreakdown.Tax | null; } - export interface Fuel { - /** - * [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased. - */ - industry_product_code: string | null; - - /** - * The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places. - */ - quantity_decimal: Decimal | null; + export namespace ReportedBreakdown { + export interface Fuel { + /** + * Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. + */ + gross_amount_decimal: Decimal | null; + } - /** - * The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`. - */ - type: string; + export interface NonFuel { + /** + * Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. + */ + gross_amount_decimal: Decimal | null; + } - /** - * The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`. - */ - unit: string; + export interface Tax { + /** + * Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. + */ + local_amount_decimal: Decimal | null; - /** - * The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places. - */ - unit_cost_decimal: Decimal; + /** + * Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. + */ + national_amount_decimal: Decimal | null; + } } + } - export interface Lodging { + export namespace Flight { + export interface Segment { /** - * The time of checking into the lodging. + * The three-letter IATA airport code of the flight's destination. */ - check_in_at: number | null; + arrival_airport_code: string | null; /** - * The number of nights stayed at the lodging. + * The airline carrier code. */ - nights: number | null; - } + carrier: string | null; - export interface Receipt { /** - * The description of the item. The maximum length of this field is 26 characters. + * The three-letter IATA airport code that the flight departed from. */ - description: string | null; + departure_airport_code: string | null; /** - * The quantity of the item. + * The flight number. */ - quantity: number | null; + flight_number: string | null; /** - * The total for this line item in cents. + * The flight's service class. */ - total: number | null; + service_class: string | null; /** - * The unit cost of the item in cents. + * Whether a stopover is allowed on this flight. */ - unit_cost: number | null; - } - - export namespace Fleet { - export interface CardholderPromptData { - /** - * Driver ID. - */ - driver_id: string | null; - - /** - * Odometer reading. - */ - odometer: number | null; - - /** - * An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type. - */ - unspecified_id: string | null; - - /** - * User ID. - */ - user_id: string | null; - - /** - * Vehicle number. - */ - vehicle_number: string | null; - } - - export interface ReportedBreakdown { - /** - * Breakdown of fuel portion of the purchase. - */ - fuel: ReportedBreakdown.Fuel | null; - - /** - * Breakdown of non-fuel portion of the purchase. - */ - non_fuel: ReportedBreakdown.NonFuel | null; - - /** - * Information about tax included in this transaction. - */ - tax: ReportedBreakdown.Tax | null; - } - - export namespace ReportedBreakdown { - export interface Fuel { - /** - * Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes. - */ - gross_amount_decimal: Decimal | null; - } - - export interface NonFuel { - /** - * Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes. - */ - gross_amount_decimal: Decimal | null; - } - - export interface Tax { - /** - * Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax. - */ - local_amount_decimal: Decimal | null; - - /** - * Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax. - */ - national_amount_decimal: Decimal | null; - } - } - } - - export namespace Flight { - export interface Segment { - /** - * The three-letter IATA airport code of the flight's destination. - */ - arrival_airport_code: string | null; - - /** - * The airline carrier code. - */ - carrier: string | null; - - /** - * The three-letter IATA airport code that the flight departed from. - */ - departure_airport_code: string | null; - - /** - * The flight number. - */ - flight_number: string | null; - - /** - * The flight's service class. - */ - service_class: string | null; - - /** - * Whether a stopover is allowed on this flight. - */ - stopover_allowed: boolean | null; - } + stopover_allowed: boolean | null; } } } diff --git a/src/resources/Privacy/RedactionJobValidationErrors.ts b/src/resources/Privacy/RedactionJobValidationErrors.ts index a8625c26a8..d3016d864e 100644 --- a/src/resources/Privacy/RedactionJobValidationErrors.ts +++ b/src/resources/Privacy/RedactionJobValidationErrors.ts @@ -15,37 +15,35 @@ export interface RedactionJobValidationError { /** * A code indicating the reason for the error. */ - code: Privacy.RedactionJobValidationError.Code; + code: RedactionJobValidationError.Code; /** * If the error is related to a specific object, this field includes the object's identifier and object type. */ - erroring_object: Privacy.RedactionJobValidationError.ErroringObject | null; + erroring_object: RedactionJobValidationError.ErroringObject | null; /** * A human-readable message providing more details about the error. */ message: string; } -export namespace Privacy { - export namespace RedactionJobValidationError { - export type Code = - | 'invalid_cascading_source' - | 'invalid_file_purpose' - | 'invalid_state' - | 'locked_by_other_job' - | 'too_many_objects'; +export namespace RedactionJobValidationError { + export type Code = + | 'invalid_cascading_source' + | 'invalid_file_purpose' + | 'invalid_state' + | 'locked_by_other_job' + | 'too_many_objects'; - export interface ErroringObject { - /** - * Unique identifier for the object. - */ - id: string; + export interface ErroringObject { + /** + * Unique identifier for the object. + */ + id: string; - /** - * Erroring object type - */ - object_type: string; - } + /** + * Erroring object type + */ + object_type: string; } } diff --git a/src/resources/Privacy/RedactionJobs.ts b/src/resources/Privacy/RedactionJobs.ts index 37d5fd83f6..81ecff0989 100644 --- a/src/resources/Privacy/RedactionJobs.ts +++ b/src/resources/Privacy/RedactionJobs.ts @@ -167,84 +167,82 @@ export interface RedactionJob { /** * The objects to redact in this job. */ - objects?: Privacy.RedactionJob.Objects | null; + objects?: RedactionJob.Objects | null; /** * The status of the job. */ - status: Privacy.RedactionJob.Status; + status: RedactionJob.Status; /** * Validation behavior determines how a job validates objects for redaction eligibility. Default is `error`. */ - validation_behavior: Privacy.RedactionJob.ValidationBehavior | null; + validation_behavior: RedactionJob.ValidationBehavior | null; /** * The first 10 validation errors for the current validation attempt. Use the validation errors list endpoint to paginate through the full list. */ validation_errors?: ApiList; } -export namespace Privacy { - export namespace RedactionJob { - export interface Objects { - /** - * Charge object identifiers usually starting with `ch_` - */ - charges: Array | null; - - /** - * CheckoutSession object identifiers starting with `cs_` - */ - checkout_sessions: Array | null; - - /** - * Customer object identifiers starting with `cus_` - */ - customers: Array | null; - - /** - * Identity VerificationSessions object identifiers starting with `vs_` - */ - identity_verification_sessions: Array | null; - - /** - * Invoice object identifiers starting with `in_` - */ - invoices: Array | null; - - /** - * Issuing Cardholder object identifiers starting with `ich_` - */ - issuing_cardholders: Array | null; - - /** - * PaymentIntent object identifiers starting with `pi_` - */ - payment_intents: Array | null; - - /** - * Fraud ValueListItem object identifiers starting with `rsli_` - */ - radar_value_list_items: Array | null; - - /** - * SetupIntent object identifiers starting with `seti_` - */ - setup_intents: Array | null; - } +export namespace RedactionJob { + export interface Objects { + /** + * Charge object identifiers usually starting with `ch_` + */ + charges: Array | null; - export type Status = - | 'canceled' - | 'canceling' - | 'created' - | 'failed' - | 'ready' - | 'redacting' - | 'succeeded' - | 'validating'; + /** + * CheckoutSession object identifiers starting with `cs_` + */ + checkout_sessions: Array | null; - export type ValidationBehavior = 'error' | 'fix'; + /** + * Customer object identifiers starting with `cus_` + */ + customers: Array | null; + + /** + * Identity VerificationSessions object identifiers starting with `vs_` + */ + identity_verification_sessions: Array | null; + + /** + * Invoice object identifiers starting with `in_` + */ + invoices: Array | null; + + /** + * Issuing Cardholder object identifiers starting with `ich_` + */ + issuing_cardholders: Array | null; + + /** + * PaymentIntent object identifiers starting with `pi_` + */ + payment_intents: Array | null; + + /** + * Fraud ValueListItem object identifiers starting with `rsli_` + */ + radar_value_list_items: Array | null; + + /** + * SetupIntent object identifiers starting with `seti_` + */ + setup_intents: Array | null; } + + export type Status = + | 'canceled' + | 'canceling' + | 'created' + | 'failed' + | 'ready' + | 'redacting' + | 'succeeded' + | 'validating'; + + export type ValidationBehavior = 'error' | 'fix'; } export namespace Privacy { export interface RedactionJobCreateParams { diff --git a/src/resources/ProductCatalog/TrialOffers.ts b/src/resources/ProductCatalog/TrialOffers.ts index f2f1931170..fbc04c0998 100644 --- a/src/resources/ProductCatalog/TrialOffers.ts +++ b/src/resources/ProductCatalog/TrialOffers.ts @@ -31,9 +31,9 @@ export interface TrialOffer { */ object: 'product_catalog.trial_offer'; - duration: ProductCatalog.TrialOffer.Duration; + duration: TrialOffer.Duration; - end_behavior: ProductCatalog.TrialOffer.EndBehavior; + end_behavior: TrialOffer.EndBehavior; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -50,44 +50,42 @@ export interface TrialOffer { */ price: string | Price; } -export namespace ProductCatalog { - export namespace TrialOffer { - export interface Duration { - relative?: Duration.Relative; +export namespace TrialOffer { + export interface Duration { + relative?: Duration.Relative; - /** - * The type of trial offer duration. - */ - type: Duration.Type; - } + /** + * The type of trial offer duration. + */ + type: Duration.Type; + } - export interface EndBehavior { - transition: EndBehavior.Transition; + export interface EndBehavior { + transition: EndBehavior.Transition; + + /** + * The type of behavior when the trial offer ends. + */ + type: 'transition'; + } + export namespace Duration { + export interface Relative { /** - * The type of behavior when the trial offer ends. + * The number of iterations of the price's interval for this trial offer. */ - type: 'transition'; + iterations: number; } - export namespace Duration { - export interface Relative { - /** - * The number of iterations of the price's interval for this trial offer. - */ - iterations: number; - } - - export type Type = 'relative' | 'timestamp'; - } + export type Type = 'relative' | 'timestamp'; + } - export namespace EndBehavior { - export interface Transition { - /** - * The new price to use at the end of the trial offer period. - */ - price: string | Price; - } + export namespace EndBehavior { + export interface Transition { + /** + * The new price to use at the end of the trial offer period. + */ + price: string | Price; } } } diff --git a/src/resources/Radar/PaymentEvaluations.ts b/src/resources/Radar/PaymentEvaluations.ts index d151423587..a28748b755 100644 --- a/src/resources/Radar/PaymentEvaluations.ts +++ b/src/resources/Radar/PaymentEvaluations.ts @@ -35,7 +35,7 @@ export interface PaymentEvaluation { /** * Client device metadata attached to this payment evaluation. */ - client_device_metadata_details?: Radar.PaymentEvaluation.ClientDeviceMetadataDetails; + client_device_metadata_details?: PaymentEvaluation.ClientDeviceMetadataDetails; /** * Time at which the object was created. Measured in seconds since the Unix epoch. @@ -45,12 +45,12 @@ export interface PaymentEvaluation { /** * Customer details attached to this payment evaluation. */ - customer_details?: Radar.PaymentEvaluation.CustomerDetails; + customer_details?: PaymentEvaluation.CustomerDetails; /** * Event information associated with the payment evaluation, such as refunds, dispute, early fraud warnings, or user interventions. */ - events?: Array; + events?: Array; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -65,126 +65,196 @@ export interface PaymentEvaluation { /** * Indicates the final outcome for the payment evaluation. */ - outcome?: Radar.PaymentEvaluation.Outcome | null; + outcome?: PaymentEvaluation.Outcome | null; /** * Payment details attached to this payment evaluation. */ - payment_details?: Radar.PaymentEvaluation.PaymentDetails; + payment_details?: PaymentEvaluation.PaymentDetails; /** * Recommended action based on the score of the `fraudulent_payment` signal. Possible values are `block`, `continue` and `request_three_d_secure`. */ - recommended_action: Radar.PaymentEvaluation.RecommendedAction; + recommended_action: PaymentEvaluation.RecommendedAction; /** * Collection of signals for this payment evaluation. */ - signals: Radar.PaymentEvaluation.Signals; + signals: PaymentEvaluation.Signals; } -export namespace Radar { - export namespace PaymentEvaluation { - export interface ClientDeviceMetadataDetails { - /** - * ID for the Radar Session associated with the payment evaluation. A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. - */ - radar_session: string | null; - } +export namespace PaymentEvaluation { + export interface ClientDeviceMetadataDetails { + /** + * ID for the Radar Session associated with the payment evaluation. A [Radar Session](https://docs.stripe.com/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. + */ + radar_session: string | null; + } - export interface CustomerDetails { - /** - * The ID of the customer associated with the payment evaluation. - */ - customer: string | null; + export interface CustomerDetails { + /** + * The ID of the customer associated with the payment evaluation. + */ + customer: string | null; - /** - * The ID of the Account representing the customer associated with the payment evaluation. - */ - customer_account: string | null; + /** + * The ID of the Account representing the customer associated with the payment evaluation. + */ + customer_account: string | null; - /** - * The customer's email address. - */ - email: string | null; + /** + * The customer's email address. + */ + email: string | null; - /** - * The customer's full name or business name. - */ - name: string | null; + /** + * The customer's full name or business name. + */ + name: string | null; - /** - * The customer's phone number. - */ - phone: string | null; - } + /** + * The customer's phone number. + */ + phone: string | null; + } - export interface Event { - /** - * Dispute opened event details attached to this payment evaluation. - */ - dispute_opened?: Event.DisputeOpened; + export interface Event { + /** + * Dispute opened event details attached to this payment evaluation. + */ + dispute_opened?: Event.DisputeOpened; - /** - * Early Fraud Warning Received event details attached to this payment evaluation. - */ - early_fraud_warning_received?: Event.EarlyFraudWarningReceived; + /** + * Early Fraud Warning Received event details attached to this payment evaluation. + */ + early_fraud_warning_received?: Event.EarlyFraudWarningReceived; - /** - * Timestamp when the event occurred. - */ - occurred_at: number; + /** + * Timestamp when the event occurred. + */ + occurred_at: number; - /** - * Refunded Event details attached to this payment evaluation. - */ - refunded?: Event.Refunded; + /** + * Refunded Event details attached to this payment evaluation. + */ + refunded?: Event.Refunded; - /** - * Indicates the type of event attached to the payment evaluation. - */ - type: Event.Type; + /** + * Indicates the type of event attached to the payment evaluation. + */ + type: Event.Type; - /** - * User intervention raised event details attached to this payment evaluation - */ - user_intervention_raised?: Event.UserInterventionRaised; + /** + * User intervention raised event details attached to this payment evaluation + */ + user_intervention_raised?: Event.UserInterventionRaised; - /** - * User Intervention Resolved Event details attached to this payment evaluation - */ - user_intervention_resolved?: Event.UserInterventionResolved; - } + /** + * User Intervention Resolved Event details attached to this payment evaluation + */ + user_intervention_resolved?: Event.UserInterventionResolved; + } - export interface Outcome { - /** - * Details of a merchant_blocked outcome attached to this payment evaluation. - */ - merchant_blocked?: Outcome.MerchantBlocked; + export interface Outcome { + /** + * Details of a merchant_blocked outcome attached to this payment evaluation. + */ + merchant_blocked?: Outcome.MerchantBlocked; + + /** + * The PaymentIntent ID associated with the payment evaluation. + */ + payment_intent_id?: string; + /** + * Details of an rejected outcome attached to this payment evaluation. + */ + rejected?: Outcome.Rejected; + + /** + * Details of a succeeded outcome attached to this payment evaluation. + */ + succeeded?: Outcome.Succeeded; + + /** + * Indicates the outcome of the payment evaluation. + */ + type: Outcome.Type; + } + + export interface PaymentDetails { + /** + * Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). + */ + amount: number; + + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * An arbitrary string attached to the object. Often useful for displaying to users. + */ + description: string | null; + + /** + * Details about the payment's customer presence and type. + */ + money_movement_details: PaymentDetails.MoneyMovementDetails | null; + + /** + * Details about the payment method used for the payment. + */ + payment_method_details: PaymentDetails.PaymentMethodDetails | null; + + /** + * Shipping details for the payment evaluation. + */ + shipping_details: PaymentDetails.ShippingDetails | null; + + /** + * Payment statement descriptor. + */ + statement_descriptor: string | null; + } + + export type RecommendedAction = 'block' | 'continue'; + + export interface Signals { + /** + * A payment evaluation signal with evaluated_at, risk_level, and score fields. + */ + fraudulent_payment: Signals.FraudulentPayment; + } + + export namespace Event { + export interface DisputeOpened { /** - * The PaymentIntent ID associated with the payment evaluation. + * Amount to dispute for this payment. A positive integer representing how much to charge in [the smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (for example, 100 cents to charge 1.00 USD or 100 to charge 100 Yen, a zero-decimal currency). */ - payment_intent_id?: string; + amount: number; /** - * Details of an rejected outcome attached to this payment evaluation. + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). */ - rejected?: Outcome.Rejected; + currency: string; /** - * Details of a succeeded outcome attached to this payment evaluation. + * Reason given by cardholder for dispute. */ - succeeded?: Outcome.Succeeded; + reason: DisputeOpened.Reason; + } + export interface EarlyFraudWarningReceived { /** - * Indicates the outcome of the payment evaluation. + * The type of fraud labeled by the issuer. */ - type: Outcome.Type; + fraud_type: EarlyFraudWarningReceived.FraudType; } - export interface PaymentDetails { + export interface Refunded { /** - * Amount intended to be collected by this payment. A positive integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The minimum amount is $0.50 US or [equivalent in charge currency](https://docs.stripe.com/currencies#minimum-and-maximum-charge-amounts). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). + * Amount refunded for this payment. A positive integer representing how much to charge in [the smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (for example, 100 cents to charge 1.00 USD or 100 to charge 100 Yen, a zero-decimal currency). */ amount: number; @@ -194,410 +264,334 @@ export namespace Radar { currency: string; /** - * An arbitrary string attached to the object. Often useful for displaying to users. + * Indicates the reason for the refund. */ - description: string | null; + reason: Refunded.Reason; + } - /** - * Details about the payment's customer presence and type. - */ - money_movement_details: PaymentDetails.MoneyMovementDetails | null; + export type Type = + | 'dispute_opened' + | 'early_fraud_warning_received' + | 'refunded' + | 'user_intervention_raised' + | 'user_intervention_resolved'; + export interface UserInterventionRaised { /** - * Details about the payment method used for the payment. + * User intervention raised custom event details attached to this payment evaluation */ - payment_method_details: PaymentDetails.PaymentMethodDetails | null; + custom?: UserInterventionRaised.Custom; /** - * Shipping details for the payment evaluation. + * Unique identifier for the user intervention event. */ - shipping_details: PaymentDetails.ShippingDetails | null; + key: string; /** - * Payment statement descriptor. + * Type of user intervention raised. */ - statement_descriptor: string | null; + type: UserInterventionRaised.Type; } - export type RecommendedAction = 'block' | 'continue'; + export interface UserInterventionResolved { + /** + * Unique ID of this intervention. Use this to provide the result. + */ + key: string; - export interface Signals { /** - * A payment evaluation signal with evaluated_at, risk_level, and score fields. + * Result of the intervention if it has been completed. */ - fraudulent_payment: Signals.FraudulentPayment; + outcome: UserInterventionResolved.Outcome | null; } - export namespace Event { - export interface DisputeOpened { - /** - * Amount to dispute for this payment. A positive integer representing how much to charge in [the smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (for example, 100 cents to charge 1.00 USD or 100 to charge 100 Yen, a zero-decimal currency). - */ - amount: number; + export namespace DisputeOpened { + export type Reason = + | 'account_not_available' + | 'credit_not_processed' + | 'customer_initiated' + | 'duplicate' + | 'fraudulent' + | 'general' + | 'noncompliant' + | 'product_not_received' + | 'product_unacceptable' + | 'subscription_canceled' + | 'unrecognized'; + } - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency: string; + export namespace EarlyFraudWarningReceived { + export type FraudType = + | 'made_with_lost_card' + | 'made_with_stolen_card' + | 'other' + | 'unauthorized_use_of_card'; + } - /** - * Reason given by cardholder for dispute. - */ - reason: DisputeOpened.Reason; - } + export namespace Refunded { + export type Reason = + | 'duplicate' + | 'fraudulent' + | 'other' + | 'requested_by_customer'; + } - export interface EarlyFraudWarningReceived { + export namespace UserInterventionRaised { + export interface Custom { /** - * The type of fraud labeled by the issuer. + * Custom type of user intervention raised. The string must use a snake case description for the type of intervention performed. */ - fraud_type: EarlyFraudWarningReceived.FraudType; + type: string; } - export interface Refunded { - /** - * Amount refunded for this payment. A positive integer representing how much to charge in [the smallest currency unit](https://docs.stripe.com/currencies#zero-decimal) (for example, 100 cents to charge 1.00 USD or 100 to charge 100 Yen, a zero-decimal currency). - */ - amount: number; + export type Type = '3ds' | 'captcha' | 'custom'; + } - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency: string; + export namespace UserInterventionResolved { + export type Outcome = 'abandoned' | 'failed' | 'passed'; + } + } - /** - * Indicates the reason for the refund. - */ - reason: Refunded.Reason; - } + export namespace Outcome { + export interface MerchantBlocked { + /** + * The reason the payment was blocked by the merchant. + */ + reason: MerchantBlocked.Reason; + } - export type Type = - | 'dispute_opened' - | 'early_fraud_warning_received' - | 'refunded' - | 'user_intervention_raised' - | 'user_intervention_resolved'; + export interface Rejected { + /** + * Details of an rejected card outcome attached to this payment evaluation. + */ + card?: Rejected.Card; + } - export interface UserInterventionRaised { - /** - * User intervention raised custom event details attached to this payment evaluation - */ - custom?: UserInterventionRaised.Custom; + export interface Succeeded { + /** + * Details of an succeeded card outcome attached to this payment evaluation. + */ + card?: Succeeded.Card; + } + + export type Type = 'failed' | 'merchant_blocked' | 'rejected' | 'succeeded'; + + export namespace MerchantBlocked { + export type Reason = + | 'authentication_required' + | 'blocked_for_fraud' + | 'invalid_payment' + | 'other'; + } + export namespace Rejected { + export interface Card { /** - * Unique identifier for the user intervention event. + * Result of the address line 1 check. */ - key: string; + address_line1_check: Card.AddressLine1Check; /** - * Type of user intervention raised. + * Indicates whether the cardholder provided a postal code and if it matched the cardholder's billing address. */ - type: UserInterventionRaised.Type; - } + address_postal_code_check: Card.AddressPostalCodeCheck; - export interface UserInterventionResolved { /** - * Unique ID of this intervention. Use this to provide the result. + * Result of the CVC check. */ - key: string; + cvc_check: Card.CvcCheck; /** - * Result of the intervention if it has been completed. + * Card issuer's reason for the network decline. */ - outcome: UserInterventionResolved.Outcome | null; + reason: Card.Reason; } - export namespace DisputeOpened { - export type Reason = - | 'account_not_available' - | 'credit_not_processed' - | 'customer_initiated' - | 'duplicate' - | 'fraudulent' - | 'general' - | 'noncompliant' - | 'product_not_received' - | 'product_unacceptable' - | 'subscription_canceled' - | 'unrecognized'; - } + export namespace Card { + export type AddressLine1Check = + | 'fail' + | 'pass' + | 'unavailable' + | 'unchecked'; - export namespace EarlyFraudWarningReceived { - export type FraudType = - | 'made_with_lost_card' - | 'made_with_stolen_card' - | 'other' - | 'unauthorized_use_of_card'; - } + export type AddressPostalCodeCheck = + | 'fail' + | 'pass' + | 'unavailable' + | 'unchecked'; + + export type CvcCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked'; - export namespace Refunded { export type Reason = - | 'duplicate' - | 'fraudulent' + | 'authentication_failed' + | 'do_not_honor' + | 'expired' + | 'incorrect_cvc' + | 'incorrect_number' + | 'incorrect_postal_code' + | 'insufficient_funds' + | 'invalid_account' + | 'lost_card' | 'other' - | 'requested_by_customer'; - } - - export namespace UserInterventionRaised { - export interface Custom { - /** - * Custom type of user intervention raised. The string must use a snake case description for the type of intervention performed. - */ - type: string; - } - - export type Type = '3ds' | 'captcha' | 'custom'; - } - - export namespace UserInterventionResolved { - export type Outcome = 'abandoned' | 'failed' | 'passed'; + | 'processing_error' + | 'reported_stolen' + | 'try_again_later'; } } - export namespace Outcome { - export interface MerchantBlocked { + export namespace Succeeded { + export interface Card { /** - * The reason the payment was blocked by the merchant. + * Result of the address line 1 check. */ - reason: MerchantBlocked.Reason; - } + address_line1_check: Card.AddressLine1Check; - export interface Rejected { /** - * Details of an rejected card outcome attached to this payment evaluation. + * Indicates whether the cardholder provided a postal code and if it matched the cardholder's billing address. */ - card?: Rejected.Card; - } + address_postal_code_check: Card.AddressPostalCodeCheck; - export interface Succeeded { /** - * Details of an succeeded card outcome attached to this payment evaluation. + * Result of the CVC check. */ - card?: Succeeded.Card; + cvc_check: Card.CvcCheck; } - export type Type = - | 'failed' - | 'merchant_blocked' - | 'rejected' - | 'succeeded'; + export namespace Card { + export type AddressLine1Check = + | 'fail' + | 'pass' + | 'unavailable' + | 'unchecked'; - export namespace MerchantBlocked { - export type Reason = - | 'authentication_required' - | 'blocked_for_fraud' - | 'invalid_payment' - | 'other'; - } + export type AddressPostalCodeCheck = + | 'fail' + | 'pass' + | 'unavailable' + | 'unchecked'; - export namespace Rejected { - export interface Card { - /** - * Result of the address line 1 check. - */ - address_line1_check: Card.AddressLine1Check; - - /** - * Indicates whether the cardholder provided a postal code and if it matched the cardholder's billing address. - */ - address_postal_code_check: Card.AddressPostalCodeCheck; + export type CvcCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked'; + } + } + } - /** - * Result of the CVC check. - */ - cvc_check: Card.CvcCheck; + export namespace PaymentDetails { + export interface MoneyMovementDetails { + /** + * Describes card money movement details for the payment evaluation. + */ + card: MoneyMovementDetails.Card | null; - /** - * Card issuer's reason for the network decline. - */ - reason: Card.Reason; - } + /** + * Describes the type of money movement. Currently only `card` is supported. + */ + money_movement_type: 'card'; + } - export namespace Card { - export type AddressLine1Check = - | 'fail' - | 'pass' - | 'unavailable' - | 'unchecked'; - - export type AddressPostalCodeCheck = - | 'fail' - | 'pass' - | 'unavailable' - | 'unchecked'; - - export type CvcCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked'; - - export type Reason = - | 'authentication_failed' - | 'do_not_honor' - | 'expired' - | 'incorrect_cvc' - | 'incorrect_number' - | 'incorrect_postal_code' - | 'insufficient_funds' - | 'invalid_account' - | 'lost_card' - | 'other' - | 'processing_error' - | 'reported_stolen' - | 'try_again_later'; - } - } + export interface PaymentMethodDetails { + /** + * Billing information associated with the payment evaluation. + */ + billing_details: PaymentMethodDetails.BillingDetails | null; - export namespace Succeeded { - export interface Card { - /** - * Result of the address line 1 check. - */ - address_line1_check: Card.AddressLine1Check; + /** + * The payment method used in this payment evaluation. + */ + payment_method: string | PaymentMethod; + } - /** - * Indicates whether the cardholder provided a postal code and if it matched the cardholder's billing address. - */ - address_postal_code_check: Card.AddressPostalCodeCheck; + export interface ShippingDetails { + /** + * Address data. + */ + address: Address; - /** - * Result of the CVC check. - */ - cvc_check: Card.CvcCheck; - } + /** + * Shipping name. + */ + name: string | null; - export namespace Card { - export type AddressLine1Check = - | 'fail' - | 'pass' - | 'unavailable' - | 'unchecked'; - - export type AddressPostalCodeCheck = - | 'fail' - | 'pass' - | 'unavailable' - | 'unchecked'; - - export type CvcCheck = 'fail' | 'pass' | 'unavailable' | 'unchecked'; - } - } + /** + * Shipping phone number. + */ + phone: string | null; } - export namespace PaymentDetails { - export interface MoneyMovementDetails { + export namespace MoneyMovementDetails { + export interface Card { /** - * Describes card money movement details for the payment evaluation. + * Describes the presence of the customer during the payment. */ - card: MoneyMovementDetails.Card | null; + customer_presence: Card.CustomerPresence | null; /** - * Describes the type of money movement. Currently only `card` is supported. + * Describes the type of payment. */ - money_movement_type: 'card'; + payment_type: Card.PaymentType | null; } - export interface PaymentMethodDetails { - /** - * Billing information associated with the payment evaluation. - */ - billing_details: PaymentMethodDetails.BillingDetails | null; + export namespace Card { + export type CustomerPresence = 'off_session' | 'on_session'; - /** - * The payment method used in this payment evaluation. - */ - payment_method: string | PaymentMethod; + export type PaymentType = + | 'one_off' + | 'recurring' + | 'setup_one_off' + | 'setup_recurring'; } + } - export interface ShippingDetails { + export namespace PaymentMethodDetails { + export interface BillingDetails { /** * Address data. */ address: Address; /** - * Shipping name. + * Email address. + */ + email: string | null; + + /** + * Full name. */ name: string | null; /** - * Shipping phone number. + * Billing phone number (including extension). */ phone: string | null; } - - export namespace MoneyMovementDetails { - export interface Card { - /** - * Describes the presence of the customer during the payment. - */ - customer_presence: Card.CustomerPresence | null; - - /** - * Describes the type of payment. - */ - payment_type: Card.PaymentType | null; - } - - export namespace Card { - export type CustomerPresence = 'off_session' | 'on_session'; - - export type PaymentType = - | 'one_off' - | 'recurring' - | 'setup_one_off' - | 'setup_recurring'; - } - } - - export namespace PaymentMethodDetails { - export interface BillingDetails { - /** - * Address data. - */ - address: Address; - - /** - * Email address. - */ - email: string | null; - - /** - * Full name. - */ - name: string | null; - - /** - * Billing phone number (including extension). - */ - phone: string | null; - } - } } + } - export namespace Signals { - export interface FraudulentPayment { - /** - * The time when this signal was evaluated. - */ - evaluated_at: number; + export namespace Signals { + export interface FraudulentPayment { + /** + * The time when this signal was evaluated. + */ + evaluated_at: number; - /** - * Risk level of this signal, based on the score. - */ - risk_level: FraudulentPayment.RiskLevel; + /** + * Risk level of this signal, based on the score. + */ + risk_level: FraudulentPayment.RiskLevel; - /** - * Score for this signal. Possible values for evaluated payments are between 0 and 100. The value is returned with two decimal places and higher scores indicate a higher likelihood of the signal being true. A score of -1 is returned when a model evaluation was not performed, such as requests from incomplete integrations. - */ - score: number; - } + /** + * Score for this signal. Possible values for evaluated payments are between 0 and 100. The value is returned with two decimal places and higher scores indicate a higher likelihood of the signal being true. A score of -1 is returned when a model evaluation was not performed, such as requests from incomplete integrations. + */ + score: number; + } - export namespace FraudulentPayment { - export type RiskLevel = - | 'elevated' - | 'highest' - | 'low' - | 'normal' - | 'not_assessed' - | 'unknown'; - } + export namespace FraudulentPayment { + export type RiskLevel = + | 'elevated' + | 'highest' + | 'low' + | 'normal' + | 'not_assessed' + | 'unknown'; } } } diff --git a/src/resources/Radar/ValueListItems.ts b/src/resources/Radar/ValueListItems.ts index 964a345970..646b733406 100644 --- a/src/resources/Radar/ValueListItems.ts +++ b/src/resources/Radar/ValueListItems.ts @@ -12,7 +12,7 @@ export class ValueListItemResource extends StripeResource { id: string, params?: Radar.ValueListItemDeleteParams, options?: RequestOptions - ): Promise> { + ): Promise> { return this._makeRequest( 'DELETE', `/v1/radar/value_list_items/${encodeURIComponent(id)}`, @@ -108,23 +108,21 @@ export interface ValueListItem { */ value_list: string; } -export namespace Radar { - export interface DeletedValueListItem { - /** - * Unique identifier for the object. - */ - id: string; +export interface DeletedValueListItem { + /** + * Unique identifier for the object. + */ + id: string; - /** - * String representing the object's type. Objects of the same type share the same value. - */ - object: 'radar.value_list_item'; + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'radar.value_list_item'; - /** - * Always true for a deleted object - */ - deleted: true; - } + /** + * Always true for a deleted object + */ + deleted: true; } export namespace Radar { export interface ValueListItemCreateParams { diff --git a/src/resources/Radar/ValueLists.ts b/src/resources/Radar/ValueLists.ts index 75f56cb302..253b259301 100644 --- a/src/resources/Radar/ValueLists.ts +++ b/src/resources/Radar/ValueLists.ts @@ -18,7 +18,7 @@ export class ValueListResource extends StripeResource { id: string, params?: Radar.ValueListDeleteParams, options?: RequestOptions - ): Promise> { + ): Promise> { return this._makeRequest( 'DELETE', `/v1/radar/value_lists/${encodeURIComponent(id)}`, @@ -116,7 +116,7 @@ export interface ValueList { /** * The type of items in the value list. One of `card_fingerprint`, `card_bin`, `crypto_fingerprint`, `email`, `ip_address`, `country`, `string`, `case_sensitive_string`, `customer_id`, `account`, `sepa_debit_fingerprint`, or `us_bank_account_fingerprint`. */ - item_type: Radar.ValueList.ItemType; + item_type: ValueList.ItemType; /** * List of items contained within this value list. @@ -138,39 +138,36 @@ export interface ValueList { */ name: string; } -export namespace Radar { - export interface DeletedValueList { - /** - * Unique identifier for the object. - */ - id: string; - - /** - * String representing the object's type. Objects of the same type share the same value. - */ - object: 'radar.value_list'; +export interface DeletedValueList { + /** + * Unique identifier for the object. + */ + id: string; - /** - * Always true for a deleted object - */ - deleted: true; - } + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'radar.value_list'; - export namespace ValueList { - export type ItemType = - | 'account' - | 'card_bin' - | 'card_fingerprint' - | 'case_sensitive_string' - | 'country' - | 'crypto_fingerprint' - | 'customer_id' - | 'email' - | 'ip_address' - | 'sepa_debit_fingerprint' - | 'string' - | 'us_bank_account_fingerprint'; - } + /** + * Always true for a deleted object + */ + deleted: true; +} +export namespace ValueList { + export type ItemType = + | 'account' + | 'card_bin' + | 'card_fingerprint' + | 'case_sensitive_string' + | 'country' + | 'crypto_fingerprint' + | 'customer_id' + | 'email' + | 'ip_address' + | 'sepa_debit_fingerprint' + | 'string' + | 'us_bank_account_fingerprint'; } export namespace Radar { export interface ValueListCreateParams { diff --git a/src/resources/Radar/index.ts b/src/resources/Radar/index.ts index a587f8ee5e..ba8e41f89e 100644 --- a/src/resources/Radar/index.ts +++ b/src/resources/Radar/index.ts @@ -14,11 +14,13 @@ import { import { Radar as RadarNamespace2, ValueList, + DeletedValueList, ValueListResource, } from './ValueLists.js'; import { Radar as RadarNamespace3, ValueListItem, + DeletedValueListItem, ValueListItemResource, } from './ValueListItems.js'; @@ -52,12 +54,12 @@ export declare namespace Radar { export import ValueListUpdateParams = RadarNamespace2.ValueListUpdateParams; export import ValueListListParams = RadarNamespace2.ValueListListParams; export import ValueListCreateParams = RadarNamespace2.ValueListCreateParams; - export import DeletedValueList = RadarNamespace2.DeletedValueList; + export {DeletedValueList}; export {ValueList, ValueListResource}; export import ValueListItemDeleteParams = RadarNamespace3.ValueListItemDeleteParams; export import ValueListItemRetrieveParams = RadarNamespace3.ValueListItemRetrieveParams; export import ValueListItemListParams = RadarNamespace3.ValueListItemListParams; export import ValueListItemCreateParams = RadarNamespace3.ValueListItemCreateParams; - export import DeletedValueListItem = RadarNamespace3.DeletedValueListItem; + export {DeletedValueListItem}; export {ValueListItem, ValueListItemResource}; } diff --git a/src/resources/Reporting/ReportRuns.ts b/src/resources/Reporting/ReportRuns.ts index b9427e51a7..a6f7267b6a 100644 --- a/src/resources/Reporting/ReportRuns.ts +++ b/src/resources/Reporting/ReportRuns.ts @@ -80,7 +80,7 @@ export interface ReportRun { */ livemode: boolean; - parameters: Reporting.ReportRun.Parameters; + parameters: ReportRun.Parameters; /** * The ID of the [report type](https://docs.stripe.com/reports/report-types) to run, such as `"balance.summary.1"`. @@ -106,49 +106,47 @@ export interface ReportRun { */ succeeded_at: number | null; } -export namespace Reporting { - export namespace ReportRun { - export interface Parameters { - /** - * The set of output columns requested for inclusion in the report run. - */ - columns?: Array; +export namespace ReportRun { + export interface Parameters { + /** + * The set of output columns requested for inclusion in the report run. + */ + columns?: Array; - /** - * Connected account ID by which to filter the report run. - */ - connected_account?: string; + /** + * Connected account ID by which to filter the report run. + */ + connected_account?: string; - /** - * Currency of objects to be included in the report run. - */ - currency?: string; + /** + * Currency of objects to be included in the report run. + */ + currency?: string; - /** - * Ending timestamp of data to be included in the report run. Can be any UTC timestamp between 1 second after the user specified `interval_start` and 1 second before this report's last `data_available_end` value. - */ - interval_end?: number; + /** + * Ending timestamp of data to be included in the report run. Can be any UTC timestamp between 1 second after the user specified `interval_start` and 1 second before this report's last `data_available_end` value. + */ + interval_end?: number; - /** - * Starting timestamp of data to be included in the report run. Can be any UTC timestamp between 1 second after this report's `data_available_start` and 1 second before the user specified `interval_end` value. - */ - interval_start?: number; + /** + * Starting timestamp of data to be included in the report run. Can be any UTC timestamp between 1 second after this report's `data_available_start` and 1 second before the user specified `interval_end` value. + */ + interval_start?: number; - /** - * Payout ID by which to filter the report run. - */ - payout?: string; + /** + * Payout ID by which to filter the report run. + */ + payout?: string; - /** - * Category of balance transactions to be included in the report run. - */ - reporting_category?: string; + /** + * Category of balance transactions to be included in the report run. + */ + reporting_category?: string; - /** - * Defaults to `Etc/UTC`. The output timezone for all timestamps in the report. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones). Has no effect on `interval_start` or `interval_end`. - */ - timezone?: string; - } + /** + * Defaults to `Etc/UTC`. The output timezone for all timestamps in the report. A list of possible time zone values is maintained at the [IANA Time Zone Database](http://www.iana.org/time-zones). Has no effect on `interval_start` or `interval_end`. + */ + timezone?: string; } } export namespace Reporting { diff --git a/src/resources/Reserve/Holds.ts b/src/resources/Reserve/Holds.ts index 161bc423ab..14e4981639 100644 --- a/src/resources/Reserve/Holds.ts +++ b/src/resources/Reserve/Holds.ts @@ -63,7 +63,7 @@ export interface Hold { /** * Indicates which party created this ReserveHold. */ - created_by: Reserve.Hold.CreatedBy; + created_by: Hold.CreatedBy; /** * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -88,9 +88,9 @@ export interface Hold { /** * The reason for the ReserveHold. */ - reason: Reserve.Hold.Reason; + reason: Hold.Reason; - release_schedule: Reserve.Hold.ReleaseSchedule; + release_schedule: Hold.ReleaseSchedule; /** * The ReservePlan which produced this ReserveHold (i.e., resplan_123) @@ -105,28 +105,26 @@ export interface Hold { /** * Which source balance type this ReserveHold reserves funds from. One of `bank_account`, `card`, or `fpx`. */ - source_type: Reserve.Hold.SourceType; + source_type: Hold.SourceType; } -export namespace Reserve { - export namespace Hold { - export type CreatedBy = 'application' | 'stripe'; - - export type Reason = 'charge' | 'standalone'; +export namespace Hold { + export type CreatedBy = 'application' | 'stripe'; - export interface ReleaseSchedule { - /** - * The time after which the ReserveHold is requested to be released. - */ - release_after: number | null; + export type Reason = 'charge' | 'standalone'; - /** - * The time at which the ReserveHold is scheduled to be released, automatically set to midnight UTC of the day after `release_after`. - */ - scheduled_release: number | null; - } + export interface ReleaseSchedule { + /** + * The time after which the ReserveHold is requested to be released. + */ + release_after: number | null; - export type SourceType = 'bank_account' | 'card' | 'fpx'; + /** + * The time at which the ReserveHold is scheduled to be released, automatically set to midnight UTC of the day after `release_after`. + */ + scheduled_release: number | null; } + + export type SourceType = 'bank_account' | 'card' | 'fpx'; } export namespace Reserve { export interface HoldRetrieveParams { diff --git a/src/resources/Reserve/Plans.ts b/src/resources/Reserve/Plans.ts index 257a920407..050dda633f 100644 --- a/src/resources/Reserve/Plans.ts +++ b/src/resources/Reserve/Plans.ts @@ -40,7 +40,7 @@ export interface Plan { /** * Indicates which party created this ReservePlan. */ - created_by: Reserve.Plan.CreatedBy; + created_by: Plan.CreatedBy; /** * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). An unset currency indicates that the plan applies to all currencies. @@ -52,7 +52,7 @@ export interface Plan { */ disabled_at: number | null; - fixed_release?: Reserve.Plan.FixedRelease; + fixed_release?: Plan.FixedRelease; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -69,50 +69,48 @@ export interface Plan { */ percent: number; - rolling_release?: Reserve.Plan.RollingRelease; + rolling_release?: Plan.RollingRelease; /** * The current status of the ReservePlan. The ReservePlan only affects charges if it is `active`. */ - status: Reserve.Plan.Status; + status: Plan.Status; /** * The type of the ReservePlan. */ - type: Reserve.Plan.Type; + type: Plan.Type; } -export namespace Reserve { - export namespace Plan { - export type CreatedBy = 'application' | 'stripe'; - - export interface FixedRelease { - /** - * The time after which all reserved funds are requested for release. - */ - release_after: number; - - /** - * The time at which reserved funds are scheduled for release, automatically set to midnight UTC of the day after `release_after`. - */ - scheduled_release: number; - } - - export interface RollingRelease { - /** - * The number of days to reserve funds before releasing. - */ - days_after_charge: number; - - /** - * The time at which the ReservePlan expires. - */ - expires_on: number | null; - } - - export type Status = 'active' | 'disabled' | 'expired'; - - export type Type = 'fixed_release' | 'rolling_release'; +export namespace Plan { + export type CreatedBy = 'application' | 'stripe'; + + export interface FixedRelease { + /** + * The time after which all reserved funds are requested for release. + */ + release_after: number; + + /** + * The time at which reserved funds are scheduled for release, automatically set to midnight UTC of the day after `release_after`. + */ + scheduled_release: number; + } + + export interface RollingRelease { + /** + * The number of days to reserve funds before releasing. + */ + days_after_charge: number; + + /** + * The time at which the ReservePlan expires. + */ + expires_on: number | null; } + + export type Status = 'active' | 'disabled' | 'expired'; + + export type Type = 'fixed_release' | 'rolling_release'; } export namespace Reserve { export interface PlanRetrieveParams { diff --git a/src/resources/Reserve/Releases.ts b/src/resources/Reserve/Releases.ts index 8a9e907f42..2a73374884 100644 --- a/src/resources/Reserve/Releases.ts +++ b/src/resources/Reserve/Releases.ts @@ -60,7 +60,7 @@ export interface Release { /** * Indicates which party created this ReserveRelease. */ - created_by: Reserve.Release.CreatedBy; + created_by: Release.CreatedBy; /** * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -80,7 +80,7 @@ export interface Release { /** * The reason for the ReserveRelease, indicating why the funds were released. */ - reason: Reserve.Release.Reason; + reason: Release.Reason; /** * The release timestamp of the funds. @@ -97,38 +97,36 @@ export interface Release { */ reserve_plan: string | Plan | null; - source_transaction?: Reserve.Release.SourceTransaction; + source_transaction?: Release.SourceTransaction; } -export namespace Reserve { - export namespace Release { - export type CreatedBy = 'application' | 'stripe'; - - export type Reason = - | 'bulk_hold_expiry' - | 'hold_released_early' - | 'hold_reversed' - | 'plan_disabled'; - - export interface SourceTransaction { - /** - * The ID of the dispute. - */ - dispute?: string | Dispute; - - /** - * The ID of the refund. - */ - refund?: string | Refund; - - /** - * The type of source transaction. - */ - type: SourceTransaction.Type; - } - - export namespace SourceTransaction { - export type Type = 'dispute' | 'refund'; - } +export namespace Release { + export type CreatedBy = 'application' | 'stripe'; + + export type Reason = + | 'bulk_hold_expiry' + | 'hold_released_early' + | 'hold_reversed' + | 'plan_disabled'; + + export interface SourceTransaction { + /** + * The ID of the dispute. + */ + dispute?: string | Dispute; + + /** + * The ID of the refund. + */ + refund?: string | Refund; + + /** + * The type of source transaction. + */ + type: SourceTransaction.Type; + } + + export namespace SourceTransaction { + export type Type = 'dispute' | 'refund'; } } export namespace Reserve { diff --git a/src/resources/SharedPayment/GrantedTokens.ts b/src/resources/SharedPayment/GrantedTokens.ts index ff2fff0191..ec3461550d 100644 --- a/src/resources/SharedPayment/GrantedTokens.ts +++ b/src/resources/SharedPayment/GrantedTokens.ts @@ -37,7 +37,7 @@ export interface GrantedToken { /** * Details about the agent that issued this SharedPaymentGrantedToken. */ - agent_details: SharedPayment.GrantedToken.AgentDetails | null; + agent_details: GrantedToken.AgentDetails | null; /** * Time at which the object was created. Measured in seconds since the Unix epoch. @@ -52,7 +52,7 @@ export interface GrantedToken { /** * The reason why the SharedPaymentGrantedToken has been deactivated. */ - deactivated_reason: SharedPayment.GrantedToken.DeactivatedReason | null; + deactivated_reason: GrantedToken.DeactivatedReason | null; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -62,12 +62,12 @@ export interface GrantedToken { /** * Details of the PaymentMethod that was shared via this token. */ - payment_method_details: SharedPayment.GrantedToken.PaymentMethodDetails | null; + payment_method_details: GrantedToken.PaymentMethodDetails | null; /** * Risk details of the SharedPaymentGrantedToken. */ - risk_details?: SharedPayment.GrantedToken.RiskDetails | null; + risk_details?: GrantedToken.RiskDetails | null; /** * Metadata about the SharedPaymentGrantedToken. @@ -79,1548 +79,1546 @@ export interface GrantedToken { /** * Some details about how the SharedPaymentGrantedToken has been used already. */ - usage_details: SharedPayment.GrantedToken.UsageDetails | null; + usage_details: GrantedToken.UsageDetails | null; /** * Limits on how this SharedPaymentGrantedToken can be used. */ - usage_limits: SharedPayment.GrantedToken.UsageLimits | null; + usage_limits: GrantedToken.UsageLimits | null; } -export namespace SharedPayment { - export namespace GrantedToken { - export interface AgentDetails { - /** - * The Stripe Profile ID of the agent that issued this SharedPaymentGrantedToken. - */ - network_business_profile: string | null; - } +export namespace GrantedToken { + export interface AgentDetails { + /** + * The Stripe Profile ID of the agent that issued this SharedPaymentGrantedToken. + */ + network_business_profile: string | null; + } - export type DeactivatedReason = - | 'consumed' - | 'expired' - | 'resolved' - | 'revoked'; + export type DeactivatedReason = + | 'consumed' + | 'expired' + | 'resolved' + | 'revoked'; - export interface PaymentMethodDetails { - acss_debit?: PaymentMethodDetails.AcssDebit; + export interface PaymentMethodDetails { + acss_debit?: PaymentMethodDetails.AcssDebit; - affirm?: PaymentMethodDetails.Affirm; + affirm?: PaymentMethodDetails.Affirm; - afterpay_clearpay?: PaymentMethodDetails.AfterpayClearpay; + afterpay_clearpay?: PaymentMethodDetails.AfterpayClearpay; - alipay?: PaymentMethodDetails.Alipay; + alipay?: PaymentMethodDetails.Alipay; - alma?: PaymentMethodDetails.Alma; + alma?: PaymentMethodDetails.Alma; - amazon_pay?: PaymentMethodDetails.AmazonPay; + amazon_pay?: PaymentMethodDetails.AmazonPay; - au_becs_debit?: PaymentMethodDetails.AuBecsDebit; + au_becs_debit?: PaymentMethodDetails.AuBecsDebit; - bacs_debit?: PaymentMethodDetails.BacsDebit; + bacs_debit?: PaymentMethodDetails.BacsDebit; - bancontact?: PaymentMethodDetails.Bancontact; + bancontact?: PaymentMethodDetails.Bancontact; - billie?: PaymentMethodDetails.Billie; + billie?: PaymentMethodDetails.Billie; - /** - * Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. - */ - billing_details: PaymentMethodDetails.BillingDetails | null; + /** + * Billing information associated with the PaymentMethod that may be used or required by particular types of payment methods. + */ + billing_details: PaymentMethodDetails.BillingDetails | null; + + bizum?: PaymentMethodDetails.Bizum; + + blik?: PaymentMethodDetails.Blik; + + boleto?: PaymentMethodDetails.Boleto; + + card?: PaymentMethodDetails.Card; - bizum?: PaymentMethodDetails.Bizum; + card_present?: PaymentMethodDetails.CardPresent; - blik?: PaymentMethodDetails.Blik; + cashapp?: PaymentMethodDetails.Cashapp; - boleto?: PaymentMethodDetails.Boleto; + crypto?: PaymentMethodDetails.Crypto; - card?: PaymentMethodDetails.Card; + customer_balance?: PaymentMethodDetails.CustomerBalance; - card_present?: PaymentMethodDetails.CardPresent; + eps?: PaymentMethodDetails.Eps; - cashapp?: PaymentMethodDetails.Cashapp; + fpx?: PaymentMethodDetails.Fpx; - crypto?: PaymentMethodDetails.Crypto; + giropay?: PaymentMethodDetails.Giropay; - customer_balance?: PaymentMethodDetails.CustomerBalance; + gopay?: PaymentMethodDetails.Gopay; - eps?: PaymentMethodDetails.Eps; + grabpay?: PaymentMethodDetails.Grabpay; - fpx?: PaymentMethodDetails.Fpx; + id_bank_transfer?: PaymentMethodDetails.IdBankTransfer; - giropay?: PaymentMethodDetails.Giropay; + ideal?: PaymentMethodDetails.Ideal; - gopay?: PaymentMethodDetails.Gopay; + interac_present?: PaymentMethodDetails.InteracPresent; - grabpay?: PaymentMethodDetails.Grabpay; + kakao_pay?: PaymentMethodDetails.KakaoPay; - id_bank_transfer?: PaymentMethodDetails.IdBankTransfer; + klarna?: PaymentMethodDetails.Klarna; - ideal?: PaymentMethodDetails.Ideal; + konbini?: PaymentMethodDetails.Konbini; - interac_present?: PaymentMethodDetails.InteracPresent; + kr_card?: PaymentMethodDetails.KrCard; - kakao_pay?: PaymentMethodDetails.KakaoPay; + link?: PaymentMethodDetails.Link; - klarna?: PaymentMethodDetails.Klarna; + mb_way?: PaymentMethodDetails.MbWay; - konbini?: PaymentMethodDetails.Konbini; + mobilepay?: PaymentMethodDetails.Mobilepay; - kr_card?: PaymentMethodDetails.KrCard; + multibanco?: PaymentMethodDetails.Multibanco; - link?: PaymentMethodDetails.Link; + naver_pay?: PaymentMethodDetails.NaverPay; - mb_way?: PaymentMethodDetails.MbWay; + nz_bank_account?: PaymentMethodDetails.NzBankAccount; - mobilepay?: PaymentMethodDetails.Mobilepay; + oxxo?: PaymentMethodDetails.Oxxo; - multibanco?: PaymentMethodDetails.Multibanco; + p24?: PaymentMethodDetails.P24; - naver_pay?: PaymentMethodDetails.NaverPay; + pay_by_bank?: PaymentMethodDetails.PayByBank; - nz_bank_account?: PaymentMethodDetails.NzBankAccount; + payco?: PaymentMethodDetails.Payco; - oxxo?: PaymentMethodDetails.Oxxo; + paynow?: PaymentMethodDetails.Paynow; - p24?: PaymentMethodDetails.P24; + paypal?: PaymentMethodDetails.Paypal; - pay_by_bank?: PaymentMethodDetails.PayByBank; + paypay?: PaymentMethodDetails.Paypay; - payco?: PaymentMethodDetails.Payco; + payto?: PaymentMethodDetails.Payto; - paynow?: PaymentMethodDetails.Paynow; + pix?: PaymentMethodDetails.Pix; - paypal?: PaymentMethodDetails.Paypal; + promptpay?: PaymentMethodDetails.Promptpay; - paypay?: PaymentMethodDetails.Paypay; + qris?: PaymentMethodDetails.Qris; - payto?: PaymentMethodDetails.Payto; + rechnung?: PaymentMethodDetails.Rechnung; - pix?: PaymentMethodDetails.Pix; + revolut_pay?: PaymentMethodDetails.RevolutPay; - promptpay?: PaymentMethodDetails.Promptpay; + samsung_pay?: PaymentMethodDetails.SamsungPay; - qris?: PaymentMethodDetails.Qris; + satispay?: PaymentMethodDetails.Satispay; - rechnung?: PaymentMethodDetails.Rechnung; + scalapay?: PaymentMethodDetails.Scalapay; - revolut_pay?: PaymentMethodDetails.RevolutPay; + sepa_debit?: PaymentMethodDetails.SepaDebit; - samsung_pay?: PaymentMethodDetails.SamsungPay; + shopeepay?: PaymentMethodDetails.Shopeepay; - satispay?: PaymentMethodDetails.Satispay; + sofort?: PaymentMethodDetails.Sofort; - scalapay?: PaymentMethodDetails.Scalapay; + stripe_balance?: PaymentMethodDetails.StripeBalance; - sepa_debit?: PaymentMethodDetails.SepaDebit; + sunbit?: PaymentMethodDetails.Sunbit; - shopeepay?: PaymentMethodDetails.Shopeepay; + swish?: PaymentMethodDetails.Swish; - sofort?: PaymentMethodDetails.Sofort; + twint?: PaymentMethodDetails.Twint; - stripe_balance?: PaymentMethodDetails.StripeBalance; + /** + * The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. + */ + type: PaymentMethodDetails.Type; + + upi?: PaymentMethodDetails.Upi; + + us_bank_account?: PaymentMethodDetails.UsBankAccount; - sunbit?: PaymentMethodDetails.Sunbit; + wechat_pay?: PaymentMethodDetails.WechatPay; - swish?: PaymentMethodDetails.Swish; + zip?: PaymentMethodDetails.Zip; + } - twint?: PaymentMethodDetails.Twint; + export interface RiskDetails { + /** + * Risk insights for this token, including scores and recommended actions for each risk type. + */ + insights: RiskDetails.Insights; + } + + export interface UsageDetails { + /** + * The total amount captured using this SharedPaymentToken. + */ + amount_captured: UsageDetails.AmountCaptured | null; + } + + export interface UsageLimits { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + /** + * Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent. + */ + expires_at: number | null; + + /** + * Max amount that can be captured using this SharedPaymentToken. + */ + max_amount: number; + } + + export namespace PaymentMethodDetails { + export interface AcssDebit { /** - * The type of the PaymentMethod. An additional hash is included on the PaymentMethod with a name matching this value. It contains additional information specific to the PaymentMethod type. + * Account number of the bank account. */ - type: PaymentMethodDetails.Type; + account_number?: string | null; - upi?: PaymentMethodDetails.Upi; + /** + * Name of the bank associated with the bank account. + */ + bank_name: string | null; - us_bank_account?: PaymentMethodDetails.UsBankAccount; + /** + * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + */ + fingerprint: string | null; - wechat_pay?: PaymentMethodDetails.WechatPay; + /** + * Institution number of the bank account. + */ + institution_number: string | null; - zip?: PaymentMethodDetails.Zip; + /** + * Last four digits of the bank account number. + */ + last4: string | null; + + /** + * Transit number of the bank account. + */ + transit_number: string | null; } - export interface RiskDetails { + export interface Affirm {} + + export interface AfterpayClearpay {} + + export interface Alipay {} + + export interface Alma {} + + export interface AmazonPay {} + + export interface AuBecsDebit { + /** + * Six-digit number identifying bank and branch associated with this bank account. + */ + bsb_number: string | null; + + /** + * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + */ + fingerprint: string | null; + /** - * Risk insights for this token, including scores and recommended actions for each risk type. + * Last four digits of the bank account number. */ - insights: RiskDetails.Insights; + last4: string | null; } - export interface UsageDetails { + export interface BacsDebit { /** - * The total amount captured using this SharedPaymentToken. + * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. */ - amount_captured: UsageDetails.AmountCaptured | null; + fingerprint: string | null; + + /** + * Last four digits of the bank account number. + */ + last4: string | null; + + /** + * Sort code of the bank account. (e.g., `10-20-30`) + */ + sort_code: string | null; } - export interface UsageLimits { + export interface Bancontact {} + + export interface Billie {} + + export interface BillingDetails { /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + * Billing address. */ - currency: string; + address: Address | null; /** - * Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent. + * Email address. */ - expires_at: number | null; + email: string | null; /** - * Max amount that can be captured using this SharedPaymentToken. + * Full name. */ - max_amount: number; + name: string | null; + + /** + * Billing phone number (including extension). + */ + phone: string | null; + + /** + * Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. + */ + tax_id: string | null; } - export namespace PaymentMethodDetails { - export interface AcssDebit { - /** - * Account number of the bank account. - */ - account_number?: string | null; + export interface Bizum {} - /** - * Name of the bank associated with the bank account. - */ - bank_name: string | null; + export interface Blik {} - /** - * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. - */ - fingerprint: string | null; + export interface Boleto { + /** + * Uniquely identifies the customer tax id (CNPJ or CPF) + */ + tax_id: string; + } - /** - * Institution number of the bank account. - */ - institution_number: string | null; + export interface Card { + /** + * Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + */ + brand: string; - /** - * Last four digits of the bank account number. - */ - last4: string | null; + /** + * Checks on Card address and CVC if provided. + */ + checks?: Card.Checks | null; - /** - * Transit number of the bank account. - */ - transit_number: string | null; - } + /** + * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + */ + country: string | null; - export interface Affirm {} + /** + * A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + */ + description?: string | null; - export interface AfterpayClearpay {} + /** + * The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future. + */ + display_brand: string | null; - export interface Alipay {} + /** + * Two-digit number representing the card's expiration month. + */ + exp_month: number; - export interface Alma {} + /** + * Four-digit number representing the card's expiration year. + */ + exp_year: number; - export interface AmazonPay {} + /** + * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + * + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + */ + fingerprint?: string | null; - export interface AuBecsDebit { - /** - * Six-digit number identifying bank and branch associated with this bank account. - */ - bsb_number: string | null; + /** + * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + */ + funding: string; - /** - * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. - */ - fingerprint: string | null; + /** + * Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + */ + iin?: string | null; - /** - * Last four digits of the bank account number. - */ - last4: string | null; - } + /** + * The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + */ + issuer?: string | null; - export interface BacsDebit { - /** - * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. - */ - fingerprint: string | null; + /** + * The last four digits of the card. + */ + last4: string; - /** - * Last four digits of the bank account number. - */ - last4: string | null; + /** + * Contains information about card networks that can be used to process the payment. + */ + networks: Card.Networks | null; - /** - * Sort code of the bank account. (e.g., `10-20-30`) - */ - sort_code: string | null; - } + /** + * If this Card is part of a card wallet, this contains the details of the card wallet. + */ + wallet: Card.Wallet | null; + } - export interface Bancontact {} + export interface CardPresent { + /** + * Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. + */ + brand: string | null; - export interface Billie {} + /** + * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. + */ + brand_product: string | null; - export interface BillingDetails { - /** - * Billing address. - */ - address: Address | null; + /** + * The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + */ + cardholder_name: string | null; - /** - * Email address. - */ - email: string | null; + /** + * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + */ + country: string | null; - /** - * Full name. - */ - name: string | null; + /** + * A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + */ + description?: string | null; - /** - * Billing phone number (including extension). - */ - phone: string | null; + /** + * Two-digit number representing the card's expiration month. + */ + exp_month: number; - /** - * Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. - */ - tax_id: string | null; - } + /** + * Four-digit number representing the card's expiration year. + */ + exp_year: number; - export interface Bizum {} + /** + * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + * + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + */ + fingerprint: string | null; - export interface Blik {} + /** + * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + */ + funding: string | null; - export interface Boleto { - /** - * Uniquely identifies the customer tax id (CNPJ or CPF) - */ - tax_id: string; - } + /** + * Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + */ + iin?: string | null; - export interface Card { - /** - * Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. - */ - brand: string; + /** + * The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + */ + issuer?: string | null; - /** - * Checks on Card address and CVC if provided. - */ - checks?: Card.Checks | null; + /** + * The last four digits of the card. + */ + last4: string | null; - /** - * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. - */ - country: string | null; + /** + * Contains information about card networks that can be used to process the payment. + */ + networks: CardPresent.Networks | null; - /** - * A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) - */ - description?: string | null; + /** + * Details about payment methods collected offline. + */ + offline: CardPresent.Offline | null; - /** - * The brand to use when displaying the card, this accounts for customer's brand choice on dual-branded cards. Can be `american_express`, `cartes_bancaires`, `diners_club`, `discover`, `eftpos_australia`, `interac`, `jcb`, `mastercard`, `union_pay`, `visa`, or `other` and may contain more values in the future. - */ - display_brand: string | null; + /** + * The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + */ + preferred_locales: Array | null; - /** - * Two-digit number representing the card's expiration month. - */ - exp_month: number; + /** + * How card details were read in this transaction. + */ + read_method: CardPresent.ReadMethod | null; - /** - * Four-digit number representing the card's expiration year. - */ - exp_year: number; + wallet?: CardPresent.Wallet; + } - /** - * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. - * - * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* - */ - fingerprint?: string | null; + export interface Cashapp { + /** + * A unique and immutable identifier assigned by Cash App to every buyer. + */ + buyer_id: string | null; - /** - * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. - */ - funding: string; + /** + * A public identifier for buyers using Cash App. + */ + cashtag: string | null; + } - /** - * Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) - */ - iin?: string | null; + export interface Crypto {} - /** - * The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) - */ - issuer?: string | null; + export interface CustomerBalance {} - /** - * The last four digits of the card. - */ - last4: string; + export interface Eps { + /** + * The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. + */ + bank: Eps.Bank | null; + } - /** - * Contains information about card networks that can be used to process the payment. - */ - networks: Card.Networks | null; + export interface Fpx { + /** + * Account holder type, if provided. Can be one of `individual` or `company`. + */ + account_holder_type: Fpx.AccountHolderType | null; - /** - * If this Card is part of a card wallet, this contains the details of the card wallet. - */ - wallet: Card.Wallet | null; - } + /** + * The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. + */ + bank: Fpx.Bank; + } - export interface CardPresent { - /** - * Card brand. Can be `amex`, `cartes_bancaires`, `diners`, `discover`, `eftpos_au`, `jcb`, `link`, `mastercard`, `unionpay`, `visa` or `unknown`. - */ - brand: string | null; + export interface Giropay {} - /** - * The [product code](https://stripe.com/docs/card-product-codes) that identifies the specific program or product associated with a card. - */ - brand_product: string | null; + export interface Gopay {} - /** - * The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. - */ - cardholder_name: string | null; + export interface Grabpay {} - /** - * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. - */ - country: string | null; + export interface IdBankTransfer { + bank: IdBankTransfer.Bank | null; - /** - * A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) - */ - description?: string | null; + bank_code: string | null; - /** - * Two-digit number representing the card's expiration month. - */ - exp_month: number; + bank_name: string | null; - /** - * Four-digit number representing the card's expiration year. - */ - exp_year: number; + display_name: string | null; + } - /** - * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. - * - * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* - */ - fingerprint: string | null; + export interface Ideal { + /** + * The customer's bank, if provided. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. + */ + bank: Ideal.Bank | null; - /** - * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. - */ - funding: string | null; + /** + * The Bank Identifier Code of the customer's bank, if the bank was provided. + */ + bic: Ideal.Bic | null; + } - /** - * Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) - */ - iin?: string | null; + export interface InteracPresent { + /** + * Card brand. Can be `interac`, `mastercard` or `visa`. + */ + brand: string | null; - /** - * The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) - */ - issuer?: string | null; + /** + * The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. + */ + cardholder_name: string | null; - /** - * The last four digits of the card. - */ - last4: string | null; + /** + * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. + */ + country: string | null; - /** - * Contains information about card networks that can be used to process the payment. - */ - networks: CardPresent.Networks | null; + /** + * A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) + */ + description?: string | null; - /** - * Details about payment methods collected offline. - */ - offline: CardPresent.Offline | null; + /** + * Two-digit number representing the card's expiration month. + */ + exp_month: number; - /** - * The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. - */ - preferred_locales: Array | null; + /** + * Four-digit number representing the card's expiration year. + */ + exp_year: number; - /** - * How card details were read in this transaction. - */ - read_method: CardPresent.ReadMethod | null; + /** + * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. + * + * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* + */ + fingerprint: string | null; - wallet?: CardPresent.Wallet; - } + /** + * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. + */ + funding: string | null; - export interface Cashapp { - /** - * A unique and immutable identifier assigned by Cash App to every buyer. - */ - buyer_id: string | null; + /** + * Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) + */ + iin?: string | null; - /** - * A public identifier for buyers using Cash App. - */ - cashtag: string | null; - } + /** + * The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) + */ + issuer?: string | null; - export interface Crypto {} + /** + * The last four digits of the card. + */ + last4: string | null; - export interface CustomerBalance {} + /** + * Contains information about card networks that can be used to process the payment. + */ + networks: InteracPresent.Networks | null; - export interface Eps { - /** - * The customer's bank. Should be one of `arzte_und_apotheker_bank`, `austrian_anadi_bank_ag`, `bank_austria`, `bankhaus_carl_spangler`, `bankhaus_schelhammer_und_schattera_ag`, `bawag_psk_ag`, `bks_bank_ag`, `brull_kallmus_bank_ag`, `btv_vier_lander_bank`, `capital_bank_grawe_gruppe_ag`, `deutsche_bank_ag`, `dolomitenbank`, `easybank_ag`, `erste_bank_und_sparkassen`, `hypo_alpeadriabank_international_ag`, `hypo_noe_lb_fur_niederosterreich_u_wien`, `hypo_oberosterreich_salzburg_steiermark`, `hypo_tirol_bank_ag`, `hypo_vorarlberg_bank_ag`, `hypo_bank_burgenland_aktiengesellschaft`, `marchfelder_bank`, `oberbank_ag`, `raiffeisen_bankengruppe_osterreich`, `schoellerbank_ag`, `sparda_bank_wien`, `volksbank_gruppe`, `volkskreditbank_ag`, or `vr_bank_braunau`. - */ - bank: Eps.Bank | null; - } + /** + * The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. + */ + preferred_locales: Array | null; - export interface Fpx { - /** - * Account holder type, if provided. Can be one of `individual` or `company`. - */ - account_holder_type: Fpx.AccountHolderType | null; + /** + * How card details were read in this transaction. + */ + read_method: InteracPresent.ReadMethod | null; + } - /** - * The customer's bank, if provided. Can be one of `affin_bank`, `agrobank`, `alliance_bank`, `ambank`, `bank_islam`, `bank_muamalat`, `bank_rakyat`, `bsn`, `cimb`, `hong_leong_bank`, `hsbc`, `kfh`, `maybank2u`, `ocbc`, `public_bank`, `rhb`, `standard_chartered`, `uob`, `deutsche_bank`, `maybank2e`, `pb_enterprise`, or `bank_of_china`. - */ - bank: Fpx.Bank; - } + export interface KakaoPay {} - export interface Giropay {} + export interface Klarna { + /** + * The customer's date of birth, if provided. + */ + dob?: Klarna.Dob | null; + } - export interface Gopay {} + export interface Konbini {} - export interface Grabpay {} + export interface KrCard { + /** + * The local credit or debit card brand. + */ + brand: KrCard.Brand | null; - export interface IdBankTransfer { - bank: IdBankTransfer.Bank | null; + /** + * The last four digits of the card. This may not be present for American Express cards. + */ + last4: string | null; + } - bank_code: string | null; + export interface Link { + /** + * Account owner's email address. + */ + email: string | null; - bank_name: string | null; + /** + * [Deprecated] This is a legacy parameter that no longer has any function. + * @deprecated + */ + persistent_token?: string; + } - display_name: string | null; - } + export interface MbWay {} - export interface Ideal { - /** - * The customer's bank, if provided. Can be one of `abn_amro`, `adyen`, `asn_bank`, `bunq`, `buut`, `finom`, `handelsbanken`, `ing`, `knab`, `mollie`, `moneyou`, `n26`, `nn`, `rabobank`, `regiobank`, `revolut`, `sns_bank`, `triodos_bank`, `van_lanschot`, or `yoursafe`. - */ - bank: Ideal.Bank | null; + export interface Mobilepay {} - /** - * The Bank Identifier Code of the customer's bank, if the bank was provided. - */ - bic: Ideal.Bic | null; - } + export interface Multibanco {} - export interface InteracPresent { - /** - * Card brand. Can be `interac`, `mastercard` or `visa`. - */ - brand: string | null; + export interface NaverPay { + /** + * Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same. + */ + buyer_id: string | null; - /** - * The cardholder name as read from the card, in [ISO 7813](https://en.wikipedia.org/wiki/ISO/IEC_7813) format. May include alphanumeric characters, special characters and first/last name separator (`/`). In some cases, the cardholder name may not be available depending on how the issuer has configured the card. Cardholder name is typically not available on swipe or contactless payments, such as those made with Apple Pay and Google Pay. - */ - cardholder_name: string | null; + /** + * Whether to fund this transaction with Naver Pay points or a card. + */ + funding: NaverPay.Funding; + } - /** - * Two-letter ISO code representing the country of the card. You could use this attribute to get a sense of the international breakdown of cards you've collected. - */ - country: string | null; + export interface NzBankAccount { + /** + * The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details. + */ + account_holder_name: string | null; - /** - * A high-level description of the type of cards issued in this range. (For internal use only and not typically available in standard API requests.) - */ - description?: string | null; + /** + * The numeric code for the bank account's bank. + */ + bank_code: string; - /** - * Two-digit number representing the card's expiration month. - */ - exp_month: number; + /** + * The name of the bank. + */ + bank_name: string; - /** - * Four-digit number representing the card's expiration year. - */ - exp_year: number; + /** + * The numeric code for the bank account's bank branch. + */ + branch_code: string; - /** - * Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number. - * - * *As of May 1, 2021, card fingerprint in India for Connect changed to allow two fingerprints for the same card---one for India and one for the rest of the world.* - */ - fingerprint: string | null; + /** + * Last four digits of the bank account number. + */ + last4: string; - /** - * Card funding type. Can be `credit`, `debit`, `prepaid`, or `unknown`. - */ - funding: string | null; + /** + * The suffix of the bank account number. + */ + suffix: string | null; + } - /** - * Issuer identification number of the card. (For internal use only and not typically available in standard API requests.) - */ - iin?: string | null; + export interface Oxxo {} - /** - * The name of the card's issuing bank. (For internal use only and not typically available in standard API requests.) - */ - issuer?: string | null; + export interface P24 { + /** + * The customer's bank, if provided. + */ + bank: P24.Bank | null; + } - /** - * The last four digits of the card. - */ - last4: string | null; + export interface PayByBank {} - /** - * Contains information about card networks that can be used to process the payment. - */ - networks: InteracPresent.Networks | null; + export interface Payco {} - /** - * The languages that the issuing bank recommends using for localizing any customer-facing text, as read from the card. Referenced from EMV tag 5F2D, data encoded on the card's chip. - */ - preferred_locales: Array | null; + export interface Paynow {} - /** - * How card details were read in this transaction. - */ - read_method: InteracPresent.ReadMethod | null; - } + export interface Paypal { + /** + * Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + country: string | null; - export interface KakaoPay {} + /** + * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same. + */ + fingerprint?: string | null; - export interface Klarna { - /** - * The customer's date of birth, if provided. - */ - dob?: Klarna.Dob | null; - } + /** + * Owner's email. Values are provided by PayPal directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + payer_email: string | null; - export interface Konbini {} + /** + * PayPal account PayerID. This identifier uniquely identifies the PayPal customer. + */ + payer_id: string | null; - export interface KrCard { - /** - * The local credit or debit card brand. - */ - brand: KrCard.Brand | null; + /** + * Owner's verified email. Values are verified or provided by PayPal directly + * (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + verified_email?: string | null; + } - /** - * The last four digits of the card. This may not be present for American Express cards. - */ - last4: string | null; - } + export interface Paypay {} - export interface Link { - /** - * Account owner's email address. - */ - email: string | null; + export interface Payto { + /** + * Bank-State-Branch number of the bank account. + */ + bsb_number: string | null; - /** - * [Deprecated] This is a legacy parameter that no longer has any function. - * @deprecated - */ - persistent_token?: string; - } + /** + * Last four digits of the bank account number. + */ + last4: string | null; + + /** + * The PayID alias for the bank account. + */ + pay_id: string | null; + } + + export interface Pix {} + + export interface Promptpay {} + + export interface Qris {} + + export interface Rechnung { + dob?: Rechnung.Dob; + } - export interface MbWay {} + export interface RevolutPay {} - export interface Mobilepay {} + export interface SamsungPay {} + + export interface Satispay {} + + export interface Scalapay {} + + export interface SepaDebit { + /** + * Bank code of bank associated with the bank account. + */ + bank_code: string | null; + + /** + * Branch code of bank associated with the bank account. + */ + branch_code: string | null; + + /** + * Two-letter ISO code representing the country the bank account is located in. + */ + country: string | null; + + /** + * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + */ + fingerprint: string | null; + + /** + * Information about the object that generated this PaymentMethod. + */ + generated_from: SepaDebit.GeneratedFrom | null; + + /** + * Last four characters of the IBAN. + */ + last4: string | null; + } + + export interface Shopeepay {} + + export interface Sofort { + /** + * Two-letter ISO code representing the country the bank account is located in. + */ + country: string | null; + } + + export interface StripeBalance { + /** + * The connected account ID whose Stripe balance to use as the source of payment + */ + account?: string | null; + } + + export interface Sunbit {} + + export interface Swish {} + + export interface Twint {} + + export type Type = + | 'acss_debit' + | 'affirm' + | 'afterpay_clearpay' + | 'alipay' + | 'alma' + | 'amazon_pay' + | 'au_becs_debit' + | 'bacs_debit' + | 'bancontact' + | 'billie' + | 'bizum' + | 'blik' + | 'boleto' + | 'card' + | 'card_present' + | 'cashapp' + | 'crypto' + | 'custom' + | 'customer_balance' + | 'eps' + | 'fpx' + | 'giropay' + | 'gopay' + | 'grabpay' + | 'id_bank_transfer' + | 'ideal' + | 'interac_present' + | 'kakao_pay' + | 'klarna' + | 'konbini' + | 'kr_card' + | 'link' + | 'mb_way' + | 'mobilepay' + | 'multibanco' + | 'naver_pay' + | 'nz_bank_account' + | 'oxxo' + | 'p24' + | 'pay_by_bank' + | 'payco' + | 'paynow' + | 'paypal' + | 'paypay' + | 'payto' + | 'pix' + | 'promptpay' + | 'qris' + | 'rechnung' + | 'revolut_pay' + | 'samsung_pay' + | 'satispay' + | 'scalapay' + | 'sepa_debit' + | 'shopeepay' + | 'sofort' + | 'stripe_balance' + | 'sunbit' + | 'swish' + | 'twint' + | 'upi' + | 'us_bank_account' + | 'wechat_pay' + | 'zip'; + + export interface Upi { + /** + * Customer's unique Virtual Payment Address + */ + vpa: string | null; + } + + export interface UsBankAccount { + /** + * Account holder type: individual or company. + */ + account_holder_type: UsBankAccount.AccountHolderType | null; + + /** + * Account number of the bank account. + */ + account_number?: string | null; + + /** + * Account type: checkings or savings. Defaults to checking if omitted. + */ + account_type: UsBankAccount.AccountType | null; + + /** + * The name of the bank. + */ + bank_name: string | null; + + /** + * The ID of the Financial Connections Account used to create the payment method. + */ + financial_connections_account: string | null; + + /** + * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + */ + fingerprint: string | null; + + /** + * Last four digits of the bank account number. + */ + last4: string | null; + + /** + * Contains information about US bank account networks that can be used. + */ + networks: UsBankAccount.Networks | null; - export interface Multibanco {} + /** + * Routing number of the bank account. + */ + routing_number: string | null; - export interface NaverPay { - /** - * Uniquely identifies this particular Naver Pay account. You can use this attribute to check whether two Naver Pay accounts are the same. - */ - buyer_id: string | null; + /** + * Contains information about the future reusability of this PaymentMethod. + */ + status_details: UsBankAccount.StatusDetails | null; + } - /** - * Whether to fund this transaction with Naver Pay points or a card. - */ - funding: NaverPay.Funding; - } + export interface WechatPay {} - export interface NzBankAccount { - /** - * The name on the bank account. Only present if the account holder name is different from the name of the authorized signatory collected in the PaymentMethod's billing details. - */ - account_holder_name: string | null; + export interface Zip {} + export namespace Card { + export interface Checks { /** - * The numeric code for the bank account's bank. + * If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. */ - bank_code: string; + address_line1_check: string | null; /** - * The name of the bank. + * If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. */ - bank_name: string; + address_postal_code_check: string | null; /** - * The numeric code for the bank account's bank branch. + * If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. */ - branch_code: string; + cvc_check: string | null; + } + export interface Networks { /** - * Last four digits of the bank account number. + * All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). */ - last4: string; + available: Array; /** - * The suffix of the bank account number. + * The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. */ - suffix: string | null; + preferred: string | null; } - export interface Oxxo {} + export interface Wallet { + amex_express_checkout?: Wallet.AmexExpressCheckout; + + apple_pay?: Wallet.ApplePay; - export interface P24 { /** - * The customer's bank, if provided. + * (For tokenized numbers only.) The last four digits of the device account number. */ - bank: P24.Bank | null; - } - - export interface PayByBank {} + dynamic_last4: string | null; - export interface Payco {} + google_pay?: Wallet.GooglePay; - export interface Paynow {} + link?: Wallet.Link; - export interface Paypal { - /** - * Two-letter ISO code representing the buyer's country. Values are provided by PayPal directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. - */ - country: string | null; - - /** - * Uniquely identifies this particular PayPal account. You can use this attribute to check whether two PayPal accounts are the same. - */ - fingerprint?: string | null; + masterpass?: Wallet.Masterpass; - /** - * Owner's email. Values are provided by PayPal directly - * (if supported) at the time of authorization or settlement. They cannot be set or mutated. - */ - payer_email: string | null; + samsung_pay?: Wallet.SamsungPay; /** - * PayPal account PayerID. This identifier uniquely identifies the PayPal customer. + * The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. */ - payer_id: string | null; + type: Wallet.Type; - /** - * Owner's verified email. Values are verified or provided by PayPal directly - * (if supported) at the time of authorization or settlement. They cannot be set or mutated. - */ - verified_email?: string | null; + visa_checkout?: Wallet.VisaCheckout; } - export interface Paypay {} + export namespace Wallet { + export interface AmexExpressCheckout {} - export interface Payto { - /** - * Bank-State-Branch number of the bank account. - */ - bsb_number: string | null; + export interface ApplePay {} - /** - * Last four digits of the bank account number. - */ - last4: string | null; + export interface GooglePay {} - /** - * The PayID alias for the bank account. - */ - pay_id: string | null; - } + export interface Link {} - export interface Pix {} + export interface Masterpass { + /** + * Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + billing_address: Address | null; - export interface Promptpay {} + /** + * Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + email: string | null; - export interface Qris {} + /** + * Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + name: string | null; - export interface Rechnung { - dob?: Rechnung.Dob; - } + /** + * Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + shipping_address: Address | null; + } - export interface RevolutPay {} + export interface SamsungPay {} - export interface SamsungPay {} + export type Type = + | 'amex_express_checkout' + | 'apple_pay' + | 'google_pay' + | 'link' + | 'masterpass' + | 'samsung_pay' + | 'visa_checkout'; - export interface Satispay {} + export interface VisaCheckout { + /** + * Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + billing_address: Address | null; - export interface Scalapay {} + /** + * Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + email: string | null; - export interface SepaDebit { - /** - * Bank code of bank associated with the bank account. - */ - bank_code: string | null; + /** + * Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + name: string | null; - /** - * Branch code of bank associated with the bank account. - */ - branch_code: string | null; + /** + * Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. + */ + shipping_address: Address | null; + } + } + } + export namespace CardPresent { + export interface Networks { /** - * Two-letter ISO code representing the country the bank account is located in. + * All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). */ - country: string | null; + available: Array; /** - * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + * The preferred network for the card. */ - fingerprint: string | null; + preferred: string | null; + } + export interface Offline { /** - * Information about the object that generated this PaymentMethod. + * Time at which the payment was collected while offline */ - generated_from: SepaDebit.GeneratedFrom | null; + stored_at: number | null; /** - * Last four characters of the IBAN. + * The method used to process this payment method offline. Only deferred is allowed. */ - last4: string | null; + type: 'deferred' | null; } - export interface Shopeepay {} + export type ReadMethod = + | 'contact_emv' + | 'contactless_emv' + | 'contactless_magstripe_mode' + | 'magnetic_stripe_fallback' + | 'magnetic_stripe_track2'; - export interface Sofort { + export interface Wallet { /** - * Two-letter ISO code representing the country the bank account is located in. + * The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. */ - country: string | null; + type: Wallet.Type; } - export interface StripeBalance { - /** - * The connected account ID whose Stripe balance to use as the source of payment - */ - account?: string | null; + export namespace Wallet { + export type Type = + | 'apple_pay' + | 'google_pay' + | 'samsung_pay' + | 'unknown'; } + } + + export namespace Eps { + export type Bank = + | 'arzte_und_apotheker_bank' + | 'austrian_anadi_bank_ag' + | 'bank_austria' + | 'bankhaus_carl_spangler' + | 'bankhaus_schelhammer_und_schattera_ag' + | 'bawag_psk_ag' + | 'bks_bank_ag' + | 'brull_kallmus_bank_ag' + | 'btv_vier_lander_bank' + | 'capital_bank_grawe_gruppe_ag' + | 'deutsche_bank_ag' + | 'dolomitenbank' + | 'easybank_ag' + | 'erste_bank_und_sparkassen' + | 'hypo_alpeadriabank_international_ag' + | 'hypo_bank_burgenland_aktiengesellschaft' + | 'hypo_noe_lb_fur_niederosterreich_u_wien' + | 'hypo_oberosterreich_salzburg_steiermark' + | 'hypo_tirol_bank_ag' + | 'hypo_vorarlberg_bank_ag' + | 'marchfelder_bank' + | 'oberbank_ag' + | 'raiffeisen_bankengruppe_osterreich' + | 'schoellerbank_ag' + | 'sparda_bank_wien' + | 'volksbank_gruppe' + | 'volkskreditbank_ag' + | 'vr_bank_braunau'; + } - export interface Sunbit {} + export namespace Fpx { + export type AccountHolderType = 'company' | 'individual'; + + export type Bank = + | 'affin_bank' + | 'agrobank' + | 'alliance_bank' + | 'ambank' + | 'bank_islam' + | 'bank_muamalat' + | 'bank_of_china' + | 'bank_rakyat' + | 'bsn' + | 'cimb' + | 'deutsche_bank' + | 'hong_leong_bank' + | 'hsbc' + | 'kfh' + | 'maybank2e' + | 'maybank2u' + | 'ocbc' + | 'pb_enterprise' + | 'public_bank' + | 'rhb' + | 'standard_chartered' + | 'uob'; + } - export interface Swish {} + export namespace IdBankTransfer { + export type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata'; + } - export interface Twint {} + export namespace Ideal { + export type Bank = + | 'abn_amro' + | 'adyen' + | 'asn_bank' + | 'bunq' + | 'buut' + | 'finom' + | 'handelsbanken' + | 'ing' + | 'knab' + | 'mollie' + | 'moneyou' + | 'n26' + | 'nn' + | 'rabobank' + | 'regiobank' + | 'revolut' + | 'sns_bank' + | 'triodos_bank' + | 'van_lanschot' + | 'yoursafe'; + + export type Bic = + | 'ABNANL2A' + | 'ADYBNL2A' + | 'ASNBNL21' + | 'BITSNL2A' + | 'BUNQNL2A' + | 'BUUTNL2A' + | 'FNOMNL22' + | 'FVLBNL22' + | 'HANDNL2A' + | 'INGBNL2A' + | 'KNABNL2H' + | 'MLLENL2A' + | 'MOYONL21' + | 'NNBANL2G' + | 'NTSBDEB1' + | 'RABONL2U' + | 'RBRBNL21' + | 'REVOIE23' + | 'REVOLT21' + | 'SNSBNL2A' + | 'TRIONL2U'; + } - export type Type = - | 'acss_debit' - | 'affirm' - | 'afterpay_clearpay' - | 'alipay' - | 'alma' - | 'amazon_pay' - | 'au_becs_debit' - | 'bacs_debit' - | 'bancontact' - | 'billie' - | 'bizum' - | 'blik' - | 'boleto' - | 'card' - | 'card_present' - | 'cashapp' - | 'crypto' - | 'custom' - | 'customer_balance' - | 'eps' - | 'fpx' - | 'giropay' - | 'gopay' - | 'grabpay' - | 'id_bank_transfer' - | 'ideal' - | 'interac_present' - | 'kakao_pay' - | 'klarna' - | 'konbini' - | 'kr_card' - | 'link' - | 'mb_way' - | 'mobilepay' - | 'multibanco' - | 'naver_pay' - | 'nz_bank_account' - | 'oxxo' - | 'p24' - | 'pay_by_bank' - | 'payco' - | 'paynow' - | 'paypal' - | 'paypay' - | 'payto' - | 'pix' - | 'promptpay' - | 'qris' - | 'rechnung' - | 'revolut_pay' - | 'samsung_pay' - | 'satispay' - | 'scalapay' - | 'sepa_debit' - | 'shopeepay' - | 'sofort' - | 'stripe_balance' - | 'sunbit' - | 'swish' - | 'twint' - | 'upi' - | 'us_bank_account' - | 'wechat_pay' - | 'zip'; - - export interface Upi { + export namespace InteracPresent { + export interface Networks { /** - * Customer's unique Virtual Payment Address + * All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). */ - vpa: string | null; - } + available: Array; - export interface UsBankAccount { /** - * Account holder type: individual or company. + * The preferred network for the card. */ - account_holder_type: UsBankAccount.AccountHolderType | null; + preferred: string | null; + } - /** - * Account number of the bank account. - */ - account_number?: string | null; + export type ReadMethod = + | 'contact_emv' + | 'contactless_emv' + | 'contactless_magstripe_mode' + | 'magnetic_stripe_fallback' + | 'magnetic_stripe_track2'; + } + export namespace Klarna { + export interface Dob { /** - * Account type: checkings or savings. Defaults to checking if omitted. + * The day of birth, between 1 and 31. */ - account_type: UsBankAccount.AccountType | null; + day: number | null; /** - * The name of the bank. + * The month of birth, between 1 and 12. */ - bank_name: string | null; + month: number | null; /** - * The ID of the Financial Connections Account used to create the payment method. + * The four-digit year of birth. */ - financial_connections_account: string | null; + year: number | null; + } + } + + export namespace KrCard { + export type Brand = + | 'bc' + | 'citi' + | 'hana' + | 'hyundai' + | 'jeju' + | 'jeonbuk' + | 'kakaobank' + | 'kbank' + | 'kdbbank' + | 'kookmin' + | 'kwangju' + | 'lotte' + | 'mg' + | 'nh' + | 'post' + | 'samsung' + | 'savingsbank' + | 'shinhan' + | 'shinhyup' + | 'suhyup' + | 'tossbank' + | 'woori'; + } + + export namespace NaverPay { + export type Funding = 'card' | 'points'; + } + + export namespace P24 { + export type Bank = + | 'alior_bank' + | 'bank_millennium' + | 'bank_nowy_bfg_sa' + | 'bank_pekao_sa' + | 'banki_spbdzielcze' + | 'blik' + | 'bnp_paribas' + | 'boz' + | 'citi_handlowy' + | 'credit_agricole' + | 'envelobank' + | 'etransfer_pocztowy24' + | 'getin_bank' + | 'ideabank' + | 'ing' + | 'inteligo' + | 'mbank_mtransfer' + | 'nest_przelew' + | 'noble_pay' + | 'pbac_z_ipko' + | 'plus_bank' + | 'santander_przelew24' + | 'tmobile_usbugi_bankowe' + | 'toyota_bank' + | 'velobank' + | 'volkswagen_bank'; + } + export namespace Rechnung { + export interface Dob { /** - * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + * The day of birth, between 1 and 31. */ - fingerprint: string | null; + day: number; /** - * Last four digits of the bank account number. + * The month of birth, between 1 and 12. */ - last4: string | null; + month: number; /** - * Contains information about US bank account networks that can be used. + * The four-digit year of birth. */ - networks: UsBankAccount.Networks | null; + year: number; + } + } + export namespace SepaDebit { + export interface GeneratedFrom { /** - * Routing number of the bank account. + * The ID of the Charge that generated this PaymentMethod, if any. */ - routing_number: string | null; + charge: string | Charge | null; /** - * Contains information about the future reusability of this PaymentMethod. + * The ID of the SetupAttempt that generated this PaymentMethod, if any. */ - status_details: UsBankAccount.StatusDetails | null; - } - - export interface WechatPay {} - - export interface Zip {} - - export namespace Card { - export interface Checks { - /** - * If a address line1 was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. - */ - address_line1_check: string | null; - - /** - * If a address postal code was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. - */ - address_postal_code_check: string | null; - - /** - * If a CVC was provided, results of the check, one of `pass`, `fail`, `unavailable`, or `unchecked`. - */ - cvc_check: string | null; - } - - export interface Networks { - /** - * All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). - */ - available: Array; - - /** - * The preferred network for co-branded cards. Can be `cartes_bancaires`, `mastercard`, `visa` or `invalid_preference` if requested network is not valid for the card. - */ - preferred: string | null; - } - - export interface Wallet { - amex_express_checkout?: Wallet.AmexExpressCheckout; - - apple_pay?: Wallet.ApplePay; - - /** - * (For tokenized numbers only.) The last four digits of the device account number. - */ - dynamic_last4: string | null; - - google_pay?: Wallet.GooglePay; - - link?: Wallet.Link; - - masterpass?: Wallet.Masterpass; - - samsung_pay?: Wallet.SamsungPay; - - /** - * The type of the card wallet, one of `amex_express_checkout`, `apple_pay`, `google_pay`, `masterpass`, `samsung_pay`, `visa_checkout`, or `link`. An additional hash is included on the Wallet subhash with a name matching this value. It contains additional information specific to the card wallet type. - */ - type: Wallet.Type; - - visa_checkout?: Wallet.VisaCheckout; - } - - export namespace Wallet { - export interface AmexExpressCheckout {} - - export interface ApplePay {} - - export interface GooglePay {} - - export interface Link {} - - export interface Masterpass { - /** - * Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. - */ - billing_address: Address | null; - - /** - * Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. - */ - email: string | null; - - /** - * Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. - */ - name: string | null; - - /** - * Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. - */ - shipping_address: Address | null; - } - - export interface SamsungPay {} - - export type Type = - | 'amex_express_checkout' - | 'apple_pay' - | 'google_pay' - | 'link' - | 'masterpass' - | 'samsung_pay' - | 'visa_checkout'; - - export interface VisaCheckout { - /** - * Owner's verified billing address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. - */ - billing_address: Address | null; - - /** - * Owner's verified email. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. - */ - email: string | null; - - /** - * Owner's verified full name. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. - */ - name: string | null; - - /** - * Owner's verified shipping address. Values are verified or provided by the wallet directly (if supported) at the time of authorization or settlement. They cannot be set or mutated. - */ - shipping_address: Address | null; - } - } - } - - export namespace CardPresent { - export interface Networks { - /** - * All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). - */ - available: Array; - - /** - * The preferred network for the card. - */ - preferred: string | null; - } - - export interface Offline { - /** - * Time at which the payment was collected while offline - */ - stored_at: number | null; - - /** - * The method used to process this payment method offline. Only deferred is allowed. - */ - type: 'deferred' | null; - } - - export type ReadMethod = - | 'contact_emv' - | 'contactless_emv' - | 'contactless_magstripe_mode' - | 'magnetic_stripe_fallback' - | 'magnetic_stripe_track2'; - - export interface Wallet { - /** - * The type of mobile wallet, one of `apple_pay`, `google_pay`, `samsung_pay`, or `unknown`. - */ - type: Wallet.Type; - } - - export namespace Wallet { - export type Type = - | 'apple_pay' - | 'google_pay' - | 'samsung_pay' - | 'unknown'; - } - } - - export namespace Eps { - export type Bank = - | 'arzte_und_apotheker_bank' - | 'austrian_anadi_bank_ag' - | 'bank_austria' - | 'bankhaus_carl_spangler' - | 'bankhaus_schelhammer_und_schattera_ag' - | 'bawag_psk_ag' - | 'bks_bank_ag' - | 'brull_kallmus_bank_ag' - | 'btv_vier_lander_bank' - | 'capital_bank_grawe_gruppe_ag' - | 'deutsche_bank_ag' - | 'dolomitenbank' - | 'easybank_ag' - | 'erste_bank_und_sparkassen' - | 'hypo_alpeadriabank_international_ag' - | 'hypo_bank_burgenland_aktiengesellschaft' - | 'hypo_noe_lb_fur_niederosterreich_u_wien' - | 'hypo_oberosterreich_salzburg_steiermark' - | 'hypo_tirol_bank_ag' - | 'hypo_vorarlberg_bank_ag' - | 'marchfelder_bank' - | 'oberbank_ag' - | 'raiffeisen_bankengruppe_osterreich' - | 'schoellerbank_ag' - | 'sparda_bank_wien' - | 'volksbank_gruppe' - | 'volkskreditbank_ag' - | 'vr_bank_braunau'; - } - - export namespace Fpx { - export type AccountHolderType = 'company' | 'individual'; - - export type Bank = - | 'affin_bank' - | 'agrobank' - | 'alliance_bank' - | 'ambank' - | 'bank_islam' - | 'bank_muamalat' - | 'bank_of_china' - | 'bank_rakyat' - | 'bsn' - | 'cimb' - | 'deutsche_bank' - | 'hong_leong_bank' - | 'hsbc' - | 'kfh' - | 'maybank2e' - | 'maybank2u' - | 'ocbc' - | 'pb_enterprise' - | 'public_bank' - | 'rhb' - | 'standard_chartered' - | 'uob'; - } - - export namespace IdBankTransfer { - export type Bank = 'bca' | 'bni' | 'bri' | 'cimb' | 'permata'; - } - - export namespace Ideal { - export type Bank = - | 'abn_amro' - | 'adyen' - | 'asn_bank' - | 'bunq' - | 'buut' - | 'finom' - | 'handelsbanken' - | 'ing' - | 'knab' - | 'mollie' - | 'moneyou' - | 'n26' - | 'nn' - | 'rabobank' - | 'regiobank' - | 'revolut' - | 'sns_bank' - | 'triodos_bank' - | 'van_lanschot' - | 'yoursafe'; - - export type Bic = - | 'ABNANL2A' - | 'ADYBNL2A' - | 'ASNBNL21' - | 'BITSNL2A' - | 'BUNQNL2A' - | 'BUUTNL2A' - | 'FNOMNL22' - | 'FVLBNL22' - | 'HANDNL2A' - | 'INGBNL2A' - | 'KNABNL2H' - | 'MLLENL2A' - | 'MOYONL21' - | 'NNBANL2G' - | 'NTSBDEB1' - | 'RABONL2U' - | 'RBRBNL21' - | 'REVOIE23' - | 'REVOLT21' - | 'SNSBNL2A' - | 'TRIONL2U'; - } - - export namespace InteracPresent { - export interface Networks { - /** - * All networks available for selection via [payment_method_options.card.network](https://docs.stripe.com/api/payment_intents/confirm#confirm_payment_intent-payment_method_options-card-network). - */ - available: Array; - - /** - * The preferred network for the card. - */ - preferred: string | null; - } - - export type ReadMethod = - | 'contact_emv' - | 'contactless_emv' - | 'contactless_magstripe_mode' - | 'magnetic_stripe_fallback' - | 'magnetic_stripe_track2'; + setup_attempt: string | SetupAttempt | null; } + } - export namespace Klarna { - export interface Dob { - /** - * The day of birth, between 1 and 31. - */ - day: number | null; + export namespace UsBankAccount { + export type AccountHolderType = 'company' | 'individual'; - /** - * The month of birth, between 1 and 12. - */ - month: number | null; + export type AccountType = 'checking' | 'savings'; - /** - * The four-digit year of birth. - */ - year: number | null; - } - } + export interface Networks { + /** + * The preferred network. + */ + preferred: string | null; - export namespace KrCard { - export type Brand = - | 'bc' - | 'citi' - | 'hana' - | 'hyundai' - | 'jeju' - | 'jeonbuk' - | 'kakaobank' - | 'kbank' - | 'kdbbank' - | 'kookmin' - | 'kwangju' - | 'lotte' - | 'mg' - | 'nh' - | 'post' - | 'samsung' - | 'savingsbank' - | 'shinhan' - | 'shinhyup' - | 'suhyup' - | 'tossbank' - | 'woori'; + /** + * All supported networks. + */ + supported: Array; } - export namespace NaverPay { - export type Funding = 'card' | 'points'; + export interface StatusDetails { + blocked?: StatusDetails.Blocked; } - export namespace P24 { - export type Bank = - | 'alior_bank' - | 'bank_millennium' - | 'bank_nowy_bfg_sa' - | 'bank_pekao_sa' - | 'banki_spbdzielcze' - | 'blik' - | 'bnp_paribas' - | 'boz' - | 'citi_handlowy' - | 'credit_agricole' - | 'envelobank' - | 'etransfer_pocztowy24' - | 'getin_bank' - | 'ideabank' - | 'ing' - | 'inteligo' - | 'mbank_mtransfer' - | 'nest_przelew' - | 'noble_pay' - | 'pbac_z_ipko' - | 'plus_bank' - | 'santander_przelew24' - | 'tmobile_usbugi_bankowe' - | 'toyota_bank' - | 'velobank' - | 'volkswagen_bank'; + export namespace Networks { + export type Supported = 'ach' | 'us_domestic_wire'; } - export namespace Rechnung { - export interface Dob { - /** - * The day of birth, between 1 and 31. - */ - day: number; - + export namespace StatusDetails { + export interface Blocked { /** - * The month of birth, between 1 and 12. + * The ACH network code that resulted in this block. */ - month: number; + network_code: Blocked.NetworkCode | null; /** - * The four-digit year of birth. + * The reason why this PaymentMethod's fingerprint has been blocked */ - year: number; + reason: Blocked.Reason | null; } - } - - export namespace SepaDebit { - export interface GeneratedFrom { - /** - * The ID of the Charge that generated this PaymentMethod, if any. - */ - charge: string | Charge | null; - /** - * The ID of the SetupAttempt that generated this PaymentMethod, if any. - */ - setup_attempt: string | SetupAttempt | null; + export namespace Blocked { + export type NetworkCode = + | 'R02' + | 'R03' + | 'R04' + | 'R05' + | 'R07' + | 'R08' + | 'R10' + | 'R11' + | 'R16' + | 'R20' + | 'R29' + | 'R31'; + + export type Reason = + | 'bank_account_closed' + | 'bank_account_frozen' + | 'bank_account_invalid_details' + | 'bank_account_restricted' + | 'bank_account_unusable' + | 'debit_not_authorized' + | 'tokenized_account_number_deactivated'; } } + } + } - export namespace UsBankAccount { - export type AccountHolderType = 'company' | 'individual'; - - export type AccountType = 'checking' | 'savings'; - - export interface Networks { - /** - * The preferred network. - */ - preferred: string | null; + export namespace RiskDetails { + export interface Insights { + /** + * Bot risk insight. + */ + bot?: Insights.Bot | null; - /** - * All supported networks. - */ - supported: Array; - } + /** + * Card issuer decline risk insight. + */ + card_issuer_decline?: Insights.CardIssuerDecline | null; - export interface StatusDetails { - blocked?: StatusDetails.Blocked; - } + /** + * Card testing risk insight. + */ + card_testing?: Insights.CardTesting | null; - export namespace Networks { - export type Supported = 'ach' | 'us_domestic_wire'; - } + /** + * Fraudulent dispute risk insight. + */ + fraudulent_dispute: Insights.FraudulentDispute | null; - export namespace StatusDetails { - export interface Blocked { - /** - * The ACH network code that resulted in this block. - */ - network_code: Blocked.NetworkCode | null; - - /** - * The reason why this PaymentMethod's fingerprint has been blocked - */ - reason: Blocked.Reason | null; - } - - export namespace Blocked { - export type NetworkCode = - | 'R02' - | 'R03' - | 'R04' - | 'R05' - | 'R07' - | 'R08' - | 'R10' - | 'R11' - | 'R16' - | 'R20' - | 'R29' - | 'R31'; - - export type Reason = - | 'bank_account_closed' - | 'bank_account_frozen' - | 'bank_account_invalid_details' - | 'bank_account_restricted' - | 'bank_account_unusable' - | 'debit_not_authorized' - | 'tokenized_account_number_deactivated'; - } - } - } + /** + * Stolen card risk insight. + */ + stolen_card?: Insights.StolenCard | null; } - export namespace RiskDetails { - export interface Insights { + export namespace Insights { + export interface Bot { /** - * Bot risk insight. + * Recommended action for this insight. */ - bot?: Insights.Bot | null; + recommended_action: string; /** - * Card issuer decline risk insight. + * Risk score for this insight. */ - card_issuer_decline?: Insights.CardIssuerDecline | null; + score: number; + } + export interface CardIssuerDecline { /** - * Card testing risk insight. + * Recommended action for this insight. */ - card_testing?: Insights.CardTesting | null; + recommended_action: string; /** - * Fraudulent dispute risk insight. + * Risk score for this insight. */ - fraudulent_dispute: Insights.FraudulentDispute | null; + score: number; + } + export interface CardTesting { /** - * Stolen card risk insight. + * Recommended action for this insight. */ - stolen_card?: Insights.StolenCard | null; - } - - export namespace Insights { - export interface Bot { - /** - * Recommended action for this insight. - */ - recommended_action: string; - - /** - * Risk score for this insight. - */ - score: number; - } - - export interface CardIssuerDecline { - /** - * Recommended action for this insight. - */ - recommended_action: string; - - /** - * Risk score for this insight. - */ - score: number; - } - - export interface CardTesting { - /** - * Recommended action for this insight. - */ - recommended_action: string; - - /** - * Risk score for this insight. - */ - score: number; - } - - export interface FraudulentDispute { - /** - * Recommended action for this insight. - */ - recommended_action: string; + recommended_action: string; - /** - * Risk score for this insight. - */ - score: number; - } + /** + * Risk score for this insight. + */ + score: number; + } - export interface StolenCard { - /** - * Recommended action for this insight. - */ - recommended_action: string; + export interface FraudulentDispute { + /** + * Recommended action for this insight. + */ + recommended_action: string; - /** - * Risk score for this insight. - */ - score: number; - } + /** + * Risk score for this insight. + */ + score: number; } - } - export namespace UsageDetails { - export interface AmountCaptured { + export interface StolenCard { /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + * Recommended action for this insight. */ - currency: string; + recommended_action: string; /** - * Integer value of the amount in the smallest currency unit. + * Risk score for this insight. */ - value: number; + score: number; } } } + + export namespace UsageDetails { + export interface AmountCaptured { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * Integer value of the amount in the smallest currency unit. + */ + value: number; + } + } } export namespace SharedPayment { export interface GrantedTokenRetrieveParams { diff --git a/src/resources/SharedPayment/IssuedTokens.ts b/src/resources/SharedPayment/IssuedTokens.ts index 73ee33ac52..f8c3ef66eb 100644 --- a/src/resources/SharedPayment/IssuedTokens.ts +++ b/src/resources/SharedPayment/IssuedTokens.ts @@ -73,7 +73,7 @@ export interface IssuedToken { /** * The reason why the SharedPaymentIssuedToken has been deactivated. */ - deactivated_reason: SharedPayment.IssuedToken.DeactivatedReason | null; + deactivated_reason: IssuedToken.DeactivatedReason | null; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -83,7 +83,7 @@ export interface IssuedToken { /** * If present, describes the action required to make this `SharedPaymentIssuedToken` usable for payments. Present when the token is in `requires_action` state. */ - next_action: SharedPayment.IssuedToken.NextAction | null; + next_action: IssuedToken.NextAction | null; /** * ID of an existing PaymentMethod. @@ -98,12 +98,12 @@ export interface IssuedToken { /** * Risk details of the SharedPaymentIssuedToken. */ - risk_details?: SharedPayment.IssuedToken.RiskDetails | null; + risk_details?: IssuedToken.RiskDetails | null; /** * Seller details of the SharedPaymentIssuedToken, including network_id and external_id. */ - seller_details: SharedPayment.IssuedToken.SellerDetails | null; + seller_details: IssuedToken.SellerDetails | null; /** * Indicates that you intend to save the PaymentMethod of this SharedPaymentToken to a customer later. @@ -120,197 +120,195 @@ export interface IssuedToken { /** * Status of this SharedPaymentIssuedToken, one of `active`, `requires_action`, or `deactivated`. */ - status: SharedPayment.IssuedToken.Status | null; + status: IssuedToken.Status | null; /** * Usage details of the SharedPaymentIssuedToken */ - usage_details: SharedPayment.IssuedToken.UsageDetails | null; + usage_details: IssuedToken.UsageDetails | null; /** * Usage limits of the SharedPaymentIssuedToken. */ - usage_limits: SharedPayment.IssuedToken.UsageLimits | null; + usage_limits: IssuedToken.UsageLimits | null; } -export namespace SharedPayment { - export namespace IssuedToken { - export type DeactivatedReason = - | 'consumed' - | 'expired' - | 'resolved' - | 'revoked'; - - export interface NextAction { - /** - * Specifies the type of next action required. Determines which child attribute contains action details. - */ - type: 'use_stripe_sdk'; +export namespace IssuedToken { + export type DeactivatedReason = + | 'consumed' + | 'expired' + | 'resolved' + | 'revoked'; + + export interface NextAction { + /** + * Specifies the type of next action required. Determines which child attribute contains action details. + */ + type: 'use_stripe_sdk'; - /** - * Contains details for handling the next action using Stripe.js, iOS, or Android SDKs. Present when `next_action.type` is `use_stripe_sdk`. - */ - use_stripe_sdk: NextAction.UseStripeSdk | null; - } + /** + * Contains details for handling the next action using Stripe.js, iOS, or Android SDKs. Present when `next_action.type` is `use_stripe_sdk`. + */ + use_stripe_sdk: NextAction.UseStripeSdk | null; + } - export interface RiskDetails { - /** - * Risk insights for this token, including scores and recommended actions for each risk type. - */ - insights: RiskDetails.Insights; - } + export interface RiskDetails { + /** + * Risk insights for this token, including scores and recommended actions for each risk type. + */ + insights: RiskDetails.Insights; + } - export interface SellerDetails { - /** - * A unique id within a network that identifies a logical seller. This should usually be the merchant id on the seller platform. - */ - external_id: string; + export interface SellerDetails { + /** + * A unique id within a network that identifies a logical seller. This should usually be the merchant id on the seller platform. + */ + external_id: string; + + /** + * The unique and logical string that identifies the seller platform that this SharedToken is being created for. + */ + network_business_profile: string; + } + + export type Status = 'active' | 'deactivated' | 'requires_action'; + + export interface UsageDetails { + /** + * The total amount captured using this SharedPaymentToken. + */ + amount_captured: UsageDetails.AmountCaptured | null; + } + + export interface UsageLimits { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent. + */ + expires_at: number | null; + /** + * Max amount that can be captured using this SharedPaymentToken. + */ + max_amount: number; + } + + export namespace NextAction { + export interface UseStripeSdk { /** - * The unique and logical string that identifies the seller platform that this SharedToken is being created for. + * A base64-encoded string used by Stripe.js and the iOS and Android client SDKs to handle the next action. Its content is subject to change. */ - network_business_profile: string; + value: string; } + } - export type Status = 'active' | 'deactivated' | 'requires_action'; + export namespace RiskDetails { + export interface Insights { + /** + * Bot risk insight. + */ + bot?: Insights.Bot | null; - export interface UsageDetails { /** - * The total amount captured using this SharedPaymentToken. + * Card issuer decline risk insight. */ - amount_captured: UsageDetails.AmountCaptured | null; - } + card_issuer_decline?: Insights.CardIssuerDecline | null; - export interface UsageLimits { /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + * Card testing risk insight. */ - currency: string; + card_testing?: Insights.CardTesting | null; /** - * Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent. + * Fraudulent dispute risk insight. */ - expires_at: number | null; + fraudulent_dispute: Insights.FraudulentDispute | null; /** - * Max amount that can be captured using this SharedPaymentToken. + * Stolen card risk insight. */ - max_amount: number; + stolen_card?: Insights.StolenCard | null; } - export namespace NextAction { - export interface UseStripeSdk { + export namespace Insights { + export interface Bot { /** - * A base64-encoded string used by Stripe.js and the iOS and Android client SDKs to handle the next action. Its content is subject to change. + * Recommended action for this insight. */ - value: string; - } - } + recommended_action: string; - export namespace RiskDetails { - export interface Insights { /** - * Bot risk insight. + * Risk score for this insight. */ - bot?: Insights.Bot | null; + score: number; + } + export interface CardIssuerDecline { /** - * Card issuer decline risk insight. + * Recommended action for this insight. */ - card_issuer_decline?: Insights.CardIssuerDecline | null; + recommended_action: string; /** - * Card testing risk insight. + * Risk score for this insight. */ - card_testing?: Insights.CardTesting | null; + score: number; + } + export interface CardTesting { /** - * Fraudulent dispute risk insight. + * Recommended action for this insight. */ - fraudulent_dispute: Insights.FraudulentDispute | null; + recommended_action: string; /** - * Stolen card risk insight. + * Risk score for this insight. */ - stolen_card?: Insights.StolenCard | null; + score: number; } - export namespace Insights { - export interface Bot { - /** - * Recommended action for this insight. - */ - recommended_action: string; - - /** - * Risk score for this insight. - */ - score: number; - } - - export interface CardIssuerDecline { - /** - * Recommended action for this insight. - */ - recommended_action: string; - - /** - * Risk score for this insight. - */ - score: number; - } - - export interface CardTesting { - /** - * Recommended action for this insight. - */ - recommended_action: string; - - /** - * Risk score for this insight. - */ - score: number; - } - - export interface FraudulentDispute { - /** - * Recommended action for this insight. - */ - recommended_action: string; - - /** - * Risk score for this insight. - */ - score: number; - } - - export interface StolenCard { - /** - * Recommended action for this insight. - */ - recommended_action: string; - - /** - * Risk score for this insight. - */ - score: number; - } + export interface FraudulentDispute { + /** + * Recommended action for this insight. + */ + recommended_action: string; + + /** + * Risk score for this insight. + */ + score: number; } - } - export namespace UsageDetails { - export interface AmountCaptured { + export interface StolenCard { /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + * Recommended action for this insight. */ - currency: string; + recommended_action: string; /** - * Integer value of the amount in the smallest currency unit. + * Risk score for this insight. */ - value: number; + score: number; } } } + + export namespace UsageDetails { + export interface AmountCaptured { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * Integer value of the amount in the smallest currency unit. + */ + value: number; + } + } } export namespace SharedPayment { export interface IssuedTokenCreateParams { diff --git a/src/resources/Sigma/ScheduledQueryRuns.ts b/src/resources/Sigma/ScheduledQueryRuns.ts index 9b7a835b82..dd0ae65f79 100644 --- a/src/resources/Sigma/ScheduledQueryRuns.ts +++ b/src/resources/Sigma/ScheduledQueryRuns.ts @@ -60,7 +60,7 @@ export interface ScheduledQueryRun { */ data_load_time: number; - error?: Sigma.ScheduledQueryRun.Error; + error?: ScheduledQueryRun.Error; /** * The file object representing the results of the query. @@ -92,14 +92,12 @@ export interface ScheduledQueryRun { */ title: string; } -export namespace Sigma { - export namespace ScheduledQueryRun { - export interface Error { - /** - * Information about the run failure. - */ - message: string; - } +export namespace ScheduledQueryRun { + export interface Error { + /** + * Information about the run failure. + */ + message: string; } } export namespace Sigma { diff --git a/src/resources/Tax/Associations.ts b/src/resources/Tax/Associations.ts index 7f2a03ea49..eec6e52540 100644 --- a/src/resources/Tax/Associations.ts +++ b/src/resources/Tax/Associations.ts @@ -43,49 +43,47 @@ export interface Association { /** * Information about the tax transactions linked to this payment intent */ - tax_transaction_attempts: Array | null; + tax_transaction_attempts: Array | null; } -export namespace Tax { - export namespace Association { - export interface TaxTransactionAttempt { - committed?: TaxTransactionAttempt.Committed; +export namespace Association { + export interface TaxTransactionAttempt { + committed?: TaxTransactionAttempt.Committed; + + errored?: TaxTransactionAttempt.Errored; - errored?: TaxTransactionAttempt.Errored; + /** + * The source of the tax transaction attempt. This is either a refund or a payment intent. + */ + source: string; + /** + * The status of the transaction attempt. This can be `errored` or `committed`. + */ + status: string; + } + + export namespace TaxTransactionAttempt { + export interface Committed { /** - * The source of the tax transaction attempt. This is either a refund or a payment intent. + * The [Tax Transaction](https://docs.stripe.com/api/tax/transaction/object) */ - source: string; + transaction: string; + } + export interface Errored { /** - * The status of the transaction attempt. This can be `errored` or `committed`. + * Details on why we couldn't commit the tax transaction. */ - status: string; + reason: Errored.Reason; } - export namespace TaxTransactionAttempt { - export interface Committed { - /** - * The [Tax Transaction](https://docs.stripe.com/api/tax/transaction/object) - */ - transaction: string; - } - - export interface Errored { - /** - * Details on why we couldn't commit the tax transaction. - */ - reason: Errored.Reason; - } - - export namespace Errored { - export type Reason = - | 'another_payment_associated_with_calculation' - | 'calculation_expired' - | 'currency_mismatch' - | 'original_transaction_voided' - | 'unique_reference_violation'; - } + export namespace Errored { + export type Reason = + | 'another_payment_associated_with_calculation' + | 'calculation_expired' + | 'currency_mismatch' + | 'original_transaction_voided' + | 'unique_reference_violation'; } } } diff --git a/src/resources/Tax/CalculationLineItems.ts b/src/resources/Tax/CalculationLineItems.ts index cecdb7ae3a..715e4a9b62 100644 --- a/src/resources/Tax/CalculationLineItems.ts +++ b/src/resources/Tax/CalculationLineItems.ts @@ -56,144 +56,137 @@ export interface CalculationLineItem { /** * Specifies whether the `amount` includes taxes. If `tax_behavior=inclusive`, then the amount includes taxes. */ - tax_behavior: Tax.CalculationLineItem.TaxBehavior; + tax_behavior: CalculationLineItem.TaxBehavior; /** * Detailed account of taxes relevant to this line item. */ - tax_breakdown?: Array | null; + tax_breakdown?: Array | null; /** * The [tax code](https://docs.stripe.com/tax/tax-categories) ID used for this resource. */ tax_code: string; } -export namespace Tax { - export namespace CalculationLineItem { - export type TaxBehavior = 'exclusive' | 'inclusive'; +export namespace CalculationLineItem { + export type TaxBehavior = 'exclusive' | 'inclusive'; + + export interface TaxBreakdown { + /** + * The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + */ + amount: number; + + jurisdiction: TaxBreakdown.Jurisdiction; + + /** + * Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address). + */ + sourcing: TaxBreakdown.Sourcing; + + /** + * Details regarding the rate for this tax. This field will be `null` when the tax is not imposed, for example if the product is exempt from tax. + */ + tax_rate_details: TaxBreakdown.TaxRateDetails | null; + + /** + * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. + */ + taxability_reason: TaxBreakdown.TaxabilityReason; + + /** + * The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + */ + taxable_amount: number; + } - export interface TaxBreakdown { + export namespace TaxBreakdown { + export interface Jurisdiction { /** - * The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). */ - amount: number; + country: string; - jurisdiction: TaxBreakdown.Jurisdiction; + /** + * A human-readable name for the jurisdiction imposing the tax. + */ + display_name: string; + + /** + * Indicates the level of the jurisdiction imposing the tax. + */ + level: Jurisdiction.Level; /** - * Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address). + * [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. */ - sourcing: TaxBreakdown.Sourcing; + state: string | null; + } + + export type Sourcing = 'destination' | 'origin' | 'performance'; + export interface TaxRateDetails { /** - * Details regarding the rate for this tax. This field will be `null` when the tax is not imposed, for example if the product is exempt from tax. + * A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". */ - tax_rate_details: TaxBreakdown.TaxRateDetails | null; + display_name: string; /** - * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. + * The tax rate percentage as a string. For example, 8.5% is represented as "8.5". */ - taxability_reason: TaxBreakdown.TaxabilityReason; + percentage_decimal: string; /** - * The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + * The tax type, such as `vat` or `sales_tax`. */ - taxable_amount: number; + tax_type: TaxRateDetails.TaxType; + } + + export type TaxabilityReason = + | 'customer_exempt' + | 'not_collecting' + | 'not_subject_to_tax' + | 'not_supported' + | 'portion_product_exempt' + | 'portion_reduced_rated' + | 'portion_standard_rated' + | 'product_exempt' + | 'product_exempt_holiday' + | 'proportionally_rated' + | 'reduced_rated' + | 'reverse_charge' + | 'standard_rated' + | 'taxable_basis_reduced' + | 'zero_rated'; + + export namespace Jurisdiction { + export type Level = 'city' | 'country' | 'county' | 'district' | 'state'; } - export namespace TaxBreakdown { - export interface Jurisdiction { - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country: string; - - /** - * A human-readable name for the jurisdiction imposing the tax. - */ - display_name: string; - - /** - * Indicates the level of the jurisdiction imposing the tax. - */ - level: Jurisdiction.Level; - - /** - * [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. - */ - state: string | null; - } - - export type Sourcing = 'destination' | 'origin' | 'performance'; - - export interface TaxRateDetails { - /** - * A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". - */ - display_name: string; - - /** - * The tax rate percentage as a string. For example, 8.5% is represented as "8.5". - */ - percentage_decimal: string; - - /** - * The tax type, such as `vat` or `sales_tax`. - */ - tax_type: TaxRateDetails.TaxType; - } - - export type TaxabilityReason = - | 'customer_exempt' - | 'not_collecting' - | 'not_subject_to_tax' - | 'not_supported' - | 'portion_product_exempt' - | 'portion_reduced_rated' - | 'portion_standard_rated' - | 'product_exempt' - | 'product_exempt_holiday' - | 'proportionally_rated' - | 'reduced_rated' - | 'reverse_charge' - | 'standard_rated' - | 'taxable_basis_reduced' - | 'zero_rated'; - - export namespace Jurisdiction { - export type Level = - | 'city' - | 'country' - | 'county' - | 'district' - | 'state'; - } - - export namespace TaxRateDetails { - export type TaxType = - | 'admissions_tax' - | 'amusement_tax' - | 'attendance_tax' - | 'communications_tax' - | 'entertainment_tax' - | 'gross_receipts_tax' - | 'gst' - | 'hospitality_tax' - | 'hst' - | 'igst' - | 'jct' - | 'lease_tax' - | 'luxury_tax' - | 'pst' - | 'qst' - | 'resort_tax' - | 'retail_delivery_fee' - | 'rst' - | 'sales_tax' - | 'service_tax' - | 'tourism_tax' - | 'vat'; - } + export namespace TaxRateDetails { + export type TaxType = + | 'admissions_tax' + | 'amusement_tax' + | 'attendance_tax' + | 'communications_tax' + | 'entertainment_tax' + | 'gross_receipts_tax' + | 'gst' + | 'hospitality_tax' + | 'hst' + | 'igst' + | 'jct' + | 'lease_tax' + | 'luxury_tax' + | 'pst' + | 'qst' + | 'resort_tax' + | 'retail_delivery_fee' + | 'rst' + | 'sales_tax' + | 'service_tax' + | 'tourism_tax' + | 'vat'; } } } diff --git a/src/resources/Tax/Calculations.ts b/src/resources/Tax/Calculations.ts index f5b633f85f..6df75b7de7 100644 --- a/src/resources/Tax/Calculations.ts +++ b/src/resources/Tax/Calculations.ts @@ -85,7 +85,7 @@ export interface Calculation { */ customer: string | null; - customer_details: Tax.Calculation.CustomerDetails; + customer_details: Calculation.CustomerDetails; /** * Timestamp of date at which the tax calculation will expire. @@ -105,12 +105,12 @@ export interface Calculation { /** * The details of the ship from location, such as the address. */ - ship_from_details: Tax.Calculation.ShipFromDetails | null; + ship_from_details: Calculation.ShipFromDetails | null; /** * The shipping cost details for the calculation. */ - shipping_cost: Tax.Calculation.ShippingCost | null; + shipping_cost: Calculation.ShippingCost | null; /** * The amount of tax to be collected on top of the line item prices. @@ -125,77 +125,245 @@ export interface Calculation { /** * Breakdown of individual tax amounts that add up to the total. */ - tax_breakdown: Array; + tax_breakdown: Array; /** * The calculation uses the tax rules and rates that are in effect at this timestamp. You can use a date up to 31 days in the past or up to 31 days in the future. If you use a future date, Stripe doesn't guarantee that the expected tax rules and rate being used match the actual rules and rate that will be in effect on that date. We deploy tax changes before their effective date, but not within a fixed window. */ tax_date: number; } -export namespace Tax { - export namespace Calculation { - export interface CustomerDetails { - /** - * The customer's postal address (for example, home or business location). - */ - address: Address | null; +export namespace Calculation { + export interface CustomerDetails { + /** + * The customer's postal address (for example, home or business location). + */ + address: Address | null; - /** - * The type of customer address provided. - */ - address_source: CustomerDetails.AddressSource | null; + /** + * The type of customer address provided. + */ + address_source: CustomerDetails.AddressSource | null; - /** - * The customer's IP address (IPv4 or IPv6). - */ - ip_address: string | null; + /** + * The customer's IP address (IPv4 or IPv6). + */ + ip_address: string | null; - /** - * The customer's tax IDs (for example, EU VAT numbers). - */ - tax_ids: Array; + /** + * The customer's tax IDs (for example, EU VAT numbers). + */ + tax_ids: Array; - /** - * The taxability override used for taxation. - */ - taxability_override: CustomerDetails.TaxabilityOverride; - } + /** + * The taxability override used for taxation. + */ + taxability_override: CustomerDetails.TaxabilityOverride; + } - export interface ShipFromDetails { - address: Address; - } + export interface ShipFromDetails { + address: Address; + } - export interface ShippingCost { - /** - * The shipping amount in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount. - */ - amount: number; + export interface ShippingCost { + /** + * The shipping amount in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount. + */ + amount: number; - /** - * The amount of tax calculated for shipping, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). - */ - amount_tax: number; + /** + * The amount of tax calculated for shipping, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + */ + amount_tax: number; - /** - * The ID of an existing [ShippingRate](https://docs.stripe.com/api/shipping_rates/object). - */ - shipping_rate?: string; + /** + * The ID of an existing [ShippingRate](https://docs.stripe.com/api/shipping_rates/object). + */ + shipping_rate?: string; - /** - * Specifies whether the `amount` includes taxes. If `tax_behavior=inclusive`, then the amount includes taxes. - */ - tax_behavior: ShippingCost.TaxBehavior; + /** + * Specifies whether the `amount` includes taxes. If `tax_behavior=inclusive`, then the amount includes taxes. + */ + tax_behavior: ShippingCost.TaxBehavior; + + /** + * Detailed account of taxes relevant to shipping cost. + */ + tax_breakdown?: Array; + + /** + * The [tax code](https://docs.stripe.com/tax/tax-categories) ID used for shipping. + */ + tax_code: string; + } + + export interface TaxBreakdown { + /** + * The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + */ + amount: number; + + /** + * Specifies whether the tax amount is included in the line item amount. + */ + inclusive: boolean; + + tax_rate_details: TaxBreakdown.TaxRateDetails; + + /** + * The reasoning behind this tax, for example, if the product is tax exempt. We might extend the possible values for this field to support new tax rules. + */ + taxability_reason: TaxBreakdown.TaxabilityReason; + + /** + * The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + */ + taxable_amount: number; + } + export namespace CustomerDetails { + export type AddressSource = 'billing' | 'shipping'; + + export interface TaxId { /** - * Detailed account of taxes relevant to shipping cost. + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` */ - tax_breakdown?: Array; + type: TaxId.Type; /** - * The [tax code](https://docs.stripe.com/tax/tax-categories) ID used for shipping. + * The value of the tax ID. */ - tax_code: string; + value: string; + } + + export type TaxabilityOverride = + | 'customer_exempt' + | 'none' + | 'reverse_charge'; + + export namespace TaxId { + export type Type = + | 'ad_nrt' + | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' + | 'ar_cuit' + | 'au_abn' + | 'au_arn' + | 'aw_tin' + | 'az_tin' + | 'ba_tin' + | 'bb_tin' + | 'bd_bin' + | 'bf_ifu' + | 'bg_uic' + | 'bh_vat' + | 'bj_ifu' + | 'bo_tin' + | 'br_cnpj' + | 'br_cpf' + | 'bs_tin' + | 'by_tin' + | 'ca_bn' + | 'ca_gst_hst' + | 'ca_pst_bc' + | 'ca_pst_mb' + | 'ca_pst_sk' + | 'ca_qst' + | 'cd_nif' + | 'ch_uid' + | 'ch_vat' + | 'cl_tin' + | 'cm_niu' + | 'cn_tin' + | 'co_nit' + | 'cr_tin' + | 'cv_nif' + | 'de_stn' + | 'do_rcn' + | 'ec_ruc' + | 'eg_tin' + | 'es_cif' + | 'et_tin' + | 'eu_oss_vat' + | 'eu_vat' + | 'fo_vat' + | 'gb_vat' + | 'ge_vat' + | 'gi_tin' + | 'gn_nif' + | 'hk_br' + | 'hr_oib' + | 'hu_tin' + | 'id_npwp' + | 'il_vat' + | 'in_gst' + | 'is_vat' + | 'it_cf' + | 'jp_cn' + | 'jp_rn' + | 'jp_trn' + | 'ke_pin' + | 'kg_tin' + | 'kh_tin' + | 'kr_brn' + | 'kz_bin' + | 'la_tin' + | 'li_uid' + | 'li_vat' + | 'lk_vat' + | 'ma_vat' + | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' + | 'mx_rfc' + | 'my_frp' + | 'my_itn' + | 'my_sst' + | 'ng_tin' + | 'no_vat' + | 'no_voec' + | 'np_pan' + | 'nz_gst' + | 'om_vat' + | 'pe_ruc' + | 'ph_tin' + | 'pl_nip' + | 'py_ruc' + | 'ro_tin' + | 'rs_pib' + | 'ru_inn' + | 'ru_kpp' + | 'sa_vat' + | 'sg_gst' + | 'sg_uen' + | 'si_tin' + | 'sn_ninea' + | 'sr_fin' + | 'sv_nit' + | 'th_vat' + | 'tj_tin' + | 'tr_tin' + | 'tw_vat' + | 'tz_vat' + | 'ua_vat' + | 'ug_tin' + | 'unknown' + | 'us_ein' + | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' + | 've_rif' + | 'vn_tin' + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; } + } + + export namespace ShippingCost { + export type TaxBehavior = 'exclusive' | 'inclusive'; export interface TaxBreakdown { /** @@ -203,15 +371,20 @@ export namespace Tax { */ amount: number; + jurisdiction: TaxBreakdown.Jurisdiction; + /** - * Specifies whether the tax amount is included in the line item amount. + * Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address). */ - inclusive: boolean; + sourcing: TaxBreakdown.Sourcing; - tax_rate_details: TaxBreakdown.TaxRateDetails; + /** + * Details regarding the rate for this tax. This field will be `null` when the tax is not imposed, for example if the product is exempt from tax. + */ + tax_rate_details: TaxBreakdown.TaxRateDetails | null; /** - * The reasoning behind this tax, for example, if the product is tax exempt. We might extend the possible values for this field to support new tax rules. + * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. */ taxability_reason: TaxBreakdown.TaxabilityReason; @@ -221,307 +394,46 @@ export namespace Tax { taxable_amount: number; } - export namespace CustomerDetails { - export type AddressSource = 'billing' | 'shipping'; - - export interface TaxId { - /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` - */ - type: TaxId.Type; - - /** - * The value of the tax ID. - */ - value: string; - } - - export type TaxabilityOverride = - | 'customer_exempt' - | 'none' - | 'reverse_charge'; - - export namespace TaxId { - export type Type = - | 'ad_nrt' - | 'ae_trn' - | 'al_tin' - | 'am_tin' - | 'ao_tin' - | 'ar_cuit' - | 'au_abn' - | 'au_arn' - | 'aw_tin' - | 'az_tin' - | 'ba_tin' - | 'bb_tin' - | 'bd_bin' - | 'bf_ifu' - | 'bg_uic' - | 'bh_vat' - | 'bj_ifu' - | 'bo_tin' - | 'br_cnpj' - | 'br_cpf' - | 'bs_tin' - | 'by_tin' - | 'ca_bn' - | 'ca_gst_hst' - | 'ca_pst_bc' - | 'ca_pst_mb' - | 'ca_pst_sk' - | 'ca_qst' - | 'cd_nif' - | 'ch_uid' - | 'ch_vat' - | 'cl_tin' - | 'cm_niu' - | 'cn_tin' - | 'co_nit' - | 'cr_tin' - | 'cv_nif' - | 'de_stn' - | 'do_rcn' - | 'ec_ruc' - | 'eg_tin' - | 'es_cif' - | 'et_tin' - | 'eu_oss_vat' - | 'eu_vat' - | 'fo_vat' - | 'gb_vat' - | 'ge_vat' - | 'gi_tin' - | 'gn_nif' - | 'hk_br' - | 'hr_oib' - | 'hu_tin' - | 'id_npwp' - | 'il_vat' - | 'in_gst' - | 'is_vat' - | 'it_cf' - | 'jp_cn' - | 'jp_rn' - | 'jp_trn' - | 'ke_pin' - | 'kg_tin' - | 'kh_tin' - | 'kr_brn' - | 'kz_bin' - | 'la_tin' - | 'li_uid' - | 'li_vat' - | 'lk_vat' - | 'ma_vat' - | 'md_vat' - | 'me_pib' - | 'mk_vat' - | 'mr_nif' - | 'mx_rfc' - | 'my_frp' - | 'my_itn' - | 'my_sst' - | 'ng_tin' - | 'no_vat' - | 'no_voec' - | 'np_pan' - | 'nz_gst' - | 'om_vat' - | 'pe_ruc' - | 'ph_tin' - | 'pl_nip' - | 'py_ruc' - | 'ro_tin' - | 'rs_pib' - | 'ru_inn' - | 'ru_kpp' - | 'sa_vat' - | 'sg_gst' - | 'sg_uen' - | 'si_tin' - | 'sn_ninea' - | 'sr_fin' - | 'sv_nit' - | 'th_vat' - | 'tj_tin' - | 'tr_tin' - | 'tw_vat' - | 'tz_vat' - | 'ua_vat' - | 'ug_tin' - | 'unknown' - | 'us_ein' - | 'uy_ruc' - | 'uz_tin' - | 'uz_vat' - | 've_rif' - | 'vn_tin' - | 'za_vat' - | 'zm_tin' - | 'zw_tin'; - } - } - - export namespace ShippingCost { - export type TaxBehavior = 'exclusive' | 'inclusive'; - - export interface TaxBreakdown { - /** - * The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). - */ - amount: number; - - jurisdiction: TaxBreakdown.Jurisdiction; - + export namespace TaxBreakdown { + export interface Jurisdiction { /** - * Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address). + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). */ - sourcing: TaxBreakdown.Sourcing; + country: string; /** - * Details regarding the rate for this tax. This field will be `null` when the tax is not imposed, for example if the product is exempt from tax. + * A human-readable name for the jurisdiction imposing the tax. */ - tax_rate_details: TaxBreakdown.TaxRateDetails | null; + display_name: string; /** - * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. + * Indicates the level of the jurisdiction imposing the tax. */ - taxability_reason: TaxBreakdown.TaxabilityReason; + level: Jurisdiction.Level; /** - * The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + * [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. */ - taxable_amount: number; + state: string | null; } - export namespace TaxBreakdown { - export interface Jurisdiction { - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country: string; - - /** - * A human-readable name for the jurisdiction imposing the tax. - */ - display_name: string; - - /** - * Indicates the level of the jurisdiction imposing the tax. - */ - level: Jurisdiction.Level; - - /** - * [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. - */ - state: string | null; - } - - export type Sourcing = 'destination' | 'origin' | 'performance'; - - export interface TaxRateDetails { - /** - * A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". - */ - display_name: string; - - /** - * The tax rate percentage as a string. For example, 8.5% is represented as "8.5". - */ - percentage_decimal: string; - - /** - * The tax type, such as `vat` or `sales_tax`. - */ - tax_type: TaxRateDetails.TaxType; - } - - export type TaxabilityReason = - | 'customer_exempt' - | 'not_collecting' - | 'not_subject_to_tax' - | 'not_supported' - | 'portion_product_exempt' - | 'portion_reduced_rated' - | 'portion_standard_rated' - | 'product_exempt' - | 'product_exempt_holiday' - | 'proportionally_rated' - | 'reduced_rated' - | 'reverse_charge' - | 'standard_rated' - | 'taxable_basis_reduced' - | 'zero_rated'; - - export namespace Jurisdiction { - export type Level = - | 'city' - | 'country' - | 'county' - | 'district' - | 'state'; - } - - export namespace TaxRateDetails { - export type TaxType = - | 'admissions_tax' - | 'amusement_tax' - | 'attendance_tax' - | 'communications_tax' - | 'entertainment_tax' - | 'gross_receipts_tax' - | 'gst' - | 'hospitality_tax' - | 'hst' - | 'igst' - | 'jct' - | 'lease_tax' - | 'luxury_tax' - | 'pst' - | 'qst' - | 'resort_tax' - | 'retail_delivery_fee' - | 'rst' - | 'sales_tax' - | 'service_tax' - | 'tourism_tax' - | 'vat'; - } - } - } + export type Sourcing = 'destination' | 'origin' | 'performance'; - export namespace TaxBreakdown { export interface TaxRateDetails { /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country: string | null; - - /** - * The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate. + * A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". */ - flat_amount: TaxRateDetails.FlatAmount | null; + display_name: string; /** - * The tax rate percentage as a string. For example, 8.5% is represented as `"8.5"`. + * The tax rate percentage as a string. For example, 8.5% is represented as "8.5". */ percentage_decimal: string; - /** - * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax. - */ - rate_type: TaxRateDetails.RateType | null; - - /** - * State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). - */ - state: string | null; - /** * The tax type, such as `vat` or `sales_tax`. */ - tax_type: TaxRateDetails.TaxType | null; + tax_type: TaxRateDetails.TaxType; } export type TaxabilityReason = @@ -541,21 +453,16 @@ export namespace Tax { | 'taxable_basis_reduced' | 'zero_rated'; - export namespace TaxRateDetails { - export interface FlatAmount { - /** - * Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). - */ - amount: number; - - /** - * Three-letter ISO currency code, in lowercase. - */ - currency: string; - } - - export type RateType = 'flat_amount' | 'percentage'; + export namespace Jurisdiction { + export type Level = + | 'city' + | 'country' + | 'county' + | 'district' + | 'state'; + } + export namespace TaxRateDetails { export type TaxType = | 'admissions_tax' | 'amusement_tax' @@ -582,6 +489,97 @@ export namespace Tax { } } } + + export namespace TaxBreakdown { + export interface TaxRateDetails { + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country: string | null; + + /** + * The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate. + */ + flat_amount: TaxRateDetails.FlatAmount | null; + + /** + * The tax rate percentage as a string. For example, 8.5% is represented as `"8.5"`. + */ + percentage_decimal: string; + + /** + * Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location. This field is only present for TaxRates created by Stripe Tax. + */ + rate_type: TaxRateDetails.RateType | null; + + /** + * State, county, province, or region ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + */ + state: string | null; + + /** + * The tax type, such as `vat` or `sales_tax`. + */ + tax_type: TaxRateDetails.TaxType | null; + } + + export type TaxabilityReason = + | 'customer_exempt' + | 'not_collecting' + | 'not_subject_to_tax' + | 'not_supported' + | 'portion_product_exempt' + | 'portion_reduced_rated' + | 'portion_standard_rated' + | 'product_exempt' + | 'product_exempt_holiday' + | 'proportionally_rated' + | 'reduced_rated' + | 'reverse_charge' + | 'standard_rated' + | 'taxable_basis_reduced' + | 'zero_rated'; + + export namespace TaxRateDetails { + export interface FlatAmount { + /** + * Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99). + */ + amount: number; + + /** + * Three-letter ISO currency code, in lowercase. + */ + currency: string; + } + + export type RateType = 'flat_amount' | 'percentage'; + + export type TaxType = + | 'admissions_tax' + | 'amusement_tax' + | 'attendance_tax' + | 'communications_tax' + | 'entertainment_tax' + | 'gross_receipts_tax' + | 'gst' + | 'hospitality_tax' + | 'hst' + | 'igst' + | 'jct' + | 'lease_tax' + | 'luxury_tax' + | 'pst' + | 'qst' + | 'resort_tax' + | 'retail_delivery_fee' + | 'rst' + | 'sales_tax' + | 'service_tax' + | 'tourism_tax' + | 'vat'; + } + } } export namespace Tax { export interface CalculationCreateParams { diff --git a/src/resources/Tax/Forms.ts b/src/resources/Tax/Forms.ts index f8b2351587..b3aba6796c 100644 --- a/src/resources/Tax/Forms.ts +++ b/src/resources/Tax/Forms.ts @@ -68,9 +68,9 @@ export interface Form { */ object: 'tax.form'; - au_serr?: Tax.Form.AuSerr; + au_serr?: Form.AuSerr; - ca_mrdp?: Tax.Form.CaMrdp; + ca_mrdp?: Form.CaMrdp; /** * The form that corrects this form, if any. @@ -82,187 +82,185 @@ export interface Form { */ created: number; - eu_dac7?: Tax.Form.EuDac7; + eu_dac7?: Form.EuDac7; /** * A list of tax filing statuses. Note that a filing status will only be included if the form has been filed directly with the jurisdiction's tax authority. */ - filing_statuses: Array; + filing_statuses: Array; - gb_mrdp?: Tax.Form.GbMrdp; + gb_mrdp?: Form.GbMrdp; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. */ livemode: boolean; - nz_mrdp?: Tax.Form.NzMrdp; + nz_mrdp?: Form.NzMrdp; - payee: Tax.Form.Payee; + payee: Form.Payee; /** * The type of the tax form. An additional hash is included on the tax form with a name matching this value. It contains additional information specific to the tax form type. */ - type: Tax.Form.Type; + type: Form.Type; - us_1099_k?: Tax.Form.Us1099K; + us_1099_k?: Form.Us1099K; - us_1099_misc?: Tax.Form.Us1099Misc; + us_1099_misc?: Form.Us1099Misc; - us_1099_nec?: Tax.Form.Us1099Nec; + us_1099_nec?: Form.Us1099Nec; } -export namespace Tax { - export namespace Form { - export interface AuSerr { - /** - * End date of the period represented by the information reported on the tax form. - */ - reporting_period_end_date: string; +export namespace Form { + export interface AuSerr { + /** + * End date of the period represented by the information reported on the tax form. + */ + reporting_period_end_date: string; - /** - * Start date of the period represented by the information reported on the tax form. - */ - reporting_period_start_date: string; - } + /** + * Start date of the period represented by the information reported on the tax form. + */ + reporting_period_start_date: string; + } - export interface CaMrdp { - /** - * End date of the period represented by the information reported on the tax form. - */ - reporting_period_end_date: string; + export interface CaMrdp { + /** + * End date of the period represented by the information reported on the tax form. + */ + reporting_period_end_date: string; - /** - * Start date of the period represented by the information reported on the tax form. - */ - reporting_period_start_date: string; - } + /** + * Start date of the period represented by the information reported on the tax form. + */ + reporting_period_start_date: string; + } - export interface EuDac7 { - /** - * End date of the period represented by the information reported on the tax form. - */ - reporting_period_end_date: string; + export interface EuDac7 { + /** + * End date of the period represented by the information reported on the tax form. + */ + reporting_period_end_date: string; - /** - * Start date of the period represented by the information reported on the tax form. - */ - reporting_period_start_date: string; - } + /** + * Start date of the period represented by the information reported on the tax form. + */ + reporting_period_start_date: string; + } - export interface FilingStatus { - /** - * Time when the filing status was updated. - */ - effective_at: number; + export interface FilingStatus { + /** + * Time when the filing status was updated. + */ + effective_at: number; - jurisdiction: FilingStatus.Jurisdiction; + jurisdiction: FilingStatus.Jurisdiction; - /** - * The current status of the filed form. - */ - value: FilingStatus.Value; - } + /** + * The current status of the filed form. + */ + value: FilingStatus.Value; + } - export interface GbMrdp { - /** - * End date of the period represented by the information reported on the tax form. - */ - reporting_period_end_date: string; + export interface GbMrdp { + /** + * End date of the period represented by the information reported on the tax form. + */ + reporting_period_end_date: string; - /** - * Start date of the period represented by the information reported on the tax form. - */ - reporting_period_start_date: string; - } + /** + * Start date of the period represented by the information reported on the tax form. + */ + reporting_period_start_date: string; + } - export interface NzMrdp { - /** - * End date of the period represented by the information reported on the tax form. - */ - reporting_period_end_date: string; + export interface NzMrdp { + /** + * End date of the period represented by the information reported on the tax form. + */ + reporting_period_end_date: string; - /** - * Start date of the period represented by the information reported on the tax form. - */ - reporting_period_start_date: string; - } + /** + * Start date of the period represented by the information reported on the tax form. + */ + reporting_period_start_date: string; + } - export interface Payee { - /** - * The ID of the payee's Stripe account. - */ - account: string | Account | null; + export interface Payee { + /** + * The ID of the payee's Stripe account. + */ + account: string | Account | null; - /** - * The external reference to this payee. - */ - external_reference: string | null; + /** + * The external reference to this payee. + */ + external_reference: string | null; - /** - * Either `account` or `external_reference`. - */ - type: Payee.Type; - } + /** + * Either `account` or `external_reference`. + */ + type: Payee.Type; + } - export type Type = - | 'au_serr' - | 'ca_mrdp' - | 'eu_dac7' - | 'gb_mrdp' - | 'nz_mrdp' - | 'us_1099_k' - | 'us_1099_misc' - | 'us_1099_nec'; + export type Type = + | 'au_serr' + | 'ca_mrdp' + | 'eu_dac7' + | 'gb_mrdp' + | 'nz_mrdp' + | 'us_1099_k' + | 'us_1099_misc' + | 'us_1099_nec'; + + export interface Us1099K { + /** + * Year represented by the information reported on the tax form. + */ + reporting_year: number; + } + + export interface Us1099Misc { + /** + * Year represented by the information reported on the tax form. + */ + reporting_year: number; + } - export interface Us1099K { + export interface Us1099Nec { + /** + * Year represented by the information reported on the tax form. + */ + reporting_year: number; + } + + export namespace FilingStatus { + export interface Jurisdiction { /** - * Year represented by the information reported on the tax form. + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). */ - reporting_year: number; - } + country: string; - export interface Us1099Misc { /** - * Year represented by the information reported on the tax form. + * Indicates the level of the jurisdiction where the form was filed. */ - reporting_year: number; - } + level: Jurisdiction.Level; - export interface Us1099Nec { /** - * Year represented by the information reported on the tax form. + * [ISO 3166-2 U.S. state code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix, if any. For example, "NY" for New York, United States. Null for non-U.S. forms. */ - reporting_year: number; + state: string | null; } - export namespace FilingStatus { - export interface Jurisdiction { - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country: string; - - /** - * Indicates the level of the jurisdiction where the form was filed. - */ - level: Jurisdiction.Level; - - /** - * [ISO 3166-2 U.S. state code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix, if any. For example, "NY" for New York, United States. Null for non-U.S. forms. - */ - state: string | null; - } + export type Value = 'accepted' | 'filed' | 'rejected'; - export type Value = 'accepted' | 'filed' | 'rejected'; - - export namespace Jurisdiction { - export type Level = 'country' | 'state'; - } + export namespace Jurisdiction { + export type Level = 'country' | 'state'; } + } - export namespace Payee { - export type Type = 'account' | 'external_reference'; - } + export namespace Payee { + export type Type = 'account' | 'external_reference'; } } export namespace Tax { diff --git a/src/resources/Tax/Registrations.ts b/src/resources/Tax/Registrations.ts index 99e07cff14..68ac9047b1 100644 --- a/src/resources/Tax/Registrations.ts +++ b/src/resources/Tax/Registrations.ts @@ -84,7 +84,7 @@ export interface Registration { */ country: string; - country_options: Tax.Registration.CountryOptions; + country_options: Registration.CountryOptions; /** * Time at which the object was created. Measured in seconds since the Unix epoch. @@ -104,1736 +104,1734 @@ export interface Registration { /** * The status of the registration. This field is present for convenience and can be deduced from `active_from` and `expires_at`. */ - status: Tax.Registration.Status; + status: Registration.Status; } -export namespace Tax { - export namespace Registration { - export interface CountryOptions { - ae?: CountryOptions.Ae; +export namespace Registration { + export interface CountryOptions { + ae?: CountryOptions.Ae; - al?: CountryOptions.Al; + al?: CountryOptions.Al; - am?: CountryOptions.Am; + am?: CountryOptions.Am; - ao?: CountryOptions.Ao; + ao?: CountryOptions.Ao; - at?: CountryOptions.At; + at?: CountryOptions.At; - au?: CountryOptions.Au; + au?: CountryOptions.Au; - aw?: CountryOptions.Aw; + aw?: CountryOptions.Aw; - az?: CountryOptions.Az; + az?: CountryOptions.Az; - ba?: CountryOptions.Ba; + ba?: CountryOptions.Ba; - bb?: CountryOptions.Bb; + bb?: CountryOptions.Bb; - bd?: CountryOptions.Bd; + bd?: CountryOptions.Bd; - be?: CountryOptions.Be; + be?: CountryOptions.Be; - bf?: CountryOptions.Bf; + bf?: CountryOptions.Bf; - bg?: CountryOptions.Bg; + bg?: CountryOptions.Bg; - bh?: CountryOptions.Bh; + bh?: CountryOptions.Bh; - bj?: CountryOptions.Bj; + bj?: CountryOptions.Bj; - bs?: CountryOptions.Bs; + bs?: CountryOptions.Bs; - by?: CountryOptions.By; + by?: CountryOptions.By; - ca?: CountryOptions.Ca; + ca?: CountryOptions.Ca; - cd?: CountryOptions.Cd; + cd?: CountryOptions.Cd; - ch?: CountryOptions.Ch; + ch?: CountryOptions.Ch; - cl?: CountryOptions.Cl; + cl?: CountryOptions.Cl; - cm?: CountryOptions.Cm; + cm?: CountryOptions.Cm; - co?: CountryOptions.Co; + co?: CountryOptions.Co; - cr?: CountryOptions.Cr; + cr?: CountryOptions.Cr; - cv?: CountryOptions.Cv; + cv?: CountryOptions.Cv; - cy?: CountryOptions.Cy; + cy?: CountryOptions.Cy; - cz?: CountryOptions.Cz; + cz?: CountryOptions.Cz; - de?: CountryOptions.De; + de?: CountryOptions.De; - dk?: CountryOptions.Dk; + dk?: CountryOptions.Dk; - ec?: CountryOptions.Ec; + ec?: CountryOptions.Ec; - ee?: CountryOptions.Ee; + ee?: CountryOptions.Ee; - eg?: CountryOptions.Eg; + eg?: CountryOptions.Eg; - es?: CountryOptions.Es; + es?: CountryOptions.Es; - et?: CountryOptions.Et; + et?: CountryOptions.Et; - fi?: CountryOptions.Fi; + fi?: CountryOptions.Fi; - fr?: CountryOptions.Fr; + fr?: CountryOptions.Fr; - gb?: CountryOptions.Gb; + gb?: CountryOptions.Gb; - ge?: CountryOptions.Ge; + ge?: CountryOptions.Ge; - gn?: CountryOptions.Gn; + gn?: CountryOptions.Gn; - gr?: CountryOptions.Gr; + gr?: CountryOptions.Gr; - hr?: CountryOptions.Hr; + hr?: CountryOptions.Hr; - hu?: CountryOptions.Hu; + hu?: CountryOptions.Hu; - id?: CountryOptions.Id; + id?: CountryOptions.Id; - ie?: CountryOptions.Ie; + ie?: CountryOptions.Ie; - in?: CountryOptions.In; + in?: CountryOptions.In; - is?: CountryOptions.Is; + is?: CountryOptions.Is; - it?: CountryOptions.It; + it?: CountryOptions.It; - jp?: CountryOptions.Jp; + jp?: CountryOptions.Jp; - ke?: CountryOptions.Ke; + ke?: CountryOptions.Ke; - kg?: CountryOptions.Kg; + kg?: CountryOptions.Kg; - kh?: CountryOptions.Kh; + kh?: CountryOptions.Kh; - kr?: CountryOptions.Kr; + kr?: CountryOptions.Kr; - kz?: CountryOptions.Kz; + kz?: CountryOptions.Kz; - la?: CountryOptions.La; + la?: CountryOptions.La; - lk?: CountryOptions.Lk; + lk?: CountryOptions.Lk; - lt?: CountryOptions.Lt; + lt?: CountryOptions.Lt; - lu?: CountryOptions.Lu; + lu?: CountryOptions.Lu; - lv?: CountryOptions.Lv; + lv?: CountryOptions.Lv; - ma?: CountryOptions.Ma; + ma?: CountryOptions.Ma; - md?: CountryOptions.Md; + md?: CountryOptions.Md; - me?: CountryOptions.Me; + me?: CountryOptions.Me; - mk?: CountryOptions.Mk; + mk?: CountryOptions.Mk; - mr?: CountryOptions.Mr; + mr?: CountryOptions.Mr; - mt?: CountryOptions.Mt; + mt?: CountryOptions.Mt; - mx?: CountryOptions.Mx; + mx?: CountryOptions.Mx; - my?: CountryOptions.My; + my?: CountryOptions.My; - ng?: CountryOptions.Ng; + ng?: CountryOptions.Ng; - nl?: CountryOptions.Nl; + nl?: CountryOptions.Nl; - no?: CountryOptions.No; + no?: CountryOptions.No; - np?: CountryOptions.Np; + np?: CountryOptions.Np; - nz?: CountryOptions.Nz; + nz?: CountryOptions.Nz; - om?: CountryOptions.Om; + om?: CountryOptions.Om; - pe?: CountryOptions.Pe; + pe?: CountryOptions.Pe; - ph?: CountryOptions.Ph; + ph?: CountryOptions.Ph; - pl?: CountryOptions.Pl; + pl?: CountryOptions.Pl; - pt?: CountryOptions.Pt; + pt?: CountryOptions.Pt; - ro?: CountryOptions.Ro; + ro?: CountryOptions.Ro; - rs?: CountryOptions.Rs; + rs?: CountryOptions.Rs; - ru?: CountryOptions.Ru; + ru?: CountryOptions.Ru; - sa?: CountryOptions.Sa; + sa?: CountryOptions.Sa; - se?: CountryOptions.Se; + se?: CountryOptions.Se; - sg?: CountryOptions.Sg; + sg?: CountryOptions.Sg; - si?: CountryOptions.Si; + si?: CountryOptions.Si; - sk?: CountryOptions.Sk; + sk?: CountryOptions.Sk; - sn?: CountryOptions.Sn; + sn?: CountryOptions.Sn; - sr?: CountryOptions.Sr; + sr?: CountryOptions.Sr; - th?: CountryOptions.Th; + th?: CountryOptions.Th; - tj?: CountryOptions.Tj; + tj?: CountryOptions.Tj; - tr?: CountryOptions.Tr; + tr?: CountryOptions.Tr; - tw?: CountryOptions.Tw; + tw?: CountryOptions.Tw; - tz?: CountryOptions.Tz; + tz?: CountryOptions.Tz; - ua?: CountryOptions.Ua; + ua?: CountryOptions.Ua; - ug?: CountryOptions.Ug; + ug?: CountryOptions.Ug; - us?: CountryOptions.Us; + us?: CountryOptions.Us; - uy?: CountryOptions.Uy; + uy?: CountryOptions.Uy; - uz?: CountryOptions.Uz; + uz?: CountryOptions.Uz; - vn?: CountryOptions.Vn; + vn?: CountryOptions.Vn; - za?: CountryOptions.Za; + za?: CountryOptions.Za; - zm?: CountryOptions.Zm; + zm?: CountryOptions.Zm; - zw?: CountryOptions.Zw; - } + zw?: CountryOptions.Zw; + } - export type Status = 'active' | 'expired' | 'scheduled'; + export type Status = 'active' | 'expired' | 'scheduled'; - export namespace CountryOptions { - export interface Ae { - standard?: Ae.Standard; + export namespace CountryOptions { + export interface Ae { + standard?: Ae.Standard; - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Al { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Al { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Am { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Am { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Ao { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Ao { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface At { - standard?: At.Standard; + export interface At { + standard?: At.Standard; - /** - * Type of registration in an EU country. - */ - type: At.Type; - } + /** + * Type of registration in an EU country. + */ + type: At.Type; + } - export interface Au { - standard?: Au.Standard; + export interface Au { + standard?: Au.Standard; - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Aw { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Aw { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Az { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Az { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Ba { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Ba { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Bb { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Bb { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Bd { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Bd { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Be { - standard?: Be.Standard; + export interface Be { + standard?: Be.Standard; - /** - * Type of registration in an EU country. - */ - type: Be.Type; - } + /** + * Type of registration in an EU country. + */ + type: Be.Type; + } - export interface Bf { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Bf { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Bg { - standard?: Bg.Standard; + export interface Bg { + standard?: Bg.Standard; - /** - * Type of registration in an EU country. - */ - type: Bg.Type; - } + /** + * Type of registration in an EU country. + */ + type: Bg.Type; + } - export interface Bh { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Bh { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Bj { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Bj { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Bs { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Bs { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface By { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface By { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Ca { - province_standard?: Ca.ProvinceStandard; + export interface Ca { + province_standard?: Ca.ProvinceStandard; - /** - * Type of registration in Canada. - */ - type: Ca.Type; - } + /** + * Type of registration in Canada. + */ + type: Ca.Type; + } - export interface Cd { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Cd { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Ch { - standard?: Ch.Standard; + export interface Ch { + standard?: Ch.Standard; - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Cl { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Cl { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Cm { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Cm { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Co { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Co { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Cr { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Cr { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Cv { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Cv { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Cy { - standard?: Cy.Standard; + export interface Cy { + standard?: Cy.Standard; - /** - * Type of registration in an EU country. - */ - type: Cy.Type; - } + /** + * Type of registration in an EU country. + */ + type: Cy.Type; + } - export interface Cz { - standard?: Cz.Standard; + export interface Cz { + standard?: Cz.Standard; - /** - * Type of registration in an EU country. - */ - type: Cz.Type; - } + /** + * Type of registration in an EU country. + */ + type: Cz.Type; + } - export interface De { - standard?: De.Standard; + export interface De { + standard?: De.Standard; - /** - * Type of registration in an EU country. - */ - type: De.Type; - } + /** + * Type of registration in an EU country. + */ + type: De.Type; + } - export interface Dk { - standard?: Dk.Standard; + export interface Dk { + standard?: Dk.Standard; - /** - * Type of registration in an EU country. - */ - type: Dk.Type; - } + /** + * Type of registration in an EU country. + */ + type: Dk.Type; + } - export interface Ec { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Ec { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Ee { - standard?: Ee.Standard; + export interface Ee { + standard?: Ee.Standard; - /** - * Type of registration in an EU country. - */ - type: Ee.Type; - } + /** + * Type of registration in an EU country. + */ + type: Ee.Type; + } - export interface Eg { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Eg { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Es { - standard?: Es.Standard; + export interface Es { + standard?: Es.Standard; - /** - * Type of registration in an EU country. - */ - type: Es.Type; - } + /** + * Type of registration in an EU country. + */ + type: Es.Type; + } - export interface Et { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Et { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Fi { - standard?: Fi.Standard; + export interface Fi { + standard?: Fi.Standard; - /** - * Type of registration in an EU country. - */ - type: Fi.Type; - } + /** + * Type of registration in an EU country. + */ + type: Fi.Type; + } - export interface Fr { - standard?: Fr.Standard; + export interface Fr { + standard?: Fr.Standard; - /** - * Type of registration in an EU country. - */ - type: Fr.Type; - } + /** + * Type of registration in an EU country. + */ + type: Fr.Type; + } - export interface Gb { - standard?: Gb.Standard; + export interface Gb { + standard?: Gb.Standard; - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Ge { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Ge { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Gn { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Gn { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Gr { - standard?: Gr.Standard; + export interface Gr { + standard?: Gr.Standard; - /** - * Type of registration in an EU country. - */ - type: Gr.Type; - } + /** + * Type of registration in an EU country. + */ + type: Gr.Type; + } - export interface Hr { - standard?: Hr.Standard; + export interface Hr { + standard?: Hr.Standard; - /** - * Type of registration in an EU country. - */ - type: Hr.Type; - } + /** + * Type of registration in an EU country. + */ + type: Hr.Type; + } - export interface Hu { - standard?: Hu.Standard; + export interface Hu { + standard?: Hu.Standard; - /** - * Type of registration in an EU country. - */ - type: Hu.Type; - } + /** + * Type of registration in an EU country. + */ + type: Hu.Type; + } - export interface Id { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Id { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Ie { - standard?: Ie.Standard; + export interface Ie { + standard?: Ie.Standard; - /** - * Type of registration in an EU country. - */ - type: Ie.Type; - } + /** + * Type of registration in an EU country. + */ + type: Ie.Type; + } - export interface In { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface In { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Is { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Is { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface It { - standard?: It.Standard; + export interface It { + standard?: It.Standard; - /** - * Type of registration in an EU country. - */ - type: It.Type; - } + /** + * Type of registration in an EU country. + */ + type: It.Type; + } - export interface Jp { - standard?: Jp.Standard; + export interface Jp { + standard?: Jp.Standard; - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Ke { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Ke { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Kg { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Kg { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Kh { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Kh { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Kr { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Kr { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Kz { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Kz { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface La { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface La { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Lk { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Lk { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Lt { - standard?: Lt.Standard; + export interface Lt { + standard?: Lt.Standard; - /** - * Type of registration in an EU country. - */ - type: Lt.Type; - } + /** + * Type of registration in an EU country. + */ + type: Lt.Type; + } - export interface Lu { - standard?: Lu.Standard; + export interface Lu { + standard?: Lu.Standard; - /** - * Type of registration in an EU country. - */ - type: Lu.Type; - } + /** + * Type of registration in an EU country. + */ + type: Lu.Type; + } - export interface Lv { - standard?: Lv.Standard; + export interface Lv { + standard?: Lv.Standard; - /** - * Type of registration in an EU country. - */ - type: Lv.Type; - } + /** + * Type of registration in an EU country. + */ + type: Lv.Type; + } - export interface Ma { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Ma { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Md { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Md { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Me { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Me { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Mk { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Mk { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + + export interface Mr { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + + export interface Mt { + standard?: Mt.Standard; + + /** + * Type of registration in an EU country. + */ + type: Mt.Type; + } + + export interface Mx { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + + export interface My { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } + + export interface Ng { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Mr { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Nl { + standard?: Nl.Standard; - export interface Mt { - standard?: Mt.Standard; + /** + * Type of registration in an EU country. + */ + type: Nl.Type; + } - /** - * Type of registration in an EU country. - */ - type: Mt.Type; - } + export interface No { + standard?: No.Standard; - export interface Mx { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface My { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Np { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Ng { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Nz { + standard?: Nz.Standard; - export interface Nl { - standard?: Nl.Standard; + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - /** - * Type of registration in an EU country. - */ - type: Nl.Type; - } + export interface Om { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface No { - standard?: No.Standard; + export interface Pe { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Ph { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Np { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Pl { + standard?: Pl.Standard; - export interface Nz { - standard?: Nz.Standard; + /** + * Type of registration in an EU country. + */ + type: Pl.Type; + } - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Pt { + standard?: Pt.Standard; - export interface Om { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + /** + * Type of registration in an EU country. + */ + type: Pt.Type; + } - export interface Pe { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Ro { + standard?: Ro.Standard; - export interface Ph { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + /** + * Type of registration in an EU country. + */ + type: Ro.Type; + } - export interface Pl { - standard?: Pl.Standard; + export interface Rs { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - /** - * Type of registration in an EU country. - */ - type: Pl.Type; - } + export interface Ru { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Pt { - standard?: Pt.Standard; + export interface Sa { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - /** - * Type of registration in an EU country. - */ - type: Pt.Type; - } + export interface Se { + standard?: Se.Standard; - export interface Ro { - standard?: Ro.Standard; + /** + * Type of registration in an EU country. + */ + type: Se.Type; + } - /** - * Type of registration in an EU country. - */ - type: Ro.Type; - } + export interface Sg { + standard?: Sg.Standard; - export interface Rs { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Ru { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Si { + standard?: Si.Standard; - export interface Sa { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + /** + * Type of registration in an EU country. + */ + type: Si.Type; + } - export interface Se { - standard?: Se.Standard; + export interface Sk { + standard?: Sk.Standard; - /** - * Type of registration in an EU country. - */ - type: Se.Type; - } + /** + * Type of registration in an EU country. + */ + type: Sk.Type; + } - export interface Sg { - standard?: Sg.Standard; + export interface Sn { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Sr { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - export interface Si { - standard?: Si.Standard; + export interface Th { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - /** - * Type of registration in an EU country. - */ - type: Si.Type; - } + export interface Tj { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Sk { - standard?: Sk.Standard; + export interface Tr { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - /** - * Type of registration in an EU country. - */ - type: Sk.Type; - } + export interface Tw { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Sn { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Tz { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Sr { - /** - * Type of registration in `country`. - */ - type: 'standard'; - } + export interface Ua { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Th { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Ug { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - export interface Tj { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + export interface Us { + admissions_tax?: Us.AdmissionsTax; - export interface Tr { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + attendance_tax?: Us.AttendanceTax; - export interface Tw { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + entertainment_tax?: Us.EntertainmentTax; - export interface Tz { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + gross_receipts_tax?: Us.GrossReceiptsTax; - export interface Ua { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + hospitality_tax?: Us.HospitalityTax; - export interface Ug { - /** - * Type of registration in `country`. - */ - type: 'simplified'; - } + local_amusement_tax?: Us.LocalAmusementTax; - export interface Us { - admissions_tax?: Us.AdmissionsTax; + local_lease_tax?: Us.LocalLeaseTax; - attendance_tax?: Us.AttendanceTax; + luxury_tax?: Us.LuxuryTax; - entertainment_tax?: Us.EntertainmentTax; + resort_tax?: Us.ResortTax; - gross_receipts_tax?: Us.GrossReceiptsTax; + /** + * Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + */ + state: string; - hospitality_tax?: Us.HospitalityTax; + state_sales_tax?: Us.StateSalesTax; + + tourism_tax?: Us.TourismTax; - local_amusement_tax?: Us.LocalAmusementTax; + /** + * Type of registration in the US. + */ + type: Us.Type; + } - local_lease_tax?: Us.LocalLeaseTax; + export interface Uy { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - luxury_tax?: Us.LuxuryTax; + export interface Uz { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - resort_tax?: Us.ResortTax; + export interface Vn { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - /** - * Two-letter US state code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). - */ - state: string; + export interface Za { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } - state_sales_tax?: Us.StateSalesTax; + export interface Zm { + /** + * Type of registration in `country`. + */ + type: 'simplified'; + } - tourism_tax?: Us.TourismTax; + export interface Zw { + /** + * Type of registration in `country`. + */ + type: 'standard'; + } + export namespace Ae { + export interface Standard { /** - * Type of registration in the US. + * Place of supply scheme used in an Default standard registration. */ - type: Us.Type; + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export interface Uy { - /** - * Type of registration in `country`. - */ - type: 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; } + } - export interface Uz { + export namespace At { + export interface Standard { /** - * Type of registration in `country`. + * Place of supply scheme used in an EU standard registration. */ - type: 'simplified'; + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export interface Vn { - /** - * Type of registration in `country`. - */ - type: 'simplified'; + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export interface Za { + export namespace Au { + export interface Standard { /** - * Type of registration in `country`. + * Place of supply scheme used in an Default standard registration. */ - type: 'standard'; + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export interface Zm { - /** - * Type of registration in `country`. - */ - type: 'simplified'; + export namespace Standard { + export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; } + } - export interface Zw { + export namespace Be { + export interface Standard { /** - * Type of registration in `country`. + * Place of supply scheme used in an EU standard registration. */ - type: 'standard'; + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Ae { - export interface Standard { - /** - * Place of supply scheme used in an Default standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export namespace Standard { - export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export namespace At { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } - - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Bg { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Au { - export interface Standard { - /** - * Place of supply scheme used in an Default standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export namespace Standard { - export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export namespace Be { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } - - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Ca { + export interface ProvinceStandard { + /** + * Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). + */ + province: string; } - export namespace Bg { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } - - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export type Type = 'province_standard' | 'simplified' | 'standard'; + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Ch { + export interface Standard { + /** + * Place of supply scheme used in an Default standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Ca { - export interface ProvinceStandard { - /** - * Two-letter CA province code ([ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2)). - */ - province: string; - } - - export type Type = 'province_standard' | 'simplified' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; } + } - export namespace Ch { - export interface Standard { - /** - * Place of supply scheme used in an Default standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } - - export namespace Standard { - export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; - } + export namespace Cy { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Cy { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } - - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export namespace Cz { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Cz { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; + } - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export namespace De { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace De { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; + } - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export namespace Dk { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Dk { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; + } - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export namespace Ee { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Ee { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; + } - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export namespace Es { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Es { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; + } - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; + } + } + + export namespace Fi { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Fi { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Fr { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Fr { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Gb { + export interface Standard { + /** + * Place of supply scheme used in an Default standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Gb { - export interface Standard { - /** - * Place of supply scheme used in an Default standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Standard { + export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; - } + export namespace Gr { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Gr { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Hr { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Hr { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Hu { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Hu { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Ie { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Ie { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace It { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace It { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Jp { + export interface Standard { + /** + * Place of supply scheme used in an Default standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Jp { - export interface Standard { - /** - * Place of supply scheme used in an Default standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Standard { + export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; - } + export namespace Lt { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Lt { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Lu { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Lu { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Lv { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Lv { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Mt { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Mt { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Nl { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Nl { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace No { + export interface Standard { + /** + * Place of supply scheme used in an Default standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace No { - export interface Standard { - /** - * Place of supply scheme used in an Default standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Standard { + export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; + } + } + + export namespace Nz { + export interface Standard { + /** + * Place of supply scheme used in an Default standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; + } - export namespace Standard { - export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; } + } - export namespace Nz { - export interface Standard { - /** - * Place of supply scheme used in an Default standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Pl { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; + } - export namespace Standard { - export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export namespace Pl { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Pt { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; + } - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export namespace Pt { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Ro { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; + } - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export namespace Ro { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Se { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; + } - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export namespace Se { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Sg { + export interface Standard { + /** + * Place of supply scheme used in an Default standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; + } - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export namespace Standard { + export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; + } + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Si { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; } - export namespace Sg { - export interface Standard { - /** - * Place of supply scheme used in an Default standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export namespace Standard { - export type PlaceOfSupplyScheme = 'inbound_goods' | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export namespace Si { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Sk { + export interface Standard { + /** + * Place of supply scheme used in an EU standard registration. + */ + place_of_supply_scheme: Standard.PlaceOfSupplyScheme; + } - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export namespace Standard { + export type PlaceOfSupplyScheme = + | 'inbound_goods' + | 'small_seller' + | 'standard'; } + } - export namespace Sk { - export interface Standard { - /** - * Place of supply scheme used in an EU standard registration. - */ - place_of_supply_scheme: Standard.PlaceOfSupplyScheme; - } + export namespace Us { + export interface AdmissionsTax { + /** + * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=admissions_tax#registration-types) representing the local jurisdiction. + */ + jurisdiction: string; + } - export type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard'; + export interface AttendanceTax { + /** + * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=attendance_tax#registration-types) representing the local jurisdiction. + */ + jurisdiction: string; + } - export namespace Standard { - export type PlaceOfSupplyScheme = - | 'inbound_goods' - | 'small_seller' - | 'standard'; - } + export interface EntertainmentTax { + /** + * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=entertainment_tax#registration-types) representing the local jurisdiction. + */ + jurisdiction: string; } - export namespace Us { - export interface AdmissionsTax { - /** - * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=admissions_tax#registration-types) representing the local jurisdiction. - */ - jurisdiction: string; - } + export interface GrossReceiptsTax { + /** + * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=gross_receipts_tax#registration-types) representing the local jurisdiction. + */ + jurisdiction: string; + } - export interface AttendanceTax { - /** - * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=attendance_tax#registration-types) representing the local jurisdiction. - */ - jurisdiction: string; - } + export interface HospitalityTax { + /** + * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=hospitality_tax#registration-types) representing the local jurisdiction. + */ + jurisdiction: string; + } - export interface EntertainmentTax { - /** - * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=entertainment_tax#registration-types) representing the local jurisdiction. - */ - jurisdiction: string; - } + export interface LocalAmusementTax { + /** + * A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. + */ + jurisdiction: string; + } - export interface GrossReceiptsTax { - /** - * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=gross_receipts_tax#registration-types) representing the local jurisdiction. - */ - jurisdiction: string; - } + export interface LocalLeaseTax { + /** + * A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. + */ + jurisdiction: string; + } - export interface HospitalityTax { - /** - * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=hospitality_tax#registration-types) representing the local jurisdiction. - */ - jurisdiction: string; - } + export interface LuxuryTax { + /** + * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=luxury_tax#registration-types) representing the local jurisdiction. + */ + jurisdiction: string; + } - export interface LocalAmusementTax { - /** - * A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. - */ - jurisdiction: string; - } + export interface ResortTax { + /** + * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=resort_tax#registration-types) representing the local jurisdiction. + */ + jurisdiction: string; + } - export interface LocalLeaseTax { - /** - * A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. - */ - jurisdiction: string; - } + export interface StateSalesTax { + /** + * Elections for the state sales tax registration. + */ + elections?: Array; + } - export interface LuxuryTax { - /** - * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=luxury_tax#registration-types) representing the local jurisdiction. - */ - jurisdiction: string; - } + export interface TourismTax { + /** + * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=tourism_tax#registration-types) representing the local jurisdiction. + */ + jurisdiction: string; + } - export interface ResortTax { - /** - * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=resort_tax#registration-types) representing the local jurisdiction. - */ - jurisdiction: string; - } + export type Type = + | 'admissions_tax' + | 'attendance_tax' + | 'entertainment_tax' + | 'gross_receipts_tax' + | 'hospitality_tax' + | 'local_amusement_tax' + | 'local_lease_tax' + | 'luxury_tax' + | 'resort_tax' + | 'state_communications_tax' + | 'state_retail_delivery_fee' + | 'state_sales_tax' + | 'tourism_tax'; - export interface StateSalesTax { + export namespace StateSalesTax { + export interface Election { /** - * Elections for the state sales tax registration. + * A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. */ - elections?: Array; - } + jurisdiction?: string; - export interface TourismTax { /** - * A [jurisdiction code](https://docs.stripe.com/tax/registering?type=tourism_tax#registration-types) representing the local jurisdiction. + * The type of the election for the state sales tax registration. */ - jurisdiction: string; + type: Election.Type; } - export type Type = - | 'admissions_tax' - | 'attendance_tax' - | 'entertainment_tax' - | 'gross_receipts_tax' - | 'hospitality_tax' - | 'local_amusement_tax' - | 'local_lease_tax' - | 'luxury_tax' - | 'resort_tax' - | 'state_communications_tax' - | 'state_retail_delivery_fee' - | 'state_sales_tax' - | 'tourism_tax'; - - export namespace StateSalesTax { - export interface Election { - /** - * A [FIPS code](https://www.census.gov/library/reference/code-lists/ansi.html) representing the local jurisdiction. - */ - jurisdiction?: string; - - /** - * The type of the election for the state sales tax registration. - */ - type: Election.Type; - } - - export namespace Election { - export type Type = - | 'local_use_tax' - | 'simplified_sellers_use_tax' - | 'single_local_use_tax'; - } + export namespace Election { + export type Type = + | 'local_use_tax' + | 'simplified_sellers_use_tax' + | 'single_local_use_tax'; } } } diff --git a/src/resources/Tax/Settings.ts b/src/resources/Tax/Settings.ts index 9850988e96..f25bd20f40 100644 --- a/src/resources/Tax/Settings.ts +++ b/src/resources/Tax/Settings.ts @@ -35,12 +35,12 @@ export interface Settings { */ object: 'tax.settings'; - defaults: Tax.Settings.Defaults; + defaults: Settings.Defaults; /** * The place where your business is located. */ - head_office: Tax.Settings.HeadOffice | null; + head_office: Settings.HeadOffice | null; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -50,59 +50,57 @@ export interface Settings { /** * The status of the Tax `Settings`. */ - status: Tax.Settings.Status; + status: Settings.Status; - status_details: Tax.Settings.StatusDetails; + status_details: Settings.StatusDetails; } -export namespace Tax { - export namespace Settings { - export interface Defaults { - /** - * The tax calculation provider this account uses. Defaults to `stripe` when not using a [third-party provider](https://docs.stripe.com/tax/third-party-apps). - */ - provider: Defaults.Provider; +export namespace Settings { + export interface Defaults { + /** + * The tax calculation provider this account uses. Defaults to `stripe` when not using a [third-party provider](https://docs.stripe.com/tax/third-party-apps). + */ + provider: Defaults.Provider; - /** - * Default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) used to specify whether the price is considered inclusive of taxes or exclusive of taxes. If the item's price has a tax behavior set, it will take precedence over the default tax behavior. - */ - tax_behavior: Defaults.TaxBehavior | null; + /** + * Default [tax behavior](https://stripe.com/docs/tax/products-prices-tax-categories-tax-behavior#tax-behavior) used to specify whether the price is considered inclusive of taxes or exclusive of taxes. If the item's price has a tax behavior set, it will take precedence over the default tax behavior. + */ + tax_behavior: Defaults.TaxBehavior | null; - /** - * Default [tax code](https://stripe.com/docs/tax/tax-categories) used to classify your products and prices. - */ - tax_code: string | null; - } + /** + * Default [tax code](https://stripe.com/docs/tax/tax-categories) used to classify your products and prices. + */ + tax_code: string | null; + } - export interface HeadOffice { - address: Address; - } + export interface HeadOffice { + address: Address; + } - export type Status = 'active' | 'pending'; + export type Status = 'active' | 'pending'; - export interface StatusDetails { - active?: StatusDetails.Active; + export interface StatusDetails { + active?: StatusDetails.Active; - pending?: StatusDetails.Pending; - } + pending?: StatusDetails.Pending; + } - export namespace Defaults { - export type Provider = 'anrok' | 'avalara' | 'sphere' | 'stripe'; + export namespace Defaults { + export type Provider = 'anrok' | 'avalara' | 'sphere' | 'stripe'; - export type TaxBehavior = - | 'exclusive' - | 'inclusive' - | 'inferred_by_currency'; - } + export type TaxBehavior = + | 'exclusive' + | 'inclusive' + | 'inferred_by_currency'; + } - export namespace StatusDetails { - export interface Active {} + export namespace StatusDetails { + export interface Active {} - export interface Pending { - /** - * The list of missing fields that are required to perform calculations. It includes the entry `head_office` when the status is `pending`. It is recommended to set the optional values even if they aren't listed as required for calculating taxes. Calculations can fail if missing fields aren't explicitly provided on every call. - */ - missing_fields: Array | null; - } + export interface Pending { + /** + * The list of missing fields that are required to perform calculations. It includes the entry `head_office` when the status is `pending`. It is recommended to set the optional values even if they aren't listed as required for calculating taxes. Calculations can fail if missing fields aren't explicitly provided on every call. + */ + missing_fields: Array | null; } } } diff --git a/src/resources/Tax/TransactionLineItems.ts b/src/resources/Tax/TransactionLineItems.ts index fbb0423302..ee4b97d9f5 100644 --- a/src/resources/Tax/TransactionLineItems.ts +++ b/src/resources/Tax/TransactionLineItems.ts @@ -51,12 +51,12 @@ export interface TransactionLineItem { /** * If `type=reversal`, contains information about what was reversed. */ - reversal: Tax.TransactionLineItem.Reversal | null; + reversal: TransactionLineItem.Reversal | null; /** * Specifies whether the `amount` includes taxes. If `tax_behavior=inclusive`, then the amount includes taxes. */ - tax_behavior: Tax.TransactionLineItem.TaxBehavior; + tax_behavior: TransactionLineItem.TaxBehavior; /** * The [tax code](https://docs.stripe.com/tax/tax-categories) ID used for this resource. @@ -66,19 +66,17 @@ export interface TransactionLineItem { /** * If `reversal`, this line item reverses an earlier transaction. */ - type: Tax.TransactionLineItem.Type; + type: TransactionLineItem.Type; } -export namespace Tax { - export namespace TransactionLineItem { - export interface Reversal { - /** - * The `id` of the line item to reverse in the original transaction. - */ - original_line_item: string; - } +export namespace TransactionLineItem { + export interface Reversal { + /** + * The `id` of the line item to reverse in the original transaction. + */ + original_line_item: string; + } - export type TaxBehavior = 'exclusive' | 'inclusive'; + export type TaxBehavior = 'exclusive' | 'inclusive'; - export type Type = 'reversal' | 'transaction'; - } + export type Type = 'reversal' | 'transaction'; } diff --git a/src/resources/Tax/Transactions.ts b/src/resources/Tax/Transactions.ts index 4a8e889044..bd06c18fb9 100644 --- a/src/resources/Tax/Transactions.ts +++ b/src/resources/Tax/Transactions.ts @@ -99,7 +99,7 @@ export interface Transaction { */ customer: string | null; - customer_details: Tax.Transaction.CustomerDetails; + customer_details: Transaction.CustomerDetails; /** * The tax collected or refunded, by line item. @@ -129,17 +129,17 @@ export interface Transaction { /** * If `type=reversal`, contains information about what was reversed. */ - reversal: Tax.Transaction.Reversal | null; + reversal: Transaction.Reversal | null; /** * The details of the ship from location, such as the address. */ - ship_from_details: Tax.Transaction.ShipFromDetails | null; + ship_from_details: Transaction.ShipFromDetails | null; /** * The shipping cost details for the transaction. */ - shipping_cost: Tax.Transaction.ShippingCost | null; + shipping_cost: Transaction.ShippingCost | null; /** * The calculation uses the tax rules and rates that are in effect at this timestamp. You can use a date up to 31 days in the past or up to 31 days in the future. If you use a future date, Stripe doesn't guarantee that the expected tax rules and rate being used match the actual rules and rate that will be in effect on that date. We deploy tax changes before their effective date, but not within a fixed window. @@ -149,349 +149,347 @@ export interface Transaction { /** * If `reversal`, this transaction reverses an earlier transaction. */ - type: Tax.Transaction.Type; + type: Transaction.Type; } -export namespace Tax { - export namespace Transaction { - export interface CustomerDetails { - /** - * The customer's postal address (for example, home or business location). - */ - address: Address | null; +export namespace Transaction { + export interface CustomerDetails { + /** + * The customer's postal address (for example, home or business location). + */ + address: Address | null; - /** - * The type of customer address provided. - */ - address_source: CustomerDetails.AddressSource | null; + /** + * The type of customer address provided. + */ + address_source: CustomerDetails.AddressSource | null; - /** - * The customer's IP address (IPv4 or IPv6). - */ - ip_address: string | null; + /** + * The customer's IP address (IPv4 or IPv6). + */ + ip_address: string | null; - /** - * The customer's tax IDs (for example, EU VAT numbers). - */ - tax_ids: Array; + /** + * The customer's tax IDs (for example, EU VAT numbers). + */ + tax_ids: Array; + /** + * The taxability override used for taxation. + */ + taxability_override: CustomerDetails.TaxabilityOverride; + } + + export interface Reversal { + /** + * The `id` of the reversed `Transaction` object. + */ + original_transaction: string | null; + } + + export interface ShipFromDetails { + address: Address; + } + + export interface ShippingCost { + /** + * The shipping amount in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount. + */ + amount: number; + + /** + * The amount of tax calculated for shipping, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + */ + amount_tax: number; + + /** + * The ID of an existing [ShippingRate](https://docs.stripe.com/api/shipping_rates/object). + */ + shipping_rate?: string; + + /** + * Specifies whether the `amount` includes taxes. If `tax_behavior=inclusive`, then the amount includes taxes. + */ + tax_behavior: ShippingCost.TaxBehavior; + + /** + * Detailed account of taxes relevant to shipping cost. (It is not populated for the transaction resource object and will be removed in the next API version.) + */ + tax_breakdown?: Array; + + /** + * The [tax code](https://docs.stripe.com/tax/tax-categories) ID used for shipping. + */ + tax_code: string; + } + + export type Type = 'reversal' | 'transaction'; + + export namespace CustomerDetails { + export type AddressSource = 'billing' | 'shipping'; + + export interface TaxId { /** - * The taxability override used for taxation. + * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` */ - taxability_override: CustomerDetails.TaxabilityOverride; - } + type: TaxId.Type; - export interface Reversal { /** - * The `id` of the reversed `Transaction` object. + * The value of the tax ID. */ - original_transaction: string | null; + value: string; } - export interface ShipFromDetails { - address: Address; + export type TaxabilityOverride = + | 'customer_exempt' + | 'none' + | 'reverse_charge'; + + export namespace TaxId { + export type Type = + | 'ad_nrt' + | 'ae_trn' + | 'al_tin' + | 'am_tin' + | 'ao_tin' + | 'ar_cuit' + | 'au_abn' + | 'au_arn' + | 'aw_tin' + | 'az_tin' + | 'ba_tin' + | 'bb_tin' + | 'bd_bin' + | 'bf_ifu' + | 'bg_uic' + | 'bh_vat' + | 'bj_ifu' + | 'bo_tin' + | 'br_cnpj' + | 'br_cpf' + | 'bs_tin' + | 'by_tin' + | 'ca_bn' + | 'ca_gst_hst' + | 'ca_pst_bc' + | 'ca_pst_mb' + | 'ca_pst_sk' + | 'ca_qst' + | 'cd_nif' + | 'ch_uid' + | 'ch_vat' + | 'cl_tin' + | 'cm_niu' + | 'cn_tin' + | 'co_nit' + | 'cr_tin' + | 'cv_nif' + | 'de_stn' + | 'do_rcn' + | 'ec_ruc' + | 'eg_tin' + | 'es_cif' + | 'et_tin' + | 'eu_oss_vat' + | 'eu_vat' + | 'fo_vat' + | 'gb_vat' + | 'ge_vat' + | 'gi_tin' + | 'gn_nif' + | 'hk_br' + | 'hr_oib' + | 'hu_tin' + | 'id_npwp' + | 'il_vat' + | 'in_gst' + | 'is_vat' + | 'it_cf' + | 'jp_cn' + | 'jp_rn' + | 'jp_trn' + | 'ke_pin' + | 'kg_tin' + | 'kh_tin' + | 'kr_brn' + | 'kz_bin' + | 'la_tin' + | 'li_uid' + | 'li_vat' + | 'lk_vat' + | 'ma_vat' + | 'md_vat' + | 'me_pib' + | 'mk_vat' + | 'mr_nif' + | 'mx_rfc' + | 'my_frp' + | 'my_itn' + | 'my_sst' + | 'ng_tin' + | 'no_vat' + | 'no_voec' + | 'np_pan' + | 'nz_gst' + | 'om_vat' + | 'pe_ruc' + | 'ph_tin' + | 'pl_nip' + | 'py_ruc' + | 'ro_tin' + | 'rs_pib' + | 'ru_inn' + | 'ru_kpp' + | 'sa_vat' + | 'sg_gst' + | 'sg_uen' + | 'si_tin' + | 'sn_ninea' + | 'sr_fin' + | 'sv_nit' + | 'th_vat' + | 'tj_tin' + | 'tr_tin' + | 'tw_vat' + | 'tz_vat' + | 'ua_vat' + | 'ug_tin' + | 'unknown' + | 'us_ein' + | 'uy_ruc' + | 'uz_tin' + | 'uz_vat' + | 've_rif' + | 'vn_tin' + | 'za_vat' + | 'zm_tin' + | 'zw_tin'; } + } - export interface ShippingCost { + export namespace ShippingCost { + export type TaxBehavior = 'exclusive' | 'inclusive'; + + export interface TaxBreakdown { /** - * The shipping amount in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). If `tax_behavior=inclusive`, then this amount includes taxes. Otherwise, taxes were calculated on top of this amount. + * The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). */ amount: number; - /** - * The amount of tax calculated for shipping, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). - */ - amount_tax: number; + jurisdiction: TaxBreakdown.Jurisdiction; /** - * The ID of an existing [ShippingRate](https://docs.stripe.com/api/shipping_rates/object). + * Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address). */ - shipping_rate?: string; + sourcing: TaxBreakdown.Sourcing; /** - * Specifies whether the `amount` includes taxes. If `tax_behavior=inclusive`, then the amount includes taxes. + * Details regarding the rate for this tax. This field will be `null` when the tax is not imposed, for example if the product is exempt from tax. */ - tax_behavior: ShippingCost.TaxBehavior; + tax_rate_details: TaxBreakdown.TaxRateDetails | null; /** - * Detailed account of taxes relevant to shipping cost. (It is not populated for the transaction resource object and will be removed in the next API version.) + * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. */ - tax_breakdown?: Array; + taxability_reason: TaxBreakdown.TaxabilityReason; /** - * The [tax code](https://docs.stripe.com/tax/tax-categories) ID used for shipping. + * The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). */ - tax_code: string; + taxable_amount: number; } - export type Type = 'reversal' | 'transaction'; - - export namespace CustomerDetails { - export type AddressSource = 'billing' | 'shipping'; - - export interface TaxId { + export namespace TaxBreakdown { + export interface Jurisdiction { /** - * The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `pl_nip`, `it_cf`, `fo_vat`, `gi_tin`, `py_ruc`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `li_vat`, `lk_vat`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `al_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, `ao_tin`, `bs_tin`, `bb_tin`, `cd_nif`, `mr_nif`, `me_pib`, `zw_tin`, `ba_tin`, `gn_nif`, `mk_vat`, `sr_fin`, `sn_ninea`, `am_tin`, `np_pan`, `tj_tin`, `ug_tin`, `zm_tin`, `kh_tin`, `aw_tin`, `az_tin`, `bd_bin`, `bj_ifu`, `et_tin`, `kg_tin`, `la_tin`, `cm_niu`, `cv_nif`, `bf_ifu`, or `unknown` + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). */ - type: TaxId.Type; + country: string; /** - * The value of the tax ID. + * A human-readable name for the jurisdiction imposing the tax. */ - value: string; - } + display_name: string; - export type TaxabilityOverride = - | 'customer_exempt' - | 'none' - | 'reverse_charge'; - - export namespace TaxId { - export type Type = - | 'ad_nrt' - | 'ae_trn' - | 'al_tin' - | 'am_tin' - | 'ao_tin' - | 'ar_cuit' - | 'au_abn' - | 'au_arn' - | 'aw_tin' - | 'az_tin' - | 'ba_tin' - | 'bb_tin' - | 'bd_bin' - | 'bf_ifu' - | 'bg_uic' - | 'bh_vat' - | 'bj_ifu' - | 'bo_tin' - | 'br_cnpj' - | 'br_cpf' - | 'bs_tin' - | 'by_tin' - | 'ca_bn' - | 'ca_gst_hst' - | 'ca_pst_bc' - | 'ca_pst_mb' - | 'ca_pst_sk' - | 'ca_qst' - | 'cd_nif' - | 'ch_uid' - | 'ch_vat' - | 'cl_tin' - | 'cm_niu' - | 'cn_tin' - | 'co_nit' - | 'cr_tin' - | 'cv_nif' - | 'de_stn' - | 'do_rcn' - | 'ec_ruc' - | 'eg_tin' - | 'es_cif' - | 'et_tin' - | 'eu_oss_vat' - | 'eu_vat' - | 'fo_vat' - | 'gb_vat' - | 'ge_vat' - | 'gi_tin' - | 'gn_nif' - | 'hk_br' - | 'hr_oib' - | 'hu_tin' - | 'id_npwp' - | 'il_vat' - | 'in_gst' - | 'is_vat' - | 'it_cf' - | 'jp_cn' - | 'jp_rn' - | 'jp_trn' - | 'ke_pin' - | 'kg_tin' - | 'kh_tin' - | 'kr_brn' - | 'kz_bin' - | 'la_tin' - | 'li_uid' - | 'li_vat' - | 'lk_vat' - | 'ma_vat' - | 'md_vat' - | 'me_pib' - | 'mk_vat' - | 'mr_nif' - | 'mx_rfc' - | 'my_frp' - | 'my_itn' - | 'my_sst' - | 'ng_tin' - | 'no_vat' - | 'no_voec' - | 'np_pan' - | 'nz_gst' - | 'om_vat' - | 'pe_ruc' - | 'ph_tin' - | 'pl_nip' - | 'py_ruc' - | 'ro_tin' - | 'rs_pib' - | 'ru_inn' - | 'ru_kpp' - | 'sa_vat' - | 'sg_gst' - | 'sg_uen' - | 'si_tin' - | 'sn_ninea' - | 'sr_fin' - | 'sv_nit' - | 'th_vat' - | 'tj_tin' - | 'tr_tin' - | 'tw_vat' - | 'tz_vat' - | 'ua_vat' - | 'ug_tin' - | 'unknown' - | 'us_ein' - | 'uy_ruc' - | 'uz_tin' - | 'uz_vat' - | 've_rif' - | 'vn_tin' - | 'za_vat' - | 'zm_tin' - | 'zw_tin'; - } - } - - export namespace ShippingCost { - export type TaxBehavior = 'exclusive' | 'inclusive'; - - export interface TaxBreakdown { /** - * The amount of tax, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + * Indicates the level of the jurisdiction imposing the tax. */ - amount: number; - - jurisdiction: TaxBreakdown.Jurisdiction; + level: Jurisdiction.Level; /** - * Indicates whether the jurisdiction was determined by the origin (merchant's address) or destination (customer's address). + * [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. */ - sourcing: TaxBreakdown.Sourcing; + state: string | null; + } + export type Sourcing = 'destination' | 'origin' | 'performance'; + + export interface TaxRateDetails { /** - * Details regarding the rate for this tax. This field will be `null` when the tax is not imposed, for example if the product is exempt from tax. + * A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". */ - tax_rate_details: TaxBreakdown.TaxRateDetails | null; + display_name: string; /** - * The reasoning behind this tax, for example, if the product is tax exempt. The possible values for this field may be extended as new tax rules are supported. + * The tax rate percentage as a string. For example, 8.5% is represented as "8.5". */ - taxability_reason: TaxBreakdown.TaxabilityReason; + percentage_decimal: string; /** - * The amount on which tax is calculated, in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units). + * The tax type, such as `vat` or `sales_tax`. */ - taxable_amount: number; + tax_type: TaxRateDetails.TaxType; + } + + export type TaxabilityReason = + | 'customer_exempt' + | 'not_collecting' + | 'not_subject_to_tax' + | 'not_supported' + | 'portion_product_exempt' + | 'portion_reduced_rated' + | 'portion_standard_rated' + | 'product_exempt' + | 'product_exempt_holiday' + | 'proportionally_rated' + | 'reduced_rated' + | 'reverse_charge' + | 'standard_rated' + | 'taxable_basis_reduced' + | 'zero_rated'; + + export namespace Jurisdiction { + export type Level = + | 'city' + | 'country' + | 'county' + | 'district' + | 'state'; } - export namespace TaxBreakdown { - export interface Jurisdiction { - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country: string; - - /** - * A human-readable name for the jurisdiction imposing the tax. - */ - display_name: string; - - /** - * Indicates the level of the jurisdiction imposing the tax. - */ - level: Jurisdiction.Level; - - /** - * [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2), without country prefix. For example, "NY" for New York, United States. - */ - state: string | null; - } - - export type Sourcing = 'destination' | 'origin' | 'performance'; - - export interface TaxRateDetails { - /** - * A localized display name for tax type, intended to be human-readable. For example, "Local Sales and Use Tax", "Value-added tax (VAT)", or "Umsatzsteuer (USt.)". - */ - display_name: string; - - /** - * The tax rate percentage as a string. For example, 8.5% is represented as "8.5". - */ - percentage_decimal: string; - - /** - * The tax type, such as `vat` or `sales_tax`. - */ - tax_type: TaxRateDetails.TaxType; - } - - export type TaxabilityReason = - | 'customer_exempt' - | 'not_collecting' - | 'not_subject_to_tax' - | 'not_supported' - | 'portion_product_exempt' - | 'portion_reduced_rated' - | 'portion_standard_rated' - | 'product_exempt' - | 'product_exempt_holiday' - | 'proportionally_rated' - | 'reduced_rated' - | 'reverse_charge' - | 'standard_rated' - | 'taxable_basis_reduced' - | 'zero_rated'; - - export namespace Jurisdiction { - export type Level = - | 'city' - | 'country' - | 'county' - | 'district' - | 'state'; - } - - export namespace TaxRateDetails { - export type TaxType = - | 'admissions_tax' - | 'amusement_tax' - | 'attendance_tax' - | 'communications_tax' - | 'entertainment_tax' - | 'gross_receipts_tax' - | 'gst' - | 'hospitality_tax' - | 'hst' - | 'igst' - | 'jct' - | 'lease_tax' - | 'luxury_tax' - | 'pst' - | 'qst' - | 'resort_tax' - | 'retail_delivery_fee' - | 'rst' - | 'sales_tax' - | 'service_tax' - | 'tourism_tax' - | 'vat'; - } + export namespace TaxRateDetails { + export type TaxType = + | 'admissions_tax' + | 'amusement_tax' + | 'attendance_tax' + | 'communications_tax' + | 'entertainment_tax' + | 'gross_receipts_tax' + | 'gst' + | 'hospitality_tax' + | 'hst' + | 'igst' + | 'jct' + | 'lease_tax' + | 'luxury_tax' + | 'pst' + | 'qst' + | 'resort_tax' + | 'retail_delivery_fee' + | 'rst' + | 'sales_tax' + | 'service_tax' + | 'tourism_tax' + | 'vat'; } } } diff --git a/src/resources/Terminal/Configurations.ts b/src/resources/Terminal/Configurations.ts index 289578d674..54a56fdf7d 100644 --- a/src/resources/Terminal/Configurations.ts +++ b/src/resources/Terminal/Configurations.ts @@ -13,7 +13,7 @@ export class ConfigurationResource extends StripeResource { id: string, params?: Terminal.ConfigurationDeleteParams, options?: RequestOptions - ): Promise> { + ): Promise> { return this._makeRequest( 'DELETE', `/v1/terminal/configurations/${encodeURIComponent(id)}`, @@ -28,7 +28,7 @@ export class ConfigurationResource extends StripeResource { id: string, params?: Terminal.ConfigurationRetrieveParams, options?: RequestOptions - ): Promise> { + ): Promise> { return this._makeRequest( 'GET', `/v1/terminal/configurations/${encodeURIComponent(id)}`, @@ -43,7 +43,7 @@ export class ConfigurationResource extends StripeResource { id: string, params?: Terminal.ConfigurationUpdateParams, options?: RequestOptions - ): Promise> { + ): Promise> { return this._makeRequest( 'POST', `/v1/terminal/configurations/${encodeURIComponent(id)}`, @@ -94,11 +94,11 @@ export interface Configuration { */ object: 'terminal.configuration'; - bbpos_wisepad3?: Terminal.Configuration.BbposWisepad3; + bbpos_wisepad3?: Configuration.BbposWisepad3; - bbpos_wisepos_e?: Terminal.Configuration.BbposWiseposE; + bbpos_wisepos_e?: Configuration.BbposWiseposE; - cellular?: Terminal.Configuration.Cellular; + cellular?: Configuration.Cellular; /** * Always true for a deleted object @@ -120,628 +120,625 @@ export interface Configuration { */ name: string | null; - offline?: Terminal.Configuration.Offline; + offline?: Configuration.Offline; - reader_security?: Terminal.Configuration.ReaderSecurity; + reader_security?: Configuration.ReaderSecurity; - reboot_window?: Terminal.Configuration.RebootWindow; + reboot_window?: Configuration.RebootWindow; - stripe_s700?: Terminal.Configuration.StripeS700; + stripe_s700?: Configuration.StripeS700; - stripe_s710?: Terminal.Configuration.StripeS710; + stripe_s710?: Configuration.StripeS710; - tipping?: Terminal.Configuration.Tipping; + tipping?: Configuration.Tipping; - verifone_m425?: Terminal.Configuration.VerifoneM425; + verifone_m425?: Configuration.VerifoneM425; - verifone_p400?: Terminal.Configuration.VerifoneP400; + verifone_p400?: Configuration.VerifoneP400; - verifone_p630?: Terminal.Configuration.VerifoneP630; + verifone_p630?: Configuration.VerifoneP630; - verifone_ux700?: Terminal.Configuration.VerifoneUx700; + verifone_ux700?: Configuration.VerifoneUx700; - verifone_v660p?: Terminal.Configuration.VerifoneV660p; + verifone_v660p?: Configuration.VerifoneV660p; - wifi?: Terminal.Configuration.Wifi; + wifi?: Configuration.Wifi; } -export namespace Terminal { - export interface DeletedConfiguration { +export interface DeletedConfiguration { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'terminal.configuration'; + + /** + * Always true for a deleted object + */ + deleted: true; +} +export namespace Configuration { + export interface BbposWisepad3 { + /** + * A File ID representing an image to display on the reader + */ + splashscreen?: string | File; + } + + export interface BbposWiseposE { /** - * Unique identifier for the object. + * A File ID representing an image to display on the reader */ - id: string; + splashscreen?: string | File; + } + export interface Cellular { /** - * String representing the object's type. Objects of the same type share the same value. + * Whether a cellular-capable reader can connect to the internet over cellular. */ - object: 'terminal.configuration'; + enabled: boolean; + } + export interface Offline { /** - * Always true for a deleted object + * Determines whether to allow transactions to be collected while reader is offline. Defaults to false. */ - deleted: true; + enabled: boolean | null; } - export namespace Configuration { - export interface BbposWisepad3 { + export interface ReaderSecurity { + /** + * Passcode used to access a reader's admin menu. + */ + admin_menu_passcode: string; + } + + export interface RebootWindow { + /** + * Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. + */ + end_hour: number; + + /** + * Integer between 0 to 23 that represents the start hour of the reboot time window. + */ + start_hour: number; + } + + export interface StripeS700 { + /** + * A File ID representing an image to display on the reader + */ + splashscreen?: string | File; + } + + export interface StripeS710 { + /** + * A File ID representing an image to display on the reader + */ + splashscreen?: string | File; + } + + export interface Tipping { + aed?: Tipping.Aed; + + aud?: Tipping.Aud; + + cad?: Tipping.Cad; + + chf?: Tipping.Chf; + + czk?: Tipping.Czk; + + dkk?: Tipping.Dkk; + + eur?: Tipping.Eur; + + gbp?: Tipping.Gbp; + + gip?: Tipping.Gip; + + hkd?: Tipping.Hkd; + + huf?: Tipping.Huf; + + jpy?: Tipping.Jpy; + + mxn?: Tipping.Mxn; + + myr?: Tipping.Myr; + + nok?: Tipping.Nok; + + nzd?: Tipping.Nzd; + + pln?: Tipping.Pln; + + ron?: Tipping.Ron; + + sek?: Tipping.Sek; + + sgd?: Tipping.Sgd; + + usd?: Tipping.Usd; + } + + export interface VerifoneM425 { + /** + * A File ID representing an image to display on the reader + */ + splashscreen?: string | File; + } + + export interface VerifoneP400 { + /** + * A File ID representing an image to display on the reader + */ + splashscreen?: string | File; + } + + export interface VerifoneP630 { + /** + * A File ID representing an image to display on the reader + */ + splashscreen?: string | File; + } + + export interface VerifoneUx700 { + /** + * A File ID representing an image to display on the reader + */ + splashscreen?: string | File; + } + + export interface VerifoneV660p { + /** + * A File ID representing an image to display on the reader + */ + splashscreen?: string | File; + } + + export interface Wifi { + enterprise_eap_peap?: Wifi.EnterpriseEapPeap; + + enterprise_eap_tls?: Wifi.EnterpriseEapTls; + + personal_psk?: Wifi.PersonalPsk; + + /** + * Security type of the WiFi network. The hash with the corresponding name contains the credentials for this security type. + */ + type: Wifi.Type; + } + + export namespace Tipping { + export interface Aed { /** - * A File ID representing an image to display on the reader + * Fixed amounts displayed when collecting a tip */ - splashscreen?: string | File; - } + fixed_amounts?: Array | null; - export interface BbposWiseposE { /** - * A File ID representing an image to display on the reader + * Percentages displayed when collecting a tip */ - splashscreen?: string | File; - } + percentages?: Array | null; - export interface Cellular { /** - * Whether a cellular-capable reader can connect to the internet over cellular. + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ - enabled: boolean; + smart_tip_threshold?: number; } - export interface Offline { + export interface Aud { /** - * Determines whether to allow transactions to be collected while reader is offline. Defaults to false. + * Fixed amounts displayed when collecting a tip */ - enabled: boolean | null; - } + fixed_amounts?: Array | null; - export interface ReaderSecurity { /** - * Passcode used to access a reader's admin menu. + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ - admin_menu_passcode: string; + smart_tip_threshold?: number; } - export interface RebootWindow { + export interface Cad { /** - * Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour. + * Fixed amounts displayed when collecting a tip */ - end_hour: number; + fixed_amounts?: Array | null; /** - * Integer between 0 to 23 that represents the start hour of the reboot time window. + * Percentages displayed when collecting a tip */ - start_hour: number; - } + percentages?: Array | null; - export interface StripeS700 { /** - * A File ID representing an image to display on the reader + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ - splashscreen?: string | File; + smart_tip_threshold?: number; } - export interface StripeS710 { + export interface Chf { /** - * A File ID representing an image to display on the reader + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; + + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; + + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ - splashscreen?: string | File; + smart_tip_threshold?: number; } - export interface Tipping { - aed?: Tipping.Aed; + export interface Czk { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - aud?: Tipping.Aud; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - cad?: Tipping.Cad; + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } - chf?: Tipping.Chf; + export interface Dkk { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - czk?: Tipping.Czk; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - dkk?: Tipping.Dkk; + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } - eur?: Tipping.Eur; + export interface Eur { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - gbp?: Tipping.Gbp; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - gip?: Tipping.Gip; + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } - hkd?: Tipping.Hkd; + export interface Gbp { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - huf?: Tipping.Huf; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - jpy?: Tipping.Jpy; + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } - mxn?: Tipping.Mxn; + export interface Gip { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - myr?: Tipping.Myr; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - nok?: Tipping.Nok; + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } - nzd?: Tipping.Nzd; + export interface Hkd { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - pln?: Tipping.Pln; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - ron?: Tipping.Ron; + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } - sek?: Tipping.Sek; + export interface Huf { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - sgd?: Tipping.Sgd; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - usd?: Tipping.Usd; + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; } - export interface VerifoneM425 { + export interface Jpy { /** - * A File ID representing an image to display on the reader + * Fixed amounts displayed when collecting a tip */ - splashscreen?: string | File; - } + fixed_amounts?: Array | null; - export interface VerifoneP400 { /** - * A File ID representing an image to display on the reader + * Percentages displayed when collecting a tip */ - splashscreen?: string | File; - } + percentages?: Array | null; - export interface VerifoneP630 { /** - * A File ID representing an image to display on the reader + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ - splashscreen?: string | File; + smart_tip_threshold?: number; } - export interface VerifoneUx700 { + export interface Mxn { /** - * A File ID representing an image to display on the reader + * Fixed amounts displayed when collecting a tip */ - splashscreen?: string | File; - } + fixed_amounts?: Array | null; - export interface VerifoneV660p { /** - * A File ID representing an image to display on the reader + * Percentages displayed when collecting a tip */ - splashscreen?: string | File; - } + percentages?: Array | null; - export interface Wifi { - enterprise_eap_peap?: Wifi.EnterpriseEapPeap; + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } - enterprise_eap_tls?: Wifi.EnterpriseEapTls; + export interface Myr { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - personal_psk?: Wifi.PersonalPsk; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; /** - * Security type of the WiFi network. The hash with the corresponding name contains the credentials for this security type. + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed */ - type: Wifi.Type; + smart_tip_threshold?: number; } - export namespace Tipping { - export interface Aed { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; + export interface Nok { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } - export interface Aud { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; + export interface Nzd { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } - export interface Cad { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Chf { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Czk { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Dkk { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Eur { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Gbp { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Gip { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Hkd { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Huf { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Jpy { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Mxn { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Myr { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Nok { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Nzd { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; - - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; - - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } - - export interface Pln { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; + export interface Pln { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } - export interface Ron { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; + export interface Ron { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } - export interface Sek { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; + export interface Sek { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } - export interface Sgd { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; + export interface Sgd { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; + } - export interface Usd { - /** - * Fixed amounts displayed when collecting a tip - */ - fixed_amounts?: Array | null; + export interface Usd { + /** + * Fixed amounts displayed when collecting a tip + */ + fixed_amounts?: Array | null; - /** - * Percentages displayed when collecting a tip - */ - percentages?: Array | null; + /** + * Percentages displayed when collecting a tip + */ + percentages?: Array | null; - /** - * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed - */ - smart_tip_threshold?: number; - } + /** + * Below this amount, fixed amounts will be displayed; above it, percentages will be displayed + */ + smart_tip_threshold?: number; } + } - export namespace Wifi { - export interface EnterpriseEapPeap { - /** - * A File ID representing a PEM file containing the server certificate - */ - ca_certificate_file?: string; - - /** - * Password for connecting to the WiFi network - */ - password: string; + export namespace Wifi { + export interface EnterpriseEapPeap { + /** + * A File ID representing a PEM file containing the server certificate + */ + ca_certificate_file?: string; - /** - * Name of the WiFi network - */ - ssid: string; + /** + * Password for connecting to the WiFi network + */ + password: string; - /** - * Username for connecting to the WiFi network - */ - username: string; - } + /** + * Name of the WiFi network + */ + ssid: string; - export interface EnterpriseEapTls { - /** - * A File ID representing a PEM file containing the server certificate - */ - ca_certificate_file?: string; + /** + * Username for connecting to the WiFi network + */ + username: string; + } - /** - * A File ID representing a PEM file containing the client certificate - */ - client_certificate_file: string; + export interface EnterpriseEapTls { + /** + * A File ID representing a PEM file containing the server certificate + */ + ca_certificate_file?: string; - /** - * A File ID representing a PEM file containing the client RSA private key - */ - private_key_file: string; + /** + * A File ID representing a PEM file containing the client certificate + */ + client_certificate_file: string; - /** - * Password for the private key file - */ - private_key_file_password?: string; + /** + * A File ID representing a PEM file containing the client RSA private key + */ + private_key_file: string; - /** - * Name of the WiFi network - */ - ssid: string; - } + /** + * Password for the private key file + */ + private_key_file_password?: string; - export interface PersonalPsk { - /** - * Password for connecting to the WiFi network - */ - password: string; + /** + * Name of the WiFi network + */ + ssid: string; + } - /** - * Name of the WiFi network - */ - ssid: string; - } + export interface PersonalPsk { + /** + * Password for connecting to the WiFi network + */ + password: string; - export type Type = - | 'enterprise_eap_peap' - | 'enterprise_eap_tls' - | 'personal_psk'; + /** + * Name of the WiFi network + */ + ssid: string; } + + export type Type = + | 'enterprise_eap_peap' + | 'enterprise_eap_tls' + | 'personal_psk'; } } export namespace Terminal { diff --git a/src/resources/Terminal/Locations.ts b/src/resources/Terminal/Locations.ts index 69a7913a85..5750e5d1d0 100644 --- a/src/resources/Terminal/Locations.ts +++ b/src/resources/Terminal/Locations.ts @@ -20,7 +20,7 @@ export class LocationResource extends StripeResource { id: string, params?: Terminal.LocationDeleteParams, options?: RequestOptions - ): Promise> { + ): Promise> { return this._makeRequest( 'DELETE', `/v1/terminal/locations/${encodeURIComponent(id)}`, @@ -35,7 +35,7 @@ export class LocationResource extends StripeResource { id: string, params?: Terminal.LocationRetrieveParams, options?: RequestOptions - ): Promise> { + ): Promise> { return this._makeRequest( 'GET', `/v1/terminal/locations/${encodeURIComponent(id)}`, @@ -50,7 +50,7 @@ export class LocationResource extends StripeResource { id: string, params?: Terminal.LocationUpdateParams, options?: RequestOptions - ): Promise> { + ): Promise> { return this._makeRequest( 'POST', `/v1/terminal/locations/${encodeURIComponent(id)}`, @@ -98,9 +98,9 @@ export interface Location { address: Address; - address_kana?: Terminal.Location.AddressKana; + address_kana?: Location.AddressKana; - address_kanji?: Terminal.Location.AddressKanji; + address_kanji?: Location.AddressKanji; /** * The ID of a configuration that will be used to customize all readers in this location. @@ -142,98 +142,95 @@ export interface Location { */ phone?: string; } -export namespace Terminal { - export interface DeletedLocation { +export interface DeletedLocation { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'terminal.location'; + + /** + * Always true for a deleted object + */ + deleted: true; +} +export namespace Location { + export interface AddressKana { /** - * Unique identifier for the object. + * City/Ward. */ - id: string; + city: string | null; /** - * String representing the object's type. Objects of the same type share the same value. + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). */ - object: 'terminal.location'; + country: string | null; /** - * Always true for a deleted object + * Block/Building number. */ - deleted: true; - } - - export namespace Location { - export interface AddressKana { - /** - * City/Ward. - */ - city: string | null; + line1: string | null; - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country: string | null; - - /** - * Block/Building number. - */ - line1: string | null; - - /** - * Building details. - */ - line2: string | null; + /** + * Building details. + */ + line2: string | null; - /** - * ZIP or postal code. - */ - postal_code: string | null; + /** + * ZIP or postal code. + */ + postal_code: string | null; - /** - * Prefecture. - */ - state: string | null; + /** + * Prefecture. + */ + state: string | null; - /** - * Town/cho-me. - */ - town: string | null; - } + /** + * Town/cho-me. + */ + town: string | null; + } - export interface AddressKanji { - /** - * City/Ward. - */ - city: string | null; + export interface AddressKanji { + /** + * City/Ward. + */ + city: string | null; - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country: string | null; + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country: string | null; - /** - * Block/Building number. - */ - line1: string | null; + /** + * Block/Building number. + */ + line1: string | null; - /** - * Building details. - */ - line2: string | null; + /** + * Building details. + */ + line2: string | null; - /** - * ZIP or postal code. - */ - postal_code: string | null; + /** + * ZIP or postal code. + */ + postal_code: string | null; - /** - * Prefecture. - */ - state: string | null; + /** + * Prefecture. + */ + state: string | null; - /** - * Town/cho-me. - */ - town: string | null; - } + /** + * Town/cho-me. + */ + town: string | null; } } export namespace Terminal { diff --git a/src/resources/Terminal/OnboardingLinks.ts b/src/resources/Terminal/OnboardingLinks.ts index 848358a848..2068199420 100644 --- a/src/resources/Terminal/OnboardingLinks.ts +++ b/src/resources/Terminal/OnboardingLinks.ts @@ -25,7 +25,7 @@ export interface OnboardingLink { /** * Link type options associated with the current onboarding link object. */ - link_options: Terminal.OnboardingLink.LinkOptions; + link_options: OnboardingLink.LinkOptions; /** * The type of link being generated. @@ -42,27 +42,25 @@ export interface OnboardingLink { */ redirect_url: string; } -export namespace Terminal { - export namespace OnboardingLink { - export interface LinkOptions { +export namespace OnboardingLink { + export interface LinkOptions { + /** + * The options associated with the Apple Terms and Conditions link type. + */ + apple_terms_and_conditions: LinkOptions.AppleTermsAndConditions | null; + } + + export namespace LinkOptions { + export interface AppleTermsAndConditions { /** - * The options associated with the Apple Terms and Conditions link type. + * Whether the link should also support users relinking their Apple account. */ - apple_terms_and_conditions: LinkOptions.AppleTermsAndConditions | null; - } + allow_relinking: boolean | null; - export namespace LinkOptions { - export interface AppleTermsAndConditions { - /** - * Whether the link should also support users relinking their Apple account. - */ - allow_relinking: boolean | null; - - /** - * The business name of the merchant accepting Apple's Terms and Conditions. - */ - merchant_display_name: string; - } + /** + * The business name of the merchant accepting Apple's Terms and Conditions. + */ + merchant_display_name: string; } } } diff --git a/src/resources/Terminal/ReaderCollectedData.ts b/src/resources/Terminal/ReaderCollectedData.ts index b1729b45f4..d74d8110ec 100644 --- a/src/resources/Terminal/ReaderCollectedData.ts +++ b/src/resources/Terminal/ReaderCollectedData.ts @@ -44,21 +44,19 @@ export interface ReaderCollectedData { /** * The magstripe data collected by the reader. */ - magstripe: Terminal.ReaderCollectedData.Magstripe | null; + magstripe: ReaderCollectedData.Magstripe | null; /** * The type of data collected by the reader. */ type: 'magstripe'; } -export namespace Terminal { - export namespace ReaderCollectedData { - export interface Magstripe { - /** - * The raw magstripe data collected by the reader. - */ - data: string | null; - } +export namespace ReaderCollectedData { + export interface Magstripe { + /** + * The raw magstripe data collected by the reader. + */ + data: string | null; } } export namespace Terminal { diff --git a/src/resources/Terminal/Readers.ts b/src/resources/Terminal/Readers.ts index 9e42a30c48..1f0fc76fb9 100644 --- a/src/resources/Terminal/Readers.ts +++ b/src/resources/Terminal/Readers.ts @@ -24,7 +24,7 @@ export class ReaderResource extends StripeResource { id: string, params?: Terminal.ReaderDeleteParams, options?: RequestOptions - ): Promise> { + ): Promise> { return this._makeRequest( 'DELETE', `/v1/terminal/readers/${encodeURIComponent(id)}`, @@ -39,7 +39,7 @@ export class ReaderResource extends StripeResource { id: string, params?: Terminal.ReaderRetrieveParams, options?: RequestOptions - ): Promise> { + ): Promise> { return this._makeRequest( 'GET', `/v1/terminal/readers/${encodeURIComponent(id)}`, @@ -54,7 +54,7 @@ export class ReaderResource extends StripeResource { id: string, params?: Terminal.ReaderUpdateParams, options?: RequestOptions - ): Promise> { + ): Promise> { return this._makeRequest( 'POST', `/v1/terminal/readers/${encodeURIComponent(id)}`, @@ -222,7 +222,7 @@ export interface Reader { /** * The most recent action performed by the reader. */ - action: Terminal.Reader.Action | null; + action: Reader.Action | null; /** * Always true for a deleted object @@ -237,7 +237,7 @@ export interface Reader { /** * Device type of the reader. */ - device_type: Terminal.Reader.DeviceType; + device_type: Reader.DeviceType; /** * The local IP address of the reader. @@ -277,997 +277,990 @@ export interface Reader { /** * The networking status of the reader. We do not recommend using this field in flows that may block taking payments. */ - status: Terminal.Reader.Status | null; + status: Reader.Status | null; } -export namespace Terminal { - export interface DeletedReader { +export interface DeletedReader { + /** + * Unique identifier for the object. + */ + id: string; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'terminal.reader'; + + /** + * Always true for a deleted object + */ + deleted: true; + + /** + * Device type of the reader. + */ + device_type: DeletedReader.DeviceType; + + /** + * Serial number of the reader. + */ + serial_number: string; +} +export namespace DeletedReader { + export type DeviceType = + | 'bbpos_chipper2x' + | 'bbpos_wisepad3' + | 'bbpos_wisepos_e' + | 'mobile_phone_reader' + | 'simulated_stripe_s700' + | 'simulated_stripe_s710' + | 'simulated_verifone_m425' + | 'simulated_verifone_p630' + | 'simulated_verifone_ux700' + | 'simulated_verifone_v660p' + | 'simulated_wisepos_e' + | 'stripe_m2' + | 'stripe_s700' + | 'stripe_s710' + | 'verifone_P400' + | 'verifone_m425' + | 'verifone_p630' + | 'verifone_ux700' + | 'verifone_v660p'; +} +export namespace Reader { + export interface Action { /** - * Unique identifier for the object. + * The reader action failed due to an [API error](https://docs.stripe.com/api/errors). Only present when `status` is `failed` and the underlying failure was an API error. Avoid parsing the `message` field for programmatic logic; use `type` or `code` instead. The `message` field is for display to humans only and may be updated at anytime. Requires [reader version](https://docs.stripe.com/terminal/readers/stripe-reader-s700-s710#reader-software-version) 2.42 or later. Readers on older versions always return null. */ - id: string; + api_error: Action.ApiError | null; /** - * String representing the object's type. Objects of the same type share the same value. + * Represents a reader action to collect customer inputs */ - object: 'terminal.reader'; + collect_inputs?: Action.CollectInputs; /** - * Always true for a deleted object + * Represents a reader action to collect a payment method */ - deleted: true; + collect_payment_method?: Action.CollectPaymentMethod; /** - * Device type of the reader. + * Represents a reader action to confirm a payment */ - device_type: DeletedReader.DeviceType; + confirm_payment_intent?: Action.ConfirmPaymentIntent; /** - * Serial number of the reader. + * Failure code, only set if status is `failed`. */ - serial_number: string; - } + failure_code: string | null; - export namespace DeletedReader { - export type DeviceType = - | 'bbpos_chipper2x' - | 'bbpos_wisepad3' - | 'bbpos_wisepos_e' - | 'mobile_phone_reader' - | 'simulated_stripe_s700' - | 'simulated_stripe_s710' - | 'simulated_verifone_m425' - | 'simulated_verifone_p630' - | 'simulated_verifone_ux700' - | 'simulated_verifone_v660p' - | 'simulated_wisepos_e' - | 'stripe_m2' - | 'stripe_s700' - | 'stripe_s710' - | 'verifone_P400' - | 'verifone_m425' - | 'verifone_p630' - | 'verifone_ux700' - | 'verifone_v660p'; + /** + * Detailed failure message, only set if status is `failed`. + */ + failure_message: string | null; + + /** + * Represents a reader action to print content + */ + print_content?: Action.PrintContent; + + /** + * Represents a reader action to process a payment intent + */ + process_payment_intent?: Action.ProcessPaymentIntent; + + /** + * Represents a reader action to process a setup intent + */ + process_setup_intent?: Action.ProcessSetupIntent; + + /** + * Represents a reader action to refund a payment + */ + refund_payment?: Action.RefundPayment; + + /** + * Represents a reader action to set the reader display + */ + set_reader_display?: Action.SetReaderDisplay; + + /** + * Status of the action performed by the reader. + */ + status: Action.Status; + + /** + * Type of action performed by the reader. + */ + type: Action.Type; } - export namespace Reader { - export interface Action { + export type DeviceType = + | 'bbpos_chipper2x' + | 'bbpos_wisepad3' + | 'bbpos_wisepos_e' + | 'mobile_phone_reader' + | 'simulated_stripe_s700' + | 'simulated_stripe_s710' + | 'simulated_verifone_m425' + | 'simulated_verifone_p630' + | 'simulated_verifone_ux700' + | 'simulated_verifone_v660p' + | 'simulated_wisepos_e' + | 'stripe_m2' + | 'stripe_s700' + | 'stripe_s710' + | 'verifone_P400' + | 'verifone_m425' + | 'verifone_p630' + | 'verifone_ux700' + | 'verifone_v660p'; + + export type Status = 'offline' | 'online'; + + export namespace Action { + export interface ApiError { /** - * The reader action failed due to an [API error](https://docs.stripe.com/api/errors). Only present when `status` is `failed` and the underlying failure was an API error. Avoid parsing the `message` field for programmatic logic; use `type` or `code` instead. The `message` field is for display to humans only and may be updated at anytime. Requires [reader version](https://docs.stripe.com/terminal/readers/stripe-reader-s700-s710#reader-software-version) 2.42 or later. Readers on older versions always return null. + * For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one. */ - api_error: Action.ApiError | null; + advice_code?: string; /** - * Represents a reader action to collect customer inputs + * For card errors, the ID of the failed charge. */ - collect_inputs?: Action.CollectInputs; + charge?: string; /** - * Represents a reader action to collect a payment method + * For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported. */ - collect_payment_method?: Action.CollectPaymentMethod; + code?: ApiError.Code; /** - * Represents a reader action to confirm a payment + * For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one. */ - confirm_payment_intent?: Action.ConfirmPaymentIntent; + decline_code?: string; /** - * Failure code, only set if status is `failed`. + * A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported. */ - failure_code: string | null; + doc_url?: string; /** - * Detailed failure message, only set if status is `failed`. + * A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. */ - failure_message: string | null; + message?: string; /** - * Represents a reader action to print content + * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. */ - print_content?: Action.PrintContent; + network_advice_code?: string; /** - * Represents a reader action to process a payment intent + * For payments declined by the network, an alphanumeric code which indicates the reason the payment failed. */ - process_payment_intent?: Action.ProcessPaymentIntent; + network_decline_code?: string; /** - * Represents a reader action to process a setup intent + * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. */ - process_setup_intent?: Action.ProcessSetupIntent; + param?: string; /** - * Represents a reader action to refund a payment + * A PaymentIntent guides you through the process of collecting a payment from your customer. + * We recommend that you create exactly one PaymentIntent for each order or + * customer session in your system. You can reference the PaymentIntent later to + * see the history of payment attempts for a particular session. + * + * A PaymentIntent transitions through + * [multiple statuses](https://docs.stripe.com/payments/paymentintents/lifecycle) + * throughout its lifetime as it interfaces with Stripe.js to perform + * authentication flows and ultimately creates at most one successful charge. + * + * Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents) */ - refund_payment?: Action.RefundPayment; + payment_intent?: PaymentIntent; /** - * Represents a reader action to set the reader display + * PaymentMethod objects represent your customer's payment instruments. + * You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to + * Customer objects to store instrument details for future payments. + * + * Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios). */ - set_reader_display?: Action.SetReaderDisplay; + payment_method?: PaymentMethod; /** - * Status of the action performed by the reader. + * If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. */ - status: Action.Status; + payment_method_type?: string; /** - * Type of action performed by the reader. + * A URL to the request log entry in your dashboard. */ - type: Action.Type; - } + request_log_url?: string; - export type DeviceType = - | 'bbpos_chipper2x' - | 'bbpos_wisepad3' - | 'bbpos_wisepos_e' - | 'mobile_phone_reader' - | 'simulated_stripe_s700' - | 'simulated_stripe_s710' - | 'simulated_verifone_m425' - | 'simulated_verifone_p630' - | 'simulated_verifone_ux700' - | 'simulated_verifone_v660p' - | 'simulated_wisepos_e' - | 'stripe_m2' - | 'stripe_s700' - | 'stripe_s710' - | 'verifone_P400' - | 'verifone_m425' - | 'verifone_p630' - | 'verifone_ux700' - | 'verifone_v660p'; - - export type Status = 'offline' | 'online'; - - export namespace Action { - export interface ApiError { - /** - * For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one. - */ - advice_code?: string; + /** + * A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. + * For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment. + * Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow. + * + * Create a SetupIntent when you're ready to collect your customer's payment credentials. + * Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid. + * The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides + * you through the setup process. + * + * Successful SetupIntents result in payment credentials that are optimized for future payments. + * For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through + * [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection + * to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents). + * If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer), + * it automatically attaches the resulting payment method to that Customer after successful setup. + * We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on + * PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods. + * + * By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. + * + * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) + */ + setup_intent?: SetupIntent; - /** - * For card errors, the ID of the failed charge. - */ - charge?: string; + source?: CustomerSource; - /** - * For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported. - */ - code?: ApiError.Code; + /** + * The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` + */ + type: ApiError.Type; + } - /** - * For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one. - */ - decline_code?: string; + export interface CollectInputs { + /** + * List of inputs to be collected. + */ + inputs: Array; - /** - * A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported. - */ - doc_url?: string; + /** + * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + */ + metadata: Metadata | null; + } - /** - * A human-readable message providing more details about the error. For card errors, these messages can be shown to your users. - */ - message?: string; + export interface CollectPaymentMethod { + /** + * Account the payment intent belongs to. + */ + account?: string; - /** - * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error. - */ - network_advice_code?: string; + /** + * Represents a per-transaction override of a reader configuration + */ + collect_config?: CollectPaymentMethod.CollectConfig; - /** - * For payments declined by the network, an alphanumeric code which indicates the reason the payment failed. - */ - network_decline_code?: string; + /** + * Most recent PaymentIntent processed by the reader. + */ + payment_intent: string | PaymentIntent; - /** - * If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field. - */ - param?: string; + /** + * PaymentMethod objects represent your customer's payment instruments. + * You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to + * Customer objects to store instrument details for future payments. + * + * Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios). + */ + payment_method?: PaymentMethod; + } - /** - * A PaymentIntent guides you through the process of collecting a payment from your customer. - * We recommend that you create exactly one PaymentIntent for each order or - * customer session in your system. You can reference the PaymentIntent later to - * see the history of payment attempts for a particular session. - * - * A PaymentIntent transitions through - * [multiple statuses](https://docs.stripe.com/payments/paymentintents/lifecycle) - * throughout its lifetime as it interfaces with Stripe.js to perform - * authentication flows and ultimately creates at most one successful charge. - * - * Related guide: [Payment Intents API](https://docs.stripe.com/payments/payment-intents) - */ - payment_intent?: PaymentIntent; + export interface ConfirmPaymentIntent { + /** + * Account the payment intent belongs to. + */ + account?: string; - /** - * PaymentMethod objects represent your customer's payment instruments. - * You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to - * Customer objects to store instrument details for future payments. - * - * Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios). - */ - payment_method?: PaymentMethod; + /** + * Represents a per-transaction override of a reader configuration + */ + confirm_config?: ConfirmPaymentIntent.ConfirmConfig; - /** - * If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors. - */ - payment_method_type?: string; + /** + * Most recent PaymentIntent processed by the reader. + */ + payment_intent: string | PaymentIntent; + } - /** - * A URL to the request log entry in your dashboard. - */ - request_log_url?: string; + export interface PrintContent { + /** + * Metadata of an uploaded file + */ + image?: PrintContent.Image; - /** - * A SetupIntent guides you through the process of setting up and saving a customer's payment credentials for future payments. - * For example, you can use a SetupIntent to set up and save your customer's card without immediately collecting a payment. - * Later, you can use [PaymentIntents](https://api.stripe.com#payment_intents) to drive the payment flow. - * - * Create a SetupIntent when you're ready to collect your customer's payment credentials. - * Don't maintain long-lived, unconfirmed SetupIntents because they might not be valid. - * The SetupIntent transitions through multiple [statuses](https://docs.stripe.com/payments/intents#intent-statuses) as it guides - * you through the setup process. - * - * Successful SetupIntents result in payment credentials that are optimized for future payments. - * For example, cardholders in [certain regions](https://stripe.com/guides/strong-customer-authentication) might need to be run through - * [Strong Customer Authentication](https://docs.stripe.com/strong-customer-authentication) during payment method collection - * to streamline later [off-session payments](https://docs.stripe.com/payments/setup-intents). - * If you use the SetupIntent with a [Customer](https://api.stripe.com#setup_intent_object-customer), - * it automatically attaches the resulting payment method to that Customer after successful setup. - * We recommend using SetupIntents or [setup_future_usage](https://api.stripe.com#payment_intent_object-setup_future_usage) on - * PaymentIntents to save payment methods to prevent saving invalid or unoptimized payment methods. - * - * By using SetupIntents, you can reduce friction for your customers, even as regulations change over time. - * - * Related guide: [Setup Intents API](https://docs.stripe.com/payments/setup-intents) - */ - setup_intent?: SetupIntent; + /** + * The type of content to print. Currently supports `image`. + */ + type: 'image'; + } - source?: CustomerSource; + export interface ProcessPaymentIntent { + /** + * Account the payment intent belongs to. + */ + account?: string; - /** - * The type of error returned. One of `api_error`, `card_error`, `idempotency_error`, or `invalid_request_error` - */ - type: ApiError.Type; - } + /** + * Most recent PaymentIntent processed by the reader. + */ + payment_intent: string | PaymentIntent; - export interface CollectInputs { - /** - * List of inputs to be collected. - */ - inputs: Array; + /** + * Represents a per-transaction override of a reader configuration + */ + process_config?: ProcessPaymentIntent.ProcessConfig; + } - /** - * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. - */ - metadata: Metadata | null; - } + export interface ProcessSetupIntent { + /** + * ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. + */ + generated_card?: string; - export interface CollectPaymentMethod { - /** - * Account the payment intent belongs to. - */ - account?: string; + /** + * Represents a per-setup override of a reader configuration + */ + process_config?: ProcessSetupIntent.ProcessConfig; - /** - * Represents a per-transaction override of a reader configuration - */ - collect_config?: CollectPaymentMethod.CollectConfig; + /** + * Most recent SetupIntent processed by the reader. + */ + setup_intent: string | SetupIntent; + } - /** - * Most recent PaymentIntent processed by the reader. - */ - payment_intent: string | PaymentIntent; + export interface RefundPayment { + /** + * Account the payment intent belongs to. + */ + account?: string; - /** - * PaymentMethod objects represent your customer's payment instruments. - * You can use them with [PaymentIntents](https://docs.stripe.com/payments/payment-intents) to collect payments or save them to - * Customer objects to store instrument details for future payments. - * - * Related guides: [Payment Methods](https://docs.stripe.com/payments/payment-methods) and [More Payment Scenarios](https://docs.stripe.com/payments/more-payment-scenarios). - */ - payment_method?: PaymentMethod; - } + /** + * The amount being refunded. + */ + amount?: number; - export interface ConfirmPaymentIntent { - /** - * Account the payment intent belongs to. - */ - account?: string; + /** + * Charge that is being refunded. + */ + charge?: string | Charge; - /** - * Represents a per-transaction override of a reader configuration - */ - confirm_config?: ConfirmPaymentIntent.ConfirmConfig; + /** + * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + */ + metadata?: Metadata; - /** - * Most recent PaymentIntent processed by the reader. - */ - payment_intent: string | PaymentIntent; - } + /** + * Payment intent that is being refunded. + */ + payment_intent?: string | PaymentIntent; - export interface PrintContent { - /** - * Metadata of an uploaded file - */ - image?: PrintContent.Image; + /** + * The reason for the refund. + */ + reason?: RefundPayment.Reason; - /** - * The type of content to print. Currently supports `image`. - */ - type: 'image'; - } + /** + * Unique identifier for the refund object. + */ + refund?: string | Refund; - export interface ProcessPaymentIntent { - /** - * Account the payment intent belongs to. - */ - account?: string; + /** + * Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge. + */ + refund_application_fee?: boolean; - /** - * Most recent PaymentIntent processed by the reader. - */ - payment_intent: string | PaymentIntent; + /** + * Represents a per-transaction override of a reader configuration + */ + refund_payment_config?: RefundPayment.RefundPaymentConfig; - /** - * Represents a per-transaction override of a reader configuration - */ - process_config?: ProcessPaymentIntent.ProcessConfig; - } + /** + * Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge. + */ + reverse_transfer?: boolean; + } - export interface ProcessSetupIntent { - /** - * ID of a card PaymentMethod generated from the card_present PaymentMethod that may be attached to a Customer for future transactions. Only present if it was possible to generate a card PaymentMethod. - */ - generated_card?: string; + export interface SetReaderDisplay { + /** + * Cart object to be displayed by the reader, including line items, amounts, and currency. + */ + cart: SetReaderDisplay.Cart | null; - /** - * Represents a per-setup override of a reader configuration - */ - process_config?: ProcessSetupIntent.ProcessConfig; + /** + * Type of information to be displayed by the reader. Only `cart` is currently supported. + */ + type: 'cart'; + } - /** - * Most recent SetupIntent processed by the reader. - */ - setup_intent: string | SetupIntent; - } + export type Status = 'failed' | 'in_progress' | 'succeeded'; + + export type Type = + | 'collect_inputs' + | 'collect_payment_method' + | 'confirm_payment_intent' + | 'print_content' + | 'process_payment_intent' + | 'process_setup_intent' + | 'refund_payment' + | 'set_reader_display'; + + export namespace ApiError { + export type Code = + | 'account_closed' + | 'account_country_invalid_address' + | 'account_error_country_change_requires_additional_steps' + | 'account_information_mismatch' + | 'account_invalid' + | 'account_number_invalid' + | 'account_token_required_for_v2_account' + | 'acss_debit_session_incomplete' + | 'action_blocked' + | 'alipay_upgrade_required' + | 'amount_too_large' + | 'amount_too_small' + | 'api_key_expired' + | 'application_fees_not_allowed' + | 'approval_required' + | 'authentication_required' + | 'balance_insufficient' + | 'balance_invalid_parameter' + | 'bank_account_bad_routing_numbers' + | 'bank_account_declined' + | 'bank_account_exists' + | 'bank_account_restricted' + | 'bank_account_unusable' + | 'bank_account_unverified' + | 'bank_account_verification_failed' + | 'billing_invalid_mandate' + | 'bitcoin_upgrade_required' + | 'capture_charge_authorization_expired' + | 'capture_unauthorized_payment' + | 'card_decline_rate_limit_exceeded' + | 'card_declined' + | 'cardholder_phone_number_required' + | 'charge_already_captured' + | 'charge_already_refunded' + | 'charge_disputed' + | 'charge_exceeds_source_limit' + | 'charge_exceeds_transaction_limit' + | 'charge_expired_for_capture' + | 'charge_invalid_parameter' + | 'charge_not_refundable' + | 'clearing_code_unsupported' + | 'country_code_invalid' + | 'country_unsupported' + | 'coupon_expired' + | 'customer_max_payment_methods' + | 'customer_max_subscriptions' + | 'customer_session_expired' + | 'customer_tax_location_invalid' + | 'debit_not_authorized' + | 'email_invalid' + | 'expired_card' + | 'financial_connections_account_inactive' + | 'financial_connections_account_pending_account_numbers' + | 'financial_connections_account_unavailable_account_numbers' + | 'financial_connections_institution_unavailable' + | 'financial_connections_no_successful_transaction_refresh' + | 'forwarding_api_inactive' + | 'forwarding_api_invalid_parameter' + | 'forwarding_api_retryable_upstream_error' + | 'forwarding_api_upstream_connection_error' + | 'forwarding_api_upstream_connection_timeout' + | 'forwarding_api_upstream_error' + | 'idempotency_key_in_use' + | 'incorrect_address' + | 'incorrect_cvc' + | 'incorrect_number' + | 'incorrect_zip' + | 'india_recurring_payment_mandate_canceled' + | 'instant_payouts_config_disabled' + | 'instant_payouts_currency_disabled' + | 'instant_payouts_limit_exceeded' + | 'instant_payouts_unsupported' + | 'insufficient_funds' + | 'intent_invalid_state' + | 'intent_verification_method_missing' + | 'invalid_card_type' + | 'invalid_characters' + | 'invalid_charge_amount' + | 'invalid_cvc' + | 'invalid_expiry_month' + | 'invalid_expiry_year' + | 'invalid_mandate_reference_prefix_format' + | 'invalid_number' + | 'invalid_source_usage' + | 'invalid_tax_location' + | 'invoice_no_customer_line_items' + | 'invoice_no_payment_method_types' + | 'invoice_no_subscription_line_items' + | 'invoice_not_editable' + | 'invoice_on_behalf_of_not_editable' + | 'invoice_payment_intent_requires_action' + | 'invoice_upcoming_none' + | 'livemode_mismatch' + | 'lock_timeout' + | 'missing' + | 'no_account' + | 'not_allowed_on_standard_account' + | 'out_of_inventory' + | 'ownership_declaration_not_allowed' + | 'parameter_invalid_empty' + | 'parameter_invalid_integer' + | 'parameter_invalid_string_blank' + | 'parameter_invalid_string_empty' + | 'parameter_missing' + | 'parameter_unknown' + | 'parameters_exclusive' + | 'payment_intent_action_required' + | 'payment_intent_authentication_failure' + | 'payment_intent_incompatible_payment_method' + | 'payment_intent_invalid_parameter' + | 'payment_intent_konbini_rejected_confirmation_number' + | 'payment_intent_mandate_invalid' + | 'payment_intent_payment_attempt_expired' + | 'payment_intent_payment_attempt_failed' + | 'payment_intent_rate_limit_exceeded' + | 'payment_intent_unexpected_state' + | 'payment_method_bank_account_already_verified' + | 'payment_method_bank_account_blocked' + | 'payment_method_billing_details_address_missing' + | 'payment_method_configuration_failures' + | 'payment_method_currency_mismatch' + | 'payment_method_customer_decline' + | 'payment_method_invalid_parameter' + | 'payment_method_invalid_parameter_testmode' + | 'payment_method_microdeposit_failed' + | 'payment_method_microdeposit_processing_error' + | 'payment_method_microdeposit_verification_amounts_invalid' + | 'payment_method_microdeposit_verification_amounts_mismatch' + | 'payment_method_microdeposit_verification_attempts_exceeded' + | 'payment_method_microdeposit_verification_descriptor_code_mismatch' + | 'payment_method_microdeposit_verification_timeout' + | 'payment_method_not_available' + | 'payment_method_provider_decline' + | 'payment_method_provider_timeout' + | 'payment_method_unactivated' + | 'payment_method_unexpected_state' + | 'payment_method_unsupported_type' + | 'payout_reconciliation_not_ready' + | 'payouts_limit_exceeded' + | 'payouts_not_allowed' + | 'platform_account_required' + | 'platform_api_key_expired' + | 'postal_code_invalid' + | 'processing_error' + | 'product_inactive' + | 'progressive_onboarding_limit_exceeded' + | 'rate_limit' + | 'refer_to_customer' + | 'refund_disputed_payment' + | 'request_blocked' + | 'resource_already_exists' + | 'resource_missing' + | 'return_intent_already_processed' + | 'routing_number_invalid' + | 'secret_key_required' + | 'sensitive_data_access_expired' + | 'sepa_unsupported_account' + | 'service_period_coupon_with_metered_tiered_item_unsupported' + | 'setup_attempt_failed' + | 'setup_intent_authentication_failure' + | 'setup_intent_invalid_parameter' + | 'setup_intent_mandate_invalid' + | 'setup_intent_mobile_wallet_unsupported' + | 'setup_intent_setup_attempt_expired' + | 'setup_intent_unexpected_state' + | 'shipping_address_invalid' + | 'shipping_calculation_failed' + | 'siret_invalid' + | 'sku_inactive' + | 'state_unsupported' + | 'status_transition_invalid' + | 'storer_capability_missing' + | 'storer_capability_not_active' + | 'stripe_tax_inactive' + | 'tax_id_invalid' + | 'tax_id_prohibited' + | 'taxes_calculation_failed' + | 'terminal_location_country_unsupported' + | 'terminal_reader_busy' + | 'terminal_reader_collected_data_invalid' + | 'terminal_reader_hardware_fault' + | 'terminal_reader_invalid_location_for_activation' + | 'terminal_reader_invalid_location_for_payment' + | 'terminal_reader_offline' + | 'terminal_reader_timeout' + | 'testmode_charges_only' + | 'tls_version_unsupported' + | 'token_already_used' + | 'token_card_network_invalid' + | 'token_in_use' + | 'transfer_source_balance_parameters_mismatch' + | 'transfers_not_allowed' + | 'url_invalid' + | 'v2_account_disconnection_unsupported' + | 'v2_account_missing_configuration'; - export interface RefundPayment { - /** - * Account the payment intent belongs to. - */ - account?: string; + export type Type = + | 'api_error' + | 'card_error' + | 'idempotency_error' + | 'invalid_request_error'; + } + export namespace CollectInputs { + export interface Input { /** - * The amount being refunded. + * Default text of input being collected. */ - amount?: number; + custom_text: Input.CustomText | null; /** - * Charge that is being refunded. + * Information about a email being collected using a reader */ - charge?: string | Charge; + email?: Input.Email; /** - * Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + * Information about a number being collected using a reader */ - metadata?: Metadata; + numeric?: Input.Numeric; /** - * Payment intent that is being refunded. + * Information about a phone number being collected using a reader */ - payment_intent?: string | PaymentIntent; + phone?: Input.Phone; /** - * The reason for the refund. + * Indicate that this input is required, disabling the skip button. */ - reason?: RefundPayment.Reason; + required: boolean | null; /** - * Unique identifier for the refund object. + * Information about a selection being collected using a reader */ - refund?: string | Refund; + selection?: Input.Selection; /** - * Boolean indicating whether the application fee should be refunded when refunding this charge. If a full charge refund is given, the full application fee will be refunded. Otherwise, the application fee will be refunded in an amount proportional to the amount of the charge refunded. An application fee can be refunded only by the application that created the charge. + * Information about a signature being collected using a reader */ - refund_application_fee?: boolean; + signature?: Input.Signature; /** - * Represents a per-transaction override of a reader configuration + * Indicate that this input was skipped by the user. */ - refund_payment_config?: RefundPayment.RefundPaymentConfig; + skipped?: boolean; /** - * Boolean indicating whether the transfer should be reversed when refunding this charge. The transfer will be reversed proportionally to the amount being refunded (either the entire or partial amount). A transfer can be reversed only by the application that created the charge. + * Information about text being collected using a reader */ - reverse_transfer?: boolean; - } + text?: Input.Text; - export interface SetReaderDisplay { /** - * Cart object to be displayed by the reader, including line items, amounts, and currency. + * List of toggles being collected. Values are present if collection is complete. */ - cart: SetReaderDisplay.Cart | null; + toggles: Array | null; /** - * Type of information to be displayed by the reader. Only `cart` is currently supported. + * Type of input being collected. */ - type: 'cart'; + type: Input.Type; } - export type Status = 'failed' | 'in_progress' | 'succeeded'; - - export type Type = - | 'collect_inputs' - | 'collect_payment_method' - | 'confirm_payment_intent' - | 'print_content' - | 'process_payment_intent' - | 'process_setup_intent' - | 'refund_payment' - | 'set_reader_display'; - - export namespace ApiError { - export type Code = - | 'account_closed' - | 'account_country_invalid_address' - | 'account_error_country_change_requires_additional_steps' - | 'account_information_mismatch' - | 'account_invalid' - | 'account_number_invalid' - | 'account_token_required_for_v2_account' - | 'acss_debit_session_incomplete' - | 'action_blocked' - | 'alipay_upgrade_required' - | 'amount_too_large' - | 'amount_too_small' - | 'api_key_expired' - | 'application_fees_not_allowed' - | 'approval_required' - | 'authentication_required' - | 'balance_insufficient' - | 'balance_invalid_parameter' - | 'bank_account_bad_routing_numbers' - | 'bank_account_declined' - | 'bank_account_exists' - | 'bank_account_restricted' - | 'bank_account_unusable' - | 'bank_account_unverified' - | 'bank_account_verification_failed' - | 'billing_invalid_mandate' - | 'bitcoin_upgrade_required' - | 'capture_charge_authorization_expired' - | 'capture_unauthorized_payment' - | 'card_decline_rate_limit_exceeded' - | 'card_declined' - | 'cardholder_phone_number_required' - | 'charge_already_captured' - | 'charge_already_refunded' - | 'charge_disputed' - | 'charge_exceeds_source_limit' - | 'charge_exceeds_transaction_limit' - | 'charge_expired_for_capture' - | 'charge_invalid_parameter' - | 'charge_not_refundable' - | 'clearing_code_unsupported' - | 'country_code_invalid' - | 'country_unsupported' - | 'coupon_expired' - | 'customer_max_payment_methods' - | 'customer_max_subscriptions' - | 'customer_session_expired' - | 'customer_tax_location_invalid' - | 'debit_not_authorized' - | 'email_invalid' - | 'expired_card' - | 'financial_connections_account_inactive' - | 'financial_connections_account_pending_account_numbers' - | 'financial_connections_account_unavailable_account_numbers' - | 'financial_connections_institution_unavailable' - | 'financial_connections_no_successful_transaction_refresh' - | 'forwarding_api_inactive' - | 'forwarding_api_invalid_parameter' - | 'forwarding_api_retryable_upstream_error' - | 'forwarding_api_upstream_connection_error' - | 'forwarding_api_upstream_connection_timeout' - | 'forwarding_api_upstream_error' - | 'idempotency_key_in_use' - | 'incorrect_address' - | 'incorrect_cvc' - | 'incorrect_number' - | 'incorrect_zip' - | 'india_recurring_payment_mandate_canceled' - | 'instant_payouts_config_disabled' - | 'instant_payouts_currency_disabled' - | 'instant_payouts_limit_exceeded' - | 'instant_payouts_unsupported' - | 'insufficient_funds' - | 'intent_invalid_state' - | 'intent_verification_method_missing' - | 'invalid_card_type' - | 'invalid_characters' - | 'invalid_charge_amount' - | 'invalid_cvc' - | 'invalid_expiry_month' - | 'invalid_expiry_year' - | 'invalid_mandate_reference_prefix_format' - | 'invalid_number' - | 'invalid_source_usage' - | 'invalid_tax_location' - | 'invoice_no_customer_line_items' - | 'invoice_no_payment_method_types' - | 'invoice_no_subscription_line_items' - | 'invoice_not_editable' - | 'invoice_on_behalf_of_not_editable' - | 'invoice_payment_intent_requires_action' - | 'invoice_upcoming_none' - | 'livemode_mismatch' - | 'lock_timeout' - | 'missing' - | 'no_account' - | 'not_allowed_on_standard_account' - | 'out_of_inventory' - | 'ownership_declaration_not_allowed' - | 'parameter_invalid_empty' - | 'parameter_invalid_integer' - | 'parameter_invalid_string_blank' - | 'parameter_invalid_string_empty' - | 'parameter_missing' - | 'parameter_unknown' - | 'parameters_exclusive' - | 'payment_intent_action_required' - | 'payment_intent_authentication_failure' - | 'payment_intent_incompatible_payment_method' - | 'payment_intent_invalid_parameter' - | 'payment_intent_konbini_rejected_confirmation_number' - | 'payment_intent_mandate_invalid' - | 'payment_intent_payment_attempt_expired' - | 'payment_intent_payment_attempt_failed' - | 'payment_intent_rate_limit_exceeded' - | 'payment_intent_unexpected_state' - | 'payment_method_bank_account_already_verified' - | 'payment_method_bank_account_blocked' - | 'payment_method_billing_details_address_missing' - | 'payment_method_configuration_failures' - | 'payment_method_currency_mismatch' - | 'payment_method_customer_decline' - | 'payment_method_invalid_parameter' - | 'payment_method_invalid_parameter_testmode' - | 'payment_method_microdeposit_failed' - | 'payment_method_microdeposit_processing_error' - | 'payment_method_microdeposit_verification_amounts_invalid' - | 'payment_method_microdeposit_verification_amounts_mismatch' - | 'payment_method_microdeposit_verification_attempts_exceeded' - | 'payment_method_microdeposit_verification_descriptor_code_mismatch' - | 'payment_method_microdeposit_verification_timeout' - | 'payment_method_not_available' - | 'payment_method_provider_decline' - | 'payment_method_provider_timeout' - | 'payment_method_unactivated' - | 'payment_method_unexpected_state' - | 'payment_method_unsupported_type' - | 'payout_reconciliation_not_ready' - | 'payouts_limit_exceeded' - | 'payouts_not_allowed' - | 'platform_account_required' - | 'platform_api_key_expired' - | 'postal_code_invalid' - | 'processing_error' - | 'product_inactive' - | 'progressive_onboarding_limit_exceeded' - | 'rate_limit' - | 'refer_to_customer' - | 'refund_disputed_payment' - | 'request_blocked' - | 'resource_already_exists' - | 'resource_missing' - | 'return_intent_already_processed' - | 'routing_number_invalid' - | 'secret_key_required' - | 'sensitive_data_access_expired' - | 'sepa_unsupported_account' - | 'service_period_coupon_with_metered_tiered_item_unsupported' - | 'setup_attempt_failed' - | 'setup_intent_authentication_failure' - | 'setup_intent_invalid_parameter' - | 'setup_intent_mandate_invalid' - | 'setup_intent_mobile_wallet_unsupported' - | 'setup_intent_setup_attempt_expired' - | 'setup_intent_unexpected_state' - | 'shipping_address_invalid' - | 'shipping_calculation_failed' - | 'siret_invalid' - | 'sku_inactive' - | 'state_unsupported' - | 'status_transition_invalid' - | 'storer_capability_missing' - | 'storer_capability_not_active' - | 'stripe_tax_inactive' - | 'tax_id_invalid' - | 'tax_id_prohibited' - | 'taxes_calculation_failed' - | 'terminal_location_country_unsupported' - | 'terminal_reader_busy' - | 'terminal_reader_collected_data_invalid' - | 'terminal_reader_hardware_fault' - | 'terminal_reader_invalid_location_for_activation' - | 'terminal_reader_invalid_location_for_payment' - | 'terminal_reader_offline' - | 'terminal_reader_timeout' - | 'testmode_charges_only' - | 'tls_version_unsupported' - | 'token_already_used' - | 'token_card_network_invalid' - | 'token_in_use' - | 'transfer_source_balance_parameters_mismatch' - | 'transfers_not_allowed' - | 'url_invalid' - | 'v2_account_disconnection_unsupported' - | 'v2_account_missing_configuration'; - - export type Type = - | 'api_error' - | 'card_error' - | 'idempotency_error' - | 'invalid_request_error'; - } - - export namespace CollectInputs { - export interface Input { + export namespace Input { + export interface CustomText { /** - * Default text of input being collected. + * Customize the default description for this input */ - custom_text: Input.CustomText | null; + description: string | null; /** - * Information about a email being collected using a reader + * Customize the default label for this input's skip button */ - email?: Input.Email; + skip_button: string | null; /** - * Information about a number being collected using a reader + * Customize the default label for this input's submit button */ - numeric?: Input.Numeric; + submit_button: string | null; /** - * Information about a phone number being collected using a reader + * Customize the default title for this input */ - phone?: Input.Phone; + title: string | null; + } + export interface Email { /** - * Indicate that this input is required, disabling the skip button. + * The collected email address */ - required: boolean | null; + value: string | null; + } + export interface Numeric { /** - * Information about a selection being collected using a reader + * The collected number */ - selection?: Input.Selection; + value: string | null; + } + export interface Phone { /** - * Information about a signature being collected using a reader + * The collected phone number */ - signature?: Input.Signature; + value: string | null; + } + export interface Selection { /** - * Indicate that this input was skipped by the user. + * List of possible choices to be selected */ - skipped?: boolean; + choices: Array; /** - * Information about text being collected using a reader + * The id of the selected choice */ - text?: Input.Text; + id: string | null; /** - * List of toggles being collected. Values are present if collection is complete. + * The text of the selected choice */ - toggles: Array | null; + text: string | null; + } + export interface Signature { /** - * Type of input being collected. + * The File ID of a collected signature image */ - type: Input.Type; + value: string | null; } - export namespace Input { - export interface CustomText { - /** - * Customize the default description for this input - */ - description: string | null; - - /** - * Customize the default label for this input's skip button - */ - skip_button: string | null; - - /** - * Customize the default label for this input's submit button - */ - submit_button: string | null; - - /** - * Customize the default title for this input - */ - title: string | null; - } + export interface Text { + /** + * The collected text value + */ + value: string | null; + } - export interface Email { - /** - * The collected email address - */ - value: string | null; - } + export interface Toggle { + /** + * The toggle's default value. Can be `enabled` or `disabled`. + */ + default_value: Toggle.DefaultValue | null; - export interface Numeric { - /** - * The collected number - */ - value: string | null; - } + /** + * The toggle's description text. Maximum 50 characters. + */ + description: string | null; - export interface Phone { - /** - * The collected phone number - */ - value: string | null; - } + /** + * The toggle's title text. Maximum 50 characters. + */ + title: string | null; - export interface Selection { - /** - * List of possible choices to be selected - */ - choices: Array; + /** + * The toggle's collected value. Can be `enabled` or `disabled`. + */ + value: Toggle.Value | null; + } + export type Type = + | 'email' + | 'numeric' + | 'phone' + | 'selection' + | 'signature' + | 'text'; + + export namespace Selection { + export interface Choice { /** - * The id of the selected choice + * The identifier for the selected choice. Maximum 50 characters. */ id: string | null; /** - * The text of the selected choice + * The button style for the choice. Can be `primary` or `secondary`. */ - text: string | null; - } + style: Choice.Style | null; - export interface Signature { /** - * The File ID of a collected signature image + * The text to be selected. Maximum 30 characters. */ - value: string | null; + text: string; } - export interface Text { - /** - * The collected text value - */ - value: string | null; - } - - export interface Toggle { - /** - * The toggle's default value. Can be `enabled` or `disabled`. - */ - default_value: Toggle.DefaultValue | null; - - /** - * The toggle's description text. Maximum 50 characters. - */ - description: string | null; - - /** - * The toggle's title text. Maximum 50 characters. - */ - title: string | null; - - /** - * The toggle's collected value. Can be `enabled` or `disabled`. - */ - value: Toggle.Value | null; - } - - export type Type = - | 'email' - | 'numeric' - | 'phone' - | 'selection' - | 'signature' - | 'text'; - - export namespace Selection { - export interface Choice { - /** - * The identifier for the selected choice. Maximum 50 characters. - */ - id: string | null; - - /** - * The button style for the choice. Can be `primary` or `secondary`. - */ - style: Choice.Style | null; - - /** - * The text to be selected. Maximum 30 characters. - */ - text: string; - } - - export namespace Choice { - export type Style = 'primary' | 'secondary'; - } + export namespace Choice { + export type Style = 'primary' | 'secondary'; } + } - export namespace Toggle { - export type DefaultValue = 'disabled' | 'enabled'; + export namespace Toggle { + export type DefaultValue = 'disabled' | 'enabled'; - export type Value = 'disabled' | 'enabled'; - } + export type Value = 'disabled' | 'enabled'; } } + } - export namespace CollectPaymentMethod { - export interface CollectConfig { - /** - * Enable customer-initiated cancellation when processing this payment. - */ - enable_customer_cancellation?: boolean; - - /** - * Override showing a tipping selection screen on this transaction. - */ - skip_tipping?: boolean; + export namespace CollectPaymentMethod { + export interface CollectConfig { + /** + * Enable customer-initiated cancellation when processing this payment. + */ + enable_customer_cancellation?: boolean; - /** - * Represents a per-transaction tipping configuration - */ - tipping?: CollectConfig.Tipping; - } + /** + * Override showing a tipping selection screen on this transaction. + */ + skip_tipping?: boolean; - export namespace CollectConfig { - export interface Tipping { - /** - * Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). - */ - amount_eligible?: number; - } - } + /** + * Represents a per-transaction tipping configuration + */ + tipping?: CollectConfig.Tipping; } - export namespace ConfirmPaymentIntent { - export interface ConfirmConfig { + export namespace CollectConfig { + export interface Tipping { /** - * If the customer doesn't abandon authenticating the payment, they're redirected to this URL after completion. + * Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). */ - return_url?: string; + amount_eligible?: number; } } + } - export namespace PrintContent { - export interface Image { - /** - * Creation time of the object (in seconds since the Unix epoch). - */ - created_at: number; + export namespace ConfirmPaymentIntent { + export interface ConfirmConfig { + /** + * If the customer doesn't abandon authenticating the payment, they're redirected to this URL after completion. + */ + return_url?: string; + } + } - /** - * The original name of the uploaded file (e.g. `receipt.png`). - */ - filename: string; + export namespace PrintContent { + export interface Image { + /** + * Creation time of the object (in seconds since the Unix epoch). + */ + created_at: number; - /** - * The size (in bytes) of the uploaded file. - */ - size: number; + /** + * The original name of the uploaded file (e.g. `receipt.png`). + */ + filename: string; - /** - * The format of the uploaded file. - */ - type: string; - } - } + /** + * The size (in bytes) of the uploaded file. + */ + size: number; - export namespace ProcessPaymentIntent { - export interface ProcessConfig { - /** - * Enable customer-initiated cancellation when processing this payment. - */ - enable_customer_cancellation?: boolean; + /** + * The format of the uploaded file. + */ + type: string; + } + } - /** - * If the customer doesn't abandon authenticating the payment, they're redirected to this URL after completion. - */ - return_url?: string; + export namespace ProcessPaymentIntent { + export interface ProcessConfig { + /** + * Enable customer-initiated cancellation when processing this payment. + */ + enable_customer_cancellation?: boolean; - /** - * Override showing a tipping selection screen on this transaction. - */ - skip_tipping?: boolean; + /** + * If the customer doesn't abandon authenticating the payment, they're redirected to this URL after completion. + */ + return_url?: string; - /** - * Represents a per-transaction tipping configuration - */ - tipping?: ProcessConfig.Tipping; - } + /** + * Override showing a tipping selection screen on this transaction. + */ + skip_tipping?: boolean; - export namespace ProcessConfig { - export interface Tipping { - /** - * Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). - */ - amount_eligible?: number; - } - } + /** + * Represents a per-transaction tipping configuration + */ + tipping?: ProcessConfig.Tipping; } - export namespace ProcessSetupIntent { - export interface ProcessConfig { + export namespace ProcessConfig { + export interface Tipping { /** - * Enable customer-initiated cancellation when processing this SetupIntent. + * Amount used to calculate tip suggestions on tipping selection screen for this transaction. Must be a positive integer in the smallest currency unit (e.g., 100 cents to represent $1.00 or 100 to represent ¥100, a zero-decimal currency). */ - enable_customer_cancellation?: boolean; + amount_eligible?: number; } } + } - export namespace RefundPayment { - export type Reason = - | 'duplicate' - | 'fraudulent' - | 'requested_by_customer'; + export namespace ProcessSetupIntent { + export interface ProcessConfig { + /** + * Enable customer-initiated cancellation when processing this SetupIntent. + */ + enable_customer_cancellation?: boolean; + } + } - export interface RefundPaymentConfig { - /** - * Enable customer-initiated cancellation when refunding this payment. - */ - enable_customer_cancellation?: boolean; - } + export namespace RefundPayment { + export type Reason = 'duplicate' | 'fraudulent' | 'requested_by_customer'; + + export interface RefundPaymentConfig { + /** + * Enable customer-initiated cancellation when refunding this payment. + */ + enable_customer_cancellation?: boolean; } + } - export namespace SetReaderDisplay { - export interface Cart { - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency: string; + export namespace SetReaderDisplay { + export interface Cart { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency: string; + + /** + * List of line items in the cart. + */ + line_items: Array; + /** + * Tax amount for the entire cart. A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + */ + tax: number | null; + + /** + * Total amount for the entire cart, including tax. A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + */ + total: number; + } + + export namespace Cart { + export interface LineItem { /** - * List of line items in the cart. + * The amount of the line item. A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). */ - line_items: Array; + amount: number; /** - * Tax amount for the entire cart. A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + * Description of the line item. */ - tax: number | null; + description: string; /** - * Total amount for the entire cart, including tax. A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). + * The quantity of the line item. */ - total: number; - } - - export namespace Cart { - export interface LineItem { - /** - * The amount of the line item. A positive integer in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal). - */ - amount: number; - - /** - * Description of the line item. - */ - description: string; - - /** - * The quantity of the line item. - */ - quantity: number; - } + quantity: number; } } } diff --git a/src/resources/Terminal/index.ts b/src/resources/Terminal/index.ts index 8fca13ec43..cad9d53669 100644 --- a/src/resources/Terminal/index.ts +++ b/src/resources/Terminal/index.ts @@ -4,6 +4,7 @@ import {Stripe} from '../../stripe.core.js'; import { Terminal as TerminalNamespace0, Configuration, + DeletedConfiguration, ConfigurationResource, } from './Configurations.js'; import { @@ -14,6 +15,7 @@ import { import { Terminal as TerminalNamespace2, Location, + DeletedLocation, LocationResource, } from './Locations.js'; import { @@ -24,6 +26,7 @@ import { import { Terminal as TerminalNamespace4, Reader, + DeletedReader, ReaderResource, } from './Readers.js'; import { @@ -63,7 +66,7 @@ export declare namespace Terminal { export import ConfigurationUpdateParams = TerminalNamespace0.ConfigurationUpdateParams; export import ConfigurationListParams = TerminalNamespace0.ConfigurationListParams; export import ConfigurationCreateParams = TerminalNamespace0.ConfigurationCreateParams; - export import DeletedConfiguration = TerminalNamespace0.DeletedConfiguration; + export {DeletedConfiguration}; export {Configuration, ConfigurationResource}; export import ConnectionTokenCreateParams = TerminalNamespace1.ConnectionTokenCreateParams; export {ConnectionToken, ConnectionTokenResource}; @@ -72,7 +75,7 @@ export declare namespace Terminal { export import LocationUpdateParams = TerminalNamespace2.LocationUpdateParams; export import LocationListParams = TerminalNamespace2.LocationListParams; export import LocationCreateParams = TerminalNamespace2.LocationCreateParams; - export import DeletedLocation = TerminalNamespace2.DeletedLocation; + export {DeletedLocation}; export {Location, LocationResource}; export import OnboardingLinkCreateParams = TerminalNamespace3.OnboardingLinkCreateParams; export {OnboardingLink, OnboardingLinkResource}; @@ -89,7 +92,7 @@ export declare namespace Terminal { export import ReaderProcessSetupIntentParams = TerminalNamespace4.ReaderProcessSetupIntentParams; export import ReaderRefundPaymentParams = TerminalNamespace4.ReaderRefundPaymentParams; export import ReaderSetReaderDisplayParams = TerminalNamespace4.ReaderSetReaderDisplayParams; - export import DeletedReader = TerminalNamespace4.DeletedReader; + export {DeletedReader}; export {Reader, ReaderResource}; export import ReaderCollectedDataRetrieveParams = TerminalNamespace5.ReaderCollectedDataRetrieveParams; export {ReaderCollectedData, ReaderCollectedDatumResource}; diff --git a/src/resources/TestHelpers/TestClocks.ts b/src/resources/TestHelpers/TestClocks.ts index 3568c6b4fc..43343c70e7 100644 --- a/src/resources/TestHelpers/TestClocks.ts +++ b/src/resources/TestHelpers/TestClocks.ts @@ -12,7 +12,7 @@ export class TestClockResource extends StripeResource { id: string, params?: TestHelpers.TestClockDeleteParams, options?: RequestOptions - ): Promise> { + ): Promise> { return this._makeRequest( 'DELETE', `/v1/test_helpers/test_clocks/${encodeURIComponent(id)}`, @@ -126,42 +126,39 @@ export interface TestClock { /** * The status of the Test Clock. */ - status: TestHelpers.TestClock.Status; + status: TestClock.Status; - status_details: TestHelpers.TestClock.StatusDetails; + status_details: TestClock.StatusDetails; } -export namespace TestHelpers { - export interface DeletedTestClock { - /** - * Unique identifier for the object. - */ - id: string; - - /** - * String representing the object's type. Objects of the same type share the same value. - */ - object: 'test_helpers.test_clock'; +export interface DeletedTestClock { + /** + * Unique identifier for the object. + */ + id: string; - /** - * Always true for a deleted object - */ - deleted: true; - } + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: 'test_helpers.test_clock'; - export namespace TestClock { - export type Status = 'advancing' | 'internal_failure' | 'ready'; + /** + * Always true for a deleted object + */ + deleted: true; +} +export namespace TestClock { + export type Status = 'advancing' | 'internal_failure' | 'ready'; - export interface StatusDetails { - advancing?: StatusDetails.Advancing; - } + export interface StatusDetails { + advancing?: StatusDetails.Advancing; + } - export namespace StatusDetails { - export interface Advancing { - /** - * The `frozen_time` that the Test Clock is advancing towards. - */ - target_frozen_time: number; - } + export namespace StatusDetails { + export interface Advancing { + /** + * The `frozen_time` that the Test Clock is advancing towards. + */ + target_frozen_time: number; } } } diff --git a/src/resources/TestHelpers/index.ts b/src/resources/TestHelpers/index.ts index 5aa6fce6ba..2bf61a191a 100644 --- a/src/resources/TestHelpers/index.ts +++ b/src/resources/TestHelpers/index.ts @@ -16,6 +16,7 @@ import { import { TestHelpers as TestHelpersNamespace3, TestClock, + DeletedTestClock, TestClockResource, } from './TestClocks.js'; import {Issuing} from './Issuing/index.js'; @@ -53,7 +54,7 @@ export declare namespace TestHelpers { export import TestClockListParams = TestHelpersNamespace3.TestClockListParams; export import TestClockCreateParams = TestHelpersNamespace3.TestClockCreateParams; export import TestClockAdvanceParams = TestHelpersNamespace3.TestClockAdvanceParams; - export import DeletedTestClock = TestHelpersNamespace3.DeletedTestClock; + export {DeletedTestClock}; export {TestClock, TestClockResource}; export {Issuing}; export {SharedPayment}; diff --git a/src/resources/Treasury/CreditReversals.ts b/src/resources/Treasury/CreditReversals.ts index 5ef7dff71e..da31a83a81 100644 --- a/src/resources/Treasury/CreditReversals.ts +++ b/src/resources/Treasury/CreditReversals.ts @@ -102,7 +102,7 @@ export interface CreditReversal { /** * The rails used to reverse the funds. */ - network: Treasury.CreditReversal.Network; + network: CreditReversal.Network; /** * The ReceivedCredit being reversed. @@ -112,27 +112,25 @@ export interface CreditReversal { /** * Status of the CreditReversal */ - status: Treasury.CreditReversal.Status; + status: CreditReversal.Status; - status_transitions: Treasury.CreditReversal.StatusTransitions; + status_transitions: CreditReversal.StatusTransitions; /** * The Transaction associated with this object. */ transaction: string | Transaction | null; } -export namespace Treasury { - export namespace CreditReversal { - export type Network = 'ach' | 'stripe'; +export namespace CreditReversal { + export type Network = 'ach' | 'stripe'; - export type Status = 'canceled' | 'posted' | 'processing'; + export type Status = 'canceled' | 'posted' | 'processing'; - export interface StatusTransitions { - /** - * Timestamp describing when the CreditReversal changed status to `posted` - */ - posted_at: number | null; - } + export interface StatusTransitions { + /** + * Timestamp describing when the CreditReversal changed status to `posted` + */ + posted_at: number | null; } } export namespace Treasury { diff --git a/src/resources/Treasury/DebitReversals.ts b/src/resources/Treasury/DebitReversals.ts index bd62987e4b..d467dcc9ae 100644 --- a/src/resources/Treasury/DebitReversals.ts +++ b/src/resources/Treasury/DebitReversals.ts @@ -92,7 +92,7 @@ export interface DebitReversal { /** * Other flows linked to a DebitReversal. */ - linked_flows: Treasury.DebitReversal.LinkedFlows | null; + linked_flows: DebitReversal.LinkedFlows | null; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -107,7 +107,7 @@ export interface DebitReversal { /** * The rails used to reverse the funds. */ - network: Treasury.DebitReversal.Network; + network: DebitReversal.Network; /** * The ReceivedDebit being reversed. @@ -117,34 +117,32 @@ export interface DebitReversal { /** * Status of the DebitReversal */ - status: Treasury.DebitReversal.Status; + status: DebitReversal.Status; - status_transitions: Treasury.DebitReversal.StatusTransitions; + status_transitions: DebitReversal.StatusTransitions; /** * The Transaction associated with this object. */ transaction: string | Transaction | null; } -export namespace Treasury { - export namespace DebitReversal { - export interface LinkedFlows { - /** - * Set if there is an Issuing dispute associated with the DebitReversal. - */ - issuing_dispute: string | null; - } - - export type Network = 'ach' | 'card'; - - export type Status = 'failed' | 'processing' | 'succeeded'; - - export interface StatusTransitions { - /** - * Timestamp describing when the DebitReversal changed status to `completed`. - */ - completed_at: number | null; - } +export namespace DebitReversal { + export interface LinkedFlows { + /** + * Set if there is an Issuing dispute associated with the DebitReversal. + */ + issuing_dispute: string | null; + } + + export type Network = 'ach' | 'card'; + + export type Status = 'failed' | 'processing' | 'succeeded'; + + export interface StatusTransitions { + /** + * Timestamp describing when the DebitReversal changed status to `completed`. + */ + completed_at: number | null; } } export namespace Treasury { diff --git a/src/resources/Treasury/FinancialAccountFeatures.ts b/src/resources/Treasury/FinancialAccountFeatures.ts index 679da6d2aa..564c7b29ac 100644 --- a/src/resources/Treasury/FinancialAccountFeatures.ts +++ b/src/resources/Treasury/FinancialAccountFeatures.ts @@ -10,89 +10,217 @@ export interface FinancialAccountFeatures { /** * Toggle settings for enabling/disabling a feature */ - card_issuing?: Treasury.FinancialAccountFeatures.CardIssuing; + card_issuing?: FinancialAccountFeatures.CardIssuing; /** * Toggle settings for enabling/disabling a feature */ - deposit_insurance?: Treasury.FinancialAccountFeatures.DepositInsurance; + deposit_insurance?: FinancialAccountFeatures.DepositInsurance; /** * Settings related to Financial Addresses features on a Financial Account */ - financial_addresses?: Treasury.FinancialAccountFeatures.FinancialAddresses; + financial_addresses?: FinancialAccountFeatures.FinancialAddresses; /** * InboundTransfers contains inbound transfers features for a FinancialAccount. */ - inbound_transfers?: Treasury.FinancialAccountFeatures.InboundTransfers; + inbound_transfers?: FinancialAccountFeatures.InboundTransfers; /** * Toggle settings for enabling/disabling a feature */ - intra_stripe_flows?: Treasury.FinancialAccountFeatures.IntraStripeFlows; + intra_stripe_flows?: FinancialAccountFeatures.IntraStripeFlows; /** * Settings related to Outbound Payments features on a Financial Account */ - outbound_payments?: Treasury.FinancialAccountFeatures.OutboundPayments; + outbound_payments?: FinancialAccountFeatures.OutboundPayments; /** * OutboundTransfers contains outbound transfers features for a FinancialAccount. */ - outbound_transfers?: Treasury.FinancialAccountFeatures.OutboundTransfers; + outbound_transfers?: FinancialAccountFeatures.OutboundTransfers; } -export namespace Treasury { - export namespace FinancialAccountFeatures { - export interface CardIssuing { +export namespace FinancialAccountFeatures { + export interface CardIssuing { + /** + * Whether the FinancialAccount should have the Feature. + */ + requested: boolean; + + /** + * Whether the Feature is operational. + */ + status: CardIssuing.Status; + + /** + * Additional details; includes at least one entry when the status is not `active`. + */ + status_details: Array; + } + + export interface DepositInsurance { + /** + * Whether the FinancialAccount should have the Feature. + */ + requested: boolean; + + /** + * Whether the Feature is operational. + */ + status: DepositInsurance.Status; + + /** + * Additional details; includes at least one entry when the status is not `active`. + */ + status_details: Array; + } + + export interface FinancialAddresses { + /** + * Toggle settings for enabling/disabling the ABA address feature + */ + aba?: FinancialAddresses.Aba; + } + + export interface InboundTransfers { + /** + * Toggle settings for enabling/disabling an inbound ACH specific feature + */ + ach?: InboundTransfers.Ach; + } + + export interface IntraStripeFlows { + /** + * Whether the FinancialAccount should have the Feature. + */ + requested: boolean; + + /** + * Whether the Feature is operational. + */ + status: IntraStripeFlows.Status; + + /** + * Additional details; includes at least one entry when the status is not `active`. + */ + status_details: Array; + } + + export interface OutboundPayments { + /** + * Toggle settings for enabling/disabling an outbound ACH specific feature + */ + ach?: OutboundPayments.Ach; + + /** + * Toggle settings for enabling/disabling a feature + */ + us_domestic_wire?: OutboundPayments.UsDomesticWire; + } + + export interface OutboundTransfers { + /** + * Toggle settings for enabling/disabling an outbound ACH specific feature + */ + ach?: OutboundTransfers.Ach; + + /** + * Toggle settings for enabling/disabling a feature + */ + us_domestic_wire?: OutboundTransfers.UsDomesticWire; + } + + export namespace CardIssuing { + export type Status = 'active' | 'pending' | 'restricted'; + + export interface StatusDetail { /** - * Whether the FinancialAccount should have the Feature. + * Represents the reason why the status is `pending` or `restricted`. */ - requested: boolean; + code: StatusDetail.Code; /** - * Whether the Feature is operational. + * Represents what the user should do, if anything, to activate the Feature. */ - status: CardIssuing.Status; + resolution: StatusDetail.Resolution | null; /** - * Additional details; includes at least one entry when the status is not `active`. + * The `platform_restrictions` that are restricting this Feature. */ - status_details: Array; + restriction?: StatusDetail.Restriction; + } + + export namespace StatusDetail { + export type Code = + | 'activating' + | 'capability_not_requested' + | 'financial_account_closed' + | 'rejected_other' + | 'rejected_unsupported_business' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_by_platform' + | 'restricted_other'; + + export type Resolution = + | 'contact_stripe' + | 'provide_information' + | 'remove_restriction'; + + export type Restriction = 'inbound_flows' | 'outbound_flows'; } + } - export interface DepositInsurance { + export namespace DepositInsurance { + export type Status = 'active' | 'pending' | 'restricted'; + + export interface StatusDetail { /** - * Whether the FinancialAccount should have the Feature. + * Represents the reason why the status is `pending` or `restricted`. */ - requested: boolean; + code: StatusDetail.Code; /** - * Whether the Feature is operational. + * Represents what the user should do, if anything, to activate the Feature. */ - status: DepositInsurance.Status; + resolution: StatusDetail.Resolution | null; /** - * Additional details; includes at least one entry when the status is not `active`. + * The `platform_restrictions` that are restricting this Feature. */ - status_details: Array; + restriction?: StatusDetail.Restriction; } - export interface FinancialAddresses { - /** - * Toggle settings for enabling/disabling the ABA address feature - */ - aba?: FinancialAddresses.Aba; + export namespace StatusDetail { + export type Code = + | 'activating' + | 'capability_not_requested' + | 'financial_account_closed' + | 'rejected_other' + | 'rejected_unsupported_business' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_by_platform' + | 'restricted_other'; + + export type Resolution = + | 'contact_stripe' + | 'provide_information' + | 'remove_restriction'; + + export type Restriction = 'inbound_flows' | 'outbound_flows'; } + } - export interface InboundTransfers { + export namespace FinancialAddresses { + export interface Aba { /** - * Toggle settings for enabling/disabling an inbound ACH specific feature + * Requested bank partner for this Financial Account */ - ach?: InboundTransfers.Ach; - } + bank?: Aba.Bank; - export interface IntraStripeFlows { /** * Whether the FinancialAccount should have the Feature. */ @@ -101,39 +229,17 @@ export namespace Treasury { /** * Whether the Feature is operational. */ - status: IntraStripeFlows.Status; + status: Aba.Status; /** * Additional details; includes at least one entry when the status is not `active`. */ - status_details: Array; - } - - export interface OutboundPayments { - /** - * Toggle settings for enabling/disabling an outbound ACH specific feature - */ - ach?: OutboundPayments.Ach; - - /** - * Toggle settings for enabling/disabling a feature - */ - us_domestic_wire?: OutboundPayments.UsDomesticWire; + status_details: Array; } - export interface OutboundTransfers { - /** - * Toggle settings for enabling/disabling an outbound ACH specific feature - */ - ach?: OutboundTransfers.Ach; - - /** - * Toggle settings for enabling/disabling a feature - */ - us_domestic_wire?: OutboundTransfers.UsDomesticWire; - } + export namespace Aba { + export type Bank = 'evolve' | 'fifth_third' | 'goldman_sachs'; - export namespace CardIssuing { export type Status = 'active' | 'pending' | 'restricted'; export interface StatusDetail { @@ -173,8 +279,27 @@ export namespace Treasury { export type Restriction = 'inbound_flows' | 'outbound_flows'; } } + } + + export namespace InboundTransfers { + export interface Ach { + /** + * Whether the FinancialAccount should have the Feature. + */ + requested: boolean; + + /** + * Whether the Feature is operational. + */ + status: Ach.Status; + + /** + * Additional details; includes at least one entry when the status is not `active`. + */ + status_details: Array; + } - export namespace DepositInsurance { + export namespace Ach { export type Status = 'active' | 'pending' | 'restricted'; export interface StatusDetail { @@ -214,135 +339,85 @@ export namespace Treasury { export type Restriction = 'inbound_flows' | 'outbound_flows'; } } + } - export namespace FinancialAddresses { - export interface Aba { - /** - * Requested bank partner for this Financial Account - */ - bank?: Aba.Bank; + export namespace IntraStripeFlows { + export type Status = 'active' | 'pending' | 'restricted'; - /** - * Whether the FinancialAccount should have the Feature. - */ - requested: boolean; + export interface StatusDetail { + /** + * Represents the reason why the status is `pending` or `restricted`. + */ + code: StatusDetail.Code; - /** - * Whether the Feature is operational. - */ - status: Aba.Status; + /** + * Represents what the user should do, if anything, to activate the Feature. + */ + resolution: StatusDetail.Resolution | null; - /** - * Additional details; includes at least one entry when the status is not `active`. - */ - status_details: Array; - } + /** + * The `platform_restrictions` that are restricting this Feature. + */ + restriction?: StatusDetail.Restriction; + } - export namespace Aba { - export type Bank = 'evolve' | 'fifth_third' | 'goldman_sachs'; - - export type Status = 'active' | 'pending' | 'restricted'; - - export interface StatusDetail { - /** - * Represents the reason why the status is `pending` or `restricted`. - */ - code: StatusDetail.Code; - - /** - * Represents what the user should do, if anything, to activate the Feature. - */ - resolution: StatusDetail.Resolution | null; - - /** - * The `platform_restrictions` that are restricting this Feature. - */ - restriction?: StatusDetail.Restriction; - } - - export namespace StatusDetail { - export type Code = - | 'activating' - | 'capability_not_requested' - | 'financial_account_closed' - | 'rejected_other' - | 'rejected_unsupported_business' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_by_platform' - | 'restricted_other'; - - export type Resolution = - | 'contact_stripe' - | 'provide_information' - | 'remove_restriction'; - - export type Restriction = 'inbound_flows' | 'outbound_flows'; - } - } + export namespace StatusDetail { + export type Code = + | 'activating' + | 'capability_not_requested' + | 'financial_account_closed' + | 'rejected_other' + | 'rejected_unsupported_business' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_by_platform' + | 'restricted_other'; + + export type Resolution = + | 'contact_stripe' + | 'provide_information' + | 'remove_restriction'; + + export type Restriction = 'inbound_flows' | 'outbound_flows'; } + } - export namespace InboundTransfers { - export interface Ach { - /** - * Whether the FinancialAccount should have the Feature. - */ - requested: boolean; + export namespace OutboundPayments { + export interface Ach { + /** + * Whether the FinancialAccount should have the Feature. + */ + requested: boolean; - /** - * Whether the Feature is operational. - */ - status: Ach.Status; + /** + * Whether the Feature is operational. + */ + status: Ach.Status; - /** - * Additional details; includes at least one entry when the status is not `active`. - */ - status_details: Array; - } + /** + * Additional details; includes at least one entry when the status is not `active`. + */ + status_details: Array; + } - export namespace Ach { - export type Status = 'active' | 'pending' | 'restricted'; - - export interface StatusDetail { - /** - * Represents the reason why the status is `pending` or `restricted`. - */ - code: StatusDetail.Code; - - /** - * Represents what the user should do, if anything, to activate the Feature. - */ - resolution: StatusDetail.Resolution | null; - - /** - * The `platform_restrictions` that are restricting this Feature. - */ - restriction?: StatusDetail.Restriction; - } - - export namespace StatusDetail { - export type Code = - | 'activating' - | 'capability_not_requested' - | 'financial_account_closed' - | 'rejected_other' - | 'rejected_unsupported_business' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_by_platform' - | 'restricted_other'; - - export type Resolution = - | 'contact_stripe' - | 'provide_information' - | 'remove_restriction'; - - export type Restriction = 'inbound_flows' | 'outbound_flows'; - } - } + export interface UsDomesticWire { + /** + * Whether the FinancialAccount should have the Feature. + */ + requested: boolean; + + /** + * Whether the Feature is operational. + */ + status: UsDomesticWire.Status; + + /** + * Additional details; includes at least one entry when the status is not `active`. + */ + status_details: Array; } - export namespace IntraStripeFlows { + export namespace Ach { export type Status = 'active' | 'pending' | 'restricted'; export interface StatusDetail { @@ -383,239 +458,162 @@ export namespace Treasury { } } - export namespace OutboundPayments { - export interface Ach { + export namespace UsDomesticWire { + export type Status = 'active' | 'pending' | 'restricted'; + + export interface StatusDetail { /** - * Whether the FinancialAccount should have the Feature. + * Represents the reason why the status is `pending` or `restricted`. */ - requested: boolean; + code: StatusDetail.Code; /** - * Whether the Feature is operational. + * Represents what the user should do, if anything, to activate the Feature. */ - status: Ach.Status; + resolution: StatusDetail.Resolution | null; /** - * Additional details; includes at least one entry when the status is not `active`. + * The `platform_restrictions` that are restricting this Feature. */ - status_details: Array; + restriction?: StatusDetail.Restriction; } - export interface UsDomesticWire { - /** - * Whether the FinancialAccount should have the Feature. - */ - requested: boolean; + export namespace StatusDetail { + export type Code = + | 'activating' + | 'capability_not_requested' + | 'financial_account_closed' + | 'rejected_other' + | 'rejected_unsupported_business' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_by_platform' + | 'restricted_other'; - /** - * Whether the Feature is operational. - */ - status: UsDomesticWire.Status; + export type Resolution = + | 'contact_stripe' + | 'provide_information' + | 'remove_restriction'; - /** - * Additional details; includes at least one entry when the status is not `active`. - */ - status_details: Array; + export type Restriction = 'inbound_flows' | 'outbound_flows'; } + } + } - export namespace Ach { - export type Status = 'active' | 'pending' | 'restricted'; - - export interface StatusDetail { - /** - * Represents the reason why the status is `pending` or `restricted`. - */ - code: StatusDetail.Code; - - /** - * Represents what the user should do, if anything, to activate the Feature. - */ - resolution: StatusDetail.Resolution | null; - - /** - * The `platform_restrictions` that are restricting this Feature. - */ - restriction?: StatusDetail.Restriction; - } - - export namespace StatusDetail { - export type Code = - | 'activating' - | 'capability_not_requested' - | 'financial_account_closed' - | 'rejected_other' - | 'rejected_unsupported_business' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_by_platform' - | 'restricted_other'; - - export type Resolution = - | 'contact_stripe' - | 'provide_information' - | 'remove_restriction'; - - export type Restriction = 'inbound_flows' | 'outbound_flows'; - } - } + export namespace OutboundTransfers { + export interface Ach { + /** + * Whether the FinancialAccount should have the Feature. + */ + requested: boolean; - export namespace UsDomesticWire { - export type Status = 'active' | 'pending' | 'restricted'; - - export interface StatusDetail { - /** - * Represents the reason why the status is `pending` or `restricted`. - */ - code: StatusDetail.Code; - - /** - * Represents what the user should do, if anything, to activate the Feature. - */ - resolution: StatusDetail.Resolution | null; - - /** - * The `platform_restrictions` that are restricting this Feature. - */ - restriction?: StatusDetail.Restriction; - } - - export namespace StatusDetail { - export type Code = - | 'activating' - | 'capability_not_requested' - | 'financial_account_closed' - | 'rejected_other' - | 'rejected_unsupported_business' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_by_platform' - | 'restricted_other'; - - export type Resolution = - | 'contact_stripe' - | 'provide_information' - | 'remove_restriction'; - - export type Restriction = 'inbound_flows' | 'outbound_flows'; - } - } + /** + * Whether the Feature is operational. + */ + status: Ach.Status; + + /** + * Additional details; includes at least one entry when the status is not `active`. + */ + status_details: Array; + } + + export interface UsDomesticWire { + /** + * Whether the FinancialAccount should have the Feature. + */ + requested: boolean; + + /** + * Whether the Feature is operational. + */ + status: UsDomesticWire.Status; + + /** + * Additional details; includes at least one entry when the status is not `active`. + */ + status_details: Array; } - export namespace OutboundTransfers { - export interface Ach { + export namespace Ach { + export type Status = 'active' | 'pending' | 'restricted'; + + export interface StatusDetail { /** - * Whether the FinancialAccount should have the Feature. + * Represents the reason why the status is `pending` or `restricted`. */ - requested: boolean; + code: StatusDetail.Code; /** - * Whether the Feature is operational. + * Represents what the user should do, if anything, to activate the Feature. */ - status: Ach.Status; + resolution: StatusDetail.Resolution | null; /** - * Additional details; includes at least one entry when the status is not `active`. + * The `platform_restrictions` that are restricting this Feature. */ - status_details: Array; + restriction?: StatusDetail.Restriction; } - export interface UsDomesticWire { + export namespace StatusDetail { + export type Code = + | 'activating' + | 'capability_not_requested' + | 'financial_account_closed' + | 'rejected_other' + | 'rejected_unsupported_business' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_by_platform' + | 'restricted_other'; + + export type Resolution = + | 'contact_stripe' + | 'provide_information' + | 'remove_restriction'; + + export type Restriction = 'inbound_flows' | 'outbound_flows'; + } + } + + export namespace UsDomesticWire { + export type Status = 'active' | 'pending' | 'restricted'; + + export interface StatusDetail { /** - * Whether the FinancialAccount should have the Feature. + * Represents the reason why the status is `pending` or `restricted`. */ - requested: boolean; + code: StatusDetail.Code; /** - * Whether the Feature is operational. + * Represents what the user should do, if anything, to activate the Feature. */ - status: UsDomesticWire.Status; + resolution: StatusDetail.Resolution | null; /** - * Additional details; includes at least one entry when the status is not `active`. + * The `platform_restrictions` that are restricting this Feature. */ - status_details: Array; + restriction?: StatusDetail.Restriction; } - export namespace Ach { - export type Status = 'active' | 'pending' | 'restricted'; - - export interface StatusDetail { - /** - * Represents the reason why the status is `pending` or `restricted`. - */ - code: StatusDetail.Code; - - /** - * Represents what the user should do, if anything, to activate the Feature. - */ - resolution: StatusDetail.Resolution | null; - - /** - * The `platform_restrictions` that are restricting this Feature. - */ - restriction?: StatusDetail.Restriction; - } - - export namespace StatusDetail { - export type Code = - | 'activating' - | 'capability_not_requested' - | 'financial_account_closed' - | 'rejected_other' - | 'rejected_unsupported_business' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_by_platform' - | 'restricted_other'; - - export type Resolution = - | 'contact_stripe' - | 'provide_information' - | 'remove_restriction'; - - export type Restriction = 'inbound_flows' | 'outbound_flows'; - } - } + export namespace StatusDetail { + export type Code = + | 'activating' + | 'capability_not_requested' + | 'financial_account_closed' + | 'rejected_other' + | 'rejected_unsupported_business' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_by_platform' + | 'restricted_other'; - export namespace UsDomesticWire { - export type Status = 'active' | 'pending' | 'restricted'; - - export interface StatusDetail { - /** - * Represents the reason why the status is `pending` or `restricted`. - */ - code: StatusDetail.Code; - - /** - * Represents what the user should do, if anything, to activate the Feature. - */ - resolution: StatusDetail.Resolution | null; - - /** - * The `platform_restrictions` that are restricting this Feature. - */ - restriction?: StatusDetail.Restriction; - } - - export namespace StatusDetail { - export type Code = - | 'activating' - | 'capability_not_requested' - | 'financial_account_closed' - | 'rejected_other' - | 'rejected_unsupported_business' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_by_platform' - | 'restricted_other'; - - export type Resolution = - | 'contact_stripe' - | 'provide_information' - | 'remove_restriction'; - - export type Restriction = 'inbound_flows' | 'outbound_flows'; - } + export type Resolution = + | 'contact_stripe' + | 'provide_information' + | 'remove_restriction'; + + export type Restriction = 'inbound_flows' | 'outbound_flows'; } } } diff --git a/src/resources/Treasury/FinancialAccounts.ts b/src/resources/Treasury/FinancialAccounts.ts index bde27d3ce6..aded04c7e4 100644 --- a/src/resources/Treasury/FinancialAccounts.ts +++ b/src/resources/Treasury/FinancialAccounts.ts @@ -133,12 +133,12 @@ export interface FinancialAccount { /** * The array of paths to active Features in the Features hash. */ - active_features?: Array; + active_features?: Array; /** * Balance information for the FinancialAccount */ - balance: Treasury.FinancialAccount.Balance; + balance: FinancialAccount.Balance; /** * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). @@ -164,7 +164,7 @@ export interface FinancialAccount { /** * The set of credentials that resolve to a FinancialAccount. */ - financial_addresses: Array; + financial_addresses: Array; is_default?: boolean; @@ -186,183 +186,178 @@ export interface FinancialAccount { /** * The array of paths to pending Features in the Features hash. */ - pending_features?: Array; + pending_features?: Array; /** * The set of functionalities that the platform can restrict on the FinancialAccount. */ - platform_restrictions?: Treasury.FinancialAccount.PlatformRestrictions | null; + platform_restrictions?: FinancialAccount.PlatformRestrictions | null; /** * The array of paths to restricted Features in the Features hash. */ - restricted_features?: Array; + restricted_features?: Array; /** * Status of this FinancialAccount. */ - status: Treasury.FinancialAccount.Status; + status: FinancialAccount.Status; - status_details: Treasury.FinancialAccount.StatusDetails; + status_details: FinancialAccount.StatusDetails; /** * The currencies the FinancialAccount can hold a balance in. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. */ supported_currencies: Array; } -export namespace Treasury { - export namespace FinancialAccount { - export type ActiveFeature = - | 'card_issuing' - | 'deposit_insurance' - | 'financial_addresses.aba' - | 'financial_addresses.aba.forwarding' - | 'inbound_transfers.ach' - | 'intra_stripe_flows' - | 'outbound_payments.ach' - | 'outbound_payments.us_domestic_wire' - | 'outbound_transfers.ach' - | 'outbound_transfers.us_domestic_wire' - | 'remote_deposit_capture'; - - export interface Balance { - /** - * Funds the user can spend right now. - */ - cash: { - [key: string]: number; - }; +export namespace FinancialAccount { + export type ActiveFeature = + | 'card_issuing' + | 'deposit_insurance' + | 'financial_addresses.aba' + | 'financial_addresses.aba.forwarding' + | 'inbound_transfers.ach' + | 'intra_stripe_flows' + | 'outbound_payments.ach' + | 'outbound_payments.us_domestic_wire' + | 'outbound_transfers.ach' + | 'outbound_transfers.us_domestic_wire' + | 'remote_deposit_capture'; + + export interface Balance { + /** + * Funds the user can spend right now. + */ + cash: { + [key: string]: number; + }; - /** - * Funds not spendable yet, but will become available at a later time. - */ - inbound_pending: { - [key: string]: number; - }; + /** + * Funds not spendable yet, but will become available at a later time. + */ + inbound_pending: { + [key: string]: number; + }; - /** - * Funds in the account, but not spendable because they are being held for pending outbound flows. - */ - outbound_pending: { - [key: string]: number; - }; - } + /** + * Funds in the account, but not spendable because they are being held for pending outbound flows. + */ + outbound_pending: { + [key: string]: number; + }; + } - export interface FinancialAddress { - /** - * ABA Records contain U.S. bank account details per the ABA format. - */ - aba?: FinancialAddress.Aba; + export interface FinancialAddress { + /** + * ABA Records contain U.S. bank account details per the ABA format. + */ + aba?: FinancialAddress.Aba; + /** + * The list of networks that the address supports + */ + supported_networks?: Array; + + /** + * The type of financial address + */ + type: 'aba'; + } + + export type PendingFeature = + | 'card_issuing' + | 'deposit_insurance' + | 'financial_addresses.aba' + | 'financial_addresses.aba.forwarding' + | 'inbound_transfers.ach' + | 'intra_stripe_flows' + | 'outbound_payments.ach' + | 'outbound_payments.us_domestic_wire' + | 'outbound_transfers.ach' + | 'outbound_transfers.us_domestic_wire' + | 'remote_deposit_capture'; + + export interface PlatformRestrictions { + /** + * Restricts all inbound money movement. + */ + inbound_flows: PlatformRestrictions.InboundFlows | null; + + /** + * Restricts all outbound money movement. + */ + outbound_flows: PlatformRestrictions.OutboundFlows | null; + } + + export type RestrictedFeature = + | 'card_issuing' + | 'deposit_insurance' + | 'financial_addresses.aba' + | 'financial_addresses.aba.forwarding' + | 'inbound_transfers.ach' + | 'intra_stripe_flows' + | 'outbound_payments.ach' + | 'outbound_payments.us_domestic_wire' + | 'outbound_transfers.ach' + | 'outbound_transfers.us_domestic_wire' + | 'remote_deposit_capture'; + + export type Status = 'closed' | 'open'; + + export interface StatusDetails { + /** + * Details related to the closure of this FinancialAccount + */ + closed: StatusDetails.Closed | null; + } + + export namespace FinancialAddress { + export interface Aba { /** - * The list of networks that the address supports + * The name of the person or business that owns the bank account. */ - supported_networks?: Array; + account_holder_name: string; /** - * The type of financial address + * The account number. */ - type: 'aba'; - } + account_number?: string | null; - export type PendingFeature = - | 'card_issuing' - | 'deposit_insurance' - | 'financial_addresses.aba' - | 'financial_addresses.aba.forwarding' - | 'inbound_transfers.ach' - | 'intra_stripe_flows' - | 'outbound_payments.ach' - | 'outbound_payments.us_domestic_wire' - | 'outbound_transfers.ach' - | 'outbound_transfers.us_domestic_wire' - | 'remote_deposit_capture'; - - export interface PlatformRestrictions { /** - * Restricts all inbound money movement. + * The last four characters of the account number. */ - inbound_flows: PlatformRestrictions.InboundFlows | null; + account_number_last4: string; /** - * Restricts all outbound money movement. + * Name of the bank. */ - outbound_flows: PlatformRestrictions.OutboundFlows | null; - } + bank_name: string; - export type RestrictedFeature = - | 'card_issuing' - | 'deposit_insurance' - | 'financial_addresses.aba' - | 'financial_addresses.aba.forwarding' - | 'inbound_transfers.ach' - | 'intra_stripe_flows' - | 'outbound_payments.ach' - | 'outbound_payments.us_domestic_wire' - | 'outbound_transfers.ach' - | 'outbound_transfers.us_domestic_wire' - | 'remote_deposit_capture'; - - export type Status = 'closed' | 'open'; - - export interface StatusDetails { /** - * Details related to the closure of this FinancialAccount + * Routing number for the account. */ - closed: StatusDetails.Closed | null; + routing_number: string; } - export namespace FinancialAddress { - export interface Aba { - /** - * The name of the person or business that owns the bank account. - */ - account_holder_name: string; - - /** - * The account number. - */ - account_number?: string | null; - - /** - * The last four characters of the account number. - */ - account_number_last4: string; - - /** - * Name of the bank. - */ - bank_name: string; - - /** - * Routing number for the account. - */ - routing_number: string; - } + export type SupportedNetwork = 'ach' | 'us_domestic_wire'; + } - export type SupportedNetwork = 'ach' | 'us_domestic_wire'; - } + export namespace PlatformRestrictions { + export type InboundFlows = 'restricted' | 'unrestricted'; - export namespace PlatformRestrictions { - export type InboundFlows = 'restricted' | 'unrestricted'; + export type OutboundFlows = 'restricted' | 'unrestricted'; + } - export type OutboundFlows = 'restricted' | 'unrestricted'; + export namespace StatusDetails { + export interface Closed { + /** + * The array that contains reasons for a FinancialAccount closure. + */ + reasons: Array; } - export namespace StatusDetails { - export interface Closed { - /** - * The array that contains reasons for a FinancialAccount closure. - */ - reasons: Array; - } - - export namespace Closed { - export type Reason = - | 'account_rejected' - | 'closed_by_platform' - | 'other'; - } + export namespace Closed { + export type Reason = 'account_rejected' | 'closed_by_platform' | 'other'; } } } diff --git a/src/resources/Treasury/InboundTransfers.ts b/src/resources/Treasury/InboundTransfers.ts index cdc312e200..e8b38e5da4 100644 --- a/src/resources/Treasury/InboundTransfers.ts +++ b/src/resources/Treasury/InboundTransfers.ts @@ -113,7 +113,7 @@ export interface InboundTransfer { /** * Details about this InboundTransfer's failure. Only set when status is `failed`. */ - failure_details: Treasury.InboundTransfer.FailureDetails | null; + failure_details: InboundTransfer.FailureDetails | null; /** * The FinancialAccount that received the funds. @@ -125,7 +125,7 @@ export interface InboundTransfer { */ hosted_regulatory_receipt_url: string | null; - linked_flows: Treasury.InboundTransfer.LinkedFlows; + linked_flows: InboundTransfer.LinkedFlows; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -145,7 +145,7 @@ export interface InboundTransfer { /** * Details about the PaymentMethod for an InboundTransfer. */ - origin_payment_method_details: Treasury.InboundTransfer.OriginPaymentMethodDetails | null; + origin_payment_method_details: InboundTransfer.OriginPaymentMethodDetails | null; /** * Returns `true` if the funds for an InboundTransfer were returned after the InboundTransfer went to the `succeeded` state. @@ -160,140 +160,138 @@ export interface InboundTransfer { /** * Status of the InboundTransfer: `processing`, `succeeded`, `failed`, and `canceled`. An InboundTransfer is `processing` if it is created and pending. The status changes to `succeeded` once the funds have been "confirmed" and a `transaction` is created and posted. The status changes to `failed` if the transfer fails. */ - status: Treasury.InboundTransfer.Status; + status: InboundTransfer.Status; - status_transitions: Treasury.InboundTransfer.StatusTransitions; + status_transitions: InboundTransfer.StatusTransitions; /** * The Transaction associated with this object. */ transaction: string | Transaction | null; } -export namespace Treasury { - export namespace InboundTransfer { - export interface FailureDetails { +export namespace InboundTransfer { + export interface FailureDetails { + /** + * Reason for the failure. + */ + code: FailureDetails.Code; + } + + export interface LinkedFlows { + /** + * If funds for this flow were returned after the flow went to the `succeeded` state, this field contains a reference to the ReceivedDebit return. + */ + received_debit: string | null; + } + + export interface OriginPaymentMethodDetails { + billing_details: OriginPaymentMethodDetails.BillingDetails; + + /** + * The type of the payment method used in the InboundTransfer. + */ + type: 'us_bank_account'; + + us_bank_account?: OriginPaymentMethodDetails.UsBankAccount; + } + + export type Status = 'canceled' | 'failed' | 'processing' | 'succeeded'; + + export interface StatusTransitions { + /** + * Timestamp describing when an InboundTransfer changed status to `canceled`. + */ + canceled_at?: number | null; + + /** + * Timestamp describing when an InboundTransfer changed status to `failed`. + */ + failed_at: number | null; + + /** + * Timestamp describing when an InboundTransfer changed status to `succeeded`. + */ + succeeded_at: number | null; + } + + export namespace FailureDetails { + export type Code = + | 'account_closed' + | 'account_frozen' + | 'bank_account_restricted' + | 'bank_ownership_changed' + | 'debit_not_authorized' + | 'incorrect_account_holder_address' + | 'incorrect_account_holder_name' + | 'incorrect_account_holder_tax_id' + | 'insufficient_funds' + | 'invalid_account_number' + | 'invalid_currency' + | 'no_account' + | 'other'; + } + + export namespace OriginPaymentMethodDetails { + export interface BillingDetails { + address: Address; + /** - * Reason for the failure. + * Email address. */ - code: FailureDetails.Code; - } + email: string | null; - export interface LinkedFlows { /** - * If funds for this flow were returned after the flow went to the `succeeded` state, this field contains a reference to the ReceivedDebit return. + * Full name. */ - received_debit: string | null; + name: string | null; } - export interface OriginPaymentMethodDetails { - billing_details: OriginPaymentMethodDetails.BillingDetails; + export interface UsBankAccount { + /** + * Account holder type: individual or company. + */ + account_holder_type: UsBankAccount.AccountHolderType | null; /** - * The type of the payment method used in the InboundTransfer. + * Account type: checkings or savings. Defaults to checking if omitted. */ - type: 'us_bank_account'; + account_type: UsBankAccount.AccountType | null; - us_bank_account?: OriginPaymentMethodDetails.UsBankAccount; - } + /** + * Name of the bank associated with the bank account. + */ + bank_name: string | null; - export type Status = 'canceled' | 'failed' | 'processing' | 'succeeded'; + /** + * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. + */ + fingerprint: string | null; - export interface StatusTransitions { /** - * Timestamp describing when an InboundTransfer changed status to `canceled`. + * Last four digits of the bank account number. */ - canceled_at?: number | null; + last4: string | null; /** - * Timestamp describing when an InboundTransfer changed status to `failed`. + * ID of the mandate used to make this payment. */ - failed_at: number | null; + mandate?: string | Mandate; /** - * Timestamp describing when an InboundTransfer changed status to `succeeded`. + * The network rails used. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. */ - succeeded_at: number | null; - } + network: 'ach'; - export namespace FailureDetails { - export type Code = - | 'account_closed' - | 'account_frozen' - | 'bank_account_restricted' - | 'bank_ownership_changed' - | 'debit_not_authorized' - | 'incorrect_account_holder_address' - | 'incorrect_account_holder_name' - | 'incorrect_account_holder_tax_id' - | 'insufficient_funds' - | 'invalid_account_number' - | 'invalid_currency' - | 'no_account' - | 'other'; + /** + * Routing number of the bank account. + */ + routing_number: string | null; } - export namespace OriginPaymentMethodDetails { - export interface BillingDetails { - address: Address; - - /** - * Email address. - */ - email: string | null; + export namespace UsBankAccount { + export type AccountHolderType = 'company' | 'individual'; - /** - * Full name. - */ - name: string | null; - } - - export interface UsBankAccount { - /** - * Account holder type: individual or company. - */ - account_holder_type: UsBankAccount.AccountHolderType | null; - - /** - * Account type: checkings or savings. Defaults to checking if omitted. - */ - account_type: UsBankAccount.AccountType | null; - - /** - * Name of the bank associated with the bank account. - */ - bank_name: string | null; - - /** - * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. - */ - fingerprint: string | null; - - /** - * Last four digits of the bank account number. - */ - last4: string | null; - - /** - * ID of the mandate used to make this payment. - */ - mandate?: string | Mandate; - - /** - * The network rails used. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. - */ - network: 'ach'; - - /** - * Routing number of the bank account. - */ - routing_number: string | null; - } - - export namespace UsBankAccount { - export type AccountHolderType = 'company' | 'individual'; - - export type AccountType = 'checking' | 'savings'; - } + export type AccountType = 'checking' | 'savings'; } } } diff --git a/src/resources/Treasury/OutboundPayments.ts b/src/resources/Treasury/OutboundPayments.ts index 98327ff633..8a2fbe5ee2 100644 --- a/src/resources/Treasury/OutboundPayments.ts +++ b/src/resources/Treasury/OutboundPayments.ts @@ -126,12 +126,12 @@ export interface OutboundPayment { /** * Details about the PaymentMethod for an OutboundPayment. */ - destination_payment_method_details: Treasury.OutboundPayment.DestinationPaymentMethodDetails | null; + destination_payment_method_details: OutboundPayment.DestinationPaymentMethodDetails | null; /** * Details about the end user. */ - end_user_details: Treasury.OutboundPayment.EndUserDetails | null; + end_user_details: OutboundPayment.EndUserDetails | null; /** * The date when funds are expected to arrive in the destination account. @@ -166,7 +166,7 @@ export interface OutboundPayment { /** * Details about a returned OutboundPayment. Only set when the status is `returned`. */ - returned_details: Treasury.OutboundPayment.ReturnedDetails | null; + returned_details: OutboundPayment.ReturnedDetails | null; /** * The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer). @@ -176,219 +176,217 @@ export interface OutboundPayment { /** * Current status of the OutboundPayment: `processing`, `failed`, `posted`, `returned`, `canceled`. An OutboundPayment is `processing` if it has been created and is pending. The status changes to `posted` once the OutboundPayment has been "confirmed" and funds have left the account, or to `failed` or `canceled`. If an OutboundPayment fails to arrive at its destination, its status will change to `returned`. */ - status: Treasury.OutboundPayment.Status; + status: OutboundPayment.Status; - status_transitions: Treasury.OutboundPayment.StatusTransitions; + status_transitions: OutboundPayment.StatusTransitions; /** * Details about network-specific tracking information if available. */ - tracking_details: Treasury.OutboundPayment.TrackingDetails | null; + tracking_details: OutboundPayment.TrackingDetails | null; /** * The Transaction associated with this object. */ transaction: string | Transaction; } -export namespace Treasury { - export namespace OutboundPayment { - export interface DestinationPaymentMethodDetails { - billing_details: DestinationPaymentMethodDetails.BillingDetails; +export namespace OutboundPayment { + export interface DestinationPaymentMethodDetails { + billing_details: DestinationPaymentMethodDetails.BillingDetails; - financial_account?: DestinationPaymentMethodDetails.FinancialAccount; + financial_account?: DestinationPaymentMethodDetails.FinancialAccount; - /** - * The type of the payment method used in the OutboundPayment. - */ - type: DestinationPaymentMethodDetails.Type; + /** + * The type of the payment method used in the OutboundPayment. + */ + type: DestinationPaymentMethodDetails.Type; - us_bank_account?: DestinationPaymentMethodDetails.UsBankAccount; - } + us_bank_account?: DestinationPaymentMethodDetails.UsBankAccount; + } + + export interface EndUserDetails { + /** + * IP address of the user initiating the OutboundPayment. Set if `present` is set to `true`. IP address collection is required for risk and compliance reasons. This will be used to help determine if the OutboundPayment is authorized or should be blocked. + */ + ip_address: string | null; + + /** + * `true` if the OutboundPayment creation request is being made on behalf of an end user by a platform. Otherwise, `false`. + */ + present: boolean; + } + + export interface ReturnedDetails { + /** + * Reason for the return. + */ + code: ReturnedDetails.Code; + + /** + * The Transaction associated with this object. + */ + transaction: string | Transaction; + } + + export type Status = + | 'canceled' + | 'failed' + | 'posted' + | 'processing' + | 'returned'; + + export interface StatusTransitions { + /** + * Timestamp describing when an OutboundPayment changed status to `canceled`. + */ + canceled_at: number | null; + + /** + * Timestamp describing when an OutboundPayment changed status to `failed`. + */ + failed_at: number | null; + + /** + * Timestamp describing when an OutboundPayment changed status to `posted`. + */ + posted_at: number | null; + + /** + * Timestamp describing when an OutboundPayment changed status to `returned`. + */ + returned_at: number | null; + } + + export interface TrackingDetails { + ach?: TrackingDetails.Ach; + + /** + * The US bank account network used to send funds. + */ + type: TrackingDetails.Type; + + us_domestic_wire?: TrackingDetails.UsDomesticWire; + } + + export namespace DestinationPaymentMethodDetails { + export interface BillingDetails { + address: Address; - export interface EndUserDetails { /** - * IP address of the user initiating the OutboundPayment. Set if `present` is set to `true`. IP address collection is required for risk and compliance reasons. This will be used to help determine if the OutboundPayment is authorized or should be blocked. + * Email address. */ - ip_address: string | null; + email: string | null; /** - * `true` if the OutboundPayment creation request is being made on behalf of an end user by a platform. Otherwise, `false`. + * Full name. */ - present: boolean; + name: string | null; } - export interface ReturnedDetails { + export interface FinancialAccount { /** - * Reason for the return. + * Token of the FinancialAccount. */ - code: ReturnedDetails.Code; + id: string; /** - * The Transaction associated with this object. + * The rails used to send funds. */ - transaction: string | Transaction; + network: 'stripe'; } - export type Status = - | 'canceled' - | 'failed' - | 'posted' - | 'processing' - | 'returned'; + export type Type = 'financial_account' | 'us_bank_account'; - export interface StatusTransitions { + export interface UsBankAccount { /** - * Timestamp describing when an OutboundPayment changed status to `canceled`. + * Account holder type: individual or company. */ - canceled_at: number | null; + account_holder_type: UsBankAccount.AccountHolderType | null; /** - * Timestamp describing when an OutboundPayment changed status to `failed`. + * Account type: checkings or savings. Defaults to checking if omitted. */ - failed_at: number | null; + account_type: UsBankAccount.AccountType | null; /** - * Timestamp describing when an OutboundPayment changed status to `posted`. + * Name of the bank associated with the bank account. */ - posted_at: number | null; + bank_name: string | null; /** - * Timestamp describing when an OutboundPayment changed status to `returned`. + * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. */ - returned_at: number | null; - } - - export interface TrackingDetails { - ach?: TrackingDetails.Ach; + fingerprint: string | null; /** - * The US bank account network used to send funds. + * Last four digits of the bank account number. */ - type: TrackingDetails.Type; - - us_domestic_wire?: TrackingDetails.UsDomesticWire; - } - - export namespace DestinationPaymentMethodDetails { - export interface BillingDetails { - address: Address; - - /** - * Email address. - */ - email: string | null; - - /** - * Full name. - */ - name: string | null; - } - - export interface FinancialAccount { - /** - * Token of the FinancialAccount. - */ - id: string; - - /** - * The rails used to send funds. - */ - network: 'stripe'; - } - - export type Type = 'financial_account' | 'us_bank_account'; - - export interface UsBankAccount { - /** - * Account holder type: individual or company. - */ - account_holder_type: UsBankAccount.AccountHolderType | null; - - /** - * Account type: checkings or savings. Defaults to checking if omitted. - */ - account_type: UsBankAccount.AccountType | null; - - /** - * Name of the bank associated with the bank account. - */ - bank_name: string | null; - - /** - * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. - */ - fingerprint: string | null; + last4: string | null; - /** - * Last four digits of the bank account number. - */ - last4: string | null; - - /** - * ID of the mandate used to make this payment. - */ - mandate?: string | Mandate; + /** + * ID of the mandate used to make this payment. + */ + mandate?: string | Mandate; - /** - * The network rails used. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. - */ - network: UsBankAccount.Network; + /** + * The network rails used. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. + */ + network: UsBankAccount.Network; - /** - * Routing number of the bank account. - */ - routing_number: string | null; - } + /** + * Routing number of the bank account. + */ + routing_number: string | null; + } - export namespace UsBankAccount { - export type AccountHolderType = 'company' | 'individual'; + export namespace UsBankAccount { + export type AccountHolderType = 'company' | 'individual'; - export type AccountType = 'checking' | 'savings'; + export type AccountType = 'checking' | 'savings'; - export type Network = 'ach' | 'us_domestic_wire'; - } + export type Network = 'ach' | 'us_domestic_wire'; } + } - export namespace ReturnedDetails { - export type Code = - | 'account_closed' - | 'account_frozen' - | 'bank_account_restricted' - | 'bank_ownership_changed' - | 'declined' - | 'incorrect_account_holder_name' - | 'invalid_account_number' - | 'invalid_currency' - | 'no_account' - | 'other'; - } + export namespace ReturnedDetails { + export type Code = + | 'account_closed' + | 'account_frozen' + | 'bank_account_restricted' + | 'bank_ownership_changed' + | 'declined' + | 'incorrect_account_holder_name' + | 'invalid_account_number' + | 'invalid_currency' + | 'no_account' + | 'other'; + } - export namespace TrackingDetails { - export interface Ach { - /** - * ACH trace ID of the OutboundPayment for payments sent over the `ach` network. - */ - trace_id: string; - } + export namespace TrackingDetails { + export interface Ach { + /** + * ACH trace ID of the OutboundPayment for payments sent over the `ach` network. + */ + trace_id: string; + } - export type Type = 'ach' | 'us_domestic_wire'; + export type Type = 'ach' | 'us_domestic_wire'; - export interface UsDomesticWire { - /** - * CHIPS System Sequence Number (SSN) of the OutboundPayment for payments sent over the `us_domestic_wire` network. - */ - chips: string | null; + export interface UsDomesticWire { + /** + * CHIPS System Sequence Number (SSN) of the OutboundPayment for payments sent over the `us_domestic_wire` network. + */ + chips: string | null; - /** - * IMAD of the OutboundPayment for payments sent over the `us_domestic_wire` network. - */ - imad: string | null; + /** + * IMAD of the OutboundPayment for payments sent over the `us_domestic_wire` network. + */ + imad: string | null; - /** - * OMAD of the OutboundPayment for payments sent over the `us_domestic_wire` network. - */ - omad: string | null; - } + /** + * OMAD of the OutboundPayment for payments sent over the `us_domestic_wire` network. + */ + omad: string | null; } } } diff --git a/src/resources/Treasury/OutboundTransfers.ts b/src/resources/Treasury/OutboundTransfers.ts index 06801c512f..0ea110a2e0 100644 --- a/src/resources/Treasury/OutboundTransfers.ts +++ b/src/resources/Treasury/OutboundTransfers.ts @@ -116,7 +116,7 @@ export interface OutboundTransfer { */ destination_payment_method: string | null; - destination_payment_method_details: Treasury.OutboundTransfer.DestinationPaymentMethodDetails; + destination_payment_method_details: OutboundTransfer.DestinationPaymentMethodDetails; /** * The date when funds are expected to arrive in the destination account. @@ -146,12 +146,12 @@ export interface OutboundTransfer { /** * Details about the network used for the OutboundTransfer. */ - network_details?: Treasury.OutboundTransfer.NetworkDetails | null; + network_details?: OutboundTransfer.NetworkDetails | null; /** * Details about a returned OutboundTransfer. Only set when the status is `returned`. */ - returned_details: Treasury.OutboundTransfer.ReturnedDetails | null; + returned_details: OutboundTransfer.ReturnedDetails | null; /** * Information about the OutboundTransfer to be sent to the recipient account. @@ -161,228 +161,226 @@ export interface OutboundTransfer { /** * Current status of the OutboundTransfer: `processing`, `failed`, `canceled`, `posted`, `returned`. An OutboundTransfer is `processing` if it has been created and is pending. The status changes to `posted` once the OutboundTransfer has been "confirmed" and funds have left the account, or to `failed` or `canceled`. If an OutboundTransfer fails to arrive at its destination, its status will change to `returned`. */ - status: Treasury.OutboundTransfer.Status; + status: OutboundTransfer.Status; - status_transitions: Treasury.OutboundTransfer.StatusTransitions; + status_transitions: OutboundTransfer.StatusTransitions; /** * Details about network-specific tracking information if available. */ - tracking_details: Treasury.OutboundTransfer.TrackingDetails | null; + tracking_details: OutboundTransfer.TrackingDetails | null; /** * The Transaction associated with this object. */ transaction: string | Transaction; } -export namespace Treasury { - export namespace OutboundTransfer { - export interface DestinationPaymentMethodDetails { - billing_details: DestinationPaymentMethodDetails.BillingDetails; +export namespace OutboundTransfer { + export interface DestinationPaymentMethodDetails { + billing_details: DestinationPaymentMethodDetails.BillingDetails; - financial_account?: DestinationPaymentMethodDetails.FinancialAccount; + financial_account?: DestinationPaymentMethodDetails.FinancialAccount; - /** - * The type of the payment method used in the OutboundTransfer. - */ - type: DestinationPaymentMethodDetails.Type; + /** + * The type of the payment method used in the OutboundTransfer. + */ + type: DestinationPaymentMethodDetails.Type; - us_bank_account?: DestinationPaymentMethodDetails.UsBankAccount; - } + us_bank_account?: DestinationPaymentMethodDetails.UsBankAccount; + } + + export interface NetworkDetails { + /** + * Details about an ACH transaction. + */ + ach?: NetworkDetails.Ach | null; + + /** + * The type of flow that originated the OutboundTransfer. + */ + type: 'ach'; + } + + export interface ReturnedDetails { + /** + * Reason for the return. + */ + code: ReturnedDetails.Code; + + /** + * The Transaction associated with this object. + */ + transaction: string | Transaction; + } + + export type Status = + | 'canceled' + | 'failed' + | 'posted' + | 'processing' + | 'returned'; + + export interface StatusTransitions { + /** + * Timestamp describing when an OutboundTransfer changed status to `canceled` + */ + canceled_at: number | null; + + /** + * Timestamp describing when an OutboundTransfer changed status to `failed` + */ + failed_at: number | null; + + /** + * Timestamp describing when an OutboundTransfer changed status to `posted` + */ + posted_at: number | null; + + /** + * Timestamp describing when an OutboundTransfer changed status to `returned` + */ + returned_at: number | null; + } + + export interface TrackingDetails { + ach?: TrackingDetails.Ach; + + /** + * The US bank account network used to send funds. + */ + type: TrackingDetails.Type; + + us_domestic_wire?: TrackingDetails.UsDomesticWire; + } + + export namespace DestinationPaymentMethodDetails { + export interface BillingDetails { + address: Address; - export interface NetworkDetails { /** - * Details about an ACH transaction. + * Email address. */ - ach?: NetworkDetails.Ach | null; + email: string | null; /** - * The type of flow that originated the OutboundTransfer. + * Full name. */ - type: 'ach'; + name: string | null; } - export interface ReturnedDetails { + export interface FinancialAccount { /** - * Reason for the return. + * Token of the FinancialAccount. */ - code: ReturnedDetails.Code; + id: string; /** - * The Transaction associated with this object. + * The rails used to send funds. */ - transaction: string | Transaction; + network: 'stripe'; } - export type Status = - | 'canceled' - | 'failed' - | 'posted' - | 'processing' - | 'returned'; + export type Type = 'financial_account' | 'us_bank_account'; - export interface StatusTransitions { + export interface UsBankAccount { /** - * Timestamp describing when an OutboundTransfer changed status to `canceled` + * Account holder type: individual or company. */ - canceled_at: number | null; + account_holder_type: UsBankAccount.AccountHolderType | null; /** - * Timestamp describing when an OutboundTransfer changed status to `failed` + * Account type: checkings or savings. Defaults to checking if omitted. */ - failed_at: number | null; + account_type: UsBankAccount.AccountType | null; /** - * Timestamp describing when an OutboundTransfer changed status to `posted` + * Name of the bank associated with the bank account. */ - posted_at: number | null; + bank_name: string | null; /** - * Timestamp describing when an OutboundTransfer changed status to `returned` + * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. */ - returned_at: number | null; - } - - export interface TrackingDetails { - ach?: TrackingDetails.Ach; + fingerprint: string | null; /** - * The US bank account network used to send funds. + * Last four digits of the bank account number. */ - type: TrackingDetails.Type; - - us_domestic_wire?: TrackingDetails.UsDomesticWire; - } - - export namespace DestinationPaymentMethodDetails { - export interface BillingDetails { - address: Address; + last4: string | null; - /** - * Email address. - */ - email: string | null; - - /** - * Full name. - */ - name: string | null; - } - - export interface FinancialAccount { - /** - * Token of the FinancialAccount. - */ - id: string; - - /** - * The rails used to send funds. - */ - network: 'stripe'; - } - - export type Type = 'financial_account' | 'us_bank_account'; - - export interface UsBankAccount { - /** - * Account holder type: individual or company. - */ - account_holder_type: UsBankAccount.AccountHolderType | null; - - /** - * Account type: checkings or savings. Defaults to checking if omitted. - */ - account_type: UsBankAccount.AccountType | null; - - /** - * Name of the bank associated with the bank account. - */ - bank_name: string | null; - - /** - * Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same. - */ - fingerprint: string | null; - - /** - * Last four digits of the bank account number. - */ - last4: string | null; - - /** - * ID of the mandate used to make this payment. - */ - mandate?: string | Mandate; + /** + * ID of the mandate used to make this payment. + */ + mandate?: string | Mandate; - /** - * The network rails used. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. - */ - network: UsBankAccount.Network; + /** + * The network rails used. See the [docs](https://docs.stripe.com/treasury/money-movement/timelines) to learn more about money movement timelines for each network type. + */ + network: UsBankAccount.Network; - /** - * Routing number of the bank account. - */ - routing_number: string | null; - } + /** + * Routing number of the bank account. + */ + routing_number: string | null; + } - export namespace UsBankAccount { - export type AccountHolderType = 'company' | 'individual'; + export namespace UsBankAccount { + export type AccountHolderType = 'company' | 'individual'; - export type AccountType = 'checking' | 'savings'; + export type AccountType = 'checking' | 'savings'; - export type Network = 'ach' | 'us_domestic_wire'; - } + export type Network = 'ach' | 'us_domestic_wire'; } + } - export namespace NetworkDetails { - export interface Ach { - /** - * ACH Addenda record - */ - addenda: string | null; - } + export namespace NetworkDetails { + export interface Ach { + /** + * ACH Addenda record + */ + addenda: string | null; } + } - export namespace ReturnedDetails { - export type Code = - | 'account_closed' - | 'account_frozen' - | 'bank_account_restricted' - | 'bank_ownership_changed' - | 'declined' - | 'incorrect_account_holder_name' - | 'invalid_account_number' - | 'invalid_currency' - | 'no_account' - | 'other'; - } + export namespace ReturnedDetails { + export type Code = + | 'account_closed' + | 'account_frozen' + | 'bank_account_restricted' + | 'bank_ownership_changed' + | 'declined' + | 'incorrect_account_holder_name' + | 'invalid_account_number' + | 'invalid_currency' + | 'no_account' + | 'other'; + } - export namespace TrackingDetails { - export interface Ach { - /** - * ACH trace ID of the OutboundTransfer for transfers sent over the `ach` network. - */ - trace_id: string; - } + export namespace TrackingDetails { + export interface Ach { + /** + * ACH trace ID of the OutboundTransfer for transfers sent over the `ach` network. + */ + trace_id: string; + } - export type Type = 'ach' | 'us_domestic_wire'; + export type Type = 'ach' | 'us_domestic_wire'; - export interface UsDomesticWire { - /** - * CHIPS System Sequence Number (SSN) of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. - */ - chips: string | null; + export interface UsDomesticWire { + /** + * CHIPS System Sequence Number (SSN) of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. + */ + chips: string | null; - /** - * IMAD of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. - */ - imad: string | null; + /** + * IMAD of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. + */ + imad: string | null; - /** - * OMAD of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. - */ - omad: string | null; - } + /** + * OMAD of the OutboundTransfer for transfers sent over the `us_domestic_wire` network. + */ + omad: string | null; } } } diff --git a/src/resources/Treasury/ReceivedCredits.ts b/src/resources/Treasury/ReceivedCredits.ts index 221217128f..812efda376 100644 --- a/src/resources/Treasury/ReceivedCredits.ts +++ b/src/resources/Treasury/ReceivedCredits.ts @@ -77,7 +77,7 @@ export interface ReceivedCredit { /** * Reason for the failure. A ReceivedCredit might fail because the receiving FinancialAccount is closed or frozen. */ - failure_code: Treasury.ReceivedCredit.FailureCode | null; + failure_code: ReceivedCredit.FailureCode | null; /** * The FinancialAccount that received the funds. @@ -89,9 +89,9 @@ export interface ReceivedCredit { */ hosted_regulatory_receipt_url: string | null; - initiating_payment_method_details: Treasury.ReceivedCredit.InitiatingPaymentMethodDetails; + initiating_payment_method_details: ReceivedCredit.InitiatingPaymentMethodDetails; - linked_flows: Treasury.ReceivedCredit.LinkedFlows; + linked_flows: ReceivedCredit.LinkedFlows; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -101,241 +101,239 @@ export interface ReceivedCredit { /** * The rails used to send the funds. */ - network: Treasury.ReceivedCredit.Network; + network: ReceivedCredit.Network; /** * Details specific to the money movement rails. */ - network_details?: Treasury.ReceivedCredit.NetworkDetails | null; + network_details?: ReceivedCredit.NetworkDetails | null; /** * Details describing when a ReceivedCredit may be reversed. */ - reversal_details: Treasury.ReceivedCredit.ReversalDetails | null; + reversal_details: ReceivedCredit.ReversalDetails | null; /** * Status of the ReceivedCredit. ReceivedCredits are created either `succeeded` (approved) or `failed` (declined). If a ReceivedCredit is declined, the failure reason can be found in the `failure_code` field. */ - status: Treasury.ReceivedCredit.Status; + status: ReceivedCredit.Status; /** * The Transaction associated with this object. */ transaction: string | Transaction | null; } -export namespace Treasury { - export namespace ReceivedCredit { - export type FailureCode = - | 'account_closed' - | 'account_frozen' - | 'international_transaction' - | 'other'; - - export interface InitiatingPaymentMethodDetails { - /** - * Set when `type` is `balance`. - */ - balance?: 'payments'; +export namespace ReceivedCredit { + export type FailureCode = + | 'account_closed' + | 'account_frozen' + | 'international_transaction' + | 'other'; + + export interface InitiatingPaymentMethodDetails { + /** + * Set when `type` is `balance`. + */ + balance?: 'payments'; + + billing_details: InitiatingPaymentMethodDetails.BillingDetails; + + financial_account?: InitiatingPaymentMethodDetails.FinancialAccount; + + /** + * Set when `type` is `issuing_card`. This is an [Issuing Card](https://api.stripe.com#issuing_cards) ID. + */ + issuing_card?: string; + + /** + * Polymorphic type matching the originating money movement's source. This can be an external account, a Stripe balance, or a FinancialAccount. + */ + type: InitiatingPaymentMethodDetails.Type; + + us_bank_account?: InitiatingPaymentMethodDetails.UsBankAccount; + } + + export interface LinkedFlows { + /** + * The CreditReversal created as a result of this ReceivedCredit being reversed. + */ + credit_reversal: string | null; + + /** + * Set if the ReceivedCredit was created due to an [Issuing Authorization](https://api.stripe.com#issuing_authorizations) object. + */ + issuing_authorization: string | null; + + /** + * Set if the ReceivedCredit is also viewable as an [Issuing transaction](https://api.stripe.com#issuing_transactions) object. + */ + issuing_transaction: string | null; + + /** + * ID of the source flow. Set if `network` is `stripe` and the source flow is visible to the user. Examples of source flows include OutboundPayments, payouts, or CreditReversals. + */ + source_flow: string | null; + + /** + * The expandable object of the source flow. + */ + source_flow_details?: LinkedFlows.SourceFlowDetails | null; + + /** + * The type of flow that originated the ReceivedCredit (for example, `outbound_payment`). + */ + source_flow_type: string | null; + } + + export type Network = 'ach' | 'card' | 'stripe' | 'us_domestic_wire'; + + export interface NetworkDetails { + /** + * Details about an ACH transaction. + */ + ach?: NetworkDetails.Ach | null; + + /** + * The type of flow that originated the ReceivedCredit. + */ + type: 'ach'; + } + + export interface ReversalDetails { + /** + * Time before which a ReceivedCredit can be reversed. + */ + deadline: number | null; + + /** + * Set if a ReceivedCredit cannot be reversed. + */ + restricted_reason: ReversalDetails.RestrictedReason | null; + } - billing_details: InitiatingPaymentMethodDetails.BillingDetails; + export type Status = 'failed' | 'succeeded'; - financial_account?: InitiatingPaymentMethodDetails.FinancialAccount; + export namespace InitiatingPaymentMethodDetails { + export interface BillingDetails { + address: Address; /** - * Set when `type` is `issuing_card`. This is an [Issuing Card](https://api.stripe.com#issuing_cards) ID. + * Email address. */ - issuing_card?: string; + email: string | null; /** - * Polymorphic type matching the originating money movement's source. This can be an external account, a Stripe balance, or a FinancialAccount. + * Full name. */ - type: InitiatingPaymentMethodDetails.Type; - - us_bank_account?: InitiatingPaymentMethodDetails.UsBankAccount; + name: string | null; } - export interface LinkedFlows { + export interface FinancialAccount { /** - * The CreditReversal created as a result of this ReceivedCredit being reversed. + * The FinancialAccount ID. */ - credit_reversal: string | null; + id: string; /** - * Set if the ReceivedCredit was created due to an [Issuing Authorization](https://api.stripe.com#issuing_authorizations) object. + * The rails the ReceivedCredit was sent over. A FinancialAccount can only send funds over `stripe`. */ - issuing_authorization: string | null; + network: 'stripe'; + } - /** - * Set if the ReceivedCredit is also viewable as an [Issuing transaction](https://api.stripe.com#issuing_transactions) object. - */ - issuing_transaction: string | null; + export type Type = + | 'balance' + | 'financial_account' + | 'issuing_card' + | 'stripe' + | 'us_bank_account'; + export interface UsBankAccount { /** - * ID of the source flow. Set if `network` is `stripe` and the source flow is visible to the user. Examples of source flows include OutboundPayments, payouts, or CreditReversals. + * Bank name. */ - source_flow: string | null; + bank_name: string | null; /** - * The expandable object of the source flow. + * The last four digits of the bank account number. */ - source_flow_details?: LinkedFlows.SourceFlowDetails | null; + last4: string | null; /** - * The type of flow that originated the ReceivedCredit (for example, `outbound_payment`). + * The routing number for the bank account. */ - source_flow_type: string | null; + routing_number: string | null; } + } - export type Network = 'ach' | 'card' | 'stripe' | 'us_domestic_wire'; + export namespace LinkedFlows { + export interface SourceFlowDetails { + /** + * You can reverse some [ReceivedCredits](https://api.stripe.com#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. + */ + credit_reversal?: CreditReversal; - export interface NetworkDetails { /** - * Details about an ACH transaction. + * Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://api.stripe.com#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://api.stripe.com#outbound_transfers). + * + * Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. + * + * Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) */ - ach?: NetworkDetails.Ach | null; + outbound_payment?: OutboundPayment; /** - * The type of flow that originated the ReceivedCredit. + * Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://api.stripe.com#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://api.stripe.com#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. + * + * Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. + * + * Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) */ - type: 'ach'; - } + outbound_transfer?: OutboundTransfer; - export interface ReversalDetails { /** - * Time before which a ReceivedCredit can be reversed. + * A `Payout` object is created when you receive funds from Stripe, or when you + * initiate a payout to either a bank account or debit card of a [connected + * Stripe account](https://docs.stripe.com/docs/connect/bank-debit-card-payouts). You can retrieve individual payouts, + * and list all payouts. Payouts are made on [varying + * schedules](https://docs.stripe.com/docs/connect/manage-payout-schedule), depending on your country and + * industry. + * + * Related guide: [Receiving payouts](https://docs.stripe.com/payouts) */ - deadline: number | null; + payout?: Payout; /** - * Set if a ReceivedCredit cannot be reversed. + * The type of the source flow that originated the ReceivedCredit. */ - restricted_reason: ReversalDetails.RestrictedReason | null; + type: SourceFlowDetails.Type; } - export type Status = 'failed' | 'succeeded'; - - export namespace InitiatingPaymentMethodDetails { - export interface BillingDetails { - address: Address; - - /** - * Email address. - */ - email: string | null; - - /** - * Full name. - */ - name: string | null; - } - - export interface FinancialAccount { - /** - * The FinancialAccount ID. - */ - id: string; - - /** - * The rails the ReceivedCredit was sent over. A FinancialAccount can only send funds over `stripe`. - */ - network: 'stripe'; - } - + export namespace SourceFlowDetails { export type Type = - | 'balance' - | 'financial_account' - | 'issuing_card' - | 'stripe' - | 'us_bank_account'; - - export interface UsBankAccount { - /** - * Bank name. - */ - bank_name: string | null; - - /** - * The last four digits of the bank account number. - */ - last4: string | null; - - /** - * The routing number for the bank account. - */ - routing_number: string | null; - } - } - - export namespace LinkedFlows { - export interface SourceFlowDetails { - /** - * You can reverse some [ReceivedCredits](https://api.stripe.com#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. - */ - credit_reversal?: CreditReversal; - - /** - * Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://api.stripe.com#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://api.stripe.com#outbound_transfers). - * - * Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. - * - * Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) - */ - outbound_payment?: OutboundPayment; - - /** - * Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://api.stripe.com#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://api.stripe.com#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. - * - * Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. - * - * Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) - */ - outbound_transfer?: OutboundTransfer; - - /** - * A `Payout` object is created when you receive funds from Stripe, or when you - * initiate a payout to either a bank account or debit card of a [connected - * Stripe account](https://docs.stripe.com/docs/connect/bank-debit-card-payouts). You can retrieve individual payouts, - * and list all payouts. Payouts are made on [varying - * schedules](https://docs.stripe.com/docs/connect/manage-payout-schedule), depending on your country and - * industry. - * - * Related guide: [Receiving payouts](https://docs.stripe.com/payouts) - */ - payout?: Payout; - - /** - * The type of the source flow that originated the ReceivedCredit. - */ - type: SourceFlowDetails.Type; - } - - export namespace SourceFlowDetails { - export type Type = - | 'credit_reversal' - | 'other' - | 'outbound_payment' - | 'outbound_transfer' - | 'payout'; - } + | 'credit_reversal' + | 'other' + | 'outbound_payment' + | 'outbound_transfer' + | 'payout'; } + } - export namespace NetworkDetails { - export interface Ach { - /** - * ACH Addenda record - */ - addenda: string | null; - } + export namespace NetworkDetails { + export interface Ach { + /** + * ACH Addenda record + */ + addenda: string | null; } + } - export namespace ReversalDetails { - export type RestrictedReason = - | 'already_reversed' - | 'deadline_passed' - | 'network_restricted' - | 'other' - | 'source_flow_restricted'; - } + export namespace ReversalDetails { + export type RestrictedReason = + | 'already_reversed' + | 'deadline_passed' + | 'network_restricted' + | 'other' + | 'source_flow_restricted'; } } export namespace Treasury { diff --git a/src/resources/Treasury/ReceivedDebits.ts b/src/resources/Treasury/ReceivedDebits.ts index b3cf97c0fe..5b2a4978a4 100644 --- a/src/resources/Treasury/ReceivedDebits.ts +++ b/src/resources/Treasury/ReceivedDebits.ts @@ -73,7 +73,7 @@ export interface ReceivedDebit { /** * Reason for the failure. A ReceivedDebit might fail because the FinancialAccount doesn't have sufficient funds, is closed, or is frozen. */ - failure_code: Treasury.ReceivedDebit.FailureCode | null; + failure_code: ReceivedDebit.FailureCode | null; /** * The FinancialAccount that funds were pulled from. @@ -85,9 +85,9 @@ export interface ReceivedDebit { */ hosted_regulatory_receipt_url: string | null; - initiating_payment_method_details?: Treasury.ReceivedDebit.InitiatingPaymentMethodDetails; + initiating_payment_method_details?: ReceivedDebit.InitiatingPaymentMethodDetails; - linked_flows: Treasury.ReceivedDebit.LinkedFlows; + linked_flows: ReceivedDebit.LinkedFlows; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -97,194 +97,192 @@ export interface ReceivedDebit { /** * The network used for the ReceivedDebit. */ - network: Treasury.ReceivedDebit.Network; + network: ReceivedDebit.Network; /** * Details specific to the money movement rails. */ - network_details?: Treasury.ReceivedDebit.NetworkDetails | null; + network_details?: ReceivedDebit.NetworkDetails | null; /** * Details describing when a ReceivedDebit might be reversed. */ - reversal_details: Treasury.ReceivedDebit.ReversalDetails | null; + reversal_details: ReceivedDebit.ReversalDetails | null; /** * Status of the ReceivedDebit. ReceivedDebits are created with a status of either `succeeded` (approved) or `failed` (declined). The failure reason can be found under the `failure_code`. */ - status: Treasury.ReceivedDebit.Status; + status: ReceivedDebit.Status; /** * The Transaction associated with this object. */ transaction: string | Transaction | null; } -export namespace Treasury { - export namespace ReceivedDebit { - export type FailureCode = - | 'account_closed' - | 'account_frozen' - | 'insufficient_funds' - | 'international_transaction' - | 'other'; - - export interface InitiatingPaymentMethodDetails { - /** - * Set when `type` is `balance`. - */ - balance?: 'payments'; +export namespace ReceivedDebit { + export type FailureCode = + | 'account_closed' + | 'account_frozen' + | 'insufficient_funds' + | 'international_transaction' + | 'other'; + + export interface InitiatingPaymentMethodDetails { + /** + * Set when `type` is `balance`. + */ + balance?: 'payments'; - billing_details: InitiatingPaymentMethodDetails.BillingDetails; + billing_details: InitiatingPaymentMethodDetails.BillingDetails; - financial_account?: InitiatingPaymentMethodDetails.FinancialAccount; + financial_account?: InitiatingPaymentMethodDetails.FinancialAccount; - /** - * Set when `type` is `issuing_card`. This is an [Issuing Card](https://api.stripe.com#issuing_cards) ID. - */ - issuing_card?: string; + /** + * Set when `type` is `issuing_card`. This is an [Issuing Card](https://api.stripe.com#issuing_cards) ID. + */ + issuing_card?: string; - /** - * Polymorphic type matching the originating money movement's source. This can be an external account, a Stripe balance, or a FinancialAccount. - */ - type: InitiatingPaymentMethodDetails.Type; + /** + * Polymorphic type matching the originating money movement's source. This can be an external account, a Stripe balance, or a FinancialAccount. + */ + type: InitiatingPaymentMethodDetails.Type; - us_bank_account?: InitiatingPaymentMethodDetails.UsBankAccount; - } + us_bank_account?: InitiatingPaymentMethodDetails.UsBankAccount; + } - export interface LinkedFlows { - /** - * The DebitReversal created as a result of this ReceivedDebit being reversed. - */ - debit_reversal: string | null; + export interface LinkedFlows { + /** + * The DebitReversal created as a result of this ReceivedDebit being reversed. + */ + debit_reversal: string | null; - /** - * Set if the ReceivedDebit is associated with an InboundTransfer's return of funds. - */ - inbound_transfer: string | null; + /** + * Set if the ReceivedDebit is associated with an InboundTransfer's return of funds. + */ + inbound_transfer: string | null; - /** - * Set if the ReceivedDebit was created due to an [Issuing Authorization](https://api.stripe.com#issuing_authorizations) object. - */ - issuing_authorization: string | null; + /** + * Set if the ReceivedDebit was created due to an [Issuing Authorization](https://api.stripe.com#issuing_authorizations) object. + */ + issuing_authorization: string | null; + + /** + * Set if the ReceivedDebit is also viewable as an [Issuing Dispute](https://api.stripe.com#issuing_disputes) object. + */ + issuing_transaction: string | null; + + /** + * Set if the ReceivedDebit was created due to a [Payout](https://api.stripe.com#payouts) object. + */ + payout: string | null; + + /** + * The ReceivedCredit that Capital withheld from + */ + received_credit_capital_withholding?: string | null; + + /** + * Set if the ReceivedDebit was created due to a [Topup](https://api.stripe.com#topups) object. + */ + topup: string | null; + } + + export type Network = 'ach' | 'card' | 'stripe'; + + export interface NetworkDetails { + /** + * Details about an ACH transaction. + */ + ach?: NetworkDetails.Ach | null; + + /** + * The type of flow that originated the ReceivedDebit. + */ + type: 'ach'; + } + + export interface ReversalDetails { + /** + * Time before which a ReceivedDebit can be reversed. + */ + deadline: number | null; + + /** + * Set if a ReceivedDebit can't be reversed. + */ + restricted_reason: ReversalDetails.RestrictedReason | null; + } + + export type Status = 'failed' | 'succeeded'; + + export namespace InitiatingPaymentMethodDetails { + export interface BillingDetails { + address: Address; /** - * Set if the ReceivedDebit is also viewable as an [Issuing Dispute](https://api.stripe.com#issuing_disputes) object. + * Email address. */ - issuing_transaction: string | null; + email: string | null; /** - * Set if the ReceivedDebit was created due to a [Payout](https://api.stripe.com#payouts) object. + * Full name. */ - payout: string | null; + name: string | null; + } + export interface FinancialAccount { /** - * The ReceivedCredit that Capital withheld from + * The FinancialAccount ID. */ - received_credit_capital_withholding?: string | null; + id: string; /** - * Set if the ReceivedDebit was created due to a [Topup](https://api.stripe.com#topups) object. + * The rails the ReceivedCredit was sent over. A FinancialAccount can only send funds over `stripe`. */ - topup: string | null; + network: 'stripe'; } - export type Network = 'ach' | 'card' | 'stripe'; + export type Type = + | 'balance' + | 'financial_account' + | 'issuing_card' + | 'stripe' + | 'us_bank_account'; - export interface NetworkDetails { + export interface UsBankAccount { /** - * Details about an ACH transaction. + * Bank name. */ - ach?: NetworkDetails.Ach | null; + bank_name: string | null; /** - * The type of flow that originated the ReceivedDebit. + * The last four digits of the bank account number. */ - type: 'ach'; - } + last4: string | null; - export interface ReversalDetails { /** - * Time before which a ReceivedDebit can be reversed. + * The routing number for the bank account. */ - deadline: number | null; + routing_number: string | null; + } + } + export namespace NetworkDetails { + export interface Ach { /** - * Set if a ReceivedDebit can't be reversed. + * ACH Addenda record */ - restricted_reason: ReversalDetails.RestrictedReason | null; - } - - export type Status = 'failed' | 'succeeded'; - - export namespace InitiatingPaymentMethodDetails { - export interface BillingDetails { - address: Address; - - /** - * Email address. - */ - email: string | null; - - /** - * Full name. - */ - name: string | null; - } - - export interface FinancialAccount { - /** - * The FinancialAccount ID. - */ - id: string; - - /** - * The rails the ReceivedCredit was sent over. A FinancialAccount can only send funds over `stripe`. - */ - network: 'stripe'; - } - - export type Type = - | 'balance' - | 'financial_account' - | 'issuing_card' - | 'stripe' - | 'us_bank_account'; - - export interface UsBankAccount { - /** - * Bank name. - */ - bank_name: string | null; - - /** - * The last four digits of the bank account number. - */ - last4: string | null; - - /** - * The routing number for the bank account. - */ - routing_number: string | null; - } - } - - export namespace NetworkDetails { - export interface Ach { - /** - * ACH Addenda record - */ - addenda: string | null; - } + addenda: string | null; } + } - export namespace ReversalDetails { - export type RestrictedReason = - | 'already_reversed' - | 'deadline_passed' - | 'network_restricted' - | 'other' - | 'source_flow_restricted'; - } + export namespace ReversalDetails { + export type RestrictedReason = + | 'already_reversed' + | 'deadline_passed' + | 'network_restricted' + | 'other' + | 'source_flow_restricted'; } } export namespace Treasury { diff --git a/src/resources/Treasury/TransactionEntries.ts b/src/resources/Treasury/TransactionEntries.ts index b85f6b2915..abc86eabf2 100644 --- a/src/resources/Treasury/TransactionEntries.ts +++ b/src/resources/Treasury/TransactionEntries.ts @@ -445,7 +445,7 @@ export interface TransactionEntry { /** * Change to a FinancialAccount's balance */ - balance_impact: Treasury.TransactionEntry.BalanceImpact; + balance_impact: TransactionEntry.BalanceImpact; /** * Time at which the object was created. Measured in seconds since the Unix epoch. @@ -475,12 +475,12 @@ export interface TransactionEntry { /** * Details of the flow associated with the TransactionEntry. */ - flow_details?: Treasury.TransactionEntry.FlowDetails | null; + flow_details?: TransactionEntry.FlowDetails | null; /** * Type of the flow associated with the TransactionEntry. */ - flow_type: Treasury.TransactionEntry.FlowType; + flow_type: TransactionEntry.FlowType; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -495,133 +495,131 @@ export interface TransactionEntry { /** * The specific money movement that generated the TransactionEntry. */ - type: Treasury.TransactionEntry.Type; + type: TransactionEntry.Type; } -export namespace Treasury { - export namespace TransactionEntry { - export interface BalanceImpact { - /** - * The change made to funds the user can spend right now. - */ - cash: number; - - /** - * The change made to funds that are not spendable yet, but will become available at a later time. - */ - inbound_pending: number; - - /** - * The change made to funds in the account, but not spendable because they are being held for pending outbound flows. - */ - outbound_pending: number; - } - - export interface FlowDetails { - /** - * You can reverse some [ReceivedCredits](https://api.stripe.com#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. - */ - credit_reversal?: CreditReversal; - - /** - * You can reverse some [ReceivedDebits](https://api.stripe.com#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. - */ - debit_reversal?: DebitReversal; - - /** - * Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://api.stripe.com#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. - * - * Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) - */ - inbound_transfer?: InboundTransfer; - - /** - * When an [issued card](https://docs.stripe.com/issuing) is used to make a purchase, an Issuing `Authorization` - * object is created. [Authorizations](https://docs.stripe.com/issuing/purchases/authorizations) must be approved for the - * purchase to be completed successfully. - * - * Related guide: [Issued card authorizations](https://docs.stripe.com/issuing/purchases/authorizations) - */ - issuing_authorization?: Issuing.Authorization; - - /** - * Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://api.stripe.com#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://api.stripe.com#outbound_transfers). - * - * Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. - * - * Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) - */ - outbound_payment?: OutboundPayment; - - /** - * Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://api.stripe.com#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://api.stripe.com#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. - * - * Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. - * - * Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) - */ - outbound_transfer?: OutboundTransfer; - - /** - * ReceivedCredits represent funds sent to a [FinancialAccount](https://api.stripe.com#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. - */ - received_credit?: ReceivedCredit; - - /** - * ReceivedDebits represent funds pulled from a [FinancialAccount](https://api.stripe.com#financial_accounts). These are not initiated from the FinancialAccount. - */ - received_debit?: ReceivedDebit; - - /** - * Type of the flow that created the Transaction. Set to the same value as `flow_type`. - */ - type: FlowDetails.Type; - } - - export type FlowType = - | 'credit_reversal' - | 'debit_reversal' - | 'inbound_transfer' - | 'issuing_authorization' - | 'other' - | 'outbound_payment' - | 'outbound_transfer' - | 'received_credit' - | 'received_debit'; +export namespace TransactionEntry { + export interface BalanceImpact { + /** + * The change made to funds the user can spend right now. + */ + cash: number; + + /** + * The change made to funds that are not spendable yet, but will become available at a later time. + */ + inbound_pending: number; + + /** + * The change made to funds in the account, but not spendable because they are being held for pending outbound flows. + */ + outbound_pending: number; + } + + export interface FlowDetails { + /** + * You can reverse some [ReceivedCredits](https://api.stripe.com#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. + */ + credit_reversal?: CreditReversal; + + /** + * You can reverse some [ReceivedDebits](https://api.stripe.com#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. + */ + debit_reversal?: DebitReversal; + /** + * Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://api.stripe.com#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. + * + * Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) + */ + inbound_transfer?: InboundTransfer; + + /** + * When an [issued card](https://docs.stripe.com/issuing) is used to make a purchase, an Issuing `Authorization` + * object is created. [Authorizations](https://docs.stripe.com/issuing/purchases/authorizations) must be approved for the + * purchase to be completed successfully. + * + * Related guide: [Issued card authorizations](https://docs.stripe.com/issuing/purchases/authorizations) + */ + issuing_authorization?: Issuing.Authorization; + + /** + * Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://api.stripe.com#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://api.stripe.com#outbound_transfers). + * + * Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. + * + * Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) + */ + outbound_payment?: OutboundPayment; + + /** + * Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://api.stripe.com#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://api.stripe.com#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. + * + * Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. + * + * Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) + */ + outbound_transfer?: OutboundTransfer; + + /** + * ReceivedCredits represent funds sent to a [FinancialAccount](https://api.stripe.com#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. + */ + received_credit?: ReceivedCredit; + + /** + * ReceivedDebits represent funds pulled from a [FinancialAccount](https://api.stripe.com#financial_accounts). These are not initiated from the FinancialAccount. + */ + received_debit?: ReceivedDebit; + + /** + * Type of the flow that created the Transaction. Set to the same value as `flow_type`. + */ + type: FlowDetails.Type; + } + + export type FlowType = + | 'credit_reversal' + | 'debit_reversal' + | 'inbound_transfer' + | 'issuing_authorization' + | 'other' + | 'outbound_payment' + | 'outbound_transfer' + | 'received_credit' + | 'received_debit'; + + export type Type = + | 'credit_reversal' + | 'credit_reversal_posting' + | 'debit_reversal' + | 'inbound_transfer' + | 'inbound_transfer_return' + | 'issuing_authorization_hold' + | 'issuing_authorization_release' + | 'other' + | 'outbound_payment' + | 'outbound_payment_cancellation' + | 'outbound_payment_failure' + | 'outbound_payment_posting' + | 'outbound_payment_return' + | 'outbound_transfer' + | 'outbound_transfer_cancellation' + | 'outbound_transfer_failure' + | 'outbound_transfer_posting' + | 'outbound_transfer_return' + | 'received_credit' + | 'received_debit'; + + export namespace FlowDetails { export type Type = | 'credit_reversal' - | 'credit_reversal_posting' | 'debit_reversal' | 'inbound_transfer' - | 'inbound_transfer_return' - | 'issuing_authorization_hold' - | 'issuing_authorization_release' + | 'issuing_authorization' | 'other' | 'outbound_payment' - | 'outbound_payment_cancellation' - | 'outbound_payment_failure' - | 'outbound_payment_posting' - | 'outbound_payment_return' | 'outbound_transfer' - | 'outbound_transfer_cancellation' - | 'outbound_transfer_failure' - | 'outbound_transfer_posting' - | 'outbound_transfer_return' | 'received_credit' | 'received_debit'; - - export namespace FlowDetails { - export type Type = - | 'credit_reversal' - | 'debit_reversal' - | 'inbound_transfer' - | 'issuing_authorization' - | 'other' - | 'outbound_payment' - | 'outbound_transfer' - | 'received_credit' - | 'received_debit'; - } } } export namespace Treasury { diff --git a/src/resources/Treasury/Transactions.ts b/src/resources/Treasury/Transactions.ts index 6f3055ff44..96e7ed3732 100644 --- a/src/resources/Treasury/Transactions.ts +++ b/src/resources/Treasury/Transactions.ts @@ -526,7 +526,7 @@ export interface Transaction { /** * Change to a FinancialAccount's balance */ - balance_impact: Treasury.Transaction.BalanceImpact; + balance_impact: Transaction.BalanceImpact; /** * Time at which the object was created. Measured in seconds since the Unix epoch. @@ -561,12 +561,12 @@ export interface Transaction { /** * Details of the flow that created the Transaction. */ - flow_details?: Treasury.Transaction.FlowDetails | null; + flow_details?: Transaction.FlowDetails | null; /** * Type of the flow that created the Transaction. */ - flow_type: Treasury.Transaction.FlowType; + flow_type: Transaction.FlowType; /** * If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. @@ -576,91 +576,116 @@ export interface Transaction { /** * Status of the Transaction. */ - status: Treasury.Transaction.Status; + status: Transaction.Status; - status_transitions: Treasury.Transaction.StatusTransitions; + status_transitions: Transaction.StatusTransitions; } -export namespace Treasury { - export namespace Transaction { - export interface BalanceImpact { - /** - * The change made to funds the user can spend right now. - */ - cash: number; +export namespace Transaction { + export interface BalanceImpact { + /** + * The change made to funds the user can spend right now. + */ + cash: number; - /** - * The change made to funds that are not spendable yet, but will become available at a later time. - */ - inbound_pending: number; + /** + * The change made to funds that are not spendable yet, but will become available at a later time. + */ + inbound_pending: number; - /** - * The change made to funds in the account, but not spendable because they are being held for pending outbound flows. - */ - outbound_pending: number; - } + /** + * The change made to funds in the account, but not spendable because they are being held for pending outbound flows. + */ + outbound_pending: number; + } - export interface FlowDetails { - /** - * You can reverse some [ReceivedCredits](https://api.stripe.com#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. - */ - credit_reversal?: CreditReversal; + export interface FlowDetails { + /** + * You can reverse some [ReceivedCredits](https://api.stripe.com#received_credits) depending on their network and source flow. Reversing a ReceivedCredit leads to the creation of a new object known as a CreditReversal. + */ + credit_reversal?: CreditReversal; - /** - * You can reverse some [ReceivedDebits](https://api.stripe.com#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. - */ - debit_reversal?: DebitReversal; + /** + * You can reverse some [ReceivedDebits](https://api.stripe.com#received_debits) depending on their network and source flow. Reversing a ReceivedDebit leads to the creation of a new object known as a DebitReversal. + */ + debit_reversal?: DebitReversal; - /** - * Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://api.stripe.com#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. - * - * Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) - */ - inbound_transfer?: InboundTransfer; + /** + * Use [InboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) to add funds to your [FinancialAccount](https://api.stripe.com#financial_accounts) via a PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. + * + * Related guide: [Moving money with Treasury using InboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers) + */ + inbound_transfer?: InboundTransfer; - /** - * When an [issued card](https://docs.stripe.com/issuing) is used to make a purchase, an Issuing `Authorization` - * object is created. [Authorizations](https://docs.stripe.com/issuing/purchases/authorizations) must be approved for the - * purchase to be completed successfully. - * - * Related guide: [Issued card authorizations](https://docs.stripe.com/issuing/purchases/authorizations) - */ - issuing_authorization?: Issuing.Authorization; + /** + * When an [issued card](https://docs.stripe.com/issuing) is used to make a purchase, an Issuing `Authorization` + * object is created. [Authorizations](https://docs.stripe.com/issuing/purchases/authorizations) must be approved for the + * purchase to be completed successfully. + * + * Related guide: [Issued card authorizations](https://docs.stripe.com/issuing/purchases/authorizations) + */ + issuing_authorization?: Issuing.Authorization; - /** - * Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://api.stripe.com#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://api.stripe.com#outbound_transfers). - * - * Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. - * - * Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) - */ - outbound_payment?: OutboundPayment; + /** + * Use [OutboundPayments](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) to send funds to another party's external bank account or [FinancialAccount](https://api.stripe.com#financial_accounts). To send money to an account belonging to the same user, use an [OutboundTransfer](https://api.stripe.com#outbound_transfers). + * + * Simulate OutboundPayment state changes with the `/v1/test_helpers/treasury/outbound_payments` endpoints. These methods can only be called on test mode objects. + * + * Related guide: [Moving money with Treasury using OutboundPayment objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-payments) + */ + outbound_payment?: OutboundPayment; - /** - * Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://api.stripe.com#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://api.stripe.com#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. - * - * Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. - * - * Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) - */ - outbound_transfer?: OutboundTransfer; + /** + * Use [OutboundTransfers](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) to transfer funds from a [FinancialAccount](https://api.stripe.com#financial_accounts) to a PaymentMethod belonging to the same entity. To send funds to a different party, use [OutboundPayments](https://api.stripe.com#outbound_payments) instead. You can send funds over ACH rails or through a domestic wire transfer to a user's own external bank account. + * + * Simulate OutboundTransfer state changes with the `/v1/test_helpers/treasury/outbound_transfers` endpoints. These methods can only be called on test mode objects. + * + * Related guide: [Moving money with Treasury using OutboundTransfer objects](https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/out-of/outbound-transfers) + */ + outbound_transfer?: OutboundTransfer; - /** - * ReceivedCredits represent funds sent to a [FinancialAccount](https://api.stripe.com#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. - */ - received_credit?: ReceivedCredit; + /** + * ReceivedCredits represent funds sent to a [FinancialAccount](https://api.stripe.com#financial_accounts) (for example, via ACH or wire). These money movements are not initiated from the FinancialAccount. + */ + received_credit?: ReceivedCredit; - /** - * ReceivedDebits represent funds pulled from a [FinancialAccount](https://api.stripe.com#financial_accounts). These are not initiated from the FinancialAccount. - */ - received_debit?: ReceivedDebit; + /** + * ReceivedDebits represent funds pulled from a [FinancialAccount](https://api.stripe.com#financial_accounts). These are not initiated from the FinancialAccount. + */ + received_debit?: ReceivedDebit; - /** - * Type of the flow that created the Transaction. Set to the same value as `flow_type`. - */ - type: FlowDetails.Type; - } + /** + * Type of the flow that created the Transaction. Set to the same value as `flow_type`. + */ + type: FlowDetails.Type; + } + + export type FlowType = + | 'credit_reversal' + | 'debit_reversal' + | 'inbound_transfer' + | 'issuing_authorization' + | 'other' + | 'outbound_payment' + | 'outbound_transfer' + | 'received_credit' + | 'received_debit'; - export type FlowType = + export type Status = 'open' | 'posted' | 'void'; + + export interface StatusTransitions { + /** + * Timestamp describing when the Transaction changed status to `posted`. + */ + posted_at: number | null; + + /** + * Timestamp describing when the Transaction changed status to `void`. + */ + void_at: number | null; + } + + export namespace FlowDetails { + export type Type = | 'credit_reversal' | 'debit_reversal' | 'inbound_transfer' @@ -670,33 +695,6 @@ export namespace Treasury { | 'outbound_transfer' | 'received_credit' | 'received_debit'; - - export type Status = 'open' | 'posted' | 'void'; - - export interface StatusTransitions { - /** - * Timestamp describing when the Transaction changed status to `posted`. - */ - posted_at: number | null; - - /** - * Timestamp describing when the Transaction changed status to `void`. - */ - void_at: number | null; - } - - export namespace FlowDetails { - export type Type = - | 'credit_reversal' - | 'debit_reversal' - | 'inbound_transfer' - | 'issuing_authorization' - | 'other' - | 'outbound_payment' - | 'outbound_transfer' - | 'received_credit' - | 'received_debit'; - } } } export namespace Treasury { diff --git a/src/resources/V2/Billing/BillSettingVersions.ts b/src/resources/V2/Billing/BillSettingVersions.ts index 40a451af43..d33ea710c9 100644 --- a/src/resources/V2/Billing/BillSettingVersions.ts +++ b/src/resources/V2/Billing/BillSettingVersions.ts @@ -15,7 +15,7 @@ export interface BillSettingVersion { /** * Settings related to calculating a bill. */ - calculation?: V2.Billing.BillSettingVersion.Calculation; + calculation?: BillSettingVersion.Calculation; /** * Timestamp of when the object was created. @@ -25,7 +25,7 @@ export interface BillSettingVersion { /** * Settings related to invoice behavior. */ - invoice?: V2.Billing.BillSettingVersion.Invoice; + invoice?: BillSettingVersion.Invoice; /** * The ID of the invoice rendering template to be used when generating invoices. @@ -37,54 +37,50 @@ export interface BillSettingVersion { */ livemode: boolean; } -export namespace V2 { - export namespace Billing { - export namespace BillSettingVersion { - export interface Calculation { - /** - * Settings for calculating tax. - */ - tax?: Calculation.Tax; - } +export namespace BillSettingVersion { + export interface Calculation { + /** + * Settings for calculating tax. + */ + tax?: Calculation.Tax; + } - export interface Invoice { - /** - * The amount of time until the invoice is overdue for payment. - */ - time_until_due?: Invoice.TimeUntilDue; - } + export interface Invoice { + /** + * The amount of time until the invoice is overdue for payment. + */ + time_until_due?: Invoice.TimeUntilDue; + } - export namespace Calculation { - export interface Tax { - /** - * Determines if tax is calculated automatically based on a PTC or manually based on rules defined by the business. Defaults to "manual". - */ - type: Tax.Type; - } + export namespace Calculation { + export interface Tax { + /** + * Determines if tax is calculated automatically based on a PTC or manually based on rules defined by the business. Defaults to "manual". + */ + type: Tax.Type; + } - export namespace Tax { - export type Type = 'automatic' | 'manual'; - } - } + export namespace Tax { + export type Type = 'automatic' | 'manual'; + } + } - export namespace Invoice { - export interface TimeUntilDue { - /** - * The interval unit for the time until due. - */ - interval: TimeUntilDue.Interval; + export namespace Invoice { + export interface TimeUntilDue { + /** + * The interval unit for the time until due. + */ + interval: TimeUntilDue.Interval; - /** - * The number of interval units. For example, if interval=day and interval_count=30, - * the invoice is due in 30 days. - */ - interval_count: number; - } + /** + * The number of interval units. For example, if interval=day and interval_count=30, + * the invoice is due in 30 days. + */ + interval_count: number; + } - export namespace TimeUntilDue { - export type Interval = 'day' | 'month' | 'week' | 'year'; - } - } + export namespace TimeUntilDue { + export type Interval = 'day' | 'month' | 'week' | 'year'; } } } diff --git a/src/resources/V2/Billing/BillSettings.ts b/src/resources/V2/Billing/BillSettings.ts index ffda233d72..cb5721e7d4 100644 --- a/src/resources/V2/Billing/BillSettings.ts +++ b/src/resources/V2/Billing/BillSettings.ts @@ -87,7 +87,7 @@ export interface BillSetting { /** * Settings related to calculating a bill. */ - calculation?: V2.Billing.BillSetting.Calculation; + calculation?: BillSetting.Calculation; /** * Timestamp of when the object was created. @@ -102,7 +102,7 @@ export interface BillSetting { /** * Settings related to invoice behavior. */ - invoice?: V2.Billing.BillSetting.Invoice; + invoice?: BillSetting.Invoice; /** * The ID of the invoice rendering template to be used when generating invoices. @@ -132,54 +132,50 @@ export interface BillSetting { */ lookup_key?: string; } -export namespace V2 { - export namespace Billing { - export namespace BillSetting { - export interface Calculation { - /** - * Settings for calculating tax. - */ - tax?: Calculation.Tax; - } +export namespace BillSetting { + export interface Calculation { + /** + * Settings for calculating tax. + */ + tax?: Calculation.Tax; + } - export interface Invoice { - /** - * The amount of time until the invoice is overdue for payment. - */ - time_until_due?: Invoice.TimeUntilDue; - } + export interface Invoice { + /** + * The amount of time until the invoice is overdue for payment. + */ + time_until_due?: Invoice.TimeUntilDue; + } - export namespace Calculation { - export interface Tax { - /** - * Determines if tax is calculated automatically based on a PTC or manually based on rules defined by the business. Defaults to "manual". - */ - type: Tax.Type; - } + export namespace Calculation { + export interface Tax { + /** + * Determines if tax is calculated automatically based on a PTC or manually based on rules defined by the business. Defaults to "manual". + */ + type: Tax.Type; + } - export namespace Tax { - export type Type = 'automatic' | 'manual'; - } - } + export namespace Tax { + export type Type = 'automatic' | 'manual'; + } + } - export namespace Invoice { - export interface TimeUntilDue { - /** - * The interval unit for the time until due. - */ - interval: TimeUntilDue.Interval; + export namespace Invoice { + export interface TimeUntilDue { + /** + * The interval unit for the time until due. + */ + interval: TimeUntilDue.Interval; - /** - * The number of interval units. For example, if interval=day and interval_count=30, - * the invoice is due in 30 days. - */ - interval_count: number; - } + /** + * The number of interval units. For example, if interval=day and interval_count=30, + * the invoice is due in 30 days. + */ + interval_count: number; + } - export namespace TimeUntilDue { - export type Interval = 'day' | 'month' | 'week' | 'year'; - } - } + export namespace TimeUntilDue { + export type Interval = 'day' | 'month' | 'week' | 'year'; } } } diff --git a/src/resources/V2/Billing/Cadences.ts b/src/resources/V2/Billing/Cadences.ts index 9c6d3f0bc4..46641da82b 100644 --- a/src/resources/V2/Billing/Cadences.ts +++ b/src/resources/V2/Billing/Cadences.ts @@ -245,7 +245,7 @@ export interface Cadence { /** * The billing cycle is the object that defines future billing cycle dates. */ - billing_cycle: V2.Billing.Cadence.BillingCycle; + billing_cycle: Cadence.BillingCycle; /** * Timestamp of when the object was created. @@ -275,637 +275,627 @@ export interface Cadence { /** * The payer determines the entity financially responsible for the bill. */ - payer: V2.Billing.Cadence.Payer; + payer: Cadence.Payer; /** * The settings associated with the cadence. */ - settings?: V2.Billing.Cadence.Settings; + settings?: Cadence.Settings; /** * Settings data that contains expanded billing settings configuration with actual values. */ - settings_data?: V2.Billing.Cadence.SettingsData; + settings_data?: Cadence.SettingsData; /** * The current status of the cadence. */ - status: V2.Billing.Cadence.Status; + status: Cadence.Status; /** * The ID of the Test Clock. */ test_clock?: string; } -export namespace V2 { - export namespace Billing { - export namespace Cadence { - export interface BillingCycle { +export namespace Cadence { + export interface BillingCycle { + /** + * Specific configuration for determining billing dates when type=day. + */ + day?: BillingCycle.Day; + + /** + * The number of intervals (specified in the interval attribute) between cadence billings. For example, type=month and interval_count=3 bills every 3 months. + */ + interval_count: number; + + /** + * Specific configuration for determining billing dates when type=month. + */ + month?: BillingCycle.Month; + + /** + * The frequency at which a cadence bills. + */ + type: BillingCycle.Type; + + /** + * Specific configuration for determining billing dates when type=week. + */ + week?: BillingCycle.Week; + + /** + * Specific configuration for determining billing dates when type=year. + */ + year?: BillingCycle.Year; + } + + export interface Payer { + /** + * The ID of the Billing Profile object which determines how a bill is paid. + */ + billing_profile: string; + + /** + * The ID of the Customer object. + */ + customer?: string; + + /** + * A string identifying the type of the payer. Currently the only supported value is `customer`. + */ + type: 'customer'; + } + + export interface Settings { + /** + * Settings that configure bills generation, which includes calculating totals, tax, and presenting invoices. + */ + bill?: Settings.Bill; + + /** + * Settings that configure and manage the behavior of collecting payments. + */ + collection?: Settings.Collection; + } + + export interface SettingsData { + /** + * Expanded bill settings data with actual configuration values. + */ + bill: SettingsData.Bill; + + /** + * Expanded collection settings data with actual configuration values. + */ + collection: SettingsData.Collection; + } + + export type Status = 'active' | 'canceled'; + + export namespace BillingCycle { + export interface Day { + /** + * The time at which the billing cycle ends. + */ + time: Day.Time; + } + + export interface Month { + /** + * The day to anchor the billing on for a type="month" billing cycle from 1-31. + * If this number is greater than the number of days in the month being billed, + * this anchors to the last day of the month. + */ + day_of_month: number; + + /** + * The month to anchor the billing on for a type="month" billing cycle from + * 1-12. Occurrences are calculated from the month anchor. + */ + month_of_year?: number; + + /** + * The time at which the billing cycle ends. + */ + time: Month.Time; + } + + export type Type = 'day' | 'month' | 'week' | 'year'; + + export interface Week { + /** + * The day of the week to bill the type=week billing cycle on. + * Numbered from 1-7 for Monday to Sunday respectively, based on the ISO-8601 week day numbering. + */ + day_of_week: number; + + /** + * The time at which the billing cycle ends. + */ + time: Week.Time; + } + + export interface Year { + /** + * The day to anchor the billing on for a type="month" billing cycle from 1-31. + * If this number is greater than the number of days in the month being billed, + * this anchors to the last day of the month. + */ + day_of_month: number; + + /** + * The month to bill on from 1-12. If not provided, this defaults to the month the cadence was created. + */ + month_of_year: number; + + /** + * The time at which the billing cycle ends. + */ + time: Year.Time; + } + + export namespace Day { + export interface Time { /** - * Specific configuration for determining billing dates when type=day. + * The hour at which the billing cycle ends. + * This must be an integer between 0 and 23, inclusive. + * 0 represents midnight, and 23 represents 11 PM. */ - day?: BillingCycle.Day; + hour: number; /** - * The number of intervals (specified in the interval attribute) between cadence billings. For example, type=month and interval_count=3 bills every 3 months. + * The minute at which the billing cycle ends. + * Must be an integer between 0 and 59, inclusive. */ - interval_count: number; + minute: number; /** - * Specific configuration for determining billing dates when type=month. + * The second at which the billing cycle ends. + * Must be an integer between 0 and 59, inclusive. */ - month?: BillingCycle.Month; + second?: number; + } + } + export namespace Month { + export interface Time { /** - * The frequency at which a cadence bills. + * The hour at which the billing cycle ends. + * This must be an integer between 0 and 23, inclusive. + * 0 represents midnight, and 23 represents 11 PM. */ - type: BillingCycle.Type; + hour: number; /** - * Specific configuration for determining billing dates when type=week. + * The minute at which the billing cycle ends. + * Must be an integer between 0 and 59, inclusive. */ - week?: BillingCycle.Week; + minute: number; /** - * Specific configuration for determining billing dates when type=year. + * The second at which the billing cycle ends. + * Must be an integer between 0 and 59, inclusive. */ - year?: BillingCycle.Year; + second?: number; } + } - export interface Payer { + export namespace Week { + export interface Time { /** - * The ID of the Billing Profile object which determines how a bill is paid. + * The hour at which the billing cycle ends. + * This must be an integer between 0 and 23, inclusive. + * 0 represents midnight, and 23 represents 11 PM. */ - billing_profile: string; + hour: number; /** - * The ID of the Customer object. + * The minute at which the billing cycle ends. + * Must be an integer between 0 and 59, inclusive. */ - customer?: string; + minute: number; /** - * A string identifying the type of the payer. Currently the only supported value is `customer`. + * The second at which the billing cycle ends. + * Must be an integer between 0 and 59, inclusive. */ - type: 'customer'; + second?: number; } + } - export interface Settings { - /** - * Settings that configure bills generation, which includes calculating totals, tax, and presenting invoices. - */ - bill?: Settings.Bill; - + export namespace Year { + export interface Time { /** - * Settings that configure and manage the behavior of collecting payments. + * The hour at which the billing cycle ends. + * This must be an integer between 0 and 23, inclusive. + * 0 represents midnight, and 23 represents 11 PM. */ - collection?: Settings.Collection; - } + hour: number; - export interface SettingsData { /** - * Expanded bill settings data with actual configuration values. + * The minute at which the billing cycle ends. + * Must be an integer between 0 and 59, inclusive. */ - bill: SettingsData.Bill; + minute: number; /** - * Expanded collection settings data with actual configuration values. + * The second at which the billing cycle ends. + * Must be an integer between 0 and 59, inclusive. */ - collection: SettingsData.Collection; + second?: number; } + } + } - export type Status = 'active' | 'canceled'; + export namespace Settings { + export interface Bill { + /** + * The ID of the referenced settings object. + */ + id: string; - export namespace BillingCycle { - export interface Day { - /** - * The time at which the billing cycle ends. - */ - time: Day.Time; - } + /** + * Returns the Settings Version when the cadence is pinned to a specific version. + */ + version?: string; + } - export interface Month { - /** - * The day to anchor the billing on for a type="month" billing cycle from 1-31. - * If this number is greater than the number of days in the month being billed, - * this anchors to the last day of the month. - */ - day_of_month: number; + export interface Collection { + /** + * The ID of the referenced settings object. + */ + id: string; - /** - * The month to anchor the billing on for a type="month" billing cycle from - * 1-12. Occurrences are calculated from the month anchor. - */ - month_of_year?: number; + /** + * Returns the Settings Version when the cadence is pinned to a specific version. + */ + version?: string; + } + } - /** - * The time at which the billing cycle ends. - */ - time: Month.Time; - } + export namespace SettingsData { + export interface Bill { + /** + * Settings related to calculating a bill. + */ + calculation: Bill.Calculation; - export type Type = 'day' | 'month' | 'week' | 'year'; + /** + * Settings related to invoice behavior. + */ + invoice: Bill.Invoice; - export interface Week { - /** - * The day of the week to bill the type=week billing cycle on. - * Numbered from 1-7 for Monday to Sunday respectively, based on the ISO-8601 week day numbering. - */ - day_of_week: number; + /** + * The ID of the invoice rendering template to be used when generating invoices. + */ + invoice_rendering_template?: string; + } + + export interface Collection { + /** + * Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay this + * bill at the end of the period using the payment method attached to the billing profile. When sending an invoice, + * Stripe emails your billing profile an invoice with payment instructions. + * Defaults to automatic. + */ + collection_method: Collection.CollectionMethod; + + /** + * Email delivery settings. + */ + email_delivery: Collection.EmailDelivery; + + /** + * The ID of the PaymentMethodConfiguration object, which controls which payment methods are displayed to your customers. + */ + payment_method_configuration: string; + /** + * Payment Method specific configuration stored on the object. + */ + payment_method_options: Collection.PaymentMethodOptions; + } + + export namespace Bill { + export interface Calculation { + /** + * Settings for calculating tax. + */ + tax?: Calculation.Tax; + } + + export interface Invoice { + /** + * The amount of time until the invoice is overdue for payment. + */ + time_until_due?: Invoice.TimeUntilDue; + } + + export namespace Calculation { + export interface Tax { /** - * The time at which the billing cycle ends. + * Determines if tax is calculated automatically based on a PTC or manually based on rules defined by the business. Defaults to "manual". */ - time: Week.Time; + type: Tax.Type; } - export interface Year { - /** - * The day to anchor the billing on for a type="month" billing cycle from 1-31. - * If this number is greater than the number of days in the month being billed, - * this anchors to the last day of the month. - */ - day_of_month: number; + export namespace Tax { + export type Type = 'automatic' | 'manual'; + } + } + export namespace Invoice { + export interface TimeUntilDue { /** - * The month to bill on from 1-12. If not provided, this defaults to the month the cadence was created. + * The interval unit for the time until due. */ - month_of_year: number; + interval: TimeUntilDue.Interval; /** - * The time at which the billing cycle ends. + * The number of interval units. For example, if interval=day and interval_count=30, + * the invoice is due in 30 days. */ - time: Year.Time; + interval_count: number; } - export namespace Day { - export interface Time { - /** - * The hour at which the billing cycle ends. - * This must be an integer between 0 and 23, inclusive. - * 0 represents midnight, and 23 represents 11 PM. - */ - hour: number; - - /** - * The minute at which the billing cycle ends. - * Must be an integer between 0 and 59, inclusive. - */ - minute: number; - - /** - * The second at which the billing cycle ends. - * Must be an integer between 0 and 59, inclusive. - */ - second?: number; - } + export namespace TimeUntilDue { + export type Interval = 'day' | 'month' | 'week' | 'year'; } + } + } - export namespace Month { - export interface Time { - /** - * The hour at which the billing cycle ends. - * This must be an integer between 0 and 23, inclusive. - * 0 represents midnight, and 23 represents 11 PM. - */ - hour: number; + export namespace Collection { + export type CollectionMethod = 'automatic' | 'send_invoice'; - /** - * The minute at which the billing cycle ends. - * Must be an integer between 0 and 59, inclusive. - */ - minute: number; + export interface EmailDelivery { + /** + * Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. + */ + payment_due?: EmailDelivery.PaymentDue; + } - /** - * The second at which the billing cycle ends. - * Must be an integer between 0 and 59, inclusive. - */ - second?: number; - } - } + export interface PaymentMethodOptions { + /** + * This sub-hash contains details about the Canadian pre-authorized debit payment method options. + */ + acss_debit?: PaymentMethodOptions.AcssDebit; - export namespace Week { - export interface Time { - /** - * The hour at which the billing cycle ends. - * This must be an integer between 0 and 23, inclusive. - * 0 represents midnight, and 23 represents 11 PM. - */ - hour: number; + /** + * This sub-hash contains details about the Bancontact payment method. + */ + bancontact?: PaymentMethodOptions.Bancontact; - /** - * The minute at which the billing cycle ends. - * Must be an integer between 0 and 59, inclusive. - */ - minute: number; + /** + * This sub-hash contains details about the Card payment method options. + */ + card?: PaymentMethodOptions.Card; - /** - * The second at which the billing cycle ends. - * Must be an integer between 0 and 59, inclusive. - */ - second?: number; - } - } + /** + * This sub-hash contains details about the Bank transfer payment method options. + */ + customer_balance?: PaymentMethodOptions.CustomerBalance; - export namespace Year { - export interface Time { - /** - * The hour at which the billing cycle ends. - * This must be an integer between 0 and 23, inclusive. - * 0 represents midnight, and 23 represents 11 PM. - */ - hour: number; + /** + * This sub-hash contains details about the Konbini payment method options. + */ + konbini?: PaymentMethodOptions.Konbini; - /** - * The minute at which the billing cycle ends. - * Must be an integer between 0 and 59, inclusive. - */ - minute: number; + /** + * This sub-hash contains details about the SEPA Direct Debit payment method options. + */ + sepa_debit?: PaymentMethodOptions.SepaDebit; - /** - * The second at which the billing cycle ends. - * Must be an integer between 0 and 59, inclusive. - */ - second?: number; - } - } + /** + * This sub-hash contains details about the ACH direct debit payment method options. + */ + us_bank_account?: PaymentMethodOptions.UsBankAccount; } - export namespace Settings { - export interface Bill { + export namespace EmailDelivery { + export interface PaymentDue { /** - * The ID of the referenced settings object. + * If true an email for the invoice would be generated and sent out. */ - id: string; + enabled: boolean; /** - * Returns the Settings Version when the cadence is pinned to a specific version. + * If true the payment link to hosted invoice page would be included in email and PDF of the invoice. */ - version?: string; + include_payment_link: boolean; } + } - export interface Collection { + export namespace PaymentMethodOptions { + export interface AcssDebit { /** - * The ID of the referenced settings object. + * Additional fields for Mandate creation. */ - id: string; + mandate_options?: AcssDebit.MandateOptions; /** - * Returns the Settings Version when the cadence is pinned to a specific version. + * Verification method. */ - version?: string; + verification_method?: AcssDebit.VerificationMethod; } - } - export namespace SettingsData { - export interface Bill { + export interface Bancontact { + /** + * Preferred language of the Bancontact authorization page that the customer is redirected to. + */ + preferred_language?: Bancontact.PreferredLanguage; + } + + export interface Card { /** - * Settings related to calculating a bill. + * Configuration options for setting up an eMandate for cards issued in India. */ - calculation: Bill.Calculation; + mandate_options?: Card.MandateOptions; /** - * Settings related to invoice behavior. + * Selected network to process the payment on. Depends on the available networks of the card. */ - invoice: Bill.Invoice; + network?: string; /** - * The ID of the invoice rendering template to be used when generating invoices. + * An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers + * for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). + * However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. + * Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. */ - invoice_rendering_template?: string; + request_three_d_secure?: Card.RequestThreeDSecure; } - export interface Collection { + export interface CustomerBalance { /** - * Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay this - * bill at the end of the period using the payment method attached to the billing profile. When sending an invoice, - * Stripe emails your billing profile an invoice with payment instructions. - * Defaults to automatic. + * Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. */ - collection_method: Collection.CollectionMethod; + bank_transfer?: CustomerBalance.BankTransfer; /** - * Email delivery settings. + * The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`. */ - email_delivery: Collection.EmailDelivery; + funding_type?: 'bank_transfer'; + } + + export interface Konbini {} + + export interface SepaDebit {} + export interface UsBankAccount { /** - * The ID of the PaymentMethodConfiguration object, which controls which payment methods are displayed to your customers. + * Additional fields for Financial Connections Session creation. */ - payment_method_configuration: string; + financial_connections: UsBankAccount.FinancialConnections; /** - * Payment Method specific configuration stored on the object. + * Verification method. */ - payment_method_options: Collection.PaymentMethodOptions; + verification_method: UsBankAccount.VerificationMethod; } - export namespace Bill { - export interface Calculation { + export namespace AcssDebit { + export interface MandateOptions { /** - * Settings for calculating tax. + * Transaction type of the mandate. */ - tax?: Calculation.Tax; + transaction_type?: MandateOptions.TransactionType; } - export interface Invoice { - /** - * The amount of time until the invoice is overdue for payment. - */ - time_until_due?: Invoice.TimeUntilDue; - } - - export namespace Calculation { - export interface Tax { - /** - * Determines if tax is calculated automatically based on a PTC or manually based on rules defined by the business. Defaults to "manual". - */ - type: Tax.Type; - } - - export namespace Tax { - export type Type = 'automatic' | 'manual'; - } - } - - export namespace Invoice { - export interface TimeUntilDue { - /** - * The interval unit for the time until due. - */ - interval: TimeUntilDue.Interval; - - /** - * The number of interval units. For example, if interval=day and interval_count=30, - * the invoice is due in 30 days. - */ - interval_count: number; - } + export type VerificationMethod = + | 'automatic' + | 'instant' + | 'microdeposits'; - export namespace TimeUntilDue { - export type Interval = 'day' | 'month' | 'week' | 'year'; - } + export namespace MandateOptions { + export type TransactionType = 'business' | 'personal'; } } - export namespace Collection { - export type CollectionMethod = 'automatic' | 'send_invoice'; - - export interface EmailDelivery { - /** - * Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. - */ - payment_due?: EmailDelivery.PaymentDue; - } + export namespace Bancontact { + export type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl'; + } - export interface PaymentMethodOptions { + export namespace Card { + export interface MandateOptions { /** - * This sub-hash contains details about the Canadian pre-authorized debit payment method options. + * Amount to be charged for future payments. */ - acss_debit?: PaymentMethodOptions.AcssDebit; + amount?: bigint; /** - * This sub-hash contains details about the Bancontact payment method. + * The AmountType for the mandate. One of `fixed` or `maximum`. */ - bancontact?: PaymentMethodOptions.Bancontact; + amount_type?: MandateOptions.AmountType; /** - * This sub-hash contains details about the Card payment method options. + * A description of the mandate that is meant to be displayed to the customer. */ - card?: PaymentMethodOptions.Card; + description?: string; + } - /** - * This sub-hash contains details about the Bank transfer payment method options. - */ - customer_balance?: PaymentMethodOptions.CustomerBalance; + export type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; - /** - * This sub-hash contains details about the Konbini payment method options. - */ - konbini?: PaymentMethodOptions.Konbini; + export namespace MandateOptions { + export type AmountType = 'fixed' | 'maximum'; + } + } + export namespace CustomerBalance { + export interface BankTransfer { /** - * This sub-hash contains details about the SEPA Direct Debit payment method options. + * Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`. */ - sepa_debit?: PaymentMethodOptions.SepaDebit; + eu_bank_transfer?: BankTransfer.EuBankTransfer; /** - * This sub-hash contains details about the ACH direct debit payment method options. + * The bank transfer type that can be used for funding. */ - us_bank_account?: PaymentMethodOptions.UsBankAccount; - } - - export namespace EmailDelivery { - export interface PaymentDue { - /** - * If true an email for the invoice would be generated and sent out. - */ - enabled: boolean; - - /** - * If true the payment link to hosted invoice page would be included in email and PDF of the invoice. - */ - include_payment_link: boolean; - } + type?: BankTransfer.Type; } - export namespace PaymentMethodOptions { - export interface AcssDebit { + export namespace BankTransfer { + export interface EuBankTransfer { /** - * Additional fields for Mandate creation. + * The desired country code of the bank account information. */ - mandate_options?: AcssDebit.MandateOptions; - - /** - * Verification method. - */ - verification_method?: AcssDebit.VerificationMethod; + country: EuBankTransfer.Country; } - export interface Bancontact { - /** - * Preferred language of the Bancontact authorization page that the customer is redirected to. - */ - preferred_language?: Bancontact.PreferredLanguage; - } + export type Type = + | 'eu_bank_transfer' + | 'gb_bank_transfer' + | 'jp_bank_transfer' + | 'mx_bank_transfer' + | 'us_bank_transfer'; - export interface Card { - /** - * Configuration options for setting up an eMandate for cards issued in India. - */ - mandate_options?: Card.MandateOptions; - - /** - * Selected network to process the payment on. Depends on the available networks of the card. - */ - network?: string; - - /** - * An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - * for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). - * However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - * Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. - */ - request_three_d_secure?: Card.RequestThreeDSecure; + export namespace EuBankTransfer { + export type Country = 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; } + } + } - export interface CustomerBalance { - /** - * Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. - */ - bank_transfer?: CustomerBalance.BankTransfer; - - /** - * The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`. - */ - funding_type?: 'bank_transfer'; - } + export namespace UsBankAccount { + export interface FinancialConnections { + /** + * Provide filters for the linked accounts that the customer can select for the payment method. + */ + filters?: FinancialConnections.Filters; - export interface Konbini {} + /** + * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. + */ + permissions: Array; - export interface SepaDebit {} + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch: Array; + } - export interface UsBankAccount { - /** - * Additional fields for Financial Connections Session creation. - */ - financial_connections: UsBankAccount.FinancialConnections; + export type VerificationMethod = + | 'automatic' + | 'instant' + | 'microdeposits'; + export namespace FinancialConnections { + export interface Filters { /** - * Verification method. + * The account subcategories to use to filter for selectable accounts. */ - verification_method: UsBankAccount.VerificationMethod; - } - - export namespace AcssDebit { - export interface MandateOptions { - /** - * Transaction type of the mandate. - */ - transaction_type?: MandateOptions.TransactionType; - } - - export type VerificationMethod = - | 'automatic' - | 'instant' - | 'microdeposits'; - - export namespace MandateOptions { - export type TransactionType = 'business' | 'personal'; - } + account_subcategories: Array; } - export namespace Bancontact { - export type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl'; - } + export type Permission = + | 'balances' + | 'ownership' + | 'payment_method' + | 'transactions'; - export namespace Card { - export interface MandateOptions { - /** - * Amount to be charged for future payments. - */ - amount?: bigint; - - /** - * The AmountType for the mandate. One of `fixed` or `maximum`. - */ - amount_type?: MandateOptions.AmountType; - - /** - * A description of the mandate that is meant to be displayed to the customer. - */ - description?: string; - } - - export type RequestThreeDSecure = - | 'any' - | 'automatic' - | 'challenge'; - - export namespace MandateOptions { - export type AmountType = 'fixed' | 'maximum'; - } - } - - export namespace CustomerBalance { - export interface BankTransfer { - /** - * Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`. - */ - eu_bank_transfer?: BankTransfer.EuBankTransfer; - - /** - * The bank transfer type that can be used for funding. - */ - type?: BankTransfer.Type; - } - - export namespace BankTransfer { - export interface EuBankTransfer { - /** - * The desired country code of the bank account information. - */ - country: EuBankTransfer.Country; - } - - export type Type = - | 'eu_bank_transfer' - | 'gb_bank_transfer' - | 'jp_bank_transfer' - | 'mx_bank_transfer' - | 'us_bank_transfer'; - - export namespace EuBankTransfer { - export type Country = 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; - } - } - } + export type Prefetch = 'balances' | 'ownership' | 'transactions'; - export namespace UsBankAccount { - export interface FinancialConnections { - /** - * Provide filters for the linked accounts that the customer can select for the payment method. - */ - filters?: FinancialConnections.Filters; - - /** - * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. - */ - permissions: Array; - - /** - * List of data features that you would like to retrieve upon account creation. - */ - prefetch: Array; - } - - export type VerificationMethod = - | 'automatic' - | 'instant' - | 'microdeposits'; - - export namespace FinancialConnections { - export interface Filters { - /** - * The account subcategories to use to filter for selectable accounts. - */ - account_subcategories: Array; - } - - export type Permission = - | 'balances' - | 'ownership' - | 'payment_method' - | 'transactions'; - - export type Prefetch = - | 'balances' - | 'ownership' - | 'transactions'; - - export namespace Filters { - export type AccountSubcategory = 'checking' | 'savings'; - } - } + export namespace Filters { + export type AccountSubcategory = 'checking' | 'savings'; } } } diff --git a/src/resources/V2/Billing/CollectionSettingVersions.ts b/src/resources/V2/Billing/CollectionSettingVersions.ts index 29ebb388b6..334563d52c 100644 --- a/src/resources/V2/Billing/CollectionSettingVersions.ts +++ b/src/resources/V2/Billing/CollectionSettingVersions.ts @@ -18,7 +18,7 @@ export interface CollectionSettingVersion { * Stripe emails your billing profile an invoice with payment instructions. * Defaults to automatic. */ - collection_method?: V2.Billing.CollectionSettingVersion.CollectionMethod; + collection_method?: CollectionSettingVersion.CollectionMethod; /** * Timestamp of when the object was created. @@ -28,7 +28,7 @@ export interface CollectionSettingVersion { /** * Email delivery settings. */ - email_delivery?: V2.Billing.CollectionSettingVersion.EmailDelivery; + email_delivery?: CollectionSettingVersion.EmailDelivery; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -43,263 +43,259 @@ export interface CollectionSettingVersion { /** * Payment Method specific configuration stored on the object. */ - payment_method_options?: V2.Billing.CollectionSettingVersion.PaymentMethodOptions; + payment_method_options?: CollectionSettingVersion.PaymentMethodOptions; } -export namespace V2 { - export namespace Billing { - export namespace CollectionSettingVersion { - export type CollectionMethod = 'automatic' | 'send_invoice'; +export namespace CollectionSettingVersion { + export type CollectionMethod = 'automatic' | 'send_invoice'; + + export interface EmailDelivery { + /** + * Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. + */ + payment_due?: EmailDelivery.PaymentDue; + } - export interface EmailDelivery { - /** - * Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. - */ - payment_due?: EmailDelivery.PaymentDue; - } + export interface PaymentMethodOptions { + /** + * This sub-hash contains details about the Canadian pre-authorized debit payment method options. + */ + acss_debit?: PaymentMethodOptions.AcssDebit; + + /** + * This sub-hash contains details about the Bancontact payment method. + */ + bancontact?: PaymentMethodOptions.Bancontact; + + /** + * This sub-hash contains details about the Card payment method options. + */ + card?: PaymentMethodOptions.Card; + + /** + * This sub-hash contains details about the Bank transfer payment method options. + */ + customer_balance?: PaymentMethodOptions.CustomerBalance; + + /** + * This sub-hash contains details about the Konbini payment method options. + */ + konbini?: PaymentMethodOptions.Konbini; + + /** + * This sub-hash contains details about the SEPA Direct Debit payment method options. + */ + sepa_debit?: PaymentMethodOptions.SepaDebit; + + /** + * This sub-hash contains details about the ACH direct debit payment method options. + */ + us_bank_account?: PaymentMethodOptions.UsBankAccount; + } - export interface PaymentMethodOptions { - /** - * This sub-hash contains details about the Canadian pre-authorized debit payment method options. - */ - acss_debit?: PaymentMethodOptions.AcssDebit; + export namespace EmailDelivery { + export interface PaymentDue { + /** + * If true an email for the invoice would be generated and sent out. + */ + enabled: boolean; + + /** + * If true the payment link to hosted invoice page would be included in email and PDF of the invoice. + */ + include_payment_link: boolean; + } + } - /** - * This sub-hash contains details about the Bancontact payment method. - */ - bancontact?: PaymentMethodOptions.Bancontact; + export namespace PaymentMethodOptions { + export interface AcssDebit { + /** + * Additional fields for Mandate creation. + */ + mandate_options?: AcssDebit.MandateOptions; + + /** + * Verification method. + */ + verification_method?: AcssDebit.VerificationMethod; + } - /** - * This sub-hash contains details about the Card payment method options. - */ - card?: PaymentMethodOptions.Card; + export interface Bancontact { + /** + * Preferred language of the Bancontact authorization page that the customer is redirected to. + */ + preferred_language?: Bancontact.PreferredLanguage; + } + + export interface Card { + /** + * Configuration options for setting up an eMandate for cards issued in India. + */ + mandate_options?: Card.MandateOptions; + + /** + * Selected network to process the payment on. Depends on the available networks of the card. + */ + network?: string; + + /** + * An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers + * for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). + * However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. + * Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + */ + request_three_d_secure?: Card.RequestThreeDSecure; + } + + export interface CustomerBalance { + /** + * Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. + */ + bank_transfer?: CustomerBalance.BankTransfer; + + /** + * The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`. + */ + funding_type?: 'bank_transfer'; + } + export interface Konbini {} + + export interface SepaDebit {} + + export interface UsBankAccount { + /** + * Additional fields for Financial Connections Session creation. + */ + financial_connections: UsBankAccount.FinancialConnections; + + /** + * Verification method. + */ + verification_method: UsBankAccount.VerificationMethod; + } + + export namespace AcssDebit { + export interface MandateOptions { /** - * This sub-hash contains details about the Bank transfer payment method options. + * Transaction type of the mandate. */ - customer_balance?: PaymentMethodOptions.CustomerBalance; + transaction_type?: MandateOptions.TransactionType; + } + + export type VerificationMethod = + | 'automatic' + | 'instant' + | 'microdeposits'; + + export namespace MandateOptions { + export type TransactionType = 'business' | 'personal'; + } + } + export namespace Bancontact { + export type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl'; + } + + export namespace Card { + export interface MandateOptions { /** - * This sub-hash contains details about the Konbini payment method options. + * Amount to be charged for future payments. */ - konbini?: PaymentMethodOptions.Konbini; + amount?: bigint; /** - * This sub-hash contains details about the SEPA Direct Debit payment method options. + * The AmountType for the mandate. One of `fixed` or `maximum`. */ - sepa_debit?: PaymentMethodOptions.SepaDebit; + amount_type?: MandateOptions.AmountType; /** - * This sub-hash contains details about the ACH direct debit payment method options. + * A description of the mandate that is meant to be displayed to the customer. */ - us_bank_account?: PaymentMethodOptions.UsBankAccount; + description?: string; } - export namespace EmailDelivery { - export interface PaymentDue { - /** - * If true an email for the invoice would be generated and sent out. - */ - enabled: boolean; + export type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; - /** - * If true the payment link to hosted invoice page would be included in email and PDF of the invoice. - */ - include_payment_link: boolean; - } + export namespace MandateOptions { + export type AmountType = 'fixed' | 'maximum'; } + } - export namespace PaymentMethodOptions { - export interface AcssDebit { - /** - * Additional fields for Mandate creation. - */ - mandate_options?: AcssDebit.MandateOptions; + export namespace CustomerBalance { + export interface BankTransfer { + /** + * Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`. + */ + eu_bank_transfer?: BankTransfer.EuBankTransfer; - /** - * Verification method. - */ - verification_method?: AcssDebit.VerificationMethod; - } + /** + * The bank transfer type that can be used for funding. + */ + type?: BankTransfer.Type; + } - export interface Bancontact { + export namespace BankTransfer { + export interface EuBankTransfer { /** - * Preferred language of the Bancontact authorization page that the customer is redirected to. + * The desired country code of the bank account information. */ - preferred_language?: Bancontact.PreferredLanguage; + country: EuBankTransfer.Country; } - export interface Card { - /** - * Configuration options for setting up an eMandate for cards issued in India. - */ - mandate_options?: Card.MandateOptions; - - /** - * Selected network to process the payment on. Depends on the available networks of the card. - */ - network?: string; + export type Type = + | 'eu_bank_transfer' + | 'gb_bank_transfer' + | 'jp_bank_transfer' + | 'mx_bank_transfer' + | 'us_bank_transfer'; - /** - * An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - * for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). - * However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - * Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. - */ - request_three_d_secure?: Card.RequestThreeDSecure; + export namespace EuBankTransfer { + export type Country = 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; } + } + } - export interface CustomerBalance { - /** - * Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. - */ - bank_transfer?: CustomerBalance.BankTransfer; - - /** - * The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`. - */ - funding_type?: 'bank_transfer'; - } + export namespace UsBankAccount { + export interface FinancialConnections { + /** + * Provide filters for the linked accounts that the customer can select for the payment method. + */ + filters?: FinancialConnections.Filters; - export interface Konbini {} + /** + * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. + */ + permissions: Array; - export interface SepaDebit {} + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch: Array; + } - export interface UsBankAccount { - /** - * Additional fields for Financial Connections Session creation. - */ - financial_connections: UsBankAccount.FinancialConnections; + export type VerificationMethod = + | 'automatic' + | 'instant' + | 'microdeposits'; + export namespace FinancialConnections { + export interface Filters { /** - * Verification method. + * The account subcategories to use to filter for selectable accounts. */ - verification_method: UsBankAccount.VerificationMethod; + account_subcategories: Array; } - export namespace AcssDebit { - export interface MandateOptions { - /** - * Transaction type of the mandate. - */ - transaction_type?: MandateOptions.TransactionType; - } - - export type VerificationMethod = - | 'automatic' - | 'instant' - | 'microdeposits'; - - export namespace MandateOptions { - export type TransactionType = 'business' | 'personal'; - } - } + export type Permission = + | 'balances' + | 'ownership' + | 'payment_method' + | 'transactions'; - export namespace Bancontact { - export type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl'; - } - - export namespace Card { - export interface MandateOptions { - /** - * Amount to be charged for future payments. - */ - amount?: bigint; - - /** - * The AmountType for the mandate. One of `fixed` or `maximum`. - */ - amount_type?: MandateOptions.AmountType; - - /** - * A description of the mandate that is meant to be displayed to the customer. - */ - description?: string; - } - - export type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; - - export namespace MandateOptions { - export type AmountType = 'fixed' | 'maximum'; - } - } - - export namespace CustomerBalance { - export interface BankTransfer { - /** - * Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`. - */ - eu_bank_transfer?: BankTransfer.EuBankTransfer; - - /** - * The bank transfer type that can be used for funding. - */ - type?: BankTransfer.Type; - } - - export namespace BankTransfer { - export interface EuBankTransfer { - /** - * The desired country code of the bank account information. - */ - country: EuBankTransfer.Country; - } - - export type Type = - | 'eu_bank_transfer' - | 'gb_bank_transfer' - | 'jp_bank_transfer' - | 'mx_bank_transfer' - | 'us_bank_transfer'; - - export namespace EuBankTransfer { - export type Country = 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; - } - } - } + export type Prefetch = 'balances' | 'ownership' | 'transactions'; - export namespace UsBankAccount { - export interface FinancialConnections { - /** - * Provide filters for the linked accounts that the customer can select for the payment method. - */ - filters?: FinancialConnections.Filters; - - /** - * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. - */ - permissions: Array; - - /** - * List of data features that you would like to retrieve upon account creation. - */ - prefetch: Array; - } - - export type VerificationMethod = - | 'automatic' - | 'instant' - | 'microdeposits'; - - export namespace FinancialConnections { - export interface Filters { - /** - * The account subcategories to use to filter for selectable accounts. - */ - account_subcategories: Array; - } - - export type Permission = - | 'balances' - | 'ownership' - | 'payment_method' - | 'transactions'; - - export type Prefetch = 'balances' | 'ownership' | 'transactions'; - - export namespace Filters { - export type AccountSubcategory = 'checking' | 'savings'; - } - } + export namespace Filters { + export type AccountSubcategory = 'checking' | 'savings'; } } } diff --git a/src/resources/V2/Billing/CollectionSettings.ts b/src/resources/V2/Billing/CollectionSettings.ts index cc654f6ff6..846ed574e4 100644 --- a/src/resources/V2/Billing/CollectionSettings.ts +++ b/src/resources/V2/Billing/CollectionSettings.ts @@ -218,7 +218,7 @@ export interface CollectionSetting { * Stripe emails your billing profile an invoice with payment instructions. * Defaults to automatic. */ - collection_method?: V2.Billing.CollectionSetting.CollectionMethod; + collection_method?: CollectionSetting.CollectionMethod; /** * Timestamp of when the object was created. @@ -233,7 +233,7 @@ export interface CollectionSetting { /** * Email delivery settings. */ - email_delivery?: V2.Billing.CollectionSetting.EmailDelivery; + email_delivery?: CollectionSetting.EmailDelivery; /** * The latest version of the current settings object. This is @@ -266,263 +266,259 @@ export interface CollectionSetting { /** * Payment Method specific configuration stored on the object. */ - payment_method_options?: V2.Billing.CollectionSetting.PaymentMethodOptions; + payment_method_options?: CollectionSetting.PaymentMethodOptions; } -export namespace V2 { - export namespace Billing { - export namespace CollectionSetting { - export type CollectionMethod = 'automatic' | 'send_invoice'; +export namespace CollectionSetting { + export type CollectionMethod = 'automatic' | 'send_invoice'; + + export interface EmailDelivery { + /** + * Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. + */ + payment_due?: EmailDelivery.PaymentDue; + } - export interface EmailDelivery { - /** - * Controls emails for when the payment is due. For example after the invoice is finalized and transitions to Open state. - */ - payment_due?: EmailDelivery.PaymentDue; - } + export interface PaymentMethodOptions { + /** + * This sub-hash contains details about the Canadian pre-authorized debit payment method options. + */ + acss_debit?: PaymentMethodOptions.AcssDebit; + + /** + * This sub-hash contains details about the Bancontact payment method. + */ + bancontact?: PaymentMethodOptions.Bancontact; + + /** + * This sub-hash contains details about the Card payment method options. + */ + card?: PaymentMethodOptions.Card; + + /** + * This sub-hash contains details about the Bank transfer payment method options. + */ + customer_balance?: PaymentMethodOptions.CustomerBalance; + + /** + * This sub-hash contains details about the Konbini payment method options. + */ + konbini?: PaymentMethodOptions.Konbini; + + /** + * This sub-hash contains details about the SEPA Direct Debit payment method options. + */ + sepa_debit?: PaymentMethodOptions.SepaDebit; + + /** + * This sub-hash contains details about the ACH direct debit payment method options. + */ + us_bank_account?: PaymentMethodOptions.UsBankAccount; + } - export interface PaymentMethodOptions { - /** - * This sub-hash contains details about the Canadian pre-authorized debit payment method options. - */ - acss_debit?: PaymentMethodOptions.AcssDebit; + export namespace EmailDelivery { + export interface PaymentDue { + /** + * If true an email for the invoice would be generated and sent out. + */ + enabled: boolean; - /** - * This sub-hash contains details about the Bancontact payment method. - */ - bancontact?: PaymentMethodOptions.Bancontact; + /** + * If true the payment link to hosted invoice page would be included in email and PDF of the invoice. + */ + include_payment_link: boolean; + } + } - /** - * This sub-hash contains details about the Card payment method options. - */ - card?: PaymentMethodOptions.Card; + export namespace PaymentMethodOptions { + export interface AcssDebit { + /** + * Additional fields for Mandate creation. + */ + mandate_options?: AcssDebit.MandateOptions; + + /** + * Verification method. + */ + verification_method?: AcssDebit.VerificationMethod; + } + + export interface Bancontact { + /** + * Preferred language of the Bancontact authorization page that the customer is redirected to. + */ + preferred_language?: Bancontact.PreferredLanguage; + } + + export interface Card { + /** + * Configuration options for setting up an eMandate for cards issued in India. + */ + mandate_options?: Card.MandateOptions; + + /** + * Selected network to process the payment on. Depends on the available networks of the card. + */ + network?: string; + + /** + * An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers + * for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). + * However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. + * Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. + */ + request_three_d_secure?: Card.RequestThreeDSecure; + } + + export interface CustomerBalance { + /** + * Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. + */ + bank_transfer?: CustomerBalance.BankTransfer; + /** + * The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`. + */ + funding_type?: 'bank_transfer'; + } + + export interface Konbini {} + + export interface SepaDebit {} + + export interface UsBankAccount { + /** + * Additional fields for Financial Connections Session creation. + */ + financial_connections: UsBankAccount.FinancialConnections; + + /** + * Verification method. + */ + verification_method: UsBankAccount.VerificationMethod; + } + + export namespace AcssDebit { + export interface MandateOptions { /** - * This sub-hash contains details about the Bank transfer payment method options. + * Transaction type of the mandate. */ - customer_balance?: PaymentMethodOptions.CustomerBalance; + transaction_type?: MandateOptions.TransactionType; + } + + export type VerificationMethod = + | 'automatic' + | 'instant' + | 'microdeposits'; + export namespace MandateOptions { + export type TransactionType = 'business' | 'personal'; + } + } + + export namespace Bancontact { + export type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl'; + } + + export namespace Card { + export interface MandateOptions { /** - * This sub-hash contains details about the Konbini payment method options. + * Amount to be charged for future payments. */ - konbini?: PaymentMethodOptions.Konbini; + amount?: bigint; /** - * This sub-hash contains details about the SEPA Direct Debit payment method options. + * The AmountType for the mandate. One of `fixed` or `maximum`. */ - sepa_debit?: PaymentMethodOptions.SepaDebit; + amount_type?: MandateOptions.AmountType; /** - * This sub-hash contains details about the ACH direct debit payment method options. + * A description of the mandate that is meant to be displayed to the customer. */ - us_bank_account?: PaymentMethodOptions.UsBankAccount; + description?: string; } - export namespace EmailDelivery { - export interface PaymentDue { - /** - * If true an email for the invoice would be generated and sent out. - */ - enabled: boolean; + export type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; - /** - * If true the payment link to hosted invoice page would be included in email and PDF of the invoice. - */ - include_payment_link: boolean; - } + export namespace MandateOptions { + export type AmountType = 'fixed' | 'maximum'; } + } - export namespace PaymentMethodOptions { - export interface AcssDebit { - /** - * Additional fields for Mandate creation. - */ - mandate_options?: AcssDebit.MandateOptions; + export namespace CustomerBalance { + export interface BankTransfer { + /** + * Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`. + */ + eu_bank_transfer?: BankTransfer.EuBankTransfer; - /** - * Verification method. - */ - verification_method?: AcssDebit.VerificationMethod; - } + /** + * The bank transfer type that can be used for funding. + */ + type?: BankTransfer.Type; + } - export interface Bancontact { + export namespace BankTransfer { + export interface EuBankTransfer { /** - * Preferred language of the Bancontact authorization page that the customer is redirected to. + * The desired country code of the bank account information. */ - preferred_language?: Bancontact.PreferredLanguage; + country: EuBankTransfer.Country; } - export interface Card { - /** - * Configuration options for setting up an eMandate for cards issued in India. - */ - mandate_options?: Card.MandateOptions; - - /** - * Selected network to process the payment on. Depends on the available networks of the card. - */ - network?: string; + export type Type = + | 'eu_bank_transfer' + | 'gb_bank_transfer' + | 'jp_bank_transfer' + | 'mx_bank_transfer' + | 'us_bank_transfer'; - /** - * An advanced option 3D Secure. We strongly recommend that you rely on our SCA Engine to automatically prompt your customers - * for authentication based on risk level and [other requirements](https://docs.stripe.com/strong-customer-authentication). - * However, if you wish to request 3D Secure based on logic from your own fraud engine, provide this option. - * Read our guide on [manually requesting 3D Secure](https://docs.stripe.com/payments/3d-secure/authentication-flow#manual-three-ds) for more information on how this configuration interacts with Radar and our SCA Engine. - */ - request_three_d_secure?: Card.RequestThreeDSecure; + export namespace EuBankTransfer { + export type Country = 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; } + } + } - export interface CustomerBalance { - /** - * Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`. - */ - bank_transfer?: CustomerBalance.BankTransfer; - - /** - * The funding method type to be used when there are not enough funds in the customer balance. Currently the only supported value is `bank_transfer`. - */ - funding_type?: 'bank_transfer'; - } + export namespace UsBankAccount { + export interface FinancialConnections { + /** + * Provide filters for the linked accounts that the customer can select for the payment method. + */ + filters?: FinancialConnections.Filters; - export interface Konbini {} + /** + * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. + */ + permissions: Array; - export interface SepaDebit {} + /** + * List of data features that you would like to retrieve upon account creation. + */ + prefetch: Array; + } - export interface UsBankAccount { - /** - * Additional fields for Financial Connections Session creation. - */ - financial_connections: UsBankAccount.FinancialConnections; + export type VerificationMethod = + | 'automatic' + | 'instant' + | 'microdeposits'; + export namespace FinancialConnections { + export interface Filters { /** - * Verification method. + * The account subcategories to use to filter for selectable accounts. */ - verification_method: UsBankAccount.VerificationMethod; - } - - export namespace AcssDebit { - export interface MandateOptions { - /** - * Transaction type of the mandate. - */ - transaction_type?: MandateOptions.TransactionType; - } - - export type VerificationMethod = - | 'automatic' - | 'instant' - | 'microdeposits'; - - export namespace MandateOptions { - export type TransactionType = 'business' | 'personal'; - } - } - - export namespace Bancontact { - export type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl'; - } - - export namespace Card { - export interface MandateOptions { - /** - * Amount to be charged for future payments. - */ - amount?: bigint; - - /** - * The AmountType for the mandate. One of `fixed` or `maximum`. - */ - amount_type?: MandateOptions.AmountType; - - /** - * A description of the mandate that is meant to be displayed to the customer. - */ - description?: string; - } - - export type RequestThreeDSecure = 'any' | 'automatic' | 'challenge'; - - export namespace MandateOptions { - export type AmountType = 'fixed' | 'maximum'; - } - } - - export namespace CustomerBalance { - export interface BankTransfer { - /** - * Configuration for `eu_bank_transfer` funding type. Required if `type` is `eu_bank_transfer`. - */ - eu_bank_transfer?: BankTransfer.EuBankTransfer; - - /** - * The bank transfer type that can be used for funding. - */ - type?: BankTransfer.Type; - } - - export namespace BankTransfer { - export interface EuBankTransfer { - /** - * The desired country code of the bank account information. - */ - country: EuBankTransfer.Country; - } - - export type Type = - | 'eu_bank_transfer' - | 'gb_bank_transfer' - | 'jp_bank_transfer' - | 'mx_bank_transfer' - | 'us_bank_transfer'; - - export namespace EuBankTransfer { - export type Country = 'BE' | 'DE' | 'ES' | 'FR' | 'IE' | 'NL'; - } - } + account_subcategories: Array; } - export namespace UsBankAccount { - export interface FinancialConnections { - /** - * Provide filters for the linked accounts that the customer can select for the payment method. - */ - filters?: FinancialConnections.Filters; - - /** - * The list of permissions to request. If this parameter is passed, the `payment_method` permission must be included. - */ - permissions: Array; - - /** - * List of data features that you would like to retrieve upon account creation. - */ - prefetch: Array; - } - - export type VerificationMethod = - | 'automatic' - | 'instant' - | 'microdeposits'; - - export namespace FinancialConnections { - export interface Filters { - /** - * The account subcategories to use to filter for selectable accounts. - */ - account_subcategories: Array; - } + export type Permission = + | 'balances' + | 'ownership' + | 'payment_method' + | 'transactions'; - export type Permission = - | 'balances' - | 'ownership' - | 'payment_method' - | 'transactions'; - - export type Prefetch = 'balances' | 'ownership' | 'transactions'; + export type Prefetch = 'balances' | 'ownership' | 'transactions'; - export namespace Filters { - export type AccountSubcategory = 'checking' | 'savings'; - } - } + export namespace Filters { + export type AccountSubcategory = 'checking' | 'savings'; } } } diff --git a/src/resources/V2/Billing/MeterEventAdjustments.ts b/src/resources/V2/Billing/MeterEventAdjustments.ts index 4dd21c4fd3..275117592b 100644 --- a/src/resources/V2/Billing/MeterEventAdjustments.ts +++ b/src/resources/V2/Billing/MeterEventAdjustments.ts @@ -33,7 +33,7 @@ export interface MeterEventAdjustment { /** * Specifies which event to cancel. */ - cancel: V2.Billing.MeterEventAdjustment.Cancel; + cancel: MeterEventAdjustment.Cancel; /** * The time the adjustment was created. @@ -53,26 +53,22 @@ export interface MeterEventAdjustment { /** * Open Enum. The meter event adjustment's status. */ - status: V2.Billing.MeterEventAdjustment.Status; + status: MeterEventAdjustment.Status; /** * Open Enum. Specifies the type of cancellation. Currently supports canceling a single event. */ type: 'cancel'; } -export namespace V2 { - export namespace Billing { - export namespace MeterEventAdjustment { - export interface Cancel { - /** - * The identifier that was originally assigned to the meter event. You can only cancel events within 24 hours of Stripe receiving them. - */ - identifier: string; - } - - export type Status = 'complete' | 'pending'; - } +export namespace MeterEventAdjustment { + export interface Cancel { + /** + * The identifier that was originally assigned to the meter event. You can only cancel events within 24 hours of Stripe receiving them. + */ + identifier: string; } + + export type Status = 'complete' | 'pending'; } export namespace V2 { export namespace Billing { diff --git a/src/resources/V2/Billing/Profiles.ts b/src/resources/V2/Billing/Profiles.ts index 9e52d4bcaf..4450360894 100644 --- a/src/resources/V2/Billing/Profiles.ts +++ b/src/resources/V2/Billing/Profiles.ts @@ -112,14 +112,10 @@ export interface Profile { /** * The current status of the billing profile. */ - status: V2.Billing.Profile.Status; + status: Profile.Status; } -export namespace V2 { - export namespace Billing { - export namespace Profile { - export type Status = 'active' | 'inactive'; - } - } +export namespace Profile { + export type Status = 'active' | 'inactive'; } export namespace V2 { export namespace Billing { diff --git a/src/resources/V2/Commerce/ProductCatalogImports.ts b/src/resources/V2/Commerce/ProductCatalogImports.ts index 9334a52975..c2b66bbcf1 100644 --- a/src/resources/V2/Commerce/ProductCatalogImports.ts +++ b/src/resources/V2/Commerce/ProductCatalogImports.ts @@ -21,7 +21,7 @@ export interface ProductCatalogImport { /** * The type of feed data being imported into the product catalog. */ - feed_type: V2.Commerce.ProductCatalogImport.FeedType; + feed_type: ProductCatalogImport.FeedType; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -36,194 +36,187 @@ export interface ProductCatalogImport { /** * The current status of this ProductCatalogImport. */ - status: V2.Commerce.ProductCatalogImport.Status; + status: ProductCatalogImport.Status; /** * Details about the current import status. */ - status_details?: V2.Commerce.ProductCatalogImport.StatusDetails; + status_details?: ProductCatalogImport.StatusDetails; } -export namespace V2 { - export namespace Commerce { - export namespace ProductCatalogImport { - export type FeedType = 'inventory' | 'pricing' | 'product'; - - export type Status = - | 'awaiting_upload' - | 'failed' - | 'processing' - | 'succeeded' - | 'succeeded_with_errors'; - - export interface StatusDetails { +export namespace ProductCatalogImport { + export type FeedType = 'inventory' | 'pricing' | 'product'; + + export type Status = + | 'awaiting_upload' + | 'failed' + | 'processing' + | 'succeeded' + | 'succeeded_with_errors'; + + export interface StatusDetails { + /** + * Details when the import is awaiting file upload. + */ + awaiting_upload?: StatusDetails.AwaitingUpload; + + /** + * Details when the import didn't complete. + */ + failed?: StatusDetails.Failed; + + /** + * Details when the import is processing. + */ + processing?: StatusDetails.Processing; + + /** + * Details when the import has succeeded. + */ + succeeded?: StatusDetails.Succeeded; + + /** + * Details when the import completed but some records failed to process. + */ + succeeded_with_errors?: StatusDetails.SucceededWithErrors; + } + + export namespace StatusDetails { + export interface AwaitingUpload { + /** + * The pre-signed URL information for uploading the catalog file. + */ + upload_url: AwaitingUpload.UploadUrl; + } + + export interface Failed { + /** + * The error code for this product catalog processing failure. + */ + code: Failed.Code; + + /** + * A message explaining why the import failed. + */ + failure_message: string; + + /** + * The error type for this product catalog processing failure. + */ + type: Failed.Type; + } + + export interface Processing { + /** + * The number of records that failed to process so far. + */ + error_count: bigint; + + /** + * The number of records processed so far. + */ + success_count: bigint; + } + + export interface Succeeded { + /** + * The total number of records processed. + */ + success_count: bigint; + } + + export interface SucceededWithErrors { + /** + * The total number of records that failed to process. + */ + error_count: bigint; + + /** + * A file containing details about all errors that occurred. + */ + error_file: SucceededWithErrors.ErrorFile; + + /** + * A sample of errors that occurred during processing. + */ + samples: Array; + + /** + * The total number of records processed. + */ + success_count: bigint; + } + + export namespace AwaitingUpload { + export interface UploadUrl { /** - * Details when the import is awaiting file upload. + * The timestamp when the upload URL expires. */ - awaiting_upload?: StatusDetails.AwaitingUpload; + expires_at: string; /** - * Details when the import didn't complete. + * The pre-signed URL for uploading the catalog file. */ - failed?: StatusDetails.Failed; + url: string; + } + } + + export namespace Failed { + export type Code = 'file_not_found' | 'internal_error' | 'invalid_file'; + export type Type = 'cannot_proceed' | 'transient_failure'; + } + + export namespace SucceededWithErrors { + export interface ErrorFile { /** - * Details when the import is processing. + * The MIME type of the error file. */ - processing?: StatusDetails.Processing; + content_type: string; /** - * Details when the import has succeeded. + * The pre-signed URL information for downloading the error file. */ - succeeded?: StatusDetails.Succeeded; + download_url: ErrorFile.DownloadUrl; /** - * Details when the import completed but some records failed to process. + * The size of the error file in bytes. */ - succeeded_with_errors?: StatusDetails.SucceededWithErrors; + size: bigint; } - export namespace StatusDetails { - export interface AwaitingUpload { - /** - * The pre-signed URL information for uploading the catalog file. - */ - upload_url: AwaitingUpload.UploadUrl; - } - - export interface Failed { - /** - * The error code for this product catalog processing failure. - */ - code: Failed.Code; - - /** - * A message explaining why the import failed. - */ - failure_message: string; - - /** - * The error type for this product catalog processing failure. - */ - type: Failed.Type; - } - - export interface Processing { - /** - * The number of records that failed to process so far. - */ - error_count: bigint; - - /** - * The number of records processed so far. - */ - success_count: bigint; - } + export interface Sample { + /** + * A description of what went wrong with this record. + */ + error_message: string; - export interface Succeeded { - /** - * The total number of records processed. - */ - success_count: bigint; - } + /** + * The name of the field that caused the error. + */ + field: string; - export interface SucceededWithErrors { - /** - * The total number of records that failed to process. - */ - error_count: bigint; + /** + * The identifier of the record that failed to process. + */ + id: string; - /** - * A file containing details about all errors that occurred. - */ - error_file: SucceededWithErrors.ErrorFile; + /** + * The row number in the import file where the error occurred. + */ + row: bigint; + } + export namespace ErrorFile { + export interface DownloadUrl { /** - * A sample of errors that occurred during processing. + * The timestamp when the download URL expires. */ - samples: Array; + expires_at: string; /** - * The total number of records processed. + * The pre-signed URL for downloading the error file. */ - success_count: bigint; - } - - export namespace AwaitingUpload { - export interface UploadUrl { - /** - * The timestamp when the upload URL expires. - */ - expires_at: string; - - /** - * The pre-signed URL for uploading the catalog file. - */ - url: string; - } - } - - export namespace Failed { - export type Code = - | 'file_not_found' - | 'internal_error' - | 'invalid_file'; - - export type Type = 'cannot_proceed' | 'transient_failure'; - } - - export namespace SucceededWithErrors { - export interface ErrorFile { - /** - * The MIME type of the error file. - */ - content_type: string; - - /** - * The pre-signed URL information for downloading the error file. - */ - download_url: ErrorFile.DownloadUrl; - - /** - * The size of the error file in bytes. - */ - size: bigint; - } - - export interface Sample { - /** - * A description of what went wrong with this record. - */ - error_message: string; - - /** - * The name of the field that caused the error. - */ - field: string; - - /** - * The identifier of the record that failed to process. - */ - id: string; - - /** - * The row number in the import file where the error occurred. - */ - row: bigint; - } - - export namespace ErrorFile { - export interface DownloadUrl { - /** - * The timestamp when the download URL expires. - */ - expires_at: string; - - /** - * The pre-signed URL for downloading the error file. - */ - url: string; - } - } + url: string; } } } diff --git a/src/resources/V2/Core/AccountLinks.ts b/src/resources/V2/Core/AccountLinks.ts index 673b1f26d4..b8a337e675 100644 --- a/src/resources/V2/Core/AccountLinks.ts +++ b/src/resources/V2/Core/AccountLinks.ts @@ -54,126 +54,122 @@ export interface AccountLink { /** * Hash containing usage options. */ - use_case: V2.Core.AccountLink.UseCase; + use_case: AccountLink.UseCase; } -export namespace V2 { - export namespace Core { - export namespace AccountLink { - export interface UseCase { - /** - * Hash containing configuration options for an Account Link object that onboards a new account. - */ - account_onboarding?: UseCase.AccountOnboarding; - - /** - * Hash containing configuration options for an Account Link that updates an existing account. - */ - account_update?: UseCase.AccountUpdate; - - /** - * Open Enum. The type of Account Link the user is requesting. - */ - type: UseCase.Type; - } +export namespace AccountLink { + export interface UseCase { + /** + * Hash containing configuration options for an Account Link object that onboards a new account. + */ + account_onboarding?: UseCase.AccountOnboarding; + + /** + * Hash containing configuration options for an Account Link that updates an existing account. + */ + account_update?: UseCase.AccountUpdate; + + /** + * Open Enum. The type of Account Link the user is requesting. + */ + type: UseCase.Type; + } - export namespace UseCase { - export interface AccountOnboarding { - /** - * Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow. - */ - collection_options?: AccountOnboarding.CollectionOptions; + export namespace UseCase { + export interface AccountOnboarding { + /** + * Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow. + */ + collection_options?: AccountOnboarding.CollectionOptions; - /** - * Open Enum. A v2/core/account can be configured to enable certain functionality. The configuration param targets the v2/core/account_link to collect information for the specified v2/core/account configuration/s. - */ - configurations: Array; + /** + * Open Enum. A v2/core/account can be configured to enable certain functionality. The configuration param targets the v2/core/account_link to collect information for the specified v2/core/account configuration/s. + */ + configurations: Array; - /** - * The URL the user will be redirected to if the AccountLink is expired, has been used, or is otherwise invalid. The URL you specify should attempt to generate a new AccountLink with the same parameters used to create the original AccountLink, then redirect the user to the new AccountLink's URL so they can continue the flow. If a new AccountLink cannot be generated or the redirect fails you should display a useful error to the user. Please make sure to implement authentication before redirecting the user in case this URL is leaked to a third party. - */ - refresh_url: string; + /** + * The URL the user will be redirected to if the AccountLink is expired, has been used, or is otherwise invalid. The URL you specify should attempt to generate a new AccountLink with the same parameters used to create the original AccountLink, then redirect the user to the new AccountLink's URL so they can continue the flow. If a new AccountLink cannot be generated or the redirect fails you should display a useful error to the user. Please make sure to implement authentication before redirecting the user in case this URL is leaked to a third party. + */ + refresh_url: string; - /** - * The URL that the user will be redirected to upon completing the linked flow. - */ - return_url?: string; - } + /** + * The URL that the user will be redirected to upon completing the linked flow. + */ + return_url?: string; + } - export interface AccountUpdate { - /** - * Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow. - */ - collection_options?: AccountUpdate.CollectionOptions; + export interface AccountUpdate { + /** + * Specifies the requirements that Stripe collects from v2/core/accounts in the Onboarding flow. + */ + collection_options?: AccountUpdate.CollectionOptions; - /** - * Open Enum. A v2/account can be configured to enable certain functionality. The configuration param targets the v2/account_link to collect information for the specified v2/account configuration/s. - */ - configurations: Array; + /** + * Open Enum. A v2/account can be configured to enable certain functionality. The configuration param targets the v2/account_link to collect information for the specified v2/account configuration/s. + */ + configurations: Array; - /** - * The URL the user will be redirected to if the Account Link is expired, has been used, or is otherwise invalid. The URL you specify should attempt to generate a new Account Link with the same parameters used to create the original Account Link, then redirect the user to the new Account Link URL so they can continue the flow. Make sure to authenticate the user before redirecting to the new Account Link, in case the URL leaks to a third party. If a new Account Link can't be generated, or if the redirect fails, you should display a useful error to the user. - */ - refresh_url: string; + /** + * The URL the user will be redirected to if the Account Link is expired, has been used, or is otherwise invalid. The URL you specify should attempt to generate a new Account Link with the same parameters used to create the original Account Link, then redirect the user to the new Account Link URL so they can continue the flow. Make sure to authenticate the user before redirecting to the new Account Link, in case the URL leaks to a third party. If a new Account Link can't be generated, or if the redirect fails, you should display a useful error to the user. + */ + refresh_url: string; - /** - * The URL that the user will be redirected to upon completing the linked flow. - */ - return_url?: string; - } + /** + * The URL that the user will be redirected to upon completing the linked flow. + */ + return_url?: string; + } - export type Type = 'account_onboarding' | 'account_update'; + export type Type = 'account_onboarding' | 'account_update'; - export namespace AccountOnboarding { - export interface CollectionOptions { - /** - * Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify collection_options, the default value is currently_due. - */ - fields?: CollectionOptions.Fields; + export namespace AccountOnboarding { + export interface CollectionOptions { + /** + * Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). If you don't specify collection_options, the default value is currently_due. + */ + fields?: CollectionOptions.Fields; - /** - * Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`. - */ - future_requirements?: CollectionOptions.FutureRequirements; - } + /** + * Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`. + */ + future_requirements?: CollectionOptions.FutureRequirements; + } - export type Configuration = - | 'customer' - | 'merchant' - | 'recipient' - | 'storer'; + export type Configuration = + | 'customer' + | 'merchant' + | 'recipient' + | 'storer'; - export namespace CollectionOptions { - export type Fields = 'currently_due' | 'eventually_due'; + export namespace CollectionOptions { + export type Fields = 'currently_due' | 'eventually_due'; - export type FutureRequirements = 'include' | 'omit'; - } - } + export type FutureRequirements = 'include' | 'omit'; + } + } - export namespace AccountUpdate { - export interface CollectionOptions { - /** - * Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). The default value is `currently_due`. - */ - fields?: CollectionOptions.Fields; + export namespace AccountUpdate { + export interface CollectionOptions { + /** + * Specifies whether the platform collects only currently_due requirements (`currently_due`) or both currently_due and eventually_due requirements (`eventually_due`). The default value is `currently_due`. + */ + fields?: CollectionOptions.Fields; - /** - * Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`. - */ - future_requirements?: CollectionOptions.FutureRequirements; - } + /** + * Specifies whether the platform collects future_requirements in addition to requirements in Connect Onboarding. The default value is `omit`. + */ + future_requirements?: CollectionOptions.FutureRequirements; + } - export type Configuration = - | 'customer' - | 'merchant' - | 'recipient' - | 'storer'; + export type Configuration = + | 'customer' + | 'merchant' + | 'recipient' + | 'storer'; - export namespace CollectionOptions { - export type Fields = 'currently_due' | 'eventually_due'; + export namespace CollectionOptions { + export type Fields = 'currently_due' | 'eventually_due'; - export type FutureRequirements = 'include' | 'omit'; - } - } + export type FutureRequirements = 'include' | 'omit'; } } } diff --git a/src/resources/V2/Core/AccountPersons.ts b/src/resources/V2/Core/AccountPersons.ts index 03b30e5198..a4c81ad650 100644 --- a/src/resources/V2/Core/AccountPersons.ts +++ b/src/resources/V2/Core/AccountPersons.ts @@ -21,22 +21,22 @@ export interface AccountPerson { /** * Additional addresses associated with the person. */ - additional_addresses?: Array; + additional_addresses?: Array; /** * Additional names (e.g. aliases) associated with the person. */ - additional_names?: Array; + additional_names?: Array; /** * Attestations of accepted terms of service agreements. */ - additional_terms_of_service?: V2.Core.AccountPerson.AdditionalTermsOfService; + additional_terms_of_service?: AccountPerson.AdditionalTermsOfService; /** * The person's residential address. */ - address?: V2.Core.AccountPerson.Address; + address?: AccountPerson.Address; /** * Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. @@ -46,12 +46,12 @@ export interface AccountPerson { /** * The person's date of birth. */ - date_of_birth?: V2.Core.AccountPerson.DateOfBirth; + date_of_birth?: AccountPerson.DateOfBirth; /** * Documents that may be submitted to satisfy various informational requests. */ - documents?: V2.Core.AccountPerson.Documents; + documents?: AccountPerson.Documents; /** * The person's email address. @@ -66,12 +66,12 @@ export interface AccountPerson { /** * The identification numbers (e.g., SSN) associated with the person. */ - id_numbers?: Array; + id_numbers?: Array; /** * The person's gender (International regulations require either "male" or "female"). */ - legal_gender?: V2.Core.AccountPerson.LegalGender; + legal_gender?: AccountPerson.LegalGender; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -96,22 +96,22 @@ export interface AccountPerson { /** * The person's political exposure. */ - political_exposure?: V2.Core.AccountPerson.PoliticalExposure; + political_exposure?: AccountPerson.PoliticalExposure; /** * The relationship that this person has with the Account's business or legal entity. */ - relationship?: V2.Core.AccountPerson.Relationship; + relationship?: AccountPerson.Relationship; /** * The script addresses (e.g., non-Latin characters) associated with the person. */ - script_addresses?: V2.Core.AccountPerson.ScriptAddresses; + script_addresses?: AccountPerson.ScriptAddresses; /** * The script names (e.g. non-Latin characters) associated with the person. */ - script_names?: V2.Core.AccountPerson.ScriptNames; + script_names?: AccountPerson.ScriptNames; /** * The person's last name. @@ -123,533 +123,529 @@ export interface AccountPerson { */ updated: string; } -export namespace V2 { - export namespace Core { - export namespace AccountPerson { - export interface AdditionalAddress { - /** - * City, district, suburb, town, or village. - */ - city?: string; - - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country?: string; - - /** - * Address line 1 (e.g., street, PO Box, or company name). - */ - line1?: string; - - /** - * Address line 2 (e.g., apartment, suite, unit, or building). - */ - line2?: string; - - /** - * ZIP or postal code. - */ - postal_code?: string; - - /** - * Purpose of additional address. - */ - purpose: 'registered'; - - /** - * State, county, province, or region. - */ - state?: string; - - /** - * Town or district. - */ - town?: string; - } - - export interface AdditionalName { - /** - * The individual's full name. - */ - full_name?: string; - - /** - * The individual's first or given name. - */ - given_name?: string; - - /** - * The purpose or type of the additional name. - */ - purpose: AdditionalName.Purpose; - - /** - * The individual's last or family name. - */ - surname?: string; - } - - export interface AdditionalTermsOfService { - /** - * Stripe terms of service agreement. - */ - account?: AdditionalTermsOfService.Account; - } - - export interface Address { - /** - * City, district, suburb, town, or village. - */ - city?: string; - - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country?: string; - - /** - * Address line 1 (e.g., street, PO Box, or company name). - */ - line1?: string; - - /** - * Address line 2 (e.g., apartment, suite, unit, or building). - */ - line2?: string; +export namespace AccountPerson { + export interface AdditionalAddress { + /** + * City, district, suburb, town, or village. + */ + city?: string; + + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country?: string; + + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: string; + + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: string; + + /** + * ZIP or postal code. + */ + postal_code?: string; + + /** + * Purpose of additional address. + */ + purpose: 'registered'; + + /** + * State, county, province, or region. + */ + state?: string; + + /** + * Town or district. + */ + town?: string; + } - /** - * ZIP or postal code. - */ - postal_code?: string; + export interface AdditionalName { + /** + * The individual's full name. + */ + full_name?: string; + + /** + * The individual's first or given name. + */ + given_name?: string; + + /** + * The purpose or type of the additional name. + */ + purpose: AdditionalName.Purpose; + + /** + * The individual's last or family name. + */ + surname?: string; + } - /** - * State, county, province, or region. - */ - state?: string; + export interface AdditionalTermsOfService { + /** + * Stripe terms of service agreement. + */ + account?: AdditionalTermsOfService.Account; + } - /** - * Town or district. - */ - town?: string; - } + export interface Address { + /** + * City, district, suburb, town, or village. + */ + city?: string; + + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country?: string; + + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: string; + + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: string; + + /** + * ZIP or postal code. + */ + postal_code?: string; + + /** + * State, county, province, or region. + */ + state?: string; + + /** + * Town or district. + */ + town?: string; + } - export interface DateOfBirth { - /** - * The day of birth, between 1 and 31. - */ - day: number; + export interface DateOfBirth { + /** + * The day of birth, between 1 and 31. + */ + day: number; + + /** + * The month of birth, between 1 and 12. + */ + month: number; + + /** + * The four-digit year of birth. + */ + year: number; + } - /** - * The month of birth, between 1 and 12. - */ - month: number; + export interface Documents { + /** + * One or more documents that demonstrate proof that this person is authorized to represent the company. + */ + company_authorization?: Documents.CompanyAuthorization; + + /** + * One or more documents showing the person's passport page with photo and personal data. + */ + passport?: Documents.Passport; + + /** + * An identifying document showing the person's name, either a passport or local ID card. + */ + primary_verification?: Documents.PrimaryVerification; + + /** + * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. + */ + secondary_verification?: Documents.SecondaryVerification; + + /** + * One or more documents showing the person's visa required for living in the country where they are residing. + */ + visa?: Documents.Visa; + } - /** - * The four-digit year of birth. - */ - year: number; - } + export interface IdNumber { + /** + * The ID number type of an individual. + */ + type: IdNumber.Type; + } - export interface Documents { - /** - * One or more documents that demonstrate proof that this person is authorized to represent the company. - */ - company_authorization?: Documents.CompanyAuthorization; + export type LegalGender = 'female' | 'male'; + + export type PoliticalExposure = 'existing' | 'none'; + + export interface Relationship { + /** + * Whether the individual is an authorizer of the Account's identity. + */ + authorizer?: boolean; + + /** + * Whether the individual is a director of the Account's identity. Directors are typically members of the governing board of the company or are responsible for making sure that the company meets its regulatory obligations. + */ + director?: boolean; + + /** + * Whether the individual has significant responsibility to control, manage, or direct the organization. + */ + executive?: boolean; + + /** + * Whether the individual is the legal guardian of the Account's representative. + */ + legal_guardian?: boolean; + + /** + * Whether the individual is an owner of the Account's identity. + */ + owner?: boolean; + + /** + * The percentage of the Account's identity that the individual owns. + */ + percent_ownership?: Decimal; + + /** + * Whether the individual is authorized as the primary representative of the Account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account. + */ + representative?: boolean; + + /** + * The individual's title (e.g., CEO, Support Engineer). + */ + title?: string; + } - /** - * One or more documents showing the person's passport page with photo and personal data. - */ - passport?: Documents.Passport; + export interface ScriptAddresses { + /** + * Kana Address. + */ + kana?: ScriptAddresses.Kana; - /** - * An identifying document showing the person's name, either a passport or local ID card. - */ - primary_verification?: Documents.PrimaryVerification; + /** + * Kanji Address. + */ + kanji?: ScriptAddresses.Kanji; + } - /** - * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. - */ - secondary_verification?: Documents.SecondaryVerification; + export interface ScriptNames { + /** + * Persons name in kana script. + */ + kana?: ScriptNames.Kana; - /** - * One or more documents showing the person's visa required for living in the country where they are residing. - */ - visa?: Documents.Visa; - } + /** + * Persons name in kanji script. + */ + kanji?: ScriptNames.Kanji; + } - export interface IdNumber { - /** - * The ID number type of an individual. - */ - type: IdNumber.Type; - } + export namespace AdditionalName { + export type Purpose = 'alias' | 'maiden'; + } - export type LegalGender = 'female' | 'male'; + export namespace AdditionalTermsOfService { + export interface Account { + /** + * The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + date?: string; + + /** + * The IP address from which the Account's representative accepted the terms of service. + */ + ip?: string; + + /** + * The user agent of the browser from which the Account's representative accepted the terms of service. + */ + user_agent?: string; + } + } - export type PoliticalExposure = 'existing' | 'none'; + export namespace Documents { + export interface CompanyAuthorization { + /** + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + */ + files: Array; + + /** + * The format of the document. Currently supports `files` only. + */ + type: 'files'; + } - export interface Relationship { - /** - * Whether the individual is an authorizer of the Account's identity. - */ - authorizer?: boolean; + export interface Passport { + /** + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + */ + files: Array; - /** - * Whether the individual is a director of the Account's identity. Directors are typically members of the governing board of the company or are responsible for making sure that the company meets its regulatory obligations. - */ - director?: boolean; + /** + * The format of the document. Currently supports `files` only. + */ + type: 'files'; + } - /** - * Whether the individual has significant responsibility to control, manage, or direct the organization. - */ - executive?: boolean; + export interface PrimaryVerification { + /** + * The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. + */ + front_back: PrimaryVerification.FrontBack; - /** - * Whether the individual is the legal guardian of the Account's representative. - */ - legal_guardian?: boolean; + /** + * The format of the verification document. Currently supports `front_back` only. + */ + type: 'front_back'; + } - /** - * Whether the individual is an owner of the Account's identity. - */ - owner?: boolean; + export interface SecondaryVerification { + /** + * The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. + */ + front_back: SecondaryVerification.FrontBack; - /** - * The percentage of the Account's identity that the individual owns. - */ - percent_ownership?: Decimal; + /** + * The format of the verification document. Currently supports `front_back` only. + */ + type: 'front_back'; + } - /** - * Whether the individual is authorized as the primary representative of the Account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account. - */ - representative?: boolean; + export interface Visa { + /** + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + */ + files: Array; - /** - * The individual's title (e.g., CEO, Support Engineer). - */ - title?: string; - } + /** + * The format of the document. Currently supports `files` only. + */ + type: 'files'; + } - export interface ScriptAddresses { + export namespace PrimaryVerification { + export interface FrontBack { /** - * Kana Address. + * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ - kana?: ScriptAddresses.Kana; + back?: string; /** - * Kanji Address. + * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ - kanji?: ScriptAddresses.Kanji; + front: string; } + } - export interface ScriptNames { + export namespace SecondaryVerification { + export interface FrontBack { /** - * Persons name in kana script. + * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ - kana?: ScriptNames.Kana; + back?: string; /** - * Persons name in kanji script. + * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ - kanji?: ScriptNames.Kanji; + front: string; } + } + } - export namespace AdditionalName { - export type Purpose = 'alias' | 'maiden'; - } + export namespace IdNumber { + export type Type = + | 'ae_eid' + | 'ao_nif' + | 'ar_cuil' + | 'ar_dni' + | 'at_stn' + | 'az_tin' + | 'bd_brc' + | 'bd_etin' + | 'bd_nid' + | 'be_nrn' + | 'bg_ucn' + | 'bn_nric' + | 'br_cpf' + | 'ca_sin' + | 'ch_oasi' + | 'cl_rut' + | 'cn_pp' + | 'co_nuip' + | 'cr_ci' + | 'cr_cpf' + | 'cr_dimex' + | 'cr_nite' + | 'cy_tic' + | 'cz_rc' + | 'de_stn' + | 'dk_cpr' + | 'do_cie' + | 'do_rcn' + | 'ec_ci' + | 'ee_ik' + | 'es_nif' + | 'fi_hetu' + | 'fr_nir' + | 'gb_nino' + | 'gr_afm' + | 'gt_nit' + | 'hk_id' + | 'hr_oib' + | 'hu_ad' + | 'id_nik' + | 'ie_ppsn' + | 'is_kt' + | 'it_cf' + | 'jp_inc' + | 'ke_pin' + | 'kz_iin' + | 'li_peid' + | 'lt_ak' + | 'lu_nif' + | 'lv_pk' + | 'mx_rfc' + | 'my_nric' + | 'mz_nuit' + | 'ng_nin' + | 'nl_bsn' + | 'no_nin' + | 'nz_ird' + | 'pe_dni' + | 'pk_cnic' + | 'pk_snic' + | 'pl_pesel' + | 'pt_nif' + | 'ro_cnp' + | 'sa_tin' + | 'se_pin' + | 'sg_fin' + | 'sg_nric' + | 'sk_dic' + | 'th_lc' + | 'th_pin' + | 'tr_tin' + | 'us_itin' + | 'us_itin_last_4' + | 'us_ssn' + | 'us_ssn_last_4' + | 'uy_dni' + | 'za_id'; + } - export namespace AdditionalTermsOfService { - export interface Account { - /** - * The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - date?: string; - - /** - * The IP address from which the Account's representative accepted the terms of service. - */ - ip?: string; - - /** - * The user agent of the browser from which the Account's representative accepted the terms of service. - */ - user_agent?: string; - } - } + export namespace ScriptAddresses { + export interface Kana { + /** + * City, district, suburb, town, or village. + */ + city?: string; + + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country?: string; + + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: string; + + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: string; + + /** + * ZIP or postal code. + */ + postal_code?: string; + + /** + * State, county, province, or region. + */ + state?: string; + + /** + * Town or district. + */ + town?: string; + } - export namespace Documents { - export interface CompanyAuthorization { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; - - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } - - export interface Passport { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; - - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } - - export interface PrimaryVerification { - /** - * The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. - */ - front_back: PrimaryVerification.FrontBack; - - /** - * The format of the verification document. Currently supports `front_back` only. - */ - type: 'front_back'; - } - - export interface SecondaryVerification { - /** - * The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. - */ - front_back: SecondaryVerification.FrontBack; - - /** - * The format of the verification document. Currently supports `front_back` only. - */ - type: 'front_back'; - } - - export interface Visa { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; - - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } - - export namespace PrimaryVerification { - export interface FrontBack { - /** - * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. - */ - back?: string; - - /** - * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. - */ - front: string; - } - } - - export namespace SecondaryVerification { - export interface FrontBack { - /** - * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. - */ - back?: string; - - /** - * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. - */ - front: string; - } - } - } + export interface Kanji { + /** + * City, district, suburb, town, or village. + */ + city?: string; + + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country?: string; + + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: string; + + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: string; + + /** + * ZIP or postal code. + */ + postal_code?: string; + + /** + * State, county, province, or region. + */ + state?: string; + + /** + * Town or district. + */ + town?: string; + } + } - export namespace IdNumber { - export type Type = - | 'ae_eid' - | 'ao_nif' - | 'ar_cuil' - | 'ar_dni' - | 'at_stn' - | 'az_tin' - | 'bd_brc' - | 'bd_etin' - | 'bd_nid' - | 'be_nrn' - | 'bg_ucn' - | 'bn_nric' - | 'br_cpf' - | 'ca_sin' - | 'ch_oasi' - | 'cl_rut' - | 'cn_pp' - | 'co_nuip' - | 'cr_ci' - | 'cr_cpf' - | 'cr_dimex' - | 'cr_nite' - | 'cy_tic' - | 'cz_rc' - | 'de_stn' - | 'dk_cpr' - | 'do_cie' - | 'do_rcn' - | 'ec_ci' - | 'ee_ik' - | 'es_nif' - | 'fi_hetu' - | 'fr_nir' - | 'gb_nino' - | 'gr_afm' - | 'gt_nit' - | 'hk_id' - | 'hr_oib' - | 'hu_ad' - | 'id_nik' - | 'ie_ppsn' - | 'is_kt' - | 'it_cf' - | 'jp_inc' - | 'ke_pin' - | 'kz_iin' - | 'li_peid' - | 'lt_ak' - | 'lu_nif' - | 'lv_pk' - | 'mx_rfc' - | 'my_nric' - | 'mz_nuit' - | 'ng_nin' - | 'nl_bsn' - | 'no_nin' - | 'nz_ird' - | 'pe_dni' - | 'pk_cnic' - | 'pk_snic' - | 'pl_pesel' - | 'pt_nif' - | 'ro_cnp' - | 'sa_tin' - | 'se_pin' - | 'sg_fin' - | 'sg_nric' - | 'sk_dic' - | 'th_lc' - | 'th_pin' - | 'tr_tin' - | 'us_itin' - | 'us_itin_last_4' - | 'us_ssn' - | 'us_ssn_last_4' - | 'uy_dni' - | 'za_id'; - } + export namespace ScriptNames { + export interface Kana { + /** + * The person's first or given name. + */ + given_name?: string; + + /** + * The person's last or family name. + */ + surname?: string; + } - export namespace ScriptAddresses { - export interface Kana { - /** - * City, district, suburb, town, or village. - */ - city?: string; - - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country?: string; - - /** - * Address line 1 (e.g., street, PO Box, or company name). - */ - line1?: string; - - /** - * Address line 2 (e.g., apartment, suite, unit, or building). - */ - line2?: string; - - /** - * ZIP or postal code. - */ - postal_code?: string; - - /** - * State, county, province, or region. - */ - state?: string; - - /** - * Town or district. - */ - town?: string; - } - - export interface Kanji { - /** - * City, district, suburb, town, or village. - */ - city?: string; - - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country?: string; - - /** - * Address line 1 (e.g., street, PO Box, or company name). - */ - line1?: string; - - /** - * Address line 2 (e.g., apartment, suite, unit, or building). - */ - line2?: string; - - /** - * ZIP or postal code. - */ - postal_code?: string; - - /** - * State, county, province, or region. - */ - state?: string; - - /** - * Town or district. - */ - town?: string; - } - } + export interface Kanji { + /** + * The person's first or given name. + */ + given_name?: string; - export namespace ScriptNames { - export interface Kana { - /** - * The person's first or given name. - */ - given_name?: string; - - /** - * The person's last or family name. - */ - surname?: string; - } - - export interface Kanji { - /** - * The person's first or given name. - */ - given_name?: string; - - /** - * The person's last or family name. - */ - surname?: string; - } - } + /** + * The person's last or family name. + */ + surname?: string; } } } diff --git a/src/resources/V2/Core/Accounts.ts b/src/resources/V2/Core/Accounts.ts index 40d5c23733..717e71161c 100644 --- a/src/resources/V2/Core/Accounts.ts +++ b/src/resources/V2/Core/Accounts.ts @@ -256,7 +256,7 @@ export interface Account { /** * The configurations that have been applied to this account. */ - applied_configurations: Array; + applied_configurations: Array; /** * Indicates whether the account has been closed. @@ -266,7 +266,7 @@ export interface Account { /** * An Account represents a company, individual, or other entity that a user interacts with. Accounts store identity information and one or more configurations that enable product-specific capabilities. You can assign configurations at creation or add them later. */ - configuration?: V2.Core.Account.Configuration; + configuration?: Account.Configuration; /** * The primary contact email address for the Account. @@ -286,12 +286,12 @@ export interface Account { /** * A value indicating the Stripe dashboard this Account has access to. This will depend on which configurations are enabled for this account. */ - dashboard?: V2.Core.Account.Dashboard; + dashboard?: Account.Dashboard; /** * Default values for settings shared across Account configurations. */ - defaults?: V2.Core.Account.Defaults; + defaults?: Account.Defaults; /** * A descriptive name for the Account. This name will be surfaced in the Stripe Dashboard and on any invoices sent to the Account. @@ -301,12 +301,12 @@ export interface Account { /** * Information about the future requirements for the Account that will eventually come into effect, including what information needs to be collected, and by when. */ - future_requirements?: V2.Core.Account.FutureRequirements; + future_requirements?: Account.FutureRequirements; /** * Information about the company, individual, and business represented by the Account. */ - identity?: V2.Core.Account.Identity; + identity?: Account.Identity; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -321,4594 +321,4554 @@ export interface Account { /** * Information about the active requirements for the Account, including what information needs to be collected, and by when. */ - requirements?: V2.Core.Account.Requirements; + requirements?: Account.Requirements; } -export namespace V2 { - export namespace Core { - export namespace Account { - export type AppliedConfiguration = - | 'customer' - | 'merchant' - | 'recipient' - | 'storer'; +export namespace Account { + export type AppliedConfiguration = + | 'customer' + | 'merchant' + | 'recipient' + | 'storer'; + + export interface Configuration { + /** + * The Customer Configuration allows the Account to be used in inbound payment flows (i.e. customer-facing payment and billing flows). + */ + customer?: Configuration.Customer; + + /** + * Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set. + */ + merchant?: Configuration.Merchant; + + /** + * The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set. + */ + recipient?: Configuration.Recipient; + + /** + * The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts. + */ + storer?: Configuration.Storer; + } - export interface Configuration { - /** - * The Customer Configuration allows the Account to be used in inbound payment flows (i.e. customer-facing payment and billing flows). - */ - customer?: Configuration.Customer; + export type Dashboard = 'express' | 'full' | 'none'; + + export interface Defaults { + /** + * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). + */ + currency?: string; + + /** + * The Account's preferred locales (languages), ordered by preference. + */ + locales?: Array; + + /** + * Account profile information. + */ + profile?: Defaults.Profile; + + /** + * Default responsibilities held by either Stripe or the platform. + */ + responsibilities: Defaults.Responsibilities; + + /** + * The Account's local timezone. A list of possible time zone values is maintained at the [IANA Time Zone Database](https://www.iana.org/time-zones). + */ + timezone?: string; + } - /** - * Enables the Account to act as a connected account and collect payments facilitated by a Connect platform. You must onboard your platform to Connect before you can add this configuration to your connected accounts. Utilize this configuration when the Account will be the Merchant of Record, like with Direct charges or Destination Charges with on_behalf_of set. - */ - merchant?: Configuration.Merchant; + export interface FutureRequirements { + /** + * A list of requirements for the Account. + */ + entries?: Array; + + /** + * The time at which the future requirements become effective. + */ + minimum_transition_date?: string; + + /** + * An object containing an overview of requirements for the Account. + */ + summary?: FutureRequirements.Summary; + } - /** - * The Recipient Configuration allows the Account to receive funds. Utilize this configuration if the Account will not be the Merchant of Record, like with Separate Charges & Transfers, or Destination Charges without on_behalf_of set. - */ - recipient?: Configuration.Recipient; + export interface Identity { + /** + * Attestations from the identity's key people, e.g. owners, executives, directors, representatives. + */ + attestations?: Identity.Attestations; + + /** + * Information about the company or business. + */ + business_details?: Identity.BusinessDetails; + + /** + * The country in which the account holder resides, or in which the business is legally established. This should be an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + */ + country?: string; + + /** + * The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. + */ + entity_type?: Identity.EntityType; + + /** + * Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`. + */ + individual?: Identity.Individual; + } - /** - * The Storer Configuration allows the Account to store and move funds using stored-value FinancialAccounts. - */ - storer?: Configuration.Storer; - } + export interface Requirements { + /** + * A list of requirements for the Account. + */ + entries?: Array; - export type Dashboard = 'express' | 'full' | 'none'; + /** + * An object containing an overview of requirements for the Account. + */ + summary?: Requirements.Summary; + } - export interface Defaults { - /** - * Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). - */ - currency?: string; + export namespace Configuration { + export interface Customer { + /** + * Indicates whether the customer configuration is active. You can deactivate or reactivate the customer configuration by updating this property. Deactivating the configuration by setting this value to false will unrequest all capabilities within the configuration. It will not delete any of the configuration's other properties. + */ + applied: boolean; - /** - * The Account's preferred locales (languages), ordered by preference. - */ - locales?: Array; + /** + * Settings for automatic indirect tax calculation on the customer's invoices, subscriptions, Checkout Sessions, and Payment Links. Available when automatic tax calculation is available for the customer account's location. + */ + automatic_indirect_tax?: Customer.AutomaticIndirectTax; - /** - * Account profile information. - */ - profile?: Defaults.Profile; + /** + * Default Billing settings for the customer account, used in Invoices and Subscriptions. + */ + billing?: Customer.Billing; - /** - * Default responsibilities held by either Stripe or the platform. - */ - responsibilities: Defaults.Responsibilities; + /** + * Capabilities that have been requested on the Customer Configuration. + */ + capabilities?: Customer.Capabilities; - /** - * The Account's local timezone. A list of possible time zone values is maintained at the [IANA Time Zone Database](https://www.iana.org/time-zones). - */ - timezone?: string; - } + /** + * The customer's shipping information. Appears on invoices emailed to this customer. + */ + shipping?: Customer.Shipping; + + /** + * ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and when the Customer Configuration is first set on an Account. + */ + test_clock?: string; + } + + export interface Merchant { + /** + * Indicates whether the merchant configuration is active. You can deactivate or reactivate the merchant configuration by updating this property. Deactivating the configuration by setting this value to false doesn't delete the configuration's properties. + */ + applied: boolean; + + /** + * Settings for Bacs Direct Debit payments. + */ + bacs_debit_payments?: Merchant.BacsDebitPayments; + + /** + * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products. + */ + branding?: Merchant.Branding; + + /** + * Capabilities that have been requested on the Merchant Configuration. + */ + capabilities?: Merchant.Capabilities; + + /** + * Card payments settings. + */ + card_payments?: Merchant.CardPayments; + + /** + * Settings specific to Konbini payments on the account. + */ + konbini_payments?: Merchant.KonbiniPayments; + + /** + * The Merchant Category Code (MCC) for the merchant. MCCs classify businesses based on the goods or services they provide. + */ + mcc?: string; + + /** + * Settings for the default text that appears on statements for language variations. + */ + script_statement_descriptor?: Merchant.ScriptStatementDescriptor; + + /** + * Settings for SEPA Direct Debit payments. + */ + sepa_debit_payments?: Merchant.SepaDebitPayments; + + /** + * Settings for Smart Disputes automatic response feature. + */ + smart_disputes?: Merchant.SmartDisputes; - export interface FutureRequirements { + /** + * Statement descriptor. + */ + statement_descriptor?: Merchant.StatementDescriptor; + + /** + * Publicly available contact information for sending support issues to. + */ + support?: Merchant.Support; + } + + export interface Recipient { + /** + * Indicates whether the recipient configuration is active. You can deactivate or reactivate the recipient configuration by updating this property. Deactivating the configuration by setting this value to false unrequest all capabilities within the configuration. It will not delete any of the configuration's other properties. + */ + applied: boolean; + + /** + * Capabilities that have been requested on the Recipient Configuration. + */ + capabilities?: Recipient.Capabilities; + + /** + * The payout method to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through the dashboard or APIs. + */ + default_outbound_destination?: Recipient.DefaultOutboundDestination; + } + + export interface Storer { + /** + * Indicates whether the storer configuration is active. You cannot deactivate (or reactivate) the storer configuration by updating this property. + */ + applied: boolean; + + /** + * Capabilities that have been requested on the Storer Configuration. + */ + capabilities?: Storer.Capabilities; + } + + export namespace Customer { + export interface AutomaticIndirectTax { /** - * A list of requirements for the Account. + * The customer account's tax exemption status: `none`, `exempt`, or `reverse`. When `reverse`, invoice and receipt PDFs include "Reverse charge". */ - entries?: Array; + exempt?: AutomaticIndirectTax.Exempt; /** - * The time at which the future requirements become effective. + * A recent IP address of the customer used for tax reporting and tax location inference. */ - minimum_transition_date?: string; + ip_address?: string; /** - * An object containing an overview of requirements for the Account. + * The customer account's identified tax location, derived from `location_source`. Only rendered if the `automatic_indirect_tax` feature is requested and `active`. */ - summary?: FutureRequirements.Summary; - } + location?: AutomaticIndirectTax.Location; - export interface Identity { /** - * Attestations from the identity's key people, e.g. owners, executives, directors, representatives. + * Data source used to identify the customer account's tax location. Defaults to `identity_address`. Used for automatic indirect tax calculation. */ - attestations?: Identity.Attestations; + location_source?: AutomaticIndirectTax.LocationSource; + } + export interface Billing { /** - * Information about the company or business. + * The ID of a `PaymentMethod` attached to this Account's `customer` configuration, used as the default payment method for invoices and subscriptions. */ - business_details?: Identity.BusinessDetails; + default_payment_method?: string; /** - * The country in which the account holder resides, or in which the business is legally established. This should be an [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code. + * Default invoice settings for the customer account. */ - country?: string; + invoice?: Billing.Invoice; + } + export interface Capabilities { /** - * The entity type represented by the Account. Ensure this field is accurate before adding configurations that rely on identity information, as it determines which identity fields apply and how the Account is validated. + * Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions. */ - entity_type?: Identity.EntityType; + automatic_indirect_tax?: Capabilities.AutomaticIndirectTax; + } + export interface Shipping { /** - * Information about the individual represented by the Account. This property is `null` unless `entity_type` is set to `individual`. + * Customer shipping address. */ - individual?: Identity.Individual; - } + address?: Shipping.Address; - export interface Requirements { /** - * A list of requirements for the Account. + * Customer name. */ - entries?: Array; + name?: string; /** - * An object containing an overview of requirements for the Account. + * Customer phone (including extension). */ - summary?: Requirements.Summary; + phone?: string; } - export namespace Configuration { - export interface Customer { - /** - * Indicates whether the customer configuration is active. You can deactivate or reactivate the customer configuration by updating this property. Deactivating the configuration by setting this value to false will unrequest all capabilities within the configuration. It will not delete any of the configuration's other properties. - */ - applied: boolean; + export namespace AutomaticIndirectTax { + export type Exempt = 'exempt' | 'none' | 'reverse'; + export interface Location { /** - * Settings for automatic indirect tax calculation on the customer's invoices, subscriptions, Checkout Sessions, and Payment Links. Available when automatic tax calculation is available for the customer account's location. + * The identified tax country of the customer. */ - automatic_indirect_tax?: Customer.AutomaticIndirectTax; + country?: string; /** - * Default Billing settings for the customer account, used in Invoices and Subscriptions. + * The identified tax state, county, province, or region of the customer. */ - billing?: Customer.Billing; + state?: string; + } - /** - * Capabilities that have been requested on the Customer Configuration. - */ - capabilities?: Customer.Capabilities; + export type LocationSource = + | 'identity_address' + | 'ip_address' + | 'payment_method' + | 'shipping_address'; + } + export namespace Billing { + export interface Invoice { /** - * The customer's shipping information. Appears on invoices emailed to this customer. + * The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields. */ - shipping?: Customer.Shipping; + custom_fields: Array; /** - * ID of the test clock to attach to the customer. Can only be set on testmode Accounts, and when the Customer Configuration is first set on an Account. + * Default invoice footer. */ - test_clock?: string; - } + footer?: string; - export interface Merchant { /** - * Indicates whether the merchant configuration is active. You can deactivate or reactivate the merchant configuration by updating this property. Deactivating the configuration by setting this value to false doesn't delete the configuration's properties. + * Sequence number to use on the customer account's next invoice. Defaults to 1. */ - applied: boolean; + next_sequence?: number; /** - * Settings for Bacs Direct Debit payments. + * Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or numbers. */ - bacs_debit_payments?: Merchant.BacsDebitPayments; + prefix?: string; /** - * Settings used to apply the merchant's branding to email receipts, invoices, Checkout, and other products. + * Default invoice PDF rendering options. */ - branding?: Merchant.Branding; + rendering?: Invoice.Rendering; + } - /** - * Capabilities that have been requested on the Merchant Configuration. - */ - capabilities?: Merchant.Capabilities; + export namespace Invoice { + export interface CustomField { + /** + * The name of the custom field. This may be up to 40 characters. + */ + name: string; - /** - * Card payments settings. - */ - card_payments?: Merchant.CardPayments; + /** + * The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values. + */ + value: string; + } - /** - * Settings specific to Konbini payments on the account. - */ - konbini_payments?: Merchant.KonbiniPayments; + export interface Rendering { + /** + * Indicates whether displayed line item prices and amounts on invoice PDFs include inclusive tax amounts. Must be either `include_inclusive_tax` or `exclude_tax`. + */ + amount_tax_display?: Rendering.AmountTaxDisplay; - /** - * The Merchant Category Code (MCC) for the merchant. MCCs classify businesses based on the goods or services they provide. - */ - mcc?: string; + /** + * ID of the invoice rendering template to use for future invoices. + */ + template?: string; + } - /** - * Settings for the default text that appears on statements for language variations. - */ - script_statement_descriptor?: Merchant.ScriptStatementDescriptor; + export namespace Rendering { + export type AmountTaxDisplay = + | 'exclude_tax' + | 'include_inclusive_tax'; + } + } + } + export namespace Capabilities { + export interface AutomaticIndirectTax { /** - * Settings for SEPA Direct Debit payments. + * The status of the Capability. */ - sepa_debit_payments?: Merchant.SepaDebitPayments; + status: AutomaticIndirectTax.Status; /** - * Settings for Smart Disputes automatic response feature. + * Additional details about the capability's status. This value is empty when `status` is `active`. */ - smart_disputes?: Merchant.SmartDisputes; + status_details: Array; + } - /** - * Statement descriptor. - */ - statement_descriptor?: Merchant.StatementDescriptor; + export namespace AutomaticIndirectTax { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; + + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; + + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } + + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } + } + export namespace Shipping { + export interface Address { /** - * Publicly available contact information for sending support issues to. + * City, district, suburb, town, or village. */ - support?: Merchant.Support; - } + city?: string; - export interface Recipient { /** - * Indicates whether the recipient configuration is active. You can deactivate or reactivate the recipient configuration by updating this property. Deactivating the configuration by setting this value to false unrequest all capabilities within the configuration. It will not delete any of the configuration's other properties. + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). */ - applied: boolean; + country?: string; /** - * Capabilities that have been requested on the Recipient Configuration. + * Address line 1 (e.g., street, PO Box, or company name). */ - capabilities?: Recipient.Capabilities; + line1?: string; /** - * The payout method to be used as a default outbound destination. This will allow the PayoutMethod to be omitted on OutboundPayments made through the dashboard or APIs. + * Address line 2 (e.g., apartment, suite, unit, or building). */ - default_outbound_destination?: Recipient.DefaultOutboundDestination; - } + line2?: string; - export interface Storer { /** - * Indicates whether the storer configuration is active. You cannot deactivate (or reactivate) the storer configuration by updating this property. + * ZIP or postal code. */ - applied: boolean; + postal_code?: string; /** - * Capabilities that have been requested on the Storer Configuration. + * State, county, province, or region. */ - capabilities?: Storer.Capabilities; + state?: string; } + } + } - export namespace Customer { - export interface AutomaticIndirectTax { - /** - * The customer account's tax exemption status: `none`, `exempt`, or `reverse`. When `reverse`, invoice and receipt PDFs include "Reverse charge". - */ - exempt?: AutomaticIndirectTax.Exempt; + export namespace Merchant { + export interface BacsDebitPayments { + /** + * Display name for Bacs Direct Debit payments. + */ + display_name?: string; - /** - * A recent IP address of the customer used for tax reporting and tax location inference. - */ - ip_address?: string; + /** + * Service User Number (SUN) for Bacs Direct Debit payments. + */ + service_user_number?: string; + } - /** - * The customer account's identified tax location, derived from `location_source`. Only rendered if the `automatic_indirect_tax` feature is requested and `active`. - */ - location?: AutomaticIndirectTax.Location; + export interface Branding { + /** + * ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): An icon for the merchant. Must be square and at least 128px x 128px. + */ + icon?: string; - /** - * Data source used to identify the customer account's tax location. Defaults to `identity_address`. Used for automatic indirect tax calculation. - */ - location_source?: AutomaticIndirectTax.LocationSource; - } + /** + * ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): A logo for the merchant that will be used in Checkout instead of the icon and without the merchant's name next to it if provided. Must be at least 128px x 128px. + */ + logo?: string; - export interface Billing { - /** - * The ID of a `PaymentMethod` attached to this Account's `customer` configuration, used as the default payment method for invoices and subscriptions. - */ - default_payment_method?: string; + /** + * A CSS hex color value representing the primary branding color for the merchant. + */ + primary_color?: string; - /** - * Default invoice settings for the customer account. - */ - invoice?: Billing.Invoice; - } + /** + * A CSS hex color value representing the secondary branding color for the merchant. + */ + secondary_color?: string; + } - export interface Capabilities { - /** - * Generates requirements for enabling automatic indirect tax calculation on this customer's invoices or subscriptions. Recommended to request this capability if planning to enable automatic tax calculation on this customer's invoices or subscriptions. - */ - automatic_indirect_tax?: Capabilities.AutomaticIndirectTax; - } + export interface Capabilities { + /** + * Allow the merchant to process ACH debit payments. + */ + ach_debit_payments?: Capabilities.AchDebitPayments; - export interface Shipping { - /** - * Customer shipping address. - */ - address?: Shipping.Address; + /** + * Allow the merchant to process ACSS debit payments. + */ + acss_debit_payments?: Capabilities.AcssDebitPayments; - /** - * Customer name. - */ - name?: string; + /** + * Allow the merchant to process Affirm payments. + */ + affirm_payments?: Capabilities.AffirmPayments; - /** - * Customer phone (including extension). - */ - phone?: string; - } + /** + * Allow the merchant to process Afterpay/Clearpay payments. + */ + afterpay_clearpay_payments?: Capabilities.AfterpayClearpayPayments; - export namespace AutomaticIndirectTax { - export type Exempt = 'exempt' | 'none' | 'reverse'; + /** + * Allow the merchant to process Alma payments. + */ + alma_payments?: Capabilities.AlmaPayments; - export interface Location { - /** - * The identified tax country of the customer. - */ - country?: string; + /** + * Allow the merchant to process Amazon Pay payments. + */ + amazon_pay_payments?: Capabilities.AmazonPayPayments; - /** - * The identified tax state, county, province, or region of the customer. - */ - state?: string; - } + /** + * Allow the merchant to process Australian BECS Direct Debit payments. + */ + au_becs_debit_payments?: Capabilities.AuBecsDebitPayments; - export type LocationSource = - | 'identity_address' - | 'ip_address' - | 'payment_method' - | 'shipping_address'; - } + /** + * Allow the merchant to process BACS Direct Debit payments. + */ + bacs_debit_payments?: Capabilities.BacsDebitPayments; - export namespace Billing { - export interface Invoice { - /** - * The list of up to 4 default custom fields to be displayed on invoices for this customer. When updating, pass an empty string to remove previously-defined fields. - */ - custom_fields: Array; + /** + * Allow the merchant to process Bancontact payments. + */ + bancontact_payments?: Capabilities.BancontactPayments; - /** - * Default invoice footer. - */ - footer?: string; + /** + * Allow the merchant to process BLIK payments. + */ + blik_payments?: Capabilities.BlikPayments; - /** - * Sequence number to use on the customer account's next invoice. Defaults to 1. - */ - next_sequence?: number; + /** + * Allow the merchant to process Boleto payments. + */ + boleto_payments?: Capabilities.BoletoPayments; - /** - * Prefix used to generate unique invoice numbers. Must be 3-12 uppercase letters or numbers. - */ - prefix?: string; + /** + * Allow the merchant to collect card payments. + */ + card_payments?: Capabilities.CardPayments; - /** - * Default invoice PDF rendering options. - */ - rendering?: Invoice.Rendering; - } + /** + * Allow the merchant to process Cartes Bancaires payments. + */ + cartes_bancaires_payments?: Capabilities.CartesBancairesPayments; - export namespace Invoice { - export interface CustomField { - /** - * The name of the custom field. This may be up to 40 characters. - */ - name: string; + /** + * Allow the merchant to process Cash App payments. + */ + cashapp_payments?: Capabilities.CashappPayments; - /** - * The value of the custom field. This may be up to 140 characters. When updating, pass an empty string to remove previously-defined values. - */ - value: string; - } + /** + * Allow the merchant to process EPS payments. + */ + eps_payments?: Capabilities.EpsPayments; - export interface Rendering { - /** - * Indicates whether displayed line item prices and amounts on invoice PDFs include inclusive tax amounts. Must be either `include_inclusive_tax` or `exclude_tax`. - */ - amount_tax_display?: Rendering.AmountTaxDisplay; + /** + * Allow the merchant to process FPX payments. + */ + fpx_payments?: Capabilities.FpxPayments; - /** - * ID of the invoice rendering template to use for future invoices. - */ - template?: string; - } + /** + * Allow the merchant to process UK bank transfer payments. + */ + gb_bank_transfer_payments?: Capabilities.GbBankTransferPayments; - export namespace Rendering { - export type AmountTaxDisplay = - | 'exclude_tax' - | 'include_inclusive_tax'; - } - } - } + /** + * Allow the merchant to process GrabPay payments. + */ + grabpay_payments?: Capabilities.GrabpayPayments; - export namespace Capabilities { - export interface AutomaticIndirectTax { - /** - * The status of the Capability. - */ - status: AutomaticIndirectTax.Status; + /** + * Allow the merchant to process iDEAL payments. + */ + ideal_payments?: Capabilities.IdealPayments; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Allow the merchant to process JCB card payments. + */ + jcb_payments?: Capabilities.JcbPayments; - export namespace AutomaticIndirectTax { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + /** + * Allow the merchant to process Japanese bank transfer payments. + */ + jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Allow the merchant to process Kakao Pay payments. + */ + kakao_pay_payments?: Capabilities.KakaoPayPayments; - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + /** + * Allow the merchant to process Klarna payments. + */ + klarna_payments?: Capabilities.KlarnaPayments; - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } - } + /** + * Allow the merchant to process Konbini convenience store payments. + */ + konbini_payments?: Capabilities.KonbiniPayments; - export namespace Shipping { - export interface Address { - /** - * City, district, suburb, town, or village. - */ - city?: string; + /** + * Allow the merchant to process Korean card payments. + */ + kr_card_payments?: Capabilities.KrCardPayments; - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country?: string; + /** + * Allow the merchant to process Link payments. + */ + link_payments?: Capabilities.LinkPayments; - /** - * Address line 1 (e.g., street, PO Box, or company name). - */ - line1?: string; + /** + * Allow the merchant to process MobilePay payments. + */ + mobilepay_payments?: Capabilities.MobilepayPayments; - /** - * Address line 2 (e.g., apartment, suite, unit, or building). - */ - line2?: string; + /** + * Allow the merchant to process Multibanco payments. + */ + multibanco_payments?: Capabilities.MultibancoPayments; - /** - * ZIP or postal code. - */ - postal_code?: string; + /** + * Allow the merchant to process Mexican bank transfer payments. + */ + mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments; - /** - * State, county, province, or region. - */ - state?: string; - } - } - } + /** + * Allow the merchant to process Naver Pay payments. + */ + naver_pay_payments?: Capabilities.NaverPayPayments; - export namespace Merchant { - export interface BacsDebitPayments { - /** - * Display name for Bacs Direct Debit payments. - */ - display_name?: string; + /** + * Allow the merchant to process OXXO payments. + */ + oxxo_payments?: Capabilities.OxxoPayments; - /** - * Service User Number (SUN) for Bacs Direct Debit payments. - */ - service_user_number?: string; - } + /** + * Allow the merchant to process Przelewy24 (P24) payments. + */ + p24_payments?: Capabilities.P24Payments; - export interface Branding { - /** - * ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): An icon for the merchant. Must be square and at least 128px x 128px. - */ - icon?: string; + /** + * Allow the merchant to process Pay by Bank payments. + */ + pay_by_bank_payments?: Capabilities.PayByBankPayments; - /** - * ID of a [file upload](https://docs.stripe.com/api/persons/update#create_file): A logo for the merchant that will be used in Checkout instead of the icon and without the merchant's name next to it if provided. Must be at least 128px x 128px. - */ - logo?: string; + /** + * Allow the merchant to process PAYCO payments. + */ + payco_payments?: Capabilities.PaycoPayments; - /** - * A CSS hex color value representing the primary branding color for the merchant. - */ - primary_color?: string; + /** + * Allow the merchant to process PayNow payments. + */ + paynow_payments?: Capabilities.PaynowPayments; - /** - * A CSS hex color value representing the secondary branding color for the merchant. - */ - secondary_color?: string; - } + /** + * Allow the merchant to process PromptPay payments. + */ + promptpay_payments?: Capabilities.PromptpayPayments; - export interface Capabilities { - /** - * Allow the merchant to process ACH debit payments. - */ - ach_debit_payments?: Capabilities.AchDebitPayments; + /** + * Allow the merchant to process Revolut Pay payments. + */ + revolut_pay_payments?: Capabilities.RevolutPayPayments; - /** - * Allow the merchant to process ACSS debit payments. - */ - acss_debit_payments?: Capabilities.AcssDebitPayments; + /** + * Allow the merchant to process Samsung Pay payments. + */ + samsung_pay_payments?: Capabilities.SamsungPayPayments; - /** - * Allow the merchant to process Affirm payments. - */ - affirm_payments?: Capabilities.AffirmPayments; + /** + * Allow the merchant to process SEPA bank transfer payments. + */ + sepa_bank_transfer_payments?: Capabilities.SepaBankTransferPayments; - /** - * Allow the merchant to process Afterpay/Clearpay payments. - */ - afterpay_clearpay_payments?: Capabilities.AfterpayClearpayPayments; + /** + * Allow the merchant to process SEPA Direct Debit payments. + */ + sepa_debit_payments?: Capabilities.SepaDebitPayments; - /** - * Allow the merchant to process Alma payments. - */ - alma_payments?: Capabilities.AlmaPayments; + /** + * Capabilities that enable the merchant to manage their Stripe Balance (/v1/balance). + */ + stripe_balance?: Capabilities.StripeBalance; - /** - * Allow the merchant to process Amazon Pay payments. - */ - amazon_pay_payments?: Capabilities.AmazonPayPayments; + /** + * Allow the merchant to process Swish payments. + */ + swish_payments?: Capabilities.SwishPayments; - /** - * Allow the merchant to process Australian BECS Direct Debit payments. - */ - au_becs_debit_payments?: Capabilities.AuBecsDebitPayments; + /** + * Allow the merchant to process TWINT payments. + */ + twint_payments?: Capabilities.TwintPayments; - /** - * Allow the merchant to process BACS Direct Debit payments. - */ - bacs_debit_payments?: Capabilities.BacsDebitPayments; + /** + * Allow the merchant to process US bank transfer payments. + */ + us_bank_transfer_payments?: Capabilities.UsBankTransferPayments; - /** - * Allow the merchant to process Bancontact payments. - */ - bancontact_payments?: Capabilities.BancontactPayments; + /** + * Allow the merchant to process Zip payments. + */ + zip_payments?: Capabilities.ZipPayments; + } - /** - * Allow the merchant to process BLIK payments. - */ - blik_payments?: Capabilities.BlikPayments; + export interface CardPayments { + /** + * Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge. + */ + decline_on?: CardPayments.DeclineOn; + } - /** - * Allow the merchant to process Boleto payments. - */ - boleto_payments?: Capabilities.BoletoPayments; + export interface KonbiniPayments { + /** + * Support for Konbini payments. + */ + support?: KonbiniPayments.Support; + } - /** - * Allow the merchant to collect card payments. - */ - card_payments?: Capabilities.CardPayments; + export interface ScriptStatementDescriptor { + /** + * The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + */ + kana?: ScriptStatementDescriptor.Kana; - /** - * Allow the merchant to process Cartes Bancaires payments. - */ - cartes_bancaires_payments?: Capabilities.CartesBancairesPayments; + /** + * The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). + */ + kanji?: ScriptStatementDescriptor.Kanji; + } - /** - * Allow the merchant to process Cash App payments. - */ - cashapp_payments?: Capabilities.CashappPayments; + export interface SepaDebitPayments { + /** + * Creditor ID for SEPA Direct Debit payments. + */ + creditor_id?: string; + } - /** - * Allow the merchant to process EPS payments. - */ - eps_payments?: Capabilities.EpsPayments; + export interface SmartDisputes { + /** + * Settings for Smart Disputes auto_respond. + */ + auto_respond?: SmartDisputes.AutoRespond; + } - /** - * Allow the merchant to process FPX payments. - */ - fpx_payments?: Capabilities.FpxPayments; + export interface StatementDescriptor { + /** + * The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + */ + descriptor?: string; - /** - * Allow the merchant to process UK bank transfer payments. - */ - gb_bank_transfer_payments?: Capabilities.GbBankTransferPayments; + /** + * Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don't specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + */ + prefix?: string; + } - /** - * Allow the merchant to process GrabPay payments. - */ - grabpay_payments?: Capabilities.GrabpayPayments; + export interface Support { + /** + * A publicly available mailing address for sending support issues to. + */ + address?: Support.Address; - /** - * Allow the merchant to process iDEAL payments. - */ - ideal_payments?: Capabilities.IdealPayments; + /** + * A publicly available email address for sending support issues to. + */ + email?: string; - /** - * Allow the merchant to process JCB card payments. - */ - jcb_payments?: Capabilities.JcbPayments; + /** + * A publicly available phone number to call with support issues. + */ + phone?: string; - /** - * Allow the merchant to process Japanese bank transfer payments. - */ - jp_bank_transfer_payments?: Capabilities.JpBankTransferPayments; + /** + * A publicly available website for handling support issues. + */ + url?: string; + } - /** - * Allow the merchant to process Kakao Pay payments. - */ - kakao_pay_payments?: Capabilities.KakaoPayPayments; + export namespace Capabilities { + export interface AchDebitPayments { + /** + * The status of the Capability. + */ + status: AchDebitPayments.Status; - /** - * Allow the merchant to process Klarna payments. - */ - klarna_payments?: Capabilities.KlarnaPayments; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Allow the merchant to process Konbini convenience store payments. - */ - konbini_payments?: Capabilities.KonbiniPayments; + export interface AcssDebitPayments { + /** + * The status of the Capability. + */ + status: AcssDebitPayments.Status; - /** - * Allow the merchant to process Korean card payments. - */ - kr_card_payments?: Capabilities.KrCardPayments; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Allow the merchant to process Link payments. - */ - link_payments?: Capabilities.LinkPayments; + export interface AffirmPayments { + /** + * The status of the Capability. + */ + status: AffirmPayments.Status; - /** - * Allow the merchant to process MobilePay payments. - */ - mobilepay_payments?: Capabilities.MobilepayPayments; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Allow the merchant to process Multibanco payments. - */ - multibanco_payments?: Capabilities.MultibancoPayments; + export interface AfterpayClearpayPayments { + /** + * The status of the Capability. + */ + status: AfterpayClearpayPayments.Status; - /** - * Allow the merchant to process Mexican bank transfer payments. - */ - mx_bank_transfer_payments?: Capabilities.MxBankTransferPayments; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Allow the merchant to process Naver Pay payments. - */ - naver_pay_payments?: Capabilities.NaverPayPayments; + export interface AlmaPayments { + /** + * The status of the Capability. + */ + status: AlmaPayments.Status; - /** - * Allow the merchant to process OXXO payments. - */ - oxxo_payments?: Capabilities.OxxoPayments; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Allow the merchant to process Przelewy24 (P24) payments. - */ - p24_payments?: Capabilities.P24Payments; + export interface AmazonPayPayments { + /** + * The status of the Capability. + */ + status: AmazonPayPayments.Status; - /** - * Allow the merchant to process Pay by Bank payments. - */ - pay_by_bank_payments?: Capabilities.PayByBankPayments; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Allow the merchant to process PAYCO payments. - */ - payco_payments?: Capabilities.PaycoPayments; + export interface AuBecsDebitPayments { + /** + * The status of the Capability. + */ + status: AuBecsDebitPayments.Status; - /** - * Allow the merchant to process PayNow payments. - */ - paynow_payments?: Capabilities.PaynowPayments; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Allow the merchant to process PromptPay payments. - */ - promptpay_payments?: Capabilities.PromptpayPayments; + export interface BacsDebitPayments { + /** + * The status of the Capability. + */ + status: BacsDebitPayments.Status; - /** - * Allow the merchant to process Revolut Pay payments. - */ - revolut_pay_payments?: Capabilities.RevolutPayPayments; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Allow the merchant to process Samsung Pay payments. - */ - samsung_pay_payments?: Capabilities.SamsungPayPayments; + export interface BancontactPayments { + /** + * The status of the Capability. + */ + status: BancontactPayments.Status; - /** - * Allow the merchant to process SEPA bank transfer payments. - */ - sepa_bank_transfer_payments?: Capabilities.SepaBankTransferPayments; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Allow the merchant to process SEPA Direct Debit payments. - */ - sepa_debit_payments?: Capabilities.SepaDebitPayments; + export interface BlikPayments { + /** + * The status of the Capability. + */ + status: BlikPayments.Status; - /** - * Capabilities that enable the merchant to manage their Stripe Balance (/v1/balance). - */ - stripe_balance?: Capabilities.StripeBalance; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Allow the merchant to process Swish payments. - */ - swish_payments?: Capabilities.SwishPayments; + export interface BoletoPayments { + /** + * The status of the Capability. + */ + status: BoletoPayments.Status; - /** - * Allow the merchant to process TWINT payments. - */ - twint_payments?: Capabilities.TwintPayments; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Allow the merchant to process US bank transfer payments. - */ - us_bank_transfer_payments?: Capabilities.UsBankTransferPayments; + export interface CardPayments { + /** + * The status of the Capability. + */ + status: CardPayments.Status; - /** - * Allow the merchant to process Zip payments. - */ - zip_payments?: Capabilities.ZipPayments; - } - - export interface CardPayments { - /** - * Automatically declines certain charge types regardless of whether the card issuer accepted or declined the charge. - */ - decline_on?: CardPayments.DeclineOn; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface KonbiniPayments { - /** - * Support for Konbini payments. - */ - support?: KonbiniPayments.Support; - } + export interface CartesBancairesPayments { + /** + * The status of the Capability. + */ + status: CartesBancairesPayments.Status; - export interface ScriptStatementDescriptor { - /** - * The Kana variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). - */ - kana?: ScriptStatementDescriptor.Kana; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * The Kanji variation of statement_descriptor used for charges in Japan. Japanese statement descriptors have [special requirements](https://docs.stripe.com/get-started/account/statement-descriptors#set-japanese-statement-descriptors). - */ - kanji?: ScriptStatementDescriptor.Kanji; - } + export interface CashappPayments { + /** + * The status of the Capability. + */ + status: CashappPayments.Status; - export interface SepaDebitPayments { - /** - * Creditor ID for SEPA Direct Debit payments. - */ - creditor_id?: string; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface SmartDisputes { - /** - * Settings for Smart Disputes auto_respond. - */ - auto_respond?: SmartDisputes.AutoRespond; - } + export interface EpsPayments { + /** + * The status of the Capability. + */ + status: EpsPayments.Status; - export interface StatementDescriptor { - /** - * The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. - */ - descriptor?: string; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don't specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. - */ - prefix?: string; - } + export interface FpxPayments { + /** + * The status of the Capability. + */ + status: FpxPayments.Status; - export interface Support { - /** - * A publicly available mailing address for sending support issues to. - */ - address?: Support.Address; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * A publicly available email address for sending support issues to. - */ - email?: string; + export interface GbBankTransferPayments { + /** + * The status of the Capability. + */ + status: GbBankTransferPayments.Status; - /** - * A publicly available phone number to call with support issues. - */ - phone?: string; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * A publicly available website for handling support issues. - */ - url?: string; - } + export interface GrabpayPayments { + /** + * The status of the Capability. + */ + status: GrabpayPayments.Status; - export namespace Capabilities { - export interface AchDebitPayments { - /** - * The status of the Capability. - */ - status: AchDebitPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface IdealPayments { + /** + * The status of the Capability. + */ + status: IdealPayments.Status; - export interface AcssDebitPayments { - /** - * The status of the Capability. - */ - status: AcssDebitPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface JcbPayments { + /** + * The status of the Capability. + */ + status: JcbPayments.Status; - export interface AffirmPayments { - /** - * The status of the Capability. - */ - status: AffirmPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface JpBankTransferPayments { + /** + * The status of the Capability. + */ + status: JpBankTransferPayments.Status; - export interface AfterpayClearpayPayments { - /** - * The status of the Capability. - */ - status: AfterpayClearpayPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface KakaoPayPayments { + /** + * The status of the Capability. + */ + status: KakaoPayPayments.Status; - export interface AlmaPayments { - /** - * The status of the Capability. - */ - status: AlmaPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface KlarnaPayments { + /** + * The status of the Capability. + */ + status: KlarnaPayments.Status; - export interface AmazonPayPayments { - /** - * The status of the Capability. - */ - status: AmazonPayPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface KonbiniPayments { + /** + * The status of the Capability. + */ + status: KonbiniPayments.Status; - export interface AuBecsDebitPayments { - /** - * The status of the Capability. - */ - status: AuBecsDebitPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface KrCardPayments { + /** + * The status of the Capability. + */ + status: KrCardPayments.Status; - export interface BacsDebitPayments { - /** - * The status of the Capability. - */ - status: BacsDebitPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface LinkPayments { + /** + * The status of the Capability. + */ + status: LinkPayments.Status; - export interface BancontactPayments { - /** - * The status of the Capability. - */ - status: BancontactPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface MobilepayPayments { + /** + * The status of the Capability. + */ + status: MobilepayPayments.Status; - export interface BlikPayments { - /** - * The status of the Capability. - */ - status: BlikPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface MultibancoPayments { + /** + * The status of the Capability. + */ + status: MultibancoPayments.Status; - export interface BoletoPayments { - /** - * The status of the Capability. - */ - status: BoletoPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface MxBankTransferPayments { + /** + * The status of the Capability. + */ + status: MxBankTransferPayments.Status; - export interface CardPayments { - /** - * The status of the Capability. - */ - status: CardPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface NaverPayPayments { + /** + * The status of the Capability. + */ + status: NaverPayPayments.Status; - export interface CartesBancairesPayments { - /** - * The status of the Capability. - */ - status: CartesBancairesPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface OxxoPayments { + /** + * The status of the Capability. + */ + status: OxxoPayments.Status; - export interface CashappPayments { - /** - * The status of the Capability. - */ - status: CashappPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface P24Payments { + /** + * The status of the Capability. + */ + status: P24Payments.Status; - export interface EpsPayments { - /** - * The status of the Capability. - */ - status: EpsPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } - - export interface FpxPayments { - /** - * The status of the Capability. - */ - status: FpxPayments.Status; + export interface PayByBankPayments { + /** + * The status of the Capability. + */ + status: PayByBankPayments.Status; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface GbBankTransferPayments { - /** - * The status of the Capability. - */ - status: GbBankTransferPayments.Status; + export interface PaycoPayments { + /** + * The status of the Capability. + */ + status: PaycoPayments.Status; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface GrabpayPayments { - /** - * The status of the Capability. - */ - status: GrabpayPayments.Status; + export interface PaynowPayments { + /** + * The status of the Capability. + */ + status: PaynowPayments.Status; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface IdealPayments { - /** - * The status of the Capability. - */ - status: IdealPayments.Status; + export interface PromptpayPayments { + /** + * The status of the Capability. + */ + status: PromptpayPayments.Status; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface JcbPayments { - /** - * The status of the Capability. - */ - status: JcbPayments.Status; + export interface RevolutPayPayments { + /** + * The status of the Capability. + */ + status: RevolutPayPayments.Status; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface JpBankTransferPayments { - /** - * The status of the Capability. - */ - status: JpBankTransferPayments.Status; + export interface SamsungPayPayments { + /** + * The status of the Capability. + */ + status: SamsungPayPayments.Status; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface KakaoPayPayments { - /** - * The status of the Capability. - */ - status: KakaoPayPayments.Status; + export interface SepaBankTransferPayments { + /** + * The status of the Capability. + */ + status: SepaBankTransferPayments.Status; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface KlarnaPayments { - /** - * The status of the Capability. - */ - status: KlarnaPayments.Status; + export interface SepaDebitPayments { + /** + * The status of the Capability. + */ + status: SepaDebitPayments.Status; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface KonbiniPayments { - /** - * The status of the Capability. - */ - status: KonbiniPayments.Status; + export interface StripeBalance { + /** + * Enables this Account to complete payouts from their Stripe Balance (/v1/balance). + */ + payouts?: StripeBalance.Payouts; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface SwishPayments { + /** + * The status of the Capability. + */ + status: SwishPayments.Status; - export interface KrCardPayments { - /** - * The status of the Capability. - */ - status: KrCardPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface TwintPayments { + /** + * The status of the Capability. + */ + status: TwintPayments.Status; - export interface LinkPayments { - /** - * The status of the Capability. - */ - status: LinkPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface UsBankTransferPayments { + /** + * The status of the Capability. + */ + status: UsBankTransferPayments.Status; - export interface MobilepayPayments { - /** - * The status of the Capability. - */ - status: MobilepayPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface ZipPayments { + /** + * The status of the Capability. + */ + status: ZipPayments.Status; - export interface MultibancoPayments { - /** - * The status of the Capability. - */ - status: MultibancoPayments.Status; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export namespace AchDebitPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export interface MxBankTransferPayments { - /** - * The status of the Capability. - */ - status: MxBankTransferPayments.Status; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - export interface NaverPayPayments { - /** - * The status of the Capability. - */ - status: NaverPayPayments.Status; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export namespace AcssDebitPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export interface OxxoPayments { - /** - * The status of the Capability. - */ - status: OxxoPayments.Status; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - export interface P24Payments { - /** - * The status of the Capability. - */ - status: P24Payments.Status; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export namespace AffirmPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export interface PayByBankPayments { - /** - * The status of the Capability. - */ - status: PayByBankPayments.Status; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - export interface PaycoPayments { - /** - * The status of the Capability. - */ - status: PaycoPayments.Status; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export namespace AfterpayClearpayPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export interface PaynowPayments { - /** - * The status of the Capability. - */ - status: PaynowPayments.Status; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - export interface PromptpayPayments { - /** - * The status of the Capability. - */ - status: PromptpayPayments.Status; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export namespace AlmaPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export interface RevolutPayPayments { - /** - * The status of the Capability. - */ - status: RevolutPayPayments.Status; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - export interface SamsungPayPayments { - /** - * The status of the Capability. - */ - status: SamsungPayPayments.Status; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export namespace AmazonPayPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export interface SepaBankTransferPayments { - /** - * The status of the Capability. - */ - status: SepaBankTransferPayments.Status; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - export interface SepaDebitPayments { - /** - * The status of the Capability. - */ - status: SepaDebitPayments.Status; - - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export interface StripeBalance { - /** - * Enables this Account to complete payouts from their Stripe Balance (/v1/balance). - */ - payouts?: StripeBalance.Payouts; - } + export namespace AuBecsDebitPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export interface SwishPayments { - /** - * The status of the Capability. - */ - status: SwishPayments.Status; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - export interface TwintPayments { - /** - * The status of the Capability. - */ - status: TwintPayments.Status; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export namespace BacsDebitPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export interface UsBankTransferPayments { - /** - * The status of the Capability. - */ - status: UsBankTransferPayments.Status; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - export interface ZipPayments { - /** - * The status of the Capability. - */ - status: ZipPayments.Status; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export namespace BancontactPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace AchDebitPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace BlikPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace AcssDebitPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace BoletoPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace AffirmPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace CardPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace AfterpayClearpayPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace CartesBancairesPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace AlmaPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace CashappPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace AmazonPayPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace EpsPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace AuBecsDebitPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace FpxPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace BacsDebitPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace GbBankTransferPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace BancontactPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace GrabpayPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace BlikPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace IdealPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace BoletoPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace JcbPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace CardPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace JpBankTransferPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace CartesBancairesPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace KakaoPayPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace CashappPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace KlarnaPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace EpsPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace KonbiniPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace FpxPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace KrCardPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace GbBankTransferPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace LinkPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace GrabpayPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace MobilepayPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace IdealPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace MultibancoPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace JcbPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace MxBankTransferPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace JpBankTransferPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace NaverPayPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace KakaoPayPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace OxxoPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace KlarnaPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace P24Payments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace KonbiniPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace PayByBankPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace KrCardPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace PaycoPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace LinkPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace PaynowPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace MobilepayPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace PromptpayPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace MultibancoPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace RevolutPayPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace MxBankTransferPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace SamsungPayPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace NaverPayPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace SepaBankTransferPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace OxxoPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace SepaDebitPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace P24Payments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace StripeBalance { + export interface Payouts { + /** + * The status of the Capability. + */ + status: Payouts.Status; - export namespace PayByBankPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + export namespace Payouts { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; } - export namespace PaycoPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; } + } + } - export namespace PaynowPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export namespace SwishPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace PromptpayPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export namespace TwintPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace RevolutPayPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export namespace UsBankTransferPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace SamsungPayPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export namespace ZipPayments { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } + } - export namespace SepaBankTransferPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export namespace CardPayments { + export interface DeclineOn { + /** + * Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification. + */ + avs_failure?: boolean; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification. + */ + cvc_failure?: boolean; + } + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace KonbiniPayments { + export interface Support { + /** + * Support email address for Konbini payments. + */ + email?: string; - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + /** + * Support hours for Konbini payments. + */ + hours?: Support.Hours; - export namespace SepaDebitPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + /** + * Support phone number for Konbini payments. + */ + phone?: string; + } - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + export namespace Support { + export interface Hours { + /** + * Support hours end time (JST time of day) for in `HH:MM` format. + */ + end_time?: string; - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + /** + * Support hours start time (JST time of day) for in `HH:MM` format. + */ + start_time?: string; + } + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace ScriptStatementDescriptor { + export interface Kana { + /** + * The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + */ + descriptor?: string; - export namespace StripeBalance { - export interface Payouts { - /** - * The status of the Capability. - */ - status: Payouts.Status; + /** + * Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don't specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + */ + prefix?: string; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface Kanji { + /** + * The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + */ + descriptor?: string; - export namespace Payouts { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } - } + /** + * Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don't specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. + */ + prefix?: string; + } + } - export namespace SwishPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export namespace SmartDisputes { + export interface AutoRespond { + /** + * The preference for automatic dispute responses. + */ + preference?: AutoRespond.Preference; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * The effective value for automatic dispute responses. + */ + value?: AutoRespond.Value; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace AutoRespond { + export type Preference = 'inherit' | 'off' | 'on'; - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export type Value = 'off' | 'on'; + } + } - export namespace TwintPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + export namespace Support { + export interface Address { + /** + * City, district, suburb, town, or village. + */ + city?: string; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country?: string; - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: string; - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: string; - export namespace UsBankTransferPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + /** + * ZIP or postal code. + */ + postal_code?: string; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * State, county, province, or region. + */ + state?: string; - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + /** + * Town or district. + */ + town?: string; + } + } + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace Recipient { + export interface Capabilities { + /** + * Capabilities that enable OutboundPayments to a bank account linked to this Account. + */ + bank_accounts?: Capabilities.BankAccounts; - export namespace ZipPayments { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + /** + * Enables this Account to receive OutboundPayments to a linked debit card. + */ + cards?: Capabilities.Cards; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). + */ + stripe_balance?: Capabilities.StripeBalance; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export interface DefaultOutboundDestination { + /** + * The payout method ID of the default outbound destination. + */ + id: string; - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } - } + /** + * Closed Enum. The payout method type of the default outbound destination. + */ + type: DefaultOutboundDestination.Type; + } - export namespace CardPayments { - export interface DeclineOn { - /** - * Whether Stripe automatically declines charges with an incorrect ZIP or postal code. This setting only applies when a ZIP or postal code is provided and they fail bank verification. - */ - avs_failure?: boolean; + export namespace Capabilities { + export interface BankAccounts { + /** + * Enables this Account to receive OutboundPayments to linked bank accounts over local networks. + */ + local?: BankAccounts.Local; - /** - * Whether Stripe automatically declines charges with an incorrect CVC. This setting only applies when a CVC is provided and it fails bank verification. - */ - cvc_failure?: boolean; - } - } + /** + * Enables this Account to receive OutboundPayments to linked bank accounts over wire. + */ + wire?: BankAccounts.Wire; + } - export namespace KonbiniPayments { - export interface Support { - /** - * Support email address for Konbini payments. - */ - email?: string; + export interface Cards { + /** + * The status of the Capability. + */ + status: Cards.Status; - /** - * Support hours for Konbini payments. - */ - hours?: Support.Hours; - - /** - * Support phone number for Konbini payments. - */ - phone?: string; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export namespace Support { - export interface Hours { - /** - * Support hours end time (JST time of day) for in `HH:MM` format. - */ - end_time?: string; + export interface StripeBalance { + /** + * Enables this Account to complete payouts from their Stripe Balance (/v1/balance). + */ + payouts?: StripeBalance.Payouts; - /** - * Support hours start time (JST time of day) for in `HH:MM` format. - */ - start_time?: string; - } - } - } + /** + * Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance). + */ + stripe_transfers?: StripeBalance.StripeTransfers; + } - export namespace ScriptStatementDescriptor { - export interface Kana { - /** - * The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. - */ - descriptor?: string; + export namespace BankAccounts { + export interface Local { + /** + * The status of the Capability. + */ + status: Local.Status; - /** - * Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don't specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. - */ - prefix?: string; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface Kanji { - /** - * The default text that appears on statements for non-card charges outside of Japan. For card charges, if you don't set a statement_descriptor_prefix, this text is also used as the statement descriptor prefix. In that case, if concatenating the statement descriptor suffix causes the combined statement descriptor to exceed 22 characters, we truncate the statement_descriptor text to limit the full descriptor to 22 characters. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. - */ - descriptor?: string; + export interface Wire { + /** + * The status of the Capability. + */ + status: Wire.Status; - /** - * Default text that appears on statements for card charges outside of Japan, prefixing any dynamic statement_descriptor_suffix specified on the charge. To maximize space for the dynamic part of the descriptor, keep this text short. If you don't specify this value, statement_descriptor is used as the prefix. For more information about statement descriptors and their requirements, see the Merchant Configuration settings documentation. - */ - prefix?: string; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; } - export namespace SmartDisputes { - export interface AutoRespond { + export namespace Local { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; + + export interface StatusDetail { /** - * The preference for automatic dispute responses. + * Machine-readable code explaining the reason for the Capability to be in its current status. */ - preference?: AutoRespond.Preference; + code: StatusDetail.Code; /** - * The effective value for automatic dispute responses. + * Machine-readable code explaining how to make the Capability active. */ - value?: AutoRespond.Value; + resolution: StatusDetail.Resolution; } - export namespace AutoRespond { - export type Preference = 'inherit' | 'off' | 'on'; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; - export type Value = 'off' | 'on'; + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; } } - export namespace Support { - export interface Address { - /** - * City, district, suburb, town, or village. - */ - city?: string; - - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country?: string; - - /** - * Address line 1 (e.g., street, PO Box, or company name). - */ - line1?: string; + export namespace Wire { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; + export interface StatusDetail { /** - * Address line 2 (e.g., apartment, suite, unit, or building). + * Machine-readable code explaining the reason for the Capability to be in its current status. */ - line2?: string; + code: StatusDetail.Code; /** - * ZIP or postal code. + * Machine-readable code explaining how to make the Capability active. */ - postal_code?: string; + resolution: StatusDetail.Resolution; + } - /** - * State, county, province, or region. - */ - state?: string; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; - /** - * Town or district. - */ - town?: string; + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; } } } - export namespace Recipient { - export interface Capabilities { + export namespace Cards { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; + + export interface StatusDetail { /** - * Capabilities that enable OutboundPayments to a bank account linked to this Account. + * Machine-readable code explaining the reason for the Capability to be in its current status. */ - bank_accounts?: Capabilities.BankAccounts; + code: StatusDetail.Code; /** - * Enables this Account to receive OutboundPayments to a linked debit card. + * Machine-readable code explaining how to make the Capability active. */ - cards?: Capabilities.Cards; + resolution: StatusDetail.Resolution; + } + + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } + export namespace StripeBalance { + export interface Payouts { /** - * Capabilities that enable the recipient to manage their Stripe Balance (/v1/balance). + * The status of the Capability. */ - stripe_balance?: Capabilities.StripeBalance; + status: Payouts.Status; + + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; } - export interface DefaultOutboundDestination { + export interface StripeTransfers { /** - * The payout method ID of the default outbound destination. + * The status of the Capability. */ - id: string; + status: StripeTransfers.Status; /** - * Closed Enum. The payout method type of the default outbound destination. + * Additional details about the capability's status. This value is empty when `status` is `active`. */ - type: DefaultOutboundDestination.Type; + status_details: Array; } - export namespace Capabilities { - export interface BankAccounts { + export namespace Payouts { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; + + export interface StatusDetail { /** - * Enables this Account to receive OutboundPayments to linked bank accounts over local networks. + * Machine-readable code explaining the reason for the Capability to be in its current status. */ - local?: BankAccounts.Local; + code: StatusDetail.Code; /** - * Enables this Account to receive OutboundPayments to linked bank accounts over wire. + * Machine-readable code explaining how to make the Capability active. */ - wire?: BankAccounts.Wire; + resolution: StatusDetail.Resolution; } - export interface Cards { - /** - * The status of the Capability. - */ - status: Cards.Status; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; } + } - export interface StripeBalance { + export namespace StripeTransfers { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; + + export interface StatusDetail { /** - * Enables this Account to complete payouts from their Stripe Balance (/v1/balance). + * Machine-readable code explaining the reason for the Capability to be in its current status. */ - payouts?: StripeBalance.Payouts; + code: StatusDetail.Code; /** - * Enables this Account to receive /v1/transfers into their Stripe Balance (/v1/balance). + * Machine-readable code explaining how to make the Capability active. */ - stripe_transfers?: StripeBalance.StripeTransfers; + resolution: StatusDetail.Resolution; } - export namespace BankAccounts { - export interface Local { - /** - * The status of the Capability. - */ - status: Local.Status; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } + } + } - export interface Wire { - /** - * The status of the Capability. - */ - status: Wire.Status; + export namespace DefaultOutboundDestination { + export type Type = + | 'ae_bank_account' + | 'ag_bank_account' + | 'al_bank_account' + | 'am_bank_account' + | 'ao_bank_account' + | 'ar_bank_account' + | 'at_bank_account' + | 'au_bank_account' + | 'az_bank_account' + | 'ba_bank_account' + | 'bd_bank_account' + | 'be_bank_account' + | 'bg_bank_account' + | 'bh_bank_account' + | 'bj_bank_account' + | 'bn_bank_account' + | 'bo_bank_account' + | 'br_bank_account' + | 'bs_bank_account' + | 'bt_bank_account' + | 'bw_bank_account' + | 'card' + | 'ca_bank_account' + | 'ch_bank_account' + | 'ci_bank_account' + | 'cl_bank_account' + | 'cn_bank_account' + | 'co_bank_account' + | 'crypto_wallet' + | 'cr_bank_account' + | 'cy_bank_account' + | 'cz_bank_account' + | 'de_bank_account' + | 'dk_bank_account' + | 'do_bank_account' + | 'dz_bank_account' + | 'ec_bank_account' + | 'ee_bank_account' + | 'eg_bank_account' + | 'es_bank_account' + | 'et_bank_account' + | 'fi_bank_account' + | 'fr_bank_account' + | 'ga_bank_account' + | 'gb_bank_account' + | 'gh_bank_account' + | 'gi_bank_account' + | 'gm_bank_account' + | 'gr_bank_account' + | 'gt_bank_account' + | 'gy_bank_account' + | 'hk_bank_account' + | 'hn_bank_account' + | 'hr_bank_account' + | 'hu_bank_account' + | 'id_bank_account' + | 'ie_bank_account' + | 'il_bank_account' + | 'in_bank_account' + | 'is_bank_account' + | 'it_bank_account' + | 'jm_bank_account' + | 'jo_bank_account' + | 'jp_bank_account' + | 'ke_bank_account' + | 'kh_bank_account' + | 'kr_bank_account' + | 'kw_bank_account' + | 'kz_bank_account' + | 'la_bank_account' + | 'lc_bank_account' + | 'li_bank_account' + | 'lk_bank_account' + | 'lt_bank_account' + | 'lu_bank_account' + | 'lv_bank_account' + | 'ma_bank_account' + | 'mc_bank_account' + | 'md_bank_account' + | 'mg_bank_account' + | 'mk_bank_account' + | 'mn_bank_account' + | 'mo_bank_account' + | 'mt_bank_account' + | 'mu_bank_account' + | 'mx_bank_account' + | 'my_bank_account' + | 'mz_bank_account' + | 'na_bank_account' + | 'ne_bank_account' + | 'ng_bank_account' + | 'ni_bank_account' + | 'nl_bank_account' + | 'no_bank_account' + | 'nz_bank_account' + | 'om_bank_account' + | 'pa_bank_account' + | 'pe_bank_account' + | 'ph_bank_account' + | 'pk_bank_account' + | 'pl_bank_account' + | 'pt_bank_account' + | 'py_bank_account' + | 'qa_bank_account' + | 'ro_bank_account' + | 'rs_bank_account' + | 'rw_bank_account' + | 'sa_bank_account' + | 'se_bank_account' + | 'sg_bank_account' + | 'si_bank_account' + | 'sk_bank_account' + | 'sm_bank_account' + | 'sn_bank_account' + | 'sv_bank_account' + | 'th_bank_account' + | 'tn_bank_account' + | 'tr_bank_account' + | 'tt_bank_account' + | 'tw_bank_account' + | 'tz_bank_account' + | 'us_bank_account' + | 'uy_bank_account' + | 'uz_bank_account' + | 'vn_bank_account' + | 'za_bank_account'; + } + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export namespace Storer { + export interface Capabilities { + /** + * Can provision a financial address to credit/debit a FinancialAccount. + */ + financial_addresses?: Capabilities.FinancialAddresses; - export namespace Local { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + /** + * Can hold storage-type funds on Stripe. + */ + holds_currencies?: Capabilities.HoldsCurrencies; - export namespace Wire { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } - } + /** + * Hash containing capabilities related to InboundTransfers. + */ + inbound_transfers?: Capabilities.InboundTransfers; - export namespace Cards { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; + /** + * Hash containing capabilities related to [OutboundPayments](https://docs.stripe.com/api/treasury/outbound_payments?api-version=preview). + */ + outbound_payments?: Capabilities.OutboundPayments; - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; + /** + * Hash containing capabilities related to [OutboundTransfers](https://docs.stripe.com/api/treasury/outbound_transfers?api-version=preview). + */ + outbound_transfers?: Capabilities.OutboundTransfers; + } - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } + export namespace Capabilities { + export interface FinancialAddresses { + /** + * Can provision a bank-account like financial address (VBAN) to credit/debit a FinancialAccount. + */ + bank_accounts?: FinancialAddresses.BankAccounts; + } - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export interface HoldsCurrencies { + /** + * Can hold storage-type funds on Stripe in EUR. + */ + eur?: HoldsCurrencies.Eur; - export namespace StripeBalance { - export interface Payouts { - /** - * The status of the Capability. - */ - status: Payouts.Status; + /** + * Can hold storage-type funds on Stripe in GBP. + */ + gbp?: HoldsCurrencies.Gbp; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Can hold storage-type funds on Stripe in USD. + */ + usd?: HoldsCurrencies.Usd; + } - export interface StripeTransfers { - /** - * The status of the Capability. - */ - status: StripeTransfers.Status; + export interface InboundTransfers { + /** + * Can pull funds into a FinancialAccount from an external bank account owned by the user. + */ + bank_accounts?: InboundTransfers.BankAccounts; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface OutboundPayments { + /** + * Can send funds from a FinancialAccount to a bank account owned by a different entity. + */ + bank_accounts?: OutboundPayments.BankAccounts; - export namespace Payouts { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + /** + * Can send funds from a FinancialAccount to a debit card owned by a different entity. + */ + cards?: OutboundPayments.Cards; - export namespace StripeTransfers { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } - } + /** + * Can send funds from a FinancialAccount to a FinancialAccount owned by a different entity. + */ + financial_accounts?: OutboundPayments.FinancialAccounts; + } + + export interface OutboundTransfers { + /** + * Can send funds from a FinancialAccount to a bank account belonging to the same user. + */ + bank_accounts?: OutboundTransfers.BankAccounts; + + /** + * Can send funds from a FinancialAccount to another FinancialAccount belonging to the same user. + */ + financial_accounts?: OutboundTransfers.FinancialAccounts; + } + + export namespace FinancialAddresses { + export interface BankAccounts { + /** + * The status of the Capability. + */ + status: BankAccounts.Status; + + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; } - export namespace DefaultOutboundDestination { - export type Type = - | 'ae_bank_account' - | 'ag_bank_account' - | 'al_bank_account' - | 'am_bank_account' - | 'ao_bank_account' - | 'ar_bank_account' - | 'at_bank_account' - | 'au_bank_account' - | 'az_bank_account' - | 'ba_bank_account' - | 'bd_bank_account' - | 'be_bank_account' - | 'bg_bank_account' - | 'bh_bank_account' - | 'bj_bank_account' - | 'bn_bank_account' - | 'bo_bank_account' - | 'br_bank_account' - | 'bs_bank_account' - | 'bt_bank_account' - | 'bw_bank_account' - | 'card' - | 'ca_bank_account' - | 'ch_bank_account' - | 'ci_bank_account' - | 'cl_bank_account' - | 'cn_bank_account' - | 'co_bank_account' - | 'crypto_wallet' - | 'cr_bank_account' - | 'cy_bank_account' - | 'cz_bank_account' - | 'de_bank_account' - | 'dk_bank_account' - | 'do_bank_account' - | 'dz_bank_account' - | 'ec_bank_account' - | 'ee_bank_account' - | 'eg_bank_account' - | 'es_bank_account' - | 'et_bank_account' - | 'fi_bank_account' - | 'fr_bank_account' - | 'ga_bank_account' - | 'gb_bank_account' - | 'gh_bank_account' - | 'gi_bank_account' - | 'gm_bank_account' - | 'gr_bank_account' - | 'gt_bank_account' - | 'gy_bank_account' - | 'hk_bank_account' - | 'hn_bank_account' - | 'hr_bank_account' - | 'hu_bank_account' - | 'id_bank_account' - | 'ie_bank_account' - | 'il_bank_account' - | 'in_bank_account' - | 'is_bank_account' - | 'it_bank_account' - | 'jm_bank_account' - | 'jo_bank_account' - | 'jp_bank_account' - | 'ke_bank_account' - | 'kh_bank_account' - | 'kr_bank_account' - | 'kw_bank_account' - | 'kz_bank_account' - | 'la_bank_account' - | 'lc_bank_account' - | 'li_bank_account' - | 'lk_bank_account' - | 'lt_bank_account' - | 'lu_bank_account' - | 'lv_bank_account' - | 'ma_bank_account' - | 'mc_bank_account' - | 'md_bank_account' - | 'mg_bank_account' - | 'mk_bank_account' - | 'mn_bank_account' - | 'mo_bank_account' - | 'mt_bank_account' - | 'mu_bank_account' - | 'mx_bank_account' - | 'my_bank_account' - | 'mz_bank_account' - | 'na_bank_account' - | 'ne_bank_account' - | 'ng_bank_account' - | 'ni_bank_account' - | 'nl_bank_account' - | 'no_bank_account' - | 'nz_bank_account' - | 'om_bank_account' - | 'pa_bank_account' - | 'pe_bank_account' - | 'ph_bank_account' - | 'pk_bank_account' - | 'pl_bank_account' - | 'pt_bank_account' - | 'py_bank_account' - | 'qa_bank_account' - | 'ro_bank_account' - | 'rs_bank_account' - | 'rw_bank_account' - | 'sa_bank_account' - | 'se_bank_account' - | 'sg_bank_account' - | 'si_bank_account' - | 'sk_bank_account' - | 'sm_bank_account' - | 'sn_bank_account' - | 'sv_bank_account' - | 'th_bank_account' - | 'tn_bank_account' - | 'tr_bank_account' - | 'tt_bank_account' - | 'tw_bank_account' - | 'tz_bank_account' - | 'us_bank_account' - | 'uy_bank_account' - | 'uz_bank_account' - | 'vn_bank_account' - | 'za_bank_account'; + export namespace BankAccounts { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; + + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; + + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } + + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } } } - export namespace Storer { - export interface Capabilities { + export namespace HoldsCurrencies { + export interface Eur { /** - * Can provision a financial address to credit/debit a FinancialAccount. + * The status of the Capability. */ - financial_addresses?: Capabilities.FinancialAddresses; + status: Eur.Status; /** - * Can hold storage-type funds on Stripe. + * Additional details about the capability's status. This value is empty when `status` is `active`. */ - holds_currencies?: Capabilities.HoldsCurrencies; + status_details: Array; + } + export interface Gbp { /** - * Hash containing capabilities related to InboundTransfers. + * The status of the Capability. */ - inbound_transfers?: Capabilities.InboundTransfers; + status: Gbp.Status; /** - * Hash containing capabilities related to [OutboundPayments](https://docs.stripe.com/api/treasury/outbound_payments?api-version=preview). + * Additional details about the capability's status. This value is empty when `status` is `active`. */ - outbound_payments?: Capabilities.OutboundPayments; + status_details: Array; + } + export interface Usd { /** - * Hash containing capabilities related to [OutboundTransfers](https://docs.stripe.com/api/treasury/outbound_transfers?api-version=preview). + * The status of the Capability. */ - outbound_transfers?: Capabilities.OutboundTransfers; + status: Usd.Status; + + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; } - export namespace Capabilities { - export interface FinancialAddresses { - /** - * Can provision a bank-account like financial address (VBAN) to credit/debit a FinancialAccount. - */ - bank_accounts?: FinancialAddresses.BankAccounts; - } + export namespace Eur { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export interface HoldsCurrencies { + export interface StatusDetail { /** - * Can hold storage-type funds on Stripe in EUR. + * Machine-readable code explaining the reason for the Capability to be in its current status. */ - eur?: HoldsCurrencies.Eur; + code: StatusDetail.Code; /** - * Can hold storage-type funds on Stripe in GBP. + * Machine-readable code explaining how to make the Capability active. */ - gbp?: HoldsCurrencies.Gbp; + resolution: StatusDetail.Resolution; + } - /** - * Can hold storage-type funds on Stripe in USD. - */ - usd?: HoldsCurrencies.Usd; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; } + } - export interface InboundTransfers { + export namespace Gbp { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; + + export interface StatusDetail { /** - * Can pull funds into a FinancialAccount from an external bank account owned by the user. + * Machine-readable code explaining the reason for the Capability to be in its current status. */ - bank_accounts?: InboundTransfers.BankAccounts; - } + code: StatusDetail.Code; - export interface OutboundPayments { /** - * Can send funds from a FinancialAccount to a bank account owned by a different entity. + * Machine-readable code explaining how to make the Capability active. */ - bank_accounts?: OutboundPayments.BankAccounts; + resolution: StatusDetail.Resolution; + } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } + + export namespace Usd { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; + + export interface StatusDetail { /** - * Can send funds from a FinancialAccount to a debit card owned by a different entity. + * Machine-readable code explaining the reason for the Capability to be in its current status. */ - cards?: OutboundPayments.Cards; + code: StatusDetail.Code; /** - * Can send funds from a FinancialAccount to a FinancialAccount owned by a different entity. + * Machine-readable code explaining how to make the Capability active. */ - financial_accounts?: OutboundPayments.FinancialAccounts; + resolution: StatusDetail.Resolution; } - export interface OutboundTransfers { + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } + } + + export namespace InboundTransfers { + export interface BankAccounts { + /** + * The status of the Capability. + */ + status: BankAccounts.Status; + + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } + + export namespace BankAccounts { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; + + export interface StatusDetail { /** - * Can send funds from a FinancialAccount to a bank account belonging to the same user. + * Machine-readable code explaining the reason for the Capability to be in its current status. */ - bank_accounts?: OutboundTransfers.BankAccounts; + code: StatusDetail.Code; /** - * Can send funds from a FinancialAccount to another FinancialAccount belonging to the same user. + * Machine-readable code explaining how to make the Capability active. */ - financial_accounts?: OutboundTransfers.FinancialAccounts; + resolution: StatusDetail.Resolution; } - export namespace FinancialAddresses { - export interface BankAccounts { - /** - * The status of the Capability. - */ - status: BankAccounts.Status; - - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; - export namespace BankAccounts { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; } + } + } - export namespace HoldsCurrencies { - export interface Eur { - /** - * The status of the Capability. - */ - status: Eur.Status; + export namespace OutboundPayments { + export interface BankAccounts { + /** + * The status of the Capability. + */ + status: BankAccounts.Status; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface Gbp { - /** - * The status of the Capability. - */ - status: Gbp.Status; + export interface Cards { + /** + * The status of the Capability. + */ + status: Cards.Status; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export interface Usd { - /** - * The status of the Capability. - */ - status: Usd.Status; + export interface FinancialAccounts { + /** + * The status of the Capability. + */ + status: FinancialAccounts.Status; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } - export namespace Eur { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace BankAccounts { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - export namespace Gbp { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export namespace Usd { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; } - export namespace InboundTransfers { - export interface BankAccounts { - /** - * The status of the Capability. - */ - status: BankAccounts.Status; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export namespace BankAccounts { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace Cards { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; + + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; + + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; } - export namespace OutboundPayments { - export interface BankAccounts { - /** - * The status of the Capability. - */ - status: BankAccounts.Status; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export interface Cards { - /** - * The status of the Capability. - */ - status: Cards.Status; + export namespace FinancialAccounts { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export interface FinancialAccounts { - /** - * The status of the Capability. - */ - status: FinancialAccounts.Status; + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; - export namespace BankAccounts { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } + } - export namespace Cards { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace OutboundTransfers { + export interface BankAccounts { + /** + * The status of the Capability. + */ + status: BankAccounts.Status; - export namespace FinancialAccounts { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } + + export interface FinancialAccounts { + /** + * The status of the Capability. + */ + status: FinancialAccounts.Status; + + /** + * Additional details about the capability's status. This value is empty when `status` is `active`. + */ + status_details: Array; + } + + export namespace BankAccounts { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; + + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; + + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; } - export namespace OutboundTransfers { - export interface BankAccounts { - /** - * The status of the Capability. - */ - status: BankAccounts.Status; + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; + } + } - export interface FinancialAccounts { - /** - * The status of the Capability. - */ - status: FinancialAccounts.Status; + export namespace FinancialAccounts { + export type Status = + | 'active' + | 'pending' + | 'restricted' + | 'unsupported'; - /** - * Additional details about the capability's status. This value is empty when `status` is `active`. - */ - status_details: Array; - } + export interface StatusDetail { + /** + * Machine-readable code explaining the reason for the Capability to be in its current status. + */ + code: StatusDetail.Code; - export namespace BankAccounts { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + /** + * Machine-readable code explaining how to make the Capability active. + */ + resolution: StatusDetail.Resolution; + } - export namespace FinancialAccounts { - export type Status = - | 'active' - | 'pending' - | 'restricted' - | 'unsupported'; - - export interface StatusDetail { - /** - * Machine-readable code explaining the reason for the Capability to be in its current status. - */ - code: StatusDetail.Code; - - /** - * Machine-readable code explaining how to make the Capability active. - */ - resolution: StatusDetail.Resolution; - } - - export namespace StatusDetail { - export type Code = - | 'determining_status' - | 'requirements_past_due' - | 'requirements_pending_verification' - | 'restricted_other' - | 'unsupported_business' - | 'unsupported_country' - | 'unsupported_entity_type'; - - export type Resolution = - | 'contact_stripe' - | 'no_resolution' - | 'provide_info'; - } - } + export namespace StatusDetail { + export type Code = + | 'determining_status' + | 'requirements_past_due' + | 'requirements_pending_verification' + | 'restricted_other' + | 'unsupported_business' + | 'unsupported_country' + | 'unsupported_entity_type'; + + export type Resolution = + | 'contact_stripe' + | 'no_resolution' + | 'provide_info'; } } } } + } + } - export namespace Defaults { - export type Locale = - | 'ar-SA' - | 'bg' - | 'bg-BG' - | 'cs' - | 'cs-CZ' - | 'da' - | 'da-DK' - | 'de' - | 'de-DE' - | 'el' - | 'el-GR' - | 'en' - | 'en-AU' - | 'en-CA' - | 'en-GB' - | 'en-IE' - | 'en-IN' - | 'en-NZ' - | 'en-SG' - | 'en-US' - | 'es' - | 'es-419' - | 'es-ES' - | 'et' - | 'et-EE' - | 'fi' - | 'fil' - | 'fil-PH' - | 'fi-FI' - | 'fr' - | 'fr-CA' - | 'fr-FR' - | 'he-IL' - | 'hr' - | 'hr-HR' - | 'hu' - | 'hu-HU' - | 'id' - | 'id-ID' - | 'it' - | 'it-IT' - | 'ja' - | 'ja-JP' - | 'ko' - | 'ko-KR' - | 'lt' - | 'lt-LT' - | 'lv' - | 'lv-LV' - | 'ms' - | 'ms-MY' - | 'mt' - | 'mt-MT' - | 'nb' - | 'nb-NO' - | 'nl' - | 'nl-NL' - | 'pl' - | 'pl-PL' - | 'pt' - | 'pt-BR' - | 'pt-PT' - | 'ro' - | 'ro-RO' - | 'ru' - | 'ru-RU' - | 'sk' - | 'sk-SK' - | 'sl' - | 'sl-SI' - | 'sv' - | 'sv-SE' - | 'th' - | 'th-TH' - | 'tr' - | 'tr-TR' - | 'vi' - | 'vi-VN' - | 'zh' - | 'zh-Hans' - | 'zh-Hant-HK' - | 'zh-Hant-TW' - | 'zh-HK' - | 'zh-TW'; - - export interface Profile { - /** - * The business's publicly-available website. - */ - business_url?: string; - - /** - * The customer-facing business name. - */ - doing_business_as?: string; + export namespace Defaults { + export type Locale = + | 'ar-SA' + | 'bg' + | 'bg-BG' + | 'cs' + | 'cs-CZ' + | 'da' + | 'da-DK' + | 'de' + | 'de-DE' + | 'el' + | 'el-GR' + | 'en' + | 'en-AU' + | 'en-CA' + | 'en-GB' + | 'en-IE' + | 'en-IN' + | 'en-NZ' + | 'en-SG' + | 'en-US' + | 'es' + | 'es-419' + | 'es-ES' + | 'et' + | 'et-EE' + | 'fi' + | 'fil' + | 'fil-PH' + | 'fi-FI' + | 'fr' + | 'fr-CA' + | 'fr-FR' + | 'he-IL' + | 'hr' + | 'hr-HR' + | 'hu' + | 'hu-HU' + | 'id' + | 'id-ID' + | 'it' + | 'it-IT' + | 'ja' + | 'ja-JP' + | 'ko' + | 'ko-KR' + | 'lt' + | 'lt-LT' + | 'lv' + | 'lv-LV' + | 'ms' + | 'ms-MY' + | 'mt' + | 'mt-MT' + | 'nb' + | 'nb-NO' + | 'nl' + | 'nl-NL' + | 'pl' + | 'pl-PL' + | 'pt' + | 'pt-BR' + | 'pt-PT' + | 'ro' + | 'ro-RO' + | 'ru' + | 'ru-RU' + | 'sk' + | 'sk-SK' + | 'sl' + | 'sl-SI' + | 'sv' + | 'sv-SE' + | 'th' + | 'th-TH' + | 'tr' + | 'tr-TR' + | 'vi' + | 'vi-VN' + | 'zh' + | 'zh-Hans' + | 'zh-Hant-HK' + | 'zh-Hant-TW' + | 'zh-HK' + | 'zh-TW'; + + export interface Profile { + /** + * The business's publicly-available website. + */ + business_url?: string; - /** - * Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes. - */ - product_description?: string; - } + /** + * The customer-facing business name. + */ + doing_business_as?: string; - export interface Responsibilities { - /** - * Indicates whether the platform or connected account is responsible for paying Stripe fees for pricing-control-eligible products. - */ - fees_collector?: Responsibilities.FeesCollector; + /** + * Internal-only description of the product sold or service provided by the business. It's used by Stripe for risk and underwriting purposes. + */ + product_description?: string; + } - /** - * A value indicating responsibility for collecting requirements on this account. - */ - losses_collector?: Responsibilities.LossesCollector; + export interface Responsibilities { + /** + * Indicates whether the platform or connected account is responsible for paying Stripe fees for pricing-control-eligible products. + */ + fees_collector?: Responsibilities.FeesCollector; - /** - * A value indicating responsibility for collecting requirements on this account. - */ - requirements_collector: Responsibilities.RequirementsCollector; - } + /** + * A value indicating responsibility for collecting requirements on this account. + */ + losses_collector?: Responsibilities.LossesCollector; - export namespace Responsibilities { - export type FeesCollector = - | 'application' - | 'application_custom' - | 'application_express' - | 'stripe'; + /** + * A value indicating responsibility for collecting requirements on this account. + */ + requirements_collector: Responsibilities.RequirementsCollector; + } - export type LossesCollector = 'application' | 'stripe'; + export namespace Responsibilities { + export type FeesCollector = + | 'application' + | 'application_custom' + | 'application_express' + | 'stripe'; - export type RequirementsCollector = 'application' | 'stripe'; - } - } + export type LossesCollector = 'application' | 'stripe'; - export namespace FutureRequirements { - export interface Entry { - /** - * Indicates whether the platform or Stripe is currently responsible for taking action on the requirement. Value can be `user` or `stripe`. - */ - awaiting_action_from: Entry.AwaitingActionFrom; + export type RequirementsCollector = 'application' | 'stripe'; + } + } - /** - * Machine-readable string describing the requirement. - */ - description: string; + export namespace FutureRequirements { + export interface Entry { + /** + * Indicates whether the platform or Stripe is currently responsible for taking action on the requirement. Value can be `user` or `stripe`. + */ + awaiting_action_from: Entry.AwaitingActionFrom; - /** - * Descriptions of why the requirement must be collected, or why the collected information isn't satisfactory to Stripe. - */ - errors: Array; + /** + * Machine-readable string describing the requirement. + */ + description: string; - /** - * A hash describing the impact of not collecting the requirement, or Stripe not being able to verify the collected information. - */ - impact: Entry.Impact; + /** + * Descriptions of why the requirement must be collected, or why the collected information isn't satisfactory to Stripe. + */ + errors: Array; - /** - * The soonest point when the account will be impacted by not providing the requirement. - */ - minimum_deadline: Entry.MinimumDeadline; + /** + * A hash describing the impact of not collecting the requirement, or Stripe not being able to verify the collected information. + */ + impact: Entry.Impact; - /** - * A reference to the location of the requirement. - */ - reference?: Entry.Reference; + /** + * The soonest point when the account will be impacted by not providing the requirement. + */ + minimum_deadline: Entry.MinimumDeadline; - /** - * A list of reasons why Stripe is collecting the requirement. - */ - requested_reasons: Array; - } + /** + * A reference to the location of the requirement. + */ + reference?: Entry.Reference; - export interface Summary { - /** - * The soonest date and time a requirement on the Account will become `past due`. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`. - */ - minimum_deadline?: Summary.MinimumDeadline; - } + /** + * A list of reasons why Stripe is collecting the requirement. + */ + requested_reasons: Array; + } - export namespace Entry { - export type AwaitingActionFrom = 'stripe' | 'user'; + export interface Summary { + /** + * The soonest date and time a requirement on the Account will become `past due`. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`. + */ + minimum_deadline?: Summary.MinimumDeadline; + } - export interface Error { - /** - * Machine-readable code describing the error. - */ - code: Error.Code; + export namespace Entry { + export type AwaitingActionFrom = 'stripe' | 'user'; - /** - * Human-readable description of the error. - */ - description: string; - } + export interface Error { + /** + * Machine-readable code describing the error. + */ + code: Error.Code; - export interface Impact { - /** - * The Capabilities that will be restricted if the requirement is not collected and satisfactory to Stripe. - */ - restricts_capabilities?: Array; - } + /** + * Human-readable description of the error. + */ + description: string; + } - export interface MinimumDeadline { - /** - * The current status of the requirement's impact. - */ - status: MinimumDeadline.Status; - } + export interface Impact { + /** + * The Capabilities that will be restricted if the requirement is not collected and satisfactory to Stripe. + */ + restricts_capabilities?: Array; + } - export interface Reference { - /** - * If `inquiry` is the type, the inquiry token. - */ - inquiry?: string; + export interface MinimumDeadline { + /** + * The current status of the requirement's impact. + */ + status: MinimumDeadline.Status; + } - /** - * If `resource` is the type, the resource token. - */ - resource?: string; + export interface Reference { + /** + * If `inquiry` is the type, the inquiry token. + */ + inquiry?: string; - /** - * The type of the reference. If the type is "inquiry", the inquiry token can be found in the "inquiry" field. - * Otherwise the type is an API resource, the token for which can be found in the "resource" field. - */ - type: Reference.Type; - } + /** + * If `resource` is the type, the resource token. + */ + resource?: string; - export interface RequestedReason { - /** - * Machine-readable description of Stripe's reason for collecting the requirement. - */ - code: RequestedReason.Code; - } + /** + * The type of the reference. If the type is "inquiry", the inquiry token can be found in the "inquiry" field. + * Otherwise the type is an API resource, the token for which can be found in the "resource" field. + */ + type: Reference.Type; + } - export namespace Error { - export type Code = - | 'invalid_address_city_state_postal_code' - | 'invalid_address_highway_contract_box' - | 'invalid_address_private_mailbox' - | 'invalid_business_profile_name' - | 'invalid_business_profile_name_denylisted' - | 'invalid_company_name_denylisted' - | 'invalid_dob_age_over_maximum' - | 'invalid_dob_age_under_18' - | 'invalid_dob_age_under_minimum' - | 'invalid_product_description_length' - | 'invalid_product_description_url_match' - | 'invalid_representative_country' - | 'invalid_statement_descriptor_business_mismatch' - | 'invalid_statement_descriptor_denylisted' - | 'invalid_statement_descriptor_length' - | 'invalid_statement_descriptor_prefix_denylisted' - | 'invalid_statement_descriptor_prefix_mismatch' - | 'invalid_street_address' - | 'invalid_tax_id' - | 'invalid_tax_id_format' - | 'invalid_tos_acceptance' - | 'invalid_url_denylisted' - | 'invalid_url_format' - | 'invalid_url_website_business_information_mismatch' - | 'invalid_url_website_empty' - | 'invalid_url_website_inaccessible' - | 'invalid_url_website_inaccessible_geoblocked' - | 'invalid_url_website_inaccessible_password_protected' - | 'invalid_url_website_incomplete' - | 'invalid_url_website_incomplete_cancellation_policy' - | 'invalid_url_website_incomplete_customer_service_details' - | 'invalid_url_website_incomplete_legal_restrictions' - | 'invalid_url_website_incomplete_refund_policy' - | 'invalid_url_website_incomplete_return_policy' - | 'invalid_url_website_incomplete_terms_and_conditions' - | 'invalid_url_website_incomplete_under_construction' - | 'invalid_url_website_other' - | 'invalid_url_web_presence_detected' - | 'invalid_value_other' - | 'unresolvable_ip_address' - | 'unresolvable_postal_code' - | 'verification_directors_mismatch' - | 'verification_document_address_mismatch' - | 'verification_document_address_missing' - | 'verification_document_corrupt' - | 'verification_document_country_not_supported' - | 'verification_document_directors_mismatch' - | 'verification_document_dob_mismatch' - | 'verification_document_duplicate_type' - | 'verification_document_expired' - | 'verification_document_failed_copy' - | 'verification_document_failed_greyscale' - | 'verification_document_failed_other' - | 'verification_document_failed_test_mode' - | 'verification_document_fraudulent' - | 'verification_document_id_number_mismatch' - | 'verification_document_id_number_missing' - | 'verification_document_incomplete' - | 'verification_document_invalid' - | 'verification_document_issue_or_expiry_date_missing' - | 'verification_document_manipulated' - | 'verification_document_missing_back' - | 'verification_document_missing_front' - | 'verification_document_name_mismatch' - | 'verification_document_name_missing' - | 'verification_document_nationality_mismatch' - | 'verification_document_not_readable' - | 'verification_document_not_signed' - | 'verification_document_not_uploaded' - | 'verification_document_photo_mismatch' - | 'verification_document_too_large' - | 'verification_document_type_not_supported' - | 'verification_extraneous_directors' - | 'verification_failed_address_match' - | 'verification_failed_business_iec_number' - | 'verification_failed_document_match' - | 'verification_failed_id_number_match' - | 'verification_failed_keyed_identity' - | 'verification_failed_keyed_match' - | 'verification_failed_name_match' - | 'verification_failed_other' - | 'verification_failed_representative_authority' - | 'verification_failed_residential_address' - | 'verification_failed_tax_id_match' - | 'verification_failed_tax_id_not_issued' - | 'verification_missing_directors' - | 'verification_missing_executives' - | 'verification_missing_owners' - | 'verification_requires_additional_memorandum_of_associations' - | 'verification_requires_additional_proof_of_registration' - | 'verification_selfie_document_missing_photo' - | 'verification_selfie_face_mismatch' - | 'verification_selfie_manipulated' - | 'verification_selfie_unverified_other' - | 'verification_supportability' - | 'verification_token_stale'; - } - - export namespace Impact { - export interface RestrictsCapability { - /** - * The name of the Capability which will be restricted. - */ - capability: RestrictsCapability.Capability; - - /** - * The configuration which specifies the Capability which will be restricted. - */ - configuration: RestrictsCapability.Configuration; - - /** - * Details about when in the account lifecycle the requirement must be collected by the avoid the Capability restriction. - */ - deadline: RestrictsCapability.Deadline; - } - - export namespace RestrictsCapability { - export type Capability = - | 'ach_debit_payments' - | 'acss_debit_payments' - | 'affirm_payments' - | 'afterpay_clearpay_payments' - | 'alma_payments' - | 'amazon_pay_payments' - | 'automatic_indirect_tax' - | 'au_becs_debit_payments' - | 'bacs_debit_payments' - | 'bancontact_payments' - | 'bank_accounts.local' - | 'bank_accounts.wire' - | 'blik_payments' - | 'boleto_payments' - | 'cards' - | 'card_payments' - | 'cartes_bancaires_payments' - | 'cashapp_payments' - | 'eps_payments' - | 'financial_addresses.bank_accounts' - | 'fpx_payments' - | 'gb_bank_transfer_payments' - | 'grabpay_payments' - | 'holds_currencies.eur' - | 'holds_currencies.gbp' - | 'holds_currencies.usd' - | 'ideal_payments' - | 'inbound_transfers.financial_accounts' - | 'jcb_payments' - | 'jp_bank_transfer_payments' - | 'kakao_pay_payments' - | 'klarna_payments' - | 'konbini_payments' - | 'kr_card_payments' - | 'link_payments' - | 'mobilepay_payments' - | 'multibanco_payments' - | 'mx_bank_transfer_payments' - | 'naver_pay_payments' - | 'outbound_payments.bank_accounts' - | 'outbound_payments.cards' - | 'outbound_payments.financial_accounts' - | 'outbound_transfers.bank_accounts' - | 'outbound_transfers.financial_accounts' - | 'oxxo_payments' - | 'p24_payments' - | 'payco_payments' - | 'paynow_payments' - | 'pay_by_bank_payments' - | 'promptpay_payments' - | 'revolut_pay_payments' - | 'samsung_pay_payments' - | 'sepa_bank_transfer_payments' - | 'sepa_debit_payments' - | 'stripe_balance.payouts' - | 'stripe_balance.stripe_transfers' - | 'swish_payments' - | 'twint_payments' - | 'us_bank_transfer_payments' - | 'zip_payments'; - - export type Configuration = - | 'customer' - | 'merchant' - | 'recipient' - | 'storer'; - - export interface Deadline { - /** - * The current status of the requirement's impact. - */ - status: Deadline.Status; - } + export interface RequestedReason { + /** + * Machine-readable description of Stripe's reason for collecting the requirement. + */ + code: RequestedReason.Code; + } - export namespace Deadline { - export type Status = - | 'currently_due' - | 'eventually_due' - | 'past_due'; - } - } - } + export namespace Error { + export type Code = + | 'invalid_address_city_state_postal_code' + | 'invalid_address_highway_contract_box' + | 'invalid_address_private_mailbox' + | 'invalid_business_profile_name' + | 'invalid_business_profile_name_denylisted' + | 'invalid_company_name_denylisted' + | 'invalid_dob_age_over_maximum' + | 'invalid_dob_age_under_18' + | 'invalid_dob_age_under_minimum' + | 'invalid_product_description_length' + | 'invalid_product_description_url_match' + | 'invalid_representative_country' + | 'invalid_statement_descriptor_business_mismatch' + | 'invalid_statement_descriptor_denylisted' + | 'invalid_statement_descriptor_length' + | 'invalid_statement_descriptor_prefix_denylisted' + | 'invalid_statement_descriptor_prefix_mismatch' + | 'invalid_street_address' + | 'invalid_tax_id' + | 'invalid_tax_id_format' + | 'invalid_tos_acceptance' + | 'invalid_url_denylisted' + | 'invalid_url_format' + | 'invalid_url_website_business_information_mismatch' + | 'invalid_url_website_empty' + | 'invalid_url_website_inaccessible' + | 'invalid_url_website_inaccessible_geoblocked' + | 'invalid_url_website_inaccessible_password_protected' + | 'invalid_url_website_incomplete' + | 'invalid_url_website_incomplete_cancellation_policy' + | 'invalid_url_website_incomplete_customer_service_details' + | 'invalid_url_website_incomplete_legal_restrictions' + | 'invalid_url_website_incomplete_refund_policy' + | 'invalid_url_website_incomplete_return_policy' + | 'invalid_url_website_incomplete_terms_and_conditions' + | 'invalid_url_website_incomplete_under_construction' + | 'invalid_url_website_other' + | 'invalid_url_web_presence_detected' + | 'invalid_value_other' + | 'unresolvable_ip_address' + | 'unresolvable_postal_code' + | 'verification_directors_mismatch' + | 'verification_document_address_mismatch' + | 'verification_document_address_missing' + | 'verification_document_corrupt' + | 'verification_document_country_not_supported' + | 'verification_document_directors_mismatch' + | 'verification_document_dob_mismatch' + | 'verification_document_duplicate_type' + | 'verification_document_expired' + | 'verification_document_failed_copy' + | 'verification_document_failed_greyscale' + | 'verification_document_failed_other' + | 'verification_document_failed_test_mode' + | 'verification_document_fraudulent' + | 'verification_document_id_number_mismatch' + | 'verification_document_id_number_missing' + | 'verification_document_incomplete' + | 'verification_document_invalid' + | 'verification_document_issue_or_expiry_date_missing' + | 'verification_document_manipulated' + | 'verification_document_missing_back' + | 'verification_document_missing_front' + | 'verification_document_name_mismatch' + | 'verification_document_name_missing' + | 'verification_document_nationality_mismatch' + | 'verification_document_not_readable' + | 'verification_document_not_signed' + | 'verification_document_not_uploaded' + | 'verification_document_photo_mismatch' + | 'verification_document_too_large' + | 'verification_document_type_not_supported' + | 'verification_extraneous_directors' + | 'verification_failed_address_match' + | 'verification_failed_business_iec_number' + | 'verification_failed_document_match' + | 'verification_failed_id_number_match' + | 'verification_failed_keyed_identity' + | 'verification_failed_keyed_match' + | 'verification_failed_name_match' + | 'verification_failed_other' + | 'verification_failed_representative_authority' + | 'verification_failed_residential_address' + | 'verification_failed_tax_id_match' + | 'verification_failed_tax_id_not_issued' + | 'verification_missing_directors' + | 'verification_missing_executives' + | 'verification_missing_owners' + | 'verification_requires_additional_memorandum_of_associations' + | 'verification_requires_additional_proof_of_registration' + | 'verification_selfie_document_missing_photo' + | 'verification_selfie_face_mismatch' + | 'verification_selfie_manipulated' + | 'verification_selfie_unverified_other' + | 'verification_supportability' + | 'verification_token_stale'; + } - export namespace MinimumDeadline { - export type Status = - | 'currently_due' - | 'eventually_due' - | 'past_due'; - } + export namespace Impact { + export interface RestrictsCapability { + /** + * The name of the Capability which will be restricted. + */ + capability: RestrictsCapability.Capability; - export namespace Reference { - export type Type = 'inquiry' | 'payment_method' | 'person'; - } + /** + * The configuration which specifies the Capability which will be restricted. + */ + configuration: RestrictsCapability.Configuration; - export namespace RequestedReason { - export type Code = 'routine_onboarding' | 'routine_verification'; - } + /** + * Details about when in the account lifecycle the requirement must be collected by the avoid the Capability restriction. + */ + deadline: RestrictsCapability.Deadline; } - export namespace Summary { - export interface MinimumDeadline { + export namespace RestrictsCapability { + export type Capability = + | 'ach_debit_payments' + | 'acss_debit_payments' + | 'affirm_payments' + | 'afterpay_clearpay_payments' + | 'alma_payments' + | 'amazon_pay_payments' + | 'automatic_indirect_tax' + | 'au_becs_debit_payments' + | 'bacs_debit_payments' + | 'bancontact_payments' + | 'bank_accounts.local' + | 'bank_accounts.wire' + | 'blik_payments' + | 'boleto_payments' + | 'cards' + | 'card_payments' + | 'cartes_bancaires_payments' + | 'cashapp_payments' + | 'eps_payments' + | 'financial_addresses.bank_accounts' + | 'fpx_payments' + | 'gb_bank_transfer_payments' + | 'grabpay_payments' + | 'holds_currencies.eur' + | 'holds_currencies.gbp' + | 'holds_currencies.usd' + | 'ideal_payments' + | 'inbound_transfers.financial_accounts' + | 'jcb_payments' + | 'jp_bank_transfer_payments' + | 'kakao_pay_payments' + | 'klarna_payments' + | 'konbini_payments' + | 'kr_card_payments' + | 'link_payments' + | 'mobilepay_payments' + | 'multibanco_payments' + | 'mx_bank_transfer_payments' + | 'naver_pay_payments' + | 'outbound_payments.bank_accounts' + | 'outbound_payments.cards' + | 'outbound_payments.financial_accounts' + | 'outbound_transfers.bank_accounts' + | 'outbound_transfers.financial_accounts' + | 'oxxo_payments' + | 'p24_payments' + | 'payco_payments' + | 'paynow_payments' + | 'pay_by_bank_payments' + | 'promptpay_payments' + | 'revolut_pay_payments' + | 'samsung_pay_payments' + | 'sepa_bank_transfer_payments' + | 'sepa_debit_payments' + | 'stripe_balance.payouts' + | 'stripe_balance.stripe_transfers' + | 'swish_payments' + | 'twint_payments' + | 'us_bank_transfer_payments' + | 'zip_payments'; + + export type Configuration = + | 'customer' + | 'merchant' + | 'recipient' + | 'storer'; + + export interface Deadline { /** - * The current strictest status of all requirements on the Account. - */ - status: MinimumDeadline.Status; - - /** - * The soonest RFC3339 date & time UTC value a requirement can impact the Account. + * The current status of the requirement's impact. */ - time?: string; + status: Deadline.Status; } - export namespace MinimumDeadline { + export namespace Deadline { export type Status = | 'currently_due' | 'eventually_due' @@ -4917,1775 +4877,1769 @@ export namespace V2 { } } - export namespace Identity { - export interface Attestations { - /** - * This hash is used to attest that the directors information provided to Stripe is both current and correct. - */ - directorship_declaration?: Attestations.DirectorshipDeclaration; - - /** - * This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct. - */ - ownership_declaration?: Attestations.OwnershipDeclaration; + export namespace MinimumDeadline { + export type Status = 'currently_due' | 'eventually_due' | 'past_due'; + } - /** - * Attestation that all Persons with a specific Relationship value have been provided. - */ - persons_provided?: Attestations.PersonsProvided; + export namespace Reference { + export type Type = 'inquiry' | 'payment_method' | 'person'; + } - /** - * This hash is used to attest that the representative is authorized to act as the representative of their legal entity. - */ - representative_declaration?: Attestations.RepresentativeDeclaration; + export namespace RequestedReason { + export type Code = 'routine_onboarding' | 'routine_verification'; + } + } - /** - * Attestations of accepted terms of service agreements. - */ - terms_of_service?: Attestations.TermsOfService; - } + export namespace Summary { + export interface MinimumDeadline { + /** + * The current strictest status of all requirements on the Account. + */ + status: MinimumDeadline.Status; - export interface BusinessDetails { - /** - * The company's primary address. - */ - address?: BusinessDetails.Address; + /** + * The soonest RFC3339 date & time UTC value a requirement can impact the Account. + */ + time?: string; + } - /** - * The business gross annual revenue for its preceding fiscal year. - */ - annual_revenue?: BusinessDetails.AnnualRevenue; + export namespace MinimumDeadline { + export type Status = 'currently_due' | 'eventually_due' | 'past_due'; + } + } + } - /** - * Documents that may be submitted to satisfy various informational requests. - */ - documents?: BusinessDetails.Documents; + export namespace Identity { + export interface Attestations { + /** + * This hash is used to attest that the directors information provided to Stripe is both current and correct. + */ + directorship_declaration?: Attestations.DirectorshipDeclaration; - /** - * Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors). - */ - estimated_worker_count?: number; + /** + * This hash is used to attest that the beneficial owner information provided to Stripe is both current and correct. + */ + ownership_declaration?: Attestations.OwnershipDeclaration; - /** - * The provided ID numbers of a business entity. - */ - id_numbers?: Array; + /** + * Attestation that all Persons with a specific Relationship value have been provided. + */ + persons_provided?: Attestations.PersonsProvided; - /** - * An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India. - */ - monthly_estimated_revenue?: BusinessDetails.MonthlyEstimatedRevenue; + /** + * This hash is used to attest that the representative is authorized to act as the representative of their legal entity. + */ + representative_declaration?: Attestations.RepresentativeDeclaration; - /** - * The company's phone number (used for verification). - */ - phone?: string; + /** + * Attestations of accepted terms of service agreements. + */ + terms_of_service?: Attestations.TermsOfService; + } - /** - * The business legal name. - */ - registered_name?: string; + export interface BusinessDetails { + /** + * The company's primary address. + */ + address?: BusinessDetails.Address; - /** - * When the business was incorporated or registered. - */ - registration_date?: BusinessDetails.RegistrationDate; + /** + * The business gross annual revenue for its preceding fiscal year. + */ + annual_revenue?: BusinessDetails.AnnualRevenue; - /** - * The business registration address of the business entity in non latin script. - */ - script_addresses?: BusinessDetails.ScriptAddresses; + /** + * Documents that may be submitted to satisfy various informational requests. + */ + documents?: BusinessDetails.Documents; - /** - * The business legal name in non latin script. - */ - script_names?: BusinessDetails.ScriptNames; + /** + * Estimated maximum number of workers currently engaged by the business (including employees, contractors, and vendors). + */ + estimated_worker_count?: number; - /** - * The category identifying the legal structure of the business. - */ - structure?: BusinessDetails.Structure; - } + /** + * The provided ID numbers of a business entity. + */ + id_numbers?: Array; - export type EntityType = - | 'company' - | 'government_entity' - | 'individual' - | 'non_profit'; + /** + * An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India. + */ + monthly_estimated_revenue?: BusinessDetails.MonthlyEstimatedRevenue; - export interface Individual { - /** - * The account ID which the individual belongs to. - */ - account: string; + /** + * The company's phone number (used for verification). + */ + phone?: string; - /** - * Additional addresses associated with the individual. - */ - additional_addresses?: Array; + /** + * The business legal name. + */ + registered_name?: string; - /** - * Additional names (e.g. aliases) associated with the individual. - */ - additional_names?: Array; + /** + * When the business was incorporated or registered. + */ + registration_date?: BusinessDetails.RegistrationDate; - /** - * Terms of service acceptances. - */ - additional_terms_of_service?: Individual.AdditionalTermsOfService; + /** + * The business registration address of the business entity in non latin script. + */ + script_addresses?: BusinessDetails.ScriptAddresses; - /** - * The individual's residential address. - */ - address?: Individual.Address; + /** + * The business legal name in non latin script. + */ + script_names?: BusinessDetails.ScriptNames; - /** - * Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - created: string; + /** + * The category identifying the legal structure of the business. + */ + structure?: BusinessDetails.Structure; + } - /** - * The individual's date of birth. - */ - date_of_birth?: Individual.DateOfBirth; + export type EntityType = + | 'company' + | 'government_entity' + | 'individual' + | 'non_profit'; - /** - * Documents that may be submitted to satisfy various informational requests. - */ - documents?: Individual.Documents; + export interface Individual { + /** + * The account ID which the individual belongs to. + */ + account: string; - /** - * The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. - */ - email?: string; + /** + * Additional addresses associated with the individual. + */ + additional_addresses?: Array; - /** - * The individual's first name. - */ - given_name?: string; + /** + * Additional names (e.g. aliases) associated with the individual. + */ + additional_names?: Array; - /** - * Unique identifier for the object. - */ - id: string; + /** + * Terms of service acceptances. + */ + additional_terms_of_service?: Individual.AdditionalTermsOfService; - /** - * The identification numbers (e.g., SSN) associated with the individual. - */ - id_numbers?: Array; + /** + * The individual's residential address. + */ + address?: Individual.Address; - /** - * The individual's gender (International regulations require either "male” or "female"). - */ - legal_gender?: Individual.LegalGender; + /** + * Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + created: string; - /** - * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. - */ - metadata?: Metadata; + /** + * The individual's date of birth. + */ + date_of_birth?: Individual.DateOfBirth; - /** - * The countries where the individual is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - nationalities?: Array; + /** + * Documents that may be submitted to satisfy various informational requests. + */ + documents?: Individual.Documents; - /** - * String representing the object's type. Objects of the same type share the same value. - */ - object: string; + /** + * The individual's email address. You can only set this field when the Account is configured as a `merchant` or `recipient`. Use `contact_email` as the primary contact email for this Account. + */ + email?: string; - /** - * The individual's phone number. - */ - phone?: string; + /** + * The individual's first name. + */ + given_name?: string; + + /** + * Unique identifier for the object. + */ + id: string; + + /** + * The identification numbers (e.g., SSN) associated with the individual. + */ + id_numbers?: Array; + + /** + * The individual's gender (International regulations require either "male” or "female"). + */ + legal_gender?: Individual.LegalGender; + + /** + * Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. + */ + metadata?: Metadata; + + /** + * The countries where the individual is a national. Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + nationalities?: Array; + + /** + * String representing the object's type. Objects of the same type share the same value. + */ + object: string; + + /** + * The individual's phone number. + */ + phone?: string; + + /** + * Indicates if the individual or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction. + */ + political_exposure?: Individual.PoliticalExposure; + + /** + * The relationship that this individual has with the Account's identity. + */ + relationship?: Individual.Relationship; + + /** + * The script addresses (e.g., non-Latin characters) associated with the individual. + */ + script_addresses?: Individual.ScriptAddresses; + + /** + * The script names (e.g. non-Latin characters) associated with the individual. + */ + script_names?: Individual.ScriptNames; + + /** + * The individual's last name. + */ + surname?: string; + + /** + * Time at which the object was last updated. + */ + updated: string; + } + + export namespace Attestations { + export interface DirectorshipDeclaration { + /** + * The time marking when the director attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + date?: string; + + /** + * The IP address from which the director attestation was made. + */ + ip?: string; + + /** + * The user agent of the browser from which the director attestation was made. + */ + user_agent?: string; + } + + export interface OwnershipDeclaration { + /** + * The time marking when the beneficial owner attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + date?: string; + + /** + * The IP address from which the beneficial owner attestation was made. + */ + ip?: string; + + /** + * The user agent of the browser from which the beneficial owner attestation was made. + */ + user_agent?: string; + } + + export interface PersonsProvided { + /** + * Whether the company's directors have been provided. Set this Boolean to true after creating all the company's directors with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + */ + directors?: boolean; + + /** + * Whether the company's executives have been provided. Set this Boolean to true after creating all the company's executives with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + */ + executives?: boolean; + + /** + * Whether the company's owners have been provided. Set this Boolean to true after creating all the company's owners with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). + */ + owners?: boolean; + + /** + * Reason for why the company is exempt from providing ownership information. + */ + ownership_exemption_reason?: PersonsProvided.OwnershipExemptionReason; + } + + export interface RepresentativeDeclaration { + /** + * The time marking when the representative attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + date?: string; + + /** + * The IP address from which the representative attestation was made. + */ + ip?: string; + + /** + * The user agent of the browser from which the representative attestation was made. + */ + user_agent?: string; + } + + export interface TermsOfService { + /** + * Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance). + */ + account?: TermsOfService.Account; + + /** + * Details on the Account's acceptance of Treasury-specific terms of service. + */ + storer?: TermsOfService.Storer; + } + + export namespace PersonsProvided { + export type OwnershipExemptionReason = + | 'qualified_entity_exceeds_ownership_threshold' + | 'qualifies_as_financial_institution'; + } + export namespace TermsOfService { + export interface Account { /** - * Indicates if the individual or any of their representatives, family members, or other closely related persons, declares that they hold or have held an important public job or function, in any jurisdiction. + * The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. */ - political_exposure?: Individual.PoliticalExposure; + date?: string; /** - * The relationship that this individual has with the Account's identity. + * The IP address from which the Account's representative accepted the terms of service. */ - relationship?: Individual.Relationship; + ip?: string; /** - * The script addresses (e.g., non-Latin characters) associated with the individual. + * The user agent of the browser from which the Account's representative accepted the terms of service. */ - script_addresses?: Individual.ScriptAddresses; + user_agent?: string; + } + export interface Storer { /** - * The script names (e.g. non-Latin characters) associated with the individual. + * The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. */ - script_names?: Individual.ScriptNames; + date?: string; /** - * The individual's last name. + * The IP address from which the Account's representative accepted the terms of service. */ - surname?: string; + ip?: string; /** - * Time at which the object was last updated. + * The user agent of the browser from which the Account's representative accepted the terms of service. */ - updated: string; + user_agent?: string; } + } + } - export namespace Attestations { - export interface DirectorshipDeclaration { - /** - * The time marking when the director attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - date?: string; + export namespace BusinessDetails { + export interface Address { + /** + * City, district, suburb, town, or village. + */ + city?: string; - /** - * The IP address from which the director attestation was made. - */ - ip?: string; + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country?: string; - /** - * The user agent of the browser from which the director attestation was made. - */ - user_agent?: string; - } + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: string; - export interface OwnershipDeclaration { - /** - * The time marking when the beneficial owner attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - date?: string; + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: string; - /** - * The IP address from which the beneficial owner attestation was made. - */ - ip?: string; + /** + * ZIP or postal code. + */ + postal_code?: string; - /** - * The user agent of the browser from which the beneficial owner attestation was made. - */ - user_agent?: string; - } + /** + * State, county, province, or region. + */ + state?: string; - export interface PersonsProvided { - /** - * Whether the company's directors have been provided. Set this Boolean to true after creating all the company's directors with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). - */ - directors?: boolean; + /** + * Town or district. + */ + town?: string; + } - /** - * Whether the company's executives have been provided. Set this Boolean to true after creating all the company's executives with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). - */ - executives?: boolean; + export interface AnnualRevenue { + /** + * Annual revenue amount in minor currency units (for example, '123' for 1.23 USD). + */ + amount?: V2Amount; - /** - * Whether the company's owners have been provided. Set this Boolean to true after creating all the company's owners with the [Persons API](https://docs.stripe.com/api/v2/core/accounts/createperson). - */ - owners?: boolean; + /** + * The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. + */ + fiscal_year_end?: string; + } - /** - * Reason for why the company is exempt from providing ownership information. - */ - ownership_exemption_reason?: PersonsProvided.OwnershipExemptionReason; - } + export interface Documents { + /** + * One or more documents that support the Bank account ownership verification requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a check. + */ + bank_account_ownership_verification?: Documents.BankAccountOwnershipVerification; - export interface RepresentativeDeclaration { - /** - * The time marking when the representative attestation was made. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - date?: string; + /** + * One or more documents that demonstrate proof of a company's license to operate. + */ + company_license?: Documents.CompanyLicense; - /** - * The IP address from which the representative attestation was made. - */ - ip?: string; + /** + * One or more documents showing the company's Memorandum of Association. + */ + company_memorandum_of_association?: Documents.CompanyMemorandumOfAssociation; - /** - * The user agent of the browser from which the representative attestation was made. - */ - user_agent?: string; - } + /** + * Certain countries only: One or more documents showing the ministerial decree legalizing the company's establishment. + */ + company_ministerial_decree?: Documents.CompanyMinisterialDecree; - export interface TermsOfService { - /** - * Details on the Account's acceptance of the [Stripe Services Agreement](https://docs.stripe.com/connect/updating-accounts#tos-acceptance). - */ - account?: TermsOfService.Account; + /** + * One or more documents that demonstrate proof of a company's registration with the appropriate local authorities. + */ + company_registration_verification?: Documents.CompanyRegistrationVerification; - /** - * Details on the Account's acceptance of Treasury-specific terms of service. - */ - storer?: TermsOfService.Storer; - } + /** + * One or more documents that demonstrate proof of a company's tax ID. + */ + company_tax_id_verification?: Documents.CompanyTaxIdVerification; - export namespace PersonsProvided { - export type OwnershipExemptionReason = - | 'qualified_entity_exceeds_ownership_threshold' - | 'qualifies_as_financial_institution'; - } + /** + * A document verifying the business. + */ + primary_verification?: Documents.PrimaryVerification; - export namespace TermsOfService { - export interface Account { - /** - * The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - date?: string; + /** + * One or more documents that demonstrate proof of address. + */ + proof_of_address?: Documents.ProofOfAddress; - /** - * The IP address from which the Account's representative accepted the terms of service. - */ - ip?: string; + /** + * One or more documents showing the company's proof of registration with the national business registry. + */ + proof_of_registration?: Documents.ProofOfRegistration; - /** - * The user agent of the browser from which the Account's representative accepted the terms of service. - */ - user_agent?: string; - } + /** + * One or more documents that demonstrate proof of ultimate beneficial ownership. + */ + proof_of_ultimate_beneficial_ownership?: Documents.ProofOfUltimateBeneficialOwnership; + } - export interface Storer { - /** - * The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - date?: string; + export interface IdNumber { + /** + * The registrar of the ID number (Only valid for DE ID number types). + */ + registrar?: string; - /** - * The IP address from which the Account's representative accepted the terms of service. - */ - ip?: string; + /** + * Open Enum. The ID number type of a business entity. + */ + type: IdNumber.Type; + } - /** - * The user agent of the browser from which the Account's representative accepted the terms of service. - */ - user_agent?: string; - } - } + export interface MonthlyEstimatedRevenue { + /** + * Estimated monthly revenue amount in minor currency units (for example, '123' for 1.23 USD). + */ + amount?: V2Amount; + } + + export interface RegistrationDate { + /** + * The day of registration, between 1 and 31. + */ + day: number; + + /** + * The month of registration, between 1 and 12. + */ + month: number; + + /** + * The four-digit year of registration. + */ + year: number; + } + + export interface ScriptAddresses { + /** + * Kana Address. + */ + kana?: ScriptAddresses.Kana; + + /** + * Kanji Address. + */ + kanji?: ScriptAddresses.Kanji; + } + + export interface ScriptNames { + /** + * Kana name. + */ + kana?: ScriptNames.Kana; + + /** + * Kanji name. + */ + kanji?: ScriptNames.Kanji; + } + + export type Structure = + | 'cooperative' + | 'free_zone_establishment' + | 'free_zone_llc' + | 'governmental_unit' + | 'government_instrumentality' + | 'incorporated_association' + | 'incorporated_non_profit' + | 'incorporated_partnership' + | 'limited_liability_partnership' + | 'llc' + | 'multi_member_llc' + | 'private_company' + | 'private_corporation' + | 'private_partnership' + | 'public_company' + | 'public_corporation' + | 'public_listed_corporation' + | 'public_partnership' + | 'registered_charity' + | 'single_member_llc' + | 'sole_establishment' + | 'sole_proprietorship' + | 'tax_exempt_government_instrumentality' + | 'trust' + | 'unincorporated_association' + | 'unincorporated_non_profit' + | 'unincorporated_partnership'; + + export namespace Documents { + export interface BankAccountOwnershipVerification { + /** + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + */ + files: Array; + + /** + * The format of the document. Currently supports `files` only. + */ + type: 'files'; } - export namespace BusinessDetails { - export interface Address { - /** - * City, district, suburb, town, or village. - */ - city?: string; + export interface CompanyLicense { + /** + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + */ + files: Array; - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country?: string; + /** + * The format of the document. Currently supports `files` only. + */ + type: 'files'; + } - /** - * Address line 1 (e.g., street, PO Box, or company name). - */ - line1?: string; + export interface CompanyMemorandumOfAssociation { + /** + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + */ + files: Array; - /** - * Address line 2 (e.g., apartment, suite, unit, or building). - */ - line2?: string; + /** + * The format of the document. Currently supports `files` only. + */ + type: 'files'; + } - /** - * ZIP or postal code. - */ - postal_code?: string; + export interface CompanyMinisterialDecree { + /** + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + */ + files: Array; + + /** + * The format of the document. Currently supports `files` only. + */ + type: 'files'; + } + + export interface CompanyRegistrationVerification { + /** + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + */ + files: Array; + + /** + * The format of the document. Currently supports `files` only. + */ + type: 'files'; + } + + export interface CompanyTaxIdVerification { + /** + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + */ + files: Array; + + /** + * The format of the document. Currently supports `files` only. + */ + type: 'files'; + } + + export interface PrimaryVerification { + /** + * The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. + */ + front_back: PrimaryVerification.FrontBack; + + /** + * The format of the verification document. Currently supports `front_back` only. + */ + type: 'front_back'; + } + + export interface ProofOfAddress { + /** + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + */ + files: Array; + + /** + * The format of the document. Currently supports `files` only. + */ + type: 'files'; + } + + export interface ProofOfRegistration { + /** + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + */ + files: Array; + + /** + * Person that is signing the document. + */ + signer?: ProofOfRegistration.Signer; + + /** + * The format of the document. Currently supports `files` only. + */ + type: 'files'; + } + + export interface ProofOfUltimateBeneficialOwnership { + /** + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + */ + files: Array; + /** + * Person that is signing the document. + */ + signer?: ProofOfUltimateBeneficialOwnership.Signer; + + /** + * The format of the document. Currently supports `files` only. + */ + type: 'files'; + } + + export namespace PrimaryVerification { + export interface FrontBack { /** - * State, county, province, or region. + * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ - state?: string; + back?: string; /** - * Town or district. + * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ - town?: string; + front: string; } + } - export interface AnnualRevenue { + export namespace ProofOfRegistration { + export interface Signer { /** - * Annual revenue amount in minor currency units (for example, '123' for 1.23 USD). + * Person signing the document. */ - amount?: V2Amount; + person: string; + } + } + export namespace ProofOfUltimateBeneficialOwnership { + export interface Signer { /** - * The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023. + * Person signing the document. */ - fiscal_year_end?: string; + person: string; } + } + } - export interface Documents { - /** - * One or more documents that support the Bank account ownership verification requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a check. - */ - bank_account_ownership_verification?: Documents.BankAccountOwnershipVerification; + export namespace IdNumber { + export type Type = + | 'ae_crn' + | 'ae_vat' + | 'ao_nif' + | 'ar_cuit' + | 'at_fn' + | 'at_stn' + | 'at_vat' + | 'au_abn' + | 'au_acn' + | 'au_in' + | 'az_tin' + | 'bd_etin' + | 'be_cbe' + | 'be_vat' + | 'bg_uic' + | 'bg_vat' + | 'br_cnpj' + | 'ca_cn' + | 'ca_crarr' + | 'ca_gst_hst' + | 'ca_neq' + | 'ca_rid' + | 'ch_chid' + | 'ch_uid' + | 'cr_cpj' + | 'cr_nite' + | 'cy_he' + | 'cy_tic' + | 'cy_vat' + | 'cz_ico' + | 'cz_vat' + | 'de_hrn' + | 'de_stn' + | 'de_vat' + | 'dk_cvr' + | 'dk_vat' + | 'do_rcn' + | 'ee_rk' + | 'ee_vat' + | 'es_cif' + | 'es_vat' + | 'fi_vat' + | 'fi_yt' + | 'fr_rna' + | 'fr_siren' + | 'fr_vat' + | 'gb_crn' + | 'gb_vat' + | 'gi_crn' + | 'gr_afm' + | 'gr_gemi' + | 'gr_vat' + | 'gt_nit' + | 'hk_br' + | 'hk_cr' + | 'hr_mbs' + | 'hr_oib' + | 'hr_vat' + | 'hu_cjs' + | 'hu_tin' + | 'hu_vat' + | 'ie_crn' + | 'ie_trn' + | 'ie_vat' + | 'it_rea' + | 'it_vat' + | 'jp_cn' + | 'kz_bin' + | 'li_uid' + | 'lt_ccrn' + | 'lt_vat' + | 'lu_nif' + | 'lu_rcs' + | 'lu_vat' + | 'lv_urn' + | 'lv_vat' + | 'mt_crn' + | 'mt_tin' + | 'mt_vat' + | 'mx_rfc' + | 'my_brn' + | 'my_coid' + | 'my_itn' + | 'my_sst' + | 'mz_nuit' + | 'nl_kvk' + | 'nl_rsin' + | 'nl_vat' + | 'no_orgnr' + | 'nz_bn' + | 'nz_ird' + | 'pe_ruc' + | 'pk_ntn' + | 'pl_nip' + | 'pl_regon' + | 'pl_vat' + | 'pt_vat' + | 'ro_cui' + | 'ro_orc' + | 'ro_vat' + | 'sa_crn' + | 'sa_tin' + | 'se_orgnr' + | 'se_vat' + | 'sg_uen' + | 'si_msp' + | 'si_tin' + | 'si_vat' + | 'sk_dic' + | 'sk_ico' + | 'sk_vat' + | 'th_crn' + | 'th_prn' + | 'th_tin' + | 'us_ein'; + } - /** - * One or more documents that demonstrate proof of a company's license to operate. - */ - company_license?: Documents.CompanyLicense; + export namespace ScriptAddresses { + export interface Kana { + /** + * City, district, suburb, town, or village. + */ + city?: string; - /** - * One or more documents showing the company's Memorandum of Association. - */ - company_memorandum_of_association?: Documents.CompanyMemorandumOfAssociation; + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country?: string; - /** - * Certain countries only: One or more documents showing the ministerial decree legalizing the company's establishment. - */ - company_ministerial_decree?: Documents.CompanyMinisterialDecree; + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: string; - /** - * One or more documents that demonstrate proof of a company's registration with the appropriate local authorities. - */ - company_registration_verification?: Documents.CompanyRegistrationVerification; + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: string; - /** - * One or more documents that demonstrate proof of a company's tax ID. - */ - company_tax_id_verification?: Documents.CompanyTaxIdVerification; + /** + * ZIP or postal code. + */ + postal_code?: string; - /** - * A document verifying the business. - */ - primary_verification?: Documents.PrimaryVerification; + /** + * State, county, province, or region. + */ + state?: string; - /** - * One or more documents that demonstrate proof of address. - */ - proof_of_address?: Documents.ProofOfAddress; + /** + * Town or district. + */ + town?: string; + } - /** - * One or more documents showing the company's proof of registration with the national business registry. - */ - proof_of_registration?: Documents.ProofOfRegistration; + export interface Kanji { + /** + * City, district, suburb, town, or village. + */ + city?: string; - /** - * One or more documents that demonstrate proof of ultimate beneficial ownership. - */ - proof_of_ultimate_beneficial_ownership?: Documents.ProofOfUltimateBeneficialOwnership; - } + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country?: string; - export interface IdNumber { - /** - * The registrar of the ID number (Only valid for DE ID number types). - */ - registrar?: string; + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: string; - /** - * Open Enum. The ID number type of a business entity. - */ - type: IdNumber.Type; - } + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: string; - export interface MonthlyEstimatedRevenue { - /** - * Estimated monthly revenue amount in minor currency units (for example, '123' for 1.23 USD). - */ - amount?: V2Amount; - } + /** + * ZIP or postal code. + */ + postal_code?: string; - export interface RegistrationDate { - /** - * The day of registration, between 1 and 31. - */ - day: number; + /** + * State, county, province, or region. + */ + state?: string; - /** - * The month of registration, between 1 and 12. - */ - month: number; + /** + * Town or district. + */ + town?: string; + } + } - /** - * The four-digit year of registration. - */ - year: number; - } + export namespace ScriptNames { + export interface Kana { + /** + * Registered name of the business. + */ + registered_name?: string; + } - export interface ScriptAddresses { - /** - * Kana Address. - */ - kana?: ScriptAddresses.Kana; + export interface Kanji { + /** + * Registered name of the business. + */ + registered_name?: string; + } + } + } - /** - * Kanji Address. - */ - kanji?: ScriptAddresses.Kanji; - } + export namespace Individual { + export interface AdditionalAddress { + /** + * City, district, suburb, town, or village. + */ + city?: string; - export interface ScriptNames { - /** - * Kana name. - */ - kana?: ScriptNames.Kana; + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country?: string; - /** - * Kanji name. - */ - kanji?: ScriptNames.Kanji; - } + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: string; - export type Structure = - | 'cooperative' - | 'free_zone_establishment' - | 'free_zone_llc' - | 'governmental_unit' - | 'government_instrumentality' - | 'incorporated_association' - | 'incorporated_non_profit' - | 'incorporated_partnership' - | 'limited_liability_partnership' - | 'llc' - | 'multi_member_llc' - | 'private_company' - | 'private_corporation' - | 'private_partnership' - | 'public_company' - | 'public_corporation' - | 'public_listed_corporation' - | 'public_partnership' - | 'registered_charity' - | 'single_member_llc' - | 'sole_establishment' - | 'sole_proprietorship' - | 'tax_exempt_government_instrumentality' - | 'trust' - | 'unincorporated_association' - | 'unincorporated_non_profit' - | 'unincorporated_partnership'; + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: string; - export namespace Documents { - export interface BankAccountOwnershipVerification { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; + /** + * ZIP or postal code. + */ + postal_code?: string; - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } + /** + * Purpose of additional address. + */ + purpose: 'registered'; - export interface CompanyLicense { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; + /** + * State, county, province, or region. + */ + state?: string; - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } + /** + * Town or district. + */ + town?: string; + } - export interface CompanyMemorandumOfAssociation { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; + export interface AdditionalName { + /** + * The individual's full name. + */ + full_name?: string; - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } + /** + * The individual's first or given name. + */ + given_name?: string; - export interface CompanyMinisterialDecree { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; + /** + * The purpose or type of the additional name. + */ + purpose: AdditionalName.Purpose; - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } + /** + * The individual's last or family name. + */ + surname?: string; + } - export interface CompanyRegistrationVerification { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; + export interface AdditionalTermsOfService { + /** + * Stripe terms of service agreement. + */ + account?: AdditionalTermsOfService.Account; + } - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } + export interface Address { + /** + * City, district, suburb, town, or village. + */ + city?: string; - export interface CompanyTaxIdVerification { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country?: string; - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: string; - export interface PrimaryVerification { - /** - * The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. - */ - front_back: PrimaryVerification.FrontBack; + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: string; - /** - * The format of the verification document. Currently supports `front_back` only. - */ - type: 'front_back'; - } - - export interface ProofOfAddress { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; - - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } - - export interface ProofOfRegistration { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; - - /** - * Person that is signing the document. - */ - signer?: ProofOfRegistration.Signer; - - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } - - export interface ProofOfUltimateBeneficialOwnership { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; - - /** - * Person that is signing the document. - */ - signer?: ProofOfUltimateBeneficialOwnership.Signer; - - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } - - export namespace PrimaryVerification { - export interface FrontBack { - /** - * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. - */ - back?: string; - - /** - * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. - */ - front: string; - } - } - - export namespace ProofOfRegistration { - export interface Signer { - /** - * Person signing the document. - */ - person: string; - } - } - - export namespace ProofOfUltimateBeneficialOwnership { - export interface Signer { - /** - * Person signing the document. - */ - person: string; - } - } - } - - export namespace IdNumber { - export type Type = - | 'ae_crn' - | 'ae_vat' - | 'ao_nif' - | 'ar_cuit' - | 'at_fn' - | 'at_stn' - | 'at_vat' - | 'au_abn' - | 'au_acn' - | 'au_in' - | 'az_tin' - | 'bd_etin' - | 'be_cbe' - | 'be_vat' - | 'bg_uic' - | 'bg_vat' - | 'br_cnpj' - | 'ca_cn' - | 'ca_crarr' - | 'ca_gst_hst' - | 'ca_neq' - | 'ca_rid' - | 'ch_chid' - | 'ch_uid' - | 'cr_cpj' - | 'cr_nite' - | 'cy_he' - | 'cy_tic' - | 'cy_vat' - | 'cz_ico' - | 'cz_vat' - | 'de_hrn' - | 'de_stn' - | 'de_vat' - | 'dk_cvr' - | 'dk_vat' - | 'do_rcn' - | 'ee_rk' - | 'ee_vat' - | 'es_cif' - | 'es_vat' - | 'fi_vat' - | 'fi_yt' - | 'fr_rna' - | 'fr_siren' - | 'fr_vat' - | 'gb_crn' - | 'gb_vat' - | 'gi_crn' - | 'gr_afm' - | 'gr_gemi' - | 'gr_vat' - | 'gt_nit' - | 'hk_br' - | 'hk_cr' - | 'hr_mbs' - | 'hr_oib' - | 'hr_vat' - | 'hu_cjs' - | 'hu_tin' - | 'hu_vat' - | 'ie_crn' - | 'ie_trn' - | 'ie_vat' - | 'it_rea' - | 'it_vat' - | 'jp_cn' - | 'kz_bin' - | 'li_uid' - | 'lt_ccrn' - | 'lt_vat' - | 'lu_nif' - | 'lu_rcs' - | 'lu_vat' - | 'lv_urn' - | 'lv_vat' - | 'mt_crn' - | 'mt_tin' - | 'mt_vat' - | 'mx_rfc' - | 'my_brn' - | 'my_coid' - | 'my_itn' - | 'my_sst' - | 'mz_nuit' - | 'nl_kvk' - | 'nl_rsin' - | 'nl_vat' - | 'no_orgnr' - | 'nz_bn' - | 'nz_ird' - | 'pe_ruc' - | 'pk_ntn' - | 'pl_nip' - | 'pl_regon' - | 'pl_vat' - | 'pt_vat' - | 'ro_cui' - | 'ro_orc' - | 'ro_vat' - | 'sa_crn' - | 'sa_tin' - | 'se_orgnr' - | 'se_vat' - | 'sg_uen' - | 'si_msp' - | 'si_tin' - | 'si_vat' - | 'sk_dic' - | 'sk_ico' - | 'sk_vat' - | 'th_crn' - | 'th_prn' - | 'th_tin' - | 'us_ein'; - } - - export namespace ScriptAddresses { - export interface Kana { - /** - * City, district, suburb, town, or village. - */ - city?: string; - - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country?: string; - - /** - * Address line 1 (e.g., street, PO Box, or company name). - */ - line1?: string; - - /** - * Address line 2 (e.g., apartment, suite, unit, or building). - */ - line2?: string; - - /** - * ZIP or postal code. - */ - postal_code?: string; - - /** - * State, county, province, or region. - */ - state?: string; - - /** - * Town or district. - */ - town?: string; - } - - export interface Kanji { - /** - * City, district, suburb, town, or village. - */ - city?: string; - - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country?: string; - - /** - * Address line 1 (e.g., street, PO Box, or company name). - */ - line1?: string; - - /** - * Address line 2 (e.g., apartment, suite, unit, or building). - */ - line2?: string; - - /** - * ZIP or postal code. - */ - postal_code?: string; - - /** - * State, county, province, or region. - */ - state?: string; - - /** - * Town or district. - */ - town?: string; - } - } - - export namespace ScriptNames { - export interface Kana { - /** - * Registered name of the business. - */ - registered_name?: string; - } - - export interface Kanji { - /** - * Registered name of the business. - */ - registered_name?: string; - } - } - } - - export namespace Individual { - export interface AdditionalAddress { - /** - * City, district, suburb, town, or village. - */ - city?: string; - - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country?: string; - - /** - * Address line 1 (e.g., street, PO Box, or company name). - */ - line1?: string; - - /** - * Address line 2 (e.g., apartment, suite, unit, or building). - */ - line2?: string; - - /** - * ZIP or postal code. - */ - postal_code?: string; - - /** - * Purpose of additional address. - */ - purpose: 'registered'; - - /** - * State, county, province, or region. - */ - state?: string; - - /** - * Town or district. - */ - town?: string; - } - - export interface AdditionalName { - /** - * The individual's full name. - */ - full_name?: string; - - /** - * The individual's first or given name. - */ - given_name?: string; - - /** - * The purpose or type of the additional name. - */ - purpose: AdditionalName.Purpose; - - /** - * The individual's last or family name. - */ - surname?: string; - } - - export interface AdditionalTermsOfService { - /** - * Stripe terms of service agreement. - */ - account?: AdditionalTermsOfService.Account; - } - - export interface Address { - /** - * City, district, suburb, town, or village. - */ - city?: string; - - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country?: string; - - /** - * Address line 1 (e.g., street, PO Box, or company name). - */ - line1?: string; - - /** - * Address line 2 (e.g., apartment, suite, unit, or building). - */ - line2?: string; - - /** - * ZIP or postal code. - */ - postal_code?: string; - - /** - * State, county, province, or region. - */ - state?: string; - - /** - * Town or district. - */ - town?: string; - } - - export interface DateOfBirth { - /** - * The day of birth, between 1 and 31. - */ - day: number; - - /** - * The month of birth, between 1 and 12. - */ - month: number; - - /** - * The four-digit year of birth. - */ - year: number; - } - - export interface Documents { - /** - * One or more documents that demonstrate proof that this person is authorized to represent the company. - */ - company_authorization?: Documents.CompanyAuthorization; - - /** - * One or more documents showing the person's passport page with photo and personal data. - */ - passport?: Documents.Passport; - - /** - * An identifying document showing the person's name, either a passport or local ID card. - */ - primary_verification?: Documents.PrimaryVerification; - - /** - * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. - */ - secondary_verification?: Documents.SecondaryVerification; - - /** - * One or more documents showing the person's visa required for living in the country where they are residing. - */ - visa?: Documents.Visa; - } - - export interface IdNumber { - /** - * The ID number type of an individual. - */ - type: IdNumber.Type; - } - - export type LegalGender = 'female' | 'male'; - - export type PoliticalExposure = 'existing' | 'none'; - - export interface Relationship { - /** - * Whether the individual is an authorizer of the Account's identity. - */ - authorizer?: boolean; - - /** - * Whether the individual is a director of the Account's identity. Directors are typically members of the governing board of the company or are responsible for making sure that the company meets its regulatory obligations. - */ - director?: boolean; - - /** - * Whether the individual has significant responsibility to control, manage, or direct the organization. - */ - executive?: boolean; - - /** - * Whether the individual is the legal guardian of the Account's representative. - */ - legal_guardian?: boolean; - - /** - * Whether the individual is an owner of the Account's identity. - */ - owner?: boolean; - - /** - * The percentage of the Account's identity that the individual owns. - */ - percent_ownership?: Decimal; - - /** - * Whether the individual is authorized as the primary representative of the Account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account. - */ - representative?: boolean; - - /** - * The individual's title (e.g., CEO, Support Engineer). - */ - title?: string; - } - - export interface ScriptAddresses { - /** - * Kana Address. - */ - kana?: ScriptAddresses.Kana; - - /** - * Kanji Address. - */ - kanji?: ScriptAddresses.Kanji; - } - - export interface ScriptNames { - /** - * Persons name in kana script. - */ - kana?: ScriptNames.Kana; - - /** - * Persons name in kanji script. - */ - kanji?: ScriptNames.Kanji; - } - - export namespace AdditionalName { - export type Purpose = 'alias' | 'maiden'; - } - - export namespace AdditionalTermsOfService { - export interface Account { - /** - * The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - date?: string; - - /** - * The IP address from which the Account's representative accepted the terms of service. - */ - ip?: string; - - /** - * The user agent of the browser from which the Account's representative accepted the terms of service. - */ - user_agent?: string; - } - } - - export namespace Documents { - export interface CompanyAuthorization { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; - - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } - - export interface Passport { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; - - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } - - export interface PrimaryVerification { - /** - * The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. - */ - front_back: PrimaryVerification.FrontBack; + /** + * ZIP or postal code. + */ + postal_code?: string; - /** - * The format of the verification document. Currently supports `front_back` only. - */ - type: 'front_back'; - } + /** + * State, county, province, or region. + */ + state?: string; - export interface SecondaryVerification { - /** - * The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. - */ - front_back: SecondaryVerification.FrontBack; + /** + * Town or district. + */ + town?: string; + } - /** - * The format of the verification document. Currently supports `front_back` only. - */ - type: 'front_back'; - } + export interface DateOfBirth { + /** + * The day of birth, between 1 and 31. + */ + day: number; - export interface Visa { - /** - * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. - */ - files: Array; + /** + * The month of birth, between 1 and 12. + */ + month: number; - /** - * The format of the document. Currently supports `files` only. - */ - type: 'files'; - } + /** + * The four-digit year of birth. + */ + year: number; + } - export namespace PrimaryVerification { - export interface FrontBack { - /** - * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. - */ - back?: string; + export interface Documents { + /** + * One or more documents that demonstrate proof that this person is authorized to represent the company. + */ + company_authorization?: Documents.CompanyAuthorization; - /** - * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. - */ - front: string; - } - } + /** + * One or more documents showing the person's passport page with photo and personal data. + */ + passport?: Documents.Passport; - export namespace SecondaryVerification { - export interface FrontBack { - /** - * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. - */ - back?: string; + /** + * An identifying document showing the person's name, either a passport or local ID card. + */ + primary_verification?: Documents.PrimaryVerification; - /** - * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. - */ - front: string; - } - } - } + /** + * A document showing address, either a passport, local ID card, or utility bill from a well-known utility company. + */ + secondary_verification?: Documents.SecondaryVerification; - export namespace IdNumber { - export type Type = - | 'ae_eid' - | 'ao_nif' - | 'ar_cuil' - | 'ar_dni' - | 'at_stn' - | 'az_tin' - | 'bd_brc' - | 'bd_etin' - | 'bd_nid' - | 'be_nrn' - | 'bg_ucn' - | 'bn_nric' - | 'br_cpf' - | 'ca_sin' - | 'ch_oasi' - | 'cl_rut' - | 'cn_pp' - | 'co_nuip' - | 'cr_ci' - | 'cr_cpf' - | 'cr_dimex' - | 'cr_nite' - | 'cy_tic' - | 'cz_rc' - | 'de_stn' - | 'dk_cpr' - | 'do_cie' - | 'do_rcn' - | 'ec_ci' - | 'ee_ik' - | 'es_nif' - | 'fi_hetu' - | 'fr_nir' - | 'gb_nino' - | 'gr_afm' - | 'gt_nit' - | 'hk_id' - | 'hr_oib' - | 'hu_ad' - | 'id_nik' - | 'ie_ppsn' - | 'is_kt' - | 'it_cf' - | 'jp_inc' - | 'ke_pin' - | 'kz_iin' - | 'li_peid' - | 'lt_ak' - | 'lu_nif' - | 'lv_pk' - | 'mx_rfc' - | 'my_nric' - | 'mz_nuit' - | 'ng_nin' - | 'nl_bsn' - | 'no_nin' - | 'nz_ird' - | 'pe_dni' - | 'pk_cnic' - | 'pk_snic' - | 'pl_pesel' - | 'pt_nif' - | 'ro_cnp' - | 'sa_tin' - | 'se_pin' - | 'sg_fin' - | 'sg_nric' - | 'sk_dic' - | 'th_lc' - | 'th_pin' - | 'tr_tin' - | 'us_itin' - | 'us_itin_last_4' - | 'us_ssn' - | 'us_ssn_last_4' - | 'uy_dni' - | 'za_id'; - } + /** + * One or more documents showing the person's visa required for living in the country where they are residing. + */ + visa?: Documents.Visa; + } - export namespace ScriptAddresses { - export interface Kana { - /** - * City, district, suburb, town, or village. - */ - city?: string; + export interface IdNumber { + /** + * The ID number type of an individual. + */ + type: IdNumber.Type; + } - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country?: string; + export type LegalGender = 'female' | 'male'; - /** - * Address line 1 (e.g., street, PO Box, or company name). - */ - line1?: string; + export type PoliticalExposure = 'existing' | 'none'; - /** - * Address line 2 (e.g., apartment, suite, unit, or building). - */ - line2?: string; + export interface Relationship { + /** + * Whether the individual is an authorizer of the Account's identity. + */ + authorizer?: boolean; - /** - * ZIP or postal code. - */ - postal_code?: string; + /** + * Whether the individual is a director of the Account's identity. Directors are typically members of the governing board of the company or are responsible for making sure that the company meets its regulatory obligations. + */ + director?: boolean; - /** - * State, county, province, or region. - */ - state?: string; + /** + * Whether the individual has significant responsibility to control, manage, or direct the organization. + */ + executive?: boolean; - /** - * Town or district. - */ - town?: string; - } + /** + * Whether the individual is the legal guardian of the Account's representative. + */ + legal_guardian?: boolean; - export interface Kanji { - /** - * City, district, suburb, town, or village. - */ - city?: string; + /** + * Whether the individual is an owner of the Account's identity. + */ + owner?: boolean; - /** - * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). - */ - country?: string; + /** + * The percentage of the Account's identity that the individual owns. + */ + percent_ownership?: Decimal; - /** - * Address line 1 (e.g., street, PO Box, or company name). - */ - line1?: string; + /** + * Whether the individual is authorized as the primary representative of the Account. This is the person nominated by the business to provide information about themselves, and general information about the account. There can only be one representative at any given time. At the time the account is created, this person should be set to the person responsible for opening the account. + */ + representative?: boolean; - /** - * Address line 2 (e.g., apartment, suite, unit, or building). - */ - line2?: string; + /** + * The individual's title (e.g., CEO, Support Engineer). + */ + title?: string; + } - /** - * ZIP or postal code. - */ - postal_code?: string; + export interface ScriptAddresses { + /** + * Kana Address. + */ + kana?: ScriptAddresses.Kana; - /** - * State, county, province, or region. - */ - state?: string; + /** + * Kanji Address. + */ + kanji?: ScriptAddresses.Kanji; + } - /** - * Town or district. - */ - town?: string; - } - } + export interface ScriptNames { + /** + * Persons name in kana script. + */ + kana?: ScriptNames.Kana; - export namespace ScriptNames { - export interface Kana { - /** - * The person's first or given name. - */ - given_name?: string; + /** + * Persons name in kanji script. + */ + kanji?: ScriptNames.Kanji; + } - /** - * The person's last or family name. - */ - surname?: string; - } + export namespace AdditionalName { + export type Purpose = 'alias' | 'maiden'; + } - export interface Kanji { - /** - * The person's first or given name. - */ - given_name?: string; + export namespace AdditionalTermsOfService { + export interface Account { + /** + * The time when the Account's representative accepted the terms of service. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + date?: string; - /** - * The person's last or family name. - */ - surname?: string; - } - } + /** + * The IP address from which the Account's representative accepted the terms of service. + */ + ip?: string; + + /** + * The user agent of the browser from which the Account's representative accepted the terms of service. + */ + user_agent?: string; } } - export namespace Requirements { - export interface Entry { + export namespace Documents { + export interface CompanyAuthorization { + /** + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. + */ + files: Array; + /** - * Indicates whether the platform or Stripe is currently responsible for taking action on the requirement. Value can be `user` or `stripe`. + * The format of the document. Currently supports `files` only. */ - awaiting_action_from: Entry.AwaitingActionFrom; + type: 'files'; + } + export interface Passport { /** - * Machine-readable string describing the requirement. + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. */ - description: string; + files: Array; /** - * Descriptions of why the requirement must be collected, or why the collected information isn't satisfactory to Stripe. + * The format of the document. Currently supports `files` only. */ - errors: Array; + type: 'files'; + } + export interface PrimaryVerification { /** - * A hash describing the impact of not collecting the requirement, or Stripe not being able to verify the collected information. + * The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. */ - impact: Entry.Impact; + front_back: PrimaryVerification.FrontBack; /** - * The soonest point when the account will be impacted by not providing the requirement. + * The format of the verification document. Currently supports `front_back` only. */ - minimum_deadline: Entry.MinimumDeadline; + type: 'front_back'; + } + export interface SecondaryVerification { /** - * A reference to the location of the requirement. + * The [file upload](https://docs.stripe.com/api/persons/update#create_file) tokens for the front and back of the verification document. */ - reference?: Entry.Reference; + front_back: SecondaryVerification.FrontBack; /** - * A list of reasons why Stripe is collecting the requirement. + * The format of the verification document. Currently supports `front_back` only. */ - requested_reasons: Array; + type: 'front_back'; } - export interface Summary { + export interface Visa { /** - * The soonest date and time a requirement on the Account will become `past due`. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`. + * One or more document IDs returned by a [file upload](https://docs.stripe.com/api/persons/update#create_file) with a purpose value of `account_requirement`. */ - minimum_deadline?: Summary.MinimumDeadline; - } + files: Array; - export namespace Entry { - export type AwaitingActionFrom = 'stripe' | 'user'; + /** + * The format of the document. Currently supports `files` only. + */ + type: 'files'; + } - export interface Error { + export namespace PrimaryVerification { + export interface FrontBack { /** - * Machine-readable code describing the error. + * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ - code: Error.Code; + back?: string; /** - * Human-readable description of the error. + * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ - description: string; + front: string; } + } - export interface Impact { + export namespace SecondaryVerification { + export interface FrontBack { /** - * The Capabilities that will be restricted if the requirement is not collected and satisfactory to Stripe. + * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the back of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ - restricts_capabilities?: Array; - } + back?: string; - export interface MinimumDeadline { /** - * The current status of the requirement's impact. + * A [file upload](https://docs.stripe.com/api/persons/update#create_file) token representing the front of the verification document. The purpose of the uploaded file should be 'identity_document'. The uploaded file needs to be a color image (smaller than 8,000px by 8,000px), in JPG, PNG, or PDF format, and less than 10 MB in size. */ - status: MinimumDeadline.Status; + front: string; } + } + } - export interface Reference { - /** - * If `inquiry` is the type, the inquiry token. - */ - inquiry?: string; + export namespace IdNumber { + export type Type = + | 'ae_eid' + | 'ao_nif' + | 'ar_cuil' + | 'ar_dni' + | 'at_stn' + | 'az_tin' + | 'bd_brc' + | 'bd_etin' + | 'bd_nid' + | 'be_nrn' + | 'bg_ucn' + | 'bn_nric' + | 'br_cpf' + | 'ca_sin' + | 'ch_oasi' + | 'cl_rut' + | 'cn_pp' + | 'co_nuip' + | 'cr_ci' + | 'cr_cpf' + | 'cr_dimex' + | 'cr_nite' + | 'cy_tic' + | 'cz_rc' + | 'de_stn' + | 'dk_cpr' + | 'do_cie' + | 'do_rcn' + | 'ec_ci' + | 'ee_ik' + | 'es_nif' + | 'fi_hetu' + | 'fr_nir' + | 'gb_nino' + | 'gr_afm' + | 'gt_nit' + | 'hk_id' + | 'hr_oib' + | 'hu_ad' + | 'id_nik' + | 'ie_ppsn' + | 'is_kt' + | 'it_cf' + | 'jp_inc' + | 'ke_pin' + | 'kz_iin' + | 'li_peid' + | 'lt_ak' + | 'lu_nif' + | 'lv_pk' + | 'mx_rfc' + | 'my_nric' + | 'mz_nuit' + | 'ng_nin' + | 'nl_bsn' + | 'no_nin' + | 'nz_ird' + | 'pe_dni' + | 'pk_cnic' + | 'pk_snic' + | 'pl_pesel' + | 'pt_nif' + | 'ro_cnp' + | 'sa_tin' + | 'se_pin' + | 'sg_fin' + | 'sg_nric' + | 'sk_dic' + | 'th_lc' + | 'th_pin' + | 'tr_tin' + | 'us_itin' + | 'us_itin_last_4' + | 'us_ssn' + | 'us_ssn_last_4' + | 'uy_dni' + | 'za_id'; + } - /** - * If `resource` is the type, the resource token. - */ - resource?: string; + export namespace ScriptAddresses { + export interface Kana { + /** + * City, district, suburb, town, or village. + */ + city?: string; - /** - * The type of the reference. If the type is "inquiry", the inquiry token can be found in the "inquiry" field. - * Otherwise the type is an API resource, the token for which can be found in the "resource" field. - */ - type: Reference.Type; - } + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country?: string; - export interface RequestedReason { - /** - * Machine-readable description of Stripe's reason for collecting the requirement. - */ - code: RequestedReason.Code; - } + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: string; - export namespace Error { - export type Code = - | 'invalid_address_city_state_postal_code' - | 'invalid_address_highway_contract_box' - | 'invalid_address_private_mailbox' - | 'invalid_business_profile_name' - | 'invalid_business_profile_name_denylisted' - | 'invalid_company_name_denylisted' - | 'invalid_dob_age_over_maximum' - | 'invalid_dob_age_under_18' - | 'invalid_dob_age_under_minimum' - | 'invalid_product_description_length' - | 'invalid_product_description_url_match' - | 'invalid_representative_country' - | 'invalid_statement_descriptor_business_mismatch' - | 'invalid_statement_descriptor_denylisted' - | 'invalid_statement_descriptor_length' - | 'invalid_statement_descriptor_prefix_denylisted' - | 'invalid_statement_descriptor_prefix_mismatch' - | 'invalid_street_address' - | 'invalid_tax_id' - | 'invalid_tax_id_format' - | 'invalid_tos_acceptance' - | 'invalid_url_denylisted' - | 'invalid_url_format' - | 'invalid_url_website_business_information_mismatch' - | 'invalid_url_website_empty' - | 'invalid_url_website_inaccessible' - | 'invalid_url_website_inaccessible_geoblocked' - | 'invalid_url_website_inaccessible_password_protected' - | 'invalid_url_website_incomplete' - | 'invalid_url_website_incomplete_cancellation_policy' - | 'invalid_url_website_incomplete_customer_service_details' - | 'invalid_url_website_incomplete_legal_restrictions' - | 'invalid_url_website_incomplete_refund_policy' - | 'invalid_url_website_incomplete_return_policy' - | 'invalid_url_website_incomplete_terms_and_conditions' - | 'invalid_url_website_incomplete_under_construction' - | 'invalid_url_website_other' - | 'invalid_url_web_presence_detected' - | 'invalid_value_other' - | 'unresolvable_ip_address' - | 'unresolvable_postal_code' - | 'verification_directors_mismatch' - | 'verification_document_address_mismatch' - | 'verification_document_address_missing' - | 'verification_document_corrupt' - | 'verification_document_country_not_supported' - | 'verification_document_directors_mismatch' - | 'verification_document_dob_mismatch' - | 'verification_document_duplicate_type' - | 'verification_document_expired' - | 'verification_document_failed_copy' - | 'verification_document_failed_greyscale' - | 'verification_document_failed_other' - | 'verification_document_failed_test_mode' - | 'verification_document_fraudulent' - | 'verification_document_id_number_mismatch' - | 'verification_document_id_number_missing' - | 'verification_document_incomplete' - | 'verification_document_invalid' - | 'verification_document_issue_or_expiry_date_missing' - | 'verification_document_manipulated' - | 'verification_document_missing_back' - | 'verification_document_missing_front' - | 'verification_document_name_mismatch' - | 'verification_document_name_missing' - | 'verification_document_nationality_mismatch' - | 'verification_document_not_readable' - | 'verification_document_not_signed' - | 'verification_document_not_uploaded' - | 'verification_document_photo_mismatch' - | 'verification_document_too_large' - | 'verification_document_type_not_supported' - | 'verification_extraneous_directors' - | 'verification_failed_address_match' - | 'verification_failed_business_iec_number' - | 'verification_failed_document_match' - | 'verification_failed_id_number_match' - | 'verification_failed_keyed_identity' - | 'verification_failed_keyed_match' - | 'verification_failed_name_match' - | 'verification_failed_other' - | 'verification_failed_representative_authority' - | 'verification_failed_residential_address' - | 'verification_failed_tax_id_match' - | 'verification_failed_tax_id_not_issued' - | 'verification_missing_directors' - | 'verification_missing_executives' - | 'verification_missing_owners' - | 'verification_requires_additional_memorandum_of_associations' - | 'verification_requires_additional_proof_of_registration' - | 'verification_selfie_document_missing_photo' - | 'verification_selfie_face_mismatch' - | 'verification_selfie_manipulated' - | 'verification_selfie_unverified_other' - | 'verification_supportability' - | 'verification_token_stale'; - } - - export namespace Impact { - export interface RestrictsCapability { - /** - * The name of the Capability which will be restricted. - */ - capability: RestrictsCapability.Capability; - - /** - * The configuration which specifies the Capability which will be restricted. - */ - configuration: RestrictsCapability.Configuration; - - /** - * Details about when in the account lifecycle the requirement must be collected by the avoid the Capability restriction. - */ - deadline: RestrictsCapability.Deadline; - } - - export namespace RestrictsCapability { - export type Capability = - | 'ach_debit_payments' - | 'acss_debit_payments' - | 'affirm_payments' - | 'afterpay_clearpay_payments' - | 'alma_payments' - | 'amazon_pay_payments' - | 'automatic_indirect_tax' - | 'au_becs_debit_payments' - | 'bacs_debit_payments' - | 'bancontact_payments' - | 'bank_accounts.local' - | 'bank_accounts.wire' - | 'blik_payments' - | 'boleto_payments' - | 'cards' - | 'card_payments' - | 'cartes_bancaires_payments' - | 'cashapp_payments' - | 'eps_payments' - | 'financial_addresses.bank_accounts' - | 'fpx_payments' - | 'gb_bank_transfer_payments' - | 'grabpay_payments' - | 'holds_currencies.eur' - | 'holds_currencies.gbp' - | 'holds_currencies.usd' - | 'ideal_payments' - | 'inbound_transfers.financial_accounts' - | 'jcb_payments' - | 'jp_bank_transfer_payments' - | 'kakao_pay_payments' - | 'klarna_payments' - | 'konbini_payments' - | 'kr_card_payments' - | 'link_payments' - | 'mobilepay_payments' - | 'multibanco_payments' - | 'mx_bank_transfer_payments' - | 'naver_pay_payments' - | 'outbound_payments.bank_accounts' - | 'outbound_payments.cards' - | 'outbound_payments.financial_accounts' - | 'outbound_transfers.bank_accounts' - | 'outbound_transfers.financial_accounts' - | 'oxxo_payments' - | 'p24_payments' - | 'payco_payments' - | 'paynow_payments' - | 'pay_by_bank_payments' - | 'promptpay_payments' - | 'revolut_pay_payments' - | 'samsung_pay_payments' - | 'sepa_bank_transfer_payments' - | 'sepa_debit_payments' - | 'stripe_balance.payouts' - | 'stripe_balance.stripe_transfers' - | 'swish_payments' - | 'twint_payments' - | 'us_bank_transfer_payments' - | 'zip_payments'; - - export type Configuration = - | 'customer' - | 'merchant' - | 'recipient' - | 'storer'; - - export interface Deadline { - /** - * The current status of the requirement's impact. - */ - status: Deadline.Status; - } + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: string; - export namespace Deadline { - export type Status = - | 'currently_due' - | 'eventually_due' - | 'past_due'; - } - } - } + /** + * ZIP or postal code. + */ + postal_code?: string; - export namespace MinimumDeadline { - export type Status = - | 'currently_due' - | 'eventually_due' - | 'past_due'; - } + /** + * State, county, province, or region. + */ + state?: string; - export namespace Reference { - export type Type = 'inquiry' | 'payment_method' | 'person'; - } + /** + * Town or district. + */ + town?: string; + } - export namespace RequestedReason { - export type Code = 'routine_onboarding' | 'routine_verification'; - } + export interface Kanji { + /** + * City, district, suburb, town, or village. + */ + city?: string; + + /** + * Two-letter country code ([ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)). + */ + country?: string; + + /** + * Address line 1 (e.g., street, PO Box, or company name). + */ + line1?: string; + + /** + * Address line 2 (e.g., apartment, suite, unit, or building). + */ + line2?: string; + + /** + * ZIP or postal code. + */ + postal_code?: string; + + /** + * State, county, province, or region. + */ + state?: string; + + /** + * Town or district. + */ + town?: string; } + } - export namespace Summary { - export interface MinimumDeadline { - /** - * The current strictest status of all requirements on the Account. - */ - status: MinimumDeadline.Status; + export namespace ScriptNames { + export interface Kana { + /** + * The person's first or given name. + */ + given_name?: string; + + /** + * The person's last or family name. + */ + surname?: string; + } + + export interface Kanji { + /** + * The person's first or given name. + */ + given_name?: string; + + /** + * The person's last or family name. + */ + surname?: string; + } + } + } + } + + export namespace Requirements { + export interface Entry { + /** + * Indicates whether the platform or Stripe is currently responsible for taking action on the requirement. Value can be `user` or `stripe`. + */ + awaiting_action_from: Entry.AwaitingActionFrom; + + /** + * Machine-readable string describing the requirement. + */ + description: string; + + /** + * Descriptions of why the requirement must be collected, or why the collected information isn't satisfactory to Stripe. + */ + errors: Array; + + /** + * A hash describing the impact of not collecting the requirement, or Stripe not being able to verify the collected information. + */ + impact: Entry.Impact; + + /** + * The soonest point when the account will be impacted by not providing the requirement. + */ + minimum_deadline: Entry.MinimumDeadline; + + /** + * A reference to the location of the requirement. + */ + reference?: Entry.Reference; + + /** + * A list of reasons why Stripe is collecting the requirement. + */ + requested_reasons: Array; + } + + export interface Summary { + /** + * The soonest date and time a requirement on the Account will become `past due`. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`. + */ + minimum_deadline?: Summary.MinimumDeadline; + } + + export namespace Entry { + export type AwaitingActionFrom = 'stripe' | 'user'; + + export interface Error { + /** + * Machine-readable code describing the error. + */ + code: Error.Code; + + /** + * Human-readable description of the error. + */ + description: string; + } + + export interface Impact { + /** + * The Capabilities that will be restricted if the requirement is not collected and satisfactory to Stripe. + */ + restricts_capabilities?: Array; + } + + export interface MinimumDeadline { + /** + * The current status of the requirement's impact. + */ + status: MinimumDeadline.Status; + } + + export interface Reference { + /** + * If `inquiry` is the type, the inquiry token. + */ + inquiry?: string; + + /** + * If `resource` is the type, the resource token. + */ + resource?: string; + + /** + * The type of the reference. If the type is "inquiry", the inquiry token can be found in the "inquiry" field. + * Otherwise the type is an API resource, the token for which can be found in the "resource" field. + */ + type: Reference.Type; + } + + export interface RequestedReason { + /** + * Machine-readable description of Stripe's reason for collecting the requirement. + */ + code: RequestedReason.Code; + } + + export namespace Error { + export type Code = + | 'invalid_address_city_state_postal_code' + | 'invalid_address_highway_contract_box' + | 'invalid_address_private_mailbox' + | 'invalid_business_profile_name' + | 'invalid_business_profile_name_denylisted' + | 'invalid_company_name_denylisted' + | 'invalid_dob_age_over_maximum' + | 'invalid_dob_age_under_18' + | 'invalid_dob_age_under_minimum' + | 'invalid_product_description_length' + | 'invalid_product_description_url_match' + | 'invalid_representative_country' + | 'invalid_statement_descriptor_business_mismatch' + | 'invalid_statement_descriptor_denylisted' + | 'invalid_statement_descriptor_length' + | 'invalid_statement_descriptor_prefix_denylisted' + | 'invalid_statement_descriptor_prefix_mismatch' + | 'invalid_street_address' + | 'invalid_tax_id' + | 'invalid_tax_id_format' + | 'invalid_tos_acceptance' + | 'invalid_url_denylisted' + | 'invalid_url_format' + | 'invalid_url_website_business_information_mismatch' + | 'invalid_url_website_empty' + | 'invalid_url_website_inaccessible' + | 'invalid_url_website_inaccessible_geoblocked' + | 'invalid_url_website_inaccessible_password_protected' + | 'invalid_url_website_incomplete' + | 'invalid_url_website_incomplete_cancellation_policy' + | 'invalid_url_website_incomplete_customer_service_details' + | 'invalid_url_website_incomplete_legal_restrictions' + | 'invalid_url_website_incomplete_refund_policy' + | 'invalid_url_website_incomplete_return_policy' + | 'invalid_url_website_incomplete_terms_and_conditions' + | 'invalid_url_website_incomplete_under_construction' + | 'invalid_url_website_other' + | 'invalid_url_web_presence_detected' + | 'invalid_value_other' + | 'unresolvable_ip_address' + | 'unresolvable_postal_code' + | 'verification_directors_mismatch' + | 'verification_document_address_mismatch' + | 'verification_document_address_missing' + | 'verification_document_corrupt' + | 'verification_document_country_not_supported' + | 'verification_document_directors_mismatch' + | 'verification_document_dob_mismatch' + | 'verification_document_duplicate_type' + | 'verification_document_expired' + | 'verification_document_failed_copy' + | 'verification_document_failed_greyscale' + | 'verification_document_failed_other' + | 'verification_document_failed_test_mode' + | 'verification_document_fraudulent' + | 'verification_document_id_number_mismatch' + | 'verification_document_id_number_missing' + | 'verification_document_incomplete' + | 'verification_document_invalid' + | 'verification_document_issue_or_expiry_date_missing' + | 'verification_document_manipulated' + | 'verification_document_missing_back' + | 'verification_document_missing_front' + | 'verification_document_name_mismatch' + | 'verification_document_name_missing' + | 'verification_document_nationality_mismatch' + | 'verification_document_not_readable' + | 'verification_document_not_signed' + | 'verification_document_not_uploaded' + | 'verification_document_photo_mismatch' + | 'verification_document_too_large' + | 'verification_document_type_not_supported' + | 'verification_extraneous_directors' + | 'verification_failed_address_match' + | 'verification_failed_business_iec_number' + | 'verification_failed_document_match' + | 'verification_failed_id_number_match' + | 'verification_failed_keyed_identity' + | 'verification_failed_keyed_match' + | 'verification_failed_name_match' + | 'verification_failed_other' + | 'verification_failed_representative_authority' + | 'verification_failed_residential_address' + | 'verification_failed_tax_id_match' + | 'verification_failed_tax_id_not_issued' + | 'verification_missing_directors' + | 'verification_missing_executives' + | 'verification_missing_owners' + | 'verification_requires_additional_memorandum_of_associations' + | 'verification_requires_additional_proof_of_registration' + | 'verification_selfie_document_missing_photo' + | 'verification_selfie_face_mismatch' + | 'verification_selfie_manipulated' + | 'verification_selfie_unverified_other' + | 'verification_supportability' + | 'verification_token_stale'; + } + + export namespace Impact { + export interface RestrictsCapability { + /** + * The name of the Capability which will be restricted. + */ + capability: RestrictsCapability.Capability; + /** + * The configuration which specifies the Capability which will be restricted. + */ + configuration: RestrictsCapability.Configuration; + + /** + * Details about when in the account lifecycle the requirement must be collected by the avoid the Capability restriction. + */ + deadline: RestrictsCapability.Deadline; + } + + export namespace RestrictsCapability { + export type Capability = + | 'ach_debit_payments' + | 'acss_debit_payments' + | 'affirm_payments' + | 'afterpay_clearpay_payments' + | 'alma_payments' + | 'amazon_pay_payments' + | 'automatic_indirect_tax' + | 'au_becs_debit_payments' + | 'bacs_debit_payments' + | 'bancontact_payments' + | 'bank_accounts.local' + | 'bank_accounts.wire' + | 'blik_payments' + | 'boleto_payments' + | 'cards' + | 'card_payments' + | 'cartes_bancaires_payments' + | 'cashapp_payments' + | 'eps_payments' + | 'financial_addresses.bank_accounts' + | 'fpx_payments' + | 'gb_bank_transfer_payments' + | 'grabpay_payments' + | 'holds_currencies.eur' + | 'holds_currencies.gbp' + | 'holds_currencies.usd' + | 'ideal_payments' + | 'inbound_transfers.financial_accounts' + | 'jcb_payments' + | 'jp_bank_transfer_payments' + | 'kakao_pay_payments' + | 'klarna_payments' + | 'konbini_payments' + | 'kr_card_payments' + | 'link_payments' + | 'mobilepay_payments' + | 'multibanco_payments' + | 'mx_bank_transfer_payments' + | 'naver_pay_payments' + | 'outbound_payments.bank_accounts' + | 'outbound_payments.cards' + | 'outbound_payments.financial_accounts' + | 'outbound_transfers.bank_accounts' + | 'outbound_transfers.financial_accounts' + | 'oxxo_payments' + | 'p24_payments' + | 'payco_payments' + | 'paynow_payments' + | 'pay_by_bank_payments' + | 'promptpay_payments' + | 'revolut_pay_payments' + | 'samsung_pay_payments' + | 'sepa_bank_transfer_payments' + | 'sepa_debit_payments' + | 'stripe_balance.payouts' + | 'stripe_balance.stripe_transfers' + | 'swish_payments' + | 'twint_payments' + | 'us_bank_transfer_payments' + | 'zip_payments'; + + export type Configuration = + | 'customer' + | 'merchant' + | 'recipient' + | 'storer'; + + export interface Deadline { /** - * The soonest RFC3339 date & time UTC value a requirement can impact the Account. + * The current status of the requirement's impact. */ - time?: string; + status: Deadline.Status; } - export namespace MinimumDeadline { + export namespace Deadline { export type Status = | 'currently_due' | 'eventually_due' @@ -6693,6 +6647,36 @@ export namespace V2 { } } } + + export namespace MinimumDeadline { + export type Status = 'currently_due' | 'eventually_due' | 'past_due'; + } + + export namespace Reference { + export type Type = 'inquiry' | 'payment_method' | 'person'; + } + + export namespace RequestedReason { + export type Code = 'routine_onboarding' | 'routine_verification'; + } + } + + export namespace Summary { + export interface MinimumDeadline { + /** + * The current strictest status of all requirements on the Account. + */ + status: MinimumDeadline.Status; + + /** + * The soonest RFC3339 date & time UTC value a requirement can impact the Account. + */ + time?: string; + } + + export namespace MinimumDeadline { + export type Status = 'currently_due' | 'eventually_due' | 'past_due'; + } } } } diff --git a/src/resources/V2/Core/BatchJobs.ts b/src/resources/V2/Core/BatchJobs.ts index 34d5003bf8..f99f2c0ba5 100644 --- a/src/resources/V2/Core/BatchJobs.ts +++ b/src/resources/V2/Core/BatchJobs.ts @@ -284,317 +284,313 @@ export interface BatchJob { /** * The current status of the `batch_job`. */ - status: V2.Core.BatchJob.Status; + status: BatchJob.Status; /** * Additional details about the current state of the `batch_job`. */ - status_details?: V2.Core.BatchJob.StatusDetails; + status_details?: BatchJob.StatusDetails; } -export namespace V2 { - export namespace Core { - export namespace BatchJob { - export type Status = - | 'batch_failed' - | 'canceled' - | 'cancelling' - | 'complete' - | 'in_progress' - | 'ready_for_upload' - | 'timeout' - | 'upload_timeout' - | 'validating' - | 'validation_failed'; - - export interface StatusDetails { - /** - * Additional details for the `BATCH_FAILED` status of the `batch_job`. - */ - batch_failed?: StatusDetails.BatchFailed; +export namespace BatchJob { + export type Status = + | 'batch_failed' + | 'canceled' + | 'cancelling' + | 'complete' + | 'in_progress' + | 'ready_for_upload' + | 'timeout' + | 'upload_timeout' + | 'validating' + | 'validation_failed'; + + export interface StatusDetails { + /** + * Additional details for the `BATCH_FAILED` status of the `batch_job`. + */ + batch_failed?: StatusDetails.BatchFailed; + + /** + * Additional details for the `CANCELED` status of the `batch_job`. + */ + canceled?: StatusDetails.Canceled; + + /** + * Additional details for the `COMPLETE` status of the `batch_job`. + */ + complete?: StatusDetails.Complete; + + /** + * Additional details for the `IN_PROGRESS` status of the `batch_job`. + */ + in_progress?: StatusDetails.InProgress; + + /** + * Additional details for the `READY_FOR_UPLOAD` status of the `batch_job`. + */ + ready_for_upload?: StatusDetails.ReadyForUpload; + + /** + * Additional details for the `TIMEOUT` status of the `batch_job`. + */ + timeout?: StatusDetails.Timeout; + + /** + * Additional details for the `VALIDATING` status of the `batch_job`. + */ + validating?: StatusDetails.Validating; + + /** + * Additional details for the `VALIDATION_FAILED` status of the `batch_job`. + */ + validation_failed?: StatusDetails.ValidationFailed; + } - /** - * Additional details for the `CANCELED` status of the `batch_job`. - */ - canceled?: StatusDetails.Canceled; + export namespace StatusDetails { + export interface BatchFailed { + /** + * Details about the `batch_job` failure. + */ + error: string; + } - /** - * Additional details for the `COMPLETE` status of the `batch_job`. - */ - complete?: StatusDetails.Complete; + export interface Canceled { + /** + * The total number of records that failed processing. + */ + failure_count: bigint; - /** - * Additional details for the `IN_PROGRESS` status of the `batch_job`. - */ - in_progress?: StatusDetails.InProgress; + /** + * The output file details. If the `batch_job` is canceled, this is provided only if there is already output at this point. + */ + output_file: Canceled.OutputFile; - /** - * Additional details for the `READY_FOR_UPLOAD` status of the `batch_job`. - */ - ready_for_upload?: StatusDetails.ReadyForUpload; + /** + * The total number of records that were successfully processed. + */ + success_count: bigint; + } + export interface Complete { + /** + * The total number of records that failed processing. + */ + failure_count: bigint; + + /** + * The output file details. If the `batch_job` is canceled, this is provided only if there is already output at this point. + */ + output_file: Complete.OutputFile; + + /** + * The total number of records that were successfully processed. + */ + success_count: bigint; + } + + export interface InProgress { + /** + * The number of records that failed processing so far. + */ + failure_count: bigint; + + /** + * The number of records that were successfully processed so far. + */ + success_count: bigint; + } + + export interface ReadyForUpload { + /** + * The upload file details. + */ + upload_url: ReadyForUpload.UploadUrl; + } + + export interface Timeout { + /** + * The total number of records that failed processing. + */ + failure_count: bigint; + + /** + * The output file details. If the `batch_job` is canceled, this is provided only if there is already output at this point. + */ + output_file: Timeout.OutputFile; + + /** + * The total number of records that were successfully processed. + */ + success_count: bigint; + } + + export interface Validating { + /** + * The number of records that were validated. Note that there is no failure counter here; + * once we have any validation failures we give up. + */ + validated_count: bigint; + } + + export interface ValidationFailed { + /** + * The total number of records that failed processing. + */ + failure_count: bigint; + + /** + * The output file details. If the `batch_job` is canceled, this is provided only if there is already output at this point. + */ + output_file: ValidationFailed.OutputFile; + + /** + * The total number of records that were successfully processed. + */ + success_count: bigint; + } + + export namespace Canceled { + export interface OutputFile { /** - * Additional details for the `TIMEOUT` status of the `batch_job`. + * The content type of the file. */ - timeout?: StatusDetails.Timeout; + content_type: string; /** - * Additional details for the `VALIDATING` status of the `batch_job`. + * A pre-signed URL that allows secure, time-limited access to download the file. */ - validating?: StatusDetails.Validating; + download_url: OutputFile.DownloadUrl; /** - * Additional details for the `VALIDATION_FAILED` status of the `batch_job`. + * The total size of the file in bytes. */ - validation_failed?: StatusDetails.ValidationFailed; + size: bigint; } - export namespace StatusDetails { - export interface BatchFailed { + export namespace OutputFile { + export interface DownloadUrl { /** - * Details about the `batch_job` failure. + * The time that the URL expires. */ - error: string; - } + expires_at?: string; - export interface Canceled { /** - * The total number of records that failed processing. + * The URL that can be used for accessing the file. */ - failure_count: bigint; + url: string; + } + } + } - /** - * The output file details. If the `batch_job` is canceled, this is provided only if there is already output at this point. - */ - output_file: Canceled.OutputFile; + export namespace Complete { + export interface OutputFile { + /** + * The content type of the file. + */ + content_type: string; - /** - * The total number of records that were successfully processed. - */ - success_count: bigint; - } + /** + * A pre-signed URL that allows secure, time-limited access to download the file. + */ + download_url: OutputFile.DownloadUrl; - export interface Complete { - /** - * The total number of records that failed processing. - */ - failure_count: bigint; + /** + * The total size of the file in bytes. + */ + size: bigint; + } + export namespace OutputFile { + export interface DownloadUrl { /** - * The output file details. If the `batch_job` is canceled, this is provided only if there is already output at this point. + * The time that the URL expires. */ - output_file: Complete.OutputFile; + expires_at?: string; /** - * The total number of records that were successfully processed. + * The URL that can be used for accessing the file. */ - success_count: bigint; + url: string; } + } + } - export interface InProgress { - /** - * The number of records that failed processing so far. - */ - failure_count: bigint; + export namespace ReadyForUpload { + export interface UploadUrl { + /** + * The time that the URL expires. + */ + expires_at?: string; - /** - * The number of records that were successfully processed so far. - */ - success_count: bigint; - } + /** + * The URL that can be used for accessing the file. + */ + url: string; + } + } - export interface ReadyForUpload { - /** - * The upload file details. - */ - upload_url: ReadyForUpload.UploadUrl; - } + export namespace Timeout { + export interface OutputFile { + /** + * The content type of the file. + */ + content_type: string; - export interface Timeout { - /** - * The total number of records that failed processing. - */ - failure_count: bigint; + /** + * A pre-signed URL that allows secure, time-limited access to download the file. + */ + download_url: OutputFile.DownloadUrl; - /** - * The output file details. If the `batch_job` is canceled, this is provided only if there is already output at this point. - */ - output_file: Timeout.OutputFile; + /** + * The total size of the file in bytes. + */ + size: bigint; + } + export namespace OutputFile { + export interface DownloadUrl { /** - * The total number of records that were successfully processed. + * The time that the URL expires. */ - success_count: bigint; - } + expires_at?: string; - export interface Validating { /** - * The number of records that were validated. Note that there is no failure counter here; - * once we have any validation failures we give up. + * The URL that can be used for accessing the file. */ - validated_count: bigint; + url: string; } + } + } - export interface ValidationFailed { - /** - * The total number of records that failed processing. - */ - failure_count: bigint; + export namespace ValidationFailed { + export interface OutputFile { + /** + * The content type of the file. + */ + content_type: string; + /** + * A pre-signed URL that allows secure, time-limited access to download the file. + */ + download_url: OutputFile.DownloadUrl; + + /** + * The total size of the file in bytes. + */ + size: bigint; + } + + export namespace OutputFile { + export interface DownloadUrl { /** - * The output file details. If the `batch_job` is canceled, this is provided only if there is already output at this point. + * The time that the URL expires. */ - output_file: ValidationFailed.OutputFile; + expires_at?: string; /** - * The total number of records that were successfully processed. + * The URL that can be used for accessing the file. */ - success_count: bigint; - } - - export namespace Canceled { - export interface OutputFile { - /** - * The content type of the file. - */ - content_type: string; - - /** - * A pre-signed URL that allows secure, time-limited access to download the file. - */ - download_url: OutputFile.DownloadUrl; - - /** - * The total size of the file in bytes. - */ - size: bigint; - } - - export namespace OutputFile { - export interface DownloadUrl { - /** - * The time that the URL expires. - */ - expires_at?: string; - - /** - * The URL that can be used for accessing the file. - */ - url: string; - } - } - } - - export namespace Complete { - export interface OutputFile { - /** - * The content type of the file. - */ - content_type: string; - - /** - * A pre-signed URL that allows secure, time-limited access to download the file. - */ - download_url: OutputFile.DownloadUrl; - - /** - * The total size of the file in bytes. - */ - size: bigint; - } - - export namespace OutputFile { - export interface DownloadUrl { - /** - * The time that the URL expires. - */ - expires_at?: string; - - /** - * The URL that can be used for accessing the file. - */ - url: string; - } - } - } - - export namespace ReadyForUpload { - export interface UploadUrl { - /** - * The time that the URL expires. - */ - expires_at?: string; - - /** - * The URL that can be used for accessing the file. - */ - url: string; - } - } - - export namespace Timeout { - export interface OutputFile { - /** - * The content type of the file. - */ - content_type: string; - - /** - * A pre-signed URL that allows secure, time-limited access to download the file. - */ - download_url: OutputFile.DownloadUrl; - - /** - * The total size of the file in bytes. - */ - size: bigint; - } - - export namespace OutputFile { - export interface DownloadUrl { - /** - * The time that the URL expires. - */ - expires_at?: string; - - /** - * The URL that can be used for accessing the file. - */ - url: string; - } - } - } - - export namespace ValidationFailed { - export interface OutputFile { - /** - * The content type of the file. - */ - content_type: string; - - /** - * A pre-signed URL that allows secure, time-limited access to download the file. - */ - download_url: OutputFile.DownloadUrl; - - /** - * The total size of the file in bytes. - */ - size: bigint; - } - - export namespace OutputFile { - export interface DownloadUrl { - /** - * The time that the URL expires. - */ - expires_at?: string; - - /** - * The URL that can be used for accessing the file. - */ - url: string; - } - } + url: string; } } } diff --git a/src/resources/V2/Core/EventDestinations.ts b/src/resources/V2/Core/EventDestinations.ts index 9a3c55936b..7ae0005d9a 100644 --- a/src/resources/V2/Core/EventDestinations.ts +++ b/src/resources/V2/Core/EventDestinations.ts @@ -143,12 +143,12 @@ export interface EventDestination { /** * Amazon EventBridge configuration. */ - amazon_eventbridge?: V2.Core.EventDestination.AmazonEventbridge; + amazon_eventbridge?: EventDestination.AmazonEventbridge; /** * Azure Event Grid configuration. */ - azure_event_grid?: V2.Core.EventDestination.AzureEventGrid; + azure_event_grid?: EventDestination.AzureEventGrid; /** * Time at which the object was created. @@ -168,7 +168,7 @@ export interface EventDestination { /** * Payload type of events being subscribed to. */ - event_payload: V2.Core.EventDestination.EventPayload; + event_payload: EventDestination.EventPayload; /** * Specifies which accounts' events route to this destination. @@ -202,17 +202,17 @@ export interface EventDestination { /** * Status. It can be set to either enabled or disabled. */ - status: V2.Core.EventDestination.Status; + status: EventDestination.Status; /** * Additional information about event destination status. */ - status_details?: V2.Core.EventDestination.StatusDetails; + status_details?: EventDestination.StatusDetails; /** * Event destination type. */ - type: V2.Core.EventDestination.Type; + type: EventDestination.Type; /** * Time at which the object was last updated. @@ -222,114 +222,110 @@ export interface EventDestination { /** * Webhook endpoint configuration. */ - webhook_endpoint?: V2.Core.EventDestination.WebhookEndpoint; + webhook_endpoint?: EventDestination.WebhookEndpoint; } -export namespace V2 { - export namespace Core { - export namespace EventDestination { - export interface AmazonEventbridge { - /** - * The AWS account ID. - */ - aws_account_id: string; - - /** - * The ARN of the AWS event source. - */ - aws_event_source_arn: string; - - /** - * The state of the AWS event source. - */ - aws_event_source_status: AmazonEventbridge.AwsEventSourceStatus; - } - - export interface AzureEventGrid { - /** - * The name of the Azure partner topic. - */ - azure_partner_topic_name: string; - - /** - * The status of the Azure partner topic. - */ - azure_partner_topic_status: AzureEventGrid.AzurePartnerTopicStatus; - - /** - * The Azure region. - */ - azure_region: string; - - /** - * The name of the Azure resource group. - */ - azure_resource_group_name: string; - - /** - * The Azure subscription ID. - */ - azure_subscription_id: string; - } +export namespace EventDestination { + export interface AmazonEventbridge { + /** + * The AWS account ID. + */ + aws_account_id: string; + + /** + * The ARN of the AWS event source. + */ + aws_event_source_arn: string; + + /** + * The state of the AWS event source. + */ + aws_event_source_status: AmazonEventbridge.AwsEventSourceStatus; + } - export type EventPayload = 'snapshot' | 'thin'; + export interface AzureEventGrid { + /** + * The name of the Azure partner topic. + */ + azure_partner_topic_name: string; + + /** + * The status of the Azure partner topic. + */ + azure_partner_topic_status: AzureEventGrid.AzurePartnerTopicStatus; + + /** + * The Azure region. + */ + azure_region: string; + + /** + * The name of the Azure resource group. + */ + azure_resource_group_name: string; + + /** + * The Azure subscription ID. + */ + azure_subscription_id: string; + } - export type Status = 'disabled' | 'enabled'; + export type EventPayload = 'snapshot' | 'thin'; - export interface StatusDetails { - /** - * Details about why the event destination has been disabled. - */ - disabled?: StatusDetails.Disabled; - } + export type Status = 'disabled' | 'enabled'; - export type Type = - | 'amazon_eventbridge' - | 'azure_event_grid' - | 'webhook_endpoint'; + export interface StatusDetails { + /** + * Details about why the event destination has been disabled. + */ + disabled?: StatusDetails.Disabled; + } - export interface WebhookEndpoint { - /** - * The signing secret of the webhook endpoint, only includable on creation. - */ - signing_secret?: string; + export type Type = + | 'amazon_eventbridge' + | 'azure_event_grid' + | 'webhook_endpoint'; + + export interface WebhookEndpoint { + /** + * The signing secret of the webhook endpoint, only includable on creation. + */ + signing_secret?: string; + + /** + * The URL of the webhook endpoint, includable. + */ + url?: string; + } - /** - * The URL of the webhook endpoint, includable. - */ - url?: string; - } + export namespace AmazonEventbridge { + export type AwsEventSourceStatus = + | 'active' + | 'deleted' + | 'pending' + | 'unknown'; + } - export namespace AmazonEventbridge { - export type AwsEventSourceStatus = - | 'active' - | 'deleted' - | 'pending' - | 'unknown'; - } + export namespace AzureEventGrid { + export type AzurePartnerTopicStatus = + | 'activated' + | 'deleted' + | 'never_activated' + | 'unknown'; + } - export namespace AzureEventGrid { - export type AzurePartnerTopicStatus = - | 'activated' - | 'deleted' - | 'never_activated' - | 'unknown'; - } + export namespace StatusDetails { + export interface Disabled { + /** + * Reason event destination has been disabled. + */ + reason: Disabled.Reason; + } - export namespace StatusDetails { - export interface Disabled { - /** - * Reason event destination has been disabled. - */ - reason: Disabled.Reason; - } - - export namespace Disabled { - export type Reason = - | 'no_aws_event_source_exists' - | 'no_azure_partner_topic_exists' - | 'user'; - } - } + export namespace Disabled { + export type Reason = + | 'no_aws_event_source_exists' + | 'no_azure_partner_topic_exists' + | 'user'; } } } diff --git a/src/resources/V2/Core/Events.ts b/src/resources/V2/Core/Events.ts index 76037600e6..32d835e989 100644 --- a/src/resources/V2/Core/Events.ts +++ b/src/resources/V2/Core/Events.ts @@ -84,7 +84,7 @@ export interface EventBase { /** * Before and after changes for the primary related object. */ - changes?: V2.Core.Event.Changes; + changes?: Event.Changes; /** * Authentication context needed to fetch the event or related object. @@ -104,45 +104,41 @@ export interface EventBase { /** * Reason for the event. */ - reason?: V2.Core.Event.Reason; + reason?: Event.Reason; /** * The type of the event. */ type: string; } -export namespace V2 { - export namespace Core { - export namespace Event { - export type Changes = { - [key: string]: unknown; - }; +export namespace Event { + export type Changes = { + [key: string]: unknown; + }; - export interface Reason { - /** - * Information on the API request that instigated the event. - */ - request?: Reason.Request; + export interface Reason { + /** + * Information on the API request that instigated the event. + */ + request?: Reason.Request; - /** - * Event reason type. - */ - type: 'request'; - } + /** + * Event reason type. + */ + type: 'request'; + } - export namespace Reason { - export interface Request { - /** - * ID of the API request that caused the event. - */ - id: string; + export namespace Reason { + export interface Request { + /** + * ID of the API request that caused the event. + */ + id: string; - /** - * The idempotency key transmitted during the request. - */ - idempotency_key: string; - } - } + /** + * The idempotency key transmitted during the request. + */ + idempotency_key: string; } } } diff --git a/src/resources/V2/Core/Vault/GbBankAccounts.ts b/src/resources/V2/Core/Vault/GbBankAccounts.ts index b32df03947..784fd7b69f 100644 --- a/src/resources/V2/Core/Vault/GbBankAccounts.ts +++ b/src/resources/V2/Core/Vault/GbBankAccounts.ts @@ -121,7 +121,7 @@ export interface GbBankAccount { /** * The alternative reference for this payout method, if it's a projected payout method. */ - alternative_reference?: V2.Core.Vault.GbBankAccount.AlternativeReference; + alternative_reference?: GbBankAccount.AlternativeReference; /** * Whether this bank account object was archived. Bank account objects can be archived through @@ -133,7 +133,7 @@ export interface GbBankAccount { /** * Closed Enum. The type of the bank account (checking or savings). */ - bank_account_type: V2.Core.Vault.GbBankAccount.BankAccountType; + bank_account_type: GbBankAccount.BankAccountType; /** * The name of the bank. @@ -144,7 +144,7 @@ export interface GbBankAccount { * Information around the status of Confirmation of Payee matching done on this bank account. * Confirmation of Payee is a name matching service that must be done before making OutboundPayments in the UK. */ - confirmation_of_payee: V2.Core.Vault.GbBankAccount.ConfirmationOfPayee; + confirmation_of_payee: GbBankAccount.ConfirmationOfPayee; /** * Creation time. @@ -171,114 +171,108 @@ export interface GbBankAccount { */ supported_currencies: Array; } -export namespace V2 { - export namespace Core { - export namespace Vault { - export namespace GbBankAccount { - export interface AlternativeReference { - /** - * The ID of the alternative resource being referenced. - */ - id: string; +export namespace GbBankAccount { + export interface AlternativeReference { + /** + * The ID of the alternative resource being referenced. + */ + id: string; + + /** + * The type of the alternative reference (e.g., external_account for V1 external accounts). + */ + type: AlternativeReference.Type; + } - /** - * The type of the alternative reference (e.g., external_account for V1 external accounts). - */ - type: AlternativeReference.Type; - } + export type BankAccountType = 'checking' | 'futsu' | 'savings' | 'toza'; - export type BankAccountType = 'checking' | 'futsu' | 'savings' | 'toza'; + export interface ConfirmationOfPayee { + /** + * The result of the Confirmation of Payee check, once the check has been initiated. Closed enum. + */ + result: ConfirmationOfPayee.Result; - export interface ConfirmationOfPayee { - /** - * The result of the Confirmation of Payee check, once the check has been initiated. Closed enum. - */ - result: ConfirmationOfPayee.Result; + /** + * The current state of Confirmation of Payee on this bank account. Closed enum. + */ + status: ConfirmationOfPayee.Status; + } - /** - * The current state of Confirmation of Payee on this bank account. Closed enum. - */ - status: ConfirmationOfPayee.Status; - } + export namespace AlternativeReference { + export type Type = 'external_account' | 'payment_method'; + } - export namespace AlternativeReference { - export type Type = 'external_account' | 'payment_method'; - } + export namespace ConfirmationOfPayee { + export interface Result { + /** + * When the CoP result was created. + */ + created: string; + + /** + * Whether or not the information of the bank account matches what you have provided. Closed enum. + */ + match_result: Result.MatchResult; + + /** + * The fields that CoP service matched against. Only has value if MATCH or PARTIAL_MATCH, empty otherwise. + */ + matched: Result.Matched; + + /** + * Human-readable message describing the match result. + */ + message: string; + + /** + * The fields that are matched against what the network has on file. + */ + provided: Result.Provided; + } - export namespace ConfirmationOfPayee { - export interface Result { - /** - * When the CoP result was created. - */ - created: string; - - /** - * Whether or not the information of the bank account matches what you have provided. Closed enum. - */ - match_result: Result.MatchResult; - - /** - * The fields that CoP service matched against. Only has value if MATCH or PARTIAL_MATCH, empty otherwise. - */ - matched: Result.Matched; - - /** - * Human-readable message describing the match result. - */ - message: string; - - /** - * The fields that are matched against what the network has on file. - */ - provided: Result.Provided; - } - - export type Status = - | 'awaiting_acknowledgement' - | 'confirmed' - | 'uninitiated'; - - export namespace Result { - export type MatchResult = - | 'match' - | 'mismatch' - | 'partial_match' - | 'unavailable'; - - export interface Matched { - /** - * The business type given by the bank for this account, in case of a MATCH or PARTIAL_MATCH. - * Closed enum. - */ - business_type?: Matched.BusinessType; - - /** - * The name given by the bank for this account, in case of a MATCH or PARTIAL_MATCH. - */ - name?: string; - } - - export interface Provided { - /** - * The provided or Legal Entity business type to match against the CoP service. Closed enum. - */ - business_type: Provided.BusinessType; - - /** - * The provided or Legal Entity name to match against the CoP service. - */ - name: string; - } - - export namespace Matched { - export type BusinessType = 'business' | 'personal'; - } - - export namespace Provided { - export type BusinessType = 'business' | 'personal'; - } - } - } + export type Status = + | 'awaiting_acknowledgement' + | 'confirmed' + | 'uninitiated'; + + export namespace Result { + export type MatchResult = + | 'match' + | 'mismatch' + | 'partial_match' + | 'unavailable'; + + export interface Matched { + /** + * The business type given by the bank for this account, in case of a MATCH or PARTIAL_MATCH. + * Closed enum. + */ + business_type?: Matched.BusinessType; + + /** + * The name given by the bank for this account, in case of a MATCH or PARTIAL_MATCH. + */ + name?: string; + } + + export interface Provided { + /** + * The provided or Legal Entity business type to match against the CoP service. Closed enum. + */ + business_type: Provided.BusinessType; + + /** + * The provided or Legal Entity name to match against the CoP service. + */ + name: string; + } + + export namespace Matched { + export type BusinessType = 'business' | 'personal'; + } + + export namespace Provided { + export type BusinessType = 'business' | 'personal'; } } } diff --git a/src/resources/V2/Core/Vault/UsBankAccounts.ts b/src/resources/V2/Core/Vault/UsBankAccounts.ts index d843f9a0df..4445a12830 100644 --- a/src/resources/V2/Core/Vault/UsBankAccounts.ts +++ b/src/resources/V2/Core/Vault/UsBankAccounts.ts @@ -138,7 +138,7 @@ export interface UsBankAccount { /** * The alternative reference for this payout method, if it's a projected payout method. */ - alternative_reference?: V2.Core.Vault.UsBankAccount.AlternativeReference; + alternative_reference?: UsBankAccount.AlternativeReference; /** * Whether this USBankAccount object was archived. @@ -148,7 +148,7 @@ export interface UsBankAccount { /** * Closed Enum. The type of bank account (checking or savings). */ - bank_account_type: V2.Core.Vault.UsBankAccount.BankAccountType; + bank_account_type: UsBankAccount.BankAccountType; /** * The name of the bank this bank account belongs to. This field is populated automatically by Stripe based on the routing number. @@ -193,71 +193,65 @@ export interface UsBankAccount { /** * The bank account verification details. */ - verification: V2.Core.Vault.UsBankAccount.Verification; + verification: UsBankAccount.Verification; } -export namespace V2 { - export namespace Core { - export namespace Vault { - export namespace UsBankAccount { - export interface AlternativeReference { - /** - * The ID of the alternative resource being referenced. - */ - id: string; - - /** - * The type of the alternative reference (e.g., external_account for V1 external accounts). - */ - type: AlternativeReference.Type; - } +export namespace UsBankAccount { + export interface AlternativeReference { + /** + * The ID of the alternative resource being referenced. + */ + id: string; + + /** + * The type of the alternative reference (e.g., external_account for V1 external accounts). + */ + type: AlternativeReference.Type; + } - export type BankAccountType = 'checking' | 'savings'; + export type BankAccountType = 'checking' | 'savings'; - export interface Verification { - /** - * The microdeposit verification details if the status is awaiting verification. - */ - microdeposit_verification_details?: Verification.MicrodepositVerificationDetails; - - /** - * The bank account verification status. - */ - status: Verification.Status; - } - - export namespace AlternativeReference { - export type Type = 'external_account' | 'payment_method'; - } - - export namespace Verification { - export interface MicrodepositVerificationDetails { - /** - * Time when microdeposits will expire and have to be re-sent. - */ - expires: string; - - /** - * Microdeposit type can be amounts or descriptor_type. - */ - microdeposit_type: MicrodepositVerificationDetails.MicrodepositType; - - /** - * Time when microdeposits were sent. - */ - sent: string; - } - - export type Status = - | 'awaiting_verification' - | 'unverified' - | 'verification_failed' - | 'verified'; - - export namespace MicrodepositVerificationDetails { - export type MicrodepositType = 'amounts' | 'descriptor_code'; - } - } - } + export interface Verification { + /** + * The microdeposit verification details if the status is awaiting verification. + */ + microdeposit_verification_details?: Verification.MicrodepositVerificationDetails; + + /** + * The bank account verification status. + */ + status: Verification.Status; + } + + export namespace AlternativeReference { + export type Type = 'external_account' | 'payment_method'; + } + + export namespace Verification { + export interface MicrodepositVerificationDetails { + /** + * Time when microdeposits will expire and have to be re-sent. + */ + expires: string; + + /** + * Microdeposit type can be amounts or descriptor_type. + */ + microdeposit_type: MicrodepositVerificationDetails.MicrodepositType; + + /** + * Time when microdeposits were sent. + */ + sent: string; + } + + export type Status = + | 'awaiting_verification' + | 'unverified' + | 'verification_failed' + | 'verified'; + + export namespace MicrodepositVerificationDetails { + export type MicrodepositType = 'amounts' | 'descriptor_code'; } } } diff --git a/src/resources/V2/Data/Reporting/QueryRuns.ts b/src/resources/V2/Data/Reporting/QueryRuns.ts index 7e6dcd91f6..29a9423345 100644 --- a/src/resources/V2/Data/Reporting/QueryRuns.ts +++ b/src/resources/V2/Data/Reporting/QueryRuns.ts @@ -85,12 +85,12 @@ export interface QueryRun { /** * Details how to retrieve the results of a successfully completed `QueryRun`. */ - result?: V2.Data.Reporting.QueryRun.Result; + result?: QueryRun.Result; /** * The options specified for customizing the output of the `QueryRun`. */ - result_options?: V2.Data.Reporting.QueryRun.ResultOptions; + result_options?: QueryRun.ResultOptions; /** * The SQL that was executed. @@ -100,96 +100,90 @@ export interface QueryRun { /** * The current status of the `QueryRun`. */ - status: V2.Data.Reporting.QueryRun.Status; + status: QueryRun.Status; /** * Additional details about the current state of the `QueryRun`. Populated when the `QueryRun` * is in the `failed` state, providing more information about why the query failed. */ status_details: { - [key: string]: V2.Data.Reporting.QueryRun.StatusDetails; + [key: string]: QueryRun.StatusDetails; }; } -export namespace V2 { - export namespace Data { - export namespace Reporting { - export namespace QueryRun { - export interface Result { - /** - * Contains metadata about the file produced by the `ReportRun` or `QueryRun`, including - * its content type, size, and a URL to download its contents. - */ - file?: Result.File; +export namespace QueryRun { + export interface Result { + /** + * Contains metadata about the file produced by the `ReportRun` or `QueryRun`, including + * its content type, size, and a URL to download its contents. + */ + file?: Result.File; + + /** + * The type of the `ReportRun` or `QueryRun` result. + */ + type: 'file'; + } - /** - * The type of the `ReportRun` or `QueryRun` result. - */ - type: 'file'; - } + export interface ResultOptions { + /** + * If set, the generated results file will be compressed into a ZIP folder. + * This is useful for reducing file size and download time for large results. + */ + compress_file?: boolean; + } - export interface ResultOptions { - /** - * If set, the generated results file will be compressed into a ZIP folder. - * This is useful for reducing file size and download time for large results. - */ - compress_file?: boolean; - } + export type Status = 'failed' | 'running' | 'succeeded'; - export type Status = 'failed' | 'running' | 'succeeded'; + export interface StatusDetails { + /** + * Error code categorizing the reason the `QueryRun` failed. + */ + error_code?: StatusDetails.ErrorCode; - export interface StatusDetails { - /** - * Error code categorizing the reason the `QueryRun` failed. - */ - error_code?: StatusDetails.ErrorCode; + /** + * Error message with additional details about the failure. + */ + error_message?: string; + } - /** - * Error message with additional details about the failure. - */ - error_message?: string; - } + export namespace Result { + export interface File { + /** + * The content type of the file. + */ + content_type: File.ContentType; + + /** + * A pre-signed URL that allows secure, time-limited access to download the file. + */ + download_url: File.DownloadUrl; + + /** + * The total size of the file in bytes. + */ + size: bigint; + } - export namespace Result { - export interface File { - /** - * The content type of the file. - */ - content_type: File.ContentType; - - /** - * A pre-signed URL that allows secure, time-limited access to download the file. - */ - download_url: File.DownloadUrl; - - /** - * The total size of the file in bytes. - */ - size: bigint; - } - - export namespace File { - export type ContentType = 'csv' | 'zip'; - - export interface DownloadUrl { - /** - * The time that the URL expires. - */ - expires_at?: string; - - /** - * The URL that can be used for accessing the file. - */ - url: string; - } - } - } + export namespace File { + export type ContentType = 'csv' | 'zip'; - export namespace StatusDetails { - export type ErrorCode = 'file_size_above_limit' | 'internal_error'; - } + export interface DownloadUrl { + /** + * The time that the URL expires. + */ + expires_at?: string; + + /** + * The URL that can be used for accessing the file. + */ + url: string; } } } + + export namespace StatusDetails { + export type ErrorCode = 'file_size_above_limit' | 'internal_error'; + } } export namespace V2 { export namespace Data { diff --git a/src/resources/V2/Extend/WorkflowRuns.ts b/src/resources/V2/Extend/WorkflowRuns.ts index c7ad21a4be..8a33700b25 100644 --- a/src/resources/V2/Extend/WorkflowRuns.ts +++ b/src/resources/V2/Extend/WorkflowRuns.ts @@ -61,130 +61,126 @@ export interface WorkflowRun { /** * The current Workflow Run execution status. */ - status: V2.Extend.WorkflowRun.Status; + status: WorkflowRun.Status; /** * Details about the Workflow Run's status transitions. */ - status_details?: V2.Extend.WorkflowRun.StatusDetails; + status_details?: WorkflowRun.StatusDetails; /** * Summary information about the Workflow Run's status transitions. */ - status_transitions: V2.Extend.WorkflowRun.StatusTransitions; + status_transitions: WorkflowRun.StatusTransitions; /** * A record of the trigger that launched this Workflow Run. */ - trigger: V2.Extend.WorkflowRun.Trigger; + trigger: WorkflowRun.Trigger; /** * The Workflow this Run belongs to. */ workflow: string; } -export namespace V2 { - export namespace Extend { - export namespace WorkflowRun { - export type Status = 'failed' | 'started' | 'succeeded'; +export namespace WorkflowRun { + export type Status = 'failed' | 'started' | 'succeeded'; + + export interface StatusDetails { + /** + * Details about the Workflow Run's transition into the FAILED state. + */ + failed?: StatusDetails.Failed; + + /** + * Details about the Workflow Run's transition in to the STARTED state. + */ + started?: StatusDetails.Started; + + /** + * Details about the Workflow Run's transition into the SUCCEEDED state. + */ + succeeded?: StatusDetails.Succeeded; + } - export interface StatusDetails { - /** - * Details about the Workflow Run's transition into the FAILED state. - */ - failed?: StatusDetails.Failed; - - /** - * Details about the Workflow Run's transition in to the STARTED state. - */ - started?: StatusDetails.Started; - - /** - * Details about the Workflow Run's transition into the SUCCEEDED state. - */ - succeeded?: StatusDetails.Succeeded; - } + export interface StatusTransitions { + /** + * When the Workflow Run failed. + */ + failed_at?: string; + + /** + * When the Workflow Run was started. + */ + started_at?: string; + + /** + * When the Workflow Run succeeded. + */ + succeeded_at?: string; + } - export interface StatusTransitions { - /** - * When the Workflow Run failed. - */ - failed_at?: string; - - /** - * When the Workflow Run was started. - */ - started_at?: string; - - /** - * When the Workflow Run succeeded. - */ - succeeded_at?: string; - } + export interface Trigger { + /** + * The Workflow Run was launched when Stripe emitted a certain event. + */ + event_trigger?: Trigger.EventTrigger; + + /** + * The Workflow Run was launched through a direct call, using either the Dashboard or the Stripe API. + */ + manual?: Trigger.Manual; + + /** + * Which type of trigger this is. + */ + type: Trigger.Type; + } - export interface Trigger { - /** - * The Workflow Run was launched when Stripe emitted a certain event. - */ - event_trigger?: Trigger.EventTrigger; - - /** - * The Workflow Run was launched through a direct call, using either the Dashboard or the Stripe API. - */ - manual?: Trigger.Manual; - - /** - * Which type of trigger this is. - */ - type: Trigger.Type; - } + export namespace StatusDetails { + export interface Failed { + /** + * Optional details about the failure result. + */ + error_message?: string; + } - export namespace StatusDetails { - export interface Failed { - /** - * Optional details about the failure result. - */ - error_message?: string; - } + export interface Started {} - export interface Started {} + export interface Succeeded {} + } - export interface Succeeded {} - } + export namespace Trigger { + export interface EventTrigger { + /** + * The account that generated the triggering event. + */ + context: string; - export namespace Trigger { - export interface EventTrigger { - /** - * The account that generated the triggering event. - */ - context: string; - - /** - * The Stripe event that triggered this Run. - */ - id: string; - - /** - * The Stripe event type triggered this Run. - */ - type: string; - } - - export interface Manual { - /** - * The input parameters used when launching the Run. - */ - input_parameters: Manual.InputParameters; - } - - export type Type = 'event_trigger' | 'manual'; - - export namespace Manual { - export type InputParameters = { - [key: string]: unknown; - }; - } - } + /** + * The Stripe event that triggered this Run. + */ + id: string; + + /** + * The Stripe event type triggered this Run. + */ + type: string; + } + + export interface Manual { + /** + * The input parameters used when launching the Run. + */ + input_parameters: Manual.InputParameters; + } + + export type Type = 'event_trigger' | 'manual'; + + export namespace Manual { + export type InputParameters = { + [key: string]: unknown; + }; } } } diff --git a/src/resources/V2/Extend/Workflows.ts b/src/resources/V2/Extend/Workflows.ts index 76fcd745cd..2fe177caf8 100644 --- a/src/resources/V2/Extend/Workflows.ts +++ b/src/resources/V2/Extend/Workflows.ts @@ -72,7 +72,7 @@ export interface Workflow { /** * Whether this Workflow is active, inactive, or in some other state. Only active Workflows may be invoked. */ - status: V2.Extend.Workflow.Status; + status: Workflow.Status; /** * Workflow title. @@ -82,48 +82,44 @@ export interface Workflow { /** * Under what conditions will this Workflow launch. */ - triggers: Array; + triggers: Array; } -export namespace V2 { - export namespace Extend { - export namespace Workflow { - export type Status = 'active' | 'archived' | 'draft' | 'inactive'; +export namespace Workflow { + export type Status = 'active' | 'archived' | 'draft' | 'inactive'; + + export interface Trigger { + /** + * The Workflow can be launched when Stripe emits a certain event. + */ + event_trigger?: Trigger.EventTrigger; + + /** + * The Workflow can be launched through a direct call, using either the Dashboard or the Stripe API. + */ + manual?: Trigger.Manual; + + /** + * Which type of trigger this is. + */ + type: Trigger.Type; + } - export interface Trigger { - /** - * The Workflow can be launched when Stripe emits a certain event. - */ - event_trigger?: Trigger.EventTrigger; - - /** - * The Workflow can be launched through a direct call, using either the Dashboard or the Stripe API. - */ - manual?: Trigger.Manual; - - /** - * Which type of trigger this is. - */ - type: Trigger.Type; - } - - export namespace Trigger { - export interface EventTrigger { - /** - * Specifies which accounts' events will trigger this Workflow. - */ - events_from: Array; - - /** - * The Stripe event type that will trigger this Workflow. - */ - type: string; - } - - export interface Manual {} - - export type Type = 'event_trigger' | 'manual'; - } + export namespace Trigger { + export interface EventTrigger { + /** + * Specifies which accounts' events will trigger this Workflow. + */ + events_from: Array; + + /** + * The Stripe event type that will trigger this Workflow. + */ + type: string; } + + export interface Manual {} + + export type Type = 'event_trigger' | 'manual'; } } export namespace V2 { diff --git a/src/resources/V2/Iam/ActivityLogs.ts b/src/resources/V2/Iam/ActivityLogs.ts index 276daf9a38..90572385f3 100644 --- a/src/resources/V2/Iam/ActivityLogs.ts +++ b/src/resources/V2/Iam/ActivityLogs.ts @@ -45,7 +45,7 @@ export interface ActivityLog { /** * The actor that performed the action. */ - actor: V2.Iam.ActivityLog.Actor; + actor: ActivityLog.Actor; /** * The account on which the action was performed. @@ -60,7 +60,7 @@ export interface ActivityLog { /** * Action-specific details of the activity log entry. */ - details: V2.Iam.ActivityLog.Details; + details: ActivityLog.Details; /** * Whether the action was performed in live mode. @@ -70,181 +70,177 @@ export interface ActivityLog { /** * The type of action that was performed. */ - type: V2.Iam.ActivityLog.Type; + type: ActivityLog.Type; } -export namespace V2 { - export namespace Iam { - export namespace ActivityLog { - export interface Actor { - /** - * Set when the actor is an API key. - */ - api_key?: Actor.ApiKey; - - /** - * The type of actor. - */ - type: Actor.Type; - - /** - * Set when the actor is a user. - */ - user?: Actor.User; - } +export namespace ActivityLog { + export interface Actor { + /** + * Set when the actor is an API key. + */ + api_key?: Actor.ApiKey; + + /** + * The type of actor. + */ + type: Actor.Type; + + /** + * Set when the actor is a user. + */ + user?: Actor.User; + } - export interface Details { - /** - * Details of an API key action. - */ - api_key?: Details.ApiKey; + export interface Details { + /** + * Details of an API key action. + */ + api_key?: Details.ApiKey; + + /** + * The action group type of the activity log entry. + */ + type: Details.Type; + + /** + * Details of a user invite action. + */ + user_invite?: Details.UserInvite; + + /** + * Details of a user role change action. + */ + user_roles?: Details.UserRoles; + } - /** - * The action group type of the activity log entry. - */ - type: Details.Type; + export type Type = + | 'api_key_created' + | 'api_key_deleted' + | 'api_key_updated' + | 'api_key_viewed' + | 'user_invite_accepted' + | 'user_invite_created' + | 'user_invite_deleted' + | 'user_roles_deleted' + | 'user_roles_updated'; + + export namespace Actor { + export interface ApiKey { + /** + * Unique identifier of the API key. + */ + id: string; + } - /** - * Details of a user invite action. - */ - user_invite?: Details.UserInvite; + export type Type = 'api_key' | 'user'; - /** - * Details of a user role change action. - */ - user_roles?: Details.UserRoles; - } + export interface User { + /** + * Email address of the user. + */ + email: string; + } + } - export type Type = - | 'api_key_created' - | 'api_key_deleted' - | 'api_key_updated' - | 'api_key_viewed' - | 'user_invite_accepted' - | 'user_invite_created' - | 'user_invite_deleted' - | 'user_roles_deleted' - | 'user_roles_updated'; + export namespace Details { + export interface ApiKey { + /** + * Timestamp when the API key was created. + */ + created: string; - export namespace Actor { - export interface ApiKey { - /** - * Unique identifier of the API key. - */ - id: string; - } + /** + * Timestamp when the API key expires. + */ + expires_at?: string; - export type Type = 'api_key' | 'user'; + /** + * Unique identifier of the API key. + */ + id: string; - export interface User { - /** - * Email address of the user. - */ - email: string; - } - } + /** + * List of IP addresses allowed to use this API key. + */ + ip_allowlist: Array; - export namespace Details { - export interface ApiKey { - /** - * Timestamp when the API key was created. - */ - created: string; + /** + * Information about the entity managing this API key. + */ + managed_by?: ApiKey.ManagedBy; - /** - * Timestamp when the API key expires. - */ - expires_at?: string; + /** + * Name of the API key. + */ + name?: string; - /** - * Unique identifier of the API key. - */ - id: string; + /** + * Unique identifier of the new API key, set when this key was rotated. + */ + new_key?: string; - /** - * List of IP addresses allowed to use this API key. - */ - ip_allowlist: Array; + /** + * Note or description for the API key. + */ + note?: string; - /** - * Information about the entity managing this API key. - */ - managed_by?: ApiKey.ManagedBy; + /** + * Type of the API key. + */ + type: ApiKey.Type; + } - /** - * Name of the API key. - */ - name?: string; + export type Type = 'api_key' | 'user_invite' | 'user_roles'; - /** - * Unique identifier of the new API key, set when this key was rotated. - */ - new_key?: string; + export interface UserInvite { + /** + * Email address of the invited user. + */ + invited_user_email: string; - /** - * Note or description for the API key. - */ - note?: string; + /** + * Roles assigned to the invited user. + */ + roles: Array; + } - /** - * Type of the API key. - */ - type: ApiKey.Type; - } + export interface UserRoles { + /** + * Roles the user has after the change. + */ + new_roles: Array; - export type Type = 'api_key' | 'user_invite' | 'user_roles'; + /** + * Roles the user had before the change. + */ + old_roles: Array; - export interface UserInvite { - /** - * Email address of the invited user. - */ - invited_user_email: string; + /** + * Email address of the user whose roles were changed. + */ + user_email: string; + } - /** - * Roles assigned to the invited user. - */ - roles: Array; - } + export namespace ApiKey { + export interface ManagedBy { + /** + * An application. + */ + application?: ManagedBy.Application; - export interface UserRoles { - /** - * Roles the user has after the change. - */ - new_roles: Array; + /** + * The type of entity. + */ + type: 'application'; + } - /** - * Roles the user had before the change. - */ - old_roles: Array; + export type Type = 'publishable_key' | 'secret_key'; + export namespace ManagedBy { + export interface Application { /** - * Email address of the user whose roles were changed. + * Identifier of the application. */ - user_email: string; - } - - export namespace ApiKey { - export interface ManagedBy { - /** - * An application. - */ - application?: ManagedBy.Application; - - /** - * The type of entity. - */ - type: 'application'; - } - - export type Type = 'publishable_key' | 'secret_key'; - - export namespace ManagedBy { - export interface Application { - /** - * Identifier of the application. - */ - id: string; - } - } + id: string; } } } diff --git a/src/resources/V2/MoneyManagement/Adjustments.ts b/src/resources/V2/MoneyManagement/Adjustments.ts index f6254c9370..deff6c1d92 100644 --- a/src/resources/V2/MoneyManagement/Adjustments.ts +++ b/src/resources/V2/MoneyManagement/Adjustments.ts @@ -52,7 +52,7 @@ export interface Adjustment { /** * If applicable, contains information about the original flow linked to this Adjustment. */ - adjusted_flow?: V2.MoneyManagement.Adjustment.AdjustedFlow; + adjusted_flow?: Adjustment.AdjustedFlow; /** * The amount of the Adjustment. @@ -84,58 +84,54 @@ export interface Adjustment { */ receipt_url?: string; } -export namespace V2 { - export namespace MoneyManagement { - export namespace Adjustment { - export interface AdjustedFlow { - /** - * If applicable, the ID of the Adjustment linked to this Adjustment. - */ - adjustment?: string; - - /** - * If applicable, the ID of the InboundTransfer linked to this Adjustment. - */ - inbound_transfer?: string; - - /** - * If applicable, the ID of the OutboundPayment linked to this Adjustment. - */ - outbound_payment?: string; - - /** - * If applicable, the ID of the OutboundTransfer linked to this Adjustment. - */ - outbound_transfer?: string; - - /** - * If applicable, the ID of the ReceivedCredit linked to this Adjustment. - */ - received_credit?: string; - - /** - * If applicable, the ID of the ReceivedDebit linked to this Adjustment. - */ - received_debit?: string; - - /** - * Closed Enum. If applicable, the type of flow linked to this Adjustment. The field matching this value will contain the ID of the flow. - */ - type: AdjustedFlow.Type; - } +export namespace Adjustment { + export interface AdjustedFlow { + /** + * If applicable, the ID of the Adjustment linked to this Adjustment. + */ + adjustment?: string; + + /** + * If applicable, the ID of the InboundTransfer linked to this Adjustment. + */ + inbound_transfer?: string; + + /** + * If applicable, the ID of the OutboundPayment linked to this Adjustment. + */ + outbound_payment?: string; + + /** + * If applicable, the ID of the OutboundTransfer linked to this Adjustment. + */ + outbound_transfer?: string; + + /** + * If applicable, the ID of the ReceivedCredit linked to this Adjustment. + */ + received_credit?: string; + + /** + * If applicable, the ID of the ReceivedDebit linked to this Adjustment. + */ + received_debit?: string; + + /** + * Closed Enum. If applicable, the type of flow linked to this Adjustment. The field matching this value will contain the ID of the flow. + */ + type: AdjustedFlow.Type; + } - export namespace AdjustedFlow { - export type Type = - | 'adjustment' - | 'balance_exchange' - | 'inbound_payment' - | 'inbound_transfer' - | 'outbound_payment' - | 'outbound_transfer' - | 'received_credit' - | 'received_debit'; - } - } + export namespace AdjustedFlow { + export type Type = + | 'adjustment' + | 'balance_exchange' + | 'inbound_payment' + | 'inbound_transfer' + | 'outbound_payment' + | 'outbound_transfer' + | 'received_credit' + | 'received_debit'; } } export namespace V2 { diff --git a/src/resources/V2/MoneyManagement/FinancialAccounts.ts b/src/resources/V2/MoneyManagement/FinancialAccounts.ts index 41467b933c..b453e97f18 100644 --- a/src/resources/V2/MoneyManagement/FinancialAccounts.ts +++ b/src/resources/V2/MoneyManagement/FinancialAccounts.ts @@ -100,7 +100,7 @@ export interface FinancialAccount { /** * Multi-currency balance of this FinancialAccount, split by availability state. Each balance is represented as a hash where the key is the three-letter ISO currency code, in lowercase, and the value is the amount for that currency. */ - balance: V2.MoneyManagement.FinancialAccount.Balance; + balance: FinancialAccount.Balance; /** * Open Enum. Two-letter country code that represents the country where the LegalEntity associated with the FinancialAccount is based in. @@ -130,112 +130,105 @@ export interface FinancialAccount { /** * If this is a `other` FinancialAccount, this hash indicates what the actual type is. Upgrade your API version to see it reflected in `type`. */ - other?: V2.MoneyManagement.FinancialAccount.Other; + other?: FinancialAccount.Other; /** * Closed Enum. An enum representing the status of the FinancialAccount. This indicates whether or not the FinancialAccount can be used for any money movement flows. */ - status: V2.MoneyManagement.FinancialAccount.Status; + status: FinancialAccount.Status; /** * Additional details related to the status of the FinancialAccount. */ - status_details?: V2.MoneyManagement.FinancialAccount.StatusDetails; + status_details?: FinancialAccount.StatusDetails; /** * If this is a `storage` FinancialAccount, this hash includes details specific to `storage` FinancialAccounts. */ - storage?: V2.MoneyManagement.FinancialAccount.Storage; + storage?: FinancialAccount.Storage; /** * Type of the FinancialAccount. An additional hash is included on the FinancialAccount with a name matching this value. * It contains additional information specific to the FinancialAccount type. */ - type: V2.MoneyManagement.FinancialAccount.Type; + type: FinancialAccount.Type; } -export namespace V2 { - export namespace MoneyManagement { - export namespace FinancialAccount { - export interface Balance { - /** - * Balance that can be used for money movement. - */ - available: { - [key: string]: V2Amount; - }; +export namespace FinancialAccount { + export interface Balance { + /** + * Balance that can be used for money movement. + */ + available: { + [key: string]: V2Amount; + }; + + /** + * Balance of inbound funds that will later transition to the `available` balance. + */ + inbound_pending: { + [key: string]: V2Amount; + }; + + /** + * Balance of funds that are being used for a pending outbound money movement. + */ + outbound_pending: { + [key: string]: V2Amount; + }; + } - /** - * Balance of inbound funds that will later transition to the `available` balance. - */ - inbound_pending: { - [key: string]: V2Amount; - }; + export interface Other { + /** + * The type of the FinancialAccount, represented as a string. Upgrade your API version to see the type reflected in `financial_account.type`. + */ + type: string; + } - /** - * Balance of funds that are being used for a pending outbound money movement. - */ - outbound_pending: { - [key: string]: V2Amount; - }; - } + export type Status = 'closed' | 'open' | 'pending'; - export interface Other { - /** - * The type of the FinancialAccount, represented as a string. Upgrade your API version to see the type reflected in `financial_account.type`. - */ - type: string; - } + export interface StatusDetails { + /** + * Details related to the closed state of the FinancialAccount. + */ + closed?: StatusDetails.Closed; + } - export type Status = 'closed' | 'open' | 'pending'; + export interface Storage { + /** + * The currencies that this FinancialAccount can hold. + */ + holds_currencies: Array; + } + + export type Type = 'other' | 'storage'; - export interface StatusDetails { + export namespace StatusDetails { + export interface Closed { + /** + * The forwarding settings for the closed FinancialAccount. + */ + forwarding_settings?: Closed.ForwardingSettings; + + /** + * The reason the FinancialAccount was closed. + */ + reason: Closed.Reason; + } + + export namespace Closed { + export interface ForwardingSettings { /** - * Details related to the closed state of the FinancialAccount. + * The address to send forwarded payments to. */ - closed?: StatusDetails.Closed; - } + payment_method?: string; - export interface Storage { /** - * The currencies that this FinancialAccount can hold. + * The address to send forwarded payouts to. */ - holds_currencies: Array; + payout_method?: string; } - export type Type = 'other' | 'storage'; - - export namespace StatusDetails { - export interface Closed { - /** - * The forwarding settings for the closed FinancialAccount. - */ - forwarding_settings?: Closed.ForwardingSettings; - - /** - * The reason the FinancialAccount was closed. - */ - reason: Closed.Reason; - } - - export namespace Closed { - export interface ForwardingSettings { - /** - * The address to send forwarded payments to. - */ - payment_method?: string; - - /** - * The address to send forwarded payouts to. - */ - payout_method?: string; - } - - export type Reason = - | 'account_closed' - | 'closed_by_platform' - | 'other'; - } - } + export type Reason = 'account_closed' | 'closed_by_platform' | 'other'; } } } diff --git a/src/resources/V2/MoneyManagement/FinancialAddresses.ts b/src/resources/V2/MoneyManagement/FinancialAddresses.ts index 1edb8f70bd..8c0a9aec77 100644 --- a/src/resources/V2/MoneyManagement/FinancialAddresses.ts +++ b/src/resources/V2/MoneyManagement/FinancialAddresses.ts @@ -75,7 +75,7 @@ export interface FinancialAddress { * It contains all necessary banking details with which to perform money movements with the FinancialAddress. * This field is only available for FinancialAddresses with an active status. */ - credentials?: V2.MoneyManagement.FinancialAddress.Credentials; + credentials?: FinancialAddress.Credentials; /** * Open Enum. The currency the FinancialAddress supports. @@ -100,132 +100,128 @@ export interface FinancialAddress { /** * Closed Enum. An enum representing the status of the FinancialAddress. This indicates whether or not the FinancialAddress can be used for any money movement flows. */ - status: V2.MoneyManagement.FinancialAddress.Status; + status: FinancialAddress.Status; } -export namespace V2 { - export namespace MoneyManagement { - export namespace FinancialAddress { - export interface Credentials { - /** - * The credentials of the UK Bank Account for the FinancialAddress. This contains unique banking details such as the sort code, account number, etc. of a UK bank account. - */ - gb_bank_account?: Credentials.GbBankAccount; - - /** - * The credentials of the SEPA Bank Account for the FinancialAddress. This contains unique banking details such as the IBAN, BIC, etc. of a SEPA bank account. - */ - sepa_bank_account?: Credentials.SepaBankAccount; - - /** - * Open Enum. The type of Credentials that are provisioned for the FinancialAddress. - */ - type: Credentials.Type; - - /** - * The credentials of the US Bank Account for the FinancialAddress. This contains unique banking details such as the routing number, account number, etc. of a US bank account. - */ - us_bank_account?: Credentials.UsBankAccount; - } +export namespace FinancialAddress { + export interface Credentials { + /** + * The credentials of the UK Bank Account for the FinancialAddress. This contains unique banking details such as the sort code, account number, etc. of a UK bank account. + */ + gb_bank_account?: Credentials.GbBankAccount; + + /** + * The credentials of the SEPA Bank Account for the FinancialAddress. This contains unique banking details such as the IBAN, BIC, etc. of a SEPA bank account. + */ + sepa_bank_account?: Credentials.SepaBankAccount; + + /** + * Open Enum. The type of Credentials that are provisioned for the FinancialAddress. + */ + type: Credentials.Type; + + /** + * The credentials of the US Bank Account for the FinancialAddress. This contains unique banking details such as the routing number, account number, etc. of a US bank account. + */ + us_bank_account?: Credentials.UsBankAccount; + } - export type Status = 'active' | 'archived' | 'failed' | 'pending'; - - export namespace Credentials { - export interface GbBankAccount { - /** - * The account holder name to be used during bank transference. - */ - account_holder_name: string; - - /** - * The account number of the UK Bank Account. - */ - account_number?: string; - - /** - * The last four digits of the UK Bank Account number. This will always be returned. - * To view the full account number when retrieving or listing FinancialAddresses, use the `include` request parameter. - */ - last4: string; - - /** - * The sort code of the UK Bank Account. - */ - sort_code: string; - } - - export interface SepaBankAccount { - /** - * The account holder name to be used during bank transfers. - */ - account_holder_name: string; - - /** - * The name of the Bank. - */ - bank_name: string; - - /** - * The BIC of the SEPA Bank Account. - */ - bic: string; - - /** - * The originating country of the SEPA Bank account. - */ - country: string; - - /** - * The IBAN of the SEPA Bank Account. - */ - iban: string; - - /** - * The last four digits of the SEPA Bank Account number. This will always be returned. - * To view the full account number when retrieving or listing FinancialAddresses, use the `include` request parameter. - */ - last4: string; - } - - export type Type = 'gb_bank_account' | 'us_bank_account'; - - export interface UsBankAccount { - /** - * The address of the account holder. - */ - account_holder_address?: JapanAddress; - - /** - * The name of the account holder. - */ - account_holder_name?: string; - - /** - * The account number of the US Bank Account. - */ - account_number?: string; - - /** - * The name of the Bank. - */ - bank_name?: string; - - /** - * The last four digits of the US Bank Account number. This will always be returned. - * To view the full account number when retrieving or listing FinancialAddresses, use the `include` request parameter. - */ - last4: string; - - /** - * The routing number of the US Bank Account. - */ - routing_number: string; - - /** - * The swift code of the bank or financial institution. - */ - swift_code?: string; - } - } + export type Status = 'active' | 'archived' | 'failed' | 'pending'; + + export namespace Credentials { + export interface GbBankAccount { + /** + * The account holder name to be used during bank transference. + */ + account_holder_name: string; + + /** + * The account number of the UK Bank Account. + */ + account_number?: string; + + /** + * The last four digits of the UK Bank Account number. This will always be returned. + * To view the full account number when retrieving or listing FinancialAddresses, use the `include` request parameter. + */ + last4: string; + + /** + * The sort code of the UK Bank Account. + */ + sort_code: string; + } + + export interface SepaBankAccount { + /** + * The account holder name to be used during bank transfers. + */ + account_holder_name: string; + + /** + * The name of the Bank. + */ + bank_name: string; + + /** + * The BIC of the SEPA Bank Account. + */ + bic: string; + + /** + * The originating country of the SEPA Bank account. + */ + country: string; + + /** + * The IBAN of the SEPA Bank Account. + */ + iban: string; + + /** + * The last four digits of the SEPA Bank Account number. This will always be returned. + * To view the full account number when retrieving or listing FinancialAddresses, use the `include` request parameter. + */ + last4: string; + } + + export type Type = 'gb_bank_account' | 'us_bank_account'; + + export interface UsBankAccount { + /** + * The address of the account holder. + */ + account_holder_address?: JapanAddress; + + /** + * The name of the account holder. + */ + account_holder_name?: string; + + /** + * The account number of the US Bank Account. + */ + account_number?: string; + + /** + * The name of the Bank. + */ + bank_name?: string; + + /** + * The last four digits of the US Bank Account number. This will always be returned. + * To view the full account number when retrieving or listing FinancialAddresses, use the `include` request parameter. + */ + last4: string; + + /** + * The routing number of the US Bank Account. + */ + routing_number: string; + + /** + * The swift code of the bank or financial institution. + */ + swift_code?: string; } } } diff --git a/src/resources/V2/MoneyManagement/InboundTransfers.ts b/src/resources/V2/MoneyManagement/InboundTransfers.ts index 0f40cb1f08..a17676591f 100644 --- a/src/resources/V2/MoneyManagement/InboundTransfers.ts +++ b/src/resources/V2/MoneyManagement/InboundTransfers.ts @@ -82,7 +82,7 @@ export interface InboundTransfer { /** * A nested object containing information about the origin of the InboundTransfer. */ - from: V2.MoneyManagement.InboundTransfer.From; + from: InboundTransfer.From; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -97,154 +97,150 @@ export interface InboundTransfer { /** * A nested object containing information about the destination of the InboundTransfer. */ - to: V2.MoneyManagement.InboundTransfer.To; + to: InboundTransfer.To; /** * A list of history objects, representing changes in the state of the InboundTransfer. */ - transfer_history: Array; + transfer_history: Array; } -export namespace V2 { - export namespace MoneyManagement { - export namespace InboundTransfer { - export interface From { - /** - * The amount in specified currency that was debited from the Payment Method. - */ - debited: V2Amount; - - /** - * The Payment Method object used to create the InboundTransfer. - */ - payment_method: From.PaymentMethod; - } +export namespace InboundTransfer { + export interface From { + /** + * The amount in specified currency that was debited from the Payment Method. + */ + debited: V2Amount; + + /** + * The Payment Method object used to create the InboundTransfer. + */ + payment_method: From.PaymentMethod; + } - export interface To { - /** - * The amount by which the FinancialAccount balance is credited. - */ - credited: V2Amount; + export interface To { + /** + * The amount by which the FinancialAccount balance is credited. + */ + credited: V2Amount; - /** - * The FinancialAccount that funds will land in. - */ - financial_account: string; - } + /** + * The FinancialAccount that funds will land in. + */ + financial_account: string; + } - export interface TransferHistory { - /** - * The history entry for a failed InboundTransfer. - */ - bank_debit_failed?: TransferHistory.BankDebitFailed; + export interface TransferHistory { + /** + * The history entry for a failed InboundTransfer. + */ + bank_debit_failed?: TransferHistory.BankDebitFailed; + + /** + * The history entry for a processing InboundTransfer. + */ + bank_debit_processing?: TransferHistory.BankDebitProcessing; + + /** + * The history entry for a queued InboundTransfer. + */ + bank_debit_queued?: TransferHistory.BankDebitQueued; + + /** + * The history entry for a returned InboundTransfer. + */ + bank_debit_returned?: TransferHistory.BankDebitReturned; + + /** + * The history entry for a succeeded InboundTransfer. + */ + bank_debit_succeeded?: TransferHistory.BankDebitSucceeded; + + /** + * Creation time of the HistoryEntry in RFC 3339 format and UTC. + */ + created: string; + + /** + * Effective at time of the HistoryEntry in RFC 3339 format and UTC. + */ + effective_at: string; + + /** + * A unique ID for the HistoryEntry. + */ + id: string; + + /** + * Open Enum. The Level of the HistoryEntry. + */ + level: TransferHistory.Level; + + /** + * Open Enum. The type of the HistoryEntry. + */ + type: TransferHistory.Type; + } - /** - * The history entry for a processing InboundTransfer. - */ - bank_debit_processing?: TransferHistory.BankDebitProcessing; + export namespace From { + export interface PaymentMethod { + /** + * The type of object this destination represents. For a us bank account, we expect us_bank_account. + */ + type: string; - /** - * The history entry for a queued InboundTransfer. - */ - bank_debit_queued?: TransferHistory.BankDebitQueued; + /** + * The destination US bank account identifier. eg "usba_***". + */ + us_bank_account?: string; + } + } - /** - * The history entry for a returned InboundTransfer. - */ - bank_debit_returned?: TransferHistory.BankDebitReturned; + export namespace TransferHistory { + export interface BankDebitFailed { + /** + * Open Enum. The return reason for the failed InboundTransfer. + */ + failure_reason: BankDebitFailed.FailureReason; + } - /** - * The history entry for a succeeded InboundTransfer. - */ - bank_debit_succeeded?: TransferHistory.BankDebitSucceeded; + export interface BankDebitProcessing {} - /** - * Creation time of the HistoryEntry in RFC 3339 format and UTC. - */ - created: string; + export interface BankDebitQueued {} - /** - * Effective at time of the HistoryEntry in RFC 3339 format and UTC. - */ - effective_at: string; + export interface BankDebitReturned { + /** + * Open Enum. The return reason for the returned InboundTransfer. + */ + return_reason: BankDebitReturned.ReturnReason; + } - /** - * A unique ID for the HistoryEntry. - */ - id: string; + export interface BankDebitSucceeded {} - /** - * Open Enum. The Level of the HistoryEntry. - */ - level: TransferHistory.Level; + export type Level = 'canonical' | 'debug'; - /** - * Open Enum. The type of the HistoryEntry. - */ - type: TransferHistory.Type; - } + export type Type = + | 'bank_debit_failed' + | 'bank_debit_processing' + | 'bank_debit_queued' + | 'bank_debit_returned' + | 'bank_debit_succeeded'; - export namespace From { - export interface PaymentMethod { - /** - * The type of object this destination represents. For a us bank account, we expect us_bank_account. - */ - type: string; - - /** - * The destination US bank account identifier. eg "usba_***". - */ - us_bank_account?: string; - } - } + export namespace BankDebitFailed { + export type FailureReason = + | 'bank_account_closed' + | 'bank_account_not_found' + | 'bank_debit_could_not_be_processed' + | 'bank_debit_not_authorized' + | 'insufficient_funds'; + } - export namespace TransferHistory { - export interface BankDebitFailed { - /** - * Open Enum. The return reason for the failed InboundTransfer. - */ - failure_reason: BankDebitFailed.FailureReason; - } - - export interface BankDebitProcessing {} - - export interface BankDebitQueued {} - - export interface BankDebitReturned { - /** - * Open Enum. The return reason for the returned InboundTransfer. - */ - return_reason: BankDebitReturned.ReturnReason; - } - - export interface BankDebitSucceeded {} - - export type Level = 'canonical' | 'debug'; - - export type Type = - | 'bank_debit_failed' - | 'bank_debit_processing' - | 'bank_debit_queued' - | 'bank_debit_returned' - | 'bank_debit_succeeded'; - - export namespace BankDebitFailed { - export type FailureReason = - | 'bank_account_closed' - | 'bank_account_not_found' - | 'bank_debit_could_not_be_processed' - | 'bank_debit_not_authorized' - | 'insufficient_funds'; - } - - export namespace BankDebitReturned { - export type ReturnReason = - | 'bank_account_closed' - | 'bank_account_not_found' - | 'bank_debit_could_not_be_processed' - | 'bank_debit_not_authorized' - | 'insufficient_funds'; - } - } + export namespace BankDebitReturned { + export type ReturnReason = + | 'bank_account_closed' + | 'bank_account_not_found' + | 'bank_debit_could_not_be_processed' + | 'bank_debit_not_authorized' + | 'insufficient_funds'; } } } diff --git a/src/resources/V2/MoneyManagement/OutboundPaymentQuotes.ts b/src/resources/V2/MoneyManagement/OutboundPaymentQuotes.ts index f80a325ad2..2753a217a3 100644 --- a/src/resources/V2/MoneyManagement/OutboundPaymentQuotes.ts +++ b/src/resources/V2/MoneyManagement/OutboundPaymentQuotes.ts @@ -61,22 +61,22 @@ export interface OutboundPaymentQuote { /** * Delivery options to be used to send the OutboundPayment. */ - delivery_options?: V2.MoneyManagement.OutboundPaymentQuote.DeliveryOptions; + delivery_options?: OutboundPaymentQuote.DeliveryOptions; /** * The estimated fees for the OutboundPaymentQuote. */ - estimated_fees: Array; + estimated_fees: Array; /** * Details about the sender of an OutboundPaymentQuote. */ - from: V2.MoneyManagement.OutboundPaymentQuote.From; + from: OutboundPaymentQuote.From; /** * The underlying FXQuote details for the OutboundPaymentQuote. */ - fx_quote: V2.MoneyManagement.OutboundPaymentQuote.FxQuote; + fx_quote: OutboundPaymentQuote.FxQuote; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -86,113 +86,109 @@ export interface OutboundPaymentQuote { /** * Details about the recipient of an OutboundPaymentQuote. */ - to: V2.MoneyManagement.OutboundPaymentQuote.To; + to: OutboundPaymentQuote.To; } -export namespace V2 { - export namespace MoneyManagement { - export namespace OutboundPaymentQuote { - export interface DeliveryOptions { - /** - * Open Enum. Method for bank account. - */ - bank_account?: DeliveryOptions.BankAccount; - } - - export interface EstimatedFee { - /** - * The fee amount for corresponding fee type. - */ - amount: V2Amount; - - /** - * The fee type. - */ - type: EstimatedFee.Type; - } - - export interface From { - /** - * The monetary amount debited from the sender, only set on responses. - */ - debited: V2Amount; - - /** - * The FinancialAccount that funds were pulled from. - */ - financial_account: string; - } - - export interface FxQuote { - /** - * The duration the exchange rate lock remains valid from creation time. Allowed value is five_minutes or none. - */ - lock_duration: FxQuote.LockDuration; +export namespace OutboundPaymentQuote { + export interface DeliveryOptions { + /** + * Open Enum. Method for bank account. + */ + bank_account?: DeliveryOptions.BankAccount; + } - /** - * Time at which the rate lock will expire, measured in seconds since the Unix epoch. Null when rate locking is not supported. - */ - lock_expires_at?: string; + export interface EstimatedFee { + /** + * The fee amount for corresponding fee type. + */ + amount: V2Amount; - /** - * Lock status of the quote. Transitions from active to expired once past the lock_expires_at timestamp. Value can be active, expired or none. - */ - lock_status: FxQuote.LockStatus; - - /** - * Key pair: from currency Value: exchange rate going from_currency -> to_currency. - */ - rates: { - [key: string]: FxQuote.Rates; - }; + /** + * The fee type. + */ + type: EstimatedFee.Type; + } - /** - * The currency that the transaction is exchanging to. - */ - to_currency: string; - } + export interface From { + /** + * The monetary amount debited from the sender, only set on responses. + */ + debited: V2Amount; - export interface To { - /** - * The monetary amount being credited to the destination. - */ - credited: V2Amount; + /** + * The FinancialAccount that funds were pulled from. + */ + financial_account: string; + } - /** - * The payout method which the OutboundPayment uses to send payout. - */ - payout_method: string; + export interface FxQuote { + /** + * The duration the exchange rate lock remains valid from creation time. Allowed value is five_minutes or none. + */ + lock_duration: FxQuote.LockDuration; + + /** + * Time at which the rate lock will expire, measured in seconds since the Unix epoch. Null when rate locking is not supported. + */ + lock_expires_at?: string; + + /** + * Lock status of the quote. Transitions from active to expired once past the lock_expires_at timestamp. Value can be active, expired or none. + */ + lock_status: FxQuote.LockStatus; + + /** + * Key pair: from currency Value: exchange rate going from_currency -> to_currency. + */ + rates: { + [key: string]: FxQuote.Rates; + }; + + /** + * The currency that the transaction is exchanging to. + */ + to_currency: string; + } - /** - * To which account the OutboundPayment is sent. - */ - recipient: string; - } + export interface To { + /** + * The monetary amount being credited to the destination. + */ + credited: V2Amount; + + /** + * The payout method which the OutboundPayment uses to send payout. + */ + payout_method: string; + + /** + * To which account the OutboundPayment is sent. + */ + recipient: string; + } - export namespace DeliveryOptions { - export type BankAccount = 'automatic' | 'local' | 'wire'; - } + export namespace DeliveryOptions { + export type BankAccount = 'automatic' | 'local' | 'wire'; + } - export namespace EstimatedFee { - export type Type = - | 'cross_border_payout_fee' - | 'foreign_exchange_fee' - | 'instant_payout_fee' - | 'standard_payout_fee' - | 'wire_payout_fee'; - } + export namespace EstimatedFee { + export type Type = + | 'cross_border_payout_fee' + | 'foreign_exchange_fee' + | 'instant_payout_fee' + | 'standard_payout_fee' + | 'wire_payout_fee'; + } - export namespace FxQuote { - export type LockDuration = 'five_minutes' | 'none'; + export namespace FxQuote { + export type LockDuration = 'five_minutes' | 'none'; - export type LockStatus = 'active' | 'expired' | 'none'; + export type LockStatus = 'active' | 'expired' | 'none'; - export interface Rates { - /** - * The exchange rate going from_currency -> to_currency. - */ - exchange_rate: string; - } - } + export interface Rates { + /** + * The exchange rate going from_currency -> to_currency. + */ + exchange_rate: string; } } } diff --git a/src/resources/V2/MoneyManagement/OutboundPayments.ts b/src/resources/V2/MoneyManagement/OutboundPayments.ts index 04d6ad09a1..e9a843f5f4 100644 --- a/src/resources/V2/MoneyManagement/OutboundPayments.ts +++ b/src/resources/V2/MoneyManagement/OutboundPayments.ts @@ -104,7 +104,7 @@ export interface OutboundPayment { /** * Delivery options to be used to send the OutboundPayment. */ - delivery_options?: V2.MoneyManagement.OutboundPayment.DeliveryOptions; + delivery_options?: OutboundPayment.DeliveryOptions; /** * An arbitrary string attached to the OutboundPayment. Often useful for displaying to users. @@ -120,7 +120,7 @@ export interface OutboundPayment { /** * The FinancialAccount that funds were pulled from. */ - from: V2.MoneyManagement.OutboundPayment.From; + from: OutboundPayment.From; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -150,7 +150,7 @@ export interface OutboundPayment { /** * Details about the OutboundPayment notification settings for recipient. */ - recipient_notification: V2.MoneyManagement.OutboundPayment.RecipientNotification; + recipient_notification: OutboundPayment.RecipientNotification; /** * The description that appears on the receiving end for an OutboundPayment (for example, bank statement for external bank transfer). It will default to `STRIPE` if not set on the account settings. @@ -163,189 +163,185 @@ export interface OutboundPayment { * The status changes to `posted` once the OutboundPayment has been "confirmed" and funds have left the account, or to `failed` or `canceled`. * If an OutboundPayment fails to arrive at its payout method, its status will change to `returned`. */ - status: V2.MoneyManagement.OutboundPayment.Status; + status: OutboundPayment.Status; /** * Status details for an OutboundPayment in a `failed` or `returned` state. */ - status_details?: V2.MoneyManagement.OutboundPayment.StatusDetails; + status_details?: OutboundPayment.StatusDetails; /** * Hash containing timestamps of when the object transitioned to a particular status. */ - status_transitions?: V2.MoneyManagement.OutboundPayment.StatusTransitions; + status_transitions?: OutboundPayment.StatusTransitions; /** * To which payout method the OutboundPayment was sent. */ - to: V2.MoneyManagement.OutboundPayment.To; + to: OutboundPayment.To; /** * A unique identifier that can be used to track this OutboundPayment with recipient bank. Banks might call this a "reference number" or something similar. */ - trace_id: V2.MoneyManagement.OutboundPayment.TraceId; + trace_id: OutboundPayment.TraceId; } -export namespace V2 { - export namespace MoneyManagement { - export namespace OutboundPayment { - export interface DeliveryOptions { - /** - * Open Enum. Method for bank account. - */ - bank_account?: DeliveryOptions.BankAccount; - } - - export interface From { - /** - * The monetary amount debited from the sender, only set on responses. - */ - debited: V2Amount; - - /** - * The FinancialAccount that funds were pulled from. - */ - financial_account: string; - } - - export interface RecipientNotification { - /** - * Closed Enum. Configuration option to enable or disable notifications to recipients. - * Do not send notifications when setting is NONE. Default to account setting when setting is CONFIGURED or not set. - */ - setting: RecipientNotification.Setting; - } - - export type Status = - | 'canceled' - | 'failed' - | 'posted' - | 'processing' - | 'returned'; - - export interface StatusDetails { - /** - * The `failed` status reason. - */ - failed?: StatusDetails.Failed; +export namespace OutboundPayment { + export interface DeliveryOptions { + /** + * Open Enum. Method for bank account. + */ + bank_account?: DeliveryOptions.BankAccount; + } - /** - * The `returned` status reason. - */ - returned?: StatusDetails.Returned; - } + export interface From { + /** + * The monetary amount debited from the sender, only set on responses. + */ + debited: V2Amount; - export interface StatusTransitions { - /** - * Timestamp describing when an OutboundPayment changed status to `canceled`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - canceled_at?: string; - - /** - * Timestamp describing when an OutboundPayment changed status to `failed`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - failed_at?: string; + /** + * The FinancialAccount that funds were pulled from. + */ + financial_account: string; + } - /** - * Timestamp describing when an OutboundPayment changed status to `posted`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - posted_at?: string; + export interface RecipientNotification { + /** + * Closed Enum. Configuration option to enable or disable notifications to recipients. + * Do not send notifications when setting is NONE. Default to account setting when setting is CONFIGURED or not set. + */ + setting: RecipientNotification.Setting; + } - /** - * Timestamp describing when an OutboundPayment changed status to `returned`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - returned_at?: string; - } + export type Status = + | 'canceled' + | 'failed' + | 'posted' + | 'processing' + | 'returned'; + + export interface StatusDetails { + /** + * The `failed` status reason. + */ + failed?: StatusDetails.Failed; + + /** + * The `returned` status reason. + */ + returned?: StatusDetails.Returned; + } - export interface To { - /** - * The monetary amount being credited to the destination. - */ - credited: V2Amount; + export interface StatusTransitions { + /** + * Timestamp describing when an OutboundPayment changed status to `canceled`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + canceled_at?: string; + + /** + * Timestamp describing when an OutboundPayment changed status to `failed`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + failed_at?: string; + + /** + * Timestamp describing when an OutboundPayment changed status to `posted`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + posted_at?: string; + + /** + * Timestamp describing when an OutboundPayment changed status to `returned`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + returned_at?: string; + } - /** - * The payout method which the OutboundPayment uses to send payout. - */ - payout_method: string; + export interface To { + /** + * The monetary amount being credited to the destination. + */ + credited: V2Amount; + + /** + * The payout method which the OutboundPayment uses to send payout. + */ + payout_method: string; + + /** + * To which account the OutboundPayment is sent. + */ + recipient: string; + } - /** - * To which account the OutboundPayment is sent. - */ - recipient: string; - } + export interface TraceId { + /** + * Possible values are `pending`, `supported`, and `unsupported`. Initially set to `pending`, it changes to + * `supported` when the recipient bank provides a trace ID, or `unsupported` if the recipient bank doesn't support it. + * Note that this status may not align with the OutboundPayment or OutboundTransfer status and can remain `pending` + * even after the payment or transfer is posted. + */ + status: TraceId.Status; + + /** + * The trace ID value if `trace_id.status` is `supported`, otherwise empty. + */ + value?: string; + } - export interface TraceId { - /** - * Possible values are `pending`, `supported`, and `unsupported`. Initially set to `pending`, it changes to - * `supported` when the recipient bank provides a trace ID, or `unsupported` if the recipient bank doesn't support it. - * Note that this status may not align with the OutboundPayment or OutboundTransfer status and can remain `pending` - * even after the payment or transfer is posted. - */ - status: TraceId.Status; + export namespace DeliveryOptions { + export type BankAccount = 'automatic' | 'local' | 'wire'; + } - /** - * The trace ID value if `trace_id.status` is `supported`, otherwise empty. - */ - value?: string; - } + export namespace RecipientNotification { + export type Setting = 'configured' | 'none'; + } - export namespace DeliveryOptions { - export type BankAccount = 'automatic' | 'local' | 'wire'; - } + export namespace StatusDetails { + export interface Failed { + /** + * Open Enum. The `failed` status reason. + */ + reason: Failed.Reason; + } - export namespace RecipientNotification { - export type Setting = 'configured' | 'none'; - } + export interface Returned { + /** + * Open Enum. The `returned` status reason. + */ + reason: Returned.Reason; + } - export namespace StatusDetails { - export interface Failed { - /** - * Open Enum. The `failed` status reason. - */ - reason: Failed.Reason; - } - - export interface Returned { - /** - * Open Enum. The `returned` status reason. - */ - reason: Returned.Reason; - } - - export namespace Failed { - export type Reason = - | 'payout_method_declined' - | 'payout_method_does_not_exist' - | 'payout_method_expired' - | 'payout_method_unsupported' - | 'payout_method_usage_frequency_limit_exceeded' - | 'unknown_failure'; - } - - export namespace Returned { - export type Reason = - | 'payout_method_canceled_by_customer' - | 'payout_method_closed' - | 'payout_method_currency_unsupported' - | 'payout_method_does_not_exist' - | 'payout_method_holder_address_incorrect' - | 'payout_method_holder_details_incorrect' - | 'payout_method_holder_name_incorrect' - | 'payout_method_invalid_account_number' - | 'payout_method_restricted' - | 'recalled' - | 'unknown_failure'; - } - } + export namespace Failed { + export type Reason = + | 'payout_method_declined' + | 'payout_method_does_not_exist' + | 'payout_method_expired' + | 'payout_method_unsupported' + | 'payout_method_usage_frequency_limit_exceeded' + | 'unknown_failure'; + } - export namespace TraceId { - export type Status = 'pending' | 'supported' | 'unsupported'; - } + export namespace Returned { + export type Reason = + | 'payout_method_canceled_by_customer' + | 'payout_method_closed' + | 'payout_method_currency_unsupported' + | 'payout_method_does_not_exist' + | 'payout_method_holder_address_incorrect' + | 'payout_method_holder_details_incorrect' + | 'payout_method_holder_name_incorrect' + | 'payout_method_invalid_account_number' + | 'payout_method_restricted' + | 'recalled' + | 'unknown_failure'; } } + + export namespace TraceId { + export type Status = 'pending' | 'supported' | 'unsupported'; + } } export namespace V2 { export namespace MoneyManagement { diff --git a/src/resources/V2/MoneyManagement/OutboundSetupIntents.ts b/src/resources/V2/MoneyManagement/OutboundSetupIntents.ts index 6c0a1c5f2d..abb0340e8b 100644 --- a/src/resources/V2/MoneyManagement/OutboundSetupIntents.ts +++ b/src/resources/V2/MoneyManagement/OutboundSetupIntents.ts @@ -116,7 +116,7 @@ export interface OutboundSetupIntent { /** * Specifies which actions needs to be taken next to continue setup of the credential. */ - next_action?: V2.MoneyManagement.OutboundSetupIntent.NextAction; + next_action?: OutboundSetupIntent.NextAction; /** * Use the PayoutMethods API to list and interact with PayoutMethod objects. @@ -126,56 +126,52 @@ export interface OutboundSetupIntent { /** * Closed Enum. Status of the outbound setup intent. */ - status: V2.MoneyManagement.OutboundSetupIntent.Status; + status: OutboundSetupIntent.Status; /** * The intended money movement flow this payout method should be set up for, specified in params. */ - usage_intent: V2.MoneyManagement.OutboundSetupIntent.UsageIntent; + usage_intent: OutboundSetupIntent.UsageIntent; } -export namespace V2 { - export namespace MoneyManagement { - export namespace OutboundSetupIntent { - export interface NextAction { - /** - * Confirmation of Payee details. - */ - confirmation_of_payee?: NextAction.ConfirmationOfPayee; - - /** - * The type of next action. - */ - type: 'confirmation_of_payee'; - } +export namespace OutboundSetupIntent { + export interface NextAction { + /** + * Confirmation of Payee details. + */ + confirmation_of_payee?: NextAction.ConfirmationOfPayee; + + /** + * The type of next action. + */ + type: 'confirmation_of_payee'; + } - export type Status = - | 'canceled' - | 'requires_action' - | 'requires_payout_method' - | 'succeeded'; + export type Status = + | 'canceled' + | 'requires_action' + | 'requires_payout_method' + | 'succeeded'; - export type UsageIntent = 'payment' | 'transfer'; + export type UsageIntent = 'payment' | 'transfer'; - export namespace NextAction { - export interface ConfirmationOfPayee { - /** - * The type of the credential. - */ - object: string; + export namespace NextAction { + export interface ConfirmationOfPayee { + /** + * The type of the credential. + */ + object: string; - /** - * The Confirmation of Payee status. - */ - status: ConfirmationOfPayee.Status; - } + /** + * The Confirmation of Payee status. + */ + status: ConfirmationOfPayee.Status; + } - export namespace ConfirmationOfPayee { - export type Status = - | 'awaiting_acknowledgement' - | 'confirmed' - | 'uninitiated'; - } - } + export namespace ConfirmationOfPayee { + export type Status = + | 'awaiting_acknowledgement' + | 'confirmed' + | 'uninitiated'; } } } diff --git a/src/resources/V2/MoneyManagement/OutboundTransfers.ts b/src/resources/V2/MoneyManagement/OutboundTransfers.ts index 70ca3ff035..9de29ef78f 100644 --- a/src/resources/V2/MoneyManagement/OutboundTransfers.ts +++ b/src/resources/V2/MoneyManagement/OutboundTransfers.ts @@ -104,7 +104,7 @@ export interface OutboundTransfer { /** * Delivery options to be used to send the OutboundTransfer. */ - delivery_options?: V2.MoneyManagement.OutboundTransfer.DeliveryOptions; + delivery_options?: OutboundTransfer.DeliveryOptions; /** * An arbitrary string attached to the OutboundTransfer. Often useful for displaying to users. @@ -120,7 +120,7 @@ export interface OutboundTransfer { /** * The FinancialAccount that funds were pulled from. */ - from: V2.MoneyManagement.OutboundTransfer.From; + from: OutboundTransfer.From; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -148,173 +148,169 @@ export interface OutboundTransfer { * The status changes to `posted` once the OutboundTransfer has been "confirmed" and funds have left the account, or to `failed` or `canceled`. * If an OutboundTransfer fails to arrive at its payout method, its status will change to `returned`. */ - status: V2.MoneyManagement.OutboundTransfer.Status; + status: OutboundTransfer.Status; /** * Status details for an OutboundTransfer in a `failed` or `returned` state. */ - status_details?: V2.MoneyManagement.OutboundTransfer.StatusDetails; + status_details?: OutboundTransfer.StatusDetails; /** * Hash containing timestamps of when the object transitioned to a particular status. */ - status_transitions?: V2.MoneyManagement.OutboundTransfer.StatusTransitions; + status_transitions?: OutboundTransfer.StatusTransitions; /** * To which payout method the OutboundTransfer was sent. */ - to: V2.MoneyManagement.OutboundTransfer.To; + to: OutboundTransfer.To; /** * A unique identifier that can be used to track this OutboundTransfer with recipient bank. Banks might call this a "reference number" or something similar. */ - trace_id: V2.MoneyManagement.OutboundTransfer.TraceId; + trace_id: OutboundTransfer.TraceId; } -export namespace V2 { - export namespace MoneyManagement { - export namespace OutboundTransfer { - export interface DeliveryOptions { - /** - * Open Enum. Method for bank account. - */ - bank_account?: DeliveryOptions.BankAccount; - } - - export interface From { - /** - * The monetary amount debited from the sender, only set on responses. - */ - debited: V2Amount; - - /** - * The FinancialAccount that funds were pulled from. - */ - financial_account: string; - } - - export type Status = - | 'canceled' - | 'failed' - | 'posted' - | 'processing' - | 'returned'; - - export interface StatusDetails { - /** - * The `failed` status reason. - */ - failed?: StatusDetails.Failed; +export namespace OutboundTransfer { + export interface DeliveryOptions { + /** + * Open Enum. Method for bank account. + */ + bank_account?: DeliveryOptions.BankAccount; + } - /** - * The `returned` status reason. - */ - returned?: StatusDetails.Returned; - } + export interface From { + /** + * The monetary amount debited from the sender, only set on responses. + */ + debited: V2Amount; - export interface StatusTransitions { - /** - * Timestamp describing when an OutboundTransfer changed status to `canceled`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - canceled_at?: string; + /** + * The FinancialAccount that funds were pulled from. + */ + financial_account: string; + } - /** - * Timestamp describing when an OutboundTransfer changed status to `failed`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - failed_at?: string; + export type Status = + | 'canceled' + | 'failed' + | 'posted' + | 'processing' + | 'returned'; + + export interface StatusDetails { + /** + * The `failed` status reason. + */ + failed?: StatusDetails.Failed; + + /** + * The `returned` status reason. + */ + returned?: StatusDetails.Returned; + } - /** - * Timestamp describing when an OutboundTransfer changed status to `posted`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - posted_at?: string; + export interface StatusTransitions { + /** + * Timestamp describing when an OutboundTransfer changed status to `canceled`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + canceled_at?: string; + + /** + * Timestamp describing when an OutboundTransfer changed status to `failed`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + failed_at?: string; + + /** + * Timestamp describing when an OutboundTransfer changed status to `posted`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + posted_at?: string; + + /** + * Timestamp describing when an OutboundTransfer changed status to `returned`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + returned_at?: string; + } - /** - * Timestamp describing when an OutboundTransfer changed status to `returned`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - returned_at?: string; - } + export interface To { + /** + * The monetary amount being credited to the destination. + */ + credited: V2Amount; - export interface To { - /** - * The monetary amount being credited to the destination. - */ - credited: V2Amount; + /** + * The payout method which the OutboundTransfer uses to send payout. + */ + payout_method: string; + } - /** - * The payout method which the OutboundTransfer uses to send payout. - */ - payout_method: string; - } + export interface TraceId { + /** + * Possible values are `pending`, `supported`, and `unsupported`. Initially set to `pending`, it changes to + * `supported` when the recipient bank provides a trace ID, or `unsupported` if the recipient bank doesn't support it. + * Note that this status may not align with the OutboundPayment or OutboundTransfer status and can remain `pending` + * even after the payment or transfer is posted. + */ + status: TraceId.Status; + + /** + * The trace ID value if `trace_id.status` is `supported`, otherwise empty. + */ + value?: string; + } - export interface TraceId { - /** - * Possible values are `pending`, `supported`, and `unsupported`. Initially set to `pending`, it changes to - * `supported` when the recipient bank provides a trace ID, or `unsupported` if the recipient bank doesn't support it. - * Note that this status may not align with the OutboundPayment or OutboundTransfer status and can remain `pending` - * even after the payment or transfer is posted. - */ - status: TraceId.Status; + export namespace DeliveryOptions { + export type BankAccount = 'automatic' | 'local' | 'wire'; + } - /** - * The trace ID value if `trace_id.status` is `supported`, otherwise empty. - */ - value?: string; - } + export namespace StatusDetails { + export interface Failed { + /** + * Open Enum. The `failed` status reason. + */ + reason: Failed.Reason; + } - export namespace DeliveryOptions { - export type BankAccount = 'automatic' | 'local' | 'wire'; - } + export interface Returned { + /** + * Open Enum. The `returned` status reason. + */ + reason: Returned.Reason; + } - export namespace StatusDetails { - export interface Failed { - /** - * Open Enum. The `failed` status reason. - */ - reason: Failed.Reason; - } - - export interface Returned { - /** - * Open Enum. The `returned` status reason. - */ - reason: Returned.Reason; - } - - export namespace Failed { - export type Reason = - | 'payout_method_amount_limit_exceeded' - | 'payout_method_declined' - | 'payout_method_does_not_exist' - | 'payout_method_expired' - | 'payout_method_unsupported' - | 'payout_method_usage_frequency_limit_exceeded' - | 'unknown_failure'; - } - - export namespace Returned { - export type Reason = - | 'payout_method_canceled_by_customer' - | 'payout_method_closed' - | 'payout_method_currency_unsupported' - | 'payout_method_does_not_exist' - | 'payout_method_holder_address_incorrect' - | 'payout_method_holder_details_incorrect' - | 'payout_method_holder_name_incorrect' - | 'payout_method_invalid_account_number' - | 'payout_method_restricted' - | 'recalled' - | 'unknown_failure'; - } - } + export namespace Failed { + export type Reason = + | 'payout_method_amount_limit_exceeded' + | 'payout_method_declined' + | 'payout_method_does_not_exist' + | 'payout_method_expired' + | 'payout_method_unsupported' + | 'payout_method_usage_frequency_limit_exceeded' + | 'unknown_failure'; + } - export namespace TraceId { - export type Status = 'pending' | 'supported' | 'unsupported'; - } + export namespace Returned { + export type Reason = + | 'payout_method_canceled_by_customer' + | 'payout_method_closed' + | 'payout_method_currency_unsupported' + | 'payout_method_does_not_exist' + | 'payout_method_holder_address_incorrect' + | 'payout_method_holder_details_incorrect' + | 'payout_method_holder_name_incorrect' + | 'payout_method_invalid_account_number' + | 'payout_method_restricted' + | 'recalled' + | 'unknown_failure'; } } + + export namespace TraceId { + export type Status = 'pending' | 'supported' | 'unsupported'; + } } export namespace V2 { export namespace MoneyManagement { diff --git a/src/resources/V2/MoneyManagement/PayoutMethods.ts b/src/resources/V2/MoneyManagement/PayoutMethods.ts index 6580319476..0f8394be2e 100644 --- a/src/resources/V2/MoneyManagement/PayoutMethods.ts +++ b/src/resources/V2/MoneyManagement/PayoutMethods.ts @@ -90,24 +90,22 @@ export interface PayoutMethod { /** * The alternative reference for this payout method, if it's a projected payout method. */ - alternative_reference?: V2.MoneyManagement.PayoutMethod.AlternativeReference; + alternative_reference?: PayoutMethod.AlternativeReference; /** * A set of available payout speeds for this payout method. */ - available_payout_speeds: Array< - V2.MoneyManagement.PayoutMethod.AvailablePayoutSpeed - >; + available_payout_speeds: Array; /** * The PayoutMethodBankAccount object details. */ - bank_account?: V2.MoneyManagement.PayoutMethod.BankAccount; + bank_account?: PayoutMethod.BankAccount; /** * The PayoutMethodCard object details. */ - card?: V2.MoneyManagement.PayoutMethod.Card; + card?: PayoutMethod.Card; /** * Created timestamp. @@ -133,152 +131,148 @@ export interface PayoutMethod { /** * Closed Enum. The type of payout method. */ - type: V2.MoneyManagement.PayoutMethod.Type; + type: PayoutMethod.Type; /** * Indicates whether the payout method has met the necessary requirements for outbound money movement. */ - usage_status: V2.MoneyManagement.PayoutMethod.UsageStatus; + usage_status: PayoutMethod.UsageStatus; } -export namespace V2 { - export namespace MoneyManagement { - export namespace PayoutMethod { - export interface AlternativeReference { - /** - * The ID of the alternative resource being referenced. - */ - id: string; - - /** - * The type of the alternative reference (e.g., external_account for V1 external accounts). - */ - type: AlternativeReference.Type; - } - - export type AvailablePayoutSpeed = 'instant' | 'standard'; - - export interface BankAccount { - /** - * Whether this PayoutMethodBankAccount object was archived. PayoutMethodBankAccount objects can be archived through - * the /archive API, and they will not be automatically archived by Stripe. Archived PayoutMethodBankAccount objects - * cannot be used as payout methods and will not appear in the payout method list. - */ - archived: boolean; - - /** - * The type of bank account (checking or savings). - */ - bank_account_type: BankAccount.BankAccountType; - - /** - * The name of the bank this bank account is in. This field is populated automatically by Stripe. - */ - bank_name: string; - - /** - * The branch number of the bank account, if present. - */ - branch_number?: string; - - /** - * The country code of the bank account. - */ - country: string; - - /** - * List of enabled flows for this bank account (wire or local). - */ - enabled_delivery_options: Array; - - /** - * The ID of the Financial Connections Account used to create the bank account. - */ - financial_connections_account?: string; - - /** - * The last 4 digits of the account number. - */ - last4: string; - - /** - * The routing number of the bank account, if present. - */ - routing_number?: string; - - /** - * The list of currencies supported by this bank account. - */ - supported_currencies: Array; - - /** - * The swift code of the bank or financial institution. - */ - swift_code?: string; - } - - export interface Card { - /** - * Whether the PayoutMethodCard object was archived. PayoutMethodCard objects can be archived through - * the /archive API, and they will not be automatically archived by Stripe. Archived PayoutMethodCard objects - * cannot be used as payout methods and will not appear in the payout method list. - */ - archived: boolean; - - /** - * The month the card expires. - */ - exp_month: string; - - /** - * The year the card expires. - */ - exp_year: string; - - /** - * Uniquely identifies this particular card number. You can use this attribute to check whether two - * recipients who've signed up with you are using the same card number, for example. - */ - fingerprint: string; +export namespace PayoutMethod { + export interface AlternativeReference { + /** + * The ID of the alternative resource being referenced. + */ + id: string; + + /** + * The type of the alternative reference (e.g., external_account for V1 external accounts). + */ + type: AlternativeReference.Type; + } - /** - * The last 4 digits of the card number. - */ - last4: string; + export type AvailablePayoutSpeed = 'instant' | 'standard'; + + export interface BankAccount { + /** + * Whether this PayoutMethodBankAccount object was archived. PayoutMethodBankAccount objects can be archived through + * the /archive API, and they will not be automatically archived by Stripe. Archived PayoutMethodBankAccount objects + * cannot be used as payout methods and will not appear in the payout method list. + */ + archived: boolean; + + /** + * The type of bank account (checking or savings). + */ + bank_account_type: BankAccount.BankAccountType; + + /** + * The name of the bank this bank account is in. This field is populated automatically by Stripe. + */ + bank_name: string; + + /** + * The branch number of the bank account, if present. + */ + branch_number?: string; + + /** + * The country code of the bank account. + */ + country: string; + + /** + * List of enabled flows for this bank account (wire or local). + */ + enabled_delivery_options: Array; + + /** + * The ID of the Financial Connections Account used to create the bank account. + */ + financial_connections_account?: string; + + /** + * The last 4 digits of the account number. + */ + last4: string; + + /** + * The routing number of the bank account, if present. + */ + routing_number?: string; + + /** + * The list of currencies supported by this bank account. + */ + supported_currencies: Array; + + /** + * The swift code of the bank or financial institution. + */ + swift_code?: string; + } - /** - * The list of currencies supported by this bank account. - */ - supported_currencies: Array; - } + export interface Card { + /** + * Whether the PayoutMethodCard object was archived. PayoutMethodCard objects can be archived through + * the /archive API, and they will not be automatically archived by Stripe. Archived PayoutMethodCard objects + * cannot be used as payout methods and will not appear in the payout method list. + */ + archived: boolean; + + /** + * The month the card expires. + */ + exp_month: string; + + /** + * The year the card expires. + */ + exp_year: string; + + /** + * Uniquely identifies this particular card number. You can use this attribute to check whether two + * recipients who've signed up with you are using the same card number, for example. + */ + fingerprint: string; + + /** + * The last 4 digits of the card number. + */ + last4: string; + + /** + * The list of currencies supported by this bank account. + */ + supported_currencies: Array; + } - export type Type = 'bank_account' | 'card' | 'crypto_wallet'; + export type Type = 'bank_account' | 'card' | 'crypto_wallet'; - export interface UsageStatus { - /** - * Payments status - used when sending OutboundPayments (sending funds to recipients). - */ - payments: UsageStatus.Payments; + export interface UsageStatus { + /** + * Payments status - used when sending OutboundPayments (sending funds to recipients). + */ + payments: UsageStatus.Payments; - /** - * Transfers status - used when making an OutboundTransfer (sending funds to yourself). - */ - transfers: UsageStatus.Transfers; - } + /** + * Transfers status - used when making an OutboundTransfer (sending funds to yourself). + */ + transfers: UsageStatus.Transfers; + } - export namespace AlternativeReference { - export type Type = 'external_account' | 'payment_method'; - } + export namespace AlternativeReference { + export type Type = 'external_account' | 'payment_method'; + } - export namespace BankAccount { - export type BankAccountType = 'checking' | 'futsu' | 'savings' | 'toza'; - } + export namespace BankAccount { + export type BankAccountType = 'checking' | 'futsu' | 'savings' | 'toza'; + } - export namespace UsageStatus { - export type Payments = 'eligible' | 'invalid' | 'requires_action'; + export namespace UsageStatus { + export type Payments = 'eligible' | 'invalid' | 'requires_action'; - export type Transfers = 'eligible' | 'invalid' | 'requires_action'; - } - } + export type Transfers = 'eligible' | 'invalid' | 'requires_action'; } } export namespace V2 { diff --git a/src/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.ts b/src/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.ts index 3b6255da04..5f198c24e1 100644 --- a/src/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.ts +++ b/src/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.ts @@ -31,7 +31,7 @@ export interface PayoutMethodsBankAccountSpec { * The list of specs by country. */ countries: { - [key: string]: V2.MoneyManagement.PayoutMethodsBankAccountSpec.Countries; + [key: string]: PayoutMethodsBankAccountSpec.Countries; }; /** @@ -39,72 +39,68 @@ export interface PayoutMethodsBankAccountSpec { */ livemode: boolean; } -export namespace V2 { - export namespace MoneyManagement { - export namespace PayoutMethodsBankAccountSpec { - export interface Countries { - /** - * The list of fields for a country, along with associated information. - */ - fields: Array; - } +export namespace PayoutMethodsBankAccountSpec { + export interface Countries { + /** + * The list of fields for a country, along with associated information. + */ + fields: Array; + } - export namespace Countries { - export interface Field { - /** - * The currencies supported by the corresponding credentials for bank accounts in the specified country. - */ - currencies?: Array; + export namespace Countries { + export interface Field { + /** + * The currencies supported by the corresponding credentials for bank accounts in the specified country. + */ + currencies?: Array; - /** - * The local name of the field. - */ - local_name: string; + /** + * The local name of the field. + */ + local_name: string; - /** - * The human readable local name of the field. - */ - local_name_human: Field.LocalNameHuman; + /** + * The human readable local name of the field. + */ + local_name_human: Field.LocalNameHuman; - /** - * The maximum length of the field. - */ - max_length: number; + /** + * The maximum length of the field. + */ + max_length: number; - /** - * THe minimum length of the field. - */ - min_length: number; + /** + * THe minimum length of the field. + */ + min_length: number; - /** - * The placeholder value of the field. - */ - placeholder: string; + /** + * The placeholder value of the field. + */ + placeholder: string; - /** - * The stripe name of the field. - */ - stripe_name: string; + /** + * The stripe name of the field. + */ + stripe_name: string; - /** - * The validation regex of the field. - */ - validation_regex: string; - } + /** + * The validation regex of the field. + */ + validation_regex: string; + } - export namespace Field { - export interface LocalNameHuman { - /** - * The default content of the localizable string. - */ - content: string; + export namespace Field { + export interface LocalNameHuman { + /** + * The default content of the localizable string. + */ + content: string; - /** - * A unique key representing the instance of this localizable string. - */ - localization_key: string; - } - } + /** + * A unique key representing the instance of this localizable string. + */ + localization_key: string; } } } diff --git a/src/resources/V2/MoneyManagement/ReceivedCredits.ts b/src/resources/V2/MoneyManagement/ReceivedCredits.ts index 5bcec71046..69a8cdebc6 100644 --- a/src/resources/V2/MoneyManagement/ReceivedCredits.ts +++ b/src/resources/V2/MoneyManagement/ReceivedCredits.ts @@ -57,12 +57,12 @@ export interface ReceivedCredit { /** * This object stores details about the originating Stripe transaction that resulted in the ReceivedCredit. Present if `type` field value is `balance_transfer`. */ - balance_transfer?: V2.MoneyManagement.ReceivedCredit.BalanceTransfer; + balance_transfer?: ReceivedCredit.BalanceTransfer; /** * This object stores details about the originating banking transaction that resulted in the ReceivedCredit. Present if `type` field value is `bank_transfer`. */ - bank_transfer?: V2.MoneyManagement.ReceivedCredit.BankTransfer; + bank_transfer?: ReceivedCredit.BankTransfer; /** * Time at which the ReceivedCredit was created. @@ -93,256 +93,249 @@ export interface ReceivedCredit { /** * Open Enum. The status of the ReceivedCredit. */ - status: V2.MoneyManagement.ReceivedCredit.Status; + status: ReceivedCredit.Status; /** * This hash contains detailed information that elaborates on the specific status of the ReceivedCredit. e.g the reason behind a failure if the status is marked as `failed`. */ - status_details?: V2.MoneyManagement.ReceivedCredit.StatusDetails; + status_details?: ReceivedCredit.StatusDetails; /** * Hash containing timestamps of when the object transitioned to a particular status. */ - status_transitions?: V2.MoneyManagement.ReceivedCredit.StatusTransitions; + status_transitions?: ReceivedCredit.StatusTransitions; /** * Open Enum. The type of flow that caused the ReceivedCredit. */ - type: V2.MoneyManagement.ReceivedCredit.Type; + type: ReceivedCredit.Type; } -export namespace V2 { - export namespace MoneyManagement { - export namespace ReceivedCredit { - export interface BalanceTransfer { - /** - * The ID of the account that owns the source object originated the ReceivedCredit. - */ - from_account?: string; - - /** - * The ID of the outbound payment object that originated the ReceivedCredit. - */ - outbound_payment?: string; - - /** - * The ID of the outbound transfer object that originated the ReceivedCredit. - */ - outbound_transfer?: string; - - /** - * The ID of the payout object that originated the ReceivedCredit. - */ - payout_v1?: string; - - /** - * The ID of the v1 transfer object that originated the ReceivedCredit. - */ - transfer?: string; - - /** - * Open Enum. The type of Stripe Money Movement that originated the ReceivedCredit. - */ - type: BalanceTransfer.Type; - } +export namespace ReceivedCredit { + export interface BalanceTransfer { + /** + * The ID of the account that owns the source object originated the ReceivedCredit. + */ + from_account?: string; + + /** + * The ID of the outbound payment object that originated the ReceivedCredit. + */ + outbound_payment?: string; + + /** + * The ID of the outbound transfer object that originated the ReceivedCredit. + */ + outbound_transfer?: string; + + /** + * The ID of the payout object that originated the ReceivedCredit. + */ + payout_v1?: string; + + /** + * The ID of the v1 transfer object that originated the ReceivedCredit. + */ + transfer?: string; + + /** + * Open Enum. The type of Stripe Money Movement that originated the ReceivedCredit. + */ + type: BalanceTransfer.Type; + } - export interface BankTransfer { - /** - * Financial Address on which funds for ReceivedCredit were received. - */ - financial_address: string; - - /** - * Hash containing the transaction bank details. Present if `origin_type` field value is `gb_bank_account`. - */ - gb_bank_account?: BankTransfer.GbBankAccount; - - /** - * Open Enum. Indicates the origin of source from which external funds originated from. - */ - origin_type: BankTransfer.OriginType; - - /** - * Hash containing the transaction bank details. Present if `origin_type` field value is `sepa_bank_account`. - */ - sepa_bank_account?: BankTransfer.SepaBankAccount; - - /** - * Freeform string set by originator of the external ReceivedCredit. - */ - statement_descriptor?: string; - - /** - * Hash containing the transaction bank details. Present if `origin_type` field value is `us_bank_account`. - */ - us_bank_account?: BankTransfer.UsBankAccount; - } + export interface BankTransfer { + /** + * Financial Address on which funds for ReceivedCredit were received. + */ + financial_address: string; + + /** + * Hash containing the transaction bank details. Present if `origin_type` field value is `gb_bank_account`. + */ + gb_bank_account?: BankTransfer.GbBankAccount; + + /** + * Open Enum. Indicates the origin of source from which external funds originated from. + */ + origin_type: BankTransfer.OriginType; + + /** + * Hash containing the transaction bank details. Present if `origin_type` field value is `sepa_bank_account`. + */ + sepa_bank_account?: BankTransfer.SepaBankAccount; + + /** + * Freeform string set by originator of the external ReceivedCredit. + */ + statement_descriptor?: string; + + /** + * Hash containing the transaction bank details. Present if `origin_type` field value is `us_bank_account`. + */ + us_bank_account?: BankTransfer.UsBankAccount; + } - export type Status = 'failed' | 'pending' | 'returned' | 'succeeded'; + export type Status = 'failed' | 'pending' | 'returned' | 'succeeded'; - export interface StatusDetails { - /** - * Hash that provides additional information regarding the reason behind a `failed` ReceivedCredit status. It is only present when the ReceivedCredit status is `failed`. - */ - failed?: StatusDetails.Failed; + export interface StatusDetails { + /** + * Hash that provides additional information regarding the reason behind a `failed` ReceivedCredit status. It is only present when the ReceivedCredit status is `failed`. + */ + failed?: StatusDetails.Failed; - /** - * Hash that provides additional information regarding the reason behind a `returned` ReceivedCredit status. It is only present when the ReceivedCredit status is `returned`. - */ - returned?: StatusDetails.Returned; - } + /** + * Hash that provides additional information regarding the reason behind a `returned` ReceivedCredit status. It is only present when the ReceivedCredit status is `returned`. + */ + returned?: StatusDetails.Returned; + } - export interface StatusTransitions { - /** - * Timestamp describing when the ReceivedCredit was marked as `failed`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - failed_at?: string; - - /** - * Timestamp describing when the ReceivedCredit changed status to `returned`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - returned_at?: string; - - /** - * Timestamp describing when the ReceivedCredit was marked as `succeeded`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. - */ - succeeded_at?: string; - } + export interface StatusTransitions { + /** + * Timestamp describing when the ReceivedCredit was marked as `failed`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + failed_at?: string; + + /** + * Timestamp describing when the ReceivedCredit changed status to `returned`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + returned_at?: string; + + /** + * Timestamp describing when the ReceivedCredit was marked as `succeeded`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. + */ + succeeded_at?: string; + } - export type Type = - | 'balance_transfer' - | 'bank_transfer' - | 'external_credit'; - - export namespace BalanceTransfer { - export type Type = - | 'outbound_payment' - | 'outbound_transfer' - | 'transfer' - | 'payout_v1'; - } + export type Type = 'balance_transfer' | 'bank_transfer' | 'external_credit'; - export namespace BankTransfer { - export interface GbBankAccount { - /** - * The bank name the transfer was received from. - */ - account_holder_name?: string; - - /** - * The bank name the transfer was received from. - */ - bank_name?: string; - - /** - * The last 4 digits of the account number that originated the transfer. - */ - last4?: string; - - /** - * Open Enum. The money transmission network used to send funds for this ReceivedCredit. - */ - network: GbBankAccount.Network; - - /** - * The sort code of the account that originated the transfer. - */ - sort_code?: string; - } - - export type OriginType = - | 'gb_bank_account' - | 'sepa_bank_account' - | 'us_bank_account'; - - export interface SepaBankAccount { - /** - * The account holder name of the bank account the transfer was received from. - */ - account_holder_name?: string; - - /** - * The bank name the transfer was received from. - */ - bank_name?: string; - - /** - * The BIC of the SEPA account. - */ - bic?: string; - - /** - * The origination country of the bank transfer. - */ - country?: string; - - /** - * The IBAN that originated the transfer. - */ - iban?: string; - - /** - * The money transmission network used to send funds for this ReceivedCredit. - */ - network: 'sepa_credit_transfer'; - } - - export interface UsBankAccount { - /** - * The bank name the transfer was received from. - */ - bank_name?: string; - - /** - * The last 4 digits of the account number that originated the transfer. - */ - last4?: string; - - /** - * Open Enum. The money transmission network used to send funds for this ReceivedCredit. - */ - network: UsBankAccount.Network; - - /** - * The routing number of the account that originated the transfer. - */ - routing_number?: string; - } - - export namespace GbBankAccount { - export type Network = 'chaps' | 'fps'; - } - - export namespace UsBankAccount { - export type Network = 'ach' | 'rtp' | 'us_domestic_wire'; - } - } + export namespace BalanceTransfer { + export type Type = + | 'outbound_payment' + | 'outbound_transfer' + | 'transfer' + | 'payout_v1'; + } - export namespace StatusDetails { - export interface Failed { - /** - * Open Enum. The `failed` status reason. - */ - reason: Failed.Reason; - } - - export interface Returned { - /** - * Open Enum. The `returned` status reason. - */ - reason: 'originator_initiated_reversal'; - } - - export namespace Failed { - export type Reason = - | 'capability_inactive' - | 'currency_unsupported_on_financial_address' - | 'financial_address_inactive' - | 'stripe_rejected'; - } - } + export namespace BankTransfer { + export interface GbBankAccount { + /** + * The bank name the transfer was received from. + */ + account_holder_name?: string; + + /** + * The bank name the transfer was received from. + */ + bank_name?: string; + + /** + * The last 4 digits of the account number that originated the transfer. + */ + last4?: string; + + /** + * Open Enum. The money transmission network used to send funds for this ReceivedCredit. + */ + network: GbBankAccount.Network; + + /** + * The sort code of the account that originated the transfer. + */ + sort_code?: string; + } + + export type OriginType = + | 'gb_bank_account' + | 'sepa_bank_account' + | 'us_bank_account'; + + export interface SepaBankAccount { + /** + * The account holder name of the bank account the transfer was received from. + */ + account_holder_name?: string; + + /** + * The bank name the transfer was received from. + */ + bank_name?: string; + + /** + * The BIC of the SEPA account. + */ + bic?: string; + + /** + * The origination country of the bank transfer. + */ + country?: string; + + /** + * The IBAN that originated the transfer. + */ + iban?: string; + + /** + * The money transmission network used to send funds for this ReceivedCredit. + */ + network: 'sepa_credit_transfer'; + } + + export interface UsBankAccount { + /** + * The bank name the transfer was received from. + */ + bank_name?: string; + + /** + * The last 4 digits of the account number that originated the transfer. + */ + last4?: string; + + /** + * Open Enum. The money transmission network used to send funds for this ReceivedCredit. + */ + network: UsBankAccount.Network; + + /** + * The routing number of the account that originated the transfer. + */ + routing_number?: string; + } + + export namespace GbBankAccount { + export type Network = 'chaps' | 'fps'; + } + + export namespace UsBankAccount { + export type Network = 'ach' | 'rtp' | 'us_domestic_wire'; + } + } + + export namespace StatusDetails { + export interface Failed { + /** + * Open Enum. The `failed` status reason. + */ + reason: Failed.Reason; + } + + export interface Returned { + /** + * Open Enum. The `returned` status reason. + */ + reason: 'originator_initiated_reversal'; + } + + export namespace Failed { + export type Reason = + | 'capability_inactive' + | 'currency_unsupported_on_financial_address' + | 'financial_address_inactive' + | 'stripe_rejected'; } } } diff --git a/src/resources/V2/MoneyManagement/ReceivedDebits.ts b/src/resources/V2/MoneyManagement/ReceivedDebits.ts index 02c0ddc462..6ca5494553 100644 --- a/src/resources/V2/MoneyManagement/ReceivedDebits.ts +++ b/src/resources/V2/MoneyManagement/ReceivedDebits.ts @@ -57,7 +57,7 @@ export interface ReceivedDebit { /** * This object stores details about the originating banking transaction that resulted in the ReceivedDebit. Present if `type` field value is `bank_transfer`. */ - bank_transfer?: V2.MoneyManagement.ReceivedDebit.BankTransfer; + bank_transfer?: ReceivedDebit.BankTransfer; /** * The time at which the ReceivedDebit was created. @@ -88,119 +88,115 @@ export interface ReceivedDebit { /** * Open Enum. The status of the ReceivedDebit. */ - status: V2.MoneyManagement.ReceivedDebit.Status; + status: ReceivedDebit.Status; /** * Detailed information about the status of the ReceivedDebit. */ - status_details?: V2.MoneyManagement.ReceivedDebit.StatusDetails; + status_details?: ReceivedDebit.StatusDetails; /** * The time at which the ReceivedDebit transitioned to a particular status. */ - status_transitions?: V2.MoneyManagement.ReceivedDebit.StatusTransitions; + status_transitions?: ReceivedDebit.StatusTransitions; /** * Open Enum. The type of the ReceivedDebit. */ - type: V2.MoneyManagement.ReceivedDebit.Type; + type: ReceivedDebit.Type; } -export namespace V2 { - export namespace MoneyManagement { - export namespace ReceivedDebit { - export interface BankTransfer { - /** - * The Financial Address that was debited. - */ - financial_address: string; - - /** - * Open Enum. The type of the payment method used to originate the debit. - */ - payment_method_type: 'us_bank_account'; - - /** - * The statement descriptor set by the originator of the debit. - */ - statement_descriptor?: string; - - /** - * The payment method used to originate the debit. - */ - us_bank_account: BankTransfer.UsBankAccount; - } +export namespace ReceivedDebit { + export interface BankTransfer { + /** + * The Financial Address that was debited. + */ + financial_address: string; + + /** + * Open Enum. The type of the payment method used to originate the debit. + */ + payment_method_type: 'us_bank_account'; + + /** + * The statement descriptor set by the originator of the debit. + */ + statement_descriptor?: string; + + /** + * The payment method used to originate the debit. + */ + us_bank_account: BankTransfer.UsBankAccount; + } - export type Status = - | 'canceled' - | 'failed' - | 'pending' - | 'returned' - | 'succeeded'; - - export interface StatusDetails { - /** - * Information that elaborates on the `failed` status of a ReceivedDebit. - * It is only present when the ReceivedDebit status is `failed`. - */ - failed: StatusDetails.Failed; - } + export type Status = + | 'canceled' + | 'failed' + | 'pending' + | 'returned' + | 'succeeded'; + + export interface StatusDetails { + /** + * Information that elaborates on the `failed` status of a ReceivedDebit. + * It is only present when the ReceivedDebit status is `failed`. + */ + failed: StatusDetails.Failed; + } - export interface StatusTransitions { - /** - * The time when the ReceivedDebit was marked as `canceled`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`. - */ - canceled_at?: string; - - /** - * The time when the ReceivedDebit was marked as `failed`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`. - */ - failed_at?: string; - - /** - * The time when the ReceivedDebit was marked as `succeeded`. - * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`. - */ - succeeded_at?: string; - } + export interface StatusTransitions { + /** + * The time when the ReceivedDebit was marked as `canceled`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`. + */ + canceled_at?: string; + + /** + * The time when the ReceivedDebit was marked as `failed`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`. + */ + failed_at?: string; + + /** + * The time when the ReceivedDebit was marked as `succeeded`. + * Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: `2022-09-18T13:22:18.123Z`. + */ + succeeded_at?: string; + } - export type Type = 'bank_transfer' | 'external_debit'; - - export namespace BankTransfer { - export interface UsBankAccount { - /** - * The name of the bank the debit originated from. - */ - bank_name?: string; - - /** - * Open Enum. The bank network the debit was originated on. - */ - network: 'ach'; - - /** - * The routing number of the bank that originated the debit. - */ - routing_number?: string; - } - } + export type Type = 'bank_transfer' | 'external_debit'; - export namespace StatusDetails { - export interface Failed { - /** - * Open Enum. The reason for the failure of the ReceivedDebit. - */ - reason: Failed.Reason; - } - - export namespace Failed { - export type Reason = - | 'financial_address_inactive' - | 'insufficient_funds' - | 'stripe_rejected'; - } - } + export namespace BankTransfer { + export interface UsBankAccount { + /** + * The name of the bank the debit originated from. + */ + bank_name?: string; + + /** + * Open Enum. The bank network the debit was originated on. + */ + network: 'ach'; + + /** + * The routing number of the bank that originated the debit. + */ + routing_number?: string; + } + } + + export namespace StatusDetails { + export interface Failed { + /** + * Open Enum. The reason for the failure of the ReceivedDebit. + */ + reason: Failed.Reason; + } + + export namespace Failed { + export type Reason = + | 'financial_address_inactive' + | 'insufficient_funds' + | 'stripe_rejected'; } } } diff --git a/src/resources/V2/MoneyManagement/TransactionEntries.ts b/src/resources/V2/MoneyManagement/TransactionEntries.ts index a57a918b75..aac5f1ce02 100644 --- a/src/resources/V2/MoneyManagement/TransactionEntries.ts +++ b/src/resources/V2/MoneyManagement/TransactionEntries.ts @@ -52,7 +52,7 @@ export interface TransactionEntry { /** * The delta to the FinancialAccount's balance. */ - balance_impact: V2.MoneyManagement.TransactionEntry.BalanceImpact; + balance_impact: TransactionEntry.BalanceImpact; /** * Time at which the object was created. @@ -77,121 +77,117 @@ export interface TransactionEntry { /** * Details copied from the transaction that this TransactionEntry belongs to. */ - transaction_details: V2.MoneyManagement.TransactionEntry.TransactionDetails; + transaction_details: TransactionEntry.TransactionDetails; } -export namespace V2 { - export namespace MoneyManagement { - export namespace TransactionEntry { - export interface BalanceImpact { - /** - * Impact to the available balance. - */ - available: V2Amount; - - /** - * Impact to the inbound_pending balance. - */ - inbound_pending: V2Amount; - - /** - * Impact to the outbound_pending balance. - */ - outbound_pending: V2Amount; - } +export namespace TransactionEntry { + export interface BalanceImpact { + /** + * Impact to the available balance. + */ + available: V2Amount; + + /** + * Impact to the inbound_pending balance. + */ + inbound_pending: V2Amount; + + /** + * Impact to the outbound_pending balance. + */ + outbound_pending: V2Amount; + } - export interface TransactionDetails { - /** - * Closed Enum for now, and will be turned into an Open Enum soon. A descriptive category used to classify the Transaction. - */ - category: TransactionDetails.Category; - - /** - * Indicates the FinancialAccount affected by this Transaction. - */ - financial_account: string; - - /** - * Details about the Flow object that created the Transaction. - */ - flow?: TransactionDetails.Flow; - } + export interface TransactionDetails { + /** + * Closed Enum for now, and will be turned into an Open Enum soon. A descriptive category used to classify the Transaction. + */ + category: TransactionDetails.Category; + + /** + * Indicates the FinancialAccount affected by this Transaction. + */ + financial_account: string; + + /** + * Details about the Flow object that created the Transaction. + */ + flow?: TransactionDetails.Flow; + } - export namespace TransactionDetails { - export type Category = - | 'adjustment' - | 'currency_conversion' - | 'inbound_transfer' - | 'inbound_transfer_reversal' - | 'outbound_payment' - | 'outbound_payment_reversal' - | 'outbound_transfer' - | 'outbound_transfer_reversal' - | 'received_credit' - | 'received_credit_reversal' - | 'received_debit' - | 'received_debit_reversal' - | 'stripe_fee' - | 'stripe_fee_tax'; - - export interface Flow { - /** - * If applicable, the ID of the Adjustment that created this Transaction. - */ - adjustment?: string; - - /** - * In the future, this will be the ID of the currency conversion that created this Transaction. For now, this field is always null. - */ - currency_conversion?: string; - - /** - * If applicable, the ID of the FeeTransaction that created this Transaction. - */ - fee_transaction?: string; - - /** - * If applicable, the ID of the InboundTransfer that created this Transaction. - */ - inbound_transfer?: string; - - /** - * If applicable, the ID of the OutboundPayment that created this Transaction. - */ - outbound_payment?: string; - - /** - * If applicable, the ID of the OutboundTransfer that created this Transaction. - */ - outbound_transfer?: string; - - /** - * If applicable, the ID of the ReceivedCredit that created this Transaction. - */ - received_credit?: string; - - /** - * If applicable, the ID of the ReceivedDebit that created this Transaction. - */ - received_debit?: string; - - /** - * Open Enum. Type of the flow that created the Transaction. The field matching this value will contain the ID of the flow. - */ - type: Flow.Type; - } - - export namespace Flow { - export type Type = - | 'adjustment' - | 'currency_conversion' - | 'fee_transaction' - | 'inbound_transfer' - | 'outbound_payment' - | 'outbound_transfer' - | 'received_credit' - | 'received_debit'; - } - } + export namespace TransactionDetails { + export type Category = + | 'adjustment' + | 'currency_conversion' + | 'inbound_transfer' + | 'inbound_transfer_reversal' + | 'outbound_payment' + | 'outbound_payment_reversal' + | 'outbound_transfer' + | 'outbound_transfer_reversal' + | 'received_credit' + | 'received_credit_reversal' + | 'received_debit' + | 'received_debit_reversal' + | 'stripe_fee' + | 'stripe_fee_tax'; + + export interface Flow { + /** + * If applicable, the ID of the Adjustment that created this Transaction. + */ + adjustment?: string; + + /** + * In the future, this will be the ID of the currency conversion that created this Transaction. For now, this field is always null. + */ + currency_conversion?: string; + + /** + * If applicable, the ID of the FeeTransaction that created this Transaction. + */ + fee_transaction?: string; + + /** + * If applicable, the ID of the InboundTransfer that created this Transaction. + */ + inbound_transfer?: string; + + /** + * If applicable, the ID of the OutboundPayment that created this Transaction. + */ + outbound_payment?: string; + + /** + * If applicable, the ID of the OutboundTransfer that created this Transaction. + */ + outbound_transfer?: string; + + /** + * If applicable, the ID of the ReceivedCredit that created this Transaction. + */ + received_credit?: string; + + /** + * If applicable, the ID of the ReceivedDebit that created this Transaction. + */ + received_debit?: string; + + /** + * Open Enum. Type of the flow that created the Transaction. The field matching this value will contain the ID of the flow. + */ + type: Flow.Type; + } + + export namespace Flow { + export type Type = + | 'adjustment' + | 'currency_conversion' + | 'fee_transaction' + | 'inbound_transfer' + | 'outbound_payment' + | 'outbound_transfer' + | 'received_credit' + | 'received_debit'; } } } diff --git a/src/resources/V2/MoneyManagement/Transactions.ts b/src/resources/V2/MoneyManagement/Transactions.ts index 060db45290..674f149f13 100644 --- a/src/resources/V2/MoneyManagement/Transactions.ts +++ b/src/resources/V2/MoneyManagement/Transactions.ts @@ -58,17 +58,17 @@ export interface Transaction { * The delta to the FinancialAccount's balance. The balance_impact for the Transaction is equal to sum of its * TransactionEntries that have `effective_at`s in the past. */ - balance_impact: V2.MoneyManagement.Transaction.BalanceImpact; + balance_impact: Transaction.BalanceImpact; /** * Open Enum. A descriptive category used to classify the Transaction. */ - category: V2.MoneyManagement.Transaction.Category; + category: Transaction.Category; /** * Counterparty to this Transaction. */ - counterparty?: V2.MoneyManagement.Transaction.Counterparty; + counterparty?: Transaction.Counterparty; /** * Time at which the object was created. Represented as a RFC 3339 date & time UTC value in millisecond precision, for example: 2022-09-18T13:22:18.123Z. @@ -89,7 +89,7 @@ export interface Transaction { /** * Details about the Flow object that created the Transaction. */ - flow?: V2.MoneyManagement.Transaction.Flow; + flow?: Transaction.Flow; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -103,129 +103,125 @@ export interface Transaction { * A Transaction is `void` if there is no balance impact. * `posted` and `void` are terminal states, and no additional entries will be added to the Transaction. */ - status: V2.MoneyManagement.Transaction.Status; + status: Transaction.Status; /** * Timestamps for when the Transaction transitioned to a particular status. */ - status_transitions: V2.MoneyManagement.Transaction.StatusTransitions; + status_transitions: Transaction.StatusTransitions; } -export namespace V2 { - export namespace MoneyManagement { - export namespace Transaction { - export interface BalanceImpact { - /** - * Impact to the available balance. - */ - available: V2Amount; - - /** - * Impact to the inbound_pending balance. - */ - inbound_pending: V2Amount; - - /** - * Impact to the outbound_pending balance. - */ - outbound_pending: V2Amount; - } +export namespace Transaction { + export interface BalanceImpact { + /** + * Impact to the available balance. + */ + available: V2Amount; + + /** + * Impact to the inbound_pending balance. + */ + inbound_pending: V2Amount; + + /** + * Impact to the outbound_pending balance. + */ + outbound_pending: V2Amount; + } - export type Category = - | 'adjustment' - | 'currency_conversion' - | 'inbound_transfer' - | 'inbound_transfer_reversal' - | 'outbound_payment' - | 'outbound_payment_reversal' - | 'outbound_transfer' - | 'outbound_transfer_reversal' - | 'received_credit' - | 'received_credit_reversal' - | 'received_debit' - | 'received_debit_reversal' - | 'stripe_fee' - | 'stripe_fee_tax'; - - export interface Counterparty { - /** - * Name of the counterparty. - */ - name?: string; - } + export type Category = + | 'adjustment' + | 'currency_conversion' + | 'inbound_transfer' + | 'inbound_transfer_reversal' + | 'outbound_payment' + | 'outbound_payment_reversal' + | 'outbound_transfer' + | 'outbound_transfer_reversal' + | 'received_credit' + | 'received_credit_reversal' + | 'received_debit' + | 'received_debit_reversal' + | 'stripe_fee' + | 'stripe_fee_tax'; + + export interface Counterparty { + /** + * Name of the counterparty. + */ + name?: string; + } - export interface Flow { - /** - * If applicable, the ID of the Adjustment that created this Transaction. - */ - adjustment?: string; - - /** - * In the future, this will be the ID of the currency conversion that created this Transaction. For now, this field is always null. - */ - currency_conversion?: string; - - /** - * If applicable, the ID of the FeeTransaction that created this Transaction. - */ - fee_transaction?: string; - - /** - * If applicable, the ID of the InboundTransfer that created this Transaction. - */ - inbound_transfer?: string; - - /** - * If applicable, the ID of the OutboundPayment that created this Transaction. - */ - outbound_payment?: string; - - /** - * If applicable, the ID of the OutboundTransfer that created this Transaction. - */ - outbound_transfer?: string; - - /** - * If applicable, the ID of the ReceivedCredit that created this Transaction. - */ - received_credit?: string; - - /** - * If applicable, the ID of the ReceivedDebit that created this Transaction. - */ - received_debit?: string; - - /** - * Open Enum. Type of the flow that created the Transaction. The field matching this value will contain the ID of the flow. - */ - type: Flow.Type; - } + export interface Flow { + /** + * If applicable, the ID of the Adjustment that created this Transaction. + */ + adjustment?: string; + + /** + * In the future, this will be the ID of the currency conversion that created this Transaction. For now, this field is always null. + */ + currency_conversion?: string; + + /** + * If applicable, the ID of the FeeTransaction that created this Transaction. + */ + fee_transaction?: string; + + /** + * If applicable, the ID of the InboundTransfer that created this Transaction. + */ + inbound_transfer?: string; + + /** + * If applicable, the ID of the OutboundPayment that created this Transaction. + */ + outbound_payment?: string; + + /** + * If applicable, the ID of the OutboundTransfer that created this Transaction. + */ + outbound_transfer?: string; + + /** + * If applicable, the ID of the ReceivedCredit that created this Transaction. + */ + received_credit?: string; + + /** + * If applicable, the ID of the ReceivedDebit that created this Transaction. + */ + received_debit?: string; + + /** + * Open Enum. Type of the flow that created the Transaction. The field matching this value will contain the ID of the flow. + */ + type: Flow.Type; + } - export type Status = 'pending' | 'posted' | 'void'; + export type Status = 'pending' | 'posted' | 'void'; - export interface StatusTransitions { - /** - * The time at which the Transaction became posted. Only present if status == posted. - */ - posted_at?: string; + export interface StatusTransitions { + /** + * The time at which the Transaction became posted. Only present if status == posted. + */ + posted_at?: string; - /** - * The time at which the Transaction became void. Only present if status == void. - */ - void_at?: string; - } + /** + * The time at which the Transaction became void. Only present if status == void. + */ + void_at?: string; + } - export namespace Flow { - export type Type = - | 'adjustment' - | 'currency_conversion' - | 'fee_transaction' - | 'inbound_transfer' - | 'outbound_payment' - | 'outbound_transfer' - | 'received_credit' - | 'received_debit'; - } - } + export namespace Flow { + export type Type = + | 'adjustment' + | 'currency_conversion' + | 'fee_transaction' + | 'inbound_transfer' + | 'outbound_payment' + | 'outbound_transfer' + | 'received_credit' + | 'received_debit'; } } export namespace V2 { diff --git a/src/resources/V2/Network/BusinessProfiles.ts b/src/resources/V2/Network/BusinessProfiles.ts index ce5dbebbca..710ba63ff9 100644 --- a/src/resources/V2/Network/BusinessProfiles.ts +++ b/src/resources/V2/Network/BusinessProfiles.ts @@ -48,7 +48,7 @@ export interface BusinessProfile { /** * Branding data for the business. */ - branding?: V2.Network.BusinessProfile.Branding; + branding?: BusinessProfile.Branding; /** * The description of the business. @@ -75,46 +75,42 @@ export interface BusinessProfile { */ username: string; } -export namespace V2 { - export namespace Network { - export namespace BusinessProfile { - export interface Branding { - /** - * URL of the icon for the business. The image will be square and at least 128px x 128px. - */ - icon?: Branding.Icon; +export namespace BusinessProfile { + export interface Branding { + /** + * URL of the icon for the business. The image will be square and at least 128px x 128px. + */ + icon?: Branding.Icon; - /** - * URL of the logo for the business. The image will be at least 128px x 128px. - */ - logo?: Branding.Logo; + /** + * URL of the logo for the business. The image will be at least 128px x 128px. + */ + logo?: Branding.Logo; - /** - * A CSS hex color value representing the primary branding color for this business. - */ - primary_color?: string; + /** + * A CSS hex color value representing the primary branding color for this business. + */ + primary_color?: string; - /** - * A CSS hex color value representing the secondary branding color for this business. - */ - secondary_color?: string; - } + /** + * A CSS hex color value representing the secondary branding color for this business. + */ + secondary_color?: string; + } - export namespace Branding { - export interface Icon { - /** - * The URL of the image in its original size. - */ - original: string; - } + export namespace Branding { + export interface Icon { + /** + * The URL of the image in its original size. + */ + original: string; + } - export interface Logo { - /** - * The URL of the image in its original size. - */ - original: string; - } - } + export interface Logo { + /** + * The URL of the image in its original size. + */ + original: string; } } } diff --git a/src/resources/V2/OrchestratedCommerce/Agreements.ts b/src/resources/V2/OrchestratedCommerce/Agreements.ts index 38c6a197d7..ce09433bac 100644 --- a/src/resources/V2/OrchestratedCommerce/Agreements.ts +++ b/src/resources/V2/OrchestratedCommerce/Agreements.ts @@ -102,7 +102,7 @@ export interface Agreement { /** * The party that initiated the agreement. */ - initiated_by: V2.OrchestratedCommerce.Agreement.InitiatedBy; + initiated_by: Agreement.InitiatedBy; /** * Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. @@ -112,78 +112,74 @@ export interface Agreement { /** * Details about the orchestrator. */ - orchestrator_details: V2.OrchestratedCommerce.Agreement.OrchestratorDetails; + orchestrator_details: Agreement.OrchestratorDetails; /** * Details about the seller. */ - seller_details: V2.OrchestratedCommerce.Agreement.SellerDetails; + seller_details: Agreement.SellerDetails; /** * The current status of the agreement. */ - status: V2.OrchestratedCommerce.Agreement.Status; + status: Agreement.Status; /** * Timestamps of key status transitions for the agreement. */ - status_transitions: V2.OrchestratedCommerce.Agreement.StatusTransitions; + status_transitions: Agreement.StatusTransitions; /** * The party that terminated the agreement, if applicable. */ - terminated_by?: V2.OrchestratedCommerce.Agreement.TerminatedBy; + terminated_by?: Agreement.TerminatedBy; } -export namespace V2 { - export namespace OrchestratedCommerce { - export namespace Agreement { - export type InitiatedBy = 'orchestrator' | 'seller'; - - export interface OrchestratorDetails { - /** - * The name of the orchestrator. This can be the name of the agent or the name of the business. - */ - name: string; - - /** - * The Network ID of the orchestrator. - */ - network_business_profile: string; - } - - export interface SellerDetails { - /** - * The Network ID of the seller. - */ - network_business_profile: string; - } +export namespace Agreement { + export type InitiatedBy = 'orchestrator' | 'seller'; + + export interface OrchestratorDetails { + /** + * The name of the orchestrator. This can be the name of the agent or the name of the business. + */ + name: string; + + /** + * The Network ID of the orchestrator. + */ + network_business_profile: string; + } - export type Status = - | 'confirmed' - | 'initiated' - | 'partially_confirmed' - | 'terminated'; - - export interface StatusTransitions { - /** - * The time at which the orchestrator confirmed the agreement. - */ - orchestrator_confirmed_at?: string; - - /** - * The time at which the seller confirmed the agreement. - */ - seller_confirmed_at?: string; - - /** - * The time at which the agreement was terminated. - */ - terminated_at?: string; - } + export interface SellerDetails { + /** + * The Network ID of the seller. + */ + network_business_profile: string; + } - export type TerminatedBy = 'orchestrator' | 'seller'; - } + export type Status = + | 'confirmed' + | 'initiated' + | 'partially_confirmed' + | 'terminated'; + + export interface StatusTransitions { + /** + * The time at which the orchestrator confirmed the agreement. + */ + orchestrator_confirmed_at?: string; + + /** + * The time at which the seller confirmed the agreement. + */ + seller_confirmed_at?: string; + + /** + * The time at which the agreement was terminated. + */ + terminated_at?: string; } + + export type TerminatedBy = 'orchestrator' | 'seller'; } export namespace V2 { export namespace OrchestratedCommerce { diff --git a/src/stripe.cjs.node.ts b/src/stripe.cjs.node.ts index 10e1a7cdcf..b051f036d6 100644 --- a/src/stripe.cjs.node.ts +++ b/src/stripe.cjs.node.ts @@ -1,15 +1,15 @@ import {NodePlatformFunctions} from './platform/NodePlatformFunctions.js'; -import {Stripe} from './stripe.core.js'; +import {Stripe as Stripe_} from './stripe.core.js'; import {StripeConfig} from './lib.js'; // Initialize the Stripe class with Node platform functions -Stripe.initialize(new NodePlatformFunctions()); +Stripe_.initialize(new NodePlatformFunctions()); // Callable constructor: supports both `new Stripe()` and `Stripe()` for CJS consumers. // typeof Stripe provides the construct signature and static members; the intersection // adds a call signature for backward compatibility. -type StripeCallableConstructor = typeof Stripe & { - (key: string, config?: StripeConfig): Stripe; +type StripeCallableConstructor = typeof Stripe_ & { + (key: string, config?: StripeConfig): Stripe_; }; // Function declaration merges with the ambient namespace below (CJS `import type` / nested types). @@ -18,23 +18,23 @@ const StripeConstructor: StripeCallableConstructor = (function( this: any, key: string, config?: StripeConfig -): Stripe { +): Stripe_ { // Support calling without `new` if (!(this instanceof StripeConstructor)) { - return new Stripe(key, config); + return new Stripe_(key, config); } - return new Stripe(key, config); + return new Stripe_(key, config); } as unknown) as StripeCallableConstructor; // Copy all static properties from Stripe to the wrapper -Object.setPrototypeOf(StripeConstructor, Stripe); -Object.setPrototypeOf(StripeConstructor.prototype, Stripe.prototype); +Object.setPrototypeOf(StripeConstructor, Stripe_); +Object.setPrototypeOf(StripeConstructor.prototype, Stripe_.prototype); // Copy static properties explicitly -for (const key of Object.getOwnPropertyNames(Stripe)) { +for (const key of Object.getOwnPropertyNames(Stripe_)) { if (key !== 'length' && key !== 'prototype' && key !== 'name') { Object.defineProperty(StripeConstructor, key, { - value: (Stripe as any)[key], + value: (Stripe_ as any)[key], writable: true, enumerable: true, configurable: true, @@ -46,3344 +46,20586 @@ for (const key of Object.getOwnPropertyNames(Stripe)) { // callable + construct signatures here (see https://github.com/stripe/stripe-node/issues/2683). // eslint-disable-next-line @typescript-eslint/no-empty-interface -interface StripeConstructor extends Stripe {} +interface StripeConstructor extends Stripe_ {} declare namespace StripeConstructor { export type Stripe = import('./stripe.core.js').Stripe; // StripeInterfaceCJSExports: The beginning of the section generated from our OpenAPI spec - export type Account = Stripe.Account; - export type DeletedAccount = Stripe.DeletedAccount; - export type AccountCreateParams = Stripe.AccountCreateParams; - export type AccountRetrieveParams = Stripe.AccountRetrieveParams; - export type AccountUpdateParams = Stripe.AccountUpdateParams; - export type AccountListParams = Stripe.AccountListParams; - export type AccountDeleteParams = Stripe.AccountDeleteParams; - export type AccountCreateExternalAccountParams = Stripe.AccountCreateExternalAccountParams; - export type AccountCreateLoginLinkParams = Stripe.AccountCreateLoginLinkParams; - export type AccountCreatePersonParams = Stripe.AccountCreatePersonParams; - export type AccountDeleteExternalAccountParams = Stripe.AccountDeleteExternalAccountParams; - export type AccountDeletePersonParams = Stripe.AccountDeletePersonParams; - export type AccountListCapabilitiesParams = Stripe.AccountListCapabilitiesParams; - export type AccountListExternalAccountsParams = Stripe.AccountListExternalAccountsParams; - export type AccountListPersonsParams = Stripe.AccountListPersonsParams; - export type AccountRejectParams = Stripe.AccountRejectParams; - export type AccountRetrieveCurrentParams = Stripe.AccountRetrieveCurrentParams; - export type AccountRetrieveCapabilityParams = Stripe.AccountRetrieveCapabilityParams; - export type AccountRetrieveExternalAccountParams = Stripe.AccountRetrieveExternalAccountParams; - export type AccountRetrievePersonParams = Stripe.AccountRetrievePersonParams; - export type AccountSerializeBatchUpdateParams = Stripe.AccountSerializeBatchUpdateParams; - export type AccountUpdateCapabilityParams = Stripe.AccountUpdateCapabilityParams; - export type AccountUpdateExternalAccountParams = Stripe.AccountUpdateExternalAccountParams; - export type AccountUpdatePersonParams = Stripe.AccountUpdatePersonParams; - export type AccountResource = Stripe.AccountResource; - export type AccountLink = Stripe.AccountLink; - export type AccountLinkCreateParams = Stripe.AccountLinkCreateParams; - export type AccountLinkResource = Stripe.AccountLinkResource; - export type AccountNotice = Stripe.AccountNotice; - export type AccountNoticeRetrieveParams = Stripe.AccountNoticeRetrieveParams; - export type AccountNoticeUpdateParams = Stripe.AccountNoticeUpdateParams; - export type AccountNoticeListParams = Stripe.AccountNoticeListParams; - export type AccountNoticeResource = Stripe.AccountNoticeResource; - export type AccountSession = Stripe.AccountSession; - export type AccountSessionCreateParams = Stripe.AccountSessionCreateParams; - export type AccountSessionResource = Stripe.AccountSessionResource; - export type ApplePayDomain = Stripe.ApplePayDomain; - export type DeletedApplePayDomain = Stripe.DeletedApplePayDomain; - export type ApplePayDomainCreateParams = Stripe.ApplePayDomainCreateParams; - export type ApplePayDomainRetrieveParams = Stripe.ApplePayDomainRetrieveParams; - export type ApplePayDomainListParams = Stripe.ApplePayDomainListParams; - export type ApplePayDomainDeleteParams = Stripe.ApplePayDomainDeleteParams; - export type ApplePayDomainResource = Stripe.ApplePayDomainResource; - export type ApplicationFee = Stripe.ApplicationFee; - export type ApplicationFeeRetrieveParams = Stripe.ApplicationFeeRetrieveParams; - export type ApplicationFeeListParams = Stripe.ApplicationFeeListParams; - export type ApplicationFeeCreateRefundParams = Stripe.ApplicationFeeCreateRefundParams; - export type ApplicationFeeListRefundsParams = Stripe.ApplicationFeeListRefundsParams; - export type ApplicationFeeRetrieveRefundParams = Stripe.ApplicationFeeRetrieveRefundParams; - export type ApplicationFeeUpdateRefundParams = Stripe.ApplicationFeeUpdateRefundParams; - export type ApplicationFeeResource = Stripe.ApplicationFeeResource; - export type Balance = Stripe.Balance; - export type BalanceRetrieveParams = Stripe.BalanceRetrieveParams; - export type BalanceResource = Stripe.BalanceResource; - export type BalanceSettings = Stripe.BalanceSettings; - export type BalanceSettingsRetrieveParams = Stripe.BalanceSettingsRetrieveParams; - export type BalanceSettingsUpdateParams = Stripe.BalanceSettingsUpdateParams; - export type BalanceSettingResource = Stripe.BalanceSettingResource; - export type BalanceTransaction = Stripe.BalanceTransaction; - export type BalanceTransactionRetrieveParams = Stripe.BalanceTransactionRetrieveParams; - export type BalanceTransactionListParams = Stripe.BalanceTransactionListParams; - export type BalanceTransactionResource = Stripe.BalanceTransactionResource; - export type Charge = Stripe.Charge; - export type ChargeCreateParams = Stripe.ChargeCreateParams; - export type ChargeRetrieveParams = Stripe.ChargeRetrieveParams; - export type ChargeUpdateParams = Stripe.ChargeUpdateParams; - export type ChargeListParams = Stripe.ChargeListParams; - export type ChargeCaptureParams = Stripe.ChargeCaptureParams; - export type ChargeSearchParams = Stripe.ChargeSearchParams; - export type ChargeResource = Stripe.ChargeResource; - export type ConfirmationToken = Stripe.ConfirmationToken; - export type ConfirmationTokenRetrieveParams = Stripe.ConfirmationTokenRetrieveParams; - export type ConfirmationTokenResource = Stripe.ConfirmationTokenResource; - export type CountrySpec = Stripe.CountrySpec; - export type CountrySpecRetrieveParams = Stripe.CountrySpecRetrieveParams; - export type CountrySpecListParams = Stripe.CountrySpecListParams; - export type CountrySpecResource = Stripe.CountrySpecResource; - export type Coupon = Stripe.Coupon; - export type DeletedCoupon = Stripe.DeletedCoupon; - export type CouponCreateParams = Stripe.CouponCreateParams; - export type CouponRetrieveParams = Stripe.CouponRetrieveParams; - export type CouponUpdateParams = Stripe.CouponUpdateParams; - export type CouponListParams = Stripe.CouponListParams; - export type CouponDeleteParams = Stripe.CouponDeleteParams; - export type CouponSerializeBatchCreateParams = Stripe.CouponSerializeBatchCreateParams; - export type CouponResource = Stripe.CouponResource; - export type CreditNote = Stripe.CreditNote; - export type CreditNoteCreateParams = Stripe.CreditNoteCreateParams; - export type CreditNoteRetrieveParams = Stripe.CreditNoteRetrieveParams; - export type CreditNoteUpdateParams = Stripe.CreditNoteUpdateParams; - export type CreditNoteListParams = Stripe.CreditNoteListParams; - export type CreditNoteListLineItemsParams = Stripe.CreditNoteListLineItemsParams; - export type CreditNoteListPreviewLineItemsParams = Stripe.CreditNoteListPreviewLineItemsParams; - export type CreditNotePreviewParams = Stripe.CreditNotePreviewParams; - export type CreditNoteVoidCreditNoteParams = Stripe.CreditNoteVoidCreditNoteParams; - export type CreditNoteResource = Stripe.CreditNoteResource; - export type Customer = Stripe.Customer; - export type DeletedCustomer = Stripe.DeletedCustomer; - export type CustomerCreateParams = Stripe.CustomerCreateParams; - export type CustomerRetrieveParams = Stripe.CustomerRetrieveParams; - export type CustomerUpdateParams = Stripe.CustomerUpdateParams; - export type CustomerListParams = Stripe.CustomerListParams; - export type CustomerDeleteParams = Stripe.CustomerDeleteParams; - export type CustomerCreateBalanceTransactionParams = Stripe.CustomerCreateBalanceTransactionParams; - export type CustomerCreateFundingInstructionsParams = Stripe.CustomerCreateFundingInstructionsParams; - export type CustomerCreateSourceParams = Stripe.CustomerCreateSourceParams; - export type CustomerCreateTaxIdParams = Stripe.CustomerCreateTaxIdParams; - export type CustomerDeleteDiscountParams = Stripe.CustomerDeleteDiscountParams; - export type CustomerDeleteSourceParams = Stripe.CustomerDeleteSourceParams; - export type CustomerDeleteTaxIdParams = Stripe.CustomerDeleteTaxIdParams; - export type CustomerListBalanceTransactionsParams = Stripe.CustomerListBalanceTransactionsParams; - export type CustomerListCashBalanceTransactionsParams = Stripe.CustomerListCashBalanceTransactionsParams; - export type CustomerListPaymentMethodsParams = Stripe.CustomerListPaymentMethodsParams; - export type CustomerListSourcesParams = Stripe.CustomerListSourcesParams; - export type CustomerListTaxIdsParams = Stripe.CustomerListTaxIdsParams; - export type CustomerRetrieveBalanceTransactionParams = Stripe.CustomerRetrieveBalanceTransactionParams; - export type CustomerRetrieveCashBalanceParams = Stripe.CustomerRetrieveCashBalanceParams; - export type CustomerRetrieveCashBalanceTransactionParams = Stripe.CustomerRetrieveCashBalanceTransactionParams; - export type CustomerRetrievePaymentMethodParams = Stripe.CustomerRetrievePaymentMethodParams; - export type CustomerRetrieveSourceParams = Stripe.CustomerRetrieveSourceParams; - export type CustomerRetrieveTaxIdParams = Stripe.CustomerRetrieveTaxIdParams; - export type CustomerSearchParams = Stripe.CustomerSearchParams; - export type CustomerSerializeBatchUpdateParams = Stripe.CustomerSerializeBatchUpdateParams; - export type CustomerUpdateBalanceTransactionParams = Stripe.CustomerUpdateBalanceTransactionParams; - export type CustomerUpdateCashBalanceParams = Stripe.CustomerUpdateCashBalanceParams; - export type CustomerUpdateSourceParams = Stripe.CustomerUpdateSourceParams; - export type CustomerVerifySourceParams = Stripe.CustomerVerifySourceParams; - export type CustomerResource = Stripe.CustomerResource; - export type CustomerSession = Stripe.CustomerSession; - export type CustomerSessionCreateParams = Stripe.CustomerSessionCreateParams; - export type CustomerSessionResource = Stripe.CustomerSessionResource; - export type Dispute = Stripe.Dispute; - export type DisputeRetrieveParams = Stripe.DisputeRetrieveParams; - export type DisputeUpdateParams = Stripe.DisputeUpdateParams; - export type DisputeListParams = Stripe.DisputeListParams; - export type DisputeCloseParams = Stripe.DisputeCloseParams; - export type DisputeResource = Stripe.DisputeResource; - export type EphemeralKey = Stripe.EphemeralKey; - export type EphemeralKeyCreateParams = Stripe.EphemeralKeyCreateParams; - export type EphemeralKeyDeleteParams = Stripe.EphemeralKeyDeleteParams; - export type EphemeralKeyResource = Stripe.EphemeralKeyResource; - export type Event = Stripe.Event; - export type EventBase = Stripe.EventBase; - export type EventRetrieveParams = Stripe.EventRetrieveParams; - export type EventListParams = Stripe.EventListParams; - export type EventResource = Stripe.EventResource; - export type ExchangeRate = Stripe.ExchangeRate; - export type ExchangeRateRetrieveParams = Stripe.ExchangeRateRetrieveParams; - export type ExchangeRateListParams = Stripe.ExchangeRateListParams; - export type ExchangeRateResource = Stripe.ExchangeRateResource; - export type ExternalAccount = Stripe.ExternalAccount; - export type DeletedExternalAccount = Stripe.DeletedExternalAccount; - export type ExternalAccountCreateParams = Stripe.ExternalAccountCreateParams; - export type ExternalAccountRetrieveParams = Stripe.ExternalAccountRetrieveParams; - export type ExternalAccountUpdateParams = Stripe.ExternalAccountUpdateParams; - export type ExternalAccountListParams = Stripe.ExternalAccountListParams; - export type ExternalAccountDeleteParams = Stripe.ExternalAccountDeleteParams; - export type ExternalAccountResource = Stripe.ExternalAccountResource; - export type File = Stripe.File; - export type FileCreateParams = Stripe.FileCreateParams; - export type FileRetrieveParams = Stripe.FileRetrieveParams; - export type FileListParams = Stripe.FileListParams; - export type FileResource = Stripe.FileResource; - export type FileLink = Stripe.FileLink; - export type FileLinkCreateParams = Stripe.FileLinkCreateParams; - export type FileLinkRetrieveParams = Stripe.FileLinkRetrieveParams; - export type FileLinkUpdateParams = Stripe.FileLinkUpdateParams; - export type FileLinkListParams = Stripe.FileLinkListParams; - export type FileLinkResource = Stripe.FileLinkResource; - export type FxQuote = Stripe.FxQuote; - export type FxQuoteCreateParams = Stripe.FxQuoteCreateParams; - export type FxQuoteRetrieveParams = Stripe.FxQuoteRetrieveParams; - export type FxQuoteListParams = Stripe.FxQuoteListParams; - export type FxQuoteResource = Stripe.FxQuoteResource; - export type Invoice = Stripe.Invoice; - export type DeletedInvoice = Stripe.DeletedInvoice; - export type InvoiceCreateParams = Stripe.InvoiceCreateParams; - export type InvoiceRetrieveParams = Stripe.InvoiceRetrieveParams; - export type InvoiceUpdateParams = Stripe.InvoiceUpdateParams; - export type InvoiceListParams = Stripe.InvoiceListParams; - export type InvoiceDeleteParams = Stripe.InvoiceDeleteParams; - export type InvoiceAddLinesParams = Stripe.InvoiceAddLinesParams; - export type InvoiceAttachPaymentParams = Stripe.InvoiceAttachPaymentParams; - export type InvoiceCreatePreviewParams = Stripe.InvoiceCreatePreviewParams; - export type InvoiceDetachPaymentParams = Stripe.InvoiceDetachPaymentParams; - export type InvoiceFinalizeInvoiceParams = Stripe.InvoiceFinalizeInvoiceParams; - export type InvoiceListLineItemsParams = Stripe.InvoiceListLineItemsParams; - export type InvoiceMarkUncollectibleParams = Stripe.InvoiceMarkUncollectibleParams; - export type InvoicePayParams = Stripe.InvoicePayParams; - export type InvoiceRemoveLinesParams = Stripe.InvoiceRemoveLinesParams; - export type InvoiceSearchParams = Stripe.InvoiceSearchParams; - export type InvoiceSendInvoiceParams = Stripe.InvoiceSendInvoiceParams; - export type InvoiceUpdateLinesParams = Stripe.InvoiceUpdateLinesParams; - export type InvoiceUpdateLineItemParams = Stripe.InvoiceUpdateLineItemParams; - export type InvoiceVoidInvoiceParams = Stripe.InvoiceVoidInvoiceParams; - export type InvoiceResource = Stripe.InvoiceResource; - export type InvoiceItem = Stripe.InvoiceItem; - export type DeletedInvoiceItem = Stripe.DeletedInvoiceItem; - export type InvoiceItemCreateParams = Stripe.InvoiceItemCreateParams; - export type InvoiceItemRetrieveParams = Stripe.InvoiceItemRetrieveParams; - export type InvoiceItemUpdateParams = Stripe.InvoiceItemUpdateParams; - export type InvoiceItemListParams = Stripe.InvoiceItemListParams; - export type InvoiceItemDeleteParams = Stripe.InvoiceItemDeleteParams; - export type InvoiceItemResource = Stripe.InvoiceItemResource; - export type InvoicePayment = Stripe.InvoicePayment; - export type InvoicePaymentRetrieveParams = Stripe.InvoicePaymentRetrieveParams; - export type InvoicePaymentListParams = Stripe.InvoicePaymentListParams; - export type InvoicePaymentResource = Stripe.InvoicePaymentResource; - export type InvoiceRenderingTemplate = Stripe.InvoiceRenderingTemplate; - export type InvoiceRenderingTemplateRetrieveParams = Stripe.InvoiceRenderingTemplateRetrieveParams; - export type InvoiceRenderingTemplateListParams = Stripe.InvoiceRenderingTemplateListParams; - export type InvoiceRenderingTemplateArchiveParams = Stripe.InvoiceRenderingTemplateArchiveParams; - export type InvoiceRenderingTemplateUnarchiveParams = Stripe.InvoiceRenderingTemplateUnarchiveParams; - export type InvoiceRenderingTemplateResource = Stripe.InvoiceRenderingTemplateResource; - export type Mandate = Stripe.Mandate; - export type MandateRetrieveParams = Stripe.MandateRetrieveParams; - export type MandateListParams = Stripe.MandateListParams; - export type MandateResource = Stripe.MandateResource; - export type Margin = Stripe.Margin; - export type MarginCreateParams = Stripe.MarginCreateParams; - export type MarginRetrieveParams = Stripe.MarginRetrieveParams; - export type MarginUpdateParams = Stripe.MarginUpdateParams; - export type MarginListParams = Stripe.MarginListParams; - export type MarginResource = Stripe.MarginResource; - export type Order = Stripe.Order; - export type OrderCreateParams = Stripe.OrderCreateParams; - export type OrderRetrieveParams = Stripe.OrderRetrieveParams; - export type OrderUpdateParams = Stripe.OrderUpdateParams; - export type OrderListParams = Stripe.OrderListParams; - export type OrderSubmitParams = Stripe.OrderSubmitParams; - export type OrderResource = Stripe.OrderResource; - export type PaymentAttemptRecord = Stripe.PaymentAttemptRecord; - export type PaymentAttemptRecordRetrieveParams = Stripe.PaymentAttemptRecordRetrieveParams; - export type PaymentAttemptRecordListParams = Stripe.PaymentAttemptRecordListParams; - export type PaymentAttemptRecordResource = Stripe.PaymentAttemptRecordResource; - export type PaymentIntent = Stripe.PaymentIntent; - export type PaymentIntentCreateParams = Stripe.PaymentIntentCreateParams; - export type PaymentIntentRetrieveParams = Stripe.PaymentIntentRetrieveParams; - export type PaymentIntentUpdateParams = Stripe.PaymentIntentUpdateParams; - export type PaymentIntentListParams = Stripe.PaymentIntentListParams; - export type PaymentIntentApplyCustomerBalanceParams = Stripe.PaymentIntentApplyCustomerBalanceParams; - export type PaymentIntentCancelParams = Stripe.PaymentIntentCancelParams; - export type PaymentIntentCaptureParams = Stripe.PaymentIntentCaptureParams; - export type PaymentIntentConfirmParams = Stripe.PaymentIntentConfirmParams; - export type PaymentIntentDecrementAuthorizationParams = Stripe.PaymentIntentDecrementAuthorizationParams; - export type PaymentIntentIncrementAuthorizationParams = Stripe.PaymentIntentIncrementAuthorizationParams; - export type PaymentIntentListAmountDetailsLineItemsParams = Stripe.PaymentIntentListAmountDetailsLineItemsParams; - export type PaymentIntentSearchParams = Stripe.PaymentIntentSearchParams; - export type PaymentIntentTriggerActionParams = Stripe.PaymentIntentTriggerActionParams; - export type PaymentIntentVerifyMicrodepositsParams = Stripe.PaymentIntentVerifyMicrodepositsParams; - export type PaymentIntentResource = Stripe.PaymentIntentResource; - export type PaymentLink = Stripe.PaymentLink; - export type PaymentLinkCreateParams = Stripe.PaymentLinkCreateParams; - export type PaymentLinkRetrieveParams = Stripe.PaymentLinkRetrieveParams; - export type PaymentLinkUpdateParams = Stripe.PaymentLinkUpdateParams; - export type PaymentLinkListParams = Stripe.PaymentLinkListParams; - export type PaymentLinkListLineItemsParams = Stripe.PaymentLinkListLineItemsParams; - export type PaymentLinkResource = Stripe.PaymentLinkResource; - export type PaymentMethod = Stripe.PaymentMethod; - export type PaymentMethodCreateParams = Stripe.PaymentMethodCreateParams; - export type PaymentMethodRetrieveParams = Stripe.PaymentMethodRetrieveParams; - export type PaymentMethodUpdateParams = Stripe.PaymentMethodUpdateParams; - export type PaymentMethodListParams = Stripe.PaymentMethodListParams; - export type PaymentMethodAttachParams = Stripe.PaymentMethodAttachParams; - export type PaymentMethodDetachParams = Stripe.PaymentMethodDetachParams; - export type PaymentMethodResource = Stripe.PaymentMethodResource; - export type PaymentMethodConfiguration = Stripe.PaymentMethodConfiguration; - export type PaymentMethodConfigurationCreateParams = Stripe.PaymentMethodConfigurationCreateParams; - export type PaymentMethodConfigurationRetrieveParams = Stripe.PaymentMethodConfigurationRetrieveParams; - export type PaymentMethodConfigurationUpdateParams = Stripe.PaymentMethodConfigurationUpdateParams; - export type PaymentMethodConfigurationListParams = Stripe.PaymentMethodConfigurationListParams; - export type PaymentMethodConfigurationResource = Stripe.PaymentMethodConfigurationResource; - export type PaymentMethodDomain = Stripe.PaymentMethodDomain; - export type PaymentMethodDomainCreateParams = Stripe.PaymentMethodDomainCreateParams; - export type PaymentMethodDomainRetrieveParams = Stripe.PaymentMethodDomainRetrieveParams; - export type PaymentMethodDomainUpdateParams = Stripe.PaymentMethodDomainUpdateParams; - export type PaymentMethodDomainListParams = Stripe.PaymentMethodDomainListParams; - export type PaymentMethodDomainValidateParams = Stripe.PaymentMethodDomainValidateParams; - export type PaymentMethodDomainResource = Stripe.PaymentMethodDomainResource; - export type PaymentRecord = Stripe.PaymentRecord; - export type PaymentRecordRetrieveParams = Stripe.PaymentRecordRetrieveParams; - export type PaymentRecordReportPaymentParams = Stripe.PaymentRecordReportPaymentParams; - export type PaymentRecordReportPaymentAttemptParams = Stripe.PaymentRecordReportPaymentAttemptParams; - export type PaymentRecordReportPaymentAttemptCanceledParams = Stripe.PaymentRecordReportPaymentAttemptCanceledParams; - export type PaymentRecordReportPaymentAttemptFailedParams = Stripe.PaymentRecordReportPaymentAttemptFailedParams; - export type PaymentRecordReportPaymentAttemptGuaranteedParams = Stripe.PaymentRecordReportPaymentAttemptGuaranteedParams; - export type PaymentRecordReportPaymentAttemptInformationalParams = Stripe.PaymentRecordReportPaymentAttemptInformationalParams; - export type PaymentRecordReportRefundParams = Stripe.PaymentRecordReportRefundParams; - export type PaymentRecordResource = Stripe.PaymentRecordResource; - export type Payout = Stripe.Payout; - export type PayoutCreateParams = Stripe.PayoutCreateParams; - export type PayoutRetrieveParams = Stripe.PayoutRetrieveParams; - export type PayoutUpdateParams = Stripe.PayoutUpdateParams; - export type PayoutListParams = Stripe.PayoutListParams; - export type PayoutCancelParams = Stripe.PayoutCancelParams; - export type PayoutReverseParams = Stripe.PayoutReverseParams; - export type PayoutResource = Stripe.PayoutResource; - export type Plan = Stripe.Plan; - export type DeletedPlan = Stripe.DeletedPlan; - export type PlanCreateParams = Stripe.PlanCreateParams; - export type PlanRetrieveParams = Stripe.PlanRetrieveParams; - export type PlanUpdateParams = Stripe.PlanUpdateParams; - export type PlanListParams = Stripe.PlanListParams; - export type PlanDeleteParams = Stripe.PlanDeleteParams; - export type PlanResource = Stripe.PlanResource; - export type Price = Stripe.Price; - export type DeletedPrice = Stripe.DeletedPrice; - export type PriceCreateParams = Stripe.PriceCreateParams; - export type PriceRetrieveParams = Stripe.PriceRetrieveParams; - export type PriceUpdateParams = Stripe.PriceUpdateParams; - export type PriceListParams = Stripe.PriceListParams; - export type PriceSearchParams = Stripe.PriceSearchParams; - export type PriceResource = Stripe.PriceResource; - export type Product = Stripe.Product; - export type DeletedProduct = Stripe.DeletedProduct; - export type ProductCreateParams = Stripe.ProductCreateParams; - export type ProductRetrieveParams = Stripe.ProductRetrieveParams; - export type ProductUpdateParams = Stripe.ProductUpdateParams; - export type ProductListParams = Stripe.ProductListParams; - export type ProductDeleteParams = Stripe.ProductDeleteParams; - export type ProductCreateFeatureParams = Stripe.ProductCreateFeatureParams; - export type ProductDeleteFeatureParams = Stripe.ProductDeleteFeatureParams; - export type ProductListFeaturesParams = Stripe.ProductListFeaturesParams; - export type ProductRetrieveFeatureParams = Stripe.ProductRetrieveFeatureParams; - export type ProductSearchParams = Stripe.ProductSearchParams; - export type ProductResource = Stripe.ProductResource; - export type PromotionCode = Stripe.PromotionCode; - export type PromotionCodeCreateParams = Stripe.PromotionCodeCreateParams; - export type PromotionCodeRetrieveParams = Stripe.PromotionCodeRetrieveParams; - export type PromotionCodeUpdateParams = Stripe.PromotionCodeUpdateParams; - export type PromotionCodeListParams = Stripe.PromotionCodeListParams; - export type PromotionCodeSerializeBatchCreateParams = Stripe.PromotionCodeSerializeBatchCreateParams; - export type PromotionCodeSerializeBatchUpdateParams = Stripe.PromotionCodeSerializeBatchUpdateParams; - export type PromotionCodeResource = Stripe.PromotionCodeResource; - export type Quote = Stripe.Quote; - export type QuoteCreateParams = Stripe.QuoteCreateParams; - export type QuoteRetrieveParams = Stripe.QuoteRetrieveParams; - export type QuoteUpdateParams = Stripe.QuoteUpdateParams; - export type QuoteListParams = Stripe.QuoteListParams; - export type QuoteAcceptParams = Stripe.QuoteAcceptParams; - export type QuoteCancelParams = Stripe.QuoteCancelParams; - export type QuoteFinalizeQuoteParams = Stripe.QuoteFinalizeQuoteParams; - export type QuoteListPreviewInvoiceLinesParams = Stripe.QuoteListPreviewInvoiceLinesParams; - export type QuoteListComputedUpfrontLineItemsParams = Stripe.QuoteListComputedUpfrontLineItemsParams; - export type QuoteListLineItemsParams = Stripe.QuoteListLineItemsParams; - export type QuoteListLinesParams = Stripe.QuoteListLinesParams; - export type QuoteListPreviewInvoicesParams = Stripe.QuoteListPreviewInvoicesParams; - export type QuoteListPreviewSubscriptionSchedulesParams = Stripe.QuoteListPreviewSubscriptionSchedulesParams; - export type QuoteMarkDraftParams = Stripe.QuoteMarkDraftParams; - export type QuoteMarkStaleParams = Stripe.QuoteMarkStaleParams; - export type QuotePdfParams = Stripe.QuotePdfParams; - export type QuoteReestimateParams = Stripe.QuoteReestimateParams; - export type QuoteResource = Stripe.QuoteResource; - export type Refund = Stripe.Refund; - export type RefundCreateParams = Stripe.RefundCreateParams; - export type RefundRetrieveParams = Stripe.RefundRetrieveParams; - export type RefundUpdateParams = Stripe.RefundUpdateParams; - export type RefundListParams = Stripe.RefundListParams; - export type RefundCancelParams = Stripe.RefundCancelParams; - export type RefundResource = Stripe.RefundResource; - export type Review = Stripe.Review; - export type ReviewRetrieveParams = Stripe.ReviewRetrieveParams; - export type ReviewListParams = Stripe.ReviewListParams; - export type ReviewApproveParams = Stripe.ReviewApproveParams; - export type ReviewResource = Stripe.ReviewResource; - export type SetupAttempt = Stripe.SetupAttempt; - export type SetupAttemptListParams = Stripe.SetupAttemptListParams; - export type SetupAttemptResource = Stripe.SetupAttemptResource; - export type SetupIntent = Stripe.SetupIntent; - export type SetupIntentCreateParams = Stripe.SetupIntentCreateParams; - export type SetupIntentRetrieveParams = Stripe.SetupIntentRetrieveParams; - export type SetupIntentUpdateParams = Stripe.SetupIntentUpdateParams; - export type SetupIntentListParams = Stripe.SetupIntentListParams; - export type SetupIntentCancelParams = Stripe.SetupIntentCancelParams; - export type SetupIntentConfirmParams = Stripe.SetupIntentConfirmParams; - export type SetupIntentVerifyMicrodepositsParams = Stripe.SetupIntentVerifyMicrodepositsParams; - export type SetupIntentResource = Stripe.SetupIntentResource; - export type ShippingRate = Stripe.ShippingRate; - export type ShippingRateCreateParams = Stripe.ShippingRateCreateParams; - export type ShippingRateRetrieveParams = Stripe.ShippingRateRetrieveParams; - export type ShippingRateUpdateParams = Stripe.ShippingRateUpdateParams; - export type ShippingRateListParams = Stripe.ShippingRateListParams; - export type ShippingRateResource = Stripe.ShippingRateResource; - export type Source = Stripe.Source; - export type SourceCreateParams = Stripe.SourceCreateParams; - export type SourceRetrieveParams = Stripe.SourceRetrieveParams; - export type SourceUpdateParams = Stripe.SourceUpdateParams; - export type SourceListSourceTransactionsParams = Stripe.SourceListSourceTransactionsParams; - export type SourceVerifyParams = Stripe.SourceVerifyParams; - export type SourceResource = Stripe.SourceResource; - export type Subscription = Stripe.Subscription; - export type SubscriptionCreateParams = Stripe.SubscriptionCreateParams; - export type SubscriptionRetrieveParams = Stripe.SubscriptionRetrieveParams; - export type SubscriptionUpdateParams = Stripe.SubscriptionUpdateParams; - export type SubscriptionListParams = Stripe.SubscriptionListParams; - export type SubscriptionCancelParams = Stripe.SubscriptionCancelParams; - export type SubscriptionDeleteDiscountParams = Stripe.SubscriptionDeleteDiscountParams; - export type SubscriptionMigrateParams = Stripe.SubscriptionMigrateParams; - export type SubscriptionPauseParams = Stripe.SubscriptionPauseParams; - export type SubscriptionResumeParams = Stripe.SubscriptionResumeParams; - export type SubscriptionSearchParams = Stripe.SubscriptionSearchParams; - export type SubscriptionSerializeBatchCancelParams = Stripe.SubscriptionSerializeBatchCancelParams; - export type SubscriptionSerializeBatchMigrateParams = Stripe.SubscriptionSerializeBatchMigrateParams; - export type SubscriptionSerializeBatchUpdateParams = Stripe.SubscriptionSerializeBatchUpdateParams; - export type SubscriptionResource = Stripe.SubscriptionResource; - export type SubscriptionItem = Stripe.SubscriptionItem; - export type DeletedSubscriptionItem = Stripe.DeletedSubscriptionItem; - export type SubscriptionItemCreateParams = Stripe.SubscriptionItemCreateParams; - export type SubscriptionItemRetrieveParams = Stripe.SubscriptionItemRetrieveParams; - export type SubscriptionItemUpdateParams = Stripe.SubscriptionItemUpdateParams; - export type SubscriptionItemListParams = Stripe.SubscriptionItemListParams; - export type SubscriptionItemDeleteParams = Stripe.SubscriptionItemDeleteParams; - export type SubscriptionItemResource = Stripe.SubscriptionItemResource; - export type SubscriptionSchedule = Stripe.SubscriptionSchedule; - export type SubscriptionScheduleCreateParams = Stripe.SubscriptionScheduleCreateParams; - export type SubscriptionScheduleRetrieveParams = Stripe.SubscriptionScheduleRetrieveParams; - export type SubscriptionScheduleUpdateParams = Stripe.SubscriptionScheduleUpdateParams; - export type SubscriptionScheduleListParams = Stripe.SubscriptionScheduleListParams; - export type SubscriptionScheduleAmendParams = Stripe.SubscriptionScheduleAmendParams; - export type SubscriptionScheduleCancelParams = Stripe.SubscriptionScheduleCancelParams; - export type SubscriptionScheduleReleaseParams = Stripe.SubscriptionScheduleReleaseParams; - export type SubscriptionScheduleResource = Stripe.SubscriptionScheduleResource; - export type TaxCode = Stripe.TaxCode; - export type TaxCodeRetrieveParams = Stripe.TaxCodeRetrieveParams; - export type TaxCodeListParams = Stripe.TaxCodeListParams; - export type TaxCodeResource = Stripe.TaxCodeResource; - export type TaxId = Stripe.TaxId; - export type DeletedTaxId = Stripe.DeletedTaxId; - export type TaxIdCreateParams = Stripe.TaxIdCreateParams; - export type TaxIdRetrieveParams = Stripe.TaxIdRetrieveParams; - export type TaxIdListParams = Stripe.TaxIdListParams; - export type TaxIdDeleteParams = Stripe.TaxIdDeleteParams; - export type TaxIdResource = Stripe.TaxIdResource; - export type TaxRate = Stripe.TaxRate; - export type TaxRateCreateParams = Stripe.TaxRateCreateParams; - export type TaxRateRetrieveParams = Stripe.TaxRateRetrieveParams; - export type TaxRateUpdateParams = Stripe.TaxRateUpdateParams; - export type TaxRateListParams = Stripe.TaxRateListParams; - export type TaxRateResource = Stripe.TaxRateResource; - export type Token = Stripe.Token; - export type TokenCreateParams = Stripe.TokenCreateParams; - export type TokenRetrieveParams = Stripe.TokenRetrieveParams; - export type TokenResource = Stripe.TokenResource; - export type Topup = Stripe.Topup; - export type TopupCreateParams = Stripe.TopupCreateParams; - export type TopupRetrieveParams = Stripe.TopupRetrieveParams; - export type TopupUpdateParams = Stripe.TopupUpdateParams; - export type TopupListParams = Stripe.TopupListParams; - export type TopupCancelParams = Stripe.TopupCancelParams; - export type TopupResource = Stripe.TopupResource; - export type Transfer = Stripe.Transfer; - export type TransferCreateParams = Stripe.TransferCreateParams; - export type TransferRetrieveParams = Stripe.TransferRetrieveParams; - export type TransferUpdateParams = Stripe.TransferUpdateParams; - export type TransferListParams = Stripe.TransferListParams; - export type TransferCreateReversalParams = Stripe.TransferCreateReversalParams; - export type TransferListReversalsParams = Stripe.TransferListReversalsParams; - export type TransferRetrieveReversalParams = Stripe.TransferRetrieveReversalParams; - export type TransferUpdateReversalParams = Stripe.TransferUpdateReversalParams; - export type TransferResource = Stripe.TransferResource; - export type WebhookEndpoint = Stripe.WebhookEndpoint; - export type DeletedWebhookEndpoint = Stripe.DeletedWebhookEndpoint; - export type WebhookEndpointCreateParams = Stripe.WebhookEndpointCreateParams; - export type WebhookEndpointRetrieveParams = Stripe.WebhookEndpointRetrieveParams; - export type WebhookEndpointUpdateParams = Stripe.WebhookEndpointUpdateParams; - export type WebhookEndpointListParams = Stripe.WebhookEndpointListParams; - export type WebhookEndpointDeleteParams = Stripe.WebhookEndpointDeleteParams; - export type WebhookEndpointResource = Stripe.WebhookEndpointResource; - export type Application = Stripe.Application; - export type DeletedApplication = Stripe.DeletedApplication; - export type BalanceTransactionSource = Stripe.BalanceTransactionSource; - export type BankAccount = Stripe.BankAccount; - export type DeletedBankAccount = Stripe.DeletedBankAccount; - export type Card = Stripe.Card; - export type DeletedCard = Stripe.DeletedCard; - export type ConnectCollectionTransfer = Stripe.ConnectCollectionTransfer; - export type Discount = Stripe.Discount; - export type DeletedDiscount = Stripe.DeletedDiscount; - export type FundingInstructions = Stripe.FundingInstructions; - export type LineItem = Stripe.LineItem; - export type QuoteLine = Stripe.QuoteLine; - export type ReserveTransaction = Stripe.ReserveTransaction; - export type SourceMandateNotification = Stripe.SourceMandateNotification; - export type SourceTransaction = Stripe.SourceTransaction; - export type TaxDeductedAtSource = Stripe.TaxDeductedAtSource; - export type Capability = Stripe.Capability; - export type LoginLink = Stripe.LoginLink; - export type Person = Stripe.Person; - export type DeletedPerson = Stripe.DeletedPerson; - export type FeeRefund = Stripe.FeeRefund; - export type CreditNoteLineItem = Stripe.CreditNoteLineItem; - export type CustomerBalanceTransaction = Stripe.CustomerBalanceTransaction; - export type CashBalance = Stripe.CashBalance; - export type CustomerCashBalanceTransaction = Stripe.CustomerCashBalanceTransaction; - export type CustomerSource = Stripe.CustomerSource; - export type DeletedCustomerSource = Stripe.DeletedCustomerSource; - export type InvoiceLineItem = Stripe.InvoiceLineItem; - export type PaymentIntentAmountDetailsLineItem = Stripe.PaymentIntentAmountDetailsLineItem; - export type ProductFeature = Stripe.ProductFeature; - export type DeletedProductFeature = Stripe.DeletedProductFeature; - export type QuotePreviewInvoice = Stripe.QuotePreviewInvoice; - export type QuotePreviewSubscriptionSchedule = Stripe.QuotePreviewSubscriptionSchedule; - export type TransferReversal = Stripe.TransferReversal; + export type Account = Stripe_.Account; + export type DeletedAccount = Stripe_.DeletedAccount; + export type AccountCreateParams = Stripe_.AccountCreateParams; + export type AccountRetrieveParams = Stripe_.AccountRetrieveParams; + export type AccountUpdateParams = Stripe_.AccountUpdateParams; + export type AccountListParams = Stripe_.AccountListParams; + export type AccountDeleteParams = Stripe_.AccountDeleteParams; + export type AccountCreateExternalAccountParams = Stripe_.AccountCreateExternalAccountParams; + export type AccountCreateLoginLinkParams = Stripe_.AccountCreateLoginLinkParams; + export type AccountCreatePersonParams = Stripe_.AccountCreatePersonParams; + export type AccountDeleteExternalAccountParams = Stripe_.AccountDeleteExternalAccountParams; + export type AccountDeletePersonParams = Stripe_.AccountDeletePersonParams; + export type AccountListCapabilitiesParams = Stripe_.AccountListCapabilitiesParams; + export type AccountListExternalAccountsParams = Stripe_.AccountListExternalAccountsParams; + export type AccountListPersonsParams = Stripe_.AccountListPersonsParams; + export type AccountRejectParams = Stripe_.AccountRejectParams; + export type AccountRetrieveCurrentParams = Stripe_.AccountRetrieveCurrentParams; + export type AccountRetrieveCapabilityParams = Stripe_.AccountRetrieveCapabilityParams; + export type AccountRetrieveExternalAccountParams = Stripe_.AccountRetrieveExternalAccountParams; + export type AccountRetrievePersonParams = Stripe_.AccountRetrievePersonParams; + export type AccountSerializeBatchUpdateParams = Stripe_.AccountSerializeBatchUpdateParams; + export type AccountUpdateCapabilityParams = Stripe_.AccountUpdateCapabilityParams; + export type AccountUpdateExternalAccountParams = Stripe_.AccountUpdateExternalAccountParams; + export type AccountUpdatePersonParams = Stripe_.AccountUpdatePersonParams; + export type AccountResource = Stripe_.AccountResource; + export type AccountLink = Stripe_.AccountLink; + export type AccountLinkCreateParams = Stripe_.AccountLinkCreateParams; + export type AccountLinkResource = Stripe_.AccountLinkResource; + export type AccountNotice = Stripe_.AccountNotice; + export type AccountNoticeRetrieveParams = Stripe_.AccountNoticeRetrieveParams; + export type AccountNoticeUpdateParams = Stripe_.AccountNoticeUpdateParams; + export type AccountNoticeListParams = Stripe_.AccountNoticeListParams; + export type AccountNoticeResource = Stripe_.AccountNoticeResource; + export type AccountSession = Stripe_.AccountSession; + export type AccountSessionCreateParams = Stripe_.AccountSessionCreateParams; + export type AccountSessionResource = Stripe_.AccountSessionResource; + export type ApplePayDomain = Stripe_.ApplePayDomain; + export type DeletedApplePayDomain = Stripe_.DeletedApplePayDomain; + export type ApplePayDomainCreateParams = Stripe_.ApplePayDomainCreateParams; + export type ApplePayDomainRetrieveParams = Stripe_.ApplePayDomainRetrieveParams; + export type ApplePayDomainListParams = Stripe_.ApplePayDomainListParams; + export type ApplePayDomainDeleteParams = Stripe_.ApplePayDomainDeleteParams; + export type ApplePayDomainResource = Stripe_.ApplePayDomainResource; + export type ApplicationFee = Stripe_.ApplicationFee; + export type ApplicationFeeRetrieveParams = Stripe_.ApplicationFeeRetrieveParams; + export type ApplicationFeeListParams = Stripe_.ApplicationFeeListParams; + export type ApplicationFeeCreateRefundParams = Stripe_.ApplicationFeeCreateRefundParams; + export type ApplicationFeeListRefundsParams = Stripe_.ApplicationFeeListRefundsParams; + export type ApplicationFeeRetrieveRefundParams = Stripe_.ApplicationFeeRetrieveRefundParams; + export type ApplicationFeeUpdateRefundParams = Stripe_.ApplicationFeeUpdateRefundParams; + export type ApplicationFeeResource = Stripe_.ApplicationFeeResource; + export type Balance = Stripe_.Balance; + export type BalanceRetrieveParams = Stripe_.BalanceRetrieveParams; + export type BalanceResource = Stripe_.BalanceResource; + export type BalanceSettings = Stripe_.BalanceSettings; + export type BalanceSettingsRetrieveParams = Stripe_.BalanceSettingsRetrieveParams; + export type BalanceSettingsUpdateParams = Stripe_.BalanceSettingsUpdateParams; + export type BalanceSettingResource = Stripe_.BalanceSettingResource; + export type BalanceTransaction = Stripe_.BalanceTransaction; + export type BalanceTransactionRetrieveParams = Stripe_.BalanceTransactionRetrieveParams; + export type BalanceTransactionListParams = Stripe_.BalanceTransactionListParams; + export type BalanceTransactionResource = Stripe_.BalanceTransactionResource; + export type Charge = Stripe_.Charge; + export type ChargeCreateParams = Stripe_.ChargeCreateParams; + export type ChargeRetrieveParams = Stripe_.ChargeRetrieveParams; + export type ChargeUpdateParams = Stripe_.ChargeUpdateParams; + export type ChargeListParams = Stripe_.ChargeListParams; + export type ChargeCaptureParams = Stripe_.ChargeCaptureParams; + export type ChargeSearchParams = Stripe_.ChargeSearchParams; + export type ChargeResource = Stripe_.ChargeResource; + export type ConfirmationToken = Stripe_.ConfirmationToken; + export type ConfirmationTokenRetrieveParams = Stripe_.ConfirmationTokenRetrieveParams; + export type ConfirmationTokenResource = Stripe_.ConfirmationTokenResource; + export type CountrySpec = Stripe_.CountrySpec; + export type CountrySpecRetrieveParams = Stripe_.CountrySpecRetrieveParams; + export type CountrySpecListParams = Stripe_.CountrySpecListParams; + export type CountrySpecResource = Stripe_.CountrySpecResource; + export type Coupon = Stripe_.Coupon; + export type DeletedCoupon = Stripe_.DeletedCoupon; + export type CouponCreateParams = Stripe_.CouponCreateParams; + export type CouponRetrieveParams = Stripe_.CouponRetrieveParams; + export type CouponUpdateParams = Stripe_.CouponUpdateParams; + export type CouponListParams = Stripe_.CouponListParams; + export type CouponDeleteParams = Stripe_.CouponDeleteParams; + export type CouponSerializeBatchCreateParams = Stripe_.CouponSerializeBatchCreateParams; + export type CouponResource = Stripe_.CouponResource; + export type CreditNote = Stripe_.CreditNote; + export type CreditNoteCreateParams = Stripe_.CreditNoteCreateParams; + export type CreditNoteRetrieveParams = Stripe_.CreditNoteRetrieveParams; + export type CreditNoteUpdateParams = Stripe_.CreditNoteUpdateParams; + export type CreditNoteListParams = Stripe_.CreditNoteListParams; + export type CreditNoteListLineItemsParams = Stripe_.CreditNoteListLineItemsParams; + export type CreditNoteListPreviewLineItemsParams = Stripe_.CreditNoteListPreviewLineItemsParams; + export type CreditNotePreviewParams = Stripe_.CreditNotePreviewParams; + export type CreditNoteVoidCreditNoteParams = Stripe_.CreditNoteVoidCreditNoteParams; + export type CreditNoteResource = Stripe_.CreditNoteResource; + export type Customer = Stripe_.Customer; + export type DeletedCustomer = Stripe_.DeletedCustomer; + export type CustomerCreateParams = Stripe_.CustomerCreateParams; + export type CustomerRetrieveParams = Stripe_.CustomerRetrieveParams; + export type CustomerUpdateParams = Stripe_.CustomerUpdateParams; + export type CustomerListParams = Stripe_.CustomerListParams; + export type CustomerDeleteParams = Stripe_.CustomerDeleteParams; + export type CustomerCreateBalanceTransactionParams = Stripe_.CustomerCreateBalanceTransactionParams; + export type CustomerCreateFundingInstructionsParams = Stripe_.CustomerCreateFundingInstructionsParams; + export type CustomerCreateSourceParams = Stripe_.CustomerCreateSourceParams; + export type CustomerCreateTaxIdParams = Stripe_.CustomerCreateTaxIdParams; + export type CustomerDeleteDiscountParams = Stripe_.CustomerDeleteDiscountParams; + export type CustomerDeleteSourceParams = Stripe_.CustomerDeleteSourceParams; + export type CustomerDeleteTaxIdParams = Stripe_.CustomerDeleteTaxIdParams; + export type CustomerListBalanceTransactionsParams = Stripe_.CustomerListBalanceTransactionsParams; + export type CustomerListCashBalanceTransactionsParams = Stripe_.CustomerListCashBalanceTransactionsParams; + export type CustomerListPaymentMethodsParams = Stripe_.CustomerListPaymentMethodsParams; + export type CustomerListSourcesParams = Stripe_.CustomerListSourcesParams; + export type CustomerListTaxIdsParams = Stripe_.CustomerListTaxIdsParams; + export type CustomerRetrieveBalanceTransactionParams = Stripe_.CustomerRetrieveBalanceTransactionParams; + export type CustomerRetrieveCashBalanceParams = Stripe_.CustomerRetrieveCashBalanceParams; + export type CustomerRetrieveCashBalanceTransactionParams = Stripe_.CustomerRetrieveCashBalanceTransactionParams; + export type CustomerRetrievePaymentMethodParams = Stripe_.CustomerRetrievePaymentMethodParams; + export type CustomerRetrieveSourceParams = Stripe_.CustomerRetrieveSourceParams; + export type CustomerRetrieveTaxIdParams = Stripe_.CustomerRetrieveTaxIdParams; + export type CustomerSearchParams = Stripe_.CustomerSearchParams; + export type CustomerSerializeBatchUpdateParams = Stripe_.CustomerSerializeBatchUpdateParams; + export type CustomerUpdateBalanceTransactionParams = Stripe_.CustomerUpdateBalanceTransactionParams; + export type CustomerUpdateCashBalanceParams = Stripe_.CustomerUpdateCashBalanceParams; + export type CustomerUpdateSourceParams = Stripe_.CustomerUpdateSourceParams; + export type CustomerVerifySourceParams = Stripe_.CustomerVerifySourceParams; + export type CustomerResource = Stripe_.CustomerResource; + export type CustomerSession = Stripe_.CustomerSession; + export type CustomerSessionCreateParams = Stripe_.CustomerSessionCreateParams; + export type CustomerSessionResource = Stripe_.CustomerSessionResource; + export type Dispute = Stripe_.Dispute; + export type DisputeRetrieveParams = Stripe_.DisputeRetrieveParams; + export type DisputeUpdateParams = Stripe_.DisputeUpdateParams; + export type DisputeListParams = Stripe_.DisputeListParams; + export type DisputeCloseParams = Stripe_.DisputeCloseParams; + export type DisputeResource = Stripe_.DisputeResource; + export type EphemeralKey = Stripe_.EphemeralKey; + export type EphemeralKeyCreateParams = Stripe_.EphemeralKeyCreateParams; + export type EphemeralKeyDeleteParams = Stripe_.EphemeralKeyDeleteParams; + export type EphemeralKeyResource = Stripe_.EphemeralKeyResource; + export type Event = Stripe_.Event; + export type EventBase = Stripe_.EventBase; + export type EventRetrieveParams = Stripe_.EventRetrieveParams; + export type EventListParams = Stripe_.EventListParams; + export type EventResource = Stripe_.EventResource; + export type ExchangeRate = Stripe_.ExchangeRate; + export type ExchangeRateRetrieveParams = Stripe_.ExchangeRateRetrieveParams; + export type ExchangeRateListParams = Stripe_.ExchangeRateListParams; + export type ExchangeRateResource = Stripe_.ExchangeRateResource; + export type ExternalAccount = Stripe_.ExternalAccount; + export type DeletedExternalAccount = Stripe_.DeletedExternalAccount; + export type ExternalAccountCreateParams = Stripe_.ExternalAccountCreateParams; + export type ExternalAccountRetrieveParams = Stripe_.ExternalAccountRetrieveParams; + export type ExternalAccountUpdateParams = Stripe_.ExternalAccountUpdateParams; + export type ExternalAccountListParams = Stripe_.ExternalAccountListParams; + export type ExternalAccountDeleteParams = Stripe_.ExternalAccountDeleteParams; + export type ExternalAccountResource = Stripe_.ExternalAccountResource; + export type File = Stripe_.File; + export type FileCreateParams = Stripe_.FileCreateParams; + export type FileRetrieveParams = Stripe_.FileRetrieveParams; + export type FileListParams = Stripe_.FileListParams; + export type FileResource = Stripe_.FileResource; + export type FileLink = Stripe_.FileLink; + export type FileLinkCreateParams = Stripe_.FileLinkCreateParams; + export type FileLinkRetrieveParams = Stripe_.FileLinkRetrieveParams; + export type FileLinkUpdateParams = Stripe_.FileLinkUpdateParams; + export type FileLinkListParams = Stripe_.FileLinkListParams; + export type FileLinkResource = Stripe_.FileLinkResource; + export type FxQuote = Stripe_.FxQuote; + export type FxQuoteCreateParams = Stripe_.FxQuoteCreateParams; + export type FxQuoteRetrieveParams = Stripe_.FxQuoteRetrieveParams; + export type FxQuoteListParams = Stripe_.FxQuoteListParams; + export type FxQuoteResource = Stripe_.FxQuoteResource; + export type Invoice = Stripe_.Invoice; + export type DeletedInvoice = Stripe_.DeletedInvoice; + export type InvoiceCreateParams = Stripe_.InvoiceCreateParams; + export type InvoiceRetrieveParams = Stripe_.InvoiceRetrieveParams; + export type InvoiceUpdateParams = Stripe_.InvoiceUpdateParams; + export type InvoiceListParams = Stripe_.InvoiceListParams; + export type InvoiceDeleteParams = Stripe_.InvoiceDeleteParams; + export type InvoiceAddLinesParams = Stripe_.InvoiceAddLinesParams; + export type InvoiceAttachPaymentParams = Stripe_.InvoiceAttachPaymentParams; + export type InvoiceCreatePreviewParams = Stripe_.InvoiceCreatePreviewParams; + export type InvoiceDetachPaymentParams = Stripe_.InvoiceDetachPaymentParams; + export type InvoiceFinalizeInvoiceParams = Stripe_.InvoiceFinalizeInvoiceParams; + export type InvoiceListLineItemsParams = Stripe_.InvoiceListLineItemsParams; + export type InvoiceMarkUncollectibleParams = Stripe_.InvoiceMarkUncollectibleParams; + export type InvoicePayParams = Stripe_.InvoicePayParams; + export type InvoiceRemoveLinesParams = Stripe_.InvoiceRemoveLinesParams; + export type InvoiceSearchParams = Stripe_.InvoiceSearchParams; + export type InvoiceSendInvoiceParams = Stripe_.InvoiceSendInvoiceParams; + export type InvoiceUpdateLinesParams = Stripe_.InvoiceUpdateLinesParams; + export type InvoiceUpdateLineItemParams = Stripe_.InvoiceUpdateLineItemParams; + export type InvoiceVoidInvoiceParams = Stripe_.InvoiceVoidInvoiceParams; + export type InvoiceResource = Stripe_.InvoiceResource; + export type InvoiceItem = Stripe_.InvoiceItem; + export type DeletedInvoiceItem = Stripe_.DeletedInvoiceItem; + export type InvoiceItemCreateParams = Stripe_.InvoiceItemCreateParams; + export type InvoiceItemRetrieveParams = Stripe_.InvoiceItemRetrieveParams; + export type InvoiceItemUpdateParams = Stripe_.InvoiceItemUpdateParams; + export type InvoiceItemListParams = Stripe_.InvoiceItemListParams; + export type InvoiceItemDeleteParams = Stripe_.InvoiceItemDeleteParams; + export type InvoiceItemResource = Stripe_.InvoiceItemResource; + export type InvoicePayment = Stripe_.InvoicePayment; + export type InvoicePaymentRetrieveParams = Stripe_.InvoicePaymentRetrieveParams; + export type InvoicePaymentListParams = Stripe_.InvoicePaymentListParams; + export type InvoicePaymentResource = Stripe_.InvoicePaymentResource; + export type InvoiceRenderingTemplate = Stripe_.InvoiceRenderingTemplate; + export type InvoiceRenderingTemplateRetrieveParams = Stripe_.InvoiceRenderingTemplateRetrieveParams; + export type InvoiceRenderingTemplateListParams = Stripe_.InvoiceRenderingTemplateListParams; + export type InvoiceRenderingTemplateArchiveParams = Stripe_.InvoiceRenderingTemplateArchiveParams; + export type InvoiceRenderingTemplateUnarchiveParams = Stripe_.InvoiceRenderingTemplateUnarchiveParams; + export type InvoiceRenderingTemplateResource = Stripe_.InvoiceRenderingTemplateResource; + export type Mandate = Stripe_.Mandate; + export type MandateRetrieveParams = Stripe_.MandateRetrieveParams; + export type MandateListParams = Stripe_.MandateListParams; + export type MandateResource = Stripe_.MandateResource; + export type Margin = Stripe_.Margin; + export type MarginCreateParams = Stripe_.MarginCreateParams; + export type MarginRetrieveParams = Stripe_.MarginRetrieveParams; + export type MarginUpdateParams = Stripe_.MarginUpdateParams; + export type MarginListParams = Stripe_.MarginListParams; + export type MarginResource = Stripe_.MarginResource; + export type Order = Stripe_.Order; + export type OrderCreateParams = Stripe_.OrderCreateParams; + export type OrderRetrieveParams = Stripe_.OrderRetrieveParams; + export type OrderUpdateParams = Stripe_.OrderUpdateParams; + export type OrderListParams = Stripe_.OrderListParams; + export type OrderSubmitParams = Stripe_.OrderSubmitParams; + export type OrderResource = Stripe_.OrderResource; + export type PaymentAttemptRecord = Stripe_.PaymentAttemptRecord; + export type PaymentAttemptRecordRetrieveParams = Stripe_.PaymentAttemptRecordRetrieveParams; + export type PaymentAttemptRecordListParams = Stripe_.PaymentAttemptRecordListParams; + export type PaymentAttemptRecordResource = Stripe_.PaymentAttemptRecordResource; + export type PaymentIntent = Stripe_.PaymentIntent; + export type PaymentIntentCreateParams = Stripe_.PaymentIntentCreateParams; + export type PaymentIntentRetrieveParams = Stripe_.PaymentIntentRetrieveParams; + export type PaymentIntentUpdateParams = Stripe_.PaymentIntentUpdateParams; + export type PaymentIntentListParams = Stripe_.PaymentIntentListParams; + export type PaymentIntentApplyCustomerBalanceParams = Stripe_.PaymentIntentApplyCustomerBalanceParams; + export type PaymentIntentCancelParams = Stripe_.PaymentIntentCancelParams; + export type PaymentIntentCaptureParams = Stripe_.PaymentIntentCaptureParams; + export type PaymentIntentConfirmParams = Stripe_.PaymentIntentConfirmParams; + export type PaymentIntentDecrementAuthorizationParams = Stripe_.PaymentIntentDecrementAuthorizationParams; + export type PaymentIntentIncrementAuthorizationParams = Stripe_.PaymentIntentIncrementAuthorizationParams; + export type PaymentIntentListAmountDetailsLineItemsParams = Stripe_.PaymentIntentListAmountDetailsLineItemsParams; + export type PaymentIntentSearchParams = Stripe_.PaymentIntentSearchParams; + export type PaymentIntentTriggerActionParams = Stripe_.PaymentIntentTriggerActionParams; + export type PaymentIntentVerifyMicrodepositsParams = Stripe_.PaymentIntentVerifyMicrodepositsParams; + export type PaymentIntentResource = Stripe_.PaymentIntentResource; + export type PaymentLink = Stripe_.PaymentLink; + export type PaymentLinkCreateParams = Stripe_.PaymentLinkCreateParams; + export type PaymentLinkRetrieveParams = Stripe_.PaymentLinkRetrieveParams; + export type PaymentLinkUpdateParams = Stripe_.PaymentLinkUpdateParams; + export type PaymentLinkListParams = Stripe_.PaymentLinkListParams; + export type PaymentLinkListLineItemsParams = Stripe_.PaymentLinkListLineItemsParams; + export type PaymentLinkResource = Stripe_.PaymentLinkResource; + export type PaymentMethod = Stripe_.PaymentMethod; + export type PaymentMethodCreateParams = Stripe_.PaymentMethodCreateParams; + export type PaymentMethodRetrieveParams = Stripe_.PaymentMethodRetrieveParams; + export type PaymentMethodUpdateParams = Stripe_.PaymentMethodUpdateParams; + export type PaymentMethodListParams = Stripe_.PaymentMethodListParams; + export type PaymentMethodAttachParams = Stripe_.PaymentMethodAttachParams; + export type PaymentMethodDetachParams = Stripe_.PaymentMethodDetachParams; + export type PaymentMethodResource = Stripe_.PaymentMethodResource; + export type PaymentMethodConfiguration = Stripe_.PaymentMethodConfiguration; + export type PaymentMethodConfigurationCreateParams = Stripe_.PaymentMethodConfigurationCreateParams; + export type PaymentMethodConfigurationRetrieveParams = Stripe_.PaymentMethodConfigurationRetrieveParams; + export type PaymentMethodConfigurationUpdateParams = Stripe_.PaymentMethodConfigurationUpdateParams; + export type PaymentMethodConfigurationListParams = Stripe_.PaymentMethodConfigurationListParams; + export type PaymentMethodConfigurationResource = Stripe_.PaymentMethodConfigurationResource; + export type PaymentMethodDomain = Stripe_.PaymentMethodDomain; + export type PaymentMethodDomainCreateParams = Stripe_.PaymentMethodDomainCreateParams; + export type PaymentMethodDomainRetrieveParams = Stripe_.PaymentMethodDomainRetrieveParams; + export type PaymentMethodDomainUpdateParams = Stripe_.PaymentMethodDomainUpdateParams; + export type PaymentMethodDomainListParams = Stripe_.PaymentMethodDomainListParams; + export type PaymentMethodDomainValidateParams = Stripe_.PaymentMethodDomainValidateParams; + export type PaymentMethodDomainResource = Stripe_.PaymentMethodDomainResource; + export type PaymentRecord = Stripe_.PaymentRecord; + export type PaymentRecordRetrieveParams = Stripe_.PaymentRecordRetrieveParams; + export type PaymentRecordReportPaymentParams = Stripe_.PaymentRecordReportPaymentParams; + export type PaymentRecordReportPaymentAttemptParams = Stripe_.PaymentRecordReportPaymentAttemptParams; + export type PaymentRecordReportPaymentAttemptCanceledParams = Stripe_.PaymentRecordReportPaymentAttemptCanceledParams; + export type PaymentRecordReportPaymentAttemptFailedParams = Stripe_.PaymentRecordReportPaymentAttemptFailedParams; + export type PaymentRecordReportPaymentAttemptGuaranteedParams = Stripe_.PaymentRecordReportPaymentAttemptGuaranteedParams; + export type PaymentRecordReportPaymentAttemptInformationalParams = Stripe_.PaymentRecordReportPaymentAttemptInformationalParams; + export type PaymentRecordReportRefundParams = Stripe_.PaymentRecordReportRefundParams; + export type PaymentRecordResource = Stripe_.PaymentRecordResource; + export type Payout = Stripe_.Payout; + export type PayoutCreateParams = Stripe_.PayoutCreateParams; + export type PayoutRetrieveParams = Stripe_.PayoutRetrieveParams; + export type PayoutUpdateParams = Stripe_.PayoutUpdateParams; + export type PayoutListParams = Stripe_.PayoutListParams; + export type PayoutCancelParams = Stripe_.PayoutCancelParams; + export type PayoutReverseParams = Stripe_.PayoutReverseParams; + export type PayoutResource = Stripe_.PayoutResource; + export type Plan = Stripe_.Plan; + export type DeletedPlan = Stripe_.DeletedPlan; + export type PlanCreateParams = Stripe_.PlanCreateParams; + export type PlanRetrieveParams = Stripe_.PlanRetrieveParams; + export type PlanUpdateParams = Stripe_.PlanUpdateParams; + export type PlanListParams = Stripe_.PlanListParams; + export type PlanDeleteParams = Stripe_.PlanDeleteParams; + export type PlanResource = Stripe_.PlanResource; + export type Price = Stripe_.Price; + export type DeletedPrice = Stripe_.DeletedPrice; + export type PriceCreateParams = Stripe_.PriceCreateParams; + export type PriceRetrieveParams = Stripe_.PriceRetrieveParams; + export type PriceUpdateParams = Stripe_.PriceUpdateParams; + export type PriceListParams = Stripe_.PriceListParams; + export type PriceSearchParams = Stripe_.PriceSearchParams; + export type PriceResource = Stripe_.PriceResource; + export type Product = Stripe_.Product; + export type DeletedProduct = Stripe_.DeletedProduct; + export type ProductCreateParams = Stripe_.ProductCreateParams; + export type ProductRetrieveParams = Stripe_.ProductRetrieveParams; + export type ProductUpdateParams = Stripe_.ProductUpdateParams; + export type ProductListParams = Stripe_.ProductListParams; + export type ProductDeleteParams = Stripe_.ProductDeleteParams; + export type ProductCreateFeatureParams = Stripe_.ProductCreateFeatureParams; + export type ProductDeleteFeatureParams = Stripe_.ProductDeleteFeatureParams; + export type ProductListFeaturesParams = Stripe_.ProductListFeaturesParams; + export type ProductRetrieveFeatureParams = Stripe_.ProductRetrieveFeatureParams; + export type ProductSearchParams = Stripe_.ProductSearchParams; + export type ProductResource = Stripe_.ProductResource; + export type PromotionCode = Stripe_.PromotionCode; + export type PromotionCodeCreateParams = Stripe_.PromotionCodeCreateParams; + export type PromotionCodeRetrieveParams = Stripe_.PromotionCodeRetrieveParams; + export type PromotionCodeUpdateParams = Stripe_.PromotionCodeUpdateParams; + export type PromotionCodeListParams = Stripe_.PromotionCodeListParams; + export type PromotionCodeSerializeBatchCreateParams = Stripe_.PromotionCodeSerializeBatchCreateParams; + export type PromotionCodeSerializeBatchUpdateParams = Stripe_.PromotionCodeSerializeBatchUpdateParams; + export type PromotionCodeResource = Stripe_.PromotionCodeResource; + export type Quote = Stripe_.Quote; + export type QuoteCreateParams = Stripe_.QuoteCreateParams; + export type QuoteRetrieveParams = Stripe_.QuoteRetrieveParams; + export type QuoteUpdateParams = Stripe_.QuoteUpdateParams; + export type QuoteListParams = Stripe_.QuoteListParams; + export type QuoteAcceptParams = Stripe_.QuoteAcceptParams; + export type QuoteCancelParams = Stripe_.QuoteCancelParams; + export type QuoteFinalizeQuoteParams = Stripe_.QuoteFinalizeQuoteParams; + export type QuoteListPreviewInvoiceLinesParams = Stripe_.QuoteListPreviewInvoiceLinesParams; + export type QuoteListComputedUpfrontLineItemsParams = Stripe_.QuoteListComputedUpfrontLineItemsParams; + export type QuoteListLineItemsParams = Stripe_.QuoteListLineItemsParams; + export type QuoteListLinesParams = Stripe_.QuoteListLinesParams; + export type QuoteListPreviewInvoicesParams = Stripe_.QuoteListPreviewInvoicesParams; + export type QuoteListPreviewSubscriptionSchedulesParams = Stripe_.QuoteListPreviewSubscriptionSchedulesParams; + export type QuoteMarkDraftParams = Stripe_.QuoteMarkDraftParams; + export type QuoteMarkStaleParams = Stripe_.QuoteMarkStaleParams; + export type QuotePdfParams = Stripe_.QuotePdfParams; + export type QuoteReestimateParams = Stripe_.QuoteReestimateParams; + export type QuoteResource = Stripe_.QuoteResource; + export type Refund = Stripe_.Refund; + export type RefundCreateParams = Stripe_.RefundCreateParams; + export type RefundRetrieveParams = Stripe_.RefundRetrieveParams; + export type RefundUpdateParams = Stripe_.RefundUpdateParams; + export type RefundListParams = Stripe_.RefundListParams; + export type RefundCancelParams = Stripe_.RefundCancelParams; + export type RefundResource = Stripe_.RefundResource; + export type Review = Stripe_.Review; + export type ReviewRetrieveParams = Stripe_.ReviewRetrieveParams; + export type ReviewListParams = Stripe_.ReviewListParams; + export type ReviewApproveParams = Stripe_.ReviewApproveParams; + export type ReviewResource = Stripe_.ReviewResource; + export type SetupAttempt = Stripe_.SetupAttempt; + export type SetupAttemptListParams = Stripe_.SetupAttemptListParams; + export type SetupAttemptResource = Stripe_.SetupAttemptResource; + export type SetupIntent = Stripe_.SetupIntent; + export type SetupIntentCreateParams = Stripe_.SetupIntentCreateParams; + export type SetupIntentRetrieveParams = Stripe_.SetupIntentRetrieveParams; + export type SetupIntentUpdateParams = Stripe_.SetupIntentUpdateParams; + export type SetupIntentListParams = Stripe_.SetupIntentListParams; + export type SetupIntentCancelParams = Stripe_.SetupIntentCancelParams; + export type SetupIntentConfirmParams = Stripe_.SetupIntentConfirmParams; + export type SetupIntentVerifyMicrodepositsParams = Stripe_.SetupIntentVerifyMicrodepositsParams; + export type SetupIntentResource = Stripe_.SetupIntentResource; + export type ShippingRate = Stripe_.ShippingRate; + export type ShippingRateCreateParams = Stripe_.ShippingRateCreateParams; + export type ShippingRateRetrieveParams = Stripe_.ShippingRateRetrieveParams; + export type ShippingRateUpdateParams = Stripe_.ShippingRateUpdateParams; + export type ShippingRateListParams = Stripe_.ShippingRateListParams; + export type ShippingRateResource = Stripe_.ShippingRateResource; + export type Source = Stripe_.Source; + export type SourceCreateParams = Stripe_.SourceCreateParams; + export type SourceRetrieveParams = Stripe_.SourceRetrieveParams; + export type SourceUpdateParams = Stripe_.SourceUpdateParams; + export type SourceListSourceTransactionsParams = Stripe_.SourceListSourceTransactionsParams; + export type SourceVerifyParams = Stripe_.SourceVerifyParams; + export type SourceResource = Stripe_.SourceResource; + export type Subscription = Stripe_.Subscription; + export type SubscriptionCreateParams = Stripe_.SubscriptionCreateParams; + export type SubscriptionRetrieveParams = Stripe_.SubscriptionRetrieveParams; + export type SubscriptionUpdateParams = Stripe_.SubscriptionUpdateParams; + export type SubscriptionListParams = Stripe_.SubscriptionListParams; + export type SubscriptionCancelParams = Stripe_.SubscriptionCancelParams; + export type SubscriptionDeleteDiscountParams = Stripe_.SubscriptionDeleteDiscountParams; + export type SubscriptionMigrateParams = Stripe_.SubscriptionMigrateParams; + export type SubscriptionPauseParams = Stripe_.SubscriptionPauseParams; + export type SubscriptionResumeParams = Stripe_.SubscriptionResumeParams; + export type SubscriptionSearchParams = Stripe_.SubscriptionSearchParams; + export type SubscriptionSerializeBatchCancelParams = Stripe_.SubscriptionSerializeBatchCancelParams; + export type SubscriptionSerializeBatchMigrateParams = Stripe_.SubscriptionSerializeBatchMigrateParams; + export type SubscriptionSerializeBatchUpdateParams = Stripe_.SubscriptionSerializeBatchUpdateParams; + export type SubscriptionResource = Stripe_.SubscriptionResource; + export type SubscriptionItem = Stripe_.SubscriptionItem; + export type DeletedSubscriptionItem = Stripe_.DeletedSubscriptionItem; + export type SubscriptionItemCreateParams = Stripe_.SubscriptionItemCreateParams; + export type SubscriptionItemRetrieveParams = Stripe_.SubscriptionItemRetrieveParams; + export type SubscriptionItemUpdateParams = Stripe_.SubscriptionItemUpdateParams; + export type SubscriptionItemListParams = Stripe_.SubscriptionItemListParams; + export type SubscriptionItemDeleteParams = Stripe_.SubscriptionItemDeleteParams; + export type SubscriptionItemResource = Stripe_.SubscriptionItemResource; + export type SubscriptionSchedule = Stripe_.SubscriptionSchedule; + export type SubscriptionScheduleCreateParams = Stripe_.SubscriptionScheduleCreateParams; + export type SubscriptionScheduleRetrieveParams = Stripe_.SubscriptionScheduleRetrieveParams; + export type SubscriptionScheduleUpdateParams = Stripe_.SubscriptionScheduleUpdateParams; + export type SubscriptionScheduleListParams = Stripe_.SubscriptionScheduleListParams; + export type SubscriptionScheduleAmendParams = Stripe_.SubscriptionScheduleAmendParams; + export type SubscriptionScheduleCancelParams = Stripe_.SubscriptionScheduleCancelParams; + export type SubscriptionScheduleReleaseParams = Stripe_.SubscriptionScheduleReleaseParams; + export type SubscriptionScheduleResource = Stripe_.SubscriptionScheduleResource; + export type TaxCode = Stripe_.TaxCode; + export type TaxCodeRetrieveParams = Stripe_.TaxCodeRetrieveParams; + export type TaxCodeListParams = Stripe_.TaxCodeListParams; + export type TaxCodeResource = Stripe_.TaxCodeResource; + export type TaxId = Stripe_.TaxId; + export type DeletedTaxId = Stripe_.DeletedTaxId; + export type TaxIdCreateParams = Stripe_.TaxIdCreateParams; + export type TaxIdRetrieveParams = Stripe_.TaxIdRetrieveParams; + export type TaxIdListParams = Stripe_.TaxIdListParams; + export type TaxIdDeleteParams = Stripe_.TaxIdDeleteParams; + export type TaxIdResource = Stripe_.TaxIdResource; + export type TaxRate = Stripe_.TaxRate; + export type TaxRateCreateParams = Stripe_.TaxRateCreateParams; + export type TaxRateRetrieveParams = Stripe_.TaxRateRetrieveParams; + export type TaxRateUpdateParams = Stripe_.TaxRateUpdateParams; + export type TaxRateListParams = Stripe_.TaxRateListParams; + export type TaxRateResource = Stripe_.TaxRateResource; + export type Token = Stripe_.Token; + export type TokenCreateParams = Stripe_.TokenCreateParams; + export type TokenRetrieveParams = Stripe_.TokenRetrieveParams; + export type TokenResource = Stripe_.TokenResource; + export type Topup = Stripe_.Topup; + export type TopupCreateParams = Stripe_.TopupCreateParams; + export type TopupRetrieveParams = Stripe_.TopupRetrieveParams; + export type TopupUpdateParams = Stripe_.TopupUpdateParams; + export type TopupListParams = Stripe_.TopupListParams; + export type TopupCancelParams = Stripe_.TopupCancelParams; + export type TopupResource = Stripe_.TopupResource; + export type Transfer = Stripe_.Transfer; + export type TransferCreateParams = Stripe_.TransferCreateParams; + export type TransferRetrieveParams = Stripe_.TransferRetrieveParams; + export type TransferUpdateParams = Stripe_.TransferUpdateParams; + export type TransferListParams = Stripe_.TransferListParams; + export type TransferCreateReversalParams = Stripe_.TransferCreateReversalParams; + export type TransferListReversalsParams = Stripe_.TransferListReversalsParams; + export type TransferRetrieveReversalParams = Stripe_.TransferRetrieveReversalParams; + export type TransferUpdateReversalParams = Stripe_.TransferUpdateReversalParams; + export type TransferResource = Stripe_.TransferResource; + export type WebhookEndpoint = Stripe_.WebhookEndpoint; + export type DeletedWebhookEndpoint = Stripe_.DeletedWebhookEndpoint; + export type WebhookEndpointCreateParams = Stripe_.WebhookEndpointCreateParams; + export type WebhookEndpointRetrieveParams = Stripe_.WebhookEndpointRetrieveParams; + export type WebhookEndpointUpdateParams = Stripe_.WebhookEndpointUpdateParams; + export type WebhookEndpointListParams = Stripe_.WebhookEndpointListParams; + export type WebhookEndpointDeleteParams = Stripe_.WebhookEndpointDeleteParams; + export type WebhookEndpointResource = Stripe_.WebhookEndpointResource; + export type Application = Stripe_.Application; + export type DeletedApplication = Stripe_.DeletedApplication; + export type BalanceTransactionSource = Stripe_.BalanceTransactionSource; + export type BankAccount = Stripe_.BankAccount; + export type DeletedBankAccount = Stripe_.DeletedBankAccount; + export type Card = Stripe_.Card; + export type DeletedCard = Stripe_.DeletedCard; + export type ConnectCollectionTransfer = Stripe_.ConnectCollectionTransfer; + export type Discount = Stripe_.Discount; + export type DeletedDiscount = Stripe_.DeletedDiscount; + export type FundingInstructions = Stripe_.FundingInstructions; + export type LineItem = Stripe_.LineItem; + export type QuoteLine = Stripe_.QuoteLine; + export type ReserveTransaction = Stripe_.ReserveTransaction; + export type SourceMandateNotification = Stripe_.SourceMandateNotification; + export type SourceTransaction = Stripe_.SourceTransaction; + export type TaxDeductedAtSource = Stripe_.TaxDeductedAtSource; + export type Capability = Stripe_.Capability; + export type LoginLink = Stripe_.LoginLink; + export type Person = Stripe_.Person; + export type DeletedPerson = Stripe_.DeletedPerson; + export type FeeRefund = Stripe_.FeeRefund; + export type CreditNoteLineItem = Stripe_.CreditNoteLineItem; + export type CustomerBalanceTransaction = Stripe_.CustomerBalanceTransaction; + export type CashBalance = Stripe_.CashBalance; + export type CustomerCashBalanceTransaction = Stripe_.CustomerCashBalanceTransaction; + export type CustomerSource = Stripe_.CustomerSource; + export type DeletedCustomerSource = Stripe_.DeletedCustomerSource; + export type InvoiceLineItem = Stripe_.InvoiceLineItem; + export type PaymentIntentAmountDetailsLineItem = Stripe_.PaymentIntentAmountDetailsLineItem; + export type ProductFeature = Stripe_.ProductFeature; + export type DeletedProductFeature = Stripe_.DeletedProductFeature; + export type QuotePreviewInvoice = Stripe_.QuotePreviewInvoice; + export type QuotePreviewSubscriptionSchedule = Stripe_.QuotePreviewSubscriptionSchedule; + export type TransferReversal = Stripe_.TransferReversal; export namespace AccountCreateParams { - export type BusinessProfile = Stripe.AccountCreateParams.BusinessProfile; - export type BusinessType = Stripe.AccountCreateParams.BusinessType; - export type Capabilities = Stripe.AccountCreateParams.Capabilities; - export type Company = Stripe.AccountCreateParams.Company; - export type Controller = Stripe.AccountCreateParams.Controller; - export type Documents = Stripe.AccountCreateParams.Documents; - export type ExternalAccount = Stripe.AccountCreateParams.ExternalAccount; - export type Groups = Stripe.AccountCreateParams.Groups; - export type Individual = Stripe.AccountCreateParams.Individual; - export type RiskControls = Stripe.AccountCreateParams.RiskControls; - export type Settings = Stripe.AccountCreateParams.Settings; - export type TosAcceptance = Stripe.AccountCreateParams.TosAcceptance; - export type Type = Stripe.AccountCreateParams.Type; + export type BusinessProfile = Stripe_.AccountCreateParams.BusinessProfile; + export type BusinessType = Stripe_.AccountCreateParams.BusinessType; + export type Capabilities = Stripe_.AccountCreateParams.Capabilities; + export type Company = Stripe_.AccountCreateParams.Company; + export type Controller = Stripe_.AccountCreateParams.Controller; + export type Documents = Stripe_.AccountCreateParams.Documents; + export type ExternalAccount = Stripe_.AccountCreateParams.ExternalAccount; + export type Groups = Stripe_.AccountCreateParams.Groups; + export type Individual = Stripe_.AccountCreateParams.Individual; + export type RiskControls = Stripe_.AccountCreateParams.RiskControls; + export type Settings = Stripe_.AccountCreateParams.Settings; + export type TosAcceptance = Stripe_.AccountCreateParams.TosAcceptance; + export type Type = Stripe_.AccountCreateParams.Type; + export namespace BusinessProfile { + export type AnnualRevenue = Stripe_.AccountCreateParams.BusinessProfile.AnnualRevenue; + export type MinorityOwnedBusinessDesignation = Stripe_.AccountCreateParams.BusinessProfile.MinorityOwnedBusinessDesignation; + export type MonthlyEstimatedRevenue = Stripe_.AccountCreateParams.BusinessProfile.MonthlyEstimatedRevenue; + } + export namespace Capabilities { + export type AcssDebitPayments = Stripe_.AccountCreateParams.Capabilities.AcssDebitPayments; + export type AffirmPayments = Stripe_.AccountCreateParams.Capabilities.AffirmPayments; + export type AfterpayClearpayPayments = Stripe_.AccountCreateParams.Capabilities.AfterpayClearpayPayments; + export type AlmaPayments = Stripe_.AccountCreateParams.Capabilities.AlmaPayments; + export type AmazonPayPayments = Stripe_.AccountCreateParams.Capabilities.AmazonPayPayments; + export type AppDistribution = Stripe_.AccountCreateParams.Capabilities.AppDistribution; + export type AuBecsDebitPayments = Stripe_.AccountCreateParams.Capabilities.AuBecsDebitPayments; + export type AutomaticIndirectTax = Stripe_.AccountCreateParams.Capabilities.AutomaticIndirectTax; + export type BacsDebitPayments = Stripe_.AccountCreateParams.Capabilities.BacsDebitPayments; + export type BancontactPayments = Stripe_.AccountCreateParams.Capabilities.BancontactPayments; + export type BankTransferPayments = Stripe_.AccountCreateParams.Capabilities.BankTransferPayments; + export type BilliePayments = Stripe_.AccountCreateParams.Capabilities.BilliePayments; + export type BizumPayments = Stripe_.AccountCreateParams.Capabilities.BizumPayments; + export type BlikPayments = Stripe_.AccountCreateParams.Capabilities.BlikPayments; + export type BoletoPayments = Stripe_.AccountCreateParams.Capabilities.BoletoPayments; + export type CardIssuing = Stripe_.AccountCreateParams.Capabilities.CardIssuing; + export type CardPayments = Stripe_.AccountCreateParams.Capabilities.CardPayments; + export type CartesBancairesPayments = Stripe_.AccountCreateParams.Capabilities.CartesBancairesPayments; + export type CashappPayments = Stripe_.AccountCreateParams.Capabilities.CashappPayments; + export type CryptoPayments = Stripe_.AccountCreateParams.Capabilities.CryptoPayments; + export type EpsPayments = Stripe_.AccountCreateParams.Capabilities.EpsPayments; + export type FpxPayments = Stripe_.AccountCreateParams.Capabilities.FpxPayments; + export type GbBankTransferPayments = Stripe_.AccountCreateParams.Capabilities.GbBankTransferPayments; + export type GiropayPayments = Stripe_.AccountCreateParams.Capabilities.GiropayPayments; + export type GopayPayments = Stripe_.AccountCreateParams.Capabilities.GopayPayments; + export type GrabpayPayments = Stripe_.AccountCreateParams.Capabilities.GrabpayPayments; + export type IdBankTransferPayments = Stripe_.AccountCreateParams.Capabilities.IdBankTransferPayments; + export type IdBankTransferPaymentsBca = Stripe_.AccountCreateParams.Capabilities.IdBankTransferPaymentsBca; + export type IdealPayments = Stripe_.AccountCreateParams.Capabilities.IdealPayments; + export type IndiaInternationalPayments = Stripe_.AccountCreateParams.Capabilities.IndiaInternationalPayments; + export type JcbPayments = Stripe_.AccountCreateParams.Capabilities.JcbPayments; + export type JpBankTransferPayments = Stripe_.AccountCreateParams.Capabilities.JpBankTransferPayments; + export type KakaoPayPayments = Stripe_.AccountCreateParams.Capabilities.KakaoPayPayments; + export type KlarnaPayments = Stripe_.AccountCreateParams.Capabilities.KlarnaPayments; + export type KonbiniPayments = Stripe_.AccountCreateParams.Capabilities.KonbiniPayments; + export type KrCardPayments = Stripe_.AccountCreateParams.Capabilities.KrCardPayments; + export type LegacyPayments = Stripe_.AccountCreateParams.Capabilities.LegacyPayments; + export type LinkPayments = Stripe_.AccountCreateParams.Capabilities.LinkPayments; + export type MbWayPayments = Stripe_.AccountCreateParams.Capabilities.MbWayPayments; + export type MobilepayPayments = Stripe_.AccountCreateParams.Capabilities.MobilepayPayments; + export type MultibancoPayments = Stripe_.AccountCreateParams.Capabilities.MultibancoPayments; + export type MxBankTransferPayments = Stripe_.AccountCreateParams.Capabilities.MxBankTransferPayments; + export type NaverPayPayments = Stripe_.AccountCreateParams.Capabilities.NaverPayPayments; + export type NzBankAccountBecsDebitPayments = Stripe_.AccountCreateParams.Capabilities.NzBankAccountBecsDebitPayments; + export type OxxoPayments = Stripe_.AccountCreateParams.Capabilities.OxxoPayments; + export type P24Payments = Stripe_.AccountCreateParams.Capabilities.P24Payments; + export type PayByBankPayments = Stripe_.AccountCreateParams.Capabilities.PayByBankPayments; + export type PaycoPayments = Stripe_.AccountCreateParams.Capabilities.PaycoPayments; + export type PaynowPayments = Stripe_.AccountCreateParams.Capabilities.PaynowPayments; + export type PaypalPayments = Stripe_.AccountCreateParams.Capabilities.PaypalPayments; + export type PaypayPayments = Stripe_.AccountCreateParams.Capabilities.PaypayPayments; + export type PaytoPayments = Stripe_.AccountCreateParams.Capabilities.PaytoPayments; + export type PixPayments = Stripe_.AccountCreateParams.Capabilities.PixPayments; + export type PromptpayPayments = Stripe_.AccountCreateParams.Capabilities.PromptpayPayments; + export type QrisPayments = Stripe_.AccountCreateParams.Capabilities.QrisPayments; + export type RechnungPayments = Stripe_.AccountCreateParams.Capabilities.RechnungPayments; + export type RevolutPayPayments = Stripe_.AccountCreateParams.Capabilities.RevolutPayPayments; + export type SamsungPayPayments = Stripe_.AccountCreateParams.Capabilities.SamsungPayPayments; + export type SatispayPayments = Stripe_.AccountCreateParams.Capabilities.SatispayPayments; + export type ScalapayPayments = Stripe_.AccountCreateParams.Capabilities.ScalapayPayments; + export type SepaBankTransferPayments = Stripe_.AccountCreateParams.Capabilities.SepaBankTransferPayments; + export type SepaDebitPayments = Stripe_.AccountCreateParams.Capabilities.SepaDebitPayments; + export type ShopeepayPayments = Stripe_.AccountCreateParams.Capabilities.ShopeepayPayments; + export type SofortPayments = Stripe_.AccountCreateParams.Capabilities.SofortPayments; + export type StripeBalancePayments = Stripe_.AccountCreateParams.Capabilities.StripeBalancePayments; + export type SunbitPayments = Stripe_.AccountCreateParams.Capabilities.SunbitPayments; + export type SwishPayments = Stripe_.AccountCreateParams.Capabilities.SwishPayments; + export type TaxReportingUs1099K = Stripe_.AccountCreateParams.Capabilities.TaxReportingUs1099K; + export type TaxReportingUs1099Misc = Stripe_.AccountCreateParams.Capabilities.TaxReportingUs1099Misc; + export type Transfers = Stripe_.AccountCreateParams.Capabilities.Transfers; + export type Treasury = Stripe_.AccountCreateParams.Capabilities.Treasury; + export type TreasuryEvolve = Stripe_.AccountCreateParams.Capabilities.TreasuryEvolve; + export type TreasuryFifthThird = Stripe_.AccountCreateParams.Capabilities.TreasuryFifthThird; + export type TreasuryGoldmanSachs = Stripe_.AccountCreateParams.Capabilities.TreasuryGoldmanSachs; + export type TwintPayments = Stripe_.AccountCreateParams.Capabilities.TwintPayments; + export type UpiPayments = Stripe_.AccountCreateParams.Capabilities.UpiPayments; + export type UsBankAccountAchPayments = Stripe_.AccountCreateParams.Capabilities.UsBankAccountAchPayments; + export type UsBankTransferPayments = Stripe_.AccountCreateParams.Capabilities.UsBankTransferPayments; + export type ZipPayments = Stripe_.AccountCreateParams.Capabilities.ZipPayments; + } + export namespace Company { + export type DirectorshipDeclaration = Stripe_.AccountCreateParams.Company.DirectorshipDeclaration; + export type OwnershipDeclaration = Stripe_.AccountCreateParams.Company.OwnershipDeclaration; + export type OwnershipExemptionReason = Stripe_.AccountCreateParams.Company.OwnershipExemptionReason; + export type RegistrationDate = Stripe_.AccountCreateParams.Company.RegistrationDate; + export type RepresentativeDeclaration = Stripe_.AccountCreateParams.Company.RepresentativeDeclaration; + export type Structure = Stripe_.AccountCreateParams.Company.Structure; + export type Verification = Stripe_.AccountCreateParams.Company.Verification; + export namespace Verification { + export type Document = Stripe_.AccountCreateParams.Company.Verification.Document; + } + } + export namespace Controller { + export type Application = Stripe_.AccountCreateParams.Controller.Application; + export type Dashboard = Stripe_.AccountCreateParams.Controller.Dashboard; + export type Fees = Stripe_.AccountCreateParams.Controller.Fees; + export type Losses = Stripe_.AccountCreateParams.Controller.Losses; + export type RequirementCollection = Stripe_.AccountCreateParams.Controller.RequirementCollection; + export type StripeDashboard = Stripe_.AccountCreateParams.Controller.StripeDashboard; + export namespace Dashboard { + export type Type = Stripe_.AccountCreateParams.Controller.Dashboard.Type; + } + export namespace Fees { + export type Payer = Stripe_.AccountCreateParams.Controller.Fees.Payer; + } + export namespace Losses { + export type Payments = Stripe_.AccountCreateParams.Controller.Losses.Payments; + } + export namespace StripeDashboard { + export type Type = Stripe_.AccountCreateParams.Controller.StripeDashboard.Type; + } + } + export namespace Documents { + export type BankAccountOwnershipVerification = Stripe_.AccountCreateParams.Documents.BankAccountOwnershipVerification; + export type CompanyLicense = Stripe_.AccountCreateParams.Documents.CompanyLicense; + export type CompanyMemorandumOfAssociation = Stripe_.AccountCreateParams.Documents.CompanyMemorandumOfAssociation; + export type CompanyMinisterialDecree = Stripe_.AccountCreateParams.Documents.CompanyMinisterialDecree; + export type CompanyRegistrationVerification = Stripe_.AccountCreateParams.Documents.CompanyRegistrationVerification; + export type CompanyTaxIdVerification = Stripe_.AccountCreateParams.Documents.CompanyTaxIdVerification; + export type ProofOfAddress = Stripe_.AccountCreateParams.Documents.ProofOfAddress; + export type ProofOfRegistration = Stripe_.AccountCreateParams.Documents.ProofOfRegistration; + export type ProofOfUltimateBeneficialOwnership = Stripe_.AccountCreateParams.Documents.ProofOfUltimateBeneficialOwnership; + export namespace ProofOfRegistration { + export type Signer = Stripe_.AccountCreateParams.Documents.ProofOfRegistration.Signer; + } + export namespace ProofOfUltimateBeneficialOwnership { + export type Signer = Stripe_.AccountCreateParams.Documents.ProofOfUltimateBeneficialOwnership.Signer; + } + } + export namespace Individual { + export type Dob = Stripe_.AccountCreateParams.Individual.Dob; + export type PoliticalExposure = Stripe_.AccountCreateParams.Individual.PoliticalExposure; + export type Relationship = Stripe_.AccountCreateParams.Individual.Relationship; + export type Verification = Stripe_.AccountCreateParams.Individual.Verification; + export namespace Verification { + export type AdditionalDocument = Stripe_.AccountCreateParams.Individual.Verification.AdditionalDocument; + export type Document = Stripe_.AccountCreateParams.Individual.Verification.Document; + } + } + export namespace RiskControls { + export type Charges = Stripe_.AccountCreateParams.RiskControls.Charges; + export type Payouts = Stripe_.AccountCreateParams.RiskControls.Payouts; + } + export namespace Settings { + export type BacsDebitPayments = Stripe_.AccountCreateParams.Settings.BacsDebitPayments; + export type BankBcaOnboarding = Stripe_.AccountCreateParams.Settings.BankBcaOnboarding; + export type Branding = Stripe_.AccountCreateParams.Settings.Branding; + export type Capital = Stripe_.AccountCreateParams.Settings.Capital; + export type CardIssuing = Stripe_.AccountCreateParams.Settings.CardIssuing; + export type CardPayments = Stripe_.AccountCreateParams.Settings.CardPayments; + export type Invoices = Stripe_.AccountCreateParams.Settings.Invoices; + export type Payments = Stripe_.AccountCreateParams.Settings.Payments; + export type Payouts = Stripe_.AccountCreateParams.Settings.Payouts; + export type PaypayPayments = Stripe_.AccountCreateParams.Settings.PaypayPayments; + export type SmartDisputes = Stripe_.AccountCreateParams.Settings.SmartDisputes; + export type TaxForms = Stripe_.AccountCreateParams.Settings.TaxForms; + export type Treasury = Stripe_.AccountCreateParams.Settings.Treasury; + export namespace CardIssuing { + export type TosAcceptance = Stripe_.AccountCreateParams.Settings.CardIssuing.TosAcceptance; + } + export namespace CardPayments { + export type DeclineOn = Stripe_.AccountCreateParams.Settings.CardPayments.DeclineOn; + } + export namespace Invoices { + export type HostedPaymentMethodSave = Stripe_.AccountCreateParams.Settings.Invoices.HostedPaymentMethodSave; + } + export namespace Payouts { + export type Schedule = Stripe_.AccountCreateParams.Settings.Payouts.Schedule; + export namespace Schedule { + export type Interval = Stripe_.AccountCreateParams.Settings.Payouts.Schedule.Interval; + export type WeeklyAnchor = Stripe_.AccountCreateParams.Settings.Payouts.Schedule.WeeklyAnchor; + export type WeeklyPayoutDay = Stripe_.AccountCreateParams.Settings.Payouts.Schedule.WeeklyPayoutDay; + } + } + export namespace PaypayPayments { + export type GoodsType = Stripe_.AccountCreateParams.Settings.PaypayPayments.GoodsType; + export type Site = Stripe_.AccountCreateParams.Settings.PaypayPayments.Site; + export namespace Site { + export type Accessible = Stripe_.AccountCreateParams.Settings.PaypayPayments.Site.Accessible; + export type InDevelopment = Stripe_.AccountCreateParams.Settings.PaypayPayments.Site.InDevelopment; + export type Restricted = Stripe_.AccountCreateParams.Settings.PaypayPayments.Site.Restricted; + export type Type = Stripe_.AccountCreateParams.Settings.PaypayPayments.Site.Type; + } + } + export namespace SmartDisputes { + export type AutoRespond = Stripe_.AccountCreateParams.Settings.SmartDisputes.AutoRespond; + export namespace AutoRespond { + export type Preference = Stripe_.AccountCreateParams.Settings.SmartDisputes.AutoRespond.Preference; + } + } + export namespace Treasury { + export type TosAcceptance = Stripe_.AccountCreateParams.Settings.Treasury.TosAcceptance; + } + } } export namespace AccountUpdateParams { - export type BusinessProfile = Stripe.AccountUpdateParams.BusinessProfile; - export type BusinessType = Stripe.AccountUpdateParams.BusinessType; - export type Capabilities = Stripe.AccountUpdateParams.Capabilities; - export type Company = Stripe.AccountUpdateParams.Company; - export type Documents = Stripe.AccountUpdateParams.Documents; - export type BankAccount = Stripe.AccountUpdateParams.BankAccount; - export type Card = Stripe.AccountUpdateParams.Card; - export type CardToken = Stripe.AccountUpdateParams.CardToken; - export type Groups = Stripe.AccountUpdateParams.Groups; - export type Individual = Stripe.AccountUpdateParams.Individual; - export type RiskControls = Stripe.AccountUpdateParams.RiskControls; - export type Settings = Stripe.AccountUpdateParams.Settings; - export type TosAcceptance = Stripe.AccountUpdateParams.TosAcceptance; + export type BusinessProfile = Stripe_.AccountUpdateParams.BusinessProfile; + export type BusinessType = Stripe_.AccountUpdateParams.BusinessType; + export type Capabilities = Stripe_.AccountUpdateParams.Capabilities; + export type Company = Stripe_.AccountUpdateParams.Company; + export type Documents = Stripe_.AccountUpdateParams.Documents; + export type BankAccount = Stripe_.AccountUpdateParams.BankAccount; + export type Card = Stripe_.AccountUpdateParams.Card; + export type CardToken = Stripe_.AccountUpdateParams.CardToken; + export type Groups = Stripe_.AccountUpdateParams.Groups; + export type Individual = Stripe_.AccountUpdateParams.Individual; + export type RiskControls = Stripe_.AccountUpdateParams.RiskControls; + export type Settings = Stripe_.AccountUpdateParams.Settings; + export type TosAcceptance = Stripe_.AccountUpdateParams.TosAcceptance; + export namespace BankAccount { + export type AccountHolderType = Stripe_.AccountUpdateParams.BankAccount.AccountHolderType; + } + export namespace BusinessProfile { + export type AnnualRevenue = Stripe_.AccountUpdateParams.BusinessProfile.AnnualRevenue; + export type MinorityOwnedBusinessDesignation = Stripe_.AccountUpdateParams.BusinessProfile.MinorityOwnedBusinessDesignation; + export type MonthlyEstimatedRevenue = Stripe_.AccountUpdateParams.BusinessProfile.MonthlyEstimatedRevenue; + } + export namespace Capabilities { + export type AcssDebitPayments = Stripe_.AccountUpdateParams.Capabilities.AcssDebitPayments; + export type AffirmPayments = Stripe_.AccountUpdateParams.Capabilities.AffirmPayments; + export type AfterpayClearpayPayments = Stripe_.AccountUpdateParams.Capabilities.AfterpayClearpayPayments; + export type AlmaPayments = Stripe_.AccountUpdateParams.Capabilities.AlmaPayments; + export type AmazonPayPayments = Stripe_.AccountUpdateParams.Capabilities.AmazonPayPayments; + export type AppDistribution = Stripe_.AccountUpdateParams.Capabilities.AppDistribution; + export type AuBecsDebitPayments = Stripe_.AccountUpdateParams.Capabilities.AuBecsDebitPayments; + export type AutomaticIndirectTax = Stripe_.AccountUpdateParams.Capabilities.AutomaticIndirectTax; + export type BacsDebitPayments = Stripe_.AccountUpdateParams.Capabilities.BacsDebitPayments; + export type BancontactPayments = Stripe_.AccountUpdateParams.Capabilities.BancontactPayments; + export type BankTransferPayments = Stripe_.AccountUpdateParams.Capabilities.BankTransferPayments; + export type BilliePayments = Stripe_.AccountUpdateParams.Capabilities.BilliePayments; + export type BizumPayments = Stripe_.AccountUpdateParams.Capabilities.BizumPayments; + export type BlikPayments = Stripe_.AccountUpdateParams.Capabilities.BlikPayments; + export type BoletoPayments = Stripe_.AccountUpdateParams.Capabilities.BoletoPayments; + export type CardIssuing = Stripe_.AccountUpdateParams.Capabilities.CardIssuing; + export type CardPayments = Stripe_.AccountUpdateParams.Capabilities.CardPayments; + export type CartesBancairesPayments = Stripe_.AccountUpdateParams.Capabilities.CartesBancairesPayments; + export type CashappPayments = Stripe_.AccountUpdateParams.Capabilities.CashappPayments; + export type CryptoPayments = Stripe_.AccountUpdateParams.Capabilities.CryptoPayments; + export type EpsPayments = Stripe_.AccountUpdateParams.Capabilities.EpsPayments; + export type FpxPayments = Stripe_.AccountUpdateParams.Capabilities.FpxPayments; + export type GbBankTransferPayments = Stripe_.AccountUpdateParams.Capabilities.GbBankTransferPayments; + export type GiropayPayments = Stripe_.AccountUpdateParams.Capabilities.GiropayPayments; + export type GopayPayments = Stripe_.AccountUpdateParams.Capabilities.GopayPayments; + export type GrabpayPayments = Stripe_.AccountUpdateParams.Capabilities.GrabpayPayments; + export type IdBankTransferPayments = Stripe_.AccountUpdateParams.Capabilities.IdBankTransferPayments; + export type IdBankTransferPaymentsBca = Stripe_.AccountUpdateParams.Capabilities.IdBankTransferPaymentsBca; + export type IdealPayments = Stripe_.AccountUpdateParams.Capabilities.IdealPayments; + export type IndiaInternationalPayments = Stripe_.AccountUpdateParams.Capabilities.IndiaInternationalPayments; + export type JcbPayments = Stripe_.AccountUpdateParams.Capabilities.JcbPayments; + export type JpBankTransferPayments = Stripe_.AccountUpdateParams.Capabilities.JpBankTransferPayments; + export type KakaoPayPayments = Stripe_.AccountUpdateParams.Capabilities.KakaoPayPayments; + export type KlarnaPayments = Stripe_.AccountUpdateParams.Capabilities.KlarnaPayments; + export type KonbiniPayments = Stripe_.AccountUpdateParams.Capabilities.KonbiniPayments; + export type KrCardPayments = Stripe_.AccountUpdateParams.Capabilities.KrCardPayments; + export type LegacyPayments = Stripe_.AccountUpdateParams.Capabilities.LegacyPayments; + export type LinkPayments = Stripe_.AccountUpdateParams.Capabilities.LinkPayments; + export type MbWayPayments = Stripe_.AccountUpdateParams.Capabilities.MbWayPayments; + export type MobilepayPayments = Stripe_.AccountUpdateParams.Capabilities.MobilepayPayments; + export type MultibancoPayments = Stripe_.AccountUpdateParams.Capabilities.MultibancoPayments; + export type MxBankTransferPayments = Stripe_.AccountUpdateParams.Capabilities.MxBankTransferPayments; + export type NaverPayPayments = Stripe_.AccountUpdateParams.Capabilities.NaverPayPayments; + export type NzBankAccountBecsDebitPayments = Stripe_.AccountUpdateParams.Capabilities.NzBankAccountBecsDebitPayments; + export type OxxoPayments = Stripe_.AccountUpdateParams.Capabilities.OxxoPayments; + export type P24Payments = Stripe_.AccountUpdateParams.Capabilities.P24Payments; + export type PayByBankPayments = Stripe_.AccountUpdateParams.Capabilities.PayByBankPayments; + export type PaycoPayments = Stripe_.AccountUpdateParams.Capabilities.PaycoPayments; + export type PaynowPayments = Stripe_.AccountUpdateParams.Capabilities.PaynowPayments; + export type PaypalPayments = Stripe_.AccountUpdateParams.Capabilities.PaypalPayments; + export type PaypayPayments = Stripe_.AccountUpdateParams.Capabilities.PaypayPayments; + export type PaytoPayments = Stripe_.AccountUpdateParams.Capabilities.PaytoPayments; + export type PixPayments = Stripe_.AccountUpdateParams.Capabilities.PixPayments; + export type PromptpayPayments = Stripe_.AccountUpdateParams.Capabilities.PromptpayPayments; + export type QrisPayments = Stripe_.AccountUpdateParams.Capabilities.QrisPayments; + export type RechnungPayments = Stripe_.AccountUpdateParams.Capabilities.RechnungPayments; + export type RevolutPayPayments = Stripe_.AccountUpdateParams.Capabilities.RevolutPayPayments; + export type SamsungPayPayments = Stripe_.AccountUpdateParams.Capabilities.SamsungPayPayments; + export type SatispayPayments = Stripe_.AccountUpdateParams.Capabilities.SatispayPayments; + export type ScalapayPayments = Stripe_.AccountUpdateParams.Capabilities.ScalapayPayments; + export type SepaBankTransferPayments = Stripe_.AccountUpdateParams.Capabilities.SepaBankTransferPayments; + export type SepaDebitPayments = Stripe_.AccountUpdateParams.Capabilities.SepaDebitPayments; + export type ShopeepayPayments = Stripe_.AccountUpdateParams.Capabilities.ShopeepayPayments; + export type SofortPayments = Stripe_.AccountUpdateParams.Capabilities.SofortPayments; + export type StripeBalancePayments = Stripe_.AccountUpdateParams.Capabilities.StripeBalancePayments; + export type SunbitPayments = Stripe_.AccountUpdateParams.Capabilities.SunbitPayments; + export type SwishPayments = Stripe_.AccountUpdateParams.Capabilities.SwishPayments; + export type TaxReportingUs1099K = Stripe_.AccountUpdateParams.Capabilities.TaxReportingUs1099K; + export type TaxReportingUs1099Misc = Stripe_.AccountUpdateParams.Capabilities.TaxReportingUs1099Misc; + export type Transfers = Stripe_.AccountUpdateParams.Capabilities.Transfers; + export type Treasury = Stripe_.AccountUpdateParams.Capabilities.Treasury; + export type TreasuryEvolve = Stripe_.AccountUpdateParams.Capabilities.TreasuryEvolve; + export type TreasuryFifthThird = Stripe_.AccountUpdateParams.Capabilities.TreasuryFifthThird; + export type TreasuryGoldmanSachs = Stripe_.AccountUpdateParams.Capabilities.TreasuryGoldmanSachs; + export type TwintPayments = Stripe_.AccountUpdateParams.Capabilities.TwintPayments; + export type UpiPayments = Stripe_.AccountUpdateParams.Capabilities.UpiPayments; + export type UsBankAccountAchPayments = Stripe_.AccountUpdateParams.Capabilities.UsBankAccountAchPayments; + export type UsBankTransferPayments = Stripe_.AccountUpdateParams.Capabilities.UsBankTransferPayments; + export type ZipPayments = Stripe_.AccountUpdateParams.Capabilities.ZipPayments; + } + export namespace Company { + export type DirectorshipDeclaration = Stripe_.AccountUpdateParams.Company.DirectorshipDeclaration; + export type OwnershipDeclaration = Stripe_.AccountUpdateParams.Company.OwnershipDeclaration; + export type OwnershipExemptionReason = Stripe_.AccountUpdateParams.Company.OwnershipExemptionReason; + export type RegistrationDate = Stripe_.AccountUpdateParams.Company.RegistrationDate; + export type RepresentativeDeclaration = Stripe_.AccountUpdateParams.Company.RepresentativeDeclaration; + export type Structure = Stripe_.AccountUpdateParams.Company.Structure; + export type Verification = Stripe_.AccountUpdateParams.Company.Verification; + export namespace Verification { + export type Document = Stripe_.AccountUpdateParams.Company.Verification.Document; + } + } + export namespace Documents { + export type BankAccountOwnershipVerification = Stripe_.AccountUpdateParams.Documents.BankAccountOwnershipVerification; + export type CompanyLicense = Stripe_.AccountUpdateParams.Documents.CompanyLicense; + export type CompanyMemorandumOfAssociation = Stripe_.AccountUpdateParams.Documents.CompanyMemorandumOfAssociation; + export type CompanyMinisterialDecree = Stripe_.AccountUpdateParams.Documents.CompanyMinisterialDecree; + export type CompanyRegistrationVerification = Stripe_.AccountUpdateParams.Documents.CompanyRegistrationVerification; + export type CompanyTaxIdVerification = Stripe_.AccountUpdateParams.Documents.CompanyTaxIdVerification; + export type ProofOfAddress = Stripe_.AccountUpdateParams.Documents.ProofOfAddress; + export type ProofOfRegistration = Stripe_.AccountUpdateParams.Documents.ProofOfRegistration; + export type ProofOfUltimateBeneficialOwnership = Stripe_.AccountUpdateParams.Documents.ProofOfUltimateBeneficialOwnership; + export namespace ProofOfRegistration { + export type Signer = Stripe_.AccountUpdateParams.Documents.ProofOfRegistration.Signer; + } + export namespace ProofOfUltimateBeneficialOwnership { + export type Signer = Stripe_.AccountUpdateParams.Documents.ProofOfUltimateBeneficialOwnership.Signer; + } + } + export namespace Individual { + export type Dob = Stripe_.AccountUpdateParams.Individual.Dob; + export type PoliticalExposure = Stripe_.AccountUpdateParams.Individual.PoliticalExposure; + export type Relationship = Stripe_.AccountUpdateParams.Individual.Relationship; + export type Verification = Stripe_.AccountUpdateParams.Individual.Verification; + export namespace Verification { + export type AdditionalDocument = Stripe_.AccountUpdateParams.Individual.Verification.AdditionalDocument; + export type Document = Stripe_.AccountUpdateParams.Individual.Verification.Document; + } + } + export namespace RiskControls { + export type Charges = Stripe_.AccountUpdateParams.RiskControls.Charges; + export type Payouts = Stripe_.AccountUpdateParams.RiskControls.Payouts; + } + export namespace Settings { + export type BacsDebitPayments = Stripe_.AccountUpdateParams.Settings.BacsDebitPayments; + export type BankBcaOnboarding = Stripe_.AccountUpdateParams.Settings.BankBcaOnboarding; + export type Branding = Stripe_.AccountUpdateParams.Settings.Branding; + export type Capital = Stripe_.AccountUpdateParams.Settings.Capital; + export type CardIssuing = Stripe_.AccountUpdateParams.Settings.CardIssuing; + export type CardPayments = Stripe_.AccountUpdateParams.Settings.CardPayments; + export type Invoices = Stripe_.AccountUpdateParams.Settings.Invoices; + export type Payments = Stripe_.AccountUpdateParams.Settings.Payments; + export type Payouts = Stripe_.AccountUpdateParams.Settings.Payouts; + export type PaypayPayments = Stripe_.AccountUpdateParams.Settings.PaypayPayments; + export type SmartDisputes = Stripe_.AccountUpdateParams.Settings.SmartDisputes; + export type TaxForms = Stripe_.AccountUpdateParams.Settings.TaxForms; + export type Treasury = Stripe_.AccountUpdateParams.Settings.Treasury; + export namespace CardIssuing { + export type TosAcceptance = Stripe_.AccountUpdateParams.Settings.CardIssuing.TosAcceptance; + } + export namespace CardPayments { + export type DeclineOn = Stripe_.AccountUpdateParams.Settings.CardPayments.DeclineOn; + } + export namespace Invoices { + export type HostedPaymentMethodSave = Stripe_.AccountUpdateParams.Settings.Invoices.HostedPaymentMethodSave; + } + export namespace Payouts { + export type Schedule = Stripe_.AccountUpdateParams.Settings.Payouts.Schedule; + export namespace Schedule { + export type Interval = Stripe_.AccountUpdateParams.Settings.Payouts.Schedule.Interval; + export type WeeklyAnchor = Stripe_.AccountUpdateParams.Settings.Payouts.Schedule.WeeklyAnchor; + export type WeeklyPayoutDay = Stripe_.AccountUpdateParams.Settings.Payouts.Schedule.WeeklyPayoutDay; + } + } + export namespace PaypayPayments { + export type GoodsType = Stripe_.AccountUpdateParams.Settings.PaypayPayments.GoodsType; + export type Site = Stripe_.AccountUpdateParams.Settings.PaypayPayments.Site; + export namespace Site { + export type Accessible = Stripe_.AccountUpdateParams.Settings.PaypayPayments.Site.Accessible; + export type InDevelopment = Stripe_.AccountUpdateParams.Settings.PaypayPayments.Site.InDevelopment; + export type Restricted = Stripe_.AccountUpdateParams.Settings.PaypayPayments.Site.Restricted; + export type Type = Stripe_.AccountUpdateParams.Settings.PaypayPayments.Site.Type; + } + } + export namespace SmartDisputes { + export type AutoRespond = Stripe_.AccountUpdateParams.Settings.SmartDisputes.AutoRespond; + export namespace AutoRespond { + export type Preference = Stripe_.AccountUpdateParams.Settings.SmartDisputes.AutoRespond.Preference; + } + } + export namespace Treasury { + export type TosAcceptance = Stripe_.AccountUpdateParams.Settings.Treasury.TosAcceptance; + } + } } export namespace AccountCreateExternalAccountParams { - export type Card = Stripe.AccountCreateExternalAccountParams.Card; - export type BankAccount = Stripe.AccountCreateExternalAccountParams.BankAccount; - export type CardToken = Stripe.AccountCreateExternalAccountParams.CardToken; + export type Card = Stripe_.AccountCreateExternalAccountParams.Card; + export type BankAccount = Stripe_.AccountCreateExternalAccountParams.BankAccount; + export type CardToken = Stripe_.AccountCreateExternalAccountParams.CardToken; + export namespace BankAccount { + export type AccountHolderType = Stripe_.AccountCreateExternalAccountParams.BankAccount.AccountHolderType; + } } export namespace AccountCreatePersonParams { - export type AdditionalTosAcceptances = Stripe.AccountCreatePersonParams.AdditionalTosAcceptances; - export type Dob = Stripe.AccountCreatePersonParams.Dob; - export type Documents = Stripe.AccountCreatePersonParams.Documents; - export type PoliticalExposure = Stripe.AccountCreatePersonParams.PoliticalExposure; - export type Relationship = Stripe.AccountCreatePersonParams.Relationship; - export type UsCfpbData = Stripe.AccountCreatePersonParams.UsCfpbData; - export type Verification = Stripe.AccountCreatePersonParams.Verification; + export type AdditionalTosAcceptances = Stripe_.AccountCreatePersonParams.AdditionalTosAcceptances; + export type Dob = Stripe_.AccountCreatePersonParams.Dob; + export type Documents = Stripe_.AccountCreatePersonParams.Documents; + export type PoliticalExposure = Stripe_.AccountCreatePersonParams.PoliticalExposure; + export type Relationship = Stripe_.AccountCreatePersonParams.Relationship; + export type UsCfpbData = Stripe_.AccountCreatePersonParams.UsCfpbData; + export type Verification = Stripe_.AccountCreatePersonParams.Verification; + export namespace AdditionalTosAcceptances { + export type Account = Stripe_.AccountCreatePersonParams.AdditionalTosAcceptances.Account; + } + export namespace Documents { + export type CompanyAuthorization = Stripe_.AccountCreatePersonParams.Documents.CompanyAuthorization; + export type Passport = Stripe_.AccountCreatePersonParams.Documents.Passport; + export type Visa = Stripe_.AccountCreatePersonParams.Documents.Visa; + } + export namespace UsCfpbData { + export type EthnicityDetails = Stripe_.AccountCreatePersonParams.UsCfpbData.EthnicityDetails; + export type RaceDetails = Stripe_.AccountCreatePersonParams.UsCfpbData.RaceDetails; + export namespace EthnicityDetails { + export type Ethnicity = Stripe_.AccountCreatePersonParams.UsCfpbData.EthnicityDetails.Ethnicity; + } + export namespace RaceDetails { + export type Race = Stripe_.AccountCreatePersonParams.UsCfpbData.RaceDetails.Race; + } + } + export namespace Verification { + export type AdditionalDocument = Stripe_.AccountCreatePersonParams.Verification.AdditionalDocument; + export type Document = Stripe_.AccountCreatePersonParams.Verification.Document; + } } export namespace AccountListExternalAccountsParams { - export type Object = Stripe.AccountListExternalAccountsParams.Object; + export type Object = Stripe_.AccountListExternalAccountsParams.Object; } export namespace AccountListPersonsParams { - export type Relationship = Stripe.AccountListPersonsParams.Relationship; + export type Relationship = Stripe_.AccountListPersonsParams.Relationship; } export namespace AccountUpdateExternalAccountParams { - export type AccountHolderType = Stripe.AccountUpdateExternalAccountParams.AccountHolderType; - export type AccountType = Stripe.AccountUpdateExternalAccountParams.AccountType; - export type Documents = Stripe.AccountUpdateExternalAccountParams.Documents; + export type AccountHolderType = Stripe_.AccountUpdateExternalAccountParams.AccountHolderType; + export type AccountType = Stripe_.AccountUpdateExternalAccountParams.AccountType; + export type Documents = Stripe_.AccountUpdateExternalAccountParams.Documents; + export namespace Documents { + export type BankAccountOwnershipVerification = Stripe_.AccountUpdateExternalAccountParams.Documents.BankAccountOwnershipVerification; + } } export namespace AccountUpdatePersonParams { - export type AdditionalTosAcceptances = Stripe.AccountUpdatePersonParams.AdditionalTosAcceptances; - export type Dob = Stripe.AccountUpdatePersonParams.Dob; - export type Documents = Stripe.AccountUpdatePersonParams.Documents; - export type PoliticalExposure = Stripe.AccountUpdatePersonParams.PoliticalExposure; - export type Relationship = Stripe.AccountUpdatePersonParams.Relationship; - export type UsCfpbData = Stripe.AccountUpdatePersonParams.UsCfpbData; - export type Verification = Stripe.AccountUpdatePersonParams.Verification; + export type AdditionalTosAcceptances = Stripe_.AccountUpdatePersonParams.AdditionalTosAcceptances; + export type Dob = Stripe_.AccountUpdatePersonParams.Dob; + export type Documents = Stripe_.AccountUpdatePersonParams.Documents; + export type PoliticalExposure = Stripe_.AccountUpdatePersonParams.PoliticalExposure; + export type Relationship = Stripe_.AccountUpdatePersonParams.Relationship; + export type UsCfpbData = Stripe_.AccountUpdatePersonParams.UsCfpbData; + export type Verification = Stripe_.AccountUpdatePersonParams.Verification; + export namespace AdditionalTosAcceptances { + export type Account = Stripe_.AccountUpdatePersonParams.AdditionalTosAcceptances.Account; + } + export namespace Documents { + export type CompanyAuthorization = Stripe_.AccountUpdatePersonParams.Documents.CompanyAuthorization; + export type Passport = Stripe_.AccountUpdatePersonParams.Documents.Passport; + export type Visa = Stripe_.AccountUpdatePersonParams.Documents.Visa; + } + export namespace UsCfpbData { + export type EthnicityDetails = Stripe_.AccountUpdatePersonParams.UsCfpbData.EthnicityDetails; + export type RaceDetails = Stripe_.AccountUpdatePersonParams.UsCfpbData.RaceDetails; + export namespace EthnicityDetails { + export type Ethnicity = Stripe_.AccountUpdatePersonParams.UsCfpbData.EthnicityDetails.Ethnicity; + } + export namespace RaceDetails { + export type Race = Stripe_.AccountUpdatePersonParams.UsCfpbData.RaceDetails.Race; + } + } + export namespace Verification { + export type AdditionalDocument = Stripe_.AccountUpdatePersonParams.Verification.AdditionalDocument; + export type Document = Stripe_.AccountUpdatePersonParams.Verification.Document; + } + } + export namespace Account { + export type BusinessProfile = Stripe_.Account.BusinessProfile; + export type BusinessType = Stripe_.Account.BusinessType; + export type Capabilities = Stripe_.Account.Capabilities; + export type Company = Stripe_.Account.Company; + export type Controller = Stripe_.Account.Controller; + export type FutureRequirements = Stripe_.Account.FutureRequirements; + export type Groups = Stripe_.Account.Groups; + export type Requirements = Stripe_.Account.Requirements; + export type RiskControls = Stripe_.Account.RiskControls; + export type Settings = Stripe_.Account.Settings; + export type TosAcceptance = Stripe_.Account.TosAcceptance; + export type Type = Stripe_.Account.Type; + export namespace BusinessProfile { + export type AnnualRevenue = Stripe_.Account.BusinessProfile.AnnualRevenue; + export type MinorityOwnedBusinessDesignation = Stripe_.Account.BusinessProfile.MinorityOwnedBusinessDesignation; + export type MonthlyEstimatedRevenue = Stripe_.Account.BusinessProfile.MonthlyEstimatedRevenue; + } + export namespace Capabilities { + export type AcssDebitPayments = Stripe_.Account.Capabilities.AcssDebitPayments; + export type AffirmPayments = Stripe_.Account.Capabilities.AffirmPayments; + export type AfterpayClearpayPayments = Stripe_.Account.Capabilities.AfterpayClearpayPayments; + export type AlmaPayments = Stripe_.Account.Capabilities.AlmaPayments; + export type AmazonPayPayments = Stripe_.Account.Capabilities.AmazonPayPayments; + export type AppDistribution = Stripe_.Account.Capabilities.AppDistribution; + export type AuBecsDebitPayments = Stripe_.Account.Capabilities.AuBecsDebitPayments; + export type AutomaticIndirectTax = Stripe_.Account.Capabilities.AutomaticIndirectTax; + export type BacsDebitPayments = Stripe_.Account.Capabilities.BacsDebitPayments; + export type BancontactPayments = Stripe_.Account.Capabilities.BancontactPayments; + export type BankTransferPayments = Stripe_.Account.Capabilities.BankTransferPayments; + export type BilliePayments = Stripe_.Account.Capabilities.BilliePayments; + export type BizumPayments = Stripe_.Account.Capabilities.BizumPayments; + export type BlikPayments = Stripe_.Account.Capabilities.BlikPayments; + export type BoletoPayments = Stripe_.Account.Capabilities.BoletoPayments; + export type CardIssuing = Stripe_.Account.Capabilities.CardIssuing; + export type CardPayments = Stripe_.Account.Capabilities.CardPayments; + export type CartesBancairesPayments = Stripe_.Account.Capabilities.CartesBancairesPayments; + export type CashappPayments = Stripe_.Account.Capabilities.CashappPayments; + export type CryptoPayments = Stripe_.Account.Capabilities.CryptoPayments; + export type EpsPayments = Stripe_.Account.Capabilities.EpsPayments; + export type FpxPayments = Stripe_.Account.Capabilities.FpxPayments; + export type GbBankTransferPayments = Stripe_.Account.Capabilities.GbBankTransferPayments; + export type GiropayPayments = Stripe_.Account.Capabilities.GiropayPayments; + export type GopayPayments = Stripe_.Account.Capabilities.GopayPayments; + export type GrabpayPayments = Stripe_.Account.Capabilities.GrabpayPayments; + export type IdBankTransferPayments = Stripe_.Account.Capabilities.IdBankTransferPayments; + export type IdBankTransferPaymentsBca = Stripe_.Account.Capabilities.IdBankTransferPaymentsBca; + export type IdealPayments = Stripe_.Account.Capabilities.IdealPayments; + export type IndiaInternationalPayments = Stripe_.Account.Capabilities.IndiaInternationalPayments; + export type JcbPayments = Stripe_.Account.Capabilities.JcbPayments; + export type JpBankTransferPayments = Stripe_.Account.Capabilities.JpBankTransferPayments; + export type KakaoPayPayments = Stripe_.Account.Capabilities.KakaoPayPayments; + export type KlarnaPayments = Stripe_.Account.Capabilities.KlarnaPayments; + export type KonbiniPayments = Stripe_.Account.Capabilities.KonbiniPayments; + export type KrCardPayments = Stripe_.Account.Capabilities.KrCardPayments; + export type LegacyPayments = Stripe_.Account.Capabilities.LegacyPayments; + export type LinkPayments = Stripe_.Account.Capabilities.LinkPayments; + export type MbWayPayments = Stripe_.Account.Capabilities.MbWayPayments; + export type MobilepayPayments = Stripe_.Account.Capabilities.MobilepayPayments; + export type MultibancoPayments = Stripe_.Account.Capabilities.MultibancoPayments; + export type MxBankTransferPayments = Stripe_.Account.Capabilities.MxBankTransferPayments; + export type NaverPayPayments = Stripe_.Account.Capabilities.NaverPayPayments; + export type NzBankAccountBecsDebitPayments = Stripe_.Account.Capabilities.NzBankAccountBecsDebitPayments; + export type OxxoPayments = Stripe_.Account.Capabilities.OxxoPayments; + export type P24Payments = Stripe_.Account.Capabilities.P24Payments; + export type PayByBankPayments = Stripe_.Account.Capabilities.PayByBankPayments; + export type PaycoPayments = Stripe_.Account.Capabilities.PaycoPayments; + export type PaynowPayments = Stripe_.Account.Capabilities.PaynowPayments; + export type PaypalPayments = Stripe_.Account.Capabilities.PaypalPayments; + export type PaypayPayments = Stripe_.Account.Capabilities.PaypayPayments; + export type PaytoPayments = Stripe_.Account.Capabilities.PaytoPayments; + export type PixPayments = Stripe_.Account.Capabilities.PixPayments; + export type PromptpayPayments = Stripe_.Account.Capabilities.PromptpayPayments; + export type QrisPayments = Stripe_.Account.Capabilities.QrisPayments; + export type RechnungPayments = Stripe_.Account.Capabilities.RechnungPayments; + export type RevolutPayPayments = Stripe_.Account.Capabilities.RevolutPayPayments; + export type SamsungPayPayments = Stripe_.Account.Capabilities.SamsungPayPayments; + export type SatispayPayments = Stripe_.Account.Capabilities.SatispayPayments; + export type ScalapayPayments = Stripe_.Account.Capabilities.ScalapayPayments; + export type SepaBankTransferPayments = Stripe_.Account.Capabilities.SepaBankTransferPayments; + export type SepaDebitPayments = Stripe_.Account.Capabilities.SepaDebitPayments; + export type ShopeepayPayments = Stripe_.Account.Capabilities.ShopeepayPayments; + export type SofortPayments = Stripe_.Account.Capabilities.SofortPayments; + export type StripeBalancePayments = Stripe_.Account.Capabilities.StripeBalancePayments; + export type SunbitPayments = Stripe_.Account.Capabilities.SunbitPayments; + export type SwishPayments = Stripe_.Account.Capabilities.SwishPayments; + export type TaxReportingUs1099K = Stripe_.Account.Capabilities.TaxReportingUs1099K; + export type TaxReportingUs1099Misc = Stripe_.Account.Capabilities.TaxReportingUs1099Misc; + export type Transfers = Stripe_.Account.Capabilities.Transfers; + export type Treasury = Stripe_.Account.Capabilities.Treasury; + export type TreasuryEvolve = Stripe_.Account.Capabilities.TreasuryEvolve; + export type TreasuryFifthThird = Stripe_.Account.Capabilities.TreasuryFifthThird; + export type TreasuryGoldmanSachs = Stripe_.Account.Capabilities.TreasuryGoldmanSachs; + export type TwintPayments = Stripe_.Account.Capabilities.TwintPayments; + export type UpiPayments = Stripe_.Account.Capabilities.UpiPayments; + export type UsBankAccountAchPayments = Stripe_.Account.Capabilities.UsBankAccountAchPayments; + export type UsBankTransferPayments = Stripe_.Account.Capabilities.UsBankTransferPayments; + export type ZipPayments = Stripe_.Account.Capabilities.ZipPayments; + } + export namespace Company { + export type AddressKana = Stripe_.Account.Company.AddressKana; + export type AddressKanji = Stripe_.Account.Company.AddressKanji; + export type DirectorshipDeclaration = Stripe_.Account.Company.DirectorshipDeclaration; + export type OwnershipDeclaration = Stripe_.Account.Company.OwnershipDeclaration; + export type OwnershipExemptionReason = Stripe_.Account.Company.OwnershipExemptionReason; + export type RegistrationDate = Stripe_.Account.Company.RegistrationDate; + export type RepresentativeDeclaration = Stripe_.Account.Company.RepresentativeDeclaration; + export type Structure = Stripe_.Account.Company.Structure; + export type Verification = Stripe_.Account.Company.Verification; + export namespace Verification { + export type Document = Stripe_.Account.Company.Verification.Document; + } + } + export namespace Controller { + export type Application = Stripe_.Account.Controller.Application; + export type Dashboard = Stripe_.Account.Controller.Dashboard; + export type Fees = Stripe_.Account.Controller.Fees; + export type Losses = Stripe_.Account.Controller.Losses; + export type RequirementCollection = Stripe_.Account.Controller.RequirementCollection; + export type StripeDashboard = Stripe_.Account.Controller.StripeDashboard; + export type Type = Stripe_.Account.Controller.Type; + export namespace Dashboard { + export type Type = Stripe_.Account.Controller.Dashboard.Type; + } + export namespace Fees { + export type Payer = Stripe_.Account.Controller.Fees.Payer; + } + export namespace Losses { + export type Payments = Stripe_.Account.Controller.Losses.Payments; + } + export namespace StripeDashboard { + export type Type = Stripe_.Account.Controller.StripeDashboard.Type; + } + } + export namespace FutureRequirements { + export type Alternative = Stripe_.Account.FutureRequirements.Alternative; + export type DisabledReason = Stripe_.Account.FutureRequirements.DisabledReason; + export type Error = Stripe_.Account.FutureRequirements.Error; + export namespace Error { + export type Code = Stripe_.Account.FutureRequirements.Error.Code; + } + } + export namespace Requirements { + export type Alternative = Stripe_.Account.Requirements.Alternative; + export type DisabledReason = Stripe_.Account.Requirements.DisabledReason; + export type Error = Stripe_.Account.Requirements.Error; + export namespace Error { + export type Code = Stripe_.Account.Requirements.Error.Code; + } + } + export namespace RiskControls { + export type Charges = Stripe_.Account.RiskControls.Charges; + export type Payouts = Stripe_.Account.RiskControls.Payouts; + export type RejectedReason = Stripe_.Account.RiskControls.RejectedReason; + } + export namespace Settings { + export type BacsDebitPayments = Stripe_.Account.Settings.BacsDebitPayments; + export type BankBcaOnboarding = Stripe_.Account.Settings.BankBcaOnboarding; + export type Branding = Stripe_.Account.Settings.Branding; + export type CardIssuing = Stripe_.Account.Settings.CardIssuing; + export type CardPayments = Stripe_.Account.Settings.CardPayments; + export type Dashboard = Stripe_.Account.Settings.Dashboard; + export type Invoices = Stripe_.Account.Settings.Invoices; + export type Payments = Stripe_.Account.Settings.Payments; + export type Payouts = Stripe_.Account.Settings.Payouts; + export type PaypayPayments = Stripe_.Account.Settings.PaypayPayments; + export type SepaDebitPayments = Stripe_.Account.Settings.SepaDebitPayments; + export type SmartDisputes = Stripe_.Account.Settings.SmartDisputes; + export type TaxForms = Stripe_.Account.Settings.TaxForms; + export type Treasury = Stripe_.Account.Settings.Treasury; + export namespace CardIssuing { + export type TosAcceptance = Stripe_.Account.Settings.CardIssuing.TosAcceptance; + } + export namespace CardPayments { + export type DeclineOn = Stripe_.Account.Settings.CardPayments.DeclineOn; + } + export namespace Invoices { + export type HostedPaymentMethodSave = Stripe_.Account.Settings.Invoices.HostedPaymentMethodSave; + } + export namespace Payouts { + export type Schedule = Stripe_.Account.Settings.Payouts.Schedule; + export namespace Schedule { + export type WeeklyPayoutDay = Stripe_.Account.Settings.Payouts.Schedule.WeeklyPayoutDay; + } + } + export namespace PaypayPayments { + export type GoodsType = Stripe_.Account.Settings.PaypayPayments.GoodsType; + export type Site = Stripe_.Account.Settings.PaypayPayments.Site; + export namespace Site { + export type Accessible = Stripe_.Account.Settings.PaypayPayments.Site.Accessible; + export type InDevelopment = Stripe_.Account.Settings.PaypayPayments.Site.InDevelopment; + export type Restricted = Stripe_.Account.Settings.PaypayPayments.Site.Restricted; + export type Type = Stripe_.Account.Settings.PaypayPayments.Site.Type; + } + } + export namespace SmartDisputes { + export type AutoRespond = Stripe_.Account.Settings.SmartDisputes.AutoRespond; + export namespace AutoRespond { + export type Preference = Stripe_.Account.Settings.SmartDisputes.AutoRespond.Preference; + export type Value = Stripe_.Account.Settings.SmartDisputes.AutoRespond.Value; + } + } + export namespace Treasury { + export type TosAcceptance = Stripe_.Account.Settings.Treasury.TosAcceptance; + } + } } export namespace AccountLinkCreateParams { - export type Type = Stripe.AccountLinkCreateParams.Type; - export type Collect = Stripe.AccountLinkCreateParams.Collect; - export type CollectionOptions = Stripe.AccountLinkCreateParams.CollectionOptions; + export type Type = Stripe_.AccountLinkCreateParams.Type; + export type Collect = Stripe_.AccountLinkCreateParams.Collect; + export type CollectionOptions = Stripe_.AccountLinkCreateParams.CollectionOptions; + export namespace CollectionOptions { + export type Fields = Stripe_.AccountLinkCreateParams.CollectionOptions.Fields; + export type FutureRequirements = Stripe_.AccountLinkCreateParams.CollectionOptions.FutureRequirements; + } } export namespace AccountNoticeUpdateParams { - export type Email = Stripe.AccountNoticeUpdateParams.Email; - } - export namespace AccountSessionCreateParams { - export type Components = Stripe.AccountSessionCreateParams.Components; - } - export namespace BalanceSettingsUpdateParams { - export type Payments = Stripe.BalanceSettingsUpdateParams.Payments; - } - export namespace ChargeCreateParams { - export type Destination = Stripe.ChargeCreateParams.Destination; - export type RadarOptions = Stripe.ChargeCreateParams.RadarOptions; - export type Shipping = Stripe.ChargeCreateParams.Shipping; - export type TransferData = Stripe.ChargeCreateParams.TransferData; + export type Email = Stripe_.AccountNoticeUpdateParams.Email; } - export namespace ChargeUpdateParams { - export type FraudDetails = Stripe.ChargeUpdateParams.FraudDetails; - export type PaymentDetails = Stripe.ChargeUpdateParams.PaymentDetails; - export type Shipping = Stripe.ChargeUpdateParams.Shipping; + export namespace AccountNotice { + export type Email = Stripe_.AccountNotice.Email; + export type LinkedObjects = Stripe_.AccountNotice.LinkedObjects; + export type Reason = Stripe_.AccountNotice.Reason; } - export namespace ChargeCaptureParams { - export type PaymentDetails = Stripe.ChargeCaptureParams.PaymentDetails; - export type TransferData = Stripe.ChargeCaptureParams.TransferData; + export namespace AccountSessionCreateParams { + export type Components = Stripe_.AccountSessionCreateParams.Components; + export namespace Components { + export type AccountManagement = Stripe_.AccountSessionCreateParams.Components.AccountManagement; + export type AccountOnboarding = Stripe_.AccountSessionCreateParams.Components.AccountOnboarding; + export type AppInstall = Stripe_.AccountSessionCreateParams.Components.AppInstall; + export type AppViewport = Stripe_.AccountSessionCreateParams.Components.AppViewport; + export type BalanceReport = Stripe_.AccountSessionCreateParams.Components.BalanceReport; + export type Balances = Stripe_.AccountSessionCreateParams.Components.Balances; + export type CapitalFinancing = Stripe_.AccountSessionCreateParams.Components.CapitalFinancing; + export type CapitalFinancingApplication = Stripe_.AccountSessionCreateParams.Components.CapitalFinancingApplication; + export type CapitalFinancingPromotion = Stripe_.AccountSessionCreateParams.Components.CapitalFinancingPromotion; + export type CapitalOverview = Stripe_.AccountSessionCreateParams.Components.CapitalOverview; + export type DisputesList = Stripe_.AccountSessionCreateParams.Components.DisputesList; + export type Documents = Stripe_.AccountSessionCreateParams.Components.Documents; + export type ExportTaxTransactions = Stripe_.AccountSessionCreateParams.Components.ExportTaxTransactions; + export type FinancialAccount = Stripe_.AccountSessionCreateParams.Components.FinancialAccount; + export type FinancialAccountTransactions = Stripe_.AccountSessionCreateParams.Components.FinancialAccountTransactions; + export type InstantPayoutsPromotion = Stripe_.AccountSessionCreateParams.Components.InstantPayoutsPromotion; + export type IssuingCard = Stripe_.AccountSessionCreateParams.Components.IssuingCard; + export type IssuingCardsList = Stripe_.AccountSessionCreateParams.Components.IssuingCardsList; + export type NotificationBanner = Stripe_.AccountSessionCreateParams.Components.NotificationBanner; + export type PaymentDetails = Stripe_.AccountSessionCreateParams.Components.PaymentDetails; + export type PaymentDisputes = Stripe_.AccountSessionCreateParams.Components.PaymentDisputes; + export type PaymentMethodSettings = Stripe_.AccountSessionCreateParams.Components.PaymentMethodSettings; + export type Payments = Stripe_.AccountSessionCreateParams.Components.Payments; + export type PayoutDetails = Stripe_.AccountSessionCreateParams.Components.PayoutDetails; + export type PayoutReconciliationReport = Stripe_.AccountSessionCreateParams.Components.PayoutReconciliationReport; + export type Payouts = Stripe_.AccountSessionCreateParams.Components.Payouts; + export type PayoutsList = Stripe_.AccountSessionCreateParams.Components.PayoutsList; + export type ProductTaxCodeSelector = Stripe_.AccountSessionCreateParams.Components.ProductTaxCodeSelector; + export type Recipients = Stripe_.AccountSessionCreateParams.Components.Recipients; + export type ReportingChart = Stripe_.AccountSessionCreateParams.Components.ReportingChart; + export type TaxRegistrations = Stripe_.AccountSessionCreateParams.Components.TaxRegistrations; + export type TaxSettings = Stripe_.AccountSessionCreateParams.Components.TaxSettings; + export type TaxThresholdMonitoring = Stripe_.AccountSessionCreateParams.Components.TaxThresholdMonitoring; + export namespace AccountManagement { + export type Features = Stripe_.AccountSessionCreateParams.Components.AccountManagement.Features; + } + export namespace AccountOnboarding { + export type Features = Stripe_.AccountSessionCreateParams.Components.AccountOnboarding.Features; + } + export namespace AppInstall { + export type Features = Stripe_.AccountSessionCreateParams.Components.AppInstall.Features; + } + export namespace AppViewport { + export type Features = Stripe_.AccountSessionCreateParams.Components.AppViewport.Features; + } + export namespace BalanceReport { + export type Features = Stripe_.AccountSessionCreateParams.Components.BalanceReport.Features; + } + export namespace Balances { + export type Features = Stripe_.AccountSessionCreateParams.Components.Balances.Features; + } + export namespace CapitalFinancing { + export type Features = Stripe_.AccountSessionCreateParams.Components.CapitalFinancing.Features; + } + export namespace CapitalFinancingApplication { + export type Features = Stripe_.AccountSessionCreateParams.Components.CapitalFinancingApplication.Features; + } + export namespace CapitalFinancingPromotion { + export type Features = Stripe_.AccountSessionCreateParams.Components.CapitalFinancingPromotion.Features; + } + export namespace CapitalOverview { + export type Features = Stripe_.AccountSessionCreateParams.Components.CapitalOverview.Features; + } + export namespace DisputesList { + export type Features = Stripe_.AccountSessionCreateParams.Components.DisputesList.Features; + } + export namespace Documents { + export type Features = Stripe_.AccountSessionCreateParams.Components.Documents.Features; + } + export namespace ExportTaxTransactions { + export type Features = Stripe_.AccountSessionCreateParams.Components.ExportTaxTransactions.Features; + } + export namespace FinancialAccount { + export type Features = Stripe_.AccountSessionCreateParams.Components.FinancialAccount.Features; + } + export namespace FinancialAccountTransactions { + export type Features = Stripe_.AccountSessionCreateParams.Components.FinancialAccountTransactions.Features; + } + export namespace InstantPayoutsPromotion { + export type Features = Stripe_.AccountSessionCreateParams.Components.InstantPayoutsPromotion.Features; + } + export namespace IssuingCard { + export type Features = Stripe_.AccountSessionCreateParams.Components.IssuingCard.Features; + } + export namespace IssuingCardsList { + export type Features = Stripe_.AccountSessionCreateParams.Components.IssuingCardsList.Features; + } + export namespace NotificationBanner { + export type Features = Stripe_.AccountSessionCreateParams.Components.NotificationBanner.Features; + } + export namespace PaymentDetails { + export type Features = Stripe_.AccountSessionCreateParams.Components.PaymentDetails.Features; + } + export namespace PaymentDisputes { + export type Features = Stripe_.AccountSessionCreateParams.Components.PaymentDisputes.Features; + } + export namespace PaymentMethodSettings { + export type Features = Stripe_.AccountSessionCreateParams.Components.PaymentMethodSettings.Features; + } + export namespace Payments { + export type Features = Stripe_.AccountSessionCreateParams.Components.Payments.Features; + } + export namespace PayoutDetails { + export type Features = Stripe_.AccountSessionCreateParams.Components.PayoutDetails.Features; + } + export namespace PayoutReconciliationReport { + export type Features = Stripe_.AccountSessionCreateParams.Components.PayoutReconciliationReport.Features; + } + export namespace Payouts { + export type Features = Stripe_.AccountSessionCreateParams.Components.Payouts.Features; + } + export namespace PayoutsList { + export type Features = Stripe_.AccountSessionCreateParams.Components.PayoutsList.Features; + } + export namespace ProductTaxCodeSelector { + export type Features = Stripe_.AccountSessionCreateParams.Components.ProductTaxCodeSelector.Features; + } + export namespace Recipients { + export type Features = Stripe_.AccountSessionCreateParams.Components.Recipients.Features; + } + export namespace ReportingChart { + export type Features = Stripe_.AccountSessionCreateParams.Components.ReportingChart.Features; + } + export namespace TaxRegistrations { + export type Features = Stripe_.AccountSessionCreateParams.Components.TaxRegistrations.Features; + } + export namespace TaxSettings { + export type Features = Stripe_.AccountSessionCreateParams.Components.TaxSettings.Features; + } + export namespace TaxThresholdMonitoring { + export type Features = Stripe_.AccountSessionCreateParams.Components.TaxThresholdMonitoring.Features; + } + } } - export namespace CouponCreateParams { - export type AppliesTo = Stripe.CouponCreateParams.AppliesTo; - export type CurrencyOptions = Stripe.CouponCreateParams.CurrencyOptions; - export type Duration = Stripe.CouponCreateParams.Duration; - export type Script = Stripe.CouponCreateParams.Script; + export namespace AccountSession { + export type Components = Stripe_.AccountSession.Components; + export namespace Components { + export type AccountManagement = Stripe_.AccountSession.Components.AccountManagement; + export type AccountOnboarding = Stripe_.AccountSession.Components.AccountOnboarding; + export type BalanceReport = Stripe_.AccountSession.Components.BalanceReport; + export type Balances = Stripe_.AccountSession.Components.Balances; + export type CapitalFinancing = Stripe_.AccountSession.Components.CapitalFinancing; + export type CapitalFinancingApplication = Stripe_.AccountSession.Components.CapitalFinancingApplication; + export type CapitalFinancingPromotion = Stripe_.AccountSession.Components.CapitalFinancingPromotion; + export type DisputesList = Stripe_.AccountSession.Components.DisputesList; + export type Documents = Stripe_.AccountSession.Components.Documents; + export type FinancialAccount = Stripe_.AccountSession.Components.FinancialAccount; + export type FinancialAccountTransactions = Stripe_.AccountSession.Components.FinancialAccountTransactions; + export type InstantPayoutsPromotion = Stripe_.AccountSession.Components.InstantPayoutsPromotion; + export type IssuingCard = Stripe_.AccountSession.Components.IssuingCard; + export type IssuingCardsList = Stripe_.AccountSession.Components.IssuingCardsList; + export type NotificationBanner = Stripe_.AccountSession.Components.NotificationBanner; + export type PaymentDetails = Stripe_.AccountSession.Components.PaymentDetails; + export type PaymentDisputes = Stripe_.AccountSession.Components.PaymentDisputes; + export type Payments = Stripe_.AccountSession.Components.Payments; + export type PayoutDetails = Stripe_.AccountSession.Components.PayoutDetails; + export type PayoutReconciliationReport = Stripe_.AccountSession.Components.PayoutReconciliationReport; + export type Payouts = Stripe_.AccountSession.Components.Payouts; + export type PayoutsList = Stripe_.AccountSession.Components.PayoutsList; + export type TaxRegistrations = Stripe_.AccountSession.Components.TaxRegistrations; + export type TaxSettings = Stripe_.AccountSession.Components.TaxSettings; + export namespace AccountManagement { + export type Features = Stripe_.AccountSession.Components.AccountManagement.Features; + } + export namespace AccountOnboarding { + export type Features = Stripe_.AccountSession.Components.AccountOnboarding.Features; + } + export namespace BalanceReport { + export type Features = Stripe_.AccountSession.Components.BalanceReport.Features; + } + export namespace Balances { + export type Features = Stripe_.AccountSession.Components.Balances.Features; + } + export namespace CapitalFinancing { + export type Features = Stripe_.AccountSession.Components.CapitalFinancing.Features; + } + export namespace CapitalFinancingApplication { + export type Features = Stripe_.AccountSession.Components.CapitalFinancingApplication.Features; + } + export namespace CapitalFinancingPromotion { + export type Features = Stripe_.AccountSession.Components.CapitalFinancingPromotion.Features; + } + export namespace DisputesList { + export type Features = Stripe_.AccountSession.Components.DisputesList.Features; + } + export namespace Documents { + export type Features = Stripe_.AccountSession.Components.Documents.Features; + } + export namespace FinancialAccount { + export type Features = Stripe_.AccountSession.Components.FinancialAccount.Features; + } + export namespace FinancialAccountTransactions { + export type Features = Stripe_.AccountSession.Components.FinancialAccountTransactions.Features; + } + export namespace InstantPayoutsPromotion { + export type Features = Stripe_.AccountSession.Components.InstantPayoutsPromotion.Features; + } + export namespace IssuingCard { + export type Features = Stripe_.AccountSession.Components.IssuingCard.Features; + } + export namespace IssuingCardsList { + export type Features = Stripe_.AccountSession.Components.IssuingCardsList.Features; + } + export namespace NotificationBanner { + export type Features = Stripe_.AccountSession.Components.NotificationBanner.Features; + } + export namespace PaymentDetails { + export type Features = Stripe_.AccountSession.Components.PaymentDetails.Features; + } + export namespace PaymentDisputes { + export type Features = Stripe_.AccountSession.Components.PaymentDisputes.Features; + } + export namespace Payments { + export type Features = Stripe_.AccountSession.Components.Payments.Features; + } + export namespace PayoutDetails { + export type Features = Stripe_.AccountSession.Components.PayoutDetails.Features; + } + export namespace PayoutReconciliationReport { + export type Features = Stripe_.AccountSession.Components.PayoutReconciliationReport.Features; + } + export namespace Payouts { + export type Features = Stripe_.AccountSession.Components.Payouts.Features; + } + export namespace PayoutsList { + export type Features = Stripe_.AccountSession.Components.PayoutsList.Features; + } + export namespace TaxRegistrations { + export type Features = Stripe_.AccountSession.Components.TaxRegistrations.Features; + } + export namespace TaxSettings { + export type Features = Stripe_.AccountSession.Components.TaxSettings.Features; + } + } } - export namespace CouponUpdateParams { - export type CurrencyOptions = Stripe.CouponUpdateParams.CurrencyOptions; + export namespace ApplicationFee { + export type FeeSource = Stripe_.ApplicationFee.FeeSource; + export namespace FeeSource { + export type Type = Stripe_.ApplicationFee.FeeSource.Type; + } } - export namespace CreditNoteCreateParams { - export type EmailType = Stripe.CreditNoteCreateParams.EmailType; - export type Line = Stripe.CreditNoteCreateParams.Line; - export type Reason = Stripe.CreditNoteCreateParams.Reason; - export type Refund = Stripe.CreditNoteCreateParams.Refund; - export type ShippingCost = Stripe.CreditNoteCreateParams.ShippingCost; + export namespace Balance { + export type Available = Stripe_.Balance.Available; + export type ConnectReserved = Stripe_.Balance.ConnectReserved; + export type InstantAvailable = Stripe_.Balance.InstantAvailable; + export type Issuing = Stripe_.Balance.Issuing; + export type Pending = Stripe_.Balance.Pending; + export type RefundAndDisputePrefunding = Stripe_.Balance.RefundAndDisputePrefunding; + export type RiskReserved = Stripe_.Balance.RiskReserved; + export namespace Available { + export type SourceTypes = Stripe_.Balance.Available.SourceTypes; + } + export namespace ConnectReserved { + export type SourceTypes = Stripe_.Balance.ConnectReserved.SourceTypes; + } + export namespace InstantAvailable { + export type NetAvailable = Stripe_.Balance.InstantAvailable.NetAvailable; + export type SourceTypes = Stripe_.Balance.InstantAvailable.SourceTypes; + export namespace NetAvailable { + export type SourceTypes = Stripe_.Balance.InstantAvailable.NetAvailable.SourceTypes; + } + } + export namespace Issuing { + export type Available = Stripe_.Balance.Issuing.Available; + export namespace Available { + export type SourceTypes = Stripe_.Balance.Issuing.Available.SourceTypes; + } + } + export namespace Pending { + export type SourceTypes = Stripe_.Balance.Pending.SourceTypes; + } + export namespace RefundAndDisputePrefunding { + export type Available = Stripe_.Balance.RefundAndDisputePrefunding.Available; + export type Pending = Stripe_.Balance.RefundAndDisputePrefunding.Pending; + export namespace Available { + export type SourceTypes = Stripe_.Balance.RefundAndDisputePrefunding.Available.SourceTypes; + } + export namespace Pending { + export type SourceTypes = Stripe_.Balance.RefundAndDisputePrefunding.Pending.SourceTypes; + } + } + export namespace RiskReserved { + export type Available = Stripe_.Balance.RiskReserved.Available; + export type Pending = Stripe_.Balance.RiskReserved.Pending; + export namespace Available { + export type SourceTypes = Stripe_.Balance.RiskReserved.Available.SourceTypes; + } + export namespace Pending { + export type SourceTypes = Stripe_.Balance.RiskReserved.Pending.SourceTypes; + } + } } - export namespace CreditNoteListPreviewLineItemsParams { - export type EmailType = Stripe.CreditNoteListPreviewLineItemsParams.EmailType; - export type Line = Stripe.CreditNoteListPreviewLineItemsParams.Line; - export type Reason = Stripe.CreditNoteListPreviewLineItemsParams.Reason; - export type Refund = Stripe.CreditNoteListPreviewLineItemsParams.Refund; - export type ShippingCost = Stripe.CreditNoteListPreviewLineItemsParams.ShippingCost; + export namespace BalanceSettingsUpdateParams { + export type Payments = Stripe_.BalanceSettingsUpdateParams.Payments; + export namespace Payments { + export type Payouts = Stripe_.BalanceSettingsUpdateParams.Payments.Payouts; + export type SettlementTiming = Stripe_.BalanceSettingsUpdateParams.Payments.SettlementTiming; + export namespace Payouts { + export type AutomaticTransferRulesByCurrency = Stripe_.BalanceSettingsUpdateParams.Payments.Payouts.AutomaticTransferRulesByCurrency; + export type Schedule = Stripe_.BalanceSettingsUpdateParams.Payments.Payouts.Schedule; + export namespace AutomaticTransferRulesByCurrency { + export type Type = Stripe_.BalanceSettingsUpdateParams.Payments.Payouts.AutomaticTransferRulesByCurrency.Type; + } + export namespace Schedule { + export type Interval = Stripe_.BalanceSettingsUpdateParams.Payments.Payouts.Schedule.Interval; + export type WeeklyPayoutDay = Stripe_.BalanceSettingsUpdateParams.Payments.Payouts.Schedule.WeeklyPayoutDay; + } + } + export namespace SettlementTiming { + export type StartOfDay = Stripe_.BalanceSettingsUpdateParams.Payments.SettlementTiming.StartOfDay; + } + } } - export namespace CreditNotePreviewParams { - export type EmailType = Stripe.CreditNotePreviewParams.EmailType; - export type Line = Stripe.CreditNotePreviewParams.Line; - export type Reason = Stripe.CreditNotePreviewParams.Reason; - export type Refund = Stripe.CreditNotePreviewParams.Refund; - export type ShippingCost = Stripe.CreditNotePreviewParams.ShippingCost; + export namespace BalanceSettings { + export type Payments = Stripe_.BalanceSettings.Payments; + export namespace Payments { + export type Payouts = Stripe_.BalanceSettings.Payments.Payouts; + export type SettlementTiming = Stripe_.BalanceSettings.Payments.SettlementTiming; + export namespace Payouts { + export type AutomaticTransferRulesByCurrency = Stripe_.BalanceSettings.Payments.Payouts.AutomaticTransferRulesByCurrency; + export type Schedule = Stripe_.BalanceSettings.Payments.Payouts.Schedule; + export type Status = Stripe_.BalanceSettings.Payments.Payouts.Status; + export namespace AutomaticTransferRulesByCurrency { + export type Type = Stripe_.BalanceSettings.Payments.Payouts.AutomaticTransferRulesByCurrency.Type; + } + export namespace Schedule { + export type Interval = Stripe_.BalanceSettings.Payments.Payouts.Schedule.Interval; + export type WeeklyPayoutDay = Stripe_.BalanceSettings.Payments.Payouts.Schedule.WeeklyPayoutDay; + } + } + export namespace SettlementTiming { + export type StartOfDay = Stripe_.BalanceSettings.Payments.SettlementTiming.StartOfDay; + } + } } - export namespace CustomerCreateParams { - export type CashBalance = Stripe.CustomerCreateParams.CashBalance; - export type InvoiceSettings = Stripe.CustomerCreateParams.InvoiceSettings; - export type Shipping = Stripe.CustomerCreateParams.Shipping; - export type Tax = Stripe.CustomerCreateParams.Tax; - export type TaxExempt = Stripe.CustomerCreateParams.TaxExempt; - export type TaxIdDatum = Stripe.CustomerCreateParams.TaxIdDatum; + export namespace BalanceTransaction { + export type BalanceType = Stripe_.BalanceTransaction.BalanceType; + export type FeeDetail = Stripe_.BalanceTransaction.FeeDetail; + export type Type = Stripe_.BalanceTransaction.Type; } - export namespace CustomerUpdateParams { - export type CashBalance = Stripe.CustomerUpdateParams.CashBalance; - export type InvoiceSettings = Stripe.CustomerUpdateParams.InvoiceSettings; - export type Shipping = Stripe.CustomerUpdateParams.Shipping; - export type Tax = Stripe.CustomerUpdateParams.Tax; - export type TaxExempt = Stripe.CustomerUpdateParams.TaxExempt; + export namespace ChargeCreateParams { + export type Destination = Stripe_.ChargeCreateParams.Destination; + export type RadarOptions = Stripe_.ChargeCreateParams.RadarOptions; + export type Shipping = Stripe_.ChargeCreateParams.Shipping; + export type TransferData = Stripe_.ChargeCreateParams.TransferData; } - export namespace CustomerCreateFundingInstructionsParams { - export type BankTransfer = Stripe.CustomerCreateFundingInstructionsParams.BankTransfer; + export namespace ChargeUpdateParams { + export type FraudDetails = Stripe_.ChargeUpdateParams.FraudDetails; + export type PaymentDetails = Stripe_.ChargeUpdateParams.PaymentDetails; + export type Shipping = Stripe_.ChargeUpdateParams.Shipping; + export namespace FraudDetails { + export type UserReport = Stripe_.ChargeUpdateParams.FraudDetails.UserReport; + } + export namespace PaymentDetails { + export type CarRental = Stripe_.ChargeUpdateParams.PaymentDetails.CarRental; + export type CarRentalDatum = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum; + export type EventDetails = Stripe_.ChargeUpdateParams.PaymentDetails.EventDetails; + export type Flight = Stripe_.ChargeUpdateParams.PaymentDetails.Flight; + export type FlightDatum = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum; + export type Lodging = Stripe_.ChargeUpdateParams.PaymentDetails.Lodging; + export type LodgingDatum = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum; + export type Subscription = Stripe_.ChargeUpdateParams.PaymentDetails.Subscription; + export namespace CarRental { + export type Affiliate = Stripe_.ChargeUpdateParams.PaymentDetails.CarRental.Affiliate; + export type Delivery = Stripe_.ChargeUpdateParams.PaymentDetails.CarRental.Delivery; + export type Distance = Stripe_.ChargeUpdateParams.PaymentDetails.CarRental.Distance; + export type Driver = Stripe_.ChargeUpdateParams.PaymentDetails.CarRental.Driver; + export type ExtraCharge = Stripe_.ChargeUpdateParams.PaymentDetails.CarRental.ExtraCharge; + export type RateInterval = Stripe_.ChargeUpdateParams.PaymentDetails.CarRental.RateInterval; + export namespace Delivery { + export type Mode = Stripe_.ChargeUpdateParams.PaymentDetails.CarRental.Delivery.Mode; + export type Recipient = Stripe_.ChargeUpdateParams.PaymentDetails.CarRental.Delivery.Recipient; + } + export namespace Distance { + export type Unit = Stripe_.ChargeUpdateParams.PaymentDetails.CarRental.Distance.Unit; + } + } + export namespace CarRentalDatum { + export type Affiliate = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Affiliate; + export type Distance = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Distance; + export type Driver = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Driver; + export type DropOff = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.DropOff; + export type Insurance = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Insurance; + export type Pickup = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Pickup; + export type Total = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Total; + export type Vehicle = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Vehicle; + export namespace Distance { + export type Unit = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Distance.Unit; + } + export namespace Driver { + export type DateOfBirth = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Driver.DateOfBirth; + } + export namespace DropOff { + export type Address = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.DropOff.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Insurance.InsuranceType; + } + export namespace Pickup { + export type Address = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Pickup.Address; + } + export namespace Total { + export type Discounts = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Total.Discounts; + export type ExtraCharge = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Total.ExtraCharge; + export type RateUnit = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Total.RateUnit; + export type Tax = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Total.Tax.Tax; + } + } + export namespace Vehicle { + export type Type = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Vehicle.Type; + export type VehicleClass = Stripe_.ChargeUpdateParams.PaymentDetails.CarRentalDatum.Vehicle.VehicleClass; + } + } + export namespace EventDetails { + export type Affiliate = Stripe_.ChargeUpdateParams.PaymentDetails.EventDetails.Affiliate; + export type Delivery = Stripe_.ChargeUpdateParams.PaymentDetails.EventDetails.Delivery; + export namespace Delivery { + export type Mode = Stripe_.ChargeUpdateParams.PaymentDetails.EventDetails.Delivery.Mode; + export type Recipient = Stripe_.ChargeUpdateParams.PaymentDetails.EventDetails.Delivery.Recipient; + } + } + export namespace Flight { + export type Affiliate = Stripe_.ChargeUpdateParams.PaymentDetails.Flight.Affiliate; + export type Delivery = Stripe_.ChargeUpdateParams.PaymentDetails.Flight.Delivery; + export type Passenger = Stripe_.ChargeUpdateParams.PaymentDetails.Flight.Passenger; + export type Segment = Stripe_.ChargeUpdateParams.PaymentDetails.Flight.Segment; + export namespace Delivery { + export type Mode = Stripe_.ChargeUpdateParams.PaymentDetails.Flight.Delivery.Mode; + export type Recipient = Stripe_.ChargeUpdateParams.PaymentDetails.Flight.Delivery.Recipient; + } + export namespace Segment { + export type ServiceClass = Stripe_.ChargeUpdateParams.PaymentDetails.Flight.Segment.ServiceClass; + } + } + export namespace FlightDatum { + export type Affiliate = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Affiliate; + export type Insurance = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Insurance; + export type Passenger = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Passenger; + export type Segment = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Segment; + export type Total = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Total; + export type TransactionType = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.TransactionType; + export namespace Insurance { + export type InsuranceType = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Insurance.InsuranceType; + } + export namespace Segment { + export type Arrival = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Segment.Arrival; + export type Departure = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Segment.Departure; + export type ServiceClass = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Segment.ServiceClass; + } + export namespace Total { + export type CreditReason = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Total.CreditReason; + export type Discounts = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Total.Discounts; + export type ExtraCharge = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Total.ExtraCharge; + export type Tax = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.ChargeUpdateParams.PaymentDetails.FlightDatum.Total.Tax.Tax; + } + } + } + export namespace Lodging { + export type Affiliate = Stripe_.ChargeUpdateParams.PaymentDetails.Lodging.Affiliate; + export type Category = Stripe_.ChargeUpdateParams.PaymentDetails.Lodging.Category; + export type Delivery = Stripe_.ChargeUpdateParams.PaymentDetails.Lodging.Delivery; + export type ExtraCharge = Stripe_.ChargeUpdateParams.PaymentDetails.Lodging.ExtraCharge; + export type Passenger = Stripe_.ChargeUpdateParams.PaymentDetails.Lodging.Passenger; + export namespace Delivery { + export type Mode = Stripe_.ChargeUpdateParams.PaymentDetails.Lodging.Delivery.Mode; + export type Recipient = Stripe_.ChargeUpdateParams.PaymentDetails.Lodging.Delivery.Recipient; + } + } + export namespace LodgingDatum { + export type Accommodation = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Accommodation; + export type Affiliate = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Affiliate; + export type Guest = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Guest; + export type Host = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Host; + export type Insurance = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Insurance; + export type Total = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Total; + export namespace Accommodation { + export type AccommodationType = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Accommodation.AccommodationType; + } + export namespace Host { + export type Address = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Host.Address; + export type HostType = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Host.HostType; + } + export namespace Insurance { + export type InsuranceType = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Insurance.InsuranceType; + } + export namespace Total { + export type Discounts = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Total.Discounts; + export type ExtraCharge = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Total.ExtraCharge; + export type Tax = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.ChargeUpdateParams.PaymentDetails.LodgingDatum.Total.Tax.Tax; + } + } + } + export namespace Subscription { + export type Affiliate = Stripe_.ChargeUpdateParams.PaymentDetails.Subscription.Affiliate; + export type BillingInterval = Stripe_.ChargeUpdateParams.PaymentDetails.Subscription.BillingInterval; + export namespace BillingInterval { + export type Interval = Stripe_.ChargeUpdateParams.PaymentDetails.Subscription.BillingInterval.Interval; + } + } + } } - export namespace CustomerCreateTaxIdParams { - export type Type = Stripe.CustomerCreateTaxIdParams.Type; + export namespace ChargeCaptureParams { + export type PaymentDetails = Stripe_.ChargeCaptureParams.PaymentDetails; + export type TransferData = Stripe_.ChargeCaptureParams.TransferData; + export namespace PaymentDetails { + export type CarRental = Stripe_.ChargeCaptureParams.PaymentDetails.CarRental; + export type CarRentalDatum = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum; + export type EventDetails = Stripe_.ChargeCaptureParams.PaymentDetails.EventDetails; + export type Flight = Stripe_.ChargeCaptureParams.PaymentDetails.Flight; + export type FlightDatum = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum; + export type Lodging = Stripe_.ChargeCaptureParams.PaymentDetails.Lodging; + export type LodgingDatum = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum; + export type Subscription = Stripe_.ChargeCaptureParams.PaymentDetails.Subscription; + export namespace CarRental { + export type Affiliate = Stripe_.ChargeCaptureParams.PaymentDetails.CarRental.Affiliate; + export type Delivery = Stripe_.ChargeCaptureParams.PaymentDetails.CarRental.Delivery; + export type Distance = Stripe_.ChargeCaptureParams.PaymentDetails.CarRental.Distance; + export type Driver = Stripe_.ChargeCaptureParams.PaymentDetails.CarRental.Driver; + export type ExtraCharge = Stripe_.ChargeCaptureParams.PaymentDetails.CarRental.ExtraCharge; + export type RateInterval = Stripe_.ChargeCaptureParams.PaymentDetails.CarRental.RateInterval; + export namespace Delivery { + export type Mode = Stripe_.ChargeCaptureParams.PaymentDetails.CarRental.Delivery.Mode; + export type Recipient = Stripe_.ChargeCaptureParams.PaymentDetails.CarRental.Delivery.Recipient; + } + export namespace Distance { + export type Unit = Stripe_.ChargeCaptureParams.PaymentDetails.CarRental.Distance.Unit; + } + } + export namespace CarRentalDatum { + export type Affiliate = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Affiliate; + export type Distance = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Distance; + export type Driver = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Driver; + export type DropOff = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.DropOff; + export type Insurance = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Insurance; + export type Pickup = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Pickup; + export type Total = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Total; + export type Vehicle = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Vehicle; + export namespace Distance { + export type Unit = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Distance.Unit; + } + export namespace Driver { + export type DateOfBirth = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Driver.DateOfBirth; + } + export namespace DropOff { + export type Address = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.DropOff.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Insurance.InsuranceType; + } + export namespace Pickup { + export type Address = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Pickup.Address; + } + export namespace Total { + export type Discounts = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Total.Discounts; + export type ExtraCharge = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Total.ExtraCharge; + export type RateUnit = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Total.RateUnit; + export type Tax = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Total.Tax.Tax; + } + } + export namespace Vehicle { + export type Type = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Vehicle.Type; + export type VehicleClass = Stripe_.ChargeCaptureParams.PaymentDetails.CarRentalDatum.Vehicle.VehicleClass; + } + } + export namespace EventDetails { + export type Affiliate = Stripe_.ChargeCaptureParams.PaymentDetails.EventDetails.Affiliate; + export type Delivery = Stripe_.ChargeCaptureParams.PaymentDetails.EventDetails.Delivery; + export namespace Delivery { + export type Mode = Stripe_.ChargeCaptureParams.PaymentDetails.EventDetails.Delivery.Mode; + export type Recipient = Stripe_.ChargeCaptureParams.PaymentDetails.EventDetails.Delivery.Recipient; + } + } + export namespace Flight { + export type Affiliate = Stripe_.ChargeCaptureParams.PaymentDetails.Flight.Affiliate; + export type Delivery = Stripe_.ChargeCaptureParams.PaymentDetails.Flight.Delivery; + export type Passenger = Stripe_.ChargeCaptureParams.PaymentDetails.Flight.Passenger; + export type Segment = Stripe_.ChargeCaptureParams.PaymentDetails.Flight.Segment; + export namespace Delivery { + export type Mode = Stripe_.ChargeCaptureParams.PaymentDetails.Flight.Delivery.Mode; + export type Recipient = Stripe_.ChargeCaptureParams.PaymentDetails.Flight.Delivery.Recipient; + } + export namespace Segment { + export type ServiceClass = Stripe_.ChargeCaptureParams.PaymentDetails.Flight.Segment.ServiceClass; + } + } + export namespace FlightDatum { + export type Affiliate = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Affiliate; + export type Insurance = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Insurance; + export type Passenger = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Passenger; + export type Segment = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Segment; + export type Total = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Total; + export type TransactionType = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.TransactionType; + export namespace Insurance { + export type InsuranceType = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Insurance.InsuranceType; + } + export namespace Segment { + export type Arrival = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Segment.Arrival; + export type Departure = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Segment.Departure; + export type ServiceClass = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Segment.ServiceClass; + } + export namespace Total { + export type CreditReason = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Total.CreditReason; + export type Discounts = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Total.Discounts; + export type ExtraCharge = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Total.ExtraCharge; + export type Tax = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.ChargeCaptureParams.PaymentDetails.FlightDatum.Total.Tax.Tax; + } + } + } + export namespace Lodging { + export type Affiliate = Stripe_.ChargeCaptureParams.PaymentDetails.Lodging.Affiliate; + export type Category = Stripe_.ChargeCaptureParams.PaymentDetails.Lodging.Category; + export type Delivery = Stripe_.ChargeCaptureParams.PaymentDetails.Lodging.Delivery; + export type ExtraCharge = Stripe_.ChargeCaptureParams.PaymentDetails.Lodging.ExtraCharge; + export type Passenger = Stripe_.ChargeCaptureParams.PaymentDetails.Lodging.Passenger; + export namespace Delivery { + export type Mode = Stripe_.ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Mode; + export type Recipient = Stripe_.ChargeCaptureParams.PaymentDetails.Lodging.Delivery.Recipient; + } + } + export namespace LodgingDatum { + export type Accommodation = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Accommodation; + export type Affiliate = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Affiliate; + export type Guest = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Guest; + export type Host = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Host; + export type Insurance = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Insurance; + export type Total = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Total; + export namespace Accommodation { + export type AccommodationType = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Accommodation.AccommodationType; + } + export namespace Host { + export type Address = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Host.Address; + export type HostType = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Host.HostType; + } + export namespace Insurance { + export type InsuranceType = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Insurance.InsuranceType; + } + export namespace Total { + export type Discounts = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Total.Discounts; + export type ExtraCharge = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Total.ExtraCharge; + export type Tax = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.ChargeCaptureParams.PaymentDetails.LodgingDatum.Total.Tax.Tax; + } + } + } + export namespace Subscription { + export type Affiliate = Stripe_.ChargeCaptureParams.PaymentDetails.Subscription.Affiliate; + export type BillingInterval = Stripe_.ChargeCaptureParams.PaymentDetails.Subscription.BillingInterval; + export namespace BillingInterval { + export type Interval = Stripe_.ChargeCaptureParams.PaymentDetails.Subscription.BillingInterval.Interval; + } + } + } } - export namespace CustomerListPaymentMethodsParams { - export type AllowRedisplay = Stripe.CustomerListPaymentMethodsParams.AllowRedisplay; - export type Type = Stripe.CustomerListPaymentMethodsParams.Type; - } - export namespace CustomerUpdateCashBalanceParams { - export type Settings = Stripe.CustomerUpdateCashBalanceParams.Settings; - } - export namespace CustomerUpdateSourceParams { - export type AccountHolderType = Stripe.CustomerUpdateSourceParams.AccountHolderType; - export type Owner = Stripe.CustomerUpdateSourceParams.Owner; - } - export namespace CustomerSessionCreateParams { - export type Components = Stripe.CustomerSessionCreateParams.Components; - } - export namespace DisputeUpdateParams { - export type Evidence = Stripe.DisputeUpdateParams.Evidence; - export type IntendedSubmissionMethod = Stripe.DisputeUpdateParams.IntendedSubmissionMethod; + export namespace Charge { + export type BillingDetails = Stripe_.Charge.BillingDetails; + export type FraudDetails = Stripe_.Charge.FraudDetails; + export type Level3 = Stripe_.Charge.Level3; + export type Outcome = Stripe_.Charge.Outcome; + export type PaymentMethodDetails = Stripe_.Charge.PaymentMethodDetails; + export type PresentmentDetails = Stripe_.Charge.PresentmentDetails; + export type RadarOptions = Stripe_.Charge.RadarOptions; + export type Shipping = Stripe_.Charge.Shipping; + export type Status = Stripe_.Charge.Status; + export type TransferData = Stripe_.Charge.TransferData; + export namespace Level3 { + export type LineItem = Stripe_.Charge.Level3.LineItem; + } + export namespace Outcome { + export type AdviceCode = Stripe_.Charge.Outcome.AdviceCode; + export type Rule = Stripe_.Charge.Outcome.Rule; + } + export namespace PaymentMethodDetails { + export type AchCreditTransfer = Stripe_.Charge.PaymentMethodDetails.AchCreditTransfer; + export type AchDebit = Stripe_.Charge.PaymentMethodDetails.AchDebit; + export type AcssDebit = Stripe_.Charge.PaymentMethodDetails.AcssDebit; + export type Affirm = Stripe_.Charge.PaymentMethodDetails.Affirm; + export type AfterpayClearpay = Stripe_.Charge.PaymentMethodDetails.AfterpayClearpay; + export type Alipay = Stripe_.Charge.PaymentMethodDetails.Alipay; + export type Alma = Stripe_.Charge.PaymentMethodDetails.Alma; + export type AmazonPay = Stripe_.Charge.PaymentMethodDetails.AmazonPay; + export type AuBecsDebit = Stripe_.Charge.PaymentMethodDetails.AuBecsDebit; + export type BacsDebit = Stripe_.Charge.PaymentMethodDetails.BacsDebit; + export type Bancontact = Stripe_.Charge.PaymentMethodDetails.Bancontact; + export type Billie = Stripe_.Charge.PaymentMethodDetails.Billie; + export type Bizum = Stripe_.Charge.PaymentMethodDetails.Bizum; + export type Blik = Stripe_.Charge.PaymentMethodDetails.Blik; + export type Boleto = Stripe_.Charge.PaymentMethodDetails.Boleto; + export type Card = Stripe_.Charge.PaymentMethodDetails.Card; + export type CardPresent = Stripe_.Charge.PaymentMethodDetails.CardPresent; + export type Cashapp = Stripe_.Charge.PaymentMethodDetails.Cashapp; + export type Crypto = Stripe_.Charge.PaymentMethodDetails.Crypto; + export type CustomerBalance = Stripe_.Charge.PaymentMethodDetails.CustomerBalance; + export type Eps = Stripe_.Charge.PaymentMethodDetails.Eps; + export type Fpx = Stripe_.Charge.PaymentMethodDetails.Fpx; + export type Giropay = Stripe_.Charge.PaymentMethodDetails.Giropay; + export type Gopay = Stripe_.Charge.PaymentMethodDetails.Gopay; + export type Grabpay = Stripe_.Charge.PaymentMethodDetails.Grabpay; + export type IdBankTransfer = Stripe_.Charge.PaymentMethodDetails.IdBankTransfer; + export type Ideal = Stripe_.Charge.PaymentMethodDetails.Ideal; + export type InteracPresent = Stripe_.Charge.PaymentMethodDetails.InteracPresent; + export type KakaoPay = Stripe_.Charge.PaymentMethodDetails.KakaoPay; + export type Klarna = Stripe_.Charge.PaymentMethodDetails.Klarna; + export type Konbini = Stripe_.Charge.PaymentMethodDetails.Konbini; + export type KrCard = Stripe_.Charge.PaymentMethodDetails.KrCard; + export type Link = Stripe_.Charge.PaymentMethodDetails.Link; + export type MbWay = Stripe_.Charge.PaymentMethodDetails.MbWay; + export type Mobilepay = Stripe_.Charge.PaymentMethodDetails.Mobilepay; + export type Multibanco = Stripe_.Charge.PaymentMethodDetails.Multibanco; + export type NaverPay = Stripe_.Charge.PaymentMethodDetails.NaverPay; + export type NzBankAccount = Stripe_.Charge.PaymentMethodDetails.NzBankAccount; + export type Oxxo = Stripe_.Charge.PaymentMethodDetails.Oxxo; + export type P24 = Stripe_.Charge.PaymentMethodDetails.P24; + export type PayByBank = Stripe_.Charge.PaymentMethodDetails.PayByBank; + export type Payco = Stripe_.Charge.PaymentMethodDetails.Payco; + export type Paynow = Stripe_.Charge.PaymentMethodDetails.Paynow; + export type Paypal = Stripe_.Charge.PaymentMethodDetails.Paypal; + export type Paypay = Stripe_.Charge.PaymentMethodDetails.Paypay; + export type Payto = Stripe_.Charge.PaymentMethodDetails.Payto; + export type Pix = Stripe_.Charge.PaymentMethodDetails.Pix; + export type Promptpay = Stripe_.Charge.PaymentMethodDetails.Promptpay; + export type Qris = Stripe_.Charge.PaymentMethodDetails.Qris; + export type Rechnung = Stripe_.Charge.PaymentMethodDetails.Rechnung; + export type RevolutPay = Stripe_.Charge.PaymentMethodDetails.RevolutPay; + export type SamsungPay = Stripe_.Charge.PaymentMethodDetails.SamsungPay; + export type Satispay = Stripe_.Charge.PaymentMethodDetails.Satispay; + export type Scalapay = Stripe_.Charge.PaymentMethodDetails.Scalapay; + export type SepaCreditTransfer = Stripe_.Charge.PaymentMethodDetails.SepaCreditTransfer; + export type SepaDebit = Stripe_.Charge.PaymentMethodDetails.SepaDebit; + export type Shopeepay = Stripe_.Charge.PaymentMethodDetails.Shopeepay; + export type Sofort = Stripe_.Charge.PaymentMethodDetails.Sofort; + export type StripeAccount = Stripe_.Charge.PaymentMethodDetails.StripeAccount; + export type StripeBalance = Stripe_.Charge.PaymentMethodDetails.StripeBalance; + export type Sunbit = Stripe_.Charge.PaymentMethodDetails.Sunbit; + export type Swish = Stripe_.Charge.PaymentMethodDetails.Swish; + export type Twint = Stripe_.Charge.PaymentMethodDetails.Twint; + export type Upi = Stripe_.Charge.PaymentMethodDetails.Upi; + export type UsBankAccount = Stripe_.Charge.PaymentMethodDetails.UsBankAccount; + export type Wechat = Stripe_.Charge.PaymentMethodDetails.Wechat; + export type WechatPay = Stripe_.Charge.PaymentMethodDetails.WechatPay; + export type Zip = Stripe_.Charge.PaymentMethodDetails.Zip; + export namespace AchDebit { + export type AccountHolderType = Stripe_.Charge.PaymentMethodDetails.AchDebit.AccountHolderType; + } + export namespace Alma { + export type Installments = Stripe_.Charge.PaymentMethodDetails.Alma.Installments; + } + export namespace AmazonPay { + export type Funding = Stripe_.Charge.PaymentMethodDetails.AmazonPay.Funding; + export namespace Funding { + export type Card = Stripe_.Charge.PaymentMethodDetails.AmazonPay.Funding.Card; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.Charge.PaymentMethodDetails.Bancontact.PreferredLanguage; + } + export namespace Card { + export type Checks = Stripe_.Charge.PaymentMethodDetails.Card.Checks; + export type DecrementalAuthorization = Stripe_.Charge.PaymentMethodDetails.Card.DecrementalAuthorization; + export type ExtendedAuthorization = Stripe_.Charge.PaymentMethodDetails.Card.ExtendedAuthorization; + export type IncrementalAuthorization = Stripe_.Charge.PaymentMethodDetails.Card.IncrementalAuthorization; + export type Installments = Stripe_.Charge.PaymentMethodDetails.Card.Installments; + export type Multicapture = Stripe_.Charge.PaymentMethodDetails.Card.Multicapture; + export type NetworkToken = Stripe_.Charge.PaymentMethodDetails.Card.NetworkToken; + export type Overcapture = Stripe_.Charge.PaymentMethodDetails.Card.Overcapture; + export type PartialAuthorization = Stripe_.Charge.PaymentMethodDetails.Card.PartialAuthorization; + export type RegulatedStatus = Stripe_.Charge.PaymentMethodDetails.Card.RegulatedStatus; + export type ThreeDSecure = Stripe_.Charge.PaymentMethodDetails.Card.ThreeDSecure; + export type Wallet = Stripe_.Charge.PaymentMethodDetails.Card.Wallet; + export namespace DecrementalAuthorization { + export type Status = Stripe_.Charge.PaymentMethodDetails.Card.DecrementalAuthorization.Status; + } + export namespace ExtendedAuthorization { + export type Status = Stripe_.Charge.PaymentMethodDetails.Card.ExtendedAuthorization.Status; + } + export namespace IncrementalAuthorization { + export type Status = Stripe_.Charge.PaymentMethodDetails.Card.IncrementalAuthorization.Status; + } + export namespace Installments { + export type Plan = Stripe_.Charge.PaymentMethodDetails.Card.Installments.Plan; + export namespace Plan { + export type Type = Stripe_.Charge.PaymentMethodDetails.Card.Installments.Plan.Type; + } + } + export namespace Multicapture { + export type Status = Stripe_.Charge.PaymentMethodDetails.Card.Multicapture.Status; + } + export namespace Overcapture { + export type Status = Stripe_.Charge.PaymentMethodDetails.Card.Overcapture.Status; + } + export namespace PartialAuthorization { + export type Status = Stripe_.Charge.PaymentMethodDetails.Card.PartialAuthorization.Status; + } + export namespace ThreeDSecure { + export type AuthenticationFlow = Stripe_.Charge.PaymentMethodDetails.Card.ThreeDSecure.AuthenticationFlow; + export type ElectronicCommerceIndicator = Stripe_.Charge.PaymentMethodDetails.Card.ThreeDSecure.ElectronicCommerceIndicator; + export type ExemptionIndicator = Stripe_.Charge.PaymentMethodDetails.Card.ThreeDSecure.ExemptionIndicator; + export type Result = Stripe_.Charge.PaymentMethodDetails.Card.ThreeDSecure.Result; + export type ResultReason = Stripe_.Charge.PaymentMethodDetails.Card.ThreeDSecure.ResultReason; + export type Version = Stripe_.Charge.PaymentMethodDetails.Card.ThreeDSecure.Version; + } + export namespace Wallet { + export type AmexExpressCheckout = Stripe_.Charge.PaymentMethodDetails.Card.Wallet.AmexExpressCheckout; + export type ApplePay = Stripe_.Charge.PaymentMethodDetails.Card.Wallet.ApplePay; + export type GooglePay = Stripe_.Charge.PaymentMethodDetails.Card.Wallet.GooglePay; + export type Link = Stripe_.Charge.PaymentMethodDetails.Card.Wallet.Link; + export type Masterpass = Stripe_.Charge.PaymentMethodDetails.Card.Wallet.Masterpass; + export type SamsungPay = Stripe_.Charge.PaymentMethodDetails.Card.Wallet.SamsungPay; + export type Type = Stripe_.Charge.PaymentMethodDetails.Card.Wallet.Type; + export type VisaCheckout = Stripe_.Charge.PaymentMethodDetails.Card.Wallet.VisaCheckout; + } + } + export namespace CardPresent { + export type Offline = Stripe_.Charge.PaymentMethodDetails.CardPresent.Offline; + export type ReadMethod = Stripe_.Charge.PaymentMethodDetails.CardPresent.ReadMethod; + export type Receipt = Stripe_.Charge.PaymentMethodDetails.CardPresent.Receipt; + export type Wallet = Stripe_.Charge.PaymentMethodDetails.CardPresent.Wallet; + export namespace Receipt { + export type AccountType = Stripe_.Charge.PaymentMethodDetails.CardPresent.Receipt.AccountType; + } + export namespace Wallet { + export type Type = Stripe_.Charge.PaymentMethodDetails.CardPresent.Wallet.Type; + } + } + export namespace Crypto { + export type Network = Stripe_.Charge.PaymentMethodDetails.Crypto.Network; + export type TokenCurrency = Stripe_.Charge.PaymentMethodDetails.Crypto.TokenCurrency; + } + export namespace Eps { + export type Bank = Stripe_.Charge.PaymentMethodDetails.Eps.Bank; + } + export namespace Fpx { + export type AccountHolderType = Stripe_.Charge.PaymentMethodDetails.Fpx.AccountHolderType; + export type Bank = Stripe_.Charge.PaymentMethodDetails.Fpx.Bank; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.Charge.PaymentMethodDetails.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.Charge.PaymentMethodDetails.Ideal.Bank; + export type Bic = Stripe_.Charge.PaymentMethodDetails.Ideal.Bic; + } + export namespace InteracPresent { + export type ReadMethod = Stripe_.Charge.PaymentMethodDetails.InteracPresent.ReadMethod; + export type Receipt = Stripe_.Charge.PaymentMethodDetails.InteracPresent.Receipt; + export namespace Receipt { + export type AccountType = Stripe_.Charge.PaymentMethodDetails.InteracPresent.Receipt.AccountType; + } + } + export namespace Klarna { + export type PayerDetails = Stripe_.Charge.PaymentMethodDetails.Klarna.PayerDetails; + export namespace PayerDetails { + export type Address = Stripe_.Charge.PaymentMethodDetails.Klarna.PayerDetails.Address; + } + } + export namespace Konbini { + export type Store = Stripe_.Charge.PaymentMethodDetails.Konbini.Store; + export namespace Store { + export type Chain = Stripe_.Charge.PaymentMethodDetails.Konbini.Store.Chain; + } + } + export namespace KrCard { + export type Brand = Stripe_.Charge.PaymentMethodDetails.KrCard.Brand; + } + export namespace Mobilepay { + export type Card = Stripe_.Charge.PaymentMethodDetails.Mobilepay.Card; + } + export namespace P24 { + export type Bank = Stripe_.Charge.PaymentMethodDetails.P24.Bank; + } + export namespace Paypal { + export type SellerProtection = Stripe_.Charge.PaymentMethodDetails.Paypal.SellerProtection; + export namespace SellerProtection { + export type DisputeCategory = Stripe_.Charge.PaymentMethodDetails.Paypal.SellerProtection.DisputeCategory; + export type Status = Stripe_.Charge.PaymentMethodDetails.Paypal.SellerProtection.Status; + } + } + export namespace RevolutPay { + export type Funding = Stripe_.Charge.PaymentMethodDetails.RevolutPay.Funding; + export namespace Funding { + export type Card = Stripe_.Charge.PaymentMethodDetails.RevolutPay.Funding.Card; + } + } + export namespace Sofort { + export type PreferredLanguage = Stripe_.Charge.PaymentMethodDetails.Sofort.PreferredLanguage; + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.Charge.PaymentMethodDetails.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.Charge.PaymentMethodDetails.UsBankAccount.AccountType; + } + } } - export namespace ExternalAccountCreateParams { - export type Card = Stripe.ExternalAccountCreateParams.Card; - export type BankAccount = Stripe.ExternalAccountCreateParams.BankAccount; - export type CardToken = Stripe.ExternalAccountCreateParams.CardToken; + export namespace ConfirmationToken { + export type MandateData = Stripe_.ConfirmationToken.MandateData; + export type PaymentMethodOptions = Stripe_.ConfirmationToken.PaymentMethodOptions; + export type PaymentMethodPreview = Stripe_.ConfirmationToken.PaymentMethodPreview; + export type SetupFutureUsage = Stripe_.ConfirmationToken.SetupFutureUsage; + export type Shipping = Stripe_.ConfirmationToken.Shipping; + export namespace MandateData { + export type CustomerAcceptance = Stripe_.ConfirmationToken.MandateData.CustomerAcceptance; + export namespace CustomerAcceptance { + export type Online = Stripe_.ConfirmationToken.MandateData.CustomerAcceptance.Online; + } + } + export namespace PaymentMethodOptions { + export type Card = Stripe_.ConfirmationToken.PaymentMethodOptions.Card; + export namespace Card { + export type Installments = Stripe_.ConfirmationToken.PaymentMethodOptions.Card.Installments; + export namespace Installments { + export type Plan = Stripe_.ConfirmationToken.PaymentMethodOptions.Card.Installments.Plan; + export namespace Plan { + export type Type = Stripe_.ConfirmationToken.PaymentMethodOptions.Card.Installments.Plan.Type; + } + } + } + } + export namespace PaymentMethodPreview { + export type AcssDebit = Stripe_.ConfirmationToken.PaymentMethodPreview.AcssDebit; + export type Affirm = Stripe_.ConfirmationToken.PaymentMethodPreview.Affirm; + export type AfterpayClearpay = Stripe_.ConfirmationToken.PaymentMethodPreview.AfterpayClearpay; + export type Alipay = Stripe_.ConfirmationToken.PaymentMethodPreview.Alipay; + export type AllowRedisplay = Stripe_.ConfirmationToken.PaymentMethodPreview.AllowRedisplay; + export type Alma = Stripe_.ConfirmationToken.PaymentMethodPreview.Alma; + export type AmazonPay = Stripe_.ConfirmationToken.PaymentMethodPreview.AmazonPay; + export type AuBecsDebit = Stripe_.ConfirmationToken.PaymentMethodPreview.AuBecsDebit; + export type BacsDebit = Stripe_.ConfirmationToken.PaymentMethodPreview.BacsDebit; + export type Bancontact = Stripe_.ConfirmationToken.PaymentMethodPreview.Bancontact; + export type Billie = Stripe_.ConfirmationToken.PaymentMethodPreview.Billie; + export type BillingDetails = Stripe_.ConfirmationToken.PaymentMethodPreview.BillingDetails; + export type Bizum = Stripe_.ConfirmationToken.PaymentMethodPreview.Bizum; + export type Blik = Stripe_.ConfirmationToken.PaymentMethodPreview.Blik; + export type Boleto = Stripe_.ConfirmationToken.PaymentMethodPreview.Boleto; + export type Card = Stripe_.ConfirmationToken.PaymentMethodPreview.Card; + export type CardPresent = Stripe_.ConfirmationToken.PaymentMethodPreview.CardPresent; + export type Cashapp = Stripe_.ConfirmationToken.PaymentMethodPreview.Cashapp; + export type Crypto = Stripe_.ConfirmationToken.PaymentMethodPreview.Crypto; + export type CustomerBalance = Stripe_.ConfirmationToken.PaymentMethodPreview.CustomerBalance; + export type Eps = Stripe_.ConfirmationToken.PaymentMethodPreview.Eps; + export type Fpx = Stripe_.ConfirmationToken.PaymentMethodPreview.Fpx; + export type Giropay = Stripe_.ConfirmationToken.PaymentMethodPreview.Giropay; + export type Gopay = Stripe_.ConfirmationToken.PaymentMethodPreview.Gopay; + export type Grabpay = Stripe_.ConfirmationToken.PaymentMethodPreview.Grabpay; + export type IdBankTransfer = Stripe_.ConfirmationToken.PaymentMethodPreview.IdBankTransfer; + export type Ideal = Stripe_.ConfirmationToken.PaymentMethodPreview.Ideal; + export type InteracPresent = Stripe_.ConfirmationToken.PaymentMethodPreview.InteracPresent; + export type KakaoPay = Stripe_.ConfirmationToken.PaymentMethodPreview.KakaoPay; + export type Klarna = Stripe_.ConfirmationToken.PaymentMethodPreview.Klarna; + export type Konbini = Stripe_.ConfirmationToken.PaymentMethodPreview.Konbini; + export type KrCard = Stripe_.ConfirmationToken.PaymentMethodPreview.KrCard; + export type Link = Stripe_.ConfirmationToken.PaymentMethodPreview.Link; + export type MbWay = Stripe_.ConfirmationToken.PaymentMethodPreview.MbWay; + export type Mobilepay = Stripe_.ConfirmationToken.PaymentMethodPreview.Mobilepay; + export type Multibanco = Stripe_.ConfirmationToken.PaymentMethodPreview.Multibanco; + export type NaverPay = Stripe_.ConfirmationToken.PaymentMethodPreview.NaverPay; + export type NzBankAccount = Stripe_.ConfirmationToken.PaymentMethodPreview.NzBankAccount; + export type Oxxo = Stripe_.ConfirmationToken.PaymentMethodPreview.Oxxo; + export type P24 = Stripe_.ConfirmationToken.PaymentMethodPreview.P24; + export type PayByBank = Stripe_.ConfirmationToken.PaymentMethodPreview.PayByBank; + export type Payco = Stripe_.ConfirmationToken.PaymentMethodPreview.Payco; + export type Paynow = Stripe_.ConfirmationToken.PaymentMethodPreview.Paynow; + export type Paypal = Stripe_.ConfirmationToken.PaymentMethodPreview.Paypal; + export type Paypay = Stripe_.ConfirmationToken.PaymentMethodPreview.Paypay; + export type Payto = Stripe_.ConfirmationToken.PaymentMethodPreview.Payto; + export type Pix = Stripe_.ConfirmationToken.PaymentMethodPreview.Pix; + export type Promptpay = Stripe_.ConfirmationToken.PaymentMethodPreview.Promptpay; + export type Qris = Stripe_.ConfirmationToken.PaymentMethodPreview.Qris; + export type Rechnung = Stripe_.ConfirmationToken.PaymentMethodPreview.Rechnung; + export type RevolutPay = Stripe_.ConfirmationToken.PaymentMethodPreview.RevolutPay; + export type SamsungPay = Stripe_.ConfirmationToken.PaymentMethodPreview.SamsungPay; + export type Satispay = Stripe_.ConfirmationToken.PaymentMethodPreview.Satispay; + export type Scalapay = Stripe_.ConfirmationToken.PaymentMethodPreview.Scalapay; + export type SepaDebit = Stripe_.ConfirmationToken.PaymentMethodPreview.SepaDebit; + export type Shopeepay = Stripe_.ConfirmationToken.PaymentMethodPreview.Shopeepay; + export type Sofort = Stripe_.ConfirmationToken.PaymentMethodPreview.Sofort; + export type StripeBalance = Stripe_.ConfirmationToken.PaymentMethodPreview.StripeBalance; + export type Sunbit = Stripe_.ConfirmationToken.PaymentMethodPreview.Sunbit; + export type Swish = Stripe_.ConfirmationToken.PaymentMethodPreview.Swish; + export type Twint = Stripe_.ConfirmationToken.PaymentMethodPreview.Twint; + export type Type = Stripe_.ConfirmationToken.PaymentMethodPreview.Type; + export type Upi = Stripe_.ConfirmationToken.PaymentMethodPreview.Upi; + export type UsBankAccount = Stripe_.ConfirmationToken.PaymentMethodPreview.UsBankAccount; + export type WechatPay = Stripe_.ConfirmationToken.PaymentMethodPreview.WechatPay; + export type Zip = Stripe_.ConfirmationToken.PaymentMethodPreview.Zip; + export namespace Card { + export type Checks = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.Checks; + export type GeneratedFrom = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom; + export type Networks = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.Networks; + export type RegulatedStatus = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.RegulatedStatus; + export type ThreeDSecureUsage = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.ThreeDSecureUsage; + export type Wallet = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.Wallet; + export namespace GeneratedFrom { + export type PaymentMethodDetails = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails; + export namespace PaymentMethodDetails { + export type CardPresent = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails.CardPresent; + export namespace CardPresent { + export type Offline = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Offline; + export type ReadMethod = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.ReadMethod; + export type Receipt = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Receipt; + export type Wallet = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Wallet; + export namespace Receipt { + export type AccountType = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Receipt.AccountType; + } + export namespace Wallet { + export type Type = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Wallet.Type; + } + } + } + } + export namespace Wallet { + export type AmexExpressCheckout = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.Wallet.AmexExpressCheckout; + export type ApplePay = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.Wallet.ApplePay; + export type GooglePay = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.Wallet.GooglePay; + export type Link = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.Wallet.Link; + export type Masterpass = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.Wallet.Masterpass; + export type SamsungPay = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.Wallet.SamsungPay; + export type Type = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.Wallet.Type; + export type VisaCheckout = Stripe_.ConfirmationToken.PaymentMethodPreview.Card.Wallet.VisaCheckout; + } + } + export namespace CardPresent { + export type Networks = Stripe_.ConfirmationToken.PaymentMethodPreview.CardPresent.Networks; + export type Offline = Stripe_.ConfirmationToken.PaymentMethodPreview.CardPresent.Offline; + export type ReadMethod = Stripe_.ConfirmationToken.PaymentMethodPreview.CardPresent.ReadMethod; + export type Wallet = Stripe_.ConfirmationToken.PaymentMethodPreview.CardPresent.Wallet; + export namespace Wallet { + export type Type = Stripe_.ConfirmationToken.PaymentMethodPreview.CardPresent.Wallet.Type; + } + } + export namespace Eps { + export type Bank = Stripe_.ConfirmationToken.PaymentMethodPreview.Eps.Bank; + } + export namespace Fpx { + export type AccountHolderType = Stripe_.ConfirmationToken.PaymentMethodPreview.Fpx.AccountHolderType; + export type Bank = Stripe_.ConfirmationToken.PaymentMethodPreview.Fpx.Bank; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.ConfirmationToken.PaymentMethodPreview.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.ConfirmationToken.PaymentMethodPreview.Ideal.Bank; + export type Bic = Stripe_.ConfirmationToken.PaymentMethodPreview.Ideal.Bic; + } + export namespace InteracPresent { + export type Networks = Stripe_.ConfirmationToken.PaymentMethodPreview.InteracPresent.Networks; + export type ReadMethod = Stripe_.ConfirmationToken.PaymentMethodPreview.InteracPresent.ReadMethod; + } + export namespace Klarna { + export type Dob = Stripe_.ConfirmationToken.PaymentMethodPreview.Klarna.Dob; + } + export namespace KrCard { + export type Brand = Stripe_.ConfirmationToken.PaymentMethodPreview.KrCard.Brand; + } + export namespace NaverPay { + export type Funding = Stripe_.ConfirmationToken.PaymentMethodPreview.NaverPay.Funding; + } + export namespace P24 { + export type Bank = Stripe_.ConfirmationToken.PaymentMethodPreview.P24.Bank; + } + export namespace Rechnung { + export type Dob = Stripe_.ConfirmationToken.PaymentMethodPreview.Rechnung.Dob; + } + export namespace SepaDebit { + export type GeneratedFrom = Stripe_.ConfirmationToken.PaymentMethodPreview.SepaDebit.GeneratedFrom; + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.ConfirmationToken.PaymentMethodPreview.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.ConfirmationToken.PaymentMethodPreview.UsBankAccount.AccountType; + export type Networks = Stripe_.ConfirmationToken.PaymentMethodPreview.UsBankAccount.Networks; + export type StatusDetails = Stripe_.ConfirmationToken.PaymentMethodPreview.UsBankAccount.StatusDetails; + export namespace Networks { + export type Supported = Stripe_.ConfirmationToken.PaymentMethodPreview.UsBankAccount.Networks.Supported; + } + export namespace StatusDetails { + export type Blocked = Stripe_.ConfirmationToken.PaymentMethodPreview.UsBankAccount.StatusDetails.Blocked; + export namespace Blocked { + export type NetworkCode = Stripe_.ConfirmationToken.PaymentMethodPreview.UsBankAccount.StatusDetails.Blocked.NetworkCode; + export type Reason = Stripe_.ConfirmationToken.PaymentMethodPreview.UsBankAccount.StatusDetails.Blocked.Reason; + } + } + } + } } - export namespace ExternalAccountUpdateParams { - export type AccountHolderType = Stripe.ExternalAccountUpdateParams.AccountHolderType; - export type AccountType = Stripe.ExternalAccountUpdateParams.AccountType; - export type Documents = Stripe.ExternalAccountUpdateParams.Documents; + export namespace CountrySpec { + export type VerificationFields = Stripe_.CountrySpec.VerificationFields; + export namespace VerificationFields { + export type Company = Stripe_.CountrySpec.VerificationFields.Company; + export type Individual = Stripe_.CountrySpec.VerificationFields.Individual; + } } - export namespace ExternalAccountListParams { - export type Object = Stripe.ExternalAccountListParams.Object; + export namespace CouponCreateParams { + export type AppliesTo = Stripe_.CouponCreateParams.AppliesTo; + export type CurrencyOptions = Stripe_.CouponCreateParams.CurrencyOptions; + export type Duration = Stripe_.CouponCreateParams.Duration; + export type Script = Stripe_.CouponCreateParams.Script; + export namespace Script { + export type Configuration = Stripe_.CouponCreateParams.Script.Configuration; + } } - export namespace FileCreateParams { - export type Purpose = Stripe.FileCreateParams.Purpose; - export type FileLinkData = Stripe.FileCreateParams.FileLinkData; + export namespace CouponUpdateParams { + export type CurrencyOptions = Stripe_.CouponUpdateParams.CurrencyOptions; } - export namespace FileListParams { - export type Purpose = Stripe.FileListParams.Purpose; + export namespace Coupon { + export type AppliesTo = Stripe_.Coupon.AppliesTo; + export type CurrencyOptions = Stripe_.Coupon.CurrencyOptions; + export type Duration = Stripe_.Coupon.Duration; + export type Script = Stripe_.Coupon.Script; + export type Type = Stripe_.Coupon.Type; + export namespace Script { + export type Configuration = Stripe_.Coupon.Script.Configuration; + } } - export namespace FxQuoteCreateParams { - export type LockDuration = Stripe.FxQuoteCreateParams.LockDuration; - export type Usage = Stripe.FxQuoteCreateParams.Usage; + export namespace CreditNoteCreateParams { + export type EmailType = Stripe_.CreditNoteCreateParams.EmailType; + export type Line = Stripe_.CreditNoteCreateParams.Line; + export type Reason = Stripe_.CreditNoteCreateParams.Reason; + export type Refund = Stripe_.CreditNoteCreateParams.Refund; + export type ShippingCost = Stripe_.CreditNoteCreateParams.ShippingCost; + export namespace Line { + export type TaxAmount = Stripe_.CreditNoteCreateParams.Line.TaxAmount; + export type Type = Stripe_.CreditNoteCreateParams.Line.Type; + } + export namespace Refund { + export type PaymentRecordRefund = Stripe_.CreditNoteCreateParams.Refund.PaymentRecordRefund; + export type Type = Stripe_.CreditNoteCreateParams.Refund.Type; + } } - export namespace InvoiceCreateParams { - export type AmountsDue = Stripe.InvoiceCreateParams.AmountsDue; - export type AutomaticTax = Stripe.InvoiceCreateParams.AutomaticTax; - export type CollectionMethod = Stripe.InvoiceCreateParams.CollectionMethod; - export type CustomField = Stripe.InvoiceCreateParams.CustomField; - export type Discount = Stripe.InvoiceCreateParams.Discount; - export type FromInvoice = Stripe.InvoiceCreateParams.FromInvoice; - export type Issuer = Stripe.InvoiceCreateParams.Issuer; - export type PaymentSettings = Stripe.InvoiceCreateParams.PaymentSettings; - export type PendingInvoiceItemsBehavior = Stripe.InvoiceCreateParams.PendingInvoiceItemsBehavior; - export type Rendering = Stripe.InvoiceCreateParams.Rendering; - export type ShippingCost = Stripe.InvoiceCreateParams.ShippingCost; - export type ShippingDetails = Stripe.InvoiceCreateParams.ShippingDetails; - export type TransferData = Stripe.InvoiceCreateParams.TransferData; + export namespace CreditNoteListPreviewLineItemsParams { + export type EmailType = Stripe_.CreditNoteListPreviewLineItemsParams.EmailType; + export type Line = Stripe_.CreditNoteListPreviewLineItemsParams.Line; + export type Reason = Stripe_.CreditNoteListPreviewLineItemsParams.Reason; + export type Refund = Stripe_.CreditNoteListPreviewLineItemsParams.Refund; + export type ShippingCost = Stripe_.CreditNoteListPreviewLineItemsParams.ShippingCost; + export namespace Line { + export type TaxAmount = Stripe_.CreditNoteListPreviewLineItemsParams.Line.TaxAmount; + export type Type = Stripe_.CreditNoteListPreviewLineItemsParams.Line.Type; + } + export namespace Refund { + export type PaymentRecordRefund = Stripe_.CreditNoteListPreviewLineItemsParams.Refund.PaymentRecordRefund; + export type Type = Stripe_.CreditNoteListPreviewLineItemsParams.Refund.Type; + } } - export namespace InvoiceUpdateParams { - export type AmountsDue = Stripe.InvoiceUpdateParams.AmountsDue; - export type AutomaticTax = Stripe.InvoiceUpdateParams.AutomaticTax; - export type CollectionMethod = Stripe.InvoiceUpdateParams.CollectionMethod; - export type CustomField = Stripe.InvoiceUpdateParams.CustomField; - export type Discount = Stripe.InvoiceUpdateParams.Discount; - export type Issuer = Stripe.InvoiceUpdateParams.Issuer; - export type PaymentSettings = Stripe.InvoiceUpdateParams.PaymentSettings; - export type Rendering = Stripe.InvoiceUpdateParams.Rendering; - export type ShippingCost = Stripe.InvoiceUpdateParams.ShippingCost; - export type ShippingDetails = Stripe.InvoiceUpdateParams.ShippingDetails; - export type TransferData = Stripe.InvoiceUpdateParams.TransferData; + export namespace CreditNotePreviewParams { + export type EmailType = Stripe_.CreditNotePreviewParams.EmailType; + export type Line = Stripe_.CreditNotePreviewParams.Line; + export type Reason = Stripe_.CreditNotePreviewParams.Reason; + export type Refund = Stripe_.CreditNotePreviewParams.Refund; + export type ShippingCost = Stripe_.CreditNotePreviewParams.ShippingCost; + export namespace Line { + export type TaxAmount = Stripe_.CreditNotePreviewParams.Line.TaxAmount; + export type Type = Stripe_.CreditNotePreviewParams.Line.Type; + } + export namespace Refund { + export type PaymentRecordRefund = Stripe_.CreditNotePreviewParams.Refund.PaymentRecordRefund; + export type Type = Stripe_.CreditNotePreviewParams.Refund.Type; + } } - export namespace InvoiceListParams { - export type CollectionMethod = Stripe.InvoiceListParams.CollectionMethod; - export type Status = Stripe.InvoiceListParams.Status; + export namespace CreditNote { + export type DiscountAmount = Stripe_.CreditNote.DiscountAmount; + export type PretaxCreditAmount = Stripe_.CreditNote.PretaxCreditAmount; + export type Reason = Stripe_.CreditNote.Reason; + export type Refund = Stripe_.CreditNote.Refund; + export type ShippingCost = Stripe_.CreditNote.ShippingCost; + export type Status = Stripe_.CreditNote.Status; + export type TotalTax = Stripe_.CreditNote.TotalTax; + export type Type = Stripe_.CreditNote.Type; + export namespace PretaxCreditAmount { + export type Type = Stripe_.CreditNote.PretaxCreditAmount.Type; + } + export namespace Refund { + export type PaymentRecordRefund = Stripe_.CreditNote.Refund.PaymentRecordRefund; + export type Type = Stripe_.CreditNote.Refund.Type; + } + export namespace ShippingCost { + export type Tax = Stripe_.CreditNote.ShippingCost.Tax; + export namespace Tax { + export type TaxabilityReason = Stripe_.CreditNote.ShippingCost.Tax.TaxabilityReason; + } + } + export namespace TotalTax { + export type TaxBehavior = Stripe_.CreditNote.TotalTax.TaxBehavior; + export type TaxRateDetails = Stripe_.CreditNote.TotalTax.TaxRateDetails; + export type TaxabilityReason = Stripe_.CreditNote.TotalTax.TaxabilityReason; + } } - export namespace InvoiceAddLinesParams { - export type Line = Stripe.InvoiceAddLinesParams.Line; + export namespace CustomerCreateParams { + export type CashBalance = Stripe_.CustomerCreateParams.CashBalance; + export type InvoiceSettings = Stripe_.CustomerCreateParams.InvoiceSettings; + export type Shipping = Stripe_.CustomerCreateParams.Shipping; + export type Tax = Stripe_.CustomerCreateParams.Tax; + export type TaxExempt = Stripe_.CustomerCreateParams.TaxExempt; + export type TaxIdDatum = Stripe_.CustomerCreateParams.TaxIdDatum; + export namespace CashBalance { + export type Settings = Stripe_.CustomerCreateParams.CashBalance.Settings; + export namespace Settings { + export type ReconciliationMode = Stripe_.CustomerCreateParams.CashBalance.Settings.ReconciliationMode; + } + } + export namespace InvoiceSettings { + export type CustomField = Stripe_.CustomerCreateParams.InvoiceSettings.CustomField; + export type RenderingOptions = Stripe_.CustomerCreateParams.InvoiceSettings.RenderingOptions; + export namespace RenderingOptions { + export type AmountTaxDisplay = Stripe_.CustomerCreateParams.InvoiceSettings.RenderingOptions.AmountTaxDisplay; + } + } + export namespace Tax { + export type ValidateLocation = Stripe_.CustomerCreateParams.Tax.ValidateLocation; + } + export namespace TaxIdDatum { + export type Type = Stripe_.CustomerCreateParams.TaxIdDatum.Type; + } } - export namespace InvoiceAttachPaymentParams { - export type PaymentRecordData = Stripe.InvoiceAttachPaymentParams.PaymentRecordData; + export namespace CustomerUpdateParams { + export type CashBalance = Stripe_.CustomerUpdateParams.CashBalance; + export type InvoiceSettings = Stripe_.CustomerUpdateParams.InvoiceSettings; + export type Shipping = Stripe_.CustomerUpdateParams.Shipping; + export type Tax = Stripe_.CustomerUpdateParams.Tax; + export type TaxExempt = Stripe_.CustomerUpdateParams.TaxExempt; + export namespace CashBalance { + export type Settings = Stripe_.CustomerUpdateParams.CashBalance.Settings; + export namespace Settings { + export type ReconciliationMode = Stripe_.CustomerUpdateParams.CashBalance.Settings.ReconciliationMode; + } + } + export namespace InvoiceSettings { + export type CustomField = Stripe_.CustomerUpdateParams.InvoiceSettings.CustomField; + export type RenderingOptions = Stripe_.CustomerUpdateParams.InvoiceSettings.RenderingOptions; + export namespace RenderingOptions { + export type AmountTaxDisplay = Stripe_.CustomerUpdateParams.InvoiceSettings.RenderingOptions.AmountTaxDisplay; + } + } + export namespace Tax { + export type ValidateLocation = Stripe_.CustomerUpdateParams.Tax.ValidateLocation; + } } - export namespace InvoiceCreatePreviewParams { - export type AutomaticTax = Stripe.InvoiceCreatePreviewParams.AutomaticTax; - export type CustomerDetails = Stripe.InvoiceCreatePreviewParams.CustomerDetails; - export type Discount = Stripe.InvoiceCreatePreviewParams.Discount; - export type InvoiceItem = Stripe.InvoiceCreatePreviewParams.InvoiceItem; - export type Issuer = Stripe.InvoiceCreatePreviewParams.Issuer; - export type PreviewMode = Stripe.InvoiceCreatePreviewParams.PreviewMode; - export type ScheduleDetails = Stripe.InvoiceCreatePreviewParams.ScheduleDetails; - export type SubscriptionDetails = Stripe.InvoiceCreatePreviewParams.SubscriptionDetails; + export namespace CustomerCreateFundingInstructionsParams { + export type BankTransfer = Stripe_.CustomerCreateFundingInstructionsParams.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.CustomerCreateFundingInstructionsParams.BankTransfer.EuBankTransfer; + export type RequestedAddressType = Stripe_.CustomerCreateFundingInstructionsParams.BankTransfer.RequestedAddressType; + export type Type = Stripe_.CustomerCreateFundingInstructionsParams.BankTransfer.Type; + } } - export namespace InvoiceRemoveLinesParams { - export type Line = Stripe.InvoiceRemoveLinesParams.Line; + export namespace CustomerCreateTaxIdParams { + export type Type = Stripe_.CustomerCreateTaxIdParams.Type; } - export namespace InvoiceUpdateLinesParams { - export type Line = Stripe.InvoiceUpdateLinesParams.Line; + export namespace CustomerListPaymentMethodsParams { + export type AllowRedisplay = Stripe_.CustomerListPaymentMethodsParams.AllowRedisplay; + export type Type = Stripe_.CustomerListPaymentMethodsParams.Type; } - export namespace InvoiceUpdateLineItemParams { - export type Discount = Stripe.InvoiceUpdateLineItemParams.Discount; - export type Period = Stripe.InvoiceUpdateLineItemParams.Period; - export type PriceData = Stripe.InvoiceUpdateLineItemParams.PriceData; - export type Pricing = Stripe.InvoiceUpdateLineItemParams.Pricing; - export type TaxAmount = Stripe.InvoiceUpdateLineItemParams.TaxAmount; + export namespace CustomerUpdateCashBalanceParams { + export type Settings = Stripe_.CustomerUpdateCashBalanceParams.Settings; + export namespace Settings { + export type ReconciliationMode = Stripe_.CustomerUpdateCashBalanceParams.Settings.ReconciliationMode; + } } - export namespace InvoiceItemCreateParams { - export type Discount = Stripe.InvoiceItemCreateParams.Discount; - export type Period = Stripe.InvoiceItemCreateParams.Period; - export type PriceData = Stripe.InvoiceItemCreateParams.PriceData; - export type Pricing = Stripe.InvoiceItemCreateParams.Pricing; - export type TaxBehavior = Stripe.InvoiceItemCreateParams.TaxBehavior; + export namespace CustomerUpdateSourceParams { + export type AccountHolderType = Stripe_.CustomerUpdateSourceParams.AccountHolderType; + export type Owner = Stripe_.CustomerUpdateSourceParams.Owner; } - export namespace InvoiceItemUpdateParams { - export type Discount = Stripe.InvoiceItemUpdateParams.Discount; - export type Period = Stripe.InvoiceItemUpdateParams.Period; - export type PriceData = Stripe.InvoiceItemUpdateParams.PriceData; - export type Pricing = Stripe.InvoiceItemUpdateParams.Pricing; - export type TaxBehavior = Stripe.InvoiceItemUpdateParams.TaxBehavior; + export namespace Customer { + export type InvoiceSettings = Stripe_.Customer.InvoiceSettings; + export type Shipping = Stripe_.Customer.Shipping; + export type Tax = Stripe_.Customer.Tax; + export type TaxExempt = Stripe_.Customer.TaxExempt; + export namespace InvoiceSettings { + export type CustomField = Stripe_.Customer.InvoiceSettings.CustomField; + export type RenderingOptions = Stripe_.Customer.InvoiceSettings.RenderingOptions; + } + export namespace Tax { + export type AutomaticTax = Stripe_.Customer.Tax.AutomaticTax; + export type Location = Stripe_.Customer.Tax.Location; + export type Provider = Stripe_.Customer.Tax.Provider; + export namespace Location { + export type Source = Stripe_.Customer.Tax.Location.Source; + } + } } - export namespace InvoicePaymentListParams { - export type Payment = Stripe.InvoicePaymentListParams.Payment; - export type Status = Stripe.InvoicePaymentListParams.Status; + export namespace CustomerSessionCreateParams { + export type Components = Stripe_.CustomerSessionCreateParams.Components; + export namespace Components { + export type BuyButton = Stripe_.CustomerSessionCreateParams.Components.BuyButton; + export type CustomerSheet = Stripe_.CustomerSessionCreateParams.Components.CustomerSheet; + export type MobilePaymentElement = Stripe_.CustomerSessionCreateParams.Components.MobilePaymentElement; + export type PaymentElement = Stripe_.CustomerSessionCreateParams.Components.PaymentElement; + export type PricingTable = Stripe_.CustomerSessionCreateParams.Components.PricingTable; + export type TaxIdElement = Stripe_.CustomerSessionCreateParams.Components.TaxIdElement; + export namespace CustomerSheet { + export type Features = Stripe_.CustomerSessionCreateParams.Components.CustomerSheet.Features; + export namespace Features { + export type PaymentMethodAllowRedisplayFilter = Stripe_.CustomerSessionCreateParams.Components.CustomerSheet.Features.PaymentMethodAllowRedisplayFilter; + export type PaymentMethodRemove = Stripe_.CustomerSessionCreateParams.Components.CustomerSheet.Features.PaymentMethodRemove; + } + } + export namespace MobilePaymentElement { + export type Features = Stripe_.CustomerSessionCreateParams.Components.MobilePaymentElement.Features; + export namespace Features { + export type PaymentMethodAllowRedisplayFilter = Stripe_.CustomerSessionCreateParams.Components.MobilePaymentElement.Features.PaymentMethodAllowRedisplayFilter; + export type PaymentMethodRedisplay = Stripe_.CustomerSessionCreateParams.Components.MobilePaymentElement.Features.PaymentMethodRedisplay; + export type PaymentMethodRemove = Stripe_.CustomerSessionCreateParams.Components.MobilePaymentElement.Features.PaymentMethodRemove; + export type PaymentMethodSave = Stripe_.CustomerSessionCreateParams.Components.MobilePaymentElement.Features.PaymentMethodSave; + export type PaymentMethodSaveAllowRedisplayOverride = Stripe_.CustomerSessionCreateParams.Components.MobilePaymentElement.Features.PaymentMethodSaveAllowRedisplayOverride; + } + } + export namespace PaymentElement { + export type Features = Stripe_.CustomerSessionCreateParams.Components.PaymentElement.Features; + export namespace Features { + export type PaymentMethodAllowRedisplayFilter = Stripe_.CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodAllowRedisplayFilter; + export type PaymentMethodRedisplay = Stripe_.CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodRedisplay; + export type PaymentMethodRemove = Stripe_.CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodRemove; + export type PaymentMethodSave = Stripe_.CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodSave; + export type PaymentMethodSaveUsage = Stripe_.CustomerSessionCreateParams.Components.PaymentElement.Features.PaymentMethodSaveUsage; + } + } + export namespace TaxIdElement { + export type Features = Stripe_.CustomerSessionCreateParams.Components.TaxIdElement.Features; + export namespace Features { + export type TaxIdRedisplay = Stripe_.CustomerSessionCreateParams.Components.TaxIdElement.Features.TaxIdRedisplay; + export type TaxIdSave = Stripe_.CustomerSessionCreateParams.Components.TaxIdElement.Features.TaxIdSave; + } + } + } } - export namespace InvoiceRenderingTemplateListParams { - export type Status = Stripe.InvoiceRenderingTemplateListParams.Status; + export namespace CustomerSession { + export type Components = Stripe_.CustomerSession.Components; + export namespace Components { + export type BuyButton = Stripe_.CustomerSession.Components.BuyButton; + export type CustomerSheet = Stripe_.CustomerSession.Components.CustomerSheet; + export type MobilePaymentElement = Stripe_.CustomerSession.Components.MobilePaymentElement; + export type PaymentElement = Stripe_.CustomerSession.Components.PaymentElement; + export type PricingTable = Stripe_.CustomerSession.Components.PricingTable; + export type TaxIdElement = Stripe_.CustomerSession.Components.TaxIdElement; + export namespace CustomerSheet { + export type Features = Stripe_.CustomerSession.Components.CustomerSheet.Features; + export namespace Features { + export type PaymentMethodAllowRedisplayFilter = Stripe_.CustomerSession.Components.CustomerSheet.Features.PaymentMethodAllowRedisplayFilter; + export type PaymentMethodRemove = Stripe_.CustomerSession.Components.CustomerSheet.Features.PaymentMethodRemove; + } + } + export namespace MobilePaymentElement { + export type Features = Stripe_.CustomerSession.Components.MobilePaymentElement.Features; + export namespace Features { + export type PaymentMethodAllowRedisplayFilter = Stripe_.CustomerSession.Components.MobilePaymentElement.Features.PaymentMethodAllowRedisplayFilter; + export type PaymentMethodRedisplay = Stripe_.CustomerSession.Components.MobilePaymentElement.Features.PaymentMethodRedisplay; + export type PaymentMethodRemove = Stripe_.CustomerSession.Components.MobilePaymentElement.Features.PaymentMethodRemove; + export type PaymentMethodSave = Stripe_.CustomerSession.Components.MobilePaymentElement.Features.PaymentMethodSave; + export type PaymentMethodSaveAllowRedisplayOverride = Stripe_.CustomerSession.Components.MobilePaymentElement.Features.PaymentMethodSaveAllowRedisplayOverride; + } + } + export namespace PaymentElement { + export type Features = Stripe_.CustomerSession.Components.PaymentElement.Features; + export namespace Features { + export type PaymentMethodAllowRedisplayFilter = Stripe_.CustomerSession.Components.PaymentElement.Features.PaymentMethodAllowRedisplayFilter; + export type PaymentMethodRedisplay = Stripe_.CustomerSession.Components.PaymentElement.Features.PaymentMethodRedisplay; + export type PaymentMethodRemove = Stripe_.CustomerSession.Components.PaymentElement.Features.PaymentMethodRemove; + export type PaymentMethodSave = Stripe_.CustomerSession.Components.PaymentElement.Features.PaymentMethodSave; + export type PaymentMethodSaveUsage = Stripe_.CustomerSession.Components.PaymentElement.Features.PaymentMethodSaveUsage; + } + } + export namespace TaxIdElement { + export type Features = Stripe_.CustomerSession.Components.TaxIdElement.Features; + export namespace Features { + export type TaxIdRedisplay = Stripe_.CustomerSession.Components.TaxIdElement.Features.TaxIdRedisplay; + export type TaxIdSave = Stripe_.CustomerSession.Components.TaxIdElement.Features.TaxIdSave; + } + } + } } - export namespace MandateListParams { - export type Status = Stripe.MandateListParams.Status; + export namespace DisputeUpdateParams { + export type Evidence = Stripe_.DisputeUpdateParams.Evidence; + export type IntendedSubmissionMethod = Stripe_.DisputeUpdateParams.IntendedSubmissionMethod; + export namespace Evidence { + export type EnhancedEvidence = Stripe_.DisputeUpdateParams.Evidence.EnhancedEvidence; + export namespace EnhancedEvidence { + export type VisaCompellingEvidence3 = Stripe_.DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3; + export type VisaCompliance = Stripe_.DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompliance; + export namespace VisaCompellingEvidence3 { + export type DisputedTransaction = Stripe_.DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3.DisputedTransaction; + export type PriorUndisputedTransaction = Stripe_.DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3.PriorUndisputedTransaction; + export namespace DisputedTransaction { + export type MerchandiseOrServices = Stripe_.DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompellingEvidence3.DisputedTransaction.MerchandiseOrServices; + } + } + } + } } - export namespace OrderCreateParams { - export type LineItem = Stripe.OrderCreateParams.LineItem; - export type AutomaticTax = Stripe.OrderCreateParams.AutomaticTax; - export type BillingDetails = Stripe.OrderCreateParams.BillingDetails; - export type Discount = Stripe.OrderCreateParams.Discount; - export type Payment = Stripe.OrderCreateParams.Payment; - export type ShippingCost = Stripe.OrderCreateParams.ShippingCost; - export type ShippingDetails = Stripe.OrderCreateParams.ShippingDetails; - export type TaxDetails = Stripe.OrderCreateParams.TaxDetails; + export namespace Dispute { + export type EnhancedEligibilityType = Stripe_.Dispute.EnhancedEligibilityType; + export type Evidence = Stripe_.Dispute.Evidence; + export type EvidenceDetails = Stripe_.Dispute.EvidenceDetails; + export type IntendedSubmissionMethod = Stripe_.Dispute.IntendedSubmissionMethod; + export type PaymentMethodDetails = Stripe_.Dispute.PaymentMethodDetails; + export type SmartDisputes = Stripe_.Dispute.SmartDisputes; + export type Status = Stripe_.Dispute.Status; + export namespace Evidence { + export type EnhancedEvidence = Stripe_.Dispute.Evidence.EnhancedEvidence; + export namespace EnhancedEvidence { + export type VisaCompellingEvidence3 = Stripe_.Dispute.Evidence.EnhancedEvidence.VisaCompellingEvidence3; + export type VisaCompliance = Stripe_.Dispute.Evidence.EnhancedEvidence.VisaCompliance; + export namespace VisaCompellingEvidence3 { + export type DisputedTransaction = Stripe_.Dispute.Evidence.EnhancedEvidence.VisaCompellingEvidence3.DisputedTransaction; + export type PriorUndisputedTransaction = Stripe_.Dispute.Evidence.EnhancedEvidence.VisaCompellingEvidence3.PriorUndisputedTransaction; + export namespace DisputedTransaction { + export type MerchandiseOrServices = Stripe_.Dispute.Evidence.EnhancedEvidence.VisaCompellingEvidence3.DisputedTransaction.MerchandiseOrServices; + } + } + } + } + export namespace EvidenceDetails { + export type EnhancedEligibility = Stripe_.Dispute.EvidenceDetails.EnhancedEligibility; + export type SubmissionMethod = Stripe_.Dispute.EvidenceDetails.SubmissionMethod; + export namespace EnhancedEligibility { + export type VisaCompellingEvidence3 = Stripe_.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompellingEvidence3; + export type VisaCompliance = Stripe_.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompliance; + export namespace VisaCompellingEvidence3 { + export type RequiredAction = Stripe_.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompellingEvidence3.RequiredAction; + export type Status = Stripe_.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompellingEvidence3.Status; + } + export namespace VisaCompliance { + export type Status = Stripe_.Dispute.EvidenceDetails.EnhancedEligibility.VisaCompliance.Status; + } + } + } + export namespace PaymentMethodDetails { + export type AmazonPay = Stripe_.Dispute.PaymentMethodDetails.AmazonPay; + export type Card = Stripe_.Dispute.PaymentMethodDetails.Card; + export type Klarna = Stripe_.Dispute.PaymentMethodDetails.Klarna; + export type Paypal = Stripe_.Dispute.PaymentMethodDetails.Paypal; + export type Type = Stripe_.Dispute.PaymentMethodDetails.Type; + export namespace AmazonPay { + export type DisputeType = Stripe_.Dispute.PaymentMethodDetails.AmazonPay.DisputeType; + } + export namespace Card { + export type CaseType = Stripe_.Dispute.PaymentMethodDetails.Card.CaseType; + } + } + export namespace SmartDisputes { + export type Status = Stripe_.Dispute.SmartDisputes.Status; + } } - export namespace OrderUpdateParams { - export type AutomaticTax = Stripe.OrderUpdateParams.AutomaticTax; - export type BillingDetails = Stripe.OrderUpdateParams.BillingDetails; - export type Discount = Stripe.OrderUpdateParams.Discount; - export type LineItem = Stripe.OrderUpdateParams.LineItem; - export type Payment = Stripe.OrderUpdateParams.Payment; - export type ShippingCost = Stripe.OrderUpdateParams.ShippingCost; - export type ShippingDetails = Stripe.OrderUpdateParams.ShippingDetails; - export type TaxDetails = Stripe.OrderUpdateParams.TaxDetails; + export namespace Event { + export type Data = Stripe_.Event.Data; + export type Reason = Stripe_.Event.Reason; + export type Request = Stripe_.Event.Request; + export type Type = Stripe_.Event.Type; + export namespace Data { + export type Object = Stripe_.Event.Data.Object; + export type PreviousAttributes = Stripe_.Event.Data.PreviousAttributes; + } + export namespace Reason { + export type AutomationAction = Stripe_.Event.Reason.AutomationAction; + export type Request = Stripe_.Event.Reason.Request; + export type Type = Stripe_.Event.Reason.Type; + export namespace AutomationAction { + export type StripeSendWebhookCustomEvent = Stripe_.Event.Reason.AutomationAction.StripeSendWebhookCustomEvent; + } + } } - export namespace PaymentIntentCreateParams { - export type AmountDetails = Stripe.PaymentIntentCreateParams.AmountDetails; - export type AutomaticPaymentMethods = Stripe.PaymentIntentCreateParams.AutomaticPaymentMethods; - export type CaptureMethod = Stripe.PaymentIntentCreateParams.CaptureMethod; - export type ConfirmationMethod = Stripe.PaymentIntentCreateParams.ConfirmationMethod; - export type ExcludedPaymentMethodType = Stripe.PaymentIntentCreateParams.ExcludedPaymentMethodType; - export type Hooks = Stripe.PaymentIntentCreateParams.Hooks; - export type MandateData = Stripe.PaymentIntentCreateParams.MandateData; - export type OffSession = Stripe.PaymentIntentCreateParams.OffSession; - export type PaymentDetails = Stripe.PaymentIntentCreateParams.PaymentDetails; - export type PaymentMethodData = Stripe.PaymentIntentCreateParams.PaymentMethodData; - export type PaymentMethodOptions = Stripe.PaymentIntentCreateParams.PaymentMethodOptions; - export type RadarOptions = Stripe.PaymentIntentCreateParams.RadarOptions; - export type SecretKeyConfirmation = Stripe.PaymentIntentCreateParams.SecretKeyConfirmation; - export type SetupFutureUsage = Stripe.PaymentIntentCreateParams.SetupFutureUsage; - export type Shipping = Stripe.PaymentIntentCreateParams.Shipping; - export type TransferData = Stripe.PaymentIntentCreateParams.TransferData; + export namespace ExternalAccountCreateParams { + export type Card = Stripe_.ExternalAccountCreateParams.Card; + export type BankAccount = Stripe_.ExternalAccountCreateParams.BankAccount; + export type CardToken = Stripe_.ExternalAccountCreateParams.CardToken; + export namespace BankAccount { + export type AccountHolderType = Stripe_.ExternalAccountCreateParams.BankAccount.AccountHolderType; + } } - export namespace PaymentIntentUpdateParams { - export type AmountDetails = Stripe.PaymentIntentUpdateParams.AmountDetails; - export type CaptureMethod = Stripe.PaymentIntentUpdateParams.CaptureMethod; - export type ExcludedPaymentMethodType = Stripe.PaymentIntentUpdateParams.ExcludedPaymentMethodType; - export type Hooks = Stripe.PaymentIntentUpdateParams.Hooks; - export type MandateData = Stripe.PaymentIntentUpdateParams.MandateData; - export type PaymentDetails = Stripe.PaymentIntentUpdateParams.PaymentDetails; - export type PaymentMethodData = Stripe.PaymentIntentUpdateParams.PaymentMethodData; - export type PaymentMethodOptions = Stripe.PaymentIntentUpdateParams.PaymentMethodOptions; - export type SetupFutureUsage = Stripe.PaymentIntentUpdateParams.SetupFutureUsage; - export type Shipping = Stripe.PaymentIntentUpdateParams.Shipping; - export type TransferData = Stripe.PaymentIntentUpdateParams.TransferData; + export namespace ExternalAccountUpdateParams { + export type AccountHolderType = Stripe_.ExternalAccountUpdateParams.AccountHolderType; + export type AccountType = Stripe_.ExternalAccountUpdateParams.AccountType; + export type Documents = Stripe_.ExternalAccountUpdateParams.Documents; + export namespace Documents { + export type BankAccountOwnershipVerification = Stripe_.ExternalAccountUpdateParams.Documents.BankAccountOwnershipVerification; + } } - export namespace PaymentIntentCancelParams { - export type CancellationReason = Stripe.PaymentIntentCancelParams.CancellationReason; + export namespace ExternalAccountListParams { + export type Object = Stripe_.ExternalAccountListParams.Object; } - export namespace PaymentIntentCaptureParams { - export type AmountDetails = Stripe.PaymentIntentCaptureParams.AmountDetails; - export type Hooks = Stripe.PaymentIntentCaptureParams.Hooks; - export type PaymentDetails = Stripe.PaymentIntentCaptureParams.PaymentDetails; - export type TransferData = Stripe.PaymentIntentCaptureParams.TransferData; + export namespace FileCreateParams { + export type Purpose = Stripe_.FileCreateParams.Purpose; + export type FileLinkData = Stripe_.FileCreateParams.FileLinkData; } - export namespace PaymentIntentConfirmParams { - export type AmountDetails = Stripe.PaymentIntentConfirmParams.AmountDetails; - export type CaptureMethod = Stripe.PaymentIntentConfirmParams.CaptureMethod; - export type ExcludedPaymentMethodType = Stripe.PaymentIntentConfirmParams.ExcludedPaymentMethodType; - export type Hooks = Stripe.PaymentIntentConfirmParams.Hooks; - export type MandateData = Stripe.PaymentIntentConfirmParams.MandateData; - export type OffSession = Stripe.PaymentIntentConfirmParams.OffSession; - export type PaymentDetails = Stripe.PaymentIntentConfirmParams.PaymentDetails; - export type PaymentMethodData = Stripe.PaymentIntentConfirmParams.PaymentMethodData; - export type PaymentMethodOptions = Stripe.PaymentIntentConfirmParams.PaymentMethodOptions; - export type RadarOptions = Stripe.PaymentIntentConfirmParams.RadarOptions; - export type SetupFutureUsage = Stripe.PaymentIntentConfirmParams.SetupFutureUsage; - export type Shipping = Stripe.PaymentIntentConfirmParams.Shipping; + export namespace FileListParams { + export type Purpose = Stripe_.FileListParams.Purpose; } - export namespace PaymentIntentDecrementAuthorizationParams { - export type AmountDetails = Stripe.PaymentIntentDecrementAuthorizationParams.AmountDetails; - export type Hooks = Stripe.PaymentIntentDecrementAuthorizationParams.Hooks; - export type PaymentDetails = Stripe.PaymentIntentDecrementAuthorizationParams.PaymentDetails; - export type TransferData = Stripe.PaymentIntentDecrementAuthorizationParams.TransferData; + export namespace File { + export type Purpose = Stripe_.File.Purpose; } - export namespace PaymentIntentIncrementAuthorizationParams { - export type AmountDetails = Stripe.PaymentIntentIncrementAuthorizationParams.AmountDetails; - export type Hooks = Stripe.PaymentIntentIncrementAuthorizationParams.Hooks; - export type PaymentDetails = Stripe.PaymentIntentIncrementAuthorizationParams.PaymentDetails; - export type PaymentMethodOptions = Stripe.PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions; - export type TransferData = Stripe.PaymentIntentIncrementAuthorizationParams.TransferData; + export namespace FxQuoteCreateParams { + export type LockDuration = Stripe_.FxQuoteCreateParams.LockDuration; + export type Usage = Stripe_.FxQuoteCreateParams.Usage; + export namespace Usage { + export type Payment = Stripe_.FxQuoteCreateParams.Usage.Payment; + export type Transfer = Stripe_.FxQuoteCreateParams.Usage.Transfer; + export type Type = Stripe_.FxQuoteCreateParams.Usage.Type; + } } - export namespace PaymentIntentTriggerActionParams { - export type Type = Stripe.PaymentIntentTriggerActionParams.Type; - export type ScanQrCode = Stripe.PaymentIntentTriggerActionParams.ScanQrCode; + export namespace FxQuote { + export type LockDuration = Stripe_.FxQuote.LockDuration; + export type LockStatus = Stripe_.FxQuote.LockStatus; + export type Rates = Stripe_.FxQuote.Rates; + export type Usage = Stripe_.FxQuote.Usage; + export namespace Rates { + export type RateDetails = Stripe_.FxQuote.Rates.RateDetails; + } + export namespace Usage { + export type Payment = Stripe_.FxQuote.Usage.Payment; + export type Transfer = Stripe_.FxQuote.Usage.Transfer; + export type Type = Stripe_.FxQuote.Usage.Type; + } } - export namespace PaymentLinkCreateParams { - export type LineItem = Stripe.PaymentLinkCreateParams.LineItem; - export type AfterCompletion = Stripe.PaymentLinkCreateParams.AfterCompletion; - export type AutomaticTax = Stripe.PaymentLinkCreateParams.AutomaticTax; - export type BillingAddressCollection = Stripe.PaymentLinkCreateParams.BillingAddressCollection; - export type ConsentCollection = Stripe.PaymentLinkCreateParams.ConsentCollection; - export type CustomField = Stripe.PaymentLinkCreateParams.CustomField; - export type CustomText = Stripe.PaymentLinkCreateParams.CustomText; - export type CustomerCreation = Stripe.PaymentLinkCreateParams.CustomerCreation; - export type InvoiceCreation = Stripe.PaymentLinkCreateParams.InvoiceCreation; - export type ManagedPayments = Stripe.PaymentLinkCreateParams.ManagedPayments; - export type NameCollection = Stripe.PaymentLinkCreateParams.NameCollection; - export type OptionalItem = Stripe.PaymentLinkCreateParams.OptionalItem; - export type PaymentIntentData = Stripe.PaymentLinkCreateParams.PaymentIntentData; - export type PaymentMethodCollection = Stripe.PaymentLinkCreateParams.PaymentMethodCollection; - export type PaymentMethodOptions = Stripe.PaymentLinkCreateParams.PaymentMethodOptions; - export type PaymentMethodType = Stripe.PaymentLinkCreateParams.PaymentMethodType; - export type PhoneNumberCollection = Stripe.PaymentLinkCreateParams.PhoneNumberCollection; - export type Restrictions = Stripe.PaymentLinkCreateParams.Restrictions; - export type ShippingAddressCollection = Stripe.PaymentLinkCreateParams.ShippingAddressCollection; - export type ShippingOption = Stripe.PaymentLinkCreateParams.ShippingOption; - export type SubmitType = Stripe.PaymentLinkCreateParams.SubmitType; - export type SubscriptionData = Stripe.PaymentLinkCreateParams.SubscriptionData; - export type TaxIdCollection = Stripe.PaymentLinkCreateParams.TaxIdCollection; - export type TransferData = Stripe.PaymentLinkCreateParams.TransferData; + export namespace InvoiceCreateParams { + export type AmountsDue = Stripe_.InvoiceCreateParams.AmountsDue; + export type AutomaticTax = Stripe_.InvoiceCreateParams.AutomaticTax; + export type CollectionMethod = Stripe_.InvoiceCreateParams.CollectionMethod; + export type CustomField = Stripe_.InvoiceCreateParams.CustomField; + export type Discount = Stripe_.InvoiceCreateParams.Discount; + export type FromInvoice = Stripe_.InvoiceCreateParams.FromInvoice; + export type Issuer = Stripe_.InvoiceCreateParams.Issuer; + export type PaymentSettings = Stripe_.InvoiceCreateParams.PaymentSettings; + export type PendingInvoiceItemsBehavior = Stripe_.InvoiceCreateParams.PendingInvoiceItemsBehavior; + export type Rendering = Stripe_.InvoiceCreateParams.Rendering; + export type ShippingCost = Stripe_.InvoiceCreateParams.ShippingCost; + export type ShippingDetails = Stripe_.InvoiceCreateParams.ShippingDetails; + export type TransferData = Stripe_.InvoiceCreateParams.TransferData; + export namespace AutomaticTax { + export type Liability = Stripe_.InvoiceCreateParams.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.InvoiceCreateParams.AutomaticTax.Liability.Type; + } + } + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceCreateParams.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceCreateParams.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceCreateParams.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceCreateParams.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Issuer { + export type Type = Stripe_.InvoiceCreateParams.Issuer.Type; + } + export namespace PaymentSettings { + export type PaymentMethodOptions = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodType; + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.AcssDebit; + export type Bancontact = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Bancontact; + export type Blik = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Blik; + export type Card = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.CustomerBalance; + export type IdBankTransfer = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.IdBankTransfer; + export type Konbini = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Konbini; + export type Payto = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Payto; + export type Pix = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Pix; + export type SepaDebit = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.SepaDebit; + export type Upi = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type MandateOptions = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type TransactionType = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Bancontact.PreferredLanguage; + } + export namespace Card { + export type Installments = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Card.Installments; + export type RequestThreeDSecure = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Card.RequestThreeDSecure; + export namespace Installments { + export type Plan = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Card.Installments.Plan; + export namespace Plan { + export type Type = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Card.Installments.Plan.Type; + } + } + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + } + } + export namespace Payto { + export type MandateOptions = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions; + export namespace MandateOptions { + export type Purpose = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type AmountIncludesIof = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Pix.AmountIncludesIof; + } + export namespace Upi { + export type MandateOptions = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type VerificationMethod = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type Permission = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.InvoiceCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + } + } + } + } + export namespace Rendering { + export type AmountTaxDisplay = Stripe_.InvoiceCreateParams.Rendering.AmountTaxDisplay; + export type Pdf = Stripe_.InvoiceCreateParams.Rendering.Pdf; + export namespace Pdf { + export type PageSize = Stripe_.InvoiceCreateParams.Rendering.Pdf.PageSize; + } + } + export namespace ShippingCost { + export type ShippingRateData = Stripe_.InvoiceCreateParams.ShippingCost.ShippingRateData; + export namespace ShippingRateData { + export type DeliveryEstimate = Stripe_.InvoiceCreateParams.ShippingCost.ShippingRateData.DeliveryEstimate; + export type FixedAmount = Stripe_.InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount; + export type TaxBehavior = Stripe_.InvoiceCreateParams.ShippingCost.ShippingRateData.TaxBehavior; + export namespace DeliveryEstimate { + export type Maximum = Stripe_.InvoiceCreateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Maximum; + export type Minimum = Stripe_.InvoiceCreateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Minimum; + export namespace Maximum { + export type Unit = Stripe_.InvoiceCreateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Maximum.Unit; + } + export namespace Minimum { + export type Unit = Stripe_.InvoiceCreateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Minimum.Unit; + } + } + export namespace FixedAmount { + export type CurrencyOptions = Stripe_.InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.CurrencyOptions; + export namespace CurrencyOptions { + export type TaxBehavior = Stripe_.InvoiceCreateParams.ShippingCost.ShippingRateData.FixedAmount.CurrencyOptions.TaxBehavior; + } + } + } + } } - export namespace PaymentLinkUpdateParams { - export type AfterCompletion = Stripe.PaymentLinkUpdateParams.AfterCompletion; - export type AutomaticTax = Stripe.PaymentLinkUpdateParams.AutomaticTax; - export type BillingAddressCollection = Stripe.PaymentLinkUpdateParams.BillingAddressCollection; - export type CustomField = Stripe.PaymentLinkUpdateParams.CustomField; - export type CustomText = Stripe.PaymentLinkUpdateParams.CustomText; - export type CustomerCreation = Stripe.PaymentLinkUpdateParams.CustomerCreation; - export type InvoiceCreation = Stripe.PaymentLinkUpdateParams.InvoiceCreation; - export type LineItem = Stripe.PaymentLinkUpdateParams.LineItem; - export type NameCollection = Stripe.PaymentLinkUpdateParams.NameCollection; - export type OptionalItem = Stripe.PaymentLinkUpdateParams.OptionalItem; - export type PaymentIntentData = Stripe.PaymentLinkUpdateParams.PaymentIntentData; - export type PaymentMethodCollection = Stripe.PaymentLinkUpdateParams.PaymentMethodCollection; - export type PaymentMethodOptions = Stripe.PaymentLinkUpdateParams.PaymentMethodOptions; - export type PaymentMethodType = Stripe.PaymentLinkUpdateParams.PaymentMethodType; - export type PhoneNumberCollection = Stripe.PaymentLinkUpdateParams.PhoneNumberCollection; - export type Restrictions = Stripe.PaymentLinkUpdateParams.Restrictions; - export type ShippingAddressCollection = Stripe.PaymentLinkUpdateParams.ShippingAddressCollection; - export type SubmitType = Stripe.PaymentLinkUpdateParams.SubmitType; - export type SubscriptionData = Stripe.PaymentLinkUpdateParams.SubscriptionData; - export type TaxIdCollection = Stripe.PaymentLinkUpdateParams.TaxIdCollection; + export namespace InvoiceUpdateParams { + export type AmountsDue = Stripe_.InvoiceUpdateParams.AmountsDue; + export type AutomaticTax = Stripe_.InvoiceUpdateParams.AutomaticTax; + export type CollectionMethod = Stripe_.InvoiceUpdateParams.CollectionMethod; + export type CustomField = Stripe_.InvoiceUpdateParams.CustomField; + export type Discount = Stripe_.InvoiceUpdateParams.Discount; + export type Issuer = Stripe_.InvoiceUpdateParams.Issuer; + export type PaymentSettings = Stripe_.InvoiceUpdateParams.PaymentSettings; + export type Rendering = Stripe_.InvoiceUpdateParams.Rendering; + export type ShippingCost = Stripe_.InvoiceUpdateParams.ShippingCost; + export type ShippingDetails = Stripe_.InvoiceUpdateParams.ShippingDetails; + export type TransferData = Stripe_.InvoiceUpdateParams.TransferData; + export namespace AutomaticTax { + export type Liability = Stripe_.InvoiceUpdateParams.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.InvoiceUpdateParams.AutomaticTax.Liability.Type; + } + } + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceUpdateParams.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceUpdateParams.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceUpdateParams.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceUpdateParams.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Issuer { + export type Type = Stripe_.InvoiceUpdateParams.Issuer.Type; + } + export namespace PaymentSettings { + export type PaymentMethodOptions = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodType; + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.AcssDebit; + export type Bancontact = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Bancontact; + export type Blik = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Blik; + export type Card = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.CustomerBalance; + export type IdBankTransfer = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.IdBankTransfer; + export type Konbini = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Konbini; + export type Payto = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Payto; + export type Pix = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Pix; + export type SepaDebit = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.SepaDebit; + export type Upi = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type MandateOptions = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type TransactionType = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Bancontact.PreferredLanguage; + } + export namespace Card { + export type Installments = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Card.Installments; + export type RequestThreeDSecure = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Card.RequestThreeDSecure; + export namespace Installments { + export type Plan = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Card.Installments.Plan; + export namespace Plan { + export type Type = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Card.Installments.Plan.Type; + } + } + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + } + } + export namespace Payto { + export type MandateOptions = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions; + export namespace MandateOptions { + export type Purpose = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type AmountIncludesIof = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Pix.AmountIncludesIof; + } + export namespace Upi { + export type MandateOptions = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type VerificationMethod = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type Permission = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.InvoiceUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + } + } + } + } + export namespace Rendering { + export type AmountTaxDisplay = Stripe_.InvoiceUpdateParams.Rendering.AmountTaxDisplay; + export type Pdf = Stripe_.InvoiceUpdateParams.Rendering.Pdf; + export namespace Pdf { + export type PageSize = Stripe_.InvoiceUpdateParams.Rendering.Pdf.PageSize; + } + } + export namespace ShippingCost { + export type ShippingRateData = Stripe_.InvoiceUpdateParams.ShippingCost.ShippingRateData; + export namespace ShippingRateData { + export type DeliveryEstimate = Stripe_.InvoiceUpdateParams.ShippingCost.ShippingRateData.DeliveryEstimate; + export type FixedAmount = Stripe_.InvoiceUpdateParams.ShippingCost.ShippingRateData.FixedAmount; + export type TaxBehavior = Stripe_.InvoiceUpdateParams.ShippingCost.ShippingRateData.TaxBehavior; + export namespace DeliveryEstimate { + export type Maximum = Stripe_.InvoiceUpdateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Maximum; + export type Minimum = Stripe_.InvoiceUpdateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Minimum; + export namespace Maximum { + export type Unit = Stripe_.InvoiceUpdateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Maximum.Unit; + } + export namespace Minimum { + export type Unit = Stripe_.InvoiceUpdateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Minimum.Unit; + } + } + export namespace FixedAmount { + export type CurrencyOptions = Stripe_.InvoiceUpdateParams.ShippingCost.ShippingRateData.FixedAmount.CurrencyOptions; + export namespace CurrencyOptions { + export type TaxBehavior = Stripe_.InvoiceUpdateParams.ShippingCost.ShippingRateData.FixedAmount.CurrencyOptions.TaxBehavior; + } + } + } + } } - export namespace PaymentMethodCreateParams { - export type AcssDebit = Stripe.PaymentMethodCreateParams.AcssDebit; - export type Affirm = Stripe.PaymentMethodCreateParams.Affirm; - export type AfterpayClearpay = Stripe.PaymentMethodCreateParams.AfterpayClearpay; - export type Alipay = Stripe.PaymentMethodCreateParams.Alipay; - export type AllowRedisplay = Stripe.PaymentMethodCreateParams.AllowRedisplay; - export type Alma = Stripe.PaymentMethodCreateParams.Alma; - export type AmazonPay = Stripe.PaymentMethodCreateParams.AmazonPay; - export type AuBecsDebit = Stripe.PaymentMethodCreateParams.AuBecsDebit; - export type BacsDebit = Stripe.PaymentMethodCreateParams.BacsDebit; - export type Bancontact = Stripe.PaymentMethodCreateParams.Bancontact; - export type Billie = Stripe.PaymentMethodCreateParams.Billie; - export type BillingDetails = Stripe.PaymentMethodCreateParams.BillingDetails; - export type Bizum = Stripe.PaymentMethodCreateParams.Bizum; - export type Blik = Stripe.PaymentMethodCreateParams.Blik; - export type Boleto = Stripe.PaymentMethodCreateParams.Boleto; - export type Card = Stripe.PaymentMethodCreateParams.Card; - export type Cashapp = Stripe.PaymentMethodCreateParams.Cashapp; - export type Crypto = Stripe.PaymentMethodCreateParams.Crypto; - export type Custom = Stripe.PaymentMethodCreateParams.Custom; - export type CustomerBalance = Stripe.PaymentMethodCreateParams.CustomerBalance; - export type Eps = Stripe.PaymentMethodCreateParams.Eps; - export type Fpx = Stripe.PaymentMethodCreateParams.Fpx; - export type Giropay = Stripe.PaymentMethodCreateParams.Giropay; - export type Gopay = Stripe.PaymentMethodCreateParams.Gopay; - export type Grabpay = Stripe.PaymentMethodCreateParams.Grabpay; - export type IdBankTransfer = Stripe.PaymentMethodCreateParams.IdBankTransfer; - export type Ideal = Stripe.PaymentMethodCreateParams.Ideal; - export type InteracPresent = Stripe.PaymentMethodCreateParams.InteracPresent; - export type KakaoPay = Stripe.PaymentMethodCreateParams.KakaoPay; - export type Klarna = Stripe.PaymentMethodCreateParams.Klarna; - export type Konbini = Stripe.PaymentMethodCreateParams.Konbini; - export type KrCard = Stripe.PaymentMethodCreateParams.KrCard; - export type Link = Stripe.PaymentMethodCreateParams.Link; - export type MbWay = Stripe.PaymentMethodCreateParams.MbWay; - export type Mobilepay = Stripe.PaymentMethodCreateParams.Mobilepay; - export type Multibanco = Stripe.PaymentMethodCreateParams.Multibanco; - export type NaverPay = Stripe.PaymentMethodCreateParams.NaverPay; - export type NzBankAccount = Stripe.PaymentMethodCreateParams.NzBankAccount; - export type Oxxo = Stripe.PaymentMethodCreateParams.Oxxo; - export type P24 = Stripe.PaymentMethodCreateParams.P24; - export type PayByBank = Stripe.PaymentMethodCreateParams.PayByBank; - export type Payco = Stripe.PaymentMethodCreateParams.Payco; - export type Paynow = Stripe.PaymentMethodCreateParams.Paynow; - export type Paypal = Stripe.PaymentMethodCreateParams.Paypal; - export type Paypay = Stripe.PaymentMethodCreateParams.Paypay; - export type Payto = Stripe.PaymentMethodCreateParams.Payto; - export type Pix = Stripe.PaymentMethodCreateParams.Pix; - export type Promptpay = Stripe.PaymentMethodCreateParams.Promptpay; - export type Qris = Stripe.PaymentMethodCreateParams.Qris; - export type RadarOptions = Stripe.PaymentMethodCreateParams.RadarOptions; - export type Rechnung = Stripe.PaymentMethodCreateParams.Rechnung; - export type RevolutPay = Stripe.PaymentMethodCreateParams.RevolutPay; - export type SamsungPay = Stripe.PaymentMethodCreateParams.SamsungPay; - export type Satispay = Stripe.PaymentMethodCreateParams.Satispay; - export type Scalapay = Stripe.PaymentMethodCreateParams.Scalapay; - export type SepaDebit = Stripe.PaymentMethodCreateParams.SepaDebit; - export type Shopeepay = Stripe.PaymentMethodCreateParams.Shopeepay; - export type Sofort = Stripe.PaymentMethodCreateParams.Sofort; - export type StripeBalance = Stripe.PaymentMethodCreateParams.StripeBalance; - export type Sunbit = Stripe.PaymentMethodCreateParams.Sunbit; - export type Swish = Stripe.PaymentMethodCreateParams.Swish; - export type Twint = Stripe.PaymentMethodCreateParams.Twint; - export type Type = Stripe.PaymentMethodCreateParams.Type; - export type Upi = Stripe.PaymentMethodCreateParams.Upi; - export type UsBankAccount = Stripe.PaymentMethodCreateParams.UsBankAccount; - export type WechatPay = Stripe.PaymentMethodCreateParams.WechatPay; - export type Zip = Stripe.PaymentMethodCreateParams.Zip; + export namespace InvoiceListParams { + export type CollectionMethod = Stripe_.InvoiceListParams.CollectionMethod; + export type Status = Stripe_.InvoiceListParams.Status; } - export namespace PaymentMethodUpdateParams { - export type AllowRedisplay = Stripe.PaymentMethodUpdateParams.AllowRedisplay; - export type BillingDetails = Stripe.PaymentMethodUpdateParams.BillingDetails; - export type Card = Stripe.PaymentMethodUpdateParams.Card; - export type Payto = Stripe.PaymentMethodUpdateParams.Payto; - export type UsBankAccount = Stripe.PaymentMethodUpdateParams.UsBankAccount; + export namespace InvoiceAddLinesParams { + export type Line = Stripe_.InvoiceAddLinesParams.Line; + export namespace Line { + export type Discount = Stripe_.InvoiceAddLinesParams.Line.Discount; + export type Period = Stripe_.InvoiceAddLinesParams.Line.Period; + export type PriceData = Stripe_.InvoiceAddLinesParams.Line.PriceData; + export type Pricing = Stripe_.InvoiceAddLinesParams.Line.Pricing; + export type TaxAmount = Stripe_.InvoiceAddLinesParams.Line.TaxAmount; + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceAddLinesParams.Line.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceAddLinesParams.Line.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceAddLinesParams.Line.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceAddLinesParams.Line.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type ProductData = Stripe_.InvoiceAddLinesParams.Line.PriceData.ProductData; + export type TaxBehavior = Stripe_.InvoiceAddLinesParams.Line.PriceData.TaxBehavior; + export namespace ProductData { + export type TaxDetails = Stripe_.InvoiceAddLinesParams.Line.PriceData.ProductData.TaxDetails; + } + } + export namespace TaxAmount { + export type TaxRateData = Stripe_.InvoiceAddLinesParams.Line.TaxAmount.TaxRateData; + export type TaxabilityReason = Stripe_.InvoiceAddLinesParams.Line.TaxAmount.TaxabilityReason; + export namespace TaxRateData { + export type JurisdictionLevel = Stripe_.InvoiceAddLinesParams.Line.TaxAmount.TaxRateData.JurisdictionLevel; + export type TaxType = Stripe_.InvoiceAddLinesParams.Line.TaxAmount.TaxRateData.TaxType; + } + } + } } - export namespace PaymentMethodListParams { - export type AllowRedisplay = Stripe.PaymentMethodListParams.AllowRedisplay; - export type Type = Stripe.PaymentMethodListParams.Type; + export namespace InvoiceAttachPaymentParams { + export type PaymentRecordData = Stripe_.InvoiceAttachPaymentParams.PaymentRecordData; + } + export namespace InvoiceCreatePreviewParams { + export type AutomaticTax = Stripe_.InvoiceCreatePreviewParams.AutomaticTax; + export type CustomerDetails = Stripe_.InvoiceCreatePreviewParams.CustomerDetails; + export type Discount = Stripe_.InvoiceCreatePreviewParams.Discount; + export type InvoiceItem = Stripe_.InvoiceCreatePreviewParams.InvoiceItem; + export type Issuer = Stripe_.InvoiceCreatePreviewParams.Issuer; + export type PreviewMode = Stripe_.InvoiceCreatePreviewParams.PreviewMode; + export type ScheduleDetails = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails; + export type SubscriptionDetails = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails; + export namespace AutomaticTax { + export type Liability = Stripe_.InvoiceCreatePreviewParams.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.InvoiceCreatePreviewParams.AutomaticTax.Liability.Type; + } + } + export namespace CustomerDetails { + export type Shipping = Stripe_.InvoiceCreatePreviewParams.CustomerDetails.Shipping; + export type Tax = Stripe_.InvoiceCreatePreviewParams.CustomerDetails.Tax; + export type TaxExempt = Stripe_.InvoiceCreatePreviewParams.CustomerDetails.TaxExempt; + export type TaxId = Stripe_.InvoiceCreatePreviewParams.CustomerDetails.TaxId; + export namespace TaxId { + export type Type = Stripe_.InvoiceCreatePreviewParams.CustomerDetails.TaxId.Type; + } + } + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceCreatePreviewParams.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceCreatePreviewParams.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceCreatePreviewParams.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceCreatePreviewParams.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace InvoiceItem { + export type Discount = Stripe_.InvoiceCreatePreviewParams.InvoiceItem.Discount; + export type Period = Stripe_.InvoiceCreatePreviewParams.InvoiceItem.Period; + export type PriceData = Stripe_.InvoiceCreatePreviewParams.InvoiceItem.PriceData; + export type TaxBehavior = Stripe_.InvoiceCreatePreviewParams.InvoiceItem.TaxBehavior; + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceCreatePreviewParams.InvoiceItem.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceCreatePreviewParams.InvoiceItem.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceCreatePreviewParams.InvoiceItem.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceCreatePreviewParams.InvoiceItem.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type TaxBehavior = Stripe_.InvoiceCreatePreviewParams.InvoiceItem.PriceData.TaxBehavior; + } + } + export namespace Issuer { + export type Type = Stripe_.InvoiceCreatePreviewParams.Issuer.Type; + } + export namespace ScheduleDetails { + export type Amendment = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment; + export type BillingBehavior = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.BillingBehavior; + export type BillingMode = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.BillingMode; + export type EndBehavior = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.EndBehavior; + export type Phase = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase; + export type Prebilling = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Prebilling; + export type ProrationBehavior = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.ProrationBehavior; + export namespace Amendment { + export type AmendmentEnd = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd; + export type AmendmentStart = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart; + export type BillingCycleAnchor = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.BillingCycleAnchor; + export type DiscountAction = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.DiscountAction; + export type ItemAction = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction; + export type MetadataAction = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.MetadataAction; + export type ProrationBehavior = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ProrationBehavior; + export type SetPauseCollection = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.SetPauseCollection; + export type SetScheduleEnd = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.SetScheduleEnd; + export type TrialSettings = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.TrialSettings; + export namespace AmendmentEnd { + export type DiscountEnd = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.DiscountEnd; + export type Duration = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.Duration; + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentEnd.Duration.Interval; + } + } + export namespace AmendmentStart { + export type AmendmentEnd = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.AmendmentEnd; + export type DiscountEnd = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.DiscountEnd; + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.AmendmentStart.Type; + } + export namespace DiscountAction { + export type Add = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.DiscountAction.Add; + export type Remove = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.DiscountAction.Remove; + export type Set = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.DiscountAction.Set; + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.DiscountAction.Type; + export namespace Add { + export type DiscountEnd = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.DiscountAction.Add.DiscountEnd; + } + } + export namespace ItemAction { + export type Add = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Add; + export type Remove = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Remove; + export type Set = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set; + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Type; + export namespace Add { + export type Discount = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Add.Discount; + export type Trial = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Add.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Add.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Add.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Add.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Add.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Trial { + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Add.Trial.Type; + } + } + export namespace Set { + export type Discount = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Discount; + export type Trial = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Trial { + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.ItemAction.Set.Trial.Type; + } + } + } + export namespace MetadataAction { + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.MetadataAction.Type; + } + export namespace SetPauseCollection { + export type Set = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.SetPauseCollection.Set; + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.SetPauseCollection.Type; + export namespace Set { + export type Behavior = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.SetPauseCollection.Set.Behavior; + } + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type ProrateUpFront = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Amendment.TrialSettings.EndBehavior.ProrateUpFront; + } + } + } + export namespace BillingMode { + export type Flexible = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.BillingMode.Flexible; + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.BillingMode.Type; + export namespace Flexible { + export type ProrationDiscounts = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.BillingMode.Flexible.ProrationDiscounts; + } + } + export namespace Phase { + export type AddInvoiceItem = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem; + export type AutomaticTax = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AutomaticTax; + export type BillingCycleAnchor = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.BillingCycleAnchor; + export type BillingThresholds = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.BillingThresholds; + export type CollectionMethod = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.CollectionMethod; + export type Discount = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Discount; + export type Duration = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Duration; + export type InvoiceSettings = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.InvoiceSettings; + export type Item = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item; + export type PauseCollection = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.PauseCollection; + export type ProrationBehavior = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.ProrationBehavior; + export type TransferData = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.TransferData; + export type TrialContinuation = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.TrialContinuation; + export type TrialSettings = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.TrialSettings; + export namespace AddInvoiceItem { + export type Discount = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Discount; + export type Period = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Period; + export type PriceData = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.PriceData; + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Period { + export type End = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Period.End; + export type Start = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Period.Start; + export namespace End { + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Period.End.Type; + } + export namespace Start { + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.Period.Start.Type; + } + } + export namespace PriceData { + export type TaxBehavior = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AddInvoiceItem.PriceData.TaxBehavior; + } + } + export namespace AutomaticTax { + export type Liability = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.AutomaticTax.Liability.Type; + } + } + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Duration { + export type Interval = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Duration.Interval; + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.InvoiceSettings.Issuer.Type; + } + } + export namespace Item { + export type BillingThresholds = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.BillingThresholds; + export type Discount = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.Discount; + export type PriceData = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.PriceData; + export type Trial = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type Recurring = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.PriceData.Recurring; + export type TaxBehavior = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.PriceData.TaxBehavior; + export namespace Recurring { + export type Interval = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.PriceData.Recurring.Interval; + } + } + export namespace Trial { + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.Item.Trial.Type; + } + } + export namespace PauseCollection { + export type Behavior = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.PauseCollection.Behavior; + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type ProrateUpFront = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Phase.TrialSettings.EndBehavior.ProrateUpFront; + } + } + } + export namespace Prebilling { + export type BillUntil = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Prebilling.BillUntil; + export namespace BillUntil { + export type AmendmentEnd = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Prebilling.BillUntil.AmendmentEnd; + export type Duration = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Prebilling.BillUntil.Duration; + export type Type = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Prebilling.BillUntil.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceCreatePreviewParams.ScheduleDetails.Prebilling.BillUntil.Duration.Interval; + } + } + } + } + export namespace SubscriptionDetails { + export type BillingCycleAnchor = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.BillingCycleAnchor; + export type BillingMode = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode; + export type BillingSchedule = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule; + export type CancelAt = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.CancelAt; + export type Item = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.Item; + export type Prebilling = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.Prebilling; + export type ProrationBehavior = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.ProrationBehavior; + export namespace BillingMode { + export type Flexible = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode.Flexible; + export type Type = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode.Type; + export namespace Flexible { + export type ProrationDiscounts = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.BillingMode.Flexible.ProrationDiscounts; + } + } + export namespace BillingSchedule { + export type AppliesTo = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.AppliesTo; + export type BillUntil = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil; + export namespace BillUntil { + export type Duration = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.Duration; + export type Type = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.BillingSchedule.BillUntil.Duration.Interval; + } + } + } + export namespace Item { + export type BillingThresholds = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.Item.BillingThresholds; + export type CurrentTrial = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.Item.CurrentTrial; + export type Discount = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.Item.Discount; + export type PriceData = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.Item.PriceData; + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.Item.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.Item.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.Item.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.Item.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type Recurring = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.Item.PriceData.Recurring; + export type TaxBehavior = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.Item.PriceData.TaxBehavior; + export namespace Recurring { + export type Interval = Stripe_.InvoiceCreatePreviewParams.SubscriptionDetails.Item.PriceData.Recurring.Interval; + } + } + } + } + } + export namespace InvoiceRemoveLinesParams { + export type Line = Stripe_.InvoiceRemoveLinesParams.Line; + export namespace Line { + export type Behavior = Stripe_.InvoiceRemoveLinesParams.Line.Behavior; + } + } + export namespace InvoiceUpdateLinesParams { + export type Line = Stripe_.InvoiceUpdateLinesParams.Line; + export namespace Line { + export type Discount = Stripe_.InvoiceUpdateLinesParams.Line.Discount; + export type Period = Stripe_.InvoiceUpdateLinesParams.Line.Period; + export type PriceData = Stripe_.InvoiceUpdateLinesParams.Line.PriceData; + export type Pricing = Stripe_.InvoiceUpdateLinesParams.Line.Pricing; + export type TaxAmount = Stripe_.InvoiceUpdateLinesParams.Line.TaxAmount; + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceUpdateLinesParams.Line.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceUpdateLinesParams.Line.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceUpdateLinesParams.Line.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceUpdateLinesParams.Line.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type ProductData = Stripe_.InvoiceUpdateLinesParams.Line.PriceData.ProductData; + export type TaxBehavior = Stripe_.InvoiceUpdateLinesParams.Line.PriceData.TaxBehavior; + export namespace ProductData { + export type TaxDetails = Stripe_.InvoiceUpdateLinesParams.Line.PriceData.ProductData.TaxDetails; + } + } + export namespace TaxAmount { + export type TaxRateData = Stripe_.InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData; + export type TaxabilityReason = Stripe_.InvoiceUpdateLinesParams.Line.TaxAmount.TaxabilityReason; + export namespace TaxRateData { + export type JurisdictionLevel = Stripe_.InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.JurisdictionLevel; + export type TaxType = Stripe_.InvoiceUpdateLinesParams.Line.TaxAmount.TaxRateData.TaxType; + } + } + } + } + export namespace InvoiceUpdateLineItemParams { + export type Discount = Stripe_.InvoiceUpdateLineItemParams.Discount; + export type Period = Stripe_.InvoiceUpdateLineItemParams.Period; + export type PriceData = Stripe_.InvoiceUpdateLineItemParams.PriceData; + export type Pricing = Stripe_.InvoiceUpdateLineItemParams.Pricing; + export type TaxAmount = Stripe_.InvoiceUpdateLineItemParams.TaxAmount; + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceUpdateLineItemParams.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceUpdateLineItemParams.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceUpdateLineItemParams.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceUpdateLineItemParams.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type ProductData = Stripe_.InvoiceUpdateLineItemParams.PriceData.ProductData; + export type TaxBehavior = Stripe_.InvoiceUpdateLineItemParams.PriceData.TaxBehavior; + export namespace ProductData { + export type TaxDetails = Stripe_.InvoiceUpdateLineItemParams.PriceData.ProductData.TaxDetails; + } + } + export namespace TaxAmount { + export type TaxRateData = Stripe_.InvoiceUpdateLineItemParams.TaxAmount.TaxRateData; + export type TaxabilityReason = Stripe_.InvoiceUpdateLineItemParams.TaxAmount.TaxabilityReason; + export namespace TaxRateData { + export type JurisdictionLevel = Stripe_.InvoiceUpdateLineItemParams.TaxAmount.TaxRateData.JurisdictionLevel; + export type TaxType = Stripe_.InvoiceUpdateLineItemParams.TaxAmount.TaxRateData.TaxType; + } + } + } + export namespace Invoice { + export type AmountsDue = Stripe_.Invoice.AmountsDue; + export type AutomaticTax = Stripe_.Invoice.AutomaticTax; + export type BillingReason = Stripe_.Invoice.BillingReason; + export type CollectionMethod = Stripe_.Invoice.CollectionMethod; + export type ConfirmationSecret = Stripe_.Invoice.ConfirmationSecret; + export type CustomField = Stripe_.Invoice.CustomField; + export type CustomerShipping = Stripe_.Invoice.CustomerShipping; + export type CustomerTaxExempt = Stripe_.Invoice.CustomerTaxExempt; + export type CustomerTaxId = Stripe_.Invoice.CustomerTaxId; + export type FromInvoice = Stripe_.Invoice.FromInvoice; + export type Issuer = Stripe_.Invoice.Issuer; + export type LastFinalizationError = Stripe_.Invoice.LastFinalizationError; + export type Parent = Stripe_.Invoice.Parent; + export type PaymentSettings = Stripe_.Invoice.PaymentSettings; + export type Rendering = Stripe_.Invoice.Rendering; + export type ShippingCost = Stripe_.Invoice.ShippingCost; + export type ShippingDetails = Stripe_.Invoice.ShippingDetails; + export type Status = Stripe_.Invoice.Status; + export type StatusTransitions = Stripe_.Invoice.StatusTransitions; + export type ThresholdReason = Stripe_.Invoice.ThresholdReason; + export type TotalDiscountAmount = Stripe_.Invoice.TotalDiscountAmount; + export type TotalMarginAmount = Stripe_.Invoice.TotalMarginAmount; + export type TotalPretaxCreditAmount = Stripe_.Invoice.TotalPretaxCreditAmount; + export type TotalTax = Stripe_.Invoice.TotalTax; + export namespace AmountsDue { + export type Status = Stripe_.Invoice.AmountsDue.Status; + } + export namespace AutomaticTax { + export type DisabledReason = Stripe_.Invoice.AutomaticTax.DisabledReason; + export type Liability = Stripe_.Invoice.AutomaticTax.Liability; + export type Status = Stripe_.Invoice.AutomaticTax.Status; + export namespace Liability { + export type Type = Stripe_.Invoice.AutomaticTax.Liability.Type; + } + } + export namespace CustomerTaxId { + export type Type = Stripe_.Invoice.CustomerTaxId.Type; + } + export namespace Issuer { + export type Type = Stripe_.Invoice.Issuer.Type; + } + export namespace LastFinalizationError { + export type Code = Stripe_.Invoice.LastFinalizationError.Code; + export type Type = Stripe_.Invoice.LastFinalizationError.Type; + } + export namespace Parent { + export type QuoteDetails = Stripe_.Invoice.Parent.QuoteDetails; + export type SubscriptionDetails = Stripe_.Invoice.Parent.SubscriptionDetails; + export type Type = Stripe_.Invoice.Parent.Type; + export namespace SubscriptionDetails { + export type PauseCollection = Stripe_.Invoice.Parent.SubscriptionDetails.PauseCollection; + export namespace PauseCollection { + export type Behavior = Stripe_.Invoice.Parent.SubscriptionDetails.PauseCollection.Behavior; + } + } + } + export namespace PaymentSettings { + export type PaymentMethodOptions = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.Invoice.PaymentSettings.PaymentMethodType; + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.AcssDebit; + export type Bancontact = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Bancontact; + export type Blik = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Blik; + export type Card = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.CustomerBalance; + export type IdBankTransfer = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.IdBankTransfer; + export type Konbini = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Konbini; + export type Payto = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Payto; + export type Pix = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Pix; + export type SepaDebit = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.SepaDebit; + export type Upi = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type MandateOptions = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type TransactionType = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Bancontact.PreferredLanguage; + } + export namespace Card { + export type Installments = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Card.Installments; + export type RequestThreeDSecure = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Card.RequestThreeDSecure; + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export namespace EuBankTransfer { + export type Country = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer.Country; + } + } + } + export namespace Payto { + export type MandateOptions = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions.AmountType; + export type Purpose = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type AmountIncludesIof = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Pix.AmountIncludesIof; + } + export namespace Upi { + export type MandateOptions = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type VerificationMethod = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type Permission = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.Invoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + } + } + } + } + export namespace Rendering { + export type Pdf = Stripe_.Invoice.Rendering.Pdf; + export namespace Pdf { + export type PageSize = Stripe_.Invoice.Rendering.Pdf.PageSize; + } + } + export namespace ShippingCost { + export type Tax = Stripe_.Invoice.ShippingCost.Tax; + export namespace Tax { + export type TaxabilityReason = Stripe_.Invoice.ShippingCost.Tax.TaxabilityReason; + } + } + export namespace ThresholdReason { + export type ItemReason = Stripe_.Invoice.ThresholdReason.ItemReason; + } + export namespace TotalPretaxCreditAmount { + export type Type = Stripe_.Invoice.TotalPretaxCreditAmount.Type; + } + export namespace TotalTax { + export type TaxBehavior = Stripe_.Invoice.TotalTax.TaxBehavior; + export type TaxRateDetails = Stripe_.Invoice.TotalTax.TaxRateDetails; + export type TaxabilityReason = Stripe_.Invoice.TotalTax.TaxabilityReason; + } + } + export namespace InvoiceItemCreateParams { + export type Discount = Stripe_.InvoiceItemCreateParams.Discount; + export type Period = Stripe_.InvoiceItemCreateParams.Period; + export type PriceData = Stripe_.InvoiceItemCreateParams.PriceData; + export type Pricing = Stripe_.InvoiceItemCreateParams.Pricing; + export type TaxBehavior = Stripe_.InvoiceItemCreateParams.TaxBehavior; + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceItemCreateParams.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceItemCreateParams.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceItemCreateParams.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceItemCreateParams.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type TaxBehavior = Stripe_.InvoiceItemCreateParams.PriceData.TaxBehavior; + } + } + export namespace InvoiceItemUpdateParams { + export type Discount = Stripe_.InvoiceItemUpdateParams.Discount; + export type Period = Stripe_.InvoiceItemUpdateParams.Period; + export type PriceData = Stripe_.InvoiceItemUpdateParams.PriceData; + export type Pricing = Stripe_.InvoiceItemUpdateParams.Pricing; + export type TaxBehavior = Stripe_.InvoiceItemUpdateParams.TaxBehavior; + export namespace Discount { + export type DiscountEnd = Stripe_.InvoiceItemUpdateParams.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.InvoiceItemUpdateParams.Discount.DiscountEnd.Duration; + export type Type = Stripe_.InvoiceItemUpdateParams.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.InvoiceItemUpdateParams.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type TaxBehavior = Stripe_.InvoiceItemUpdateParams.PriceData.TaxBehavior; + } + } + export namespace InvoiceItem { + export type Parent = Stripe_.InvoiceItem.Parent; + export type Period = Stripe_.InvoiceItem.Period; + export type Pricing = Stripe_.InvoiceItem.Pricing; + export type ProrationDetails = Stripe_.InvoiceItem.ProrationDetails; + export namespace Parent { + export type SubscriptionDetails = Stripe_.InvoiceItem.Parent.SubscriptionDetails; + } + export namespace Pricing { + export type PriceDetails = Stripe_.InvoiceItem.Pricing.PriceDetails; + } + export namespace ProrationDetails { + export type CreditedItems = Stripe_.InvoiceItem.ProrationDetails.CreditedItems; + export type DiscountAmount = Stripe_.InvoiceItem.ProrationDetails.DiscountAmount; + export namespace CreditedItems { + export type InvoiceLineItemDetails = Stripe_.InvoiceItem.ProrationDetails.CreditedItems.InvoiceLineItemDetails; + export type Type = Stripe_.InvoiceItem.ProrationDetails.CreditedItems.Type; + } + } + } + export namespace InvoicePaymentListParams { + export type Payment = Stripe_.InvoicePaymentListParams.Payment; + export type Status = Stripe_.InvoicePaymentListParams.Status; + export namespace Payment { + export type Type = Stripe_.InvoicePaymentListParams.Payment.Type; + } + } + export namespace InvoicePayment { + export type Payment = Stripe_.InvoicePayment.Payment; + export type StatusTransitions = Stripe_.InvoicePayment.StatusTransitions; + export namespace Payment { + export type Type = Stripe_.InvoicePayment.Payment.Type; + } + } + export namespace InvoiceRenderingTemplateListParams { + export type Status = Stripe_.InvoiceRenderingTemplateListParams.Status; + } + export namespace InvoiceRenderingTemplate { + export type Status = Stripe_.InvoiceRenderingTemplate.Status; + } + export namespace MandateListParams { + export type Status = Stripe_.MandateListParams.Status; + } + export namespace Mandate { + export type CustomerAcceptance = Stripe_.Mandate.CustomerAcceptance; + export type MultiUse = Stripe_.Mandate.MultiUse; + export type PaymentMethodDetails = Stripe_.Mandate.PaymentMethodDetails; + export type SingleUse = Stripe_.Mandate.SingleUse; + export type Status = Stripe_.Mandate.Status; + export type Type = Stripe_.Mandate.Type; + export namespace CustomerAcceptance { + export type Offline = Stripe_.Mandate.CustomerAcceptance.Offline; + export type Online = Stripe_.Mandate.CustomerAcceptance.Online; + export type Type = Stripe_.Mandate.CustomerAcceptance.Type; + } + export namespace PaymentMethodDetails { + export type AcssDebit = Stripe_.Mandate.PaymentMethodDetails.AcssDebit; + export type AmazonPay = Stripe_.Mandate.PaymentMethodDetails.AmazonPay; + export type AuBecsDebit = Stripe_.Mandate.PaymentMethodDetails.AuBecsDebit; + export type BacsDebit = Stripe_.Mandate.PaymentMethodDetails.BacsDebit; + export type Card = Stripe_.Mandate.PaymentMethodDetails.Card; + export type Cashapp = Stripe_.Mandate.PaymentMethodDetails.Cashapp; + export type KakaoPay = Stripe_.Mandate.PaymentMethodDetails.KakaoPay; + export type Klarna = Stripe_.Mandate.PaymentMethodDetails.Klarna; + export type KrCard = Stripe_.Mandate.PaymentMethodDetails.KrCard; + export type Link = Stripe_.Mandate.PaymentMethodDetails.Link; + export type NaverPay = Stripe_.Mandate.PaymentMethodDetails.NaverPay; + export type NzBankAccount = Stripe_.Mandate.PaymentMethodDetails.NzBankAccount; + export type Paypal = Stripe_.Mandate.PaymentMethodDetails.Paypal; + export type Payto = Stripe_.Mandate.PaymentMethodDetails.Payto; + export type Pix = Stripe_.Mandate.PaymentMethodDetails.Pix; + export type RevolutPay = Stripe_.Mandate.PaymentMethodDetails.RevolutPay; + export type SepaDebit = Stripe_.Mandate.PaymentMethodDetails.SepaDebit; + export type Twint = Stripe_.Mandate.PaymentMethodDetails.Twint; + export type Upi = Stripe_.Mandate.PaymentMethodDetails.Upi; + export type UsBankAccount = Stripe_.Mandate.PaymentMethodDetails.UsBankAccount; + export namespace AcssDebit { + export type DefaultFor = Stripe_.Mandate.PaymentMethodDetails.AcssDebit.DefaultFor; + export type PaymentSchedule = Stripe_.Mandate.PaymentMethodDetails.AcssDebit.PaymentSchedule; + export type TransactionType = Stripe_.Mandate.PaymentMethodDetails.AcssDebit.TransactionType; + } + export namespace BacsDebit { + export type NetworkStatus = Stripe_.Mandate.PaymentMethodDetails.BacsDebit.NetworkStatus; + export type RevocationReason = Stripe_.Mandate.PaymentMethodDetails.BacsDebit.RevocationReason; + } + export namespace Payto { + export type AmountType = Stripe_.Mandate.PaymentMethodDetails.Payto.AmountType; + export type PaymentSchedule = Stripe_.Mandate.PaymentMethodDetails.Payto.PaymentSchedule; + export type Purpose = Stripe_.Mandate.PaymentMethodDetails.Payto.Purpose; + } + export namespace Pix { + export type AmountIncludesIof = Stripe_.Mandate.PaymentMethodDetails.Pix.AmountIncludesIof; + export type AmountType = Stripe_.Mandate.PaymentMethodDetails.Pix.AmountType; + export type PaymentSchedule = Stripe_.Mandate.PaymentMethodDetails.Pix.PaymentSchedule; + } + export namespace Upi { + export type AmountType = Stripe_.Mandate.PaymentMethodDetails.Upi.AmountType; + } + } + } + export namespace OrderCreateParams { + export type LineItem = Stripe_.OrderCreateParams.LineItem; + export type AutomaticTax = Stripe_.OrderCreateParams.AutomaticTax; + export type BillingDetails = Stripe_.OrderCreateParams.BillingDetails; + export type Discount = Stripe_.OrderCreateParams.Discount; + export type Payment = Stripe_.OrderCreateParams.Payment; + export type ShippingCost = Stripe_.OrderCreateParams.ShippingCost; + export type ShippingDetails = Stripe_.OrderCreateParams.ShippingDetails; + export type TaxDetails = Stripe_.OrderCreateParams.TaxDetails; + export namespace LineItem { + export type Discount = Stripe_.OrderCreateParams.LineItem.Discount; + export type PriceData = Stripe_.OrderCreateParams.LineItem.PriceData; + export type ProductData = Stripe_.OrderCreateParams.LineItem.ProductData; + export namespace PriceData { + export type TaxBehavior = Stripe_.OrderCreateParams.LineItem.PriceData.TaxBehavior; + } + export namespace ProductData { + export type PackageDimensions = Stripe_.OrderCreateParams.LineItem.ProductData.PackageDimensions; + } + } + export namespace Payment { + export type Settings = Stripe_.OrderCreateParams.Payment.Settings; + export namespace Settings { + export type PaymentMethodOptions = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodType; + export type TransferData = Stripe_.OrderCreateParams.Payment.Settings.TransferData; + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.AcssDebit; + export type AfterpayClearpay = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.AfterpayClearpay; + export type Alipay = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Alipay; + export type Bancontact = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Bancontact; + export type Card = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.CustomerBalance; + export type Ideal = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Ideal; + export type Klarna = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna; + export type Link = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Link; + export type Oxxo = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Oxxo; + export type P24 = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.P24; + export type Paypal = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal; + export type SepaDebit = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.SepaDebit; + export type Sofort = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Sofort; + export type WechatPay = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.WechatPay; + export namespace AcssDebit { + export type MandateOptions = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.AcssDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.AcssDebit.SetupFutureUsage; + export type VerificationMethod = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type PaymentSchedule = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.AcssDebit.MandateOptions.PaymentSchedule; + export type TransactionType = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace AfterpayClearpay { + export type CaptureMethod = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.AfterpayClearpay.CaptureMethod; + } + export namespace Alipay { + export type SetupFutureUsage = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Alipay.SetupFutureUsage; + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Bancontact.PreferredLanguage; + export type SetupFutureUsage = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Bancontact.SetupFutureUsage; + } + export namespace Card { + export type CaptureMethod = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Card.CaptureMethod; + export type SetupFutureUsage = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Card.SetupFutureUsage; + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export type RequestedAddressType = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.CustomerBalance.BankTransfer.RequestedAddressType; + export type Type = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.CustomerBalance.BankTransfer.Type; + } + } + export namespace Ideal { + export type SetupFutureUsage = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Ideal.SetupFutureUsage; + } + export namespace Klarna { + export type OnDemand = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.OnDemand; + export type PreferredLocale = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.PreferredLocale; + export type SetupFutureUsage = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SetupFutureUsage; + export type Subscription = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription; + export type SupplementaryPurchaseData = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData; + export namespace OnDemand { + export type PurchaseInterval = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.OnDemand.PurchaseInterval; + } + export namespace Subscription { + export type Interval = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Interval; + export type NextBilling = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.NextBilling; + } + export namespace SupplementaryPurchaseData { + export type BusReservationDetail = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail; + export type EventReservationDetail = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail; + export type FerryReservationDetail = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail; + export type Insurance = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Insurance; + export type MarketplaceSeller = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller; + export type RoundTripReservationDetail = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail; + export type TrainReservationDetail = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail; + export type Voucher = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher; + export namespace BusReservationDetail { + export type Arrival = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Arrival; + export type Departure = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Departure; + export type Insurance = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Insurance; + export type Passenger = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Passenger; + export type TicketClass = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Insurance.InsuranceType; + } + } + export namespace EventReservationDetail { + export type Address = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Address; + export type EventType = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.EventType; + export type Insurance = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Insurance; + export namespace Insurance { + export type InsuranceType = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Insurance.InsuranceType; + } + } + export namespace FerryReservationDetail { + export type Arrival = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Arrival; + export type Departure = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Departure; + export type Insurance = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance; + export type Passenger = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Passenger; + export type TicketClass = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance.InsuranceType; + } + } + export namespace Insurance { + export type InsuranceType = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Insurance.InsuranceType; + } + export namespace MarketplaceSeller { + export type MarketplaceSellerAddress = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.MarketplaceSellerAddress; + export type ProductCategory = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.ProductCategory; + export type SellerRating = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.SellerRating; + } + export namespace RoundTripReservationDetail { + export type Arrival = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Arrival; + export type Departure = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Departure; + export type Insurance = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Insurance; + export type Passenger = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Passenger; + export type TicketClass = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Insurance.InsuranceType; + } + } + export namespace TrainReservationDetail { + export type Arrival = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Arrival; + export type Departure = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Departure; + export type Insurance = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Insurance; + export type Passenger = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Passenger; + export type TicketClass = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Insurance.InsuranceType; + } + } + export namespace Voucher { + export type VoucherType = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType; + } + } + } + export namespace Link { + export type SetupFutureUsage = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Link.SetupFutureUsage; + } + export namespace Paypal { + export type LineItem = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem; + export type PreferredLocale = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.PreferredLocale; + export type SetupFutureUsage = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.SetupFutureUsage; + export namespace LineItem { + export type Category = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Category; + export type Tax = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Tax; + export namespace Tax { + export type Behavior = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Tax.Behavior; + } + } + } + export namespace SepaDebit { + export type MandateOptions = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.SepaDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.SepaDebit.SetupFutureUsage; + } + export namespace Sofort { + export type PreferredLanguage = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Sofort.PreferredLanguage; + export type SetupFutureUsage = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.Sofort.SetupFutureUsage; + } + export namespace WechatPay { + export type Client = Stripe_.OrderCreateParams.Payment.Settings.PaymentMethodOptions.WechatPay.Client; + } + } + } + } + export namespace ShippingCost { + export type ShippingRateData = Stripe_.OrderCreateParams.ShippingCost.ShippingRateData; + export namespace ShippingRateData { + export type DeliveryEstimate = Stripe_.OrderCreateParams.ShippingCost.ShippingRateData.DeliveryEstimate; + export type FixedAmount = Stripe_.OrderCreateParams.ShippingCost.ShippingRateData.FixedAmount; + export type TaxBehavior = Stripe_.OrderCreateParams.ShippingCost.ShippingRateData.TaxBehavior; + export namespace DeliveryEstimate { + export type Maximum = Stripe_.OrderCreateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Maximum; + export type Minimum = Stripe_.OrderCreateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Minimum; + export namespace Maximum { + export type Unit = Stripe_.OrderCreateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Maximum.Unit; + } + export namespace Minimum { + export type Unit = Stripe_.OrderCreateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Minimum.Unit; + } + } + export namespace FixedAmount { + export type CurrencyOptions = Stripe_.OrderCreateParams.ShippingCost.ShippingRateData.FixedAmount.CurrencyOptions; + export namespace CurrencyOptions { + export type TaxBehavior = Stripe_.OrderCreateParams.ShippingCost.ShippingRateData.FixedAmount.CurrencyOptions.TaxBehavior; + } + } + } + } + export namespace TaxDetails { + export type TaxExempt = Stripe_.OrderCreateParams.TaxDetails.TaxExempt; + export type TaxId = Stripe_.OrderCreateParams.TaxDetails.TaxId; + export namespace TaxId { + export type Type = Stripe_.OrderCreateParams.TaxDetails.TaxId.Type; + } + } + } + export namespace OrderUpdateParams { + export type AutomaticTax = Stripe_.OrderUpdateParams.AutomaticTax; + export type BillingDetails = Stripe_.OrderUpdateParams.BillingDetails; + export type Discount = Stripe_.OrderUpdateParams.Discount; + export type LineItem = Stripe_.OrderUpdateParams.LineItem; + export type Payment = Stripe_.OrderUpdateParams.Payment; + export type ShippingCost = Stripe_.OrderUpdateParams.ShippingCost; + export type ShippingDetails = Stripe_.OrderUpdateParams.ShippingDetails; + export type TaxDetails = Stripe_.OrderUpdateParams.TaxDetails; + export namespace LineItem { + export type Discount = Stripe_.OrderUpdateParams.LineItem.Discount; + export type PriceData = Stripe_.OrderUpdateParams.LineItem.PriceData; + export type ProductData = Stripe_.OrderUpdateParams.LineItem.ProductData; + export namespace PriceData { + export type TaxBehavior = Stripe_.OrderUpdateParams.LineItem.PriceData.TaxBehavior; + } + export namespace ProductData { + export type PackageDimensions = Stripe_.OrderUpdateParams.LineItem.ProductData.PackageDimensions; + } + } + export namespace Payment { + export type Settings = Stripe_.OrderUpdateParams.Payment.Settings; + export namespace Settings { + export type PaymentMethodOptions = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodType; + export type TransferData = Stripe_.OrderUpdateParams.Payment.Settings.TransferData; + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.AcssDebit; + export type AfterpayClearpay = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.AfterpayClearpay; + export type Alipay = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Alipay; + export type Bancontact = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Bancontact; + export type Card = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.CustomerBalance; + export type Ideal = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Ideal; + export type Klarna = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna; + export type Link = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Link; + export type Oxxo = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Oxxo; + export type P24 = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.P24; + export type Paypal = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Paypal; + export type SepaDebit = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.SepaDebit; + export type Sofort = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Sofort; + export type WechatPay = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.WechatPay; + export namespace AcssDebit { + export type MandateOptions = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.AcssDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.AcssDebit.SetupFutureUsage; + export type VerificationMethod = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type PaymentSchedule = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.AcssDebit.MandateOptions.PaymentSchedule; + export type TransactionType = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace AfterpayClearpay { + export type CaptureMethod = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.AfterpayClearpay.CaptureMethod; + } + export namespace Alipay { + export type SetupFutureUsage = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Alipay.SetupFutureUsage; + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Bancontact.PreferredLanguage; + export type SetupFutureUsage = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Bancontact.SetupFutureUsage; + } + export namespace Card { + export type CaptureMethod = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Card.CaptureMethod; + export type SetupFutureUsage = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Card.SetupFutureUsage; + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export type RequestedAddressType = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.CustomerBalance.BankTransfer.RequestedAddressType; + export type Type = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.CustomerBalance.BankTransfer.Type; + } + } + export namespace Ideal { + export type SetupFutureUsage = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Ideal.SetupFutureUsage; + } + export namespace Klarna { + export type OnDemand = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.OnDemand; + export type PreferredLocale = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.PreferredLocale; + export type SetupFutureUsage = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SetupFutureUsage; + export type Subscription = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription; + export type SupplementaryPurchaseData = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData; + export namespace OnDemand { + export type PurchaseInterval = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.OnDemand.PurchaseInterval; + } + export namespace Subscription { + export type Interval = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.Interval; + export type NextBilling = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.Subscription.NextBilling; + } + export namespace SupplementaryPurchaseData { + export type BusReservationDetail = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail; + export type EventReservationDetail = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail; + export type FerryReservationDetail = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail; + export type Insurance = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Insurance; + export type MarketplaceSeller = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller; + export type RoundTripReservationDetail = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail; + export type TrainReservationDetail = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail; + export type Voucher = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher; + export namespace BusReservationDetail { + export type Arrival = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Arrival; + export type Departure = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Departure; + export type Insurance = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Insurance; + export type Passenger = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Passenger; + export type TicketClass = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Insurance.InsuranceType; + } + } + export namespace EventReservationDetail { + export type Address = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Address; + export type EventType = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.EventType; + export type Insurance = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Insurance; + export namespace Insurance { + export type InsuranceType = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Insurance.InsuranceType; + } + } + export namespace FerryReservationDetail { + export type Arrival = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Arrival; + export type Departure = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Departure; + export type Insurance = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance; + export type Passenger = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Passenger; + export type TicketClass = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance.InsuranceType; + } + } + export namespace Insurance { + export type InsuranceType = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Insurance.InsuranceType; + } + export namespace MarketplaceSeller { + export type MarketplaceSellerAddress = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.MarketplaceSellerAddress; + export type ProductCategory = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.ProductCategory; + export type SellerRating = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.SellerRating; + } + export namespace RoundTripReservationDetail { + export type Arrival = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Arrival; + export type Departure = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Departure; + export type Insurance = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Insurance; + export type Passenger = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Passenger; + export type TicketClass = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Insurance.InsuranceType; + } + } + export namespace TrainReservationDetail { + export type Arrival = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Arrival; + export type Departure = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Departure; + export type Insurance = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Insurance; + export type Passenger = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Passenger; + export type TicketClass = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Insurance.InsuranceType; + } + } + export namespace Voucher { + export type VoucherType = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType; + } + } + } + export namespace Link { + export type SetupFutureUsage = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Link.SetupFutureUsage; + } + export namespace Paypal { + export type LineItem = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem; + export type PreferredLocale = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Paypal.PreferredLocale; + export type SetupFutureUsage = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Paypal.SetupFutureUsage; + export namespace LineItem { + export type Category = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Category; + export type Tax = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Tax; + export namespace Tax { + export type Behavior = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Tax.Behavior; + } + } + } + export namespace SepaDebit { + export type MandateOptions = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.SepaDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.SepaDebit.SetupFutureUsage; + } + export namespace Sofort { + export type PreferredLanguage = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Sofort.PreferredLanguage; + export type SetupFutureUsage = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.Sofort.SetupFutureUsage; + } + export namespace WechatPay { + export type Client = Stripe_.OrderUpdateParams.Payment.Settings.PaymentMethodOptions.WechatPay.Client; + } + } + } + } + export namespace ShippingCost { + export type ShippingRateData = Stripe_.OrderUpdateParams.ShippingCost.ShippingRateData; + export namespace ShippingRateData { + export type DeliveryEstimate = Stripe_.OrderUpdateParams.ShippingCost.ShippingRateData.DeliveryEstimate; + export type FixedAmount = Stripe_.OrderUpdateParams.ShippingCost.ShippingRateData.FixedAmount; + export type TaxBehavior = Stripe_.OrderUpdateParams.ShippingCost.ShippingRateData.TaxBehavior; + export namespace DeliveryEstimate { + export type Maximum = Stripe_.OrderUpdateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Maximum; + export type Minimum = Stripe_.OrderUpdateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Minimum; + export namespace Maximum { + export type Unit = Stripe_.OrderUpdateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Maximum.Unit; + } + export namespace Minimum { + export type Unit = Stripe_.OrderUpdateParams.ShippingCost.ShippingRateData.DeliveryEstimate.Minimum.Unit; + } + } + export namespace FixedAmount { + export type CurrencyOptions = Stripe_.OrderUpdateParams.ShippingCost.ShippingRateData.FixedAmount.CurrencyOptions; + export namespace CurrencyOptions { + export type TaxBehavior = Stripe_.OrderUpdateParams.ShippingCost.ShippingRateData.FixedAmount.CurrencyOptions.TaxBehavior; + } + } + } + } + export namespace TaxDetails { + export type TaxExempt = Stripe_.OrderUpdateParams.TaxDetails.TaxExempt; + export type TaxId = Stripe_.OrderUpdateParams.TaxDetails.TaxId; + export namespace TaxId { + export type Type = Stripe_.OrderUpdateParams.TaxDetails.TaxId.Type; + } + } + } + export namespace Order { + export type AutomaticTax = Stripe_.Order.AutomaticTax; + export type BillingDetails = Stripe_.Order.BillingDetails; + export type Payment = Stripe_.Order.Payment; + export type ShippingCost = Stripe_.Order.ShippingCost; + export type ShippingDetails = Stripe_.Order.ShippingDetails; + export type Status = Stripe_.Order.Status; + export type TaxDetails = Stripe_.Order.TaxDetails; + export type TotalDetails = Stripe_.Order.TotalDetails; + export namespace AutomaticTax { + export type Status = Stripe_.Order.AutomaticTax.Status; + } + export namespace Payment { + export type Settings = Stripe_.Order.Payment.Settings; + export type Status = Stripe_.Order.Payment.Status; + export namespace Settings { + export type AutomaticPaymentMethods = Stripe_.Order.Payment.Settings.AutomaticPaymentMethods; + export type PaymentMethodOptions = Stripe_.Order.Payment.Settings.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.Order.Payment.Settings.PaymentMethodType; + export type TransferData = Stripe_.Order.Payment.Settings.TransferData; + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.Order.Payment.Settings.PaymentMethodOptions.AcssDebit; + export type AfterpayClearpay = Stripe_.Order.Payment.Settings.PaymentMethodOptions.AfterpayClearpay; + export type Alipay = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Alipay; + export type Bancontact = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Bancontact; + export type Card = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.Order.Payment.Settings.PaymentMethodOptions.CustomerBalance; + export type Ideal = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Ideal; + export type Klarna = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Klarna; + export type Link = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Link; + export type Oxxo = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Oxxo; + export type P24 = Stripe_.Order.Payment.Settings.PaymentMethodOptions.P24; + export type Paypal = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Paypal; + export type SepaDebit = Stripe_.Order.Payment.Settings.PaymentMethodOptions.SepaDebit; + export type Sofort = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Sofort; + export type WechatPay = Stripe_.Order.Payment.Settings.PaymentMethodOptions.WechatPay; + export namespace AcssDebit { + export type MandateOptions = Stripe_.Order.Payment.Settings.PaymentMethodOptions.AcssDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.Order.Payment.Settings.PaymentMethodOptions.AcssDebit.SetupFutureUsage; + export type VerificationMethod = Stripe_.Order.Payment.Settings.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type PaymentSchedule = Stripe_.Order.Payment.Settings.PaymentMethodOptions.AcssDebit.MandateOptions.PaymentSchedule; + export type TransactionType = Stripe_.Order.Payment.Settings.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace AfterpayClearpay { + export type CaptureMethod = Stripe_.Order.Payment.Settings.PaymentMethodOptions.AfterpayClearpay.CaptureMethod; + } + export namespace Alipay { + export type SetupFutureUsage = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Alipay.SetupFutureUsage; + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Bancontact.PreferredLanguage; + export type SetupFutureUsage = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Bancontact.SetupFutureUsage; + } + export namespace Card { + export type CaptureMethod = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Card.CaptureMethod; + export type SetupFutureUsage = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Card.SetupFutureUsage; + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.Order.Payment.Settings.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.Order.Payment.Settings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export type RequestedAddressType = Stripe_.Order.Payment.Settings.PaymentMethodOptions.CustomerBalance.BankTransfer.RequestedAddressType; + export type Type = Stripe_.Order.Payment.Settings.PaymentMethodOptions.CustomerBalance.BankTransfer.Type; + export namespace EuBankTransfer { + export type Country = Stripe_.Order.Payment.Settings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer.Country; + } + } + } + export namespace Ideal { + export type SetupFutureUsage = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Ideal.SetupFutureUsage; + } + export namespace Klarna { + export type SetupFutureUsage = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Klarna.SetupFutureUsage; + } + export namespace Link { + export type SetupFutureUsage = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Link.SetupFutureUsage; + } + export namespace Paypal { + export type LineItem = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Paypal.LineItem; + export type SetupFutureUsage = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Paypal.SetupFutureUsage; + export namespace LineItem { + export type Category = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Category; + export type Tax = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Tax; + export namespace Tax { + export type Behavior = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Paypal.LineItem.Tax.Behavior; + } + } + } + export namespace SepaDebit { + export type MandateOptions = Stripe_.Order.Payment.Settings.PaymentMethodOptions.SepaDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.Order.Payment.Settings.PaymentMethodOptions.SepaDebit.SetupFutureUsage; + } + export namespace Sofort { + export type PreferredLanguage = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Sofort.PreferredLanguage; + export type SetupFutureUsage = Stripe_.Order.Payment.Settings.PaymentMethodOptions.Sofort.SetupFutureUsage; + } + export namespace WechatPay { + export type Client = Stripe_.Order.Payment.Settings.PaymentMethodOptions.WechatPay.Client; + } + } + } + } + export namespace ShippingCost { + export type Tax = Stripe_.Order.ShippingCost.Tax; + export namespace Tax { + export type TaxabilityReason = Stripe_.Order.ShippingCost.Tax.TaxabilityReason; + } + } + export namespace TaxDetails { + export type TaxExempt = Stripe_.Order.TaxDetails.TaxExempt; + export type TaxId = Stripe_.Order.TaxDetails.TaxId; + export namespace TaxId { + export type Type = Stripe_.Order.TaxDetails.TaxId.Type; + } + } + export namespace TotalDetails { + export type Breakdown = Stripe_.Order.TotalDetails.Breakdown; + export namespace Breakdown { + export type Discount = Stripe_.Order.TotalDetails.Breakdown.Discount; + export type Tax = Stripe_.Order.TotalDetails.Breakdown.Tax; + export namespace Tax { + export type TaxabilityReason = Stripe_.Order.TotalDetails.Breakdown.Tax.TaxabilityReason; + } + } + } + } + export namespace PaymentAttemptRecord { + export type Amount = Stripe_.PaymentAttemptRecord.Amount; + export type AmountAuthorized = Stripe_.PaymentAttemptRecord.AmountAuthorized; + export type AmountCanceled = Stripe_.PaymentAttemptRecord.AmountCanceled; + export type AmountFailed = Stripe_.PaymentAttemptRecord.AmountFailed; + export type AmountGuaranteed = Stripe_.PaymentAttemptRecord.AmountGuaranteed; + export type AmountRefunded = Stripe_.PaymentAttemptRecord.AmountRefunded; + export type AmountRequested = Stripe_.PaymentAttemptRecord.AmountRequested; + export type CustomerDetails = Stripe_.PaymentAttemptRecord.CustomerDetails; + export type CustomerPresence = Stripe_.PaymentAttemptRecord.CustomerPresence; + export type PaymentMethodDetails = Stripe_.PaymentAttemptRecord.PaymentMethodDetails; + export type ProcessorDetails = Stripe_.PaymentAttemptRecord.ProcessorDetails; + export type ReportedBy = Stripe_.PaymentAttemptRecord.ReportedBy; + export type ShippingDetails = Stripe_.PaymentAttemptRecord.ShippingDetails; + export namespace PaymentMethodDetails { + export type AchCreditTransfer = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.AchCreditTransfer; + export type AchDebit = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.AchDebit; + export type AcssDebit = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.AcssDebit; + export type Affirm = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Affirm; + export type AfterpayClearpay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.AfterpayClearpay; + export type Alipay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Alipay; + export type Alma = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Alma; + export type AmazonPay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.AmazonPay; + export type AuBecsDebit = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.BacsDebit; + export type Bancontact = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Bancontact; + export type Billie = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Billie; + export type BillingDetails = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.BillingDetails; + export type Bizum = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Bizum; + export type Blik = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Blik; + export type Boleto = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Boleto; + export type Card = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card; + export type CardPresent = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.CardPresent; + export type Cashapp = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Cashapp; + export type Crypto = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Crypto; + export type Custom = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Custom; + export type CustomerBalance = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.CustomerBalance; + export type Eps = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Eps; + export type Fpx = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Fpx; + export type Giropay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Giropay; + export type Gopay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Gopay; + export type Grabpay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Grabpay; + export type IdBankTransfer = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.IdBankTransfer; + export type Ideal = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Ideal; + export type InteracPresent = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.InteracPresent; + export type KakaoPay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.KakaoPay; + export type Klarna = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Klarna; + export type Konbini = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Konbini; + export type KrCard = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.KrCard; + export type Link = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Link; + export type MbWay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.MbWay; + export type Mobilepay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Mobilepay; + export type Multibanco = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Multibanco; + export type NaverPay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.NaverPay; + export type NzBankAccount = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.NzBankAccount; + export type Oxxo = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Oxxo; + export type P24 = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.P24; + export type PayByBank = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.PayByBank; + export type Payco = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Payco; + export type Paynow = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Paynow; + export type Paypal = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Paypal; + export type Paypay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Paypay; + export type Payto = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Payto; + export type Pix = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Pix; + export type Promptpay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Promptpay; + export type Qris = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Qris; + export type Rechnung = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Rechnung; + export type RevolutPay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.RevolutPay; + export type SamsungPay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.SamsungPay; + export type Satispay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Satispay; + export type Scalapay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Scalapay; + export type SepaCreditTransfer = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.SepaCreditTransfer; + export type SepaDebit = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.SepaDebit; + export type Shopeepay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Shopeepay; + export type Sofort = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Sofort; + export type StripeAccount = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.StripeAccount; + export type StripeBalance = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.StripeBalance; + export type Sunbit = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Sunbit; + export type Swish = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Swish; + export type Twint = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Twint; + export type Upi = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Upi; + export type UsBankAccount = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.UsBankAccount; + export type Wechat = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Wechat; + export type WechatPay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.WechatPay; + export type Zip = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Zip; + export namespace AchDebit { + export type AccountHolderType = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.AchDebit.AccountHolderType; + } + export namespace Alma { + export type Installments = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Alma.Installments; + } + export namespace AmazonPay { + export type Funding = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.AmazonPay.Funding; + export namespace Funding { + export type Card = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.AmazonPay.Funding.Card; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Bancontact.PreferredLanguage; + } + export namespace Card { + export type Brand = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.Brand; + export type Checks = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.Checks; + export type Funding = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.Funding; + export type Installments = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.Installments; + export type Network = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.Network; + export type NetworkToken = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.NetworkToken; + export type StoredCredentialUsage = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.StoredCredentialUsage; + export type ThreeDSecure = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.ThreeDSecure; + export type Wallet = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.Wallet; + export namespace Checks { + export type AddressLine1Check = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.Checks.AddressLine1Check; + export type AddressPostalCodeCheck = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.Checks.AddressPostalCodeCheck; + export type CvcCheck = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.Checks.CvcCheck; + } + export namespace Installments { + export type Plan = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.Installments.Plan; + export namespace Plan { + export type Type = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.Installments.Plan.Type; + } + } + export namespace ThreeDSecure { + export type AuthenticationFlow = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.ThreeDSecure.AuthenticationFlow; + export type ElectronicCommerceIndicator = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.ThreeDSecure.ElectronicCommerceIndicator; + export type ExemptionIndicator = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.ThreeDSecure.ExemptionIndicator; + export type Result = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.ThreeDSecure.Result; + export type ResultReason = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.ThreeDSecure.ResultReason; + export type Version = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.ThreeDSecure.Version; + } + export namespace Wallet { + export type ApplePay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.Wallet.ApplePay; + export type GooglePay = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Card.Wallet.GooglePay; + } + } + export namespace CardPresent { + export type Offline = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.CardPresent.Offline; + export type ReadMethod = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.CardPresent.ReadMethod; + export type Receipt = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.CardPresent.Receipt; + export type Wallet = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.CardPresent.Wallet; + export namespace Receipt { + export type AccountType = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.CardPresent.Receipt.AccountType; + } + export namespace Wallet { + export type Type = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.CardPresent.Wallet.Type; + } + } + export namespace Crypto { + export type Network = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Crypto.Network; + export type TokenCurrency = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Crypto.TokenCurrency; + } + export namespace Eps { + export type Bank = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Eps.Bank; + } + export namespace Fpx { + export type AccountHolderType = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Fpx.AccountHolderType; + export type Bank = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Fpx.Bank; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Ideal.Bank; + export type Bic = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Ideal.Bic; + } + export namespace InteracPresent { + export type ReadMethod = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.InteracPresent.ReadMethod; + export type Receipt = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.InteracPresent.Receipt; + export namespace Receipt { + export type AccountType = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.InteracPresent.Receipt.AccountType; + } + } + export namespace Klarna { + export type PayerDetails = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Klarna.PayerDetails; + export namespace PayerDetails { + export type Address = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Klarna.PayerDetails.Address; + } + } + export namespace Konbini { + export type Store = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Konbini.Store; + export namespace Store { + export type Chain = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Konbini.Store.Chain; + } + } + export namespace KrCard { + export type Brand = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.KrCard.Brand; + } + export namespace Mobilepay { + export type Card = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Mobilepay.Card; + } + export namespace P24 { + export type Bank = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.P24.Bank; + } + export namespace Paypal { + export type SellerProtection = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Paypal.SellerProtection; + export namespace SellerProtection { + export type DisputeCategory = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Paypal.SellerProtection.DisputeCategory; + export type Status = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Paypal.SellerProtection.Status; + } + } + export namespace RevolutPay { + export type Funding = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.RevolutPay.Funding; + export namespace Funding { + export type Card = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.RevolutPay.Funding.Card; + } + } + export namespace Sofort { + export type PreferredLanguage = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.Sofort.PreferredLanguage; + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.PaymentAttemptRecord.PaymentMethodDetails.UsBankAccount.AccountType; + } + } + export namespace ProcessorDetails { + export type Custom = Stripe_.PaymentAttemptRecord.ProcessorDetails.Custom; + } + } + export namespace PaymentIntentCreateParams { + export type AmountDetails = Stripe_.PaymentIntentCreateParams.AmountDetails; + export type AutomaticPaymentMethods = Stripe_.PaymentIntentCreateParams.AutomaticPaymentMethods; + export type CaptureMethod = Stripe_.PaymentIntentCreateParams.CaptureMethod; + export type ConfirmationMethod = Stripe_.PaymentIntentCreateParams.ConfirmationMethod; + export type ExcludedPaymentMethodType = Stripe_.PaymentIntentCreateParams.ExcludedPaymentMethodType; + export type Hooks = Stripe_.PaymentIntentCreateParams.Hooks; + export type MandateData = Stripe_.PaymentIntentCreateParams.MandateData; + export type OffSession = Stripe_.PaymentIntentCreateParams.OffSession; + export type PaymentDetails = Stripe_.PaymentIntentCreateParams.PaymentDetails; + export type PaymentMethodData = Stripe_.PaymentIntentCreateParams.PaymentMethodData; + export type PaymentMethodOptions = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions; + export type RadarOptions = Stripe_.PaymentIntentCreateParams.RadarOptions; + export type SecretKeyConfirmation = Stripe_.PaymentIntentCreateParams.SecretKeyConfirmation; + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.SetupFutureUsage; + export type Shipping = Stripe_.PaymentIntentCreateParams.Shipping; + export type TransferData = Stripe_.PaymentIntentCreateParams.TransferData; + export namespace AmountDetails { + export type LineItem = Stripe_.PaymentIntentCreateParams.AmountDetails.LineItem; + export type Shipping = Stripe_.PaymentIntentCreateParams.AmountDetails.Shipping; + export type Surcharge = Stripe_.PaymentIntentCreateParams.AmountDetails.Surcharge; + export type Tax = Stripe_.PaymentIntentCreateParams.AmountDetails.Tax; + export namespace LineItem { + export type PaymentMethodOptions = Stripe_.PaymentIntentCreateParams.AmountDetails.LineItem.PaymentMethodOptions; + export type Tax = Stripe_.PaymentIntentCreateParams.AmountDetails.LineItem.Tax; + export namespace PaymentMethodOptions { + export type Card = Stripe_.PaymentIntentCreateParams.AmountDetails.LineItem.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.PaymentIntentCreateParams.AmountDetails.LineItem.PaymentMethodOptions.CardPresent; + export type Klarna = Stripe_.PaymentIntentCreateParams.AmountDetails.LineItem.PaymentMethodOptions.Klarna; + export type Paypal = Stripe_.PaymentIntentCreateParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal; + export namespace Paypal { + export type Category = Stripe_.PaymentIntentCreateParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal.Category; + } + } + } + export namespace Surcharge { + export type EnforceValidation = Stripe_.PaymentIntentCreateParams.AmountDetails.Surcharge.EnforceValidation; + } + } + export namespace AutomaticPaymentMethods { + export type AllowRedirects = Stripe_.PaymentIntentCreateParams.AutomaticPaymentMethods.AllowRedirects; + } + export namespace Hooks { + export type Inputs = Stripe_.PaymentIntentCreateParams.Hooks.Inputs; + export namespace Inputs { + export type Tax = Stripe_.PaymentIntentCreateParams.Hooks.Inputs.Tax; + } + } + export namespace MandateData { + export type CustomerAcceptance = Stripe_.PaymentIntentCreateParams.MandateData.CustomerAcceptance; + export namespace CustomerAcceptance { + export type Offline = Stripe_.PaymentIntentCreateParams.MandateData.CustomerAcceptance.Offline; + export type Online = Stripe_.PaymentIntentCreateParams.MandateData.CustomerAcceptance.Online; + export type Type = Stripe_.PaymentIntentCreateParams.MandateData.CustomerAcceptance.Type; + } + } + export namespace PaymentDetails { + export type CarRental = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRental; + export type CarRentalDatum = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum; + export type EventDetails = Stripe_.PaymentIntentCreateParams.PaymentDetails.EventDetails; + export type Flight = Stripe_.PaymentIntentCreateParams.PaymentDetails.Flight; + export type FlightDatum = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum; + export type Lodging = Stripe_.PaymentIntentCreateParams.PaymentDetails.Lodging; + export type LodgingDatum = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum; + export type Subscription = Stripe_.PaymentIntentCreateParams.PaymentDetails.Subscription; + export namespace CarRental { + export type Affiliate = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRental.Affiliate; + export type Delivery = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRental.Delivery; + export type Distance = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRental.Distance; + export type Driver = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRental.Driver; + export type ExtraCharge = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRental.ExtraCharge; + export type RateInterval = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRental.RateInterval; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRental.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRental.Delivery.Recipient; + } + export namespace Distance { + export type Unit = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRental.Distance.Unit; + } + } + export namespace CarRentalDatum { + export type Affiliate = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Affiliate; + export type Distance = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Distance; + export type Driver = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Driver; + export type DropOff = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.DropOff; + export type Insurance = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Insurance; + export type Pickup = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Pickup; + export type Total = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Total; + export type Vehicle = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Vehicle; + export namespace Distance { + export type Unit = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Distance.Unit; + } + export namespace Driver { + export type DateOfBirth = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Driver.DateOfBirth; + } + export namespace DropOff { + export type Address = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.DropOff.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Insurance.InsuranceType; + } + export namespace Pickup { + export type Address = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Pickup.Address; + } + export namespace Total { + export type Discounts = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Total.ExtraCharge; + export type RateUnit = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Total.RateUnit; + export type Tax = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Total.Tax.Tax; + } + } + export namespace Vehicle { + export type Type = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Vehicle.Type; + export type VehicleClass = Stripe_.PaymentIntentCreateParams.PaymentDetails.CarRentalDatum.Vehicle.VehicleClass; + } + } + export namespace EventDetails { + export type Affiliate = Stripe_.PaymentIntentCreateParams.PaymentDetails.EventDetails.Affiliate; + export type Delivery = Stripe_.PaymentIntentCreateParams.PaymentDetails.EventDetails.Delivery; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentCreateParams.PaymentDetails.EventDetails.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentCreateParams.PaymentDetails.EventDetails.Delivery.Recipient; + } + } + export namespace Flight { + export type Affiliate = Stripe_.PaymentIntentCreateParams.PaymentDetails.Flight.Affiliate; + export type Delivery = Stripe_.PaymentIntentCreateParams.PaymentDetails.Flight.Delivery; + export type Passenger = Stripe_.PaymentIntentCreateParams.PaymentDetails.Flight.Passenger; + export type Segment = Stripe_.PaymentIntentCreateParams.PaymentDetails.Flight.Segment; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentCreateParams.PaymentDetails.Flight.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentCreateParams.PaymentDetails.Flight.Delivery.Recipient; + } + export namespace Segment { + export type ServiceClass = Stripe_.PaymentIntentCreateParams.PaymentDetails.Flight.Segment.ServiceClass; + } + } + export namespace FlightDatum { + export type Affiliate = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Affiliate; + export type Insurance = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Insurance; + export type Passenger = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Passenger; + export type Segment = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Segment; + export type Total = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Total; + export type TransactionType = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.TransactionType; + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Insurance.InsuranceType; + } + export namespace Segment { + export type Arrival = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Segment.Arrival; + export type Departure = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Segment.Departure; + export type ServiceClass = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Segment.ServiceClass; + } + export namespace Total { + export type CreditReason = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Total.CreditReason; + export type Discounts = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Total.ExtraCharge; + export type Tax = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntentCreateParams.PaymentDetails.FlightDatum.Total.Tax.Tax; + } + } + } + export namespace Lodging { + export type Affiliate = Stripe_.PaymentIntentCreateParams.PaymentDetails.Lodging.Affiliate; + export type Category = Stripe_.PaymentIntentCreateParams.PaymentDetails.Lodging.Category; + export type Delivery = Stripe_.PaymentIntentCreateParams.PaymentDetails.Lodging.Delivery; + export type ExtraCharge = Stripe_.PaymentIntentCreateParams.PaymentDetails.Lodging.ExtraCharge; + export type Passenger = Stripe_.PaymentIntentCreateParams.PaymentDetails.Lodging.Passenger; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentCreateParams.PaymentDetails.Lodging.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentCreateParams.PaymentDetails.Lodging.Delivery.Recipient; + } + } + export namespace LodgingDatum { + export type Accommodation = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Accommodation; + export type Affiliate = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Affiliate; + export type Guest = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Guest; + export type Host = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Host; + export type Insurance = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Insurance; + export type Total = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Total; + export namespace Accommodation { + export type AccommodationType = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Accommodation.AccommodationType; + } + export namespace Host { + export type Address = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Host.Address; + export type HostType = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Host.HostType; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Insurance.InsuranceType; + } + export namespace Total { + export type Discounts = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Total.ExtraCharge; + export type Tax = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntentCreateParams.PaymentDetails.LodgingDatum.Total.Tax.Tax; + } + } + } + export namespace Subscription { + export type Affiliate = Stripe_.PaymentIntentCreateParams.PaymentDetails.Subscription.Affiliate; + export type BillingInterval = Stripe_.PaymentIntentCreateParams.PaymentDetails.Subscription.BillingInterval; + export namespace BillingInterval { + export type Interval = Stripe_.PaymentIntentCreateParams.PaymentDetails.Subscription.BillingInterval.Interval; + } + } + } + export namespace PaymentMethodData { + export type AcssDebit = Stripe_.PaymentIntentCreateParams.PaymentMethodData.AcssDebit; + export type Affirm = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Affirm; + export type AfterpayClearpay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.AfterpayClearpay; + export type Alipay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Alipay; + export type AllowRedisplay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.AllowRedisplay; + export type Alma = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Alma; + export type AmazonPay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.AmazonPay; + export type AuBecsDebit = Stripe_.PaymentIntentCreateParams.PaymentMethodData.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentIntentCreateParams.PaymentMethodData.BacsDebit; + export type Bancontact = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Bancontact; + export type Billie = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Billie; + export type BillingDetails = Stripe_.PaymentIntentCreateParams.PaymentMethodData.BillingDetails; + export type Bizum = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Bizum; + export type Blik = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Blik; + export type Boleto = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Boleto; + export type Cashapp = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Cashapp; + export type Crypto = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Crypto; + export type CustomerBalance = Stripe_.PaymentIntentCreateParams.PaymentMethodData.CustomerBalance; + export type Eps = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Eps; + export type Fpx = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Fpx; + export type Giropay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Giropay; + export type Gopay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Gopay; + export type Grabpay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Grabpay; + export type IdBankTransfer = Stripe_.PaymentIntentCreateParams.PaymentMethodData.IdBankTransfer; + export type Ideal = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Ideal; + export type InteracPresent = Stripe_.PaymentIntentCreateParams.PaymentMethodData.InteracPresent; + export type KakaoPay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.KakaoPay; + export type Klarna = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Klarna; + export type Konbini = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Konbini; + export type KrCard = Stripe_.PaymentIntentCreateParams.PaymentMethodData.KrCard; + export type Link = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Link; + export type MbWay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.MbWay; + export type Mobilepay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Mobilepay; + export type Multibanco = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Multibanco; + export type NaverPay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.NaverPay; + export type NzBankAccount = Stripe_.PaymentIntentCreateParams.PaymentMethodData.NzBankAccount; + export type Oxxo = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Oxxo; + export type P24 = Stripe_.PaymentIntentCreateParams.PaymentMethodData.P24; + export type PayByBank = Stripe_.PaymentIntentCreateParams.PaymentMethodData.PayByBank; + export type Payco = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Payco; + export type Paynow = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Paynow; + export type Paypal = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Paypal; + export type Paypay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Paypay; + export type Payto = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Payto; + export type Pix = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Pix; + export type Promptpay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Promptpay; + export type Qris = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Qris; + export type RadarOptions = Stripe_.PaymentIntentCreateParams.PaymentMethodData.RadarOptions; + export type Rechnung = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Rechnung; + export type RevolutPay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.RevolutPay; + export type SamsungPay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.SamsungPay; + export type Satispay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Satispay; + export type Scalapay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Scalapay; + export type SepaDebit = Stripe_.PaymentIntentCreateParams.PaymentMethodData.SepaDebit; + export type Shopeepay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Shopeepay; + export type Sofort = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Sofort; + export type StripeBalance = Stripe_.PaymentIntentCreateParams.PaymentMethodData.StripeBalance; + export type Sunbit = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Sunbit; + export type Swish = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Swish; + export type Twint = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Twint; + export type Type = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Type; + export type Upi = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Upi; + export type UsBankAccount = Stripe_.PaymentIntentCreateParams.PaymentMethodData.UsBankAccount; + export type WechatPay = Stripe_.PaymentIntentCreateParams.PaymentMethodData.WechatPay; + export type Zip = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Zip; + export namespace Eps { + export type Bank = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Eps.Bank; + } + export namespace Fpx { + export type AccountHolderType = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Fpx.AccountHolderType; + export type Bank = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Fpx.Bank; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.PaymentIntentCreateParams.PaymentMethodData.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Ideal.Bank; + } + export namespace Klarna { + export type Dob = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Klarna.Dob; + } + export namespace NaverPay { + export type Funding = Stripe_.PaymentIntentCreateParams.PaymentMethodData.NaverPay.Funding; + } + export namespace P24 { + export type Bank = Stripe_.PaymentIntentCreateParams.PaymentMethodData.P24.Bank; + } + export namespace Rechnung { + export type Dob = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Rechnung.Dob; + } + export namespace Sofort { + export type Country = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Sofort.Country; + } + export namespace Upi { + export type MandateOptions = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntentCreateParams.PaymentMethodData.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.PaymentIntentCreateParams.PaymentMethodData.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.PaymentIntentCreateParams.PaymentMethodData.UsBankAccount.AccountType; + } + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.AcssDebit; + export type Affirm = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Affirm; + export type AfterpayClearpay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.AfterpayClearpay; + export type Alipay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Alipay; + export type Alma = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Alma; + export type AmazonPay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.AmazonPay; + export type AuBecsDebit = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit; + export type Bancontact = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Bancontact; + export type Billie = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Billie; + export type Bizum = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Bizum; + export type Blik = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Blik; + export type Boleto = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Boleto; + export type Card = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.CardPresent; + export type Cashapp = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Cashapp; + export type Crypto = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Crypto; + export type CustomerBalance = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.CustomerBalance; + export type Eps = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Eps; + export type Fpx = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Fpx; + export type Giropay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Giropay; + export type Gopay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Gopay; + export type Grabpay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Grabpay; + export type IdBankTransfer = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.IdBankTransfer; + export type Ideal = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Ideal; + export type InteracPresent = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.InteracPresent; + export type KakaoPay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.KakaoPay; + export type Klarna = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna; + export type Konbini = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Konbini; + export type KrCard = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.KrCard; + export type Link = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Link; + export type MbWay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.MbWay; + export type Mobilepay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Mobilepay; + export type Multibanco = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Multibanco; + export type NaverPay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.NaverPay; + export type NzBankAccount = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.NzBankAccount; + export type Oxxo = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Oxxo; + export type P24 = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.P24; + export type PayByBank = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.PayByBank; + export type Payco = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Payco; + export type Paynow = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Paynow; + export type Paypal = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Paypal; + export type Paypay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Paypay; + export type Payto = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Payto; + export type Pix = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Pix; + export type Promptpay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Promptpay; + export type Qris = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Qris; + export type Rechnung = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Rechnung; + export type RevolutPay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.RevolutPay; + export type SamsungPay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.SamsungPay; + export type Satispay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Satispay; + export type Scalapay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Scalapay; + export type SepaDebit = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.SepaDebit; + export type Shopeepay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Shopeepay; + export type Sofort = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Sofort; + export type StripeBalance = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.StripeBalance; + export type Swish = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Swish; + export type Twint = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Twint; + export type Upi = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount; + export type WechatPay = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.WechatPay; + export type Zip = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Zip; + export namespace AcssDebit { + export type MandateOptions = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.AcssDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.AcssDebit.SetupFutureUsage; + export type VerificationMethod = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type PaymentSchedule = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.AcssDebit.MandateOptions.PaymentSchedule; + export type TransactionType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Alipay { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Alipay.SetupFutureUsage; + } + export namespace AmazonPay { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.AmazonPay.SetupFutureUsage; + } + export namespace AuBecsDebit { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.AuBecsDebit.SetupFutureUsage; + } + export namespace BacsDebit { + export type MandateOptions = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit.SetupFutureUsage; + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Bancontact.PreferredLanguage; + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Bancontact.SetupFutureUsage; + } + export namespace Boleto { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Boleto.SetupFutureUsage; + } + export namespace Card { + export type Installments = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments; + export type MandateOptions = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions; + export type Network = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.Network; + export type RequestDecrementalAuthorization = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.RequestDecrementalAuthorization; + export type RequestExtendedAuthorization = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.RequestExtendedAuthorization; + export type RequestIncrementalAuthorization = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.RequestIncrementalAuthorization; + export type RequestMulticapture = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.RequestMulticapture; + export type RequestOvercapture = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.RequestOvercapture; + export type RequestPartialAuthorization = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.RequestPartialAuthorization; + export type RequestThreeDSecure = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.RequestThreeDSecure; + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.SetupFutureUsage; + export type StatementDetails = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.StatementDetails; + export type ThreeDSecure = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure; + export namespace Installments { + export type Plan = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.Plan; + export namespace Plan { + export type Type = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.Installments.Plan.Type; + } + } + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.AmountType; + export type Interval = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Interval; + } + export namespace ThreeDSecure { + export type AresTransStatus = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure.AresTransStatus; + export type ElectronicCommerceIndicator = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure.ElectronicCommerceIndicator; + export type ExemptionIndicator = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure.ExemptionIndicator; + export type NetworkOptions = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions; + export type Version = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure.Version; + export namespace NetworkOptions { + export type CartesBancaires = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions.CartesBancaires; + export namespace CartesBancaires { + export type CbAvalgo = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions.CartesBancaires.CbAvalgo; + } + } + } + } + export namespace CardPresent { + export type CaptureMethod = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.CaptureMethod; + export type Routing = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.Routing; + export namespace Routing { + export type RequestedPriority = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.CardPresent.Routing.RequestedPriority; + } + } + export namespace Cashapp { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Cashapp.SetupFutureUsage; + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export type RequestedAddressType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.CustomerBalance.BankTransfer.RequestedAddressType; + export type Type = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.CustomerBalance.BankTransfer.Type; + } + } + export namespace Gopay { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Gopay.SetupFutureUsage; + } + export namespace Ideal { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Ideal.SetupFutureUsage; + } + export namespace KakaoPay { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.KakaoPay.SetupFutureUsage; + } + export namespace Klarna { + export type OnDemand = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.OnDemand; + export type PreferredLocale = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.PreferredLocale; + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SetupFutureUsage; + export type Subscription = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.Subscription; + export type SupplementaryPurchaseData = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData; + export namespace OnDemand { + export type PurchaseInterval = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.OnDemand.PurchaseInterval; + } + export namespace Subscription { + export type Interval = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.Interval; + export type NextBilling = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.NextBilling; + } + export namespace SupplementaryPurchaseData { + export type BusReservationDetail = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail; + export type EventReservationDetail = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail; + export type FerryReservationDetail = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail; + export type Insurance = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Insurance; + export type MarketplaceSeller = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller; + export type RoundTripReservationDetail = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail; + export type TrainReservationDetail = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail; + export type Voucher = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher; + export namespace BusReservationDetail { + export type Arrival = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Arrival; + export type Departure = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Departure; + export type Insurance = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Insurance; + export type Passenger = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Passenger; + export type TicketClass = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Insurance.InsuranceType; + } + } + export namespace EventReservationDetail { + export type Address = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Address; + export type EventType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.EventType; + export type Insurance = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Insurance; + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Insurance.InsuranceType; + } + } + export namespace FerryReservationDetail { + export type Arrival = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Arrival; + export type Departure = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Departure; + export type Insurance = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance; + export type Passenger = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Passenger; + export type TicketClass = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance.InsuranceType; + } + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Insurance.InsuranceType; + } + export namespace MarketplaceSeller { + export type MarketplaceSellerAddress = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.MarketplaceSellerAddress; + export type ProductCategory = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.ProductCategory; + export type SellerRating = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.SellerRating; + } + export namespace RoundTripReservationDetail { + export type Arrival = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Arrival; + export type Departure = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Departure; + export type Insurance = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Insurance; + export type Passenger = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Passenger; + export type TicketClass = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Insurance.InsuranceType; + } + } + export namespace TrainReservationDetail { + export type Arrival = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Arrival; + export type Departure = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Departure; + export type Insurance = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Insurance; + export type Passenger = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Passenger; + export type TicketClass = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Insurance.InsuranceType; + } + } + export namespace Voucher { + export type VoucherType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType; + } + } + } + export namespace KrCard { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.KrCard.SetupFutureUsage; + } + export namespace Link { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Link.SetupFutureUsage; + } + export namespace NaverPay { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.NaverPay.SetupFutureUsage; + } + export namespace NzBankAccount { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.NzBankAccount.SetupFutureUsage; + } + export namespace Paypal { + export type LineItem = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem; + export type PreferredLocale = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Paypal.PreferredLocale; + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Paypal.SetupFutureUsage; + export namespace LineItem { + export type Category = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem.Category; + export type Tax = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem.Tax; + export namespace Tax { + export type Behavior = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Paypal.LineItem.Tax.Behavior; + } + } + } + export namespace Payto { + export type MandateOptions = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Payto.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule; + export type Purpose = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type AmountIncludesIof = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Pix.AmountIncludesIof; + export type MandateOptions = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Pix.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Pix.SetupFutureUsage; + export namespace MandateOptions { + export type AmountIncludesIof = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Pix.MandateOptions.AmountIncludesIof; + export type AmountType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Pix.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Pix.MandateOptions.PaymentSchedule; + } + } + export namespace RevolutPay { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.RevolutPay.SetupFutureUsage; + } + export namespace SepaDebit { + export type MandateOptions = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.SepaDebit.SetupFutureUsage; + } + export namespace Sofort { + export type PreferredLanguage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Sofort.PreferredLanguage; + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Sofort.SetupFutureUsage; + } + export namespace StripeBalance { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.StripeBalance.SetupFutureUsage; + } + export namespace Twint { + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Twint.SetupFutureUsage; + } + export namespace Upi { + export type MandateOptions = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Upi.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Upi.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type MandateOptions = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.MandateOptions; + export type Networks = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.Networks; + export type SetupFutureUsage = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.SetupFutureUsage; + export type TransactionPurpose = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.TransactionPurpose; + export type VerificationMethod = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type ManualEntry = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry; + export type Permission = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + export namespace ManualEntry { + export type Mode = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry.Mode; + } + } + export namespace Networks { + export type Requested = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.UsBankAccount.Networks.Requested; + } + } + export namespace WechatPay { + export type Client = Stripe_.PaymentIntentCreateParams.PaymentMethodOptions.WechatPay.Client; + } + } + export namespace TransferData { + export type PaymentData = Stripe_.PaymentIntentCreateParams.TransferData.PaymentData; + } + } + export namespace PaymentIntentUpdateParams { + export type AmountDetails = Stripe_.PaymentIntentUpdateParams.AmountDetails; + export type CaptureMethod = Stripe_.PaymentIntentUpdateParams.CaptureMethod; + export type ExcludedPaymentMethodType = Stripe_.PaymentIntentUpdateParams.ExcludedPaymentMethodType; + export type Hooks = Stripe_.PaymentIntentUpdateParams.Hooks; + export type MandateData = Stripe_.PaymentIntentUpdateParams.MandateData; + export type PaymentDetails = Stripe_.PaymentIntentUpdateParams.PaymentDetails; + export type PaymentMethodData = Stripe_.PaymentIntentUpdateParams.PaymentMethodData; + export type PaymentMethodOptions = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.SetupFutureUsage; + export type Shipping = Stripe_.PaymentIntentUpdateParams.Shipping; + export type TransferData = Stripe_.PaymentIntentUpdateParams.TransferData; + export namespace AmountDetails { + export type LineItem = Stripe_.PaymentIntentUpdateParams.AmountDetails.LineItem; + export type Shipping = Stripe_.PaymentIntentUpdateParams.AmountDetails.Shipping; + export type Surcharge = Stripe_.PaymentIntentUpdateParams.AmountDetails.Surcharge; + export type Tax = Stripe_.PaymentIntentUpdateParams.AmountDetails.Tax; + export namespace LineItem { + export type PaymentMethodOptions = Stripe_.PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions; + export type Tax = Stripe_.PaymentIntentUpdateParams.AmountDetails.LineItem.Tax; + export namespace PaymentMethodOptions { + export type Card = Stripe_.PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions.CardPresent; + export type Klarna = Stripe_.PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions.Klarna; + export type Paypal = Stripe_.PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal; + export namespace Paypal { + export type Category = Stripe_.PaymentIntentUpdateParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal.Category; + } + } + } + export namespace Surcharge { + export type EnforceValidation = Stripe_.PaymentIntentUpdateParams.AmountDetails.Surcharge.EnforceValidation; + } + } + export namespace Hooks { + export type Inputs = Stripe_.PaymentIntentUpdateParams.Hooks.Inputs; + export namespace Inputs { + export type Tax = Stripe_.PaymentIntentUpdateParams.Hooks.Inputs.Tax; + } + } + export namespace MandateData { + export type CustomerAcceptance = Stripe_.PaymentIntentUpdateParams.MandateData.CustomerAcceptance; + export namespace CustomerAcceptance { + export type Online = Stripe_.PaymentIntentUpdateParams.MandateData.CustomerAcceptance.Online; + } + } + export namespace PaymentDetails { + export type CarRental = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRental; + export type CarRentalDatum = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum; + export type EventDetails = Stripe_.PaymentIntentUpdateParams.PaymentDetails.EventDetails; + export type Flight = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Flight; + export type FlightDatum = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum; + export type Lodging = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Lodging; + export type LodgingDatum = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum; + export type Subscription = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Subscription; + export namespace CarRental { + export type Affiliate = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRental.Affiliate; + export type Delivery = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRental.Delivery; + export type Distance = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRental.Distance; + export type Driver = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRental.Driver; + export type ExtraCharge = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRental.ExtraCharge; + export type RateInterval = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRental.RateInterval; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRental.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRental.Delivery.Recipient; + } + export namespace Distance { + export type Unit = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRental.Distance.Unit; + } + } + export namespace CarRentalDatum { + export type Affiliate = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Affiliate; + export type Distance = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Distance; + export type Driver = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Driver; + export type DropOff = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.DropOff; + export type Insurance = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Insurance; + export type Pickup = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Pickup; + export type Total = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Total; + export type Vehicle = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Vehicle; + export namespace Distance { + export type Unit = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Distance.Unit; + } + export namespace Driver { + export type DateOfBirth = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Driver.DateOfBirth; + } + export namespace DropOff { + export type Address = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.DropOff.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Insurance.InsuranceType; + } + export namespace Pickup { + export type Address = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Pickup.Address; + } + export namespace Total { + export type Discounts = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Total.ExtraCharge; + export type RateUnit = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Total.RateUnit; + export type Tax = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Total.Tax.Tax; + } + } + export namespace Vehicle { + export type Type = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Vehicle.Type; + export type VehicleClass = Stripe_.PaymentIntentUpdateParams.PaymentDetails.CarRentalDatum.Vehicle.VehicleClass; + } + } + export namespace EventDetails { + export type Affiliate = Stripe_.PaymentIntentUpdateParams.PaymentDetails.EventDetails.Affiliate; + export type Delivery = Stripe_.PaymentIntentUpdateParams.PaymentDetails.EventDetails.Delivery; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentUpdateParams.PaymentDetails.EventDetails.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentUpdateParams.PaymentDetails.EventDetails.Delivery.Recipient; + } + } + export namespace Flight { + export type Affiliate = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Flight.Affiliate; + export type Delivery = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Flight.Delivery; + export type Passenger = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Flight.Passenger; + export type Segment = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Flight.Segment; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Flight.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Flight.Delivery.Recipient; + } + export namespace Segment { + export type ServiceClass = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Flight.Segment.ServiceClass; + } + } + export namespace FlightDatum { + export type Affiliate = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Affiliate; + export type Insurance = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Insurance; + export type Passenger = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Passenger; + export type Segment = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Segment; + export type Total = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Total; + export type TransactionType = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.TransactionType; + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Insurance.InsuranceType; + } + export namespace Segment { + export type Arrival = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Segment.Arrival; + export type Departure = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Segment.Departure; + export type ServiceClass = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Segment.ServiceClass; + } + export namespace Total { + export type CreditReason = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Total.CreditReason; + export type Discounts = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Total.ExtraCharge; + export type Tax = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntentUpdateParams.PaymentDetails.FlightDatum.Total.Tax.Tax; + } + } + } + export namespace Lodging { + export type Affiliate = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Lodging.Affiliate; + export type Category = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Lodging.Category; + export type Delivery = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Lodging.Delivery; + export type ExtraCharge = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Lodging.ExtraCharge; + export type Passenger = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Lodging.Passenger; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Lodging.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Lodging.Delivery.Recipient; + } + } + export namespace LodgingDatum { + export type Accommodation = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Accommodation; + export type Affiliate = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Affiliate; + export type Guest = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Guest; + export type Host = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Host; + export type Insurance = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Insurance; + export type Total = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Total; + export namespace Accommodation { + export type AccommodationType = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Accommodation.AccommodationType; + } + export namespace Host { + export type Address = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Host.Address; + export type HostType = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Host.HostType; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Insurance.InsuranceType; + } + export namespace Total { + export type Discounts = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Total.ExtraCharge; + export type Tax = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntentUpdateParams.PaymentDetails.LodgingDatum.Total.Tax.Tax; + } + } + } + export namespace Subscription { + export type Affiliate = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Subscription.Affiliate; + export type BillingInterval = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Subscription.BillingInterval; + export namespace BillingInterval { + export type Interval = Stripe_.PaymentIntentUpdateParams.PaymentDetails.Subscription.BillingInterval.Interval; + } + } + } + export namespace PaymentMethodData { + export type AcssDebit = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.AcssDebit; + export type Affirm = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Affirm; + export type AfterpayClearpay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.AfterpayClearpay; + export type Alipay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Alipay; + export type AllowRedisplay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.AllowRedisplay; + export type Alma = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Alma; + export type AmazonPay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.AmazonPay; + export type AuBecsDebit = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.BacsDebit; + export type Bancontact = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Bancontact; + export type Billie = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Billie; + export type BillingDetails = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.BillingDetails; + export type Bizum = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Bizum; + export type Blik = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Blik; + export type Boleto = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Boleto; + export type Cashapp = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Cashapp; + export type Crypto = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Crypto; + export type CustomerBalance = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.CustomerBalance; + export type Eps = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Eps; + export type Fpx = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Fpx; + export type Giropay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Giropay; + export type Gopay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Gopay; + export type Grabpay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Grabpay; + export type IdBankTransfer = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.IdBankTransfer; + export type Ideal = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Ideal; + export type InteracPresent = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.InteracPresent; + export type KakaoPay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.KakaoPay; + export type Klarna = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Klarna; + export type Konbini = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Konbini; + export type KrCard = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.KrCard; + export type Link = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Link; + export type MbWay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.MbWay; + export type Mobilepay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Mobilepay; + export type Multibanco = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Multibanco; + export type NaverPay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.NaverPay; + export type NzBankAccount = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.NzBankAccount; + export type Oxxo = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Oxxo; + export type P24 = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.P24; + export type PayByBank = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.PayByBank; + export type Payco = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Payco; + export type Paynow = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Paynow; + export type Paypal = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Paypal; + export type Paypay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Paypay; + export type Payto = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Payto; + export type Pix = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Pix; + export type Promptpay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Promptpay; + export type Qris = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Qris; + export type RadarOptions = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.RadarOptions; + export type Rechnung = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Rechnung; + export type RevolutPay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.RevolutPay; + export type SamsungPay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.SamsungPay; + export type Satispay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Satispay; + export type Scalapay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Scalapay; + export type SepaDebit = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.SepaDebit; + export type Shopeepay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Shopeepay; + export type Sofort = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Sofort; + export type StripeBalance = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.StripeBalance; + export type Sunbit = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Sunbit; + export type Swish = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Swish; + export type Twint = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Twint; + export type Type = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Type; + export type Upi = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Upi; + export type UsBankAccount = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.UsBankAccount; + export type WechatPay = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.WechatPay; + export type Zip = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Zip; + export namespace Eps { + export type Bank = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Eps.Bank; + } + export namespace Fpx { + export type AccountHolderType = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Fpx.AccountHolderType; + export type Bank = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Fpx.Bank; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Ideal.Bank; + } + export namespace Klarna { + export type Dob = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Klarna.Dob; + } + export namespace NaverPay { + export type Funding = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.NaverPay.Funding; + } + export namespace P24 { + export type Bank = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.P24.Bank; + } + export namespace Rechnung { + export type Dob = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Rechnung.Dob; + } + export namespace Sofort { + export type Country = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Sofort.Country; + } + export namespace Upi { + export type MandateOptions = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.PaymentIntentUpdateParams.PaymentMethodData.UsBankAccount.AccountType; + } + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.AcssDebit; + export type Affirm = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Affirm; + export type AfterpayClearpay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.AfterpayClearpay; + export type Alipay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Alipay; + export type Alma = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Alma; + export type AmazonPay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.AmazonPay; + export type AuBecsDebit = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit; + export type Bancontact = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Bancontact; + export type Billie = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Billie; + export type Bizum = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Bizum; + export type Blik = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Blik; + export type Boleto = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Boleto; + export type Card = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent; + export type Cashapp = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Cashapp; + export type Crypto = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Crypto; + export type CustomerBalance = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.CustomerBalance; + export type Eps = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Eps; + export type Fpx = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Fpx; + export type Giropay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Giropay; + export type Gopay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Gopay; + export type Grabpay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Grabpay; + export type IdBankTransfer = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.IdBankTransfer; + export type Ideal = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Ideal; + export type InteracPresent = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.InteracPresent; + export type KakaoPay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.KakaoPay; + export type Klarna = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna; + export type Konbini = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Konbini; + export type KrCard = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.KrCard; + export type Link = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Link; + export type MbWay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.MbWay; + export type Mobilepay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Mobilepay; + export type Multibanco = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Multibanco; + export type NaverPay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.NaverPay; + export type NzBankAccount = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.NzBankAccount; + export type Oxxo = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Oxxo; + export type P24 = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.P24; + export type PayByBank = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.PayByBank; + export type Payco = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Payco; + export type Paynow = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Paynow; + export type Paypal = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Paypal; + export type Paypay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Paypay; + export type Payto = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Payto; + export type Pix = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Pix; + export type Promptpay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Promptpay; + export type Qris = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Qris; + export type Rechnung = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Rechnung; + export type RevolutPay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.RevolutPay; + export type SamsungPay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.SamsungPay; + export type Satispay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Satispay; + export type Scalapay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Scalapay; + export type SepaDebit = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.SepaDebit; + export type Shopeepay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Shopeepay; + export type Sofort = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Sofort; + export type StripeBalance = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.StripeBalance; + export type Swish = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Swish; + export type Twint = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Twint; + export type Upi = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount; + export type WechatPay = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.WechatPay; + export type Zip = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Zip; + export namespace AcssDebit { + export type MandateOptions = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.AcssDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.AcssDebit.SetupFutureUsage; + export type VerificationMethod = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type PaymentSchedule = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.AcssDebit.MandateOptions.PaymentSchedule; + export type TransactionType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Alipay { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Alipay.SetupFutureUsage; + } + export namespace AmazonPay { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.AmazonPay.SetupFutureUsage; + } + export namespace AuBecsDebit { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.AuBecsDebit.SetupFutureUsage; + } + export namespace BacsDebit { + export type MandateOptions = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit.SetupFutureUsage; + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Bancontact.PreferredLanguage; + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Bancontact.SetupFutureUsage; + } + export namespace Boleto { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Boleto.SetupFutureUsage; + } + export namespace Card { + export type Installments = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments; + export type MandateOptions = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions; + export type Network = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.Network; + export type RequestDecrementalAuthorization = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.RequestDecrementalAuthorization; + export type RequestExtendedAuthorization = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.RequestExtendedAuthorization; + export type RequestIncrementalAuthorization = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.RequestIncrementalAuthorization; + export type RequestMulticapture = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.RequestMulticapture; + export type RequestOvercapture = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.RequestOvercapture; + export type RequestPartialAuthorization = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.RequestPartialAuthorization; + export type RequestThreeDSecure = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.RequestThreeDSecure; + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.SetupFutureUsage; + export type StatementDetails = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.StatementDetails; + export type ThreeDSecure = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure; + export namespace Installments { + export type Plan = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments.Plan; + export namespace Plan { + export type Type = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.Installments.Plan.Type; + } + } + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.AmountType; + export type Interval = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Interval; + } + export namespace ThreeDSecure { + export type AresTransStatus = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure.AresTransStatus; + export type ElectronicCommerceIndicator = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure.ElectronicCommerceIndicator; + export type ExemptionIndicator = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure.ExemptionIndicator; + export type NetworkOptions = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions; + export type Version = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure.Version; + export namespace NetworkOptions { + export type CartesBancaires = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions.CartesBancaires; + export namespace CartesBancaires { + export type CbAvalgo = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions.CartesBancaires.CbAvalgo; + } + } + } + } + export namespace CardPresent { + export type CaptureMethod = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.CaptureMethod; + export type Routing = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.Routing; + export namespace Routing { + export type RequestedPriority = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent.Routing.RequestedPriority; + } + } + export namespace Cashapp { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Cashapp.SetupFutureUsage; + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export type RequestedAddressType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.CustomerBalance.BankTransfer.RequestedAddressType; + export type Type = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.CustomerBalance.BankTransfer.Type; + } + } + export namespace Gopay { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Gopay.SetupFutureUsage; + } + export namespace Ideal { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Ideal.SetupFutureUsage; + } + export namespace KakaoPay { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.KakaoPay.SetupFutureUsage; + } + export namespace Klarna { + export type OnDemand = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.OnDemand; + export type PreferredLocale = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.PreferredLocale; + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SetupFutureUsage; + export type Subscription = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.Subscription; + export type SupplementaryPurchaseData = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData; + export namespace OnDemand { + export type PurchaseInterval = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.OnDemand.PurchaseInterval; + } + export namespace Subscription { + export type Interval = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.Subscription.Interval; + export type NextBilling = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.Subscription.NextBilling; + } + export namespace SupplementaryPurchaseData { + export type BusReservationDetail = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail; + export type EventReservationDetail = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail; + export type FerryReservationDetail = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail; + export type Insurance = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Insurance; + export type MarketplaceSeller = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller; + export type RoundTripReservationDetail = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail; + export type TrainReservationDetail = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail; + export type Voucher = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher; + export namespace BusReservationDetail { + export type Arrival = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Arrival; + export type Departure = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Departure; + export type Insurance = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Insurance; + export type Passenger = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Passenger; + export type TicketClass = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Insurance.InsuranceType; + } + } + export namespace EventReservationDetail { + export type Address = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Address; + export type EventType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.EventType; + export type Insurance = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Insurance; + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Insurance.InsuranceType; + } + } + export namespace FerryReservationDetail { + export type Arrival = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Arrival; + export type Departure = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Departure; + export type Insurance = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance; + export type Passenger = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Passenger; + export type TicketClass = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance.InsuranceType; + } + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Insurance.InsuranceType; + } + export namespace MarketplaceSeller { + export type MarketplaceSellerAddress = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.MarketplaceSellerAddress; + export type ProductCategory = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.ProductCategory; + export type SellerRating = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.SellerRating; + } + export namespace RoundTripReservationDetail { + export type Arrival = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Arrival; + export type Departure = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Departure; + export type Insurance = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Insurance; + export type Passenger = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Passenger; + export type TicketClass = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Insurance.InsuranceType; + } + } + export namespace TrainReservationDetail { + export type Arrival = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Arrival; + export type Departure = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Departure; + export type Insurance = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Insurance; + export type Passenger = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Passenger; + export type TicketClass = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Insurance.InsuranceType; + } + } + export namespace Voucher { + export type VoucherType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType; + } + } + } + export namespace KrCard { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.KrCard.SetupFutureUsage; + } + export namespace Link { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Link.SetupFutureUsage; + } + export namespace NaverPay { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.NaverPay.SetupFutureUsage; + } + export namespace NzBankAccount { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.NzBankAccount.SetupFutureUsage; + } + export namespace Paypal { + export type LineItem = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Paypal.LineItem; + export type PreferredLocale = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Paypal.PreferredLocale; + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Paypal.SetupFutureUsage; + export namespace LineItem { + export type Category = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Paypal.LineItem.Category; + export type Tax = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Paypal.LineItem.Tax; + export namespace Tax { + export type Behavior = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Paypal.LineItem.Tax.Behavior; + } + } + } + export namespace Payto { + export type MandateOptions = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Payto.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule; + export type Purpose = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type AmountIncludesIof = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Pix.AmountIncludesIof; + export type MandateOptions = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Pix.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Pix.SetupFutureUsage; + export namespace MandateOptions { + export type AmountIncludesIof = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Pix.MandateOptions.AmountIncludesIof; + export type AmountType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Pix.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Pix.MandateOptions.PaymentSchedule; + } + } + export namespace RevolutPay { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.RevolutPay.SetupFutureUsage; + } + export namespace SepaDebit { + export type MandateOptions = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.SepaDebit.SetupFutureUsage; + } + export namespace Sofort { + export type PreferredLanguage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Sofort.PreferredLanguage; + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Sofort.SetupFutureUsage; + } + export namespace StripeBalance { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.StripeBalance.SetupFutureUsage; + } + export namespace Twint { + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Twint.SetupFutureUsage; + } + export namespace Upi { + export type MandateOptions = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Upi.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Upi.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type MandateOptions = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.MandateOptions; + export type Networks = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.Networks; + export type SetupFutureUsage = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.SetupFutureUsage; + export type TransactionPurpose = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.TransactionPurpose; + export type VerificationMethod = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type ManualEntry = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry; + export type Permission = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + export namespace ManualEntry { + export type Mode = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry.Mode; + } + } + export namespace Networks { + export type Requested = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.UsBankAccount.Networks.Requested; + } + } + export namespace WechatPay { + export type Client = Stripe_.PaymentIntentUpdateParams.PaymentMethodOptions.WechatPay.Client; + } + } + export namespace TransferData { + export type PaymentData = Stripe_.PaymentIntentUpdateParams.TransferData.PaymentData; + } + } + export namespace PaymentIntentCancelParams { + export type CancellationReason = Stripe_.PaymentIntentCancelParams.CancellationReason; + } + export namespace PaymentIntentCaptureParams { + export type AmountDetails = Stripe_.PaymentIntentCaptureParams.AmountDetails; + export type Hooks = Stripe_.PaymentIntentCaptureParams.Hooks; + export type PaymentDetails = Stripe_.PaymentIntentCaptureParams.PaymentDetails; + export type TransferData = Stripe_.PaymentIntentCaptureParams.TransferData; + export namespace AmountDetails { + export type LineItem = Stripe_.PaymentIntentCaptureParams.AmountDetails.LineItem; + export type Shipping = Stripe_.PaymentIntentCaptureParams.AmountDetails.Shipping; + export type Surcharge = Stripe_.PaymentIntentCaptureParams.AmountDetails.Surcharge; + export type Tax = Stripe_.PaymentIntentCaptureParams.AmountDetails.Tax; + export namespace LineItem { + export type PaymentMethodOptions = Stripe_.PaymentIntentCaptureParams.AmountDetails.LineItem.PaymentMethodOptions; + export type Tax = Stripe_.PaymentIntentCaptureParams.AmountDetails.LineItem.Tax; + export namespace PaymentMethodOptions { + export type Card = Stripe_.PaymentIntentCaptureParams.AmountDetails.LineItem.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.PaymentIntentCaptureParams.AmountDetails.LineItem.PaymentMethodOptions.CardPresent; + export type Klarna = Stripe_.PaymentIntentCaptureParams.AmountDetails.LineItem.PaymentMethodOptions.Klarna; + export type Paypal = Stripe_.PaymentIntentCaptureParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal; + export namespace Paypal { + export type Category = Stripe_.PaymentIntentCaptureParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal.Category; + } + } + } + export namespace Surcharge { + export type EnforceValidation = Stripe_.PaymentIntentCaptureParams.AmountDetails.Surcharge.EnforceValidation; + } + } + export namespace Hooks { + export type Inputs = Stripe_.PaymentIntentCaptureParams.Hooks.Inputs; + export namespace Inputs { + export type Tax = Stripe_.PaymentIntentCaptureParams.Hooks.Inputs.Tax; + } + } + export namespace PaymentDetails { + export type CarRental = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRental; + export type CarRentalDatum = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum; + export type EventDetails = Stripe_.PaymentIntentCaptureParams.PaymentDetails.EventDetails; + export type Flight = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Flight; + export type FlightDatum = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum; + export type Lodging = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Lodging; + export type LodgingDatum = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum; + export type Subscription = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Subscription; + export namespace CarRental { + export type Affiliate = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRental.Affiliate; + export type Delivery = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRental.Delivery; + export type Distance = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRental.Distance; + export type Driver = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRental.Driver; + export type ExtraCharge = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRental.ExtraCharge; + export type RateInterval = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRental.RateInterval; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRental.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRental.Delivery.Recipient; + } + export namespace Distance { + export type Unit = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRental.Distance.Unit; + } + } + export namespace CarRentalDatum { + export type Affiliate = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Affiliate; + export type Distance = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Distance; + export type Driver = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Driver; + export type DropOff = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.DropOff; + export type Insurance = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Insurance; + export type Pickup = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Pickup; + export type Total = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Total; + export type Vehicle = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Vehicle; + export namespace Distance { + export type Unit = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Distance.Unit; + } + export namespace Driver { + export type DateOfBirth = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Driver.DateOfBirth; + } + export namespace DropOff { + export type Address = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.DropOff.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Insurance.InsuranceType; + } + export namespace Pickup { + export type Address = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Pickup.Address; + } + export namespace Total { + export type Discounts = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Total.ExtraCharge; + export type RateUnit = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Total.RateUnit; + export type Tax = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Total.Tax.Tax; + } + } + export namespace Vehicle { + export type Type = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Vehicle.Type; + export type VehicleClass = Stripe_.PaymentIntentCaptureParams.PaymentDetails.CarRentalDatum.Vehicle.VehicleClass; + } + } + export namespace EventDetails { + export type Affiliate = Stripe_.PaymentIntentCaptureParams.PaymentDetails.EventDetails.Affiliate; + export type Delivery = Stripe_.PaymentIntentCaptureParams.PaymentDetails.EventDetails.Delivery; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentCaptureParams.PaymentDetails.EventDetails.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentCaptureParams.PaymentDetails.EventDetails.Delivery.Recipient; + } + } + export namespace Flight { + export type Affiliate = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Flight.Affiliate; + export type Delivery = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Flight.Delivery; + export type Passenger = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Flight.Passenger; + export type Segment = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Flight.Segment; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Flight.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Flight.Delivery.Recipient; + } + export namespace Segment { + export type ServiceClass = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Flight.Segment.ServiceClass; + } + } + export namespace FlightDatum { + export type Affiliate = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Affiliate; + export type Insurance = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Insurance; + export type Passenger = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Passenger; + export type Segment = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Segment; + export type Total = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Total; + export type TransactionType = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.TransactionType; + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Insurance.InsuranceType; + } + export namespace Segment { + export type Arrival = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Segment.Arrival; + export type Departure = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Segment.Departure; + export type ServiceClass = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Segment.ServiceClass; + } + export namespace Total { + export type CreditReason = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Total.CreditReason; + export type Discounts = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Total.ExtraCharge; + export type Tax = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntentCaptureParams.PaymentDetails.FlightDatum.Total.Tax.Tax; + } + } + } + export namespace Lodging { + export type Affiliate = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Lodging.Affiliate; + export type Category = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Lodging.Category; + export type Delivery = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Lodging.Delivery; + export type ExtraCharge = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Lodging.ExtraCharge; + export type Passenger = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Lodging.Passenger; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Lodging.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Lodging.Delivery.Recipient; + } + } + export namespace LodgingDatum { + export type Accommodation = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Accommodation; + export type Affiliate = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Affiliate; + export type Guest = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Guest; + export type Host = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Host; + export type Insurance = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Insurance; + export type Total = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Total; + export namespace Accommodation { + export type AccommodationType = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Accommodation.AccommodationType; + } + export namespace Host { + export type Address = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Host.Address; + export type HostType = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Host.HostType; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Insurance.InsuranceType; + } + export namespace Total { + export type Discounts = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Total.ExtraCharge; + export type Tax = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntentCaptureParams.PaymentDetails.LodgingDatum.Total.Tax.Tax; + } + } + } + export namespace Subscription { + export type Affiliate = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Subscription.Affiliate; + export type BillingInterval = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Subscription.BillingInterval; + export namespace BillingInterval { + export type Interval = Stripe_.PaymentIntentCaptureParams.PaymentDetails.Subscription.BillingInterval.Interval; + } + } + } + } + export namespace PaymentIntentConfirmParams { + export type AmountDetails = Stripe_.PaymentIntentConfirmParams.AmountDetails; + export type CaptureMethod = Stripe_.PaymentIntentConfirmParams.CaptureMethod; + export type ExcludedPaymentMethodType = Stripe_.PaymentIntentConfirmParams.ExcludedPaymentMethodType; + export type Hooks = Stripe_.PaymentIntentConfirmParams.Hooks; + export type MandateData = Stripe_.PaymentIntentConfirmParams.MandateData; + export type OffSession = Stripe_.PaymentIntentConfirmParams.OffSession; + export type PaymentDetails = Stripe_.PaymentIntentConfirmParams.PaymentDetails; + export type PaymentMethodData = Stripe_.PaymentIntentConfirmParams.PaymentMethodData; + export type PaymentMethodOptions = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions; + export type RadarOptions = Stripe_.PaymentIntentConfirmParams.RadarOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.SetupFutureUsage; + export type Shipping = Stripe_.PaymentIntentConfirmParams.Shipping; + export namespace AmountDetails { + export type LineItem = Stripe_.PaymentIntentConfirmParams.AmountDetails.LineItem; + export type Shipping = Stripe_.PaymentIntentConfirmParams.AmountDetails.Shipping; + export type Surcharge = Stripe_.PaymentIntentConfirmParams.AmountDetails.Surcharge; + export type Tax = Stripe_.PaymentIntentConfirmParams.AmountDetails.Tax; + export namespace LineItem { + export type PaymentMethodOptions = Stripe_.PaymentIntentConfirmParams.AmountDetails.LineItem.PaymentMethodOptions; + export type Tax = Stripe_.PaymentIntentConfirmParams.AmountDetails.LineItem.Tax; + export namespace PaymentMethodOptions { + export type Card = Stripe_.PaymentIntentConfirmParams.AmountDetails.LineItem.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.PaymentIntentConfirmParams.AmountDetails.LineItem.PaymentMethodOptions.CardPresent; + export type Klarna = Stripe_.PaymentIntentConfirmParams.AmountDetails.LineItem.PaymentMethodOptions.Klarna; + export type Paypal = Stripe_.PaymentIntentConfirmParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal; + export namespace Paypal { + export type Category = Stripe_.PaymentIntentConfirmParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal.Category; + } + } + } + export namespace Surcharge { + export type EnforceValidation = Stripe_.PaymentIntentConfirmParams.AmountDetails.Surcharge.EnforceValidation; + } + } + export namespace Hooks { + export type Inputs = Stripe_.PaymentIntentConfirmParams.Hooks.Inputs; + export namespace Inputs { + export type Tax = Stripe_.PaymentIntentConfirmParams.Hooks.Inputs.Tax; + } + } + export namespace MandateData { + export type CustomerAcceptance = Stripe_.PaymentIntentConfirmParams.MandateData.CustomerAcceptance; + export namespace CustomerAcceptance { + export type Offline = Stripe_.PaymentIntentConfirmParams.MandateData.CustomerAcceptance.Offline; + export type Online = Stripe_.PaymentIntentConfirmParams.MandateData.CustomerAcceptance.Online; + export type Type = Stripe_.PaymentIntentConfirmParams.MandateData.CustomerAcceptance.Type; + } + } + export namespace PaymentDetails { + export type CarRental = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRental; + export type CarRentalDatum = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum; + export type EventDetails = Stripe_.PaymentIntentConfirmParams.PaymentDetails.EventDetails; + export type Flight = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Flight; + export type FlightDatum = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum; + export type Lodging = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Lodging; + export type LodgingDatum = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum; + export type Subscription = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Subscription; + export namespace CarRental { + export type Affiliate = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRental.Affiliate; + export type Delivery = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRental.Delivery; + export type Distance = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRental.Distance; + export type Driver = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRental.Driver; + export type ExtraCharge = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRental.ExtraCharge; + export type RateInterval = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRental.RateInterval; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRental.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRental.Delivery.Recipient; + } + export namespace Distance { + export type Unit = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRental.Distance.Unit; + } + } + export namespace CarRentalDatum { + export type Affiliate = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Affiliate; + export type Distance = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Distance; + export type Driver = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Driver; + export type DropOff = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.DropOff; + export type Insurance = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Insurance; + export type Pickup = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Pickup; + export type Total = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Total; + export type Vehicle = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Vehicle; + export namespace Distance { + export type Unit = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Distance.Unit; + } + export namespace Driver { + export type DateOfBirth = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Driver.DateOfBirth; + } + export namespace DropOff { + export type Address = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.DropOff.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Insurance.InsuranceType; + } + export namespace Pickup { + export type Address = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Pickup.Address; + } + export namespace Total { + export type Discounts = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Total.ExtraCharge; + export type RateUnit = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Total.RateUnit; + export type Tax = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Total.Tax.Tax; + } + } + export namespace Vehicle { + export type Type = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Vehicle.Type; + export type VehicleClass = Stripe_.PaymentIntentConfirmParams.PaymentDetails.CarRentalDatum.Vehicle.VehicleClass; + } + } + export namespace EventDetails { + export type Affiliate = Stripe_.PaymentIntentConfirmParams.PaymentDetails.EventDetails.Affiliate; + export type Delivery = Stripe_.PaymentIntentConfirmParams.PaymentDetails.EventDetails.Delivery; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentConfirmParams.PaymentDetails.EventDetails.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentConfirmParams.PaymentDetails.EventDetails.Delivery.Recipient; + } + } + export namespace Flight { + export type Affiliate = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Flight.Affiliate; + export type Delivery = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Flight.Delivery; + export type Passenger = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Flight.Passenger; + export type Segment = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Flight.Segment; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Flight.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Flight.Delivery.Recipient; + } + export namespace Segment { + export type ServiceClass = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Flight.Segment.ServiceClass; + } + } + export namespace FlightDatum { + export type Affiliate = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Affiliate; + export type Insurance = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Insurance; + export type Passenger = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Passenger; + export type Segment = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Segment; + export type Total = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Total; + export type TransactionType = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.TransactionType; + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Insurance.InsuranceType; + } + export namespace Segment { + export type Arrival = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Segment.Arrival; + export type Departure = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Segment.Departure; + export type ServiceClass = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Segment.ServiceClass; + } + export namespace Total { + export type CreditReason = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Total.CreditReason; + export type Discounts = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Total.ExtraCharge; + export type Tax = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntentConfirmParams.PaymentDetails.FlightDatum.Total.Tax.Tax; + } + } + } + export namespace Lodging { + export type Affiliate = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Lodging.Affiliate; + export type Category = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Lodging.Category; + export type Delivery = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Lodging.Delivery; + export type ExtraCharge = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Lodging.ExtraCharge; + export type Passenger = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Lodging.Passenger; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Lodging.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Lodging.Delivery.Recipient; + } + } + export namespace LodgingDatum { + export type Accommodation = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Accommodation; + export type Affiliate = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Affiliate; + export type Guest = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Guest; + export type Host = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Host; + export type Insurance = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Insurance; + export type Total = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Total; + export namespace Accommodation { + export type AccommodationType = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Accommodation.AccommodationType; + } + export namespace Host { + export type Address = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Host.Address; + export type HostType = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Host.HostType; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Insurance.InsuranceType; + } + export namespace Total { + export type Discounts = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Total.ExtraCharge; + export type Tax = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntentConfirmParams.PaymentDetails.LodgingDatum.Total.Tax.Tax; + } + } + } + export namespace Subscription { + export type Affiliate = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Subscription.Affiliate; + export type BillingInterval = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Subscription.BillingInterval; + export namespace BillingInterval { + export type Interval = Stripe_.PaymentIntentConfirmParams.PaymentDetails.Subscription.BillingInterval.Interval; + } + } + } + export namespace PaymentMethodData { + export type AcssDebit = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.AcssDebit; + export type Affirm = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Affirm; + export type AfterpayClearpay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.AfterpayClearpay; + export type Alipay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Alipay; + export type AllowRedisplay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.AllowRedisplay; + export type Alma = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Alma; + export type AmazonPay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.AmazonPay; + export type AuBecsDebit = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.BacsDebit; + export type Bancontact = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Bancontact; + export type Billie = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Billie; + export type BillingDetails = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.BillingDetails; + export type Bizum = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Bizum; + export type Blik = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Blik; + export type Boleto = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Boleto; + export type Cashapp = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Cashapp; + export type Crypto = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Crypto; + export type CustomerBalance = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.CustomerBalance; + export type Eps = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Eps; + export type Fpx = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Fpx; + export type Giropay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Giropay; + export type Gopay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Gopay; + export type Grabpay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Grabpay; + export type IdBankTransfer = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.IdBankTransfer; + export type Ideal = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Ideal; + export type InteracPresent = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.InteracPresent; + export type KakaoPay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.KakaoPay; + export type Klarna = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Klarna; + export type Konbini = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Konbini; + export type KrCard = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.KrCard; + export type Link = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Link; + export type MbWay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.MbWay; + export type Mobilepay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Mobilepay; + export type Multibanco = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Multibanco; + export type NaverPay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.NaverPay; + export type NzBankAccount = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.NzBankAccount; + export type Oxxo = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Oxxo; + export type P24 = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.P24; + export type PayByBank = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.PayByBank; + export type Payco = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Payco; + export type Paynow = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Paynow; + export type Paypal = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Paypal; + export type Paypay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Paypay; + export type Payto = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Payto; + export type Pix = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Pix; + export type Promptpay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Promptpay; + export type Qris = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Qris; + export type RadarOptions = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.RadarOptions; + export type Rechnung = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Rechnung; + export type RevolutPay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.RevolutPay; + export type SamsungPay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.SamsungPay; + export type Satispay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Satispay; + export type Scalapay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Scalapay; + export type SepaDebit = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.SepaDebit; + export type Shopeepay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Shopeepay; + export type Sofort = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Sofort; + export type StripeBalance = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.StripeBalance; + export type Sunbit = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Sunbit; + export type Swish = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Swish; + export type Twint = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Twint; + export type Type = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Type; + export type Upi = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Upi; + export type UsBankAccount = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.UsBankAccount; + export type WechatPay = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.WechatPay; + export type Zip = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Zip; + export namespace Eps { + export type Bank = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Eps.Bank; + } + export namespace Fpx { + export type AccountHolderType = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Fpx.AccountHolderType; + export type Bank = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Fpx.Bank; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Ideal.Bank; + } + export namespace Klarna { + export type Dob = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Klarna.Dob; + } + export namespace NaverPay { + export type Funding = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.NaverPay.Funding; + } + export namespace P24 { + export type Bank = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.P24.Bank; + } + export namespace Rechnung { + export type Dob = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Rechnung.Dob; + } + export namespace Sofort { + export type Country = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Sofort.Country; + } + export namespace Upi { + export type MandateOptions = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.PaymentIntentConfirmParams.PaymentMethodData.UsBankAccount.AccountType; + } + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.AcssDebit; + export type Affirm = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Affirm; + export type AfterpayClearpay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.AfterpayClearpay; + export type Alipay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Alipay; + export type Alma = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Alma; + export type AmazonPay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.AmazonPay; + export type AuBecsDebit = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit; + export type Bancontact = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Bancontact; + export type Billie = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Billie; + export type Bizum = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Bizum; + export type Blik = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Blik; + export type Boleto = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Boleto; + export type Card = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent; + export type Cashapp = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Cashapp; + export type Crypto = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Crypto; + export type CustomerBalance = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.CustomerBalance; + export type Eps = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Eps; + export type Fpx = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Fpx; + export type Giropay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Giropay; + export type Gopay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Gopay; + export type Grabpay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Grabpay; + export type IdBankTransfer = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.IdBankTransfer; + export type Ideal = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Ideal; + export type InteracPresent = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.InteracPresent; + export type KakaoPay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.KakaoPay; + export type Klarna = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna; + export type Konbini = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Konbini; + export type KrCard = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.KrCard; + export type Link = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Link; + export type MbWay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.MbWay; + export type Mobilepay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Mobilepay; + export type Multibanco = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Multibanco; + export type NaverPay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.NaverPay; + export type NzBankAccount = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.NzBankAccount; + export type Oxxo = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Oxxo; + export type P24 = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.P24; + export type PayByBank = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.PayByBank; + export type Payco = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Payco; + export type Paynow = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Paynow; + export type Paypal = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Paypal; + export type Paypay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Paypay; + export type Payto = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Payto; + export type Pix = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Pix; + export type Promptpay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Promptpay; + export type Qris = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Qris; + export type Rechnung = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Rechnung; + export type RevolutPay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.RevolutPay; + export type SamsungPay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.SamsungPay; + export type Satispay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Satispay; + export type Scalapay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Scalapay; + export type SepaDebit = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.SepaDebit; + export type Shopeepay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Shopeepay; + export type Sofort = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Sofort; + export type StripeBalance = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.StripeBalance; + export type Swish = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Swish; + export type Twint = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Twint; + export type Upi = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount; + export type WechatPay = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.WechatPay; + export type Zip = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Zip; + export namespace AcssDebit { + export type MandateOptions = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.AcssDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.AcssDebit.SetupFutureUsage; + export type VerificationMethod = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type PaymentSchedule = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.AcssDebit.MandateOptions.PaymentSchedule; + export type TransactionType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Alipay { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Alipay.SetupFutureUsage; + } + export namespace AmazonPay { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.AmazonPay.SetupFutureUsage; + } + export namespace AuBecsDebit { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.AuBecsDebit.SetupFutureUsage; + } + export namespace BacsDebit { + export type MandateOptions = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit.SetupFutureUsage; + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Bancontact.PreferredLanguage; + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Bancontact.SetupFutureUsage; + } + export namespace Boleto { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Boleto.SetupFutureUsage; + } + export namespace Card { + export type Installments = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.Installments; + export type MandateOptions = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.MandateOptions; + export type Network = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.Network; + export type RequestDecrementalAuthorization = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.RequestDecrementalAuthorization; + export type RequestExtendedAuthorization = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.RequestExtendedAuthorization; + export type RequestIncrementalAuthorization = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.RequestIncrementalAuthorization; + export type RequestMulticapture = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.RequestMulticapture; + export type RequestOvercapture = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.RequestOvercapture; + export type RequestPartialAuthorization = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.RequestPartialAuthorization; + export type RequestThreeDSecure = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.RequestThreeDSecure; + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.SetupFutureUsage; + export type StatementDetails = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.StatementDetails; + export type ThreeDSecure = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure; + export namespace Installments { + export type Plan = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.Installments.Plan; + export namespace Plan { + export type Type = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.Installments.Plan.Type; + } + } + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.MandateOptions.AmountType; + export type Interval = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.MandateOptions.Interval; + } + export namespace ThreeDSecure { + export type AresTransStatus = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure.AresTransStatus; + export type ElectronicCommerceIndicator = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure.ElectronicCommerceIndicator; + export type ExemptionIndicator = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure.ExemptionIndicator; + export type NetworkOptions = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions; + export type Version = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure.Version; + export namespace NetworkOptions { + export type CartesBancaires = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions.CartesBancaires; + export namespace CartesBancaires { + export type CbAvalgo = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions.CartesBancaires.CbAvalgo; + } + } + } + } + export namespace CardPresent { + export type CaptureMethod = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.CaptureMethod; + export type Routing = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.Routing; + export namespace Routing { + export type RequestedPriority = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent.Routing.RequestedPriority; + } + } + export namespace Cashapp { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Cashapp.SetupFutureUsage; + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export type RequestedAddressType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.CustomerBalance.BankTransfer.RequestedAddressType; + export type Type = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.CustomerBalance.BankTransfer.Type; + } + } + export namespace Gopay { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Gopay.SetupFutureUsage; + } + export namespace Ideal { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Ideal.SetupFutureUsage; + } + export namespace KakaoPay { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.KakaoPay.SetupFutureUsage; + } + export namespace Klarna { + export type OnDemand = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.OnDemand; + export type PreferredLocale = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.PreferredLocale; + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SetupFutureUsage; + export type Subscription = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.Subscription; + export type SupplementaryPurchaseData = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData; + export namespace OnDemand { + export type PurchaseInterval = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.OnDemand.PurchaseInterval; + } + export namespace Subscription { + export type Interval = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.Subscription.Interval; + export type NextBilling = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.Subscription.NextBilling; + } + export namespace SupplementaryPurchaseData { + export type BusReservationDetail = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail; + export type EventReservationDetail = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail; + export type FerryReservationDetail = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail; + export type Insurance = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Insurance; + export type MarketplaceSeller = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller; + export type RoundTripReservationDetail = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail; + export type TrainReservationDetail = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail; + export type Voucher = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher; + export namespace BusReservationDetail { + export type Arrival = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Arrival; + export type Departure = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Departure; + export type Insurance = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Insurance; + export type Passenger = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Passenger; + export type TicketClass = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.BusReservationDetail.Insurance.InsuranceType; + } + } + export namespace EventReservationDetail { + export type Address = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Address; + export type EventType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.EventType; + export type Insurance = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Insurance; + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.EventReservationDetail.Insurance.InsuranceType; + } + } + export namespace FerryReservationDetail { + export type Arrival = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Arrival; + export type Departure = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Departure; + export type Insurance = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance; + export type Passenger = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Passenger; + export type TicketClass = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.FerryReservationDetail.Insurance.InsuranceType; + } + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Insurance.InsuranceType; + } + export namespace MarketplaceSeller { + export type MarketplaceSellerAddress = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.MarketplaceSellerAddress; + export type ProductCategory = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.ProductCategory; + export type SellerRating = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.MarketplaceSeller.SellerRating; + } + export namespace RoundTripReservationDetail { + export type Arrival = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Arrival; + export type Departure = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Departure; + export type Insurance = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Insurance; + export type Passenger = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Passenger; + export type TicketClass = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.RoundTripReservationDetail.Insurance.InsuranceType; + } + } + export namespace TrainReservationDetail { + export type Arrival = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Arrival; + export type Departure = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Departure; + export type Insurance = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Insurance; + export type Passenger = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Passenger; + export type TicketClass = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.TicketClass; + export namespace Arrival { + export type Address = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Arrival.Address; + } + export namespace Departure { + export type Address = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Departure.Address; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.TrainReservationDetail.Insurance.InsuranceType; + } + } + export namespace Voucher { + export type VoucherType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Klarna.SupplementaryPurchaseData.Voucher.VoucherType; + } + } + } + export namespace KrCard { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.KrCard.SetupFutureUsage; + } + export namespace Link { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Link.SetupFutureUsage; + } + export namespace NaverPay { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.NaverPay.SetupFutureUsage; + } + export namespace NzBankAccount { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.NzBankAccount.SetupFutureUsage; + } + export namespace Paypal { + export type LineItem = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem; + export type PreferredLocale = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.PreferredLocale; + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.SetupFutureUsage; + export namespace LineItem { + export type Category = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.Category; + export type Tax = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.Tax; + export namespace Tax { + export type Behavior = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Paypal.LineItem.Tax.Behavior; + } + } + } + export namespace Payto { + export type MandateOptions = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Payto.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule; + export type Purpose = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type AmountIncludesIof = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Pix.AmountIncludesIof; + export type MandateOptions = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Pix.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Pix.SetupFutureUsage; + export namespace MandateOptions { + export type AmountIncludesIof = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Pix.MandateOptions.AmountIncludesIof; + export type AmountType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Pix.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Pix.MandateOptions.PaymentSchedule; + } + } + export namespace RevolutPay { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.RevolutPay.SetupFutureUsage; + } + export namespace SepaDebit { + export type MandateOptions = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.SepaDebit.SetupFutureUsage; + } + export namespace Sofort { + export type PreferredLanguage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Sofort.PreferredLanguage; + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Sofort.SetupFutureUsage; + } + export namespace StripeBalance { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.StripeBalance.SetupFutureUsage; + } + export namespace Twint { + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Twint.SetupFutureUsage; + } + export namespace Upi { + export type MandateOptions = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Upi.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Upi.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type MandateOptions = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.MandateOptions; + export type Networks = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.Networks; + export type SetupFutureUsage = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.SetupFutureUsage; + export type TransactionPurpose = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.TransactionPurpose; + export type VerificationMethod = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type ManualEntry = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry; + export type Permission = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + export namespace ManualEntry { + export type Mode = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry.Mode; + } + } + export namespace Networks { + export type Requested = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.UsBankAccount.Networks.Requested; + } + } + export namespace WechatPay { + export type Client = Stripe_.PaymentIntentConfirmParams.PaymentMethodOptions.WechatPay.Client; + } + } + } + export namespace PaymentIntentDecrementAuthorizationParams { + export type AmountDetails = Stripe_.PaymentIntentDecrementAuthorizationParams.AmountDetails; + export type Hooks = Stripe_.PaymentIntentDecrementAuthorizationParams.Hooks; + export type PaymentDetails = Stripe_.PaymentIntentDecrementAuthorizationParams.PaymentDetails; + export type TransferData = Stripe_.PaymentIntentDecrementAuthorizationParams.TransferData; + export namespace AmountDetails { + export type LineItem = Stripe_.PaymentIntentDecrementAuthorizationParams.AmountDetails.LineItem; + export type Shipping = Stripe_.PaymentIntentDecrementAuthorizationParams.AmountDetails.Shipping; + export type Surcharge = Stripe_.PaymentIntentDecrementAuthorizationParams.AmountDetails.Surcharge; + export type Tax = Stripe_.PaymentIntentDecrementAuthorizationParams.AmountDetails.Tax; + export namespace LineItem { + export type PaymentMethodOptions = Stripe_.PaymentIntentDecrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions; + export type Tax = Stripe_.PaymentIntentDecrementAuthorizationParams.AmountDetails.LineItem.Tax; + export namespace PaymentMethodOptions { + export type Card = Stripe_.PaymentIntentDecrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.PaymentIntentDecrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions.CardPresent; + export type Klarna = Stripe_.PaymentIntentDecrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions.Klarna; + export type Paypal = Stripe_.PaymentIntentDecrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal; + export namespace Paypal { + export type Category = Stripe_.PaymentIntentDecrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal.Category; + } + } + } + export namespace Surcharge { + export type EnforceValidation = Stripe_.PaymentIntentDecrementAuthorizationParams.AmountDetails.Surcharge.EnforceValidation; + } + } + export namespace Hooks { + export type Inputs = Stripe_.PaymentIntentDecrementAuthorizationParams.Hooks.Inputs; + export namespace Inputs { + export type Tax = Stripe_.PaymentIntentDecrementAuthorizationParams.Hooks.Inputs.Tax; + } + } + } + export namespace PaymentIntentIncrementAuthorizationParams { + export type AmountDetails = Stripe_.PaymentIntentIncrementAuthorizationParams.AmountDetails; + export type Hooks = Stripe_.PaymentIntentIncrementAuthorizationParams.Hooks; + export type PaymentDetails = Stripe_.PaymentIntentIncrementAuthorizationParams.PaymentDetails; + export type PaymentMethodOptions = Stripe_.PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions; + export type TransferData = Stripe_.PaymentIntentIncrementAuthorizationParams.TransferData; + export namespace AmountDetails { + export type LineItem = Stripe_.PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem; + export type Shipping = Stripe_.PaymentIntentIncrementAuthorizationParams.AmountDetails.Shipping; + export type Surcharge = Stripe_.PaymentIntentIncrementAuthorizationParams.AmountDetails.Surcharge; + export type Tax = Stripe_.PaymentIntentIncrementAuthorizationParams.AmountDetails.Tax; + export namespace LineItem { + export type PaymentMethodOptions = Stripe_.PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions; + export type Tax = Stripe_.PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.Tax; + export namespace PaymentMethodOptions { + export type Card = Stripe_.PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions.CardPresent; + export type Klarna = Stripe_.PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions.Klarna; + export type Paypal = Stripe_.PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal; + export namespace Paypal { + export type Category = Stripe_.PaymentIntentIncrementAuthorizationParams.AmountDetails.LineItem.PaymentMethodOptions.Paypal.Category; + } + } + } + export namespace Surcharge { + export type EnforceValidation = Stripe_.PaymentIntentIncrementAuthorizationParams.AmountDetails.Surcharge.EnforceValidation; + } + } + export namespace Hooks { + export type Inputs = Stripe_.PaymentIntentIncrementAuthorizationParams.Hooks.Inputs; + export namespace Inputs { + export type Tax = Stripe_.PaymentIntentIncrementAuthorizationParams.Hooks.Inputs.Tax; + } + } + export namespace PaymentMethodOptions { + export type Card = Stripe_.PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card; + export namespace Card { + export type RequestPartialAuthorization = Stripe_.PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card.RequestPartialAuthorization; + } + } + } + export namespace PaymentIntentTriggerActionParams { + export type Type = Stripe_.PaymentIntentTriggerActionParams.Type; + export type ScanQrCode = Stripe_.PaymentIntentTriggerActionParams.ScanQrCode; + export namespace ScanQrCode { + export type Result = Stripe_.PaymentIntentTriggerActionParams.ScanQrCode.Result; + } + } + export namespace PaymentIntent { + export type AmountDetails = Stripe_.PaymentIntent.AmountDetails; + export type AsyncWorkflows = Stripe_.PaymentIntent.AsyncWorkflows; + export type AutomaticPaymentMethods = Stripe_.PaymentIntent.AutomaticPaymentMethods; + export type CancellationReason = Stripe_.PaymentIntent.CancellationReason; + export type CaptureMethod = Stripe_.PaymentIntent.CaptureMethod; + export type ConfirmationMethod = Stripe_.PaymentIntent.ConfirmationMethod; + export type ExcludedPaymentMethodType = Stripe_.PaymentIntent.ExcludedPaymentMethodType; + export type Hooks = Stripe_.PaymentIntent.Hooks; + export type LastPaymentError = Stripe_.PaymentIntent.LastPaymentError; + export type ManagedPayments = Stripe_.PaymentIntent.ManagedPayments; + export type NextAction = Stripe_.PaymentIntent.NextAction; + export type PaymentDetails = Stripe_.PaymentIntent.PaymentDetails; + export type PaymentMethodConfigurationDetails = Stripe_.PaymentIntent.PaymentMethodConfigurationDetails; + export type PaymentMethodOptions = Stripe_.PaymentIntent.PaymentMethodOptions; + export type PresentmentDetails = Stripe_.PaymentIntent.PresentmentDetails; + export type Processing = Stripe_.PaymentIntent.Processing; + export type SecretKeyConfirmation = Stripe_.PaymentIntent.SecretKeyConfirmation; + export type SetupFutureUsage = Stripe_.PaymentIntent.SetupFutureUsage; + export type Shipping = Stripe_.PaymentIntent.Shipping; + export type Status = Stripe_.PaymentIntent.Status; + export type TransferData = Stripe_.PaymentIntent.TransferData; + export namespace AmountDetails { + export type Error = Stripe_.PaymentIntent.AmountDetails.Error; + export type Shipping = Stripe_.PaymentIntent.AmountDetails.Shipping; + export type Surcharge = Stripe_.PaymentIntent.AmountDetails.Surcharge; + export type Tax = Stripe_.PaymentIntent.AmountDetails.Tax; + export type Tip = Stripe_.PaymentIntent.AmountDetails.Tip; + export namespace Error { + export type Code = Stripe_.PaymentIntent.AmountDetails.Error.Code; + } + export namespace Surcharge { + export type EnforceValidation = Stripe_.PaymentIntent.AmountDetails.Surcharge.EnforceValidation; + } + } + export namespace AsyncWorkflows { + export type Inputs = Stripe_.PaymentIntent.AsyncWorkflows.Inputs; + export namespace Inputs { + export type Tax = Stripe_.PaymentIntent.AsyncWorkflows.Inputs.Tax; + } + } + export namespace AutomaticPaymentMethods { + export type AllowRedirects = Stripe_.PaymentIntent.AutomaticPaymentMethods.AllowRedirects; + } + export namespace Hooks { + export type Inputs = Stripe_.PaymentIntent.Hooks.Inputs; + export namespace Inputs { + export type Tax = Stripe_.PaymentIntent.Hooks.Inputs.Tax; + } + } + export namespace LastPaymentError { + export type Code = Stripe_.PaymentIntent.LastPaymentError.Code; + export type Type = Stripe_.PaymentIntent.LastPaymentError.Type; + } + export namespace NextAction { + export type AlipayHandleRedirect = Stripe_.PaymentIntent.NextAction.AlipayHandleRedirect; + export type BlikAuthorize = Stripe_.PaymentIntent.NextAction.BlikAuthorize; + export type BoletoDisplayDetails = Stripe_.PaymentIntent.NextAction.BoletoDisplayDetails; + export type CardAwaitNotification = Stripe_.PaymentIntent.NextAction.CardAwaitNotification; + export type CashappHandleRedirectOrDisplayQrCode = Stripe_.PaymentIntent.NextAction.CashappHandleRedirectOrDisplayQrCode; + export type DisplayBankTransferInstructions = Stripe_.PaymentIntent.NextAction.DisplayBankTransferInstructions; + export type KlarnaDisplayQrCode = Stripe_.PaymentIntent.NextAction.KlarnaDisplayQrCode; + export type KonbiniDisplayDetails = Stripe_.PaymentIntent.NextAction.KonbiniDisplayDetails; + export type MultibancoDisplayDetails = Stripe_.PaymentIntent.NextAction.MultibancoDisplayDetails; + export type OxxoDisplayDetails = Stripe_.PaymentIntent.NextAction.OxxoDisplayDetails; + export type PaynowDisplayQrCode = Stripe_.PaymentIntent.NextAction.PaynowDisplayQrCode; + export type PixDisplayQrCode = Stripe_.PaymentIntent.NextAction.PixDisplayQrCode; + export type PromptpayDisplayQrCode = Stripe_.PaymentIntent.NextAction.PromptpayDisplayQrCode; + export type RedirectToUrl = Stripe_.PaymentIntent.NextAction.RedirectToUrl; + export type SwishHandleRedirectOrDisplayQrCode = Stripe_.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode; + export type UpiHandleRedirectOrDisplayQrCode = Stripe_.PaymentIntent.NextAction.UpiHandleRedirectOrDisplayQrCode; + export type UseStripeSdk = Stripe_.PaymentIntent.NextAction.UseStripeSdk; + export type VerifyWithMicrodeposits = Stripe_.PaymentIntent.NextAction.VerifyWithMicrodeposits; + export type WechatPayDisplayQrCode = Stripe_.PaymentIntent.NextAction.WechatPayDisplayQrCode; + export type WechatPayRedirectToAndroidApp = Stripe_.PaymentIntent.NextAction.WechatPayRedirectToAndroidApp; + export type WechatPayRedirectToIosApp = Stripe_.PaymentIntent.NextAction.WechatPayRedirectToIosApp; + export namespace CashappHandleRedirectOrDisplayQrCode { + export type QrCode = Stripe_.PaymentIntent.NextAction.CashappHandleRedirectOrDisplayQrCode.QrCode; + } + export namespace DisplayBankTransferInstructions { + export type FinancialAddress = Stripe_.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress; + export type Type = Stripe_.PaymentIntent.NextAction.DisplayBankTransferInstructions.Type; + export namespace FinancialAddress { + export type Aba = Stripe_.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Aba; + export type Iban = Stripe_.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Iban; + export type SortCode = Stripe_.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.SortCode; + export type Spei = Stripe_.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Spei; + export type SupportedNetwork = Stripe_.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.SupportedNetwork; + export type Swift = Stripe_.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Swift; + export type Type = Stripe_.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Type; + export type Zengin = Stripe_.PaymentIntent.NextAction.DisplayBankTransferInstructions.FinancialAddress.Zengin; + } + } + export namespace KonbiniDisplayDetails { + export type Stores = Stripe_.PaymentIntent.NextAction.KonbiniDisplayDetails.Stores; + export namespace Stores { + export type Familymart = Stripe_.PaymentIntent.NextAction.KonbiniDisplayDetails.Stores.Familymart; + export type Lawson = Stripe_.PaymentIntent.NextAction.KonbiniDisplayDetails.Stores.Lawson; + export type Ministop = Stripe_.PaymentIntent.NextAction.KonbiniDisplayDetails.Stores.Ministop; + export type Seicomart = Stripe_.PaymentIntent.NextAction.KonbiniDisplayDetails.Stores.Seicomart; + } + } + export namespace SwishHandleRedirectOrDisplayQrCode { + export type QrCode = Stripe_.PaymentIntent.NextAction.SwishHandleRedirectOrDisplayQrCode.QrCode; + } + export namespace UpiHandleRedirectOrDisplayQrCode { + export type QrCode = Stripe_.PaymentIntent.NextAction.UpiHandleRedirectOrDisplayQrCode.QrCode; + } + export namespace VerifyWithMicrodeposits { + export type MicrodepositType = Stripe_.PaymentIntent.NextAction.VerifyWithMicrodeposits.MicrodepositType; + } + } + export namespace PaymentDetails { + export type CarRental = Stripe_.PaymentIntent.PaymentDetails.CarRental; + export type CarRentalDatum = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum; + export type EventDetails = Stripe_.PaymentIntent.PaymentDetails.EventDetails; + export type FlightDatum = Stripe_.PaymentIntent.PaymentDetails.FlightDatum; + export type LodgingDatum = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum; + export type Subscription = Stripe_.PaymentIntent.PaymentDetails.Subscription; + export namespace CarRental { + export type Affiliate = Stripe_.PaymentIntent.PaymentDetails.CarRental.Affiliate; + export type Delivery = Stripe_.PaymentIntent.PaymentDetails.CarRental.Delivery; + export type Distance = Stripe_.PaymentIntent.PaymentDetails.CarRental.Distance; + export type Driver = Stripe_.PaymentIntent.PaymentDetails.CarRental.Driver; + export type ExtraCharge = Stripe_.PaymentIntent.PaymentDetails.CarRental.ExtraCharge; + export type RateInterval = Stripe_.PaymentIntent.PaymentDetails.CarRental.RateInterval; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntent.PaymentDetails.CarRental.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntent.PaymentDetails.CarRental.Delivery.Recipient; + } + } + export namespace CarRentalDatum { + export type Affiliate = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Affiliate; + export type Distance = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Distance; + export type Driver = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Driver; + export type DropOff = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.DropOff; + export type Insurance = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Insurance; + export type Pickup = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Pickup; + export type Total = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Total; + export type Vehicle = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Vehicle; + export namespace Distance { + export type Unit = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Distance.Unit; + } + export namespace Driver { + export type DateOfBirth = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Driver.DateOfBirth; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Insurance.InsuranceType; + } + export namespace Total { + export type Discounts = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Total.ExtraCharge; + export type RateUnit = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Total.RateUnit; + export type Tax = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Total.Tax.Tax; + } + } + export namespace Vehicle { + export type Type = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Vehicle.Type; + export type VehicleClass = Stripe_.PaymentIntent.PaymentDetails.CarRentalDatum.Vehicle.VehicleClass; + } + } + export namespace EventDetails { + export type Affiliate = Stripe_.PaymentIntent.PaymentDetails.EventDetails.Affiliate; + export type Delivery = Stripe_.PaymentIntent.PaymentDetails.EventDetails.Delivery; + export namespace Delivery { + export type Mode = Stripe_.PaymentIntent.PaymentDetails.EventDetails.Delivery.Mode; + export type Recipient = Stripe_.PaymentIntent.PaymentDetails.EventDetails.Delivery.Recipient; + } + } + export namespace FlightDatum { + export type Affiliate = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Affiliate; + export type Insurance = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Insurance; + export type Passenger = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Passenger; + export type Segment = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Segment; + export type Total = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Total; + export type TransactionType = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.TransactionType; + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Insurance.InsuranceType; + } + export namespace Segment { + export type Arrival = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Segment.Arrival; + export type Departure = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Segment.Departure; + export type ServiceClass = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Segment.ServiceClass; + } + export namespace Total { + export type CreditReason = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Total.CreditReason; + export type Discounts = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Total.ExtraCharge; + export type Tax = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntent.PaymentDetails.FlightDatum.Total.Tax.Tax; + } + } + } + export namespace LodgingDatum { + export type Accommodation = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Accommodation; + export type Affiliate = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Affiliate; + export type Guest = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Guest; + export type Host = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Host; + export type Insurance = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Insurance; + export type Total = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Total; + export namespace Accommodation { + export type AccommodationType = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Accommodation.AccommodationType; + } + export namespace Host { + export type HostType = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Host.HostType; + } + export namespace Insurance { + export type InsuranceType = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Insurance.InsuranceType; + } + export namespace Total { + export type Discounts = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Total.Discounts; + export type ExtraCharge = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Total.ExtraCharge; + export type Tax = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Total.Tax; + export namespace ExtraCharge { + export type Type = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Total.ExtraCharge.Type; + } + export namespace Tax { + export type Tax = Stripe_.PaymentIntent.PaymentDetails.LodgingDatum.Total.Tax.Tax; + } + } + } + export namespace Subscription { + export type Affiliate = Stripe_.PaymentIntent.PaymentDetails.Subscription.Affiliate; + export type BillingInterval = Stripe_.PaymentIntent.PaymentDetails.Subscription.BillingInterval; + export namespace BillingInterval { + export type Interval = Stripe_.PaymentIntent.PaymentDetails.Subscription.BillingInterval.Interval; + } + } + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.PaymentIntent.PaymentMethodOptions.AcssDebit; + export type Affirm = Stripe_.PaymentIntent.PaymentMethodOptions.Affirm; + export type AfterpayClearpay = Stripe_.PaymentIntent.PaymentMethodOptions.AfterpayClearpay; + export type Alipay = Stripe_.PaymentIntent.PaymentMethodOptions.Alipay; + export type Alma = Stripe_.PaymentIntent.PaymentMethodOptions.Alma; + export type AmazonPay = Stripe_.PaymentIntent.PaymentMethodOptions.AmazonPay; + export type AuBecsDebit = Stripe_.PaymentIntent.PaymentMethodOptions.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentIntent.PaymentMethodOptions.BacsDebit; + export type Bancontact = Stripe_.PaymentIntent.PaymentMethodOptions.Bancontact; + export type Billie = Stripe_.PaymentIntent.PaymentMethodOptions.Billie; + export type Bizum = Stripe_.PaymentIntent.PaymentMethodOptions.Bizum; + export type Blik = Stripe_.PaymentIntent.PaymentMethodOptions.Blik; + export type Boleto = Stripe_.PaymentIntent.PaymentMethodOptions.Boleto; + export type Card = Stripe_.PaymentIntent.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.PaymentIntent.PaymentMethodOptions.CardPresent; + export type Cashapp = Stripe_.PaymentIntent.PaymentMethodOptions.Cashapp; + export type Crypto = Stripe_.PaymentIntent.PaymentMethodOptions.Crypto; + export type CustomerBalance = Stripe_.PaymentIntent.PaymentMethodOptions.CustomerBalance; + export type Eps = Stripe_.PaymentIntent.PaymentMethodOptions.Eps; + export type Fpx = Stripe_.PaymentIntent.PaymentMethodOptions.Fpx; + export type Giropay = Stripe_.PaymentIntent.PaymentMethodOptions.Giropay; + export type Gopay = Stripe_.PaymentIntent.PaymentMethodOptions.Gopay; + export type Grabpay = Stripe_.PaymentIntent.PaymentMethodOptions.Grabpay; + export type IdBankTransfer = Stripe_.PaymentIntent.PaymentMethodOptions.IdBankTransfer; + export type Ideal = Stripe_.PaymentIntent.PaymentMethodOptions.Ideal; + export type InteracPresent = Stripe_.PaymentIntent.PaymentMethodOptions.InteracPresent; + export type KakaoPay = Stripe_.PaymentIntent.PaymentMethodOptions.KakaoPay; + export type Klarna = Stripe_.PaymentIntent.PaymentMethodOptions.Klarna; + export type Konbini = Stripe_.PaymentIntent.PaymentMethodOptions.Konbini; + export type KrCard = Stripe_.PaymentIntent.PaymentMethodOptions.KrCard; + export type Link = Stripe_.PaymentIntent.PaymentMethodOptions.Link; + export type MbWay = Stripe_.PaymentIntent.PaymentMethodOptions.MbWay; + export type Mobilepay = Stripe_.PaymentIntent.PaymentMethodOptions.Mobilepay; + export type Multibanco = Stripe_.PaymentIntent.PaymentMethodOptions.Multibanco; + export type NaverPay = Stripe_.PaymentIntent.PaymentMethodOptions.NaverPay; + export type NzBankAccount = Stripe_.PaymentIntent.PaymentMethodOptions.NzBankAccount; + export type Oxxo = Stripe_.PaymentIntent.PaymentMethodOptions.Oxxo; + export type P24 = Stripe_.PaymentIntent.PaymentMethodOptions.P24; + export type PayByBank = Stripe_.PaymentIntent.PaymentMethodOptions.PayByBank; + export type Payco = Stripe_.PaymentIntent.PaymentMethodOptions.Payco; + export type Paynow = Stripe_.PaymentIntent.PaymentMethodOptions.Paynow; + export type Paypal = Stripe_.PaymentIntent.PaymentMethodOptions.Paypal; + export type Paypay = Stripe_.PaymentIntent.PaymentMethodOptions.Paypay; + export type Payto = Stripe_.PaymentIntent.PaymentMethodOptions.Payto; + export type Pix = Stripe_.PaymentIntent.PaymentMethodOptions.Pix; + export type Promptpay = Stripe_.PaymentIntent.PaymentMethodOptions.Promptpay; + export type Qris = Stripe_.PaymentIntent.PaymentMethodOptions.Qris; + export type Rechnung = Stripe_.PaymentIntent.PaymentMethodOptions.Rechnung; + export type RevolutPay = Stripe_.PaymentIntent.PaymentMethodOptions.RevolutPay; + export type SamsungPay = Stripe_.PaymentIntent.PaymentMethodOptions.SamsungPay; + export type Satispay = Stripe_.PaymentIntent.PaymentMethodOptions.Satispay; + export type Scalapay = Stripe_.PaymentIntent.PaymentMethodOptions.Scalapay; + export type SepaDebit = Stripe_.PaymentIntent.PaymentMethodOptions.SepaDebit; + export type Shopeepay = Stripe_.PaymentIntent.PaymentMethodOptions.Shopeepay; + export type Sofort = Stripe_.PaymentIntent.PaymentMethodOptions.Sofort; + export type StripeBalance = Stripe_.PaymentIntent.PaymentMethodOptions.StripeBalance; + export type Swish = Stripe_.PaymentIntent.PaymentMethodOptions.Swish; + export type Twint = Stripe_.PaymentIntent.PaymentMethodOptions.Twint; + export type Upi = Stripe_.PaymentIntent.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.PaymentIntent.PaymentMethodOptions.UsBankAccount; + export type WechatPay = Stripe_.PaymentIntent.PaymentMethodOptions.WechatPay; + export type Zip = Stripe_.PaymentIntent.PaymentMethodOptions.Zip; + export namespace AcssDebit { + export type MandateOptions = Stripe_.PaymentIntent.PaymentMethodOptions.AcssDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.AcssDebit.SetupFutureUsage; + export type VerificationMethod = Stripe_.PaymentIntent.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type PaymentSchedule = Stripe_.PaymentIntent.PaymentMethodOptions.AcssDebit.MandateOptions.PaymentSchedule; + export type TransactionType = Stripe_.PaymentIntent.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Alipay { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Alipay.SetupFutureUsage; + } + export namespace AmazonPay { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.AmazonPay.SetupFutureUsage; + } + export namespace AuBecsDebit { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.AuBecsDebit.SetupFutureUsage; + } + export namespace BacsDebit { + export type MandateOptions = Stripe_.PaymentIntent.PaymentMethodOptions.BacsDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.BacsDebit.SetupFutureUsage; + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.PaymentIntent.PaymentMethodOptions.Bancontact.PreferredLanguage; + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Bancontact.SetupFutureUsage; + } + export namespace Boleto { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Boleto.SetupFutureUsage; + } + export namespace Card { + export type Installments = Stripe_.PaymentIntent.PaymentMethodOptions.Card.Installments; + export type MandateOptions = Stripe_.PaymentIntent.PaymentMethodOptions.Card.MandateOptions; + export type Network = Stripe_.PaymentIntent.PaymentMethodOptions.Card.Network; + export type RequestDecrementalAuthorization = Stripe_.PaymentIntent.PaymentMethodOptions.Card.RequestDecrementalAuthorization; + export type RequestExtendedAuthorization = Stripe_.PaymentIntent.PaymentMethodOptions.Card.RequestExtendedAuthorization; + export type RequestIncrementalAuthorization = Stripe_.PaymentIntent.PaymentMethodOptions.Card.RequestIncrementalAuthorization; + export type RequestMulticapture = Stripe_.PaymentIntent.PaymentMethodOptions.Card.RequestMulticapture; + export type RequestOvercapture = Stripe_.PaymentIntent.PaymentMethodOptions.Card.RequestOvercapture; + export type RequestPartialAuthorization = Stripe_.PaymentIntent.PaymentMethodOptions.Card.RequestPartialAuthorization; + export type RequestThreeDSecure = Stripe_.PaymentIntent.PaymentMethodOptions.Card.RequestThreeDSecure; + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Card.SetupFutureUsage; + export type StatementDetails = Stripe_.PaymentIntent.PaymentMethodOptions.Card.StatementDetails; + export namespace Installments { + export type AvailablePlan = Stripe_.PaymentIntent.PaymentMethodOptions.Card.Installments.AvailablePlan; + export type Plan = Stripe_.PaymentIntent.PaymentMethodOptions.Card.Installments.Plan; + export namespace AvailablePlan { + export type Type = Stripe_.PaymentIntent.PaymentMethodOptions.Card.Installments.AvailablePlan.Type; + } + export namespace Plan { + export type Type = Stripe_.PaymentIntent.PaymentMethodOptions.Card.Installments.Plan.Type; + } + } + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntent.PaymentMethodOptions.Card.MandateOptions.AmountType; + export type Interval = Stripe_.PaymentIntent.PaymentMethodOptions.Card.MandateOptions.Interval; + } + export namespace StatementDetails { + export type Address = Stripe_.PaymentIntent.PaymentMethodOptions.Card.StatementDetails.Address; + } + } + export namespace CardPresent { + export type CaptureMethod = Stripe_.PaymentIntent.PaymentMethodOptions.CardPresent.CaptureMethod; + export type Routing = Stripe_.PaymentIntent.PaymentMethodOptions.CardPresent.Routing; + export namespace Routing { + export type RequestedPriority = Stripe_.PaymentIntent.PaymentMethodOptions.CardPresent.Routing.RequestedPriority; + } + } + export namespace Cashapp { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Cashapp.SetupFutureUsage; + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.PaymentIntent.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.PaymentIntent.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export type RequestedAddressType = Stripe_.PaymentIntent.PaymentMethodOptions.CustomerBalance.BankTransfer.RequestedAddressType; + export type Type = Stripe_.PaymentIntent.PaymentMethodOptions.CustomerBalance.BankTransfer.Type; + export namespace EuBankTransfer { + export type Country = Stripe_.PaymentIntent.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer.Country; + } + } + } + export namespace Gopay { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Gopay.SetupFutureUsage; + } + export namespace Ideal { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Ideal.SetupFutureUsage; + } + export namespace KakaoPay { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.KakaoPay.SetupFutureUsage; + } + export namespace Klarna { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Klarna.SetupFutureUsage; + } + export namespace KrCard { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.KrCard.SetupFutureUsage; + } + export namespace Link { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Link.SetupFutureUsage; + } + export namespace NaverPay { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.NaverPay.SetupFutureUsage; + } + export namespace NzBankAccount { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.NzBankAccount.SetupFutureUsage; + } + export namespace Paypal { + export type LineItem = Stripe_.PaymentIntent.PaymentMethodOptions.Paypal.LineItem; + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Paypal.SetupFutureUsage; + export namespace LineItem { + export type Category = Stripe_.PaymentIntent.PaymentMethodOptions.Paypal.LineItem.Category; + export type Tax = Stripe_.PaymentIntent.PaymentMethodOptions.Paypal.LineItem.Tax; + export namespace Tax { + export type Behavior = Stripe_.PaymentIntent.PaymentMethodOptions.Paypal.LineItem.Tax.Behavior; + } + } + } + export namespace Payto { + export type MandateOptions = Stripe_.PaymentIntent.PaymentMethodOptions.Payto.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Payto.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentIntent.PaymentMethodOptions.Payto.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.PaymentIntent.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule; + export type Purpose = Stripe_.PaymentIntent.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type AmountIncludesIof = Stripe_.PaymentIntent.PaymentMethodOptions.Pix.AmountIncludesIof; + export type MandateOptions = Stripe_.PaymentIntent.PaymentMethodOptions.Pix.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Pix.SetupFutureUsage; + export namespace MandateOptions { + export type AmountIncludesIof = Stripe_.PaymentIntent.PaymentMethodOptions.Pix.MandateOptions.AmountIncludesIof; + export type AmountType = Stripe_.PaymentIntent.PaymentMethodOptions.Pix.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.PaymentIntent.PaymentMethodOptions.Pix.MandateOptions.PaymentSchedule; + } + } + export namespace RevolutPay { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.RevolutPay.SetupFutureUsage; + } + export namespace SepaDebit { + export type MandateOptions = Stripe_.PaymentIntent.PaymentMethodOptions.SepaDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.SepaDebit.SetupFutureUsage; + } + export namespace Sofort { + export type PreferredLanguage = Stripe_.PaymentIntent.PaymentMethodOptions.Sofort.PreferredLanguage; + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Sofort.SetupFutureUsage; + } + export namespace StripeBalance { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.StripeBalance.SetupFutureUsage; + } + export namespace Twint { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Twint.SetupFutureUsage; + } + export namespace Upi { + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.Upi.SetupFutureUsage; + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.PaymentIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type MandateOptions = Stripe_.PaymentIntent.PaymentMethodOptions.UsBankAccount.MandateOptions; + export type SetupFutureUsage = Stripe_.PaymentIntent.PaymentMethodOptions.UsBankAccount.SetupFutureUsage; + export type TransactionPurpose = Stripe_.PaymentIntent.PaymentMethodOptions.UsBankAccount.TransactionPurpose; + export type VerificationMethod = Stripe_.PaymentIntent.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.PaymentIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type ManualEntry = Stripe_.PaymentIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry; + export type Permission = Stripe_.PaymentIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.PaymentIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.PaymentIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + export namespace ManualEntry { + export type Mode = Stripe_.PaymentIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry.Mode; + } + } + } + export namespace WechatPay { + export type Client = Stripe_.PaymentIntent.PaymentMethodOptions.WechatPay.Client; + } + } + export namespace Processing { + export type Card = Stripe_.PaymentIntent.Processing.Card; + export namespace Card { + export type CustomerNotification = Stripe_.PaymentIntent.Processing.Card.CustomerNotification; + } + } + export namespace TransferData { + export type PaymentData = Stripe_.PaymentIntent.TransferData.PaymentData; + } + } + export namespace PaymentLinkCreateParams { + export type LineItem = Stripe_.PaymentLinkCreateParams.LineItem; + export type AfterCompletion = Stripe_.PaymentLinkCreateParams.AfterCompletion; + export type AutomaticTax = Stripe_.PaymentLinkCreateParams.AutomaticTax; + export type BillingAddressCollection = Stripe_.PaymentLinkCreateParams.BillingAddressCollection; + export type ConsentCollection = Stripe_.PaymentLinkCreateParams.ConsentCollection; + export type CustomField = Stripe_.PaymentLinkCreateParams.CustomField; + export type CustomText = Stripe_.PaymentLinkCreateParams.CustomText; + export type CustomerCreation = Stripe_.PaymentLinkCreateParams.CustomerCreation; + export type InvoiceCreation = Stripe_.PaymentLinkCreateParams.InvoiceCreation; + export type ManagedPayments = Stripe_.PaymentLinkCreateParams.ManagedPayments; + export type NameCollection = Stripe_.PaymentLinkCreateParams.NameCollection; + export type OptionalItem = Stripe_.PaymentLinkCreateParams.OptionalItem; + export type PaymentIntentData = Stripe_.PaymentLinkCreateParams.PaymentIntentData; + export type PaymentMethodCollection = Stripe_.PaymentLinkCreateParams.PaymentMethodCollection; + export type PaymentMethodOptions = Stripe_.PaymentLinkCreateParams.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.PaymentLinkCreateParams.PaymentMethodType; + export type PhoneNumberCollection = Stripe_.PaymentLinkCreateParams.PhoneNumberCollection; + export type Restrictions = Stripe_.PaymentLinkCreateParams.Restrictions; + export type ShippingAddressCollection = Stripe_.PaymentLinkCreateParams.ShippingAddressCollection; + export type ShippingOption = Stripe_.PaymentLinkCreateParams.ShippingOption; + export type SubmitType = Stripe_.PaymentLinkCreateParams.SubmitType; + export type SubscriptionData = Stripe_.PaymentLinkCreateParams.SubscriptionData; + export type TaxIdCollection = Stripe_.PaymentLinkCreateParams.TaxIdCollection; + export type TransferData = Stripe_.PaymentLinkCreateParams.TransferData; + export namespace AfterCompletion { + export type HostedConfirmation = Stripe_.PaymentLinkCreateParams.AfterCompletion.HostedConfirmation; + export type Redirect = Stripe_.PaymentLinkCreateParams.AfterCompletion.Redirect; + export type Type = Stripe_.PaymentLinkCreateParams.AfterCompletion.Type; + } + export namespace AutomaticTax { + export type Liability = Stripe_.PaymentLinkCreateParams.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.PaymentLinkCreateParams.AutomaticTax.Liability.Type; + } + } + export namespace ConsentCollection { + export type PaymentMethodReuseAgreement = Stripe_.PaymentLinkCreateParams.ConsentCollection.PaymentMethodReuseAgreement; + export type Promotions = Stripe_.PaymentLinkCreateParams.ConsentCollection.Promotions; + export type TermsOfService = Stripe_.PaymentLinkCreateParams.ConsentCollection.TermsOfService; + export namespace PaymentMethodReuseAgreement { + export type Position = Stripe_.PaymentLinkCreateParams.ConsentCollection.PaymentMethodReuseAgreement.Position; + } + } + export namespace CustomField { + export type Dropdown = Stripe_.PaymentLinkCreateParams.CustomField.Dropdown; + export type Label = Stripe_.PaymentLinkCreateParams.CustomField.Label; + export type Numeric = Stripe_.PaymentLinkCreateParams.CustomField.Numeric; + export type Text = Stripe_.PaymentLinkCreateParams.CustomField.Text; + export type Type = Stripe_.PaymentLinkCreateParams.CustomField.Type; + export namespace Dropdown { + export type Option = Stripe_.PaymentLinkCreateParams.CustomField.Dropdown.Option; + } + } + export namespace CustomText { + export type AfterSubmit = Stripe_.PaymentLinkCreateParams.CustomText.AfterSubmit; + export type ShippingAddress = Stripe_.PaymentLinkCreateParams.CustomText.ShippingAddress; + export type Submit = Stripe_.PaymentLinkCreateParams.CustomText.Submit; + export type TermsOfServiceAcceptance = Stripe_.PaymentLinkCreateParams.CustomText.TermsOfServiceAcceptance; + } + export namespace InvoiceCreation { + export type InvoiceData = Stripe_.PaymentLinkCreateParams.InvoiceCreation.InvoiceData; + export namespace InvoiceData { + export type CustomField = Stripe_.PaymentLinkCreateParams.InvoiceCreation.InvoiceData.CustomField; + export type Issuer = Stripe_.PaymentLinkCreateParams.InvoiceCreation.InvoiceData.Issuer; + export type RenderingOptions = Stripe_.PaymentLinkCreateParams.InvoiceCreation.InvoiceData.RenderingOptions; + export namespace Issuer { + export type Type = Stripe_.PaymentLinkCreateParams.InvoiceCreation.InvoiceData.Issuer.Type; + } + export namespace RenderingOptions { + export type AmountTaxDisplay = Stripe_.PaymentLinkCreateParams.InvoiceCreation.InvoiceData.RenderingOptions.AmountTaxDisplay; + } + } + } + export namespace LineItem { + export type AdjustableQuantity = Stripe_.PaymentLinkCreateParams.LineItem.AdjustableQuantity; + export type PriceData = Stripe_.PaymentLinkCreateParams.LineItem.PriceData; + export namespace PriceData { + export type ProductData = Stripe_.PaymentLinkCreateParams.LineItem.PriceData.ProductData; + export type Recurring = Stripe_.PaymentLinkCreateParams.LineItem.PriceData.Recurring; + export type TaxBehavior = Stripe_.PaymentLinkCreateParams.LineItem.PriceData.TaxBehavior; + export namespace ProductData { + export type TaxDetails = Stripe_.PaymentLinkCreateParams.LineItem.PriceData.ProductData.TaxDetails; + } + export namespace Recurring { + export type Interval = Stripe_.PaymentLinkCreateParams.LineItem.PriceData.Recurring.Interval; + } + } + } + export namespace NameCollection { + export type Business = Stripe_.PaymentLinkCreateParams.NameCollection.Business; + export type Individual = Stripe_.PaymentLinkCreateParams.NameCollection.Individual; + } + export namespace OptionalItem { + export type AdjustableQuantity = Stripe_.PaymentLinkCreateParams.OptionalItem.AdjustableQuantity; + } + export namespace PaymentIntentData { + export type CaptureMethod = Stripe_.PaymentLinkCreateParams.PaymentIntentData.CaptureMethod; + export type SetupFutureUsage = Stripe_.PaymentLinkCreateParams.PaymentIntentData.SetupFutureUsage; + } + export namespace PaymentMethodOptions { + export type Card = Stripe_.PaymentLinkCreateParams.PaymentMethodOptions.Card; + export namespace Card { + export type Restrictions = Stripe_.PaymentLinkCreateParams.PaymentMethodOptions.Card.Restrictions; + export namespace Restrictions { + export type BrandsBlocked = Stripe_.PaymentLinkCreateParams.PaymentMethodOptions.Card.Restrictions.BrandsBlocked; + } + } + } + export namespace Restrictions { + export type CompletedSessions = Stripe_.PaymentLinkCreateParams.Restrictions.CompletedSessions; + } + export namespace ShippingAddressCollection { + export type AllowedCountry = Stripe_.PaymentLinkCreateParams.ShippingAddressCollection.AllowedCountry; + } + export namespace SubscriptionData { + export type InvoiceSettings = Stripe_.PaymentLinkCreateParams.SubscriptionData.InvoiceSettings; + export type TrialSettings = Stripe_.PaymentLinkCreateParams.SubscriptionData.TrialSettings; + export namespace InvoiceSettings { + export type Issuer = Stripe_.PaymentLinkCreateParams.SubscriptionData.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.PaymentLinkCreateParams.SubscriptionData.InvoiceSettings.Issuer.Type; + } + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.PaymentLinkCreateParams.SubscriptionData.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type MissingPaymentMethod = Stripe_.PaymentLinkCreateParams.SubscriptionData.TrialSettings.EndBehavior.MissingPaymentMethod; + } + } + } + export namespace TaxIdCollection { + export type Required = Stripe_.PaymentLinkCreateParams.TaxIdCollection.Required; + } + } + export namespace PaymentLinkUpdateParams { + export type AfterCompletion = Stripe_.PaymentLinkUpdateParams.AfterCompletion; + export type AutomaticTax = Stripe_.PaymentLinkUpdateParams.AutomaticTax; + export type BillingAddressCollection = Stripe_.PaymentLinkUpdateParams.BillingAddressCollection; + export type CustomField = Stripe_.PaymentLinkUpdateParams.CustomField; + export type CustomText = Stripe_.PaymentLinkUpdateParams.CustomText; + export type CustomerCreation = Stripe_.PaymentLinkUpdateParams.CustomerCreation; + export type InvoiceCreation = Stripe_.PaymentLinkUpdateParams.InvoiceCreation; + export type LineItem = Stripe_.PaymentLinkUpdateParams.LineItem; + export type NameCollection = Stripe_.PaymentLinkUpdateParams.NameCollection; + export type OptionalItem = Stripe_.PaymentLinkUpdateParams.OptionalItem; + export type PaymentIntentData = Stripe_.PaymentLinkUpdateParams.PaymentIntentData; + export type PaymentMethodCollection = Stripe_.PaymentLinkUpdateParams.PaymentMethodCollection; + export type PaymentMethodOptions = Stripe_.PaymentLinkUpdateParams.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.PaymentLinkUpdateParams.PaymentMethodType; + export type PhoneNumberCollection = Stripe_.PaymentLinkUpdateParams.PhoneNumberCollection; + export type Restrictions = Stripe_.PaymentLinkUpdateParams.Restrictions; + export type ShippingAddressCollection = Stripe_.PaymentLinkUpdateParams.ShippingAddressCollection; + export type SubmitType = Stripe_.PaymentLinkUpdateParams.SubmitType; + export type SubscriptionData = Stripe_.PaymentLinkUpdateParams.SubscriptionData; + export type TaxIdCollection = Stripe_.PaymentLinkUpdateParams.TaxIdCollection; + export namespace AfterCompletion { + export type HostedConfirmation = Stripe_.PaymentLinkUpdateParams.AfterCompletion.HostedConfirmation; + export type Redirect = Stripe_.PaymentLinkUpdateParams.AfterCompletion.Redirect; + export type Type = Stripe_.PaymentLinkUpdateParams.AfterCompletion.Type; + } + export namespace AutomaticTax { + export type Liability = Stripe_.PaymentLinkUpdateParams.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.PaymentLinkUpdateParams.AutomaticTax.Liability.Type; + } + } + export namespace CustomField { + export type Dropdown = Stripe_.PaymentLinkUpdateParams.CustomField.Dropdown; + export type Label = Stripe_.PaymentLinkUpdateParams.CustomField.Label; + export type Numeric = Stripe_.PaymentLinkUpdateParams.CustomField.Numeric; + export type Text = Stripe_.PaymentLinkUpdateParams.CustomField.Text; + export type Type = Stripe_.PaymentLinkUpdateParams.CustomField.Type; + export namespace Dropdown { + export type Option = Stripe_.PaymentLinkUpdateParams.CustomField.Dropdown.Option; + } + } + export namespace CustomText { + export type AfterSubmit = Stripe_.PaymentLinkUpdateParams.CustomText.AfterSubmit; + export type ShippingAddress = Stripe_.PaymentLinkUpdateParams.CustomText.ShippingAddress; + export type Submit = Stripe_.PaymentLinkUpdateParams.CustomText.Submit; + export type TermsOfServiceAcceptance = Stripe_.PaymentLinkUpdateParams.CustomText.TermsOfServiceAcceptance; + } + export namespace InvoiceCreation { + export type InvoiceData = Stripe_.PaymentLinkUpdateParams.InvoiceCreation.InvoiceData; + export namespace InvoiceData { + export type CustomField = Stripe_.PaymentLinkUpdateParams.InvoiceCreation.InvoiceData.CustomField; + export type Issuer = Stripe_.PaymentLinkUpdateParams.InvoiceCreation.InvoiceData.Issuer; + export type RenderingOptions = Stripe_.PaymentLinkUpdateParams.InvoiceCreation.InvoiceData.RenderingOptions; + export namespace Issuer { + export type Type = Stripe_.PaymentLinkUpdateParams.InvoiceCreation.InvoiceData.Issuer.Type; + } + export namespace RenderingOptions { + export type AmountTaxDisplay = Stripe_.PaymentLinkUpdateParams.InvoiceCreation.InvoiceData.RenderingOptions.AmountTaxDisplay; + } + } + } + export namespace LineItem { + export type AdjustableQuantity = Stripe_.PaymentLinkUpdateParams.LineItem.AdjustableQuantity; + } + export namespace NameCollection { + export type Business = Stripe_.PaymentLinkUpdateParams.NameCollection.Business; + export type Individual = Stripe_.PaymentLinkUpdateParams.NameCollection.Individual; + } + export namespace OptionalItem { + export type AdjustableQuantity = Stripe_.PaymentLinkUpdateParams.OptionalItem.AdjustableQuantity; + } + export namespace PaymentMethodOptions { + export type Card = Stripe_.PaymentLinkUpdateParams.PaymentMethodOptions.Card; + export namespace Card { + export type Restrictions = Stripe_.PaymentLinkUpdateParams.PaymentMethodOptions.Card.Restrictions; + export namespace Restrictions { + export type BrandsBlocked = Stripe_.PaymentLinkUpdateParams.PaymentMethodOptions.Card.Restrictions.BrandsBlocked; + } + } + } + export namespace Restrictions { + export type CompletedSessions = Stripe_.PaymentLinkUpdateParams.Restrictions.CompletedSessions; + } + export namespace ShippingAddressCollection { + export type AllowedCountry = Stripe_.PaymentLinkUpdateParams.ShippingAddressCollection.AllowedCountry; + } + export namespace SubscriptionData { + export type InvoiceSettings = Stripe_.PaymentLinkUpdateParams.SubscriptionData.InvoiceSettings; + export type TrialSettings = Stripe_.PaymentLinkUpdateParams.SubscriptionData.TrialSettings; + export namespace InvoiceSettings { + export type Issuer = Stripe_.PaymentLinkUpdateParams.SubscriptionData.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.PaymentLinkUpdateParams.SubscriptionData.InvoiceSettings.Issuer.Type; + } + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.PaymentLinkUpdateParams.SubscriptionData.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type MissingPaymentMethod = Stripe_.PaymentLinkUpdateParams.SubscriptionData.TrialSettings.EndBehavior.MissingPaymentMethod; + } + } + } + export namespace TaxIdCollection { + export type Required = Stripe_.PaymentLinkUpdateParams.TaxIdCollection.Required; + } + } + export namespace PaymentLink { + export type AfterCompletion = Stripe_.PaymentLink.AfterCompletion; + export type AutomaticTax = Stripe_.PaymentLink.AutomaticTax; + export type BillingAddressCollection = Stripe_.PaymentLink.BillingAddressCollection; + export type ConsentCollection = Stripe_.PaymentLink.ConsentCollection; + export type CustomField = Stripe_.PaymentLink.CustomField; + export type CustomText = Stripe_.PaymentLink.CustomText; + export type CustomerCreation = Stripe_.PaymentLink.CustomerCreation; + export type InvoiceCreation = Stripe_.PaymentLink.InvoiceCreation; + export type ManagedPayments = Stripe_.PaymentLink.ManagedPayments; + export type NameCollection = Stripe_.PaymentLink.NameCollection; + export type OptionalItem = Stripe_.PaymentLink.OptionalItem; + export type PaymentIntentData = Stripe_.PaymentLink.PaymentIntentData; + export type PaymentMethodCollection = Stripe_.PaymentLink.PaymentMethodCollection; + export type PaymentMethodOptions = Stripe_.PaymentLink.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.PaymentLink.PaymentMethodType; + export type PhoneNumberCollection = Stripe_.PaymentLink.PhoneNumberCollection; + export type Restrictions = Stripe_.PaymentLink.Restrictions; + export type ShippingAddressCollection = Stripe_.PaymentLink.ShippingAddressCollection; + export type ShippingOption = Stripe_.PaymentLink.ShippingOption; + export type SubmitType = Stripe_.PaymentLink.SubmitType; + export type SubscriptionData = Stripe_.PaymentLink.SubscriptionData; + export type TaxIdCollection = Stripe_.PaymentLink.TaxIdCollection; + export type TransferData = Stripe_.PaymentLink.TransferData; + export namespace AfterCompletion { + export type HostedConfirmation = Stripe_.PaymentLink.AfterCompletion.HostedConfirmation; + export type Redirect = Stripe_.PaymentLink.AfterCompletion.Redirect; + export type Type = Stripe_.PaymentLink.AfterCompletion.Type; + } + export namespace AutomaticTax { + export type Liability = Stripe_.PaymentLink.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.PaymentLink.AutomaticTax.Liability.Type; + } + } + export namespace ConsentCollection { + export type PaymentMethodReuseAgreement = Stripe_.PaymentLink.ConsentCollection.PaymentMethodReuseAgreement; + export type Promotions = Stripe_.PaymentLink.ConsentCollection.Promotions; + export type TermsOfService = Stripe_.PaymentLink.ConsentCollection.TermsOfService; + export namespace PaymentMethodReuseAgreement { + export type Position = Stripe_.PaymentLink.ConsentCollection.PaymentMethodReuseAgreement.Position; + } + } + export namespace CustomField { + export type Dropdown = Stripe_.PaymentLink.CustomField.Dropdown; + export type Label = Stripe_.PaymentLink.CustomField.Label; + export type Numeric = Stripe_.PaymentLink.CustomField.Numeric; + export type Text = Stripe_.PaymentLink.CustomField.Text; + export type Type = Stripe_.PaymentLink.CustomField.Type; + export namespace Dropdown { + export type Option = Stripe_.PaymentLink.CustomField.Dropdown.Option; + } + } + export namespace CustomText { + export type AfterSubmit = Stripe_.PaymentLink.CustomText.AfterSubmit; + export type ShippingAddress = Stripe_.PaymentLink.CustomText.ShippingAddress; + export type Submit = Stripe_.PaymentLink.CustomText.Submit; + export type TermsOfServiceAcceptance = Stripe_.PaymentLink.CustomText.TermsOfServiceAcceptance; + } + export namespace InvoiceCreation { + export type InvoiceData = Stripe_.PaymentLink.InvoiceCreation.InvoiceData; + export namespace InvoiceData { + export type CustomField = Stripe_.PaymentLink.InvoiceCreation.InvoiceData.CustomField; + export type Issuer = Stripe_.PaymentLink.InvoiceCreation.InvoiceData.Issuer; + export type RenderingOptions = Stripe_.PaymentLink.InvoiceCreation.InvoiceData.RenderingOptions; + export namespace Issuer { + export type Type = Stripe_.PaymentLink.InvoiceCreation.InvoiceData.Issuer.Type; + } + } + } + export namespace NameCollection { + export type Business = Stripe_.PaymentLink.NameCollection.Business; + export type Individual = Stripe_.PaymentLink.NameCollection.Individual; + } + export namespace OptionalItem { + export type AdjustableQuantity = Stripe_.PaymentLink.OptionalItem.AdjustableQuantity; + } + export namespace PaymentIntentData { + export type CaptureMethod = Stripe_.PaymentLink.PaymentIntentData.CaptureMethod; + export type SetupFutureUsage = Stripe_.PaymentLink.PaymentIntentData.SetupFutureUsage; + } + export namespace PaymentMethodOptions { + export type Card = Stripe_.PaymentLink.PaymentMethodOptions.Card; + export namespace Card { + export type Restrictions = Stripe_.PaymentLink.PaymentMethodOptions.Card.Restrictions; + export namespace Restrictions { + export type BrandsBlocked = Stripe_.PaymentLink.PaymentMethodOptions.Card.Restrictions.BrandsBlocked; + } + } + } + export namespace Restrictions { + export type CompletedSessions = Stripe_.PaymentLink.Restrictions.CompletedSessions; + } + export namespace ShippingAddressCollection { + export type AllowedCountry = Stripe_.PaymentLink.ShippingAddressCollection.AllowedCountry; + } + export namespace SubscriptionData { + export type InvoiceSettings = Stripe_.PaymentLink.SubscriptionData.InvoiceSettings; + export type TrialSettings = Stripe_.PaymentLink.SubscriptionData.TrialSettings; + export namespace InvoiceSettings { + export type Issuer = Stripe_.PaymentLink.SubscriptionData.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.PaymentLink.SubscriptionData.InvoiceSettings.Issuer.Type; + } + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.PaymentLink.SubscriptionData.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type MissingPaymentMethod = Stripe_.PaymentLink.SubscriptionData.TrialSettings.EndBehavior.MissingPaymentMethod; + } + } + } + export namespace TaxIdCollection { + export type Required = Stripe_.PaymentLink.TaxIdCollection.Required; + } + } + export namespace PaymentMethodCreateParams { + export type AcssDebit = Stripe_.PaymentMethodCreateParams.AcssDebit; + export type Affirm = Stripe_.PaymentMethodCreateParams.Affirm; + export type AfterpayClearpay = Stripe_.PaymentMethodCreateParams.AfterpayClearpay; + export type Alipay = Stripe_.PaymentMethodCreateParams.Alipay; + export type AllowRedisplay = Stripe_.PaymentMethodCreateParams.AllowRedisplay; + export type Alma = Stripe_.PaymentMethodCreateParams.Alma; + export type AmazonPay = Stripe_.PaymentMethodCreateParams.AmazonPay; + export type AuBecsDebit = Stripe_.PaymentMethodCreateParams.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentMethodCreateParams.BacsDebit; + export type Bancontact = Stripe_.PaymentMethodCreateParams.Bancontact; + export type Billie = Stripe_.PaymentMethodCreateParams.Billie; + export type BillingDetails = Stripe_.PaymentMethodCreateParams.BillingDetails; + export type Bizum = Stripe_.PaymentMethodCreateParams.Bizum; + export type Blik = Stripe_.PaymentMethodCreateParams.Blik; + export type Boleto = Stripe_.PaymentMethodCreateParams.Boleto; + export type Card = Stripe_.PaymentMethodCreateParams.Card; + export type Cashapp = Stripe_.PaymentMethodCreateParams.Cashapp; + export type Crypto = Stripe_.PaymentMethodCreateParams.Crypto; + export type Custom = Stripe_.PaymentMethodCreateParams.Custom; + export type CustomerBalance = Stripe_.PaymentMethodCreateParams.CustomerBalance; + export type Eps = Stripe_.PaymentMethodCreateParams.Eps; + export type Fpx = Stripe_.PaymentMethodCreateParams.Fpx; + export type Giropay = Stripe_.PaymentMethodCreateParams.Giropay; + export type Gopay = Stripe_.PaymentMethodCreateParams.Gopay; + export type Grabpay = Stripe_.PaymentMethodCreateParams.Grabpay; + export type IdBankTransfer = Stripe_.PaymentMethodCreateParams.IdBankTransfer; + export type Ideal = Stripe_.PaymentMethodCreateParams.Ideal; + export type InteracPresent = Stripe_.PaymentMethodCreateParams.InteracPresent; + export type KakaoPay = Stripe_.PaymentMethodCreateParams.KakaoPay; + export type Klarna = Stripe_.PaymentMethodCreateParams.Klarna; + export type Konbini = Stripe_.PaymentMethodCreateParams.Konbini; + export type KrCard = Stripe_.PaymentMethodCreateParams.KrCard; + export type Link = Stripe_.PaymentMethodCreateParams.Link; + export type MbWay = Stripe_.PaymentMethodCreateParams.MbWay; + export type Mobilepay = Stripe_.PaymentMethodCreateParams.Mobilepay; + export type Multibanco = Stripe_.PaymentMethodCreateParams.Multibanco; + export type NaverPay = Stripe_.PaymentMethodCreateParams.NaverPay; + export type NzBankAccount = Stripe_.PaymentMethodCreateParams.NzBankAccount; + export type Oxxo = Stripe_.PaymentMethodCreateParams.Oxxo; + export type P24 = Stripe_.PaymentMethodCreateParams.P24; + export type PayByBank = Stripe_.PaymentMethodCreateParams.PayByBank; + export type Payco = Stripe_.PaymentMethodCreateParams.Payco; + export type Paynow = Stripe_.PaymentMethodCreateParams.Paynow; + export type Paypal = Stripe_.PaymentMethodCreateParams.Paypal; + export type Paypay = Stripe_.PaymentMethodCreateParams.Paypay; + export type Payto = Stripe_.PaymentMethodCreateParams.Payto; + export type Pix = Stripe_.PaymentMethodCreateParams.Pix; + export type Promptpay = Stripe_.PaymentMethodCreateParams.Promptpay; + export type Qris = Stripe_.PaymentMethodCreateParams.Qris; + export type RadarOptions = Stripe_.PaymentMethodCreateParams.RadarOptions; + export type Rechnung = Stripe_.PaymentMethodCreateParams.Rechnung; + export type RevolutPay = Stripe_.PaymentMethodCreateParams.RevolutPay; + export type SamsungPay = Stripe_.PaymentMethodCreateParams.SamsungPay; + export type Satispay = Stripe_.PaymentMethodCreateParams.Satispay; + export type Scalapay = Stripe_.PaymentMethodCreateParams.Scalapay; + export type SepaDebit = Stripe_.PaymentMethodCreateParams.SepaDebit; + export type Shopeepay = Stripe_.PaymentMethodCreateParams.Shopeepay; + export type Sofort = Stripe_.PaymentMethodCreateParams.Sofort; + export type StripeBalance = Stripe_.PaymentMethodCreateParams.StripeBalance; + export type Sunbit = Stripe_.PaymentMethodCreateParams.Sunbit; + export type Swish = Stripe_.PaymentMethodCreateParams.Swish; + export type Twint = Stripe_.PaymentMethodCreateParams.Twint; + export type Type = Stripe_.PaymentMethodCreateParams.Type; + export type Upi = Stripe_.PaymentMethodCreateParams.Upi; + export type UsBankAccount = Stripe_.PaymentMethodCreateParams.UsBankAccount; + export type WechatPay = Stripe_.PaymentMethodCreateParams.WechatPay; + export type Zip = Stripe_.PaymentMethodCreateParams.Zip; + export namespace Card { + export type Networks = Stripe_.PaymentMethodCreateParams.Card.Networks; + export namespace Networks { + export type Preferred = Stripe_.PaymentMethodCreateParams.Card.Networks.Preferred; + } + } + export namespace Eps { + export type Bank = Stripe_.PaymentMethodCreateParams.Eps.Bank; + } + export namespace Fpx { + export type AccountHolderType = Stripe_.PaymentMethodCreateParams.Fpx.AccountHolderType; + export type Bank = Stripe_.PaymentMethodCreateParams.Fpx.Bank; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.PaymentMethodCreateParams.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.PaymentMethodCreateParams.Ideal.Bank; + } + export namespace Klarna { + export type Dob = Stripe_.PaymentMethodCreateParams.Klarna.Dob; + } + export namespace NaverPay { + export type Funding = Stripe_.PaymentMethodCreateParams.NaverPay.Funding; + } + export namespace P24 { + export type Bank = Stripe_.PaymentMethodCreateParams.P24.Bank; + } + export namespace Rechnung { + export type Dob = Stripe_.PaymentMethodCreateParams.Rechnung.Dob; + } + export namespace Sofort { + export type Country = Stripe_.PaymentMethodCreateParams.Sofort.Country; + } + export namespace Upi { + export type MandateOptions = Stripe_.PaymentMethodCreateParams.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.PaymentMethodCreateParams.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.PaymentMethodCreateParams.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.PaymentMethodCreateParams.UsBankAccount.AccountType; + } + } + export namespace PaymentMethodUpdateParams { + export type AllowRedisplay = Stripe_.PaymentMethodUpdateParams.AllowRedisplay; + export type BillingDetails = Stripe_.PaymentMethodUpdateParams.BillingDetails; + export type Card = Stripe_.PaymentMethodUpdateParams.Card; + export type Payto = Stripe_.PaymentMethodUpdateParams.Payto; + export type UsBankAccount = Stripe_.PaymentMethodUpdateParams.UsBankAccount; + export namespace Card { + export type Networks = Stripe_.PaymentMethodUpdateParams.Card.Networks; + export namespace Networks { + export type Preferred = Stripe_.PaymentMethodUpdateParams.Card.Networks.Preferred; + } + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.PaymentMethodUpdateParams.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.PaymentMethodUpdateParams.UsBankAccount.AccountType; + } + } + export namespace PaymentMethodListParams { + export type AllowRedisplay = Stripe_.PaymentMethodListParams.AllowRedisplay; + export type Type = Stripe_.PaymentMethodListParams.Type; + } + export namespace PaymentMethod { + export type AcssDebit = Stripe_.PaymentMethod.AcssDebit; + export type Affirm = Stripe_.PaymentMethod.Affirm; + export type AfterpayClearpay = Stripe_.PaymentMethod.AfterpayClearpay; + export type Alipay = Stripe_.PaymentMethod.Alipay; + export type AllowRedisplay = Stripe_.PaymentMethod.AllowRedisplay; + export type Alma = Stripe_.PaymentMethod.Alma; + export type AmazonPay = Stripe_.PaymentMethod.AmazonPay; + export type AuBecsDebit = Stripe_.PaymentMethod.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentMethod.BacsDebit; + export type Bancontact = Stripe_.PaymentMethod.Bancontact; + export type Billie = Stripe_.PaymentMethod.Billie; + export type BillingDetails = Stripe_.PaymentMethod.BillingDetails; + export type Bizum = Stripe_.PaymentMethod.Bizum; + export type Blik = Stripe_.PaymentMethod.Blik; + export type Boleto = Stripe_.PaymentMethod.Boleto; + export type Card = Stripe_.PaymentMethod.Card; + export type CardPresent = Stripe_.PaymentMethod.CardPresent; + export type Cashapp = Stripe_.PaymentMethod.Cashapp; + export type Crypto = Stripe_.PaymentMethod.Crypto; + export type Custom = Stripe_.PaymentMethod.Custom; + export type CustomerBalance = Stripe_.PaymentMethod.CustomerBalance; + export type Eps = Stripe_.PaymentMethod.Eps; + export type Fpx = Stripe_.PaymentMethod.Fpx; + export type Giropay = Stripe_.PaymentMethod.Giropay; + export type Gopay = Stripe_.PaymentMethod.Gopay; + export type Grabpay = Stripe_.PaymentMethod.Grabpay; + export type IdBankTransfer = Stripe_.PaymentMethod.IdBankTransfer; + export type Ideal = Stripe_.PaymentMethod.Ideal; + export type InteracPresent = Stripe_.PaymentMethod.InteracPresent; + export type KakaoPay = Stripe_.PaymentMethod.KakaoPay; + export type Klarna = Stripe_.PaymentMethod.Klarna; + export type Konbini = Stripe_.PaymentMethod.Konbini; + export type KrCard = Stripe_.PaymentMethod.KrCard; + export type Link = Stripe_.PaymentMethod.Link; + export type MbWay = Stripe_.PaymentMethod.MbWay; + export type Mobilepay = Stripe_.PaymentMethod.Mobilepay; + export type Multibanco = Stripe_.PaymentMethod.Multibanco; + export type NaverPay = Stripe_.PaymentMethod.NaverPay; + export type NzBankAccount = Stripe_.PaymentMethod.NzBankAccount; + export type Oxxo = Stripe_.PaymentMethod.Oxxo; + export type P24 = Stripe_.PaymentMethod.P24; + export type PayByBank = Stripe_.PaymentMethod.PayByBank; + export type Payco = Stripe_.PaymentMethod.Payco; + export type Paynow = Stripe_.PaymentMethod.Paynow; + export type Paypal = Stripe_.PaymentMethod.Paypal; + export type Paypay = Stripe_.PaymentMethod.Paypay; + export type Payto = Stripe_.PaymentMethod.Payto; + export type Pix = Stripe_.PaymentMethod.Pix; + export type Promptpay = Stripe_.PaymentMethod.Promptpay; + export type Qris = Stripe_.PaymentMethod.Qris; + export type RadarOptions = Stripe_.PaymentMethod.RadarOptions; + export type Rechnung = Stripe_.PaymentMethod.Rechnung; + export type RevolutPay = Stripe_.PaymentMethod.RevolutPay; + export type SamsungPay = Stripe_.PaymentMethod.SamsungPay; + export type Satispay = Stripe_.PaymentMethod.Satispay; + export type Scalapay = Stripe_.PaymentMethod.Scalapay; + export type SepaDebit = Stripe_.PaymentMethod.SepaDebit; + export type Shopeepay = Stripe_.PaymentMethod.Shopeepay; + export type Sofort = Stripe_.PaymentMethod.Sofort; + export type StripeBalance = Stripe_.PaymentMethod.StripeBalance; + export type Sunbit = Stripe_.PaymentMethod.Sunbit; + export type Swish = Stripe_.PaymentMethod.Swish; + export type Twint = Stripe_.PaymentMethod.Twint; + export type Type = Stripe_.PaymentMethod.Type; + export type Upi = Stripe_.PaymentMethod.Upi; + export type UsBankAccount = Stripe_.PaymentMethod.UsBankAccount; + export type WechatPay = Stripe_.PaymentMethod.WechatPay; + export type Zip = Stripe_.PaymentMethod.Zip; + export namespace Card { + export type Checks = Stripe_.PaymentMethod.Card.Checks; + export type GeneratedFrom = Stripe_.PaymentMethod.Card.GeneratedFrom; + export type Networks = Stripe_.PaymentMethod.Card.Networks; + export type RegulatedStatus = Stripe_.PaymentMethod.Card.RegulatedStatus; + export type ThreeDSecureUsage = Stripe_.PaymentMethod.Card.ThreeDSecureUsage; + export type Wallet = Stripe_.PaymentMethod.Card.Wallet; + export namespace GeneratedFrom { + export type PaymentMethodDetails = Stripe_.PaymentMethod.Card.GeneratedFrom.PaymentMethodDetails; + export namespace PaymentMethodDetails { + export type CardPresent = Stripe_.PaymentMethod.Card.GeneratedFrom.PaymentMethodDetails.CardPresent; + export namespace CardPresent { + export type Offline = Stripe_.PaymentMethod.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Offline; + export type ReadMethod = Stripe_.PaymentMethod.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.ReadMethod; + export type Receipt = Stripe_.PaymentMethod.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Receipt; + export type Wallet = Stripe_.PaymentMethod.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Wallet; + export namespace Receipt { + export type AccountType = Stripe_.PaymentMethod.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Receipt.AccountType; + } + export namespace Wallet { + export type Type = Stripe_.PaymentMethod.Card.GeneratedFrom.PaymentMethodDetails.CardPresent.Wallet.Type; + } + } + } + } + export namespace Wallet { + export type AmexExpressCheckout = Stripe_.PaymentMethod.Card.Wallet.AmexExpressCheckout; + export type ApplePay = Stripe_.PaymentMethod.Card.Wallet.ApplePay; + export type GooglePay = Stripe_.PaymentMethod.Card.Wallet.GooglePay; + export type Link = Stripe_.PaymentMethod.Card.Wallet.Link; + export type Masterpass = Stripe_.PaymentMethod.Card.Wallet.Masterpass; + export type SamsungPay = Stripe_.PaymentMethod.Card.Wallet.SamsungPay; + export type Type = Stripe_.PaymentMethod.Card.Wallet.Type; + export type VisaCheckout = Stripe_.PaymentMethod.Card.Wallet.VisaCheckout; + } + } + export namespace CardPresent { + export type Networks = Stripe_.PaymentMethod.CardPresent.Networks; + export type Offline = Stripe_.PaymentMethod.CardPresent.Offline; + export type ReadMethod = Stripe_.PaymentMethod.CardPresent.ReadMethod; + export type Wallet = Stripe_.PaymentMethod.CardPresent.Wallet; + export namespace Wallet { + export type Type = Stripe_.PaymentMethod.CardPresent.Wallet.Type; + } + } + export namespace Custom { + export type Logo = Stripe_.PaymentMethod.Custom.Logo; + } + export namespace Eps { + export type Bank = Stripe_.PaymentMethod.Eps.Bank; + } + export namespace Fpx { + export type AccountHolderType = Stripe_.PaymentMethod.Fpx.AccountHolderType; + export type Bank = Stripe_.PaymentMethod.Fpx.Bank; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.PaymentMethod.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.PaymentMethod.Ideal.Bank; + export type Bic = Stripe_.PaymentMethod.Ideal.Bic; + } + export namespace InteracPresent { + export type Networks = Stripe_.PaymentMethod.InteracPresent.Networks; + export type ReadMethod = Stripe_.PaymentMethod.InteracPresent.ReadMethod; + } + export namespace Klarna { + export type Dob = Stripe_.PaymentMethod.Klarna.Dob; + } + export namespace KrCard { + export type Brand = Stripe_.PaymentMethod.KrCard.Brand; + } + export namespace NaverPay { + export type Funding = Stripe_.PaymentMethod.NaverPay.Funding; + } + export namespace P24 { + export type Bank = Stripe_.PaymentMethod.P24.Bank; + } + export namespace Rechnung { + export type Dob = Stripe_.PaymentMethod.Rechnung.Dob; + } + export namespace SepaDebit { + export type GeneratedFrom = Stripe_.PaymentMethod.SepaDebit.GeneratedFrom; + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.PaymentMethod.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.PaymentMethod.UsBankAccount.AccountType; + export type Networks = Stripe_.PaymentMethod.UsBankAccount.Networks; + export type StatusDetails = Stripe_.PaymentMethod.UsBankAccount.StatusDetails; + export namespace Networks { + export type Supported = Stripe_.PaymentMethod.UsBankAccount.Networks.Supported; + } + export namespace StatusDetails { + export type Blocked = Stripe_.PaymentMethod.UsBankAccount.StatusDetails.Blocked; + export namespace Blocked { + export type NetworkCode = Stripe_.PaymentMethod.UsBankAccount.StatusDetails.Blocked.NetworkCode; + export type Reason = Stripe_.PaymentMethod.UsBankAccount.StatusDetails.Blocked.Reason; + } + } + } } export namespace PaymentMethodConfigurationCreateParams { - export type AcssDebit = Stripe.PaymentMethodConfigurationCreateParams.AcssDebit; - export type Affirm = Stripe.PaymentMethodConfigurationCreateParams.Affirm; - export type AfterpayClearpay = Stripe.PaymentMethodConfigurationCreateParams.AfterpayClearpay; - export type Alipay = Stripe.PaymentMethodConfigurationCreateParams.Alipay; - export type Alma = Stripe.PaymentMethodConfigurationCreateParams.Alma; - export type AmazonPay = Stripe.PaymentMethodConfigurationCreateParams.AmazonPay; - export type ApplePay = Stripe.PaymentMethodConfigurationCreateParams.ApplePay; - export type ApplePayLater = Stripe.PaymentMethodConfigurationCreateParams.ApplePayLater; - export type AuBecsDebit = Stripe.PaymentMethodConfigurationCreateParams.AuBecsDebit; - export type BacsDebit = Stripe.PaymentMethodConfigurationCreateParams.BacsDebit; - export type Bancontact = Stripe.PaymentMethodConfigurationCreateParams.Bancontact; - export type Billie = Stripe.PaymentMethodConfigurationCreateParams.Billie; - export type Bizum = Stripe.PaymentMethodConfigurationCreateParams.Bizum; - export type Blik = Stripe.PaymentMethodConfigurationCreateParams.Blik; - export type Boleto = Stripe.PaymentMethodConfigurationCreateParams.Boleto; - export type Card = Stripe.PaymentMethodConfigurationCreateParams.Card; - export type CartesBancaires = Stripe.PaymentMethodConfigurationCreateParams.CartesBancaires; - export type Cashapp = Stripe.PaymentMethodConfigurationCreateParams.Cashapp; - export type Crypto = Stripe.PaymentMethodConfigurationCreateParams.Crypto; - export type CustomerBalance = Stripe.PaymentMethodConfigurationCreateParams.CustomerBalance; - export type Eps = Stripe.PaymentMethodConfigurationCreateParams.Eps; - export type Fpx = Stripe.PaymentMethodConfigurationCreateParams.Fpx; - export type FrMealVoucherConecs = Stripe.PaymentMethodConfigurationCreateParams.FrMealVoucherConecs; - export type Giropay = Stripe.PaymentMethodConfigurationCreateParams.Giropay; - export type GooglePay = Stripe.PaymentMethodConfigurationCreateParams.GooglePay; - export type Gopay = Stripe.PaymentMethodConfigurationCreateParams.Gopay; - export type Grabpay = Stripe.PaymentMethodConfigurationCreateParams.Grabpay; - export type IdBankTransfer = Stripe.PaymentMethodConfigurationCreateParams.IdBankTransfer; - export type Ideal = Stripe.PaymentMethodConfigurationCreateParams.Ideal; - export type Jcb = Stripe.PaymentMethodConfigurationCreateParams.Jcb; - export type KakaoPay = Stripe.PaymentMethodConfigurationCreateParams.KakaoPay; - export type Klarna = Stripe.PaymentMethodConfigurationCreateParams.Klarna; - export type Konbini = Stripe.PaymentMethodConfigurationCreateParams.Konbini; - export type KrCard = Stripe.PaymentMethodConfigurationCreateParams.KrCard; - export type Link = Stripe.PaymentMethodConfigurationCreateParams.Link; - export type MbWay = Stripe.PaymentMethodConfigurationCreateParams.MbWay; - export type Mobilepay = Stripe.PaymentMethodConfigurationCreateParams.Mobilepay; - export type Multibanco = Stripe.PaymentMethodConfigurationCreateParams.Multibanco; - export type NaverPay = Stripe.PaymentMethodConfigurationCreateParams.NaverPay; - export type NzBankAccount = Stripe.PaymentMethodConfigurationCreateParams.NzBankAccount; - export type Oxxo = Stripe.PaymentMethodConfigurationCreateParams.Oxxo; - export type P24 = Stripe.PaymentMethodConfigurationCreateParams.P24; - export type PayByBank = Stripe.PaymentMethodConfigurationCreateParams.PayByBank; - export type Payco = Stripe.PaymentMethodConfigurationCreateParams.Payco; - export type Paynow = Stripe.PaymentMethodConfigurationCreateParams.Paynow; - export type Paypal = Stripe.PaymentMethodConfigurationCreateParams.Paypal; - export type Paypay = Stripe.PaymentMethodConfigurationCreateParams.Paypay; - export type Payto = Stripe.PaymentMethodConfigurationCreateParams.Payto; - export type Pix = Stripe.PaymentMethodConfigurationCreateParams.Pix; - export type Promptpay = Stripe.PaymentMethodConfigurationCreateParams.Promptpay; - export type Qris = Stripe.PaymentMethodConfigurationCreateParams.Qris; - export type RevolutPay = Stripe.PaymentMethodConfigurationCreateParams.RevolutPay; - export type SamsungPay = Stripe.PaymentMethodConfigurationCreateParams.SamsungPay; - export type Satispay = Stripe.PaymentMethodConfigurationCreateParams.Satispay; - export type Scalapay = Stripe.PaymentMethodConfigurationCreateParams.Scalapay; - export type SepaDebit = Stripe.PaymentMethodConfigurationCreateParams.SepaDebit; - export type Shopeepay = Stripe.PaymentMethodConfigurationCreateParams.Shopeepay; - export type Sofort = Stripe.PaymentMethodConfigurationCreateParams.Sofort; - export type Sunbit = Stripe.PaymentMethodConfigurationCreateParams.Sunbit; - export type Swish = Stripe.PaymentMethodConfigurationCreateParams.Swish; - export type Twint = Stripe.PaymentMethodConfigurationCreateParams.Twint; - export type Upi = Stripe.PaymentMethodConfigurationCreateParams.Upi; - export type UsBankAccount = Stripe.PaymentMethodConfigurationCreateParams.UsBankAccount; - export type WechatPay = Stripe.PaymentMethodConfigurationCreateParams.WechatPay; - export type Zip = Stripe.PaymentMethodConfigurationCreateParams.Zip; + export type AcssDebit = Stripe_.PaymentMethodConfigurationCreateParams.AcssDebit; + export type Affirm = Stripe_.PaymentMethodConfigurationCreateParams.Affirm; + export type AfterpayClearpay = Stripe_.PaymentMethodConfigurationCreateParams.AfterpayClearpay; + export type Alipay = Stripe_.PaymentMethodConfigurationCreateParams.Alipay; + export type Alma = Stripe_.PaymentMethodConfigurationCreateParams.Alma; + export type AmazonPay = Stripe_.PaymentMethodConfigurationCreateParams.AmazonPay; + export type ApplePay = Stripe_.PaymentMethodConfigurationCreateParams.ApplePay; + export type ApplePayLater = Stripe_.PaymentMethodConfigurationCreateParams.ApplePayLater; + export type AuBecsDebit = Stripe_.PaymentMethodConfigurationCreateParams.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentMethodConfigurationCreateParams.BacsDebit; + export type Bancontact = Stripe_.PaymentMethodConfigurationCreateParams.Bancontact; + export type Billie = Stripe_.PaymentMethodConfigurationCreateParams.Billie; + export type Bizum = Stripe_.PaymentMethodConfigurationCreateParams.Bizum; + export type Blik = Stripe_.PaymentMethodConfigurationCreateParams.Blik; + export type Boleto = Stripe_.PaymentMethodConfigurationCreateParams.Boleto; + export type Card = Stripe_.PaymentMethodConfigurationCreateParams.Card; + export type CartesBancaires = Stripe_.PaymentMethodConfigurationCreateParams.CartesBancaires; + export type Cashapp = Stripe_.PaymentMethodConfigurationCreateParams.Cashapp; + export type Crypto = Stripe_.PaymentMethodConfigurationCreateParams.Crypto; + export type CustomerBalance = Stripe_.PaymentMethodConfigurationCreateParams.CustomerBalance; + export type Eps = Stripe_.PaymentMethodConfigurationCreateParams.Eps; + export type Fpx = Stripe_.PaymentMethodConfigurationCreateParams.Fpx; + export type FrMealVoucherConecs = Stripe_.PaymentMethodConfigurationCreateParams.FrMealVoucherConecs; + export type Giropay = Stripe_.PaymentMethodConfigurationCreateParams.Giropay; + export type GooglePay = Stripe_.PaymentMethodConfigurationCreateParams.GooglePay; + export type Gopay = Stripe_.PaymentMethodConfigurationCreateParams.Gopay; + export type Grabpay = Stripe_.PaymentMethodConfigurationCreateParams.Grabpay; + export type IdBankTransfer = Stripe_.PaymentMethodConfigurationCreateParams.IdBankTransfer; + export type Ideal = Stripe_.PaymentMethodConfigurationCreateParams.Ideal; + export type Jcb = Stripe_.PaymentMethodConfigurationCreateParams.Jcb; + export type KakaoPay = Stripe_.PaymentMethodConfigurationCreateParams.KakaoPay; + export type Klarna = Stripe_.PaymentMethodConfigurationCreateParams.Klarna; + export type Konbini = Stripe_.PaymentMethodConfigurationCreateParams.Konbini; + export type KrCard = Stripe_.PaymentMethodConfigurationCreateParams.KrCard; + export type Link = Stripe_.PaymentMethodConfigurationCreateParams.Link; + export type MbWay = Stripe_.PaymentMethodConfigurationCreateParams.MbWay; + export type Mobilepay = Stripe_.PaymentMethodConfigurationCreateParams.Mobilepay; + export type Multibanco = Stripe_.PaymentMethodConfigurationCreateParams.Multibanco; + export type NaverPay = Stripe_.PaymentMethodConfigurationCreateParams.NaverPay; + export type NzBankAccount = Stripe_.PaymentMethodConfigurationCreateParams.NzBankAccount; + export type Oxxo = Stripe_.PaymentMethodConfigurationCreateParams.Oxxo; + export type P24 = Stripe_.PaymentMethodConfigurationCreateParams.P24; + export type PayByBank = Stripe_.PaymentMethodConfigurationCreateParams.PayByBank; + export type Payco = Stripe_.PaymentMethodConfigurationCreateParams.Payco; + export type Paynow = Stripe_.PaymentMethodConfigurationCreateParams.Paynow; + export type Paypal = Stripe_.PaymentMethodConfigurationCreateParams.Paypal; + export type Paypay = Stripe_.PaymentMethodConfigurationCreateParams.Paypay; + export type Payto = Stripe_.PaymentMethodConfigurationCreateParams.Payto; + export type Pix = Stripe_.PaymentMethodConfigurationCreateParams.Pix; + export type Promptpay = Stripe_.PaymentMethodConfigurationCreateParams.Promptpay; + export type Qris = Stripe_.PaymentMethodConfigurationCreateParams.Qris; + export type RevolutPay = Stripe_.PaymentMethodConfigurationCreateParams.RevolutPay; + export type SamsungPay = Stripe_.PaymentMethodConfigurationCreateParams.SamsungPay; + export type Satispay = Stripe_.PaymentMethodConfigurationCreateParams.Satispay; + export type Scalapay = Stripe_.PaymentMethodConfigurationCreateParams.Scalapay; + export type SepaDebit = Stripe_.PaymentMethodConfigurationCreateParams.SepaDebit; + export type Shopeepay = Stripe_.PaymentMethodConfigurationCreateParams.Shopeepay; + export type Sofort = Stripe_.PaymentMethodConfigurationCreateParams.Sofort; + export type Sunbit = Stripe_.PaymentMethodConfigurationCreateParams.Sunbit; + export type Swish = Stripe_.PaymentMethodConfigurationCreateParams.Swish; + export type Twint = Stripe_.PaymentMethodConfigurationCreateParams.Twint; + export type Upi = Stripe_.PaymentMethodConfigurationCreateParams.Upi; + export type UsBankAccount = Stripe_.PaymentMethodConfigurationCreateParams.UsBankAccount; + export type WechatPay = Stripe_.PaymentMethodConfigurationCreateParams.WechatPay; + export type Zip = Stripe_.PaymentMethodConfigurationCreateParams.Zip; + export namespace AcssDebit { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.AcssDebit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.AcssDebit.DisplayPreference.Preference; + } + } + export namespace Affirm { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Affirm.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Affirm.DisplayPreference.Preference; + } + } + export namespace AfterpayClearpay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.AfterpayClearpay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.AfterpayClearpay.DisplayPreference.Preference; + } + } + export namespace Alipay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Alipay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Alipay.DisplayPreference.Preference; + } + } + export namespace Alma { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Alma.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Alma.DisplayPreference.Preference; + } + } + export namespace AmazonPay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.AmazonPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.AmazonPay.DisplayPreference.Preference; + } + } + export namespace ApplePay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.ApplePay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.ApplePay.DisplayPreference.Preference; + } + } + export namespace ApplePayLater { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.ApplePayLater.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.ApplePayLater.DisplayPreference.Preference; + } + } + export namespace AuBecsDebit { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.AuBecsDebit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.AuBecsDebit.DisplayPreference.Preference; + } + } + export namespace BacsDebit { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.BacsDebit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.BacsDebit.DisplayPreference.Preference; + } + } + export namespace Bancontact { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Bancontact.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Bancontact.DisplayPreference.Preference; + } + } + export namespace Billie { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Billie.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Billie.DisplayPreference.Preference; + } + } + export namespace Bizum { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Bizum.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Bizum.DisplayPreference.Preference; + } + } + export namespace Blik { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Blik.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Blik.DisplayPreference.Preference; + } + } + export namespace Boleto { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Boleto.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Boleto.DisplayPreference.Preference; + } + } + export namespace Card { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Card.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Card.DisplayPreference.Preference; + } + } + export namespace CartesBancaires { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.CartesBancaires.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.CartesBancaires.DisplayPreference.Preference; + } + } + export namespace Cashapp { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Cashapp.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Cashapp.DisplayPreference.Preference; + } + } + export namespace Crypto { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Crypto.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Crypto.DisplayPreference.Preference; + } + } + export namespace CustomerBalance { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.CustomerBalance.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.CustomerBalance.DisplayPreference.Preference; + } + } + export namespace Eps { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Eps.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Eps.DisplayPreference.Preference; + } + } + export namespace Fpx { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Fpx.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Fpx.DisplayPreference.Preference; + } + } + export namespace FrMealVoucherConecs { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.FrMealVoucherConecs.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.FrMealVoucherConecs.DisplayPreference.Preference; + } + } + export namespace Giropay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Giropay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Giropay.DisplayPreference.Preference; + } + } + export namespace GooglePay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.GooglePay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.GooglePay.DisplayPreference.Preference; + } + } + export namespace Gopay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Gopay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Gopay.DisplayPreference.Preference; + } + } + export namespace Grabpay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Grabpay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Grabpay.DisplayPreference.Preference; + } + } + export namespace IdBankTransfer { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.IdBankTransfer.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.IdBankTransfer.DisplayPreference.Preference; + } + } + export namespace Ideal { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Ideal.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Ideal.DisplayPreference.Preference; + } + } + export namespace Jcb { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Jcb.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Jcb.DisplayPreference.Preference; + } + } + export namespace KakaoPay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.KakaoPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.KakaoPay.DisplayPreference.Preference; + } + } + export namespace Klarna { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Klarna.DisplayPreference.Preference; + } + } + export namespace Konbini { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Konbini.DisplayPreference.Preference; + } + } + export namespace KrCard { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.KrCard.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.KrCard.DisplayPreference.Preference; + } + } + export namespace Link { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Link.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Link.DisplayPreference.Preference; + } + } + export namespace MbWay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.MbWay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.MbWay.DisplayPreference.Preference; + } + } + export namespace Mobilepay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Mobilepay.DisplayPreference.Preference; + } + } + export namespace Multibanco { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Multibanco.DisplayPreference.Preference; + } + } + export namespace NaverPay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.NaverPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.NaverPay.DisplayPreference.Preference; + } + } + export namespace NzBankAccount { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.NzBankAccount.DisplayPreference.Preference; + } + } + export namespace Oxxo { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Oxxo.DisplayPreference.Preference; + } + } + export namespace P24 { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.P24.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.P24.DisplayPreference.Preference; + } + } + export namespace PayByBank { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.PayByBank.DisplayPreference.Preference; + } + } + export namespace Payco { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Payco.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Payco.DisplayPreference.Preference; + } + } + export namespace Paynow { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Paynow.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Paynow.DisplayPreference.Preference; + } + } + export namespace Paypal { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Paypal.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Paypal.DisplayPreference.Preference; + } + } + export namespace Paypay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Paypay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Paypay.DisplayPreference.Preference; + } + } + export namespace Payto { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Payto.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Payto.DisplayPreference.Preference; + } + } + export namespace Pix { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Pix.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Pix.DisplayPreference.Preference; + } + } + export namespace Promptpay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Promptpay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Promptpay.DisplayPreference.Preference; + } + } + export namespace Qris { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Qris.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Qris.DisplayPreference.Preference; + } + } + export namespace RevolutPay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.RevolutPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.RevolutPay.DisplayPreference.Preference; + } + } + export namespace SamsungPay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.SamsungPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.SamsungPay.DisplayPreference.Preference; + } + } + export namespace Satispay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Satispay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Satispay.DisplayPreference.Preference; + } + } + export namespace Scalapay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Scalapay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Scalapay.DisplayPreference.Preference; + } + } + export namespace SepaDebit { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.SepaDebit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.SepaDebit.DisplayPreference.Preference; + } + } + export namespace Shopeepay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Shopeepay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Shopeepay.DisplayPreference.Preference; + } + } + export namespace Sofort { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Sofort.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Sofort.DisplayPreference.Preference; + } + } + export namespace Sunbit { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Sunbit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Sunbit.DisplayPreference.Preference; + } + } + export namespace Swish { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Swish.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Swish.DisplayPreference.Preference; + } + } + export namespace Twint { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Twint.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Twint.DisplayPreference.Preference; + } + } + export namespace Upi { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Upi.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Upi.DisplayPreference.Preference; + } + } + export namespace UsBankAccount { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.UsBankAccount.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.UsBankAccount.DisplayPreference.Preference; + } + } + export namespace WechatPay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.WechatPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.WechatPay.DisplayPreference.Preference; + } + } + export namespace Zip { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationCreateParams.Zip.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationCreateParams.Zip.DisplayPreference.Preference; + } + } + } + export namespace PaymentMethodConfigurationUpdateParams { + export type AcssDebit = Stripe_.PaymentMethodConfigurationUpdateParams.AcssDebit; + export type Affirm = Stripe_.PaymentMethodConfigurationUpdateParams.Affirm; + export type AfterpayClearpay = Stripe_.PaymentMethodConfigurationUpdateParams.AfterpayClearpay; + export type Alipay = Stripe_.PaymentMethodConfigurationUpdateParams.Alipay; + export type Alma = Stripe_.PaymentMethodConfigurationUpdateParams.Alma; + export type AmazonPay = Stripe_.PaymentMethodConfigurationUpdateParams.AmazonPay; + export type ApplePay = Stripe_.PaymentMethodConfigurationUpdateParams.ApplePay; + export type ApplePayLater = Stripe_.PaymentMethodConfigurationUpdateParams.ApplePayLater; + export type AuBecsDebit = Stripe_.PaymentMethodConfigurationUpdateParams.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentMethodConfigurationUpdateParams.BacsDebit; + export type Bancontact = Stripe_.PaymentMethodConfigurationUpdateParams.Bancontact; + export type Billie = Stripe_.PaymentMethodConfigurationUpdateParams.Billie; + export type Bizum = Stripe_.PaymentMethodConfigurationUpdateParams.Bizum; + export type Blik = Stripe_.PaymentMethodConfigurationUpdateParams.Blik; + export type Boleto = Stripe_.PaymentMethodConfigurationUpdateParams.Boleto; + export type Card = Stripe_.PaymentMethodConfigurationUpdateParams.Card; + export type CartesBancaires = Stripe_.PaymentMethodConfigurationUpdateParams.CartesBancaires; + export type Cashapp = Stripe_.PaymentMethodConfigurationUpdateParams.Cashapp; + export type Crypto = Stripe_.PaymentMethodConfigurationUpdateParams.Crypto; + export type CustomerBalance = Stripe_.PaymentMethodConfigurationUpdateParams.CustomerBalance; + export type Eps = Stripe_.PaymentMethodConfigurationUpdateParams.Eps; + export type Fpx = Stripe_.PaymentMethodConfigurationUpdateParams.Fpx; + export type FrMealVoucherConecs = Stripe_.PaymentMethodConfigurationUpdateParams.FrMealVoucherConecs; + export type Giropay = Stripe_.PaymentMethodConfigurationUpdateParams.Giropay; + export type GooglePay = Stripe_.PaymentMethodConfigurationUpdateParams.GooglePay; + export type Gopay = Stripe_.PaymentMethodConfigurationUpdateParams.Gopay; + export type Grabpay = Stripe_.PaymentMethodConfigurationUpdateParams.Grabpay; + export type IdBankTransfer = Stripe_.PaymentMethodConfigurationUpdateParams.IdBankTransfer; + export type Ideal = Stripe_.PaymentMethodConfigurationUpdateParams.Ideal; + export type Jcb = Stripe_.PaymentMethodConfigurationUpdateParams.Jcb; + export type KakaoPay = Stripe_.PaymentMethodConfigurationUpdateParams.KakaoPay; + export type Klarna = Stripe_.PaymentMethodConfigurationUpdateParams.Klarna; + export type Konbini = Stripe_.PaymentMethodConfigurationUpdateParams.Konbini; + export type KrCard = Stripe_.PaymentMethodConfigurationUpdateParams.KrCard; + export type Link = Stripe_.PaymentMethodConfigurationUpdateParams.Link; + export type MbWay = Stripe_.PaymentMethodConfigurationUpdateParams.MbWay; + export type Mobilepay = Stripe_.PaymentMethodConfigurationUpdateParams.Mobilepay; + export type Multibanco = Stripe_.PaymentMethodConfigurationUpdateParams.Multibanco; + export type NaverPay = Stripe_.PaymentMethodConfigurationUpdateParams.NaverPay; + export type NzBankAccount = Stripe_.PaymentMethodConfigurationUpdateParams.NzBankAccount; + export type Oxxo = Stripe_.PaymentMethodConfigurationUpdateParams.Oxxo; + export type P24 = Stripe_.PaymentMethodConfigurationUpdateParams.P24; + export type PayByBank = Stripe_.PaymentMethodConfigurationUpdateParams.PayByBank; + export type Payco = Stripe_.PaymentMethodConfigurationUpdateParams.Payco; + export type Paynow = Stripe_.PaymentMethodConfigurationUpdateParams.Paynow; + export type Paypal = Stripe_.PaymentMethodConfigurationUpdateParams.Paypal; + export type Paypay = Stripe_.PaymentMethodConfigurationUpdateParams.Paypay; + export type Payto = Stripe_.PaymentMethodConfigurationUpdateParams.Payto; + export type Pix = Stripe_.PaymentMethodConfigurationUpdateParams.Pix; + export type Promptpay = Stripe_.PaymentMethodConfigurationUpdateParams.Promptpay; + export type Qris = Stripe_.PaymentMethodConfigurationUpdateParams.Qris; + export type RevolutPay = Stripe_.PaymentMethodConfigurationUpdateParams.RevolutPay; + export type SamsungPay = Stripe_.PaymentMethodConfigurationUpdateParams.SamsungPay; + export type Satispay = Stripe_.PaymentMethodConfigurationUpdateParams.Satispay; + export type Scalapay = Stripe_.PaymentMethodConfigurationUpdateParams.Scalapay; + export type SepaDebit = Stripe_.PaymentMethodConfigurationUpdateParams.SepaDebit; + export type Shopeepay = Stripe_.PaymentMethodConfigurationUpdateParams.Shopeepay; + export type Sofort = Stripe_.PaymentMethodConfigurationUpdateParams.Sofort; + export type Sunbit = Stripe_.PaymentMethodConfigurationUpdateParams.Sunbit; + export type Swish = Stripe_.PaymentMethodConfigurationUpdateParams.Swish; + export type Twint = Stripe_.PaymentMethodConfigurationUpdateParams.Twint; + export type Upi = Stripe_.PaymentMethodConfigurationUpdateParams.Upi; + export type UsBankAccount = Stripe_.PaymentMethodConfigurationUpdateParams.UsBankAccount; + export type WechatPay = Stripe_.PaymentMethodConfigurationUpdateParams.WechatPay; + export type Zip = Stripe_.PaymentMethodConfigurationUpdateParams.Zip; + export namespace AcssDebit { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.AcssDebit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.AcssDebit.DisplayPreference.Preference; + } + } + export namespace Affirm { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Affirm.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Affirm.DisplayPreference.Preference; + } + } + export namespace AfterpayClearpay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.AfterpayClearpay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.AfterpayClearpay.DisplayPreference.Preference; + } + } + export namespace Alipay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Alipay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Alipay.DisplayPreference.Preference; + } + } + export namespace Alma { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Alma.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Alma.DisplayPreference.Preference; + } + } + export namespace AmazonPay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.AmazonPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.AmazonPay.DisplayPreference.Preference; + } + } + export namespace ApplePay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.ApplePay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.ApplePay.DisplayPreference.Preference; + } + } + export namespace ApplePayLater { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.ApplePayLater.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.ApplePayLater.DisplayPreference.Preference; + } + } + export namespace AuBecsDebit { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.AuBecsDebit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.AuBecsDebit.DisplayPreference.Preference; + } + } + export namespace BacsDebit { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.BacsDebit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.BacsDebit.DisplayPreference.Preference; + } + } + export namespace Bancontact { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Bancontact.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Bancontact.DisplayPreference.Preference; + } + } + export namespace Billie { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Billie.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Billie.DisplayPreference.Preference; + } + } + export namespace Bizum { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Bizum.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Bizum.DisplayPreference.Preference; + } + } + export namespace Blik { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Blik.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Blik.DisplayPreference.Preference; + } + } + export namespace Boleto { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Boleto.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Boleto.DisplayPreference.Preference; + } + } + export namespace Card { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Card.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Card.DisplayPreference.Preference; + } + } + export namespace CartesBancaires { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.CartesBancaires.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.CartesBancaires.DisplayPreference.Preference; + } + } + export namespace Cashapp { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Cashapp.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Cashapp.DisplayPreference.Preference; + } + } + export namespace Crypto { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Crypto.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Crypto.DisplayPreference.Preference; + } + } + export namespace CustomerBalance { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.CustomerBalance.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.CustomerBalance.DisplayPreference.Preference; + } + } + export namespace Eps { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Eps.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Eps.DisplayPreference.Preference; + } + } + export namespace Fpx { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Fpx.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Fpx.DisplayPreference.Preference; + } + } + export namespace FrMealVoucherConecs { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.FrMealVoucherConecs.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.FrMealVoucherConecs.DisplayPreference.Preference; + } + } + export namespace Giropay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Giropay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Giropay.DisplayPreference.Preference; + } + } + export namespace GooglePay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.GooglePay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.GooglePay.DisplayPreference.Preference; + } + } + export namespace Gopay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Gopay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Gopay.DisplayPreference.Preference; + } + } + export namespace Grabpay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Grabpay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Grabpay.DisplayPreference.Preference; + } + } + export namespace IdBankTransfer { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.IdBankTransfer.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.IdBankTransfer.DisplayPreference.Preference; + } + } + export namespace Ideal { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Ideal.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Ideal.DisplayPreference.Preference; + } + } + export namespace Jcb { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Jcb.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Jcb.DisplayPreference.Preference; + } + } + export namespace KakaoPay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.KakaoPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.KakaoPay.DisplayPreference.Preference; + } + } + export namespace Klarna { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Klarna.DisplayPreference.Preference; + } + } + export namespace Konbini { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Konbini.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Konbini.DisplayPreference.Preference; + } + } + export namespace KrCard { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.KrCard.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.KrCard.DisplayPreference.Preference; + } + } + export namespace Link { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Link.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Link.DisplayPreference.Preference; + } + } + export namespace MbWay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.MbWay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.MbWay.DisplayPreference.Preference; + } + } + export namespace Mobilepay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Mobilepay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Mobilepay.DisplayPreference.Preference; + } + } + export namespace Multibanco { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Multibanco.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Multibanco.DisplayPreference.Preference; + } + } + export namespace NaverPay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.NaverPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.NaverPay.DisplayPreference.Preference; + } + } + export namespace NzBankAccount { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.NzBankAccount.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.NzBankAccount.DisplayPreference.Preference; + } + } + export namespace Oxxo { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Oxxo.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Oxxo.DisplayPreference.Preference; + } + } + export namespace P24 { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.P24.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.P24.DisplayPreference.Preference; + } + } + export namespace PayByBank { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.PayByBank.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.PayByBank.DisplayPreference.Preference; + } + } + export namespace Payco { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Payco.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Payco.DisplayPreference.Preference; + } + } + export namespace Paynow { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Paynow.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Paynow.DisplayPreference.Preference; + } + } + export namespace Paypal { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Paypal.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Paypal.DisplayPreference.Preference; + } + } + export namespace Paypay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Paypay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Paypay.DisplayPreference.Preference; + } + } + export namespace Payto { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Payto.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Payto.DisplayPreference.Preference; + } + } + export namespace Pix { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Pix.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Pix.DisplayPreference.Preference; + } + } + export namespace Promptpay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Promptpay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Promptpay.DisplayPreference.Preference; + } + } + export namespace Qris { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Qris.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Qris.DisplayPreference.Preference; + } + } + export namespace RevolutPay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.RevolutPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.RevolutPay.DisplayPreference.Preference; + } + } + export namespace SamsungPay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.SamsungPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.SamsungPay.DisplayPreference.Preference; + } + } + export namespace Satispay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Satispay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Satispay.DisplayPreference.Preference; + } + } + export namespace Scalapay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Scalapay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Scalapay.DisplayPreference.Preference; + } + } + export namespace SepaDebit { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.SepaDebit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.SepaDebit.DisplayPreference.Preference; + } + } + export namespace Shopeepay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Shopeepay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Shopeepay.DisplayPreference.Preference; + } + } + export namespace Sofort { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Sofort.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Sofort.DisplayPreference.Preference; + } + } + export namespace Sunbit { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Sunbit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Sunbit.DisplayPreference.Preference; + } + } + export namespace Swish { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Swish.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Swish.DisplayPreference.Preference; + } + } + export namespace Twint { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Twint.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Twint.DisplayPreference.Preference; + } + } + export namespace Upi { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Upi.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Upi.DisplayPreference.Preference; + } + } + export namespace UsBankAccount { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.UsBankAccount.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.UsBankAccount.DisplayPreference.Preference; + } + } + export namespace WechatPay { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.WechatPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.WechatPay.DisplayPreference.Preference; + } + } + export namespace Zip { + export type DisplayPreference = Stripe_.PaymentMethodConfigurationUpdateParams.Zip.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfigurationUpdateParams.Zip.DisplayPreference.Preference; + } + } + } + export namespace PaymentMethodConfiguration { + export type AcssDebit = Stripe_.PaymentMethodConfiguration.AcssDebit; + export type Affirm = Stripe_.PaymentMethodConfiguration.Affirm; + export type AfterpayClearpay = Stripe_.PaymentMethodConfiguration.AfterpayClearpay; + export type Alipay = Stripe_.PaymentMethodConfiguration.Alipay; + export type Alma = Stripe_.PaymentMethodConfiguration.Alma; + export type AmazonPay = Stripe_.PaymentMethodConfiguration.AmazonPay; + export type ApplePay = Stripe_.PaymentMethodConfiguration.ApplePay; + export type AuBecsDebit = Stripe_.PaymentMethodConfiguration.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentMethodConfiguration.BacsDebit; + export type Bancontact = Stripe_.PaymentMethodConfiguration.Bancontact; + export type Billie = Stripe_.PaymentMethodConfiguration.Billie; + export type Bizum = Stripe_.PaymentMethodConfiguration.Bizum; + export type Blik = Stripe_.PaymentMethodConfiguration.Blik; + export type Boleto = Stripe_.PaymentMethodConfiguration.Boleto; + export type Card = Stripe_.PaymentMethodConfiguration.Card; + export type CartesBancaires = Stripe_.PaymentMethodConfiguration.CartesBancaires; + export type Cashapp = Stripe_.PaymentMethodConfiguration.Cashapp; + export type Crypto = Stripe_.PaymentMethodConfiguration.Crypto; + export type CustomerBalance = Stripe_.PaymentMethodConfiguration.CustomerBalance; + export type Eps = Stripe_.PaymentMethodConfiguration.Eps; + export type Fpx = Stripe_.PaymentMethodConfiguration.Fpx; + export type Giropay = Stripe_.PaymentMethodConfiguration.Giropay; + export type GooglePay = Stripe_.PaymentMethodConfiguration.GooglePay; + export type Gopay = Stripe_.PaymentMethodConfiguration.Gopay; + export type Grabpay = Stripe_.PaymentMethodConfiguration.Grabpay; + export type IdBankTransfer = Stripe_.PaymentMethodConfiguration.IdBankTransfer; + export type Ideal = Stripe_.PaymentMethodConfiguration.Ideal; + export type Jcb = Stripe_.PaymentMethodConfiguration.Jcb; + export type KakaoPay = Stripe_.PaymentMethodConfiguration.KakaoPay; + export type Klarna = Stripe_.PaymentMethodConfiguration.Klarna; + export type Konbini = Stripe_.PaymentMethodConfiguration.Konbini; + export type KrCard = Stripe_.PaymentMethodConfiguration.KrCard; + export type Link = Stripe_.PaymentMethodConfiguration.Link; + export type MbWay = Stripe_.PaymentMethodConfiguration.MbWay; + export type Mobilepay = Stripe_.PaymentMethodConfiguration.Mobilepay; + export type Multibanco = Stripe_.PaymentMethodConfiguration.Multibanco; + export type NaverPay = Stripe_.PaymentMethodConfiguration.NaverPay; + export type NzBankAccount = Stripe_.PaymentMethodConfiguration.NzBankAccount; + export type Oxxo = Stripe_.PaymentMethodConfiguration.Oxxo; + export type P24 = Stripe_.PaymentMethodConfiguration.P24; + export type PayByBank = Stripe_.PaymentMethodConfiguration.PayByBank; + export type Payco = Stripe_.PaymentMethodConfiguration.Payco; + export type Paynow = Stripe_.PaymentMethodConfiguration.Paynow; + export type Paypal = Stripe_.PaymentMethodConfiguration.Paypal; + export type Paypay = Stripe_.PaymentMethodConfiguration.Paypay; + export type Payto = Stripe_.PaymentMethodConfiguration.Payto; + export type Pix = Stripe_.PaymentMethodConfiguration.Pix; + export type Promptpay = Stripe_.PaymentMethodConfiguration.Promptpay; + export type Qris = Stripe_.PaymentMethodConfiguration.Qris; + export type RevolutPay = Stripe_.PaymentMethodConfiguration.RevolutPay; + export type SamsungPay = Stripe_.PaymentMethodConfiguration.SamsungPay; + export type Satispay = Stripe_.PaymentMethodConfiguration.Satispay; + export type Scalapay = Stripe_.PaymentMethodConfiguration.Scalapay; + export type SepaDebit = Stripe_.PaymentMethodConfiguration.SepaDebit; + export type Shopeepay = Stripe_.PaymentMethodConfiguration.Shopeepay; + export type Sofort = Stripe_.PaymentMethodConfiguration.Sofort; + export type Sunbit = Stripe_.PaymentMethodConfiguration.Sunbit; + export type Swish = Stripe_.PaymentMethodConfiguration.Swish; + export type Twint = Stripe_.PaymentMethodConfiguration.Twint; + export type Upi = Stripe_.PaymentMethodConfiguration.Upi; + export type UsBankAccount = Stripe_.PaymentMethodConfiguration.UsBankAccount; + export type WechatPay = Stripe_.PaymentMethodConfiguration.WechatPay; + export type Zip = Stripe_.PaymentMethodConfiguration.Zip; + export namespace AcssDebit { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.AcssDebit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.AcssDebit.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.AcssDebit.DisplayPreference.Value; + } + } + export namespace Affirm { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Affirm.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Affirm.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Affirm.DisplayPreference.Value; + } + } + export namespace AfterpayClearpay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.AfterpayClearpay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.AfterpayClearpay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.AfterpayClearpay.DisplayPreference.Value; + } + } + export namespace Alipay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Alipay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Alipay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Alipay.DisplayPreference.Value; + } + } + export namespace Alma { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Alma.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Alma.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Alma.DisplayPreference.Value; + } + } + export namespace AmazonPay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.AmazonPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.AmazonPay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.AmazonPay.DisplayPreference.Value; + } + } + export namespace ApplePay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.ApplePay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.ApplePay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.ApplePay.DisplayPreference.Value; + } + } + export namespace AuBecsDebit { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.AuBecsDebit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.AuBecsDebit.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.AuBecsDebit.DisplayPreference.Value; + } + } + export namespace BacsDebit { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.BacsDebit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.BacsDebit.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.BacsDebit.DisplayPreference.Value; + } + } + export namespace Bancontact { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Bancontact.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Bancontact.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Bancontact.DisplayPreference.Value; + } + } + export namespace Billie { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Billie.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Billie.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Billie.DisplayPreference.Value; + } + } + export namespace Bizum { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Bizum.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Bizum.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Bizum.DisplayPreference.Value; + } + } + export namespace Blik { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Blik.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Blik.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Blik.DisplayPreference.Value; + } + } + export namespace Boleto { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Boleto.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Boleto.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Boleto.DisplayPreference.Value; + } + } + export namespace Card { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Card.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Card.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Card.DisplayPreference.Value; + } + } + export namespace CartesBancaires { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.CartesBancaires.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.CartesBancaires.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.CartesBancaires.DisplayPreference.Value; + } + } + export namespace Cashapp { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Cashapp.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Cashapp.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Cashapp.DisplayPreference.Value; + } + } + export namespace Crypto { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Crypto.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Crypto.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Crypto.DisplayPreference.Value; + } + } + export namespace CustomerBalance { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.CustomerBalance.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.CustomerBalance.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.CustomerBalance.DisplayPreference.Value; + } + } + export namespace Eps { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Eps.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Eps.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Eps.DisplayPreference.Value; + } + } + export namespace Fpx { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Fpx.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Fpx.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Fpx.DisplayPreference.Value; + } + } + export namespace Giropay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Giropay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Giropay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Giropay.DisplayPreference.Value; + } + } + export namespace GooglePay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.GooglePay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.GooglePay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.GooglePay.DisplayPreference.Value; + } + } + export namespace Gopay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Gopay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Gopay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Gopay.DisplayPreference.Value; + } + } + export namespace Grabpay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Grabpay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Grabpay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Grabpay.DisplayPreference.Value; + } + } + export namespace IdBankTransfer { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.IdBankTransfer.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.IdBankTransfer.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.IdBankTransfer.DisplayPreference.Value; + } + } + export namespace Ideal { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Ideal.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Ideal.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Ideal.DisplayPreference.Value; + } + } + export namespace Jcb { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Jcb.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Jcb.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Jcb.DisplayPreference.Value; + } + } + export namespace KakaoPay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.KakaoPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.KakaoPay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.KakaoPay.DisplayPreference.Value; + } + } + export namespace Klarna { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Klarna.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Klarna.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Klarna.DisplayPreference.Value; + } + } + export namespace Konbini { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Konbini.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Konbini.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Konbini.DisplayPreference.Value; + } + } + export namespace KrCard { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.KrCard.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.KrCard.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.KrCard.DisplayPreference.Value; + } + } + export namespace Link { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Link.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Link.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Link.DisplayPreference.Value; + } + } + export namespace MbWay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.MbWay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.MbWay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.MbWay.DisplayPreference.Value; + } + } + export namespace Mobilepay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Mobilepay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Mobilepay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Mobilepay.DisplayPreference.Value; + } + } + export namespace Multibanco { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Multibanco.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Multibanco.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Multibanco.DisplayPreference.Value; + } + } + export namespace NaverPay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.NaverPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.NaverPay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.NaverPay.DisplayPreference.Value; + } + } + export namespace NzBankAccount { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.NzBankAccount.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.NzBankAccount.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.NzBankAccount.DisplayPreference.Value; + } + } + export namespace Oxxo { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Oxxo.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Oxxo.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Oxxo.DisplayPreference.Value; + } + } + export namespace P24 { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.P24.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.P24.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.P24.DisplayPreference.Value; + } + } + export namespace PayByBank { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.PayByBank.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.PayByBank.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.PayByBank.DisplayPreference.Value; + } + } + export namespace Payco { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Payco.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Payco.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Payco.DisplayPreference.Value; + } + } + export namespace Paynow { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Paynow.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Paynow.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Paynow.DisplayPreference.Value; + } + } + export namespace Paypal { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Paypal.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Paypal.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Paypal.DisplayPreference.Value; + } + } + export namespace Paypay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Paypay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Paypay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Paypay.DisplayPreference.Value; + } + } + export namespace Payto { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Payto.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Payto.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Payto.DisplayPreference.Value; + } + } + export namespace Pix { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Pix.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Pix.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Pix.DisplayPreference.Value; + } + } + export namespace Promptpay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Promptpay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Promptpay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Promptpay.DisplayPreference.Value; + } + } + export namespace Qris { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Qris.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Qris.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Qris.DisplayPreference.Value; + } + } + export namespace RevolutPay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.RevolutPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.RevolutPay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.RevolutPay.DisplayPreference.Value; + } + } + export namespace SamsungPay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.SamsungPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.SamsungPay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.SamsungPay.DisplayPreference.Value; + } + } + export namespace Satispay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Satispay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Satispay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Satispay.DisplayPreference.Value; + } + } + export namespace Scalapay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Scalapay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Scalapay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Scalapay.DisplayPreference.Value; + } + } + export namespace SepaDebit { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.SepaDebit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.SepaDebit.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.SepaDebit.DisplayPreference.Value; + } + } + export namespace Shopeepay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Shopeepay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Shopeepay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Shopeepay.DisplayPreference.Value; + } + } + export namespace Sofort { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Sofort.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Sofort.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Sofort.DisplayPreference.Value; + } + } + export namespace Sunbit { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Sunbit.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Sunbit.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Sunbit.DisplayPreference.Value; + } + } + export namespace Swish { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Swish.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Swish.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Swish.DisplayPreference.Value; + } + } + export namespace Twint { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Twint.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Twint.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Twint.DisplayPreference.Value; + } + } + export namespace Upi { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Upi.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Upi.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Upi.DisplayPreference.Value; + } + } + export namespace UsBankAccount { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.UsBankAccount.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.UsBankAccount.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.UsBankAccount.DisplayPreference.Value; + } + } + export namespace WechatPay { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.WechatPay.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.WechatPay.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.WechatPay.DisplayPreference.Value; + } + } + export namespace Zip { + export type DisplayPreference = Stripe_.PaymentMethodConfiguration.Zip.DisplayPreference; + export namespace DisplayPreference { + export type Preference = Stripe_.PaymentMethodConfiguration.Zip.DisplayPreference.Preference; + export type Value = Stripe_.PaymentMethodConfiguration.Zip.DisplayPreference.Value; + } + } + } + export namespace PaymentMethodDomain { + export type AmazonPay = Stripe_.PaymentMethodDomain.AmazonPay; + export type ApplePay = Stripe_.PaymentMethodDomain.ApplePay; + export type GooglePay = Stripe_.PaymentMethodDomain.GooglePay; + export type Klarna = Stripe_.PaymentMethodDomain.Klarna; + export type Link = Stripe_.PaymentMethodDomain.Link; + export type Paypal = Stripe_.PaymentMethodDomain.Paypal; + export namespace AmazonPay { + export type Status = Stripe_.PaymentMethodDomain.AmazonPay.Status; + export type StatusDetails = Stripe_.PaymentMethodDomain.AmazonPay.StatusDetails; + } + export namespace ApplePay { + export type Status = Stripe_.PaymentMethodDomain.ApplePay.Status; + export type StatusDetails = Stripe_.PaymentMethodDomain.ApplePay.StatusDetails; + } + export namespace GooglePay { + export type Status = Stripe_.PaymentMethodDomain.GooglePay.Status; + export type StatusDetails = Stripe_.PaymentMethodDomain.GooglePay.StatusDetails; + } + export namespace Klarna { + export type Status = Stripe_.PaymentMethodDomain.Klarna.Status; + export type StatusDetails = Stripe_.PaymentMethodDomain.Klarna.StatusDetails; + } + export namespace Link { + export type Status = Stripe_.PaymentMethodDomain.Link.Status; + export type StatusDetails = Stripe_.PaymentMethodDomain.Link.StatusDetails; + } + export namespace Paypal { + export type Status = Stripe_.PaymentMethodDomain.Paypal.Status; + export type StatusDetails = Stripe_.PaymentMethodDomain.Paypal.StatusDetails; + } + } + export namespace PaymentRecordReportPaymentParams { + export type AmountRequested = Stripe_.PaymentRecordReportPaymentParams.AmountRequested; + export type PaymentMethodDetails = Stripe_.PaymentRecordReportPaymentParams.PaymentMethodDetails; + export type CustomerDetails = Stripe_.PaymentRecordReportPaymentParams.CustomerDetails; + export type CustomerPresence = Stripe_.PaymentRecordReportPaymentParams.CustomerPresence; + export type Failed = Stripe_.PaymentRecordReportPaymentParams.Failed; + export type Guaranteed = Stripe_.PaymentRecordReportPaymentParams.Guaranteed; + export type Outcome = Stripe_.PaymentRecordReportPaymentParams.Outcome; + export type ProcessorDetails = Stripe_.PaymentRecordReportPaymentParams.ProcessorDetails; + export type ShippingDetails = Stripe_.PaymentRecordReportPaymentParams.ShippingDetails; + export namespace PaymentMethodDetails { + export type BillingDetails = Stripe_.PaymentRecordReportPaymentParams.PaymentMethodDetails.BillingDetails; + export type Custom = Stripe_.PaymentRecordReportPaymentParams.PaymentMethodDetails.Custom; + } + export namespace ProcessorDetails { + export type Custom = Stripe_.PaymentRecordReportPaymentParams.ProcessorDetails.Custom; + } + } + export namespace PaymentRecordReportPaymentAttemptParams { + export type Failed = Stripe_.PaymentRecordReportPaymentAttemptParams.Failed; + export type Guaranteed = Stripe_.PaymentRecordReportPaymentAttemptParams.Guaranteed; + export type Outcome = Stripe_.PaymentRecordReportPaymentAttemptParams.Outcome; + export type PaymentMethodDetails = Stripe_.PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails; + export type ShippingDetails = Stripe_.PaymentRecordReportPaymentAttemptParams.ShippingDetails; + export namespace PaymentMethodDetails { + export type BillingDetails = Stripe_.PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.BillingDetails; + export type Custom = Stripe_.PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails.Custom; + } + } + export namespace PaymentRecordReportPaymentAttemptInformationalParams { + export type CustomerDetails = Stripe_.PaymentRecordReportPaymentAttemptInformationalParams.CustomerDetails; + export type ShippingDetails = Stripe_.PaymentRecordReportPaymentAttemptInformationalParams.ShippingDetails; + } + export namespace PaymentRecordReportRefundParams { + export type ProcessorDetails = Stripe_.PaymentRecordReportRefundParams.ProcessorDetails; + export type Refunded = Stripe_.PaymentRecordReportRefundParams.Refunded; + export type Amount = Stripe_.PaymentRecordReportRefundParams.Amount; + export namespace ProcessorDetails { + export type Custom = Stripe_.PaymentRecordReportRefundParams.ProcessorDetails.Custom; + } + } + export namespace PaymentRecord { + export type Amount = Stripe_.PaymentRecord.Amount; + export type AmountAuthorized = Stripe_.PaymentRecord.AmountAuthorized; + export type AmountCanceled = Stripe_.PaymentRecord.AmountCanceled; + export type AmountFailed = Stripe_.PaymentRecord.AmountFailed; + export type AmountGuaranteed = Stripe_.PaymentRecord.AmountGuaranteed; + export type AmountRefunded = Stripe_.PaymentRecord.AmountRefunded; + export type AmountRequested = Stripe_.PaymentRecord.AmountRequested; + export type CustomerDetails = Stripe_.PaymentRecord.CustomerDetails; + export type CustomerPresence = Stripe_.PaymentRecord.CustomerPresence; + export type PaymentMethodDetails = Stripe_.PaymentRecord.PaymentMethodDetails; + export type ProcessorDetails = Stripe_.PaymentRecord.ProcessorDetails; + export type ReportedBy = Stripe_.PaymentRecord.ReportedBy; + export type ShippingDetails = Stripe_.PaymentRecord.ShippingDetails; + export namespace PaymentMethodDetails { + export type AchCreditTransfer = Stripe_.PaymentRecord.PaymentMethodDetails.AchCreditTransfer; + export type AchDebit = Stripe_.PaymentRecord.PaymentMethodDetails.AchDebit; + export type AcssDebit = Stripe_.PaymentRecord.PaymentMethodDetails.AcssDebit; + export type Affirm = Stripe_.PaymentRecord.PaymentMethodDetails.Affirm; + export type AfterpayClearpay = Stripe_.PaymentRecord.PaymentMethodDetails.AfterpayClearpay; + export type Alipay = Stripe_.PaymentRecord.PaymentMethodDetails.Alipay; + export type Alma = Stripe_.PaymentRecord.PaymentMethodDetails.Alma; + export type AmazonPay = Stripe_.PaymentRecord.PaymentMethodDetails.AmazonPay; + export type AuBecsDebit = Stripe_.PaymentRecord.PaymentMethodDetails.AuBecsDebit; + export type BacsDebit = Stripe_.PaymentRecord.PaymentMethodDetails.BacsDebit; + export type Bancontact = Stripe_.PaymentRecord.PaymentMethodDetails.Bancontact; + export type Billie = Stripe_.PaymentRecord.PaymentMethodDetails.Billie; + export type BillingDetails = Stripe_.PaymentRecord.PaymentMethodDetails.BillingDetails; + export type Bizum = Stripe_.PaymentRecord.PaymentMethodDetails.Bizum; + export type Blik = Stripe_.PaymentRecord.PaymentMethodDetails.Blik; + export type Boleto = Stripe_.PaymentRecord.PaymentMethodDetails.Boleto; + export type Card = Stripe_.PaymentRecord.PaymentMethodDetails.Card; + export type CardPresent = Stripe_.PaymentRecord.PaymentMethodDetails.CardPresent; + export type Cashapp = Stripe_.PaymentRecord.PaymentMethodDetails.Cashapp; + export type Crypto = Stripe_.PaymentRecord.PaymentMethodDetails.Crypto; + export type Custom = Stripe_.PaymentRecord.PaymentMethodDetails.Custom; + export type CustomerBalance = Stripe_.PaymentRecord.PaymentMethodDetails.CustomerBalance; + export type Eps = Stripe_.PaymentRecord.PaymentMethodDetails.Eps; + export type Fpx = Stripe_.PaymentRecord.PaymentMethodDetails.Fpx; + export type Giropay = Stripe_.PaymentRecord.PaymentMethodDetails.Giropay; + export type Gopay = Stripe_.PaymentRecord.PaymentMethodDetails.Gopay; + export type Grabpay = Stripe_.PaymentRecord.PaymentMethodDetails.Grabpay; + export type IdBankTransfer = Stripe_.PaymentRecord.PaymentMethodDetails.IdBankTransfer; + export type Ideal = Stripe_.PaymentRecord.PaymentMethodDetails.Ideal; + export type InteracPresent = Stripe_.PaymentRecord.PaymentMethodDetails.InteracPresent; + export type KakaoPay = Stripe_.PaymentRecord.PaymentMethodDetails.KakaoPay; + export type Klarna = Stripe_.PaymentRecord.PaymentMethodDetails.Klarna; + export type Konbini = Stripe_.PaymentRecord.PaymentMethodDetails.Konbini; + export type KrCard = Stripe_.PaymentRecord.PaymentMethodDetails.KrCard; + export type Link = Stripe_.PaymentRecord.PaymentMethodDetails.Link; + export type MbWay = Stripe_.PaymentRecord.PaymentMethodDetails.MbWay; + export type Mobilepay = Stripe_.PaymentRecord.PaymentMethodDetails.Mobilepay; + export type Multibanco = Stripe_.PaymentRecord.PaymentMethodDetails.Multibanco; + export type NaverPay = Stripe_.PaymentRecord.PaymentMethodDetails.NaverPay; + export type NzBankAccount = Stripe_.PaymentRecord.PaymentMethodDetails.NzBankAccount; + export type Oxxo = Stripe_.PaymentRecord.PaymentMethodDetails.Oxxo; + export type P24 = Stripe_.PaymentRecord.PaymentMethodDetails.P24; + export type PayByBank = Stripe_.PaymentRecord.PaymentMethodDetails.PayByBank; + export type Payco = Stripe_.PaymentRecord.PaymentMethodDetails.Payco; + export type Paynow = Stripe_.PaymentRecord.PaymentMethodDetails.Paynow; + export type Paypal = Stripe_.PaymentRecord.PaymentMethodDetails.Paypal; + export type Paypay = Stripe_.PaymentRecord.PaymentMethodDetails.Paypay; + export type Payto = Stripe_.PaymentRecord.PaymentMethodDetails.Payto; + export type Pix = Stripe_.PaymentRecord.PaymentMethodDetails.Pix; + export type Promptpay = Stripe_.PaymentRecord.PaymentMethodDetails.Promptpay; + export type Qris = Stripe_.PaymentRecord.PaymentMethodDetails.Qris; + export type Rechnung = Stripe_.PaymentRecord.PaymentMethodDetails.Rechnung; + export type RevolutPay = Stripe_.PaymentRecord.PaymentMethodDetails.RevolutPay; + export type SamsungPay = Stripe_.PaymentRecord.PaymentMethodDetails.SamsungPay; + export type Satispay = Stripe_.PaymentRecord.PaymentMethodDetails.Satispay; + export type Scalapay = Stripe_.PaymentRecord.PaymentMethodDetails.Scalapay; + export type SepaCreditTransfer = Stripe_.PaymentRecord.PaymentMethodDetails.SepaCreditTransfer; + export type SepaDebit = Stripe_.PaymentRecord.PaymentMethodDetails.SepaDebit; + export type Shopeepay = Stripe_.PaymentRecord.PaymentMethodDetails.Shopeepay; + export type Sofort = Stripe_.PaymentRecord.PaymentMethodDetails.Sofort; + export type StripeAccount = Stripe_.PaymentRecord.PaymentMethodDetails.StripeAccount; + export type StripeBalance = Stripe_.PaymentRecord.PaymentMethodDetails.StripeBalance; + export type Sunbit = Stripe_.PaymentRecord.PaymentMethodDetails.Sunbit; + export type Swish = Stripe_.PaymentRecord.PaymentMethodDetails.Swish; + export type Twint = Stripe_.PaymentRecord.PaymentMethodDetails.Twint; + export type Upi = Stripe_.PaymentRecord.PaymentMethodDetails.Upi; + export type UsBankAccount = Stripe_.PaymentRecord.PaymentMethodDetails.UsBankAccount; + export type Wechat = Stripe_.PaymentRecord.PaymentMethodDetails.Wechat; + export type WechatPay = Stripe_.PaymentRecord.PaymentMethodDetails.WechatPay; + export type Zip = Stripe_.PaymentRecord.PaymentMethodDetails.Zip; + export namespace AchDebit { + export type AccountHolderType = Stripe_.PaymentRecord.PaymentMethodDetails.AchDebit.AccountHolderType; + } + export namespace Alma { + export type Installments = Stripe_.PaymentRecord.PaymentMethodDetails.Alma.Installments; + } + export namespace AmazonPay { + export type Funding = Stripe_.PaymentRecord.PaymentMethodDetails.AmazonPay.Funding; + export namespace Funding { + export type Card = Stripe_.PaymentRecord.PaymentMethodDetails.AmazonPay.Funding.Card; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.PaymentRecord.PaymentMethodDetails.Bancontact.PreferredLanguage; + } + export namespace Card { + export type Brand = Stripe_.PaymentRecord.PaymentMethodDetails.Card.Brand; + export type Checks = Stripe_.PaymentRecord.PaymentMethodDetails.Card.Checks; + export type Funding = Stripe_.PaymentRecord.PaymentMethodDetails.Card.Funding; + export type Installments = Stripe_.PaymentRecord.PaymentMethodDetails.Card.Installments; + export type Network = Stripe_.PaymentRecord.PaymentMethodDetails.Card.Network; + export type NetworkToken = Stripe_.PaymentRecord.PaymentMethodDetails.Card.NetworkToken; + export type StoredCredentialUsage = Stripe_.PaymentRecord.PaymentMethodDetails.Card.StoredCredentialUsage; + export type ThreeDSecure = Stripe_.PaymentRecord.PaymentMethodDetails.Card.ThreeDSecure; + export type Wallet = Stripe_.PaymentRecord.PaymentMethodDetails.Card.Wallet; + export namespace Checks { + export type AddressLine1Check = Stripe_.PaymentRecord.PaymentMethodDetails.Card.Checks.AddressLine1Check; + export type AddressPostalCodeCheck = Stripe_.PaymentRecord.PaymentMethodDetails.Card.Checks.AddressPostalCodeCheck; + export type CvcCheck = Stripe_.PaymentRecord.PaymentMethodDetails.Card.Checks.CvcCheck; + } + export namespace Installments { + export type Plan = Stripe_.PaymentRecord.PaymentMethodDetails.Card.Installments.Plan; + export namespace Plan { + export type Type = Stripe_.PaymentRecord.PaymentMethodDetails.Card.Installments.Plan.Type; + } + } + export namespace ThreeDSecure { + export type AuthenticationFlow = Stripe_.PaymentRecord.PaymentMethodDetails.Card.ThreeDSecure.AuthenticationFlow; + export type ElectronicCommerceIndicator = Stripe_.PaymentRecord.PaymentMethodDetails.Card.ThreeDSecure.ElectronicCommerceIndicator; + export type ExemptionIndicator = Stripe_.PaymentRecord.PaymentMethodDetails.Card.ThreeDSecure.ExemptionIndicator; + export type Result = Stripe_.PaymentRecord.PaymentMethodDetails.Card.ThreeDSecure.Result; + export type ResultReason = Stripe_.PaymentRecord.PaymentMethodDetails.Card.ThreeDSecure.ResultReason; + export type Version = Stripe_.PaymentRecord.PaymentMethodDetails.Card.ThreeDSecure.Version; + } + export namespace Wallet { + export type ApplePay = Stripe_.PaymentRecord.PaymentMethodDetails.Card.Wallet.ApplePay; + export type GooglePay = Stripe_.PaymentRecord.PaymentMethodDetails.Card.Wallet.GooglePay; + } + } + export namespace CardPresent { + export type Offline = Stripe_.PaymentRecord.PaymentMethodDetails.CardPresent.Offline; + export type ReadMethod = Stripe_.PaymentRecord.PaymentMethodDetails.CardPresent.ReadMethod; + export type Receipt = Stripe_.PaymentRecord.PaymentMethodDetails.CardPresent.Receipt; + export type Wallet = Stripe_.PaymentRecord.PaymentMethodDetails.CardPresent.Wallet; + export namespace Receipt { + export type AccountType = Stripe_.PaymentRecord.PaymentMethodDetails.CardPresent.Receipt.AccountType; + } + export namespace Wallet { + export type Type = Stripe_.PaymentRecord.PaymentMethodDetails.CardPresent.Wallet.Type; + } + } + export namespace Crypto { + export type Network = Stripe_.PaymentRecord.PaymentMethodDetails.Crypto.Network; + export type TokenCurrency = Stripe_.PaymentRecord.PaymentMethodDetails.Crypto.TokenCurrency; + } + export namespace Eps { + export type Bank = Stripe_.PaymentRecord.PaymentMethodDetails.Eps.Bank; + } + export namespace Fpx { + export type AccountHolderType = Stripe_.PaymentRecord.PaymentMethodDetails.Fpx.AccountHolderType; + export type Bank = Stripe_.PaymentRecord.PaymentMethodDetails.Fpx.Bank; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.PaymentRecord.PaymentMethodDetails.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.PaymentRecord.PaymentMethodDetails.Ideal.Bank; + export type Bic = Stripe_.PaymentRecord.PaymentMethodDetails.Ideal.Bic; + } + export namespace InteracPresent { + export type ReadMethod = Stripe_.PaymentRecord.PaymentMethodDetails.InteracPresent.ReadMethod; + export type Receipt = Stripe_.PaymentRecord.PaymentMethodDetails.InteracPresent.Receipt; + export namespace Receipt { + export type AccountType = Stripe_.PaymentRecord.PaymentMethodDetails.InteracPresent.Receipt.AccountType; + } + } + export namespace Klarna { + export type PayerDetails = Stripe_.PaymentRecord.PaymentMethodDetails.Klarna.PayerDetails; + export namespace PayerDetails { + export type Address = Stripe_.PaymentRecord.PaymentMethodDetails.Klarna.PayerDetails.Address; + } + } + export namespace Konbini { + export type Store = Stripe_.PaymentRecord.PaymentMethodDetails.Konbini.Store; + export namespace Store { + export type Chain = Stripe_.PaymentRecord.PaymentMethodDetails.Konbini.Store.Chain; + } + } + export namespace KrCard { + export type Brand = Stripe_.PaymentRecord.PaymentMethodDetails.KrCard.Brand; + } + export namespace Mobilepay { + export type Card = Stripe_.PaymentRecord.PaymentMethodDetails.Mobilepay.Card; + } + export namespace P24 { + export type Bank = Stripe_.PaymentRecord.PaymentMethodDetails.P24.Bank; + } + export namespace Paypal { + export type SellerProtection = Stripe_.PaymentRecord.PaymentMethodDetails.Paypal.SellerProtection; + export namespace SellerProtection { + export type DisputeCategory = Stripe_.PaymentRecord.PaymentMethodDetails.Paypal.SellerProtection.DisputeCategory; + export type Status = Stripe_.PaymentRecord.PaymentMethodDetails.Paypal.SellerProtection.Status; + } + } + export namespace RevolutPay { + export type Funding = Stripe_.PaymentRecord.PaymentMethodDetails.RevolutPay.Funding; + export namespace Funding { + export type Card = Stripe_.PaymentRecord.PaymentMethodDetails.RevolutPay.Funding.Card; + } + } + export namespace Sofort { + export type PreferredLanguage = Stripe_.PaymentRecord.PaymentMethodDetails.Sofort.PreferredLanguage; + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.PaymentRecord.PaymentMethodDetails.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.PaymentRecord.PaymentMethodDetails.UsBankAccount.AccountType; + } + } + export namespace ProcessorDetails { + export type Custom = Stripe_.PaymentRecord.ProcessorDetails.Custom; + } + } + export namespace PayoutCreateParams { + export type Method = Stripe_.PayoutCreateParams.Method; + export type SourceType = Stripe_.PayoutCreateParams.SourceType; + } + export namespace Payout { + export type ReconciliationStatus = Stripe_.Payout.ReconciliationStatus; + export type TraceId = Stripe_.Payout.TraceId; + export type Type = Stripe_.Payout.Type; + } + export namespace PlanCreateParams { + export type Interval = Stripe_.PlanCreateParams.Interval; + export type BillingScheme = Stripe_.PlanCreateParams.BillingScheme; + export type Product = Stripe_.PlanCreateParams.Product; + export type Tier = Stripe_.PlanCreateParams.Tier; + export type TiersMode = Stripe_.PlanCreateParams.TiersMode; + export type TransformUsage = Stripe_.PlanCreateParams.TransformUsage; + export type UsageType = Stripe_.PlanCreateParams.UsageType; + export namespace Product { + export type TaxDetails = Stripe_.PlanCreateParams.Product.TaxDetails; + } + export namespace TransformUsage { + export type Round = Stripe_.PlanCreateParams.TransformUsage.Round; + } + } + export namespace Plan { + export type BillingScheme = Stripe_.Plan.BillingScheme; + export type Interval = Stripe_.Plan.Interval; + export type Tier = Stripe_.Plan.Tier; + export type TiersMode = Stripe_.Plan.TiersMode; + export type TransformUsage = Stripe_.Plan.TransformUsage; + export type UsageType = Stripe_.Plan.UsageType; + export namespace TransformUsage { + export type Round = Stripe_.Plan.TransformUsage.Round; + } + } + export namespace PriceCreateParams { + export type BillingScheme = Stripe_.PriceCreateParams.BillingScheme; + export type CurrencyOptions = Stripe_.PriceCreateParams.CurrencyOptions; + export type CustomUnitAmount = Stripe_.PriceCreateParams.CustomUnitAmount; + export type ProductData = Stripe_.PriceCreateParams.ProductData; + export type Recurring = Stripe_.PriceCreateParams.Recurring; + export type TaxBehavior = Stripe_.PriceCreateParams.TaxBehavior; + export type Tier = Stripe_.PriceCreateParams.Tier; + export type TiersMode = Stripe_.PriceCreateParams.TiersMode; + export type TransformQuantity = Stripe_.PriceCreateParams.TransformQuantity; + export namespace CurrencyOptions { + export type CustomUnitAmount = Stripe_.PriceCreateParams.CurrencyOptions.CustomUnitAmount; + export type TaxBehavior = Stripe_.PriceCreateParams.CurrencyOptions.TaxBehavior; + export type Tier = Stripe_.PriceCreateParams.CurrencyOptions.Tier; + } + export namespace ProductData { + export type TaxDetails = Stripe_.PriceCreateParams.ProductData.TaxDetails; + } + export namespace Recurring { + export type Interval = Stripe_.PriceCreateParams.Recurring.Interval; + export type UsageType = Stripe_.PriceCreateParams.Recurring.UsageType; + } + export namespace TransformQuantity { + export type Round = Stripe_.PriceCreateParams.TransformQuantity.Round; + } + } + export namespace PriceUpdateParams { + export type CurrencyOptions = Stripe_.PriceUpdateParams.CurrencyOptions; + export type MigrateTo = Stripe_.PriceUpdateParams.MigrateTo; + export type TaxBehavior = Stripe_.PriceUpdateParams.TaxBehavior; + export namespace CurrencyOptions { + export type CustomUnitAmount = Stripe_.PriceUpdateParams.CurrencyOptions.CustomUnitAmount; + export type TaxBehavior = Stripe_.PriceUpdateParams.CurrencyOptions.TaxBehavior; + export type Tier = Stripe_.PriceUpdateParams.CurrencyOptions.Tier; + } + } + export namespace PriceListParams { + export type Recurring = Stripe_.PriceListParams.Recurring; + export type Type = Stripe_.PriceListParams.Type; + export namespace Recurring { + export type Interval = Stripe_.PriceListParams.Recurring.Interval; + export type UsageType = Stripe_.PriceListParams.Recurring.UsageType; + } + } + export namespace Price { + export type BillingScheme = Stripe_.Price.BillingScheme; + export type CurrencyOptions = Stripe_.Price.CurrencyOptions; + export type CustomUnitAmount = Stripe_.Price.CustomUnitAmount; + export type MigrateTo = Stripe_.Price.MigrateTo; + export type Recurring = Stripe_.Price.Recurring; + export type TaxBehavior = Stripe_.Price.TaxBehavior; + export type Tier = Stripe_.Price.Tier; + export type TiersMode = Stripe_.Price.TiersMode; + export type TransformQuantity = Stripe_.Price.TransformQuantity; + export type Type = Stripe_.Price.Type; + export namespace CurrencyOptions { + export type CustomUnitAmount = Stripe_.Price.CurrencyOptions.CustomUnitAmount; + export type TaxBehavior = Stripe_.Price.CurrencyOptions.TaxBehavior; + export type Tier = Stripe_.Price.CurrencyOptions.Tier; + } + export namespace Recurring { + export type Interval = Stripe_.Price.Recurring.Interval; + export type UsageType = Stripe_.Price.Recurring.UsageType; + } + export namespace TransformQuantity { + export type Round = Stripe_.Price.TransformQuantity.Round; + } + } + export namespace ProductCreateParams { + export type DefaultPriceData = Stripe_.ProductCreateParams.DefaultPriceData; + export type MarketingFeature = Stripe_.ProductCreateParams.MarketingFeature; + export type PackageDimensions = Stripe_.ProductCreateParams.PackageDimensions; + export type TaxDetails = Stripe_.ProductCreateParams.TaxDetails; + export type Type = Stripe_.ProductCreateParams.Type; + export namespace DefaultPriceData { + export type CurrencyOptions = Stripe_.ProductCreateParams.DefaultPriceData.CurrencyOptions; + export type CustomUnitAmount = Stripe_.ProductCreateParams.DefaultPriceData.CustomUnitAmount; + export type Recurring = Stripe_.ProductCreateParams.DefaultPriceData.Recurring; + export type TaxBehavior = Stripe_.ProductCreateParams.DefaultPriceData.TaxBehavior; + export namespace CurrencyOptions { + export type CustomUnitAmount = Stripe_.ProductCreateParams.DefaultPriceData.CurrencyOptions.CustomUnitAmount; + export type TaxBehavior = Stripe_.ProductCreateParams.DefaultPriceData.CurrencyOptions.TaxBehavior; + export type Tier = Stripe_.ProductCreateParams.DefaultPriceData.CurrencyOptions.Tier; + } + export namespace Recurring { + export type Interval = Stripe_.ProductCreateParams.DefaultPriceData.Recurring.Interval; + } + } + } + export namespace ProductUpdateParams { + export type MarketingFeature = Stripe_.ProductUpdateParams.MarketingFeature; + export type PackageDimensions = Stripe_.ProductUpdateParams.PackageDimensions; + export type TaxDetails = Stripe_.ProductUpdateParams.TaxDetails; + } + export namespace ProductListParams { + export type Type = Stripe_.ProductListParams.Type; + } + export namespace Product { + export type MarketingFeature = Stripe_.Product.MarketingFeature; + export type PackageDimensions = Stripe_.Product.PackageDimensions; + export type TaxDetails = Stripe_.Product.TaxDetails; + export type Type = Stripe_.Product.Type; + } + export namespace PromotionCodeCreateParams { + export type Promotion = Stripe_.PromotionCodeCreateParams.Promotion; + export type Restrictions = Stripe_.PromotionCodeCreateParams.Restrictions; + export namespace Restrictions { + export type CurrencyOptions = Stripe_.PromotionCodeCreateParams.Restrictions.CurrencyOptions; + } + } + export namespace PromotionCodeUpdateParams { + export type Restrictions = Stripe_.PromotionCodeUpdateParams.Restrictions; + export namespace Restrictions { + export type CurrencyOptions = Stripe_.PromotionCodeUpdateParams.Restrictions.CurrencyOptions; + } + } + export namespace PromotionCode { + export type Promotion = Stripe_.PromotionCode.Promotion; + export type Restrictions = Stripe_.PromotionCode.Restrictions; + export namespace Restrictions { + export type CurrencyOptions = Stripe_.PromotionCode.Restrictions.CurrencyOptions; + } + } + export namespace QuoteCreateParams { + export type AutomaticTax = Stripe_.QuoteCreateParams.AutomaticTax; + export type CollectionMethod = Stripe_.QuoteCreateParams.CollectionMethod; + export type Discount = Stripe_.QuoteCreateParams.Discount; + export type FromQuote = Stripe_.QuoteCreateParams.FromQuote; + export type InvoiceSettings = Stripe_.QuoteCreateParams.InvoiceSettings; + export type LineItem = Stripe_.QuoteCreateParams.LineItem; + export type Line = Stripe_.QuoteCreateParams.Line; + export type SubscriptionData = Stripe_.QuoteCreateParams.SubscriptionData; + export type SubscriptionDataOverride = Stripe_.QuoteCreateParams.SubscriptionDataOverride; + export type TransferData = Stripe_.QuoteCreateParams.TransferData; + export namespace AutomaticTax { + export type Liability = Stripe_.QuoteCreateParams.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.QuoteCreateParams.AutomaticTax.Liability.Type; + } + } + export namespace Discount { + export type DiscountEnd = Stripe_.QuoteCreateParams.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.QuoteCreateParams.Discount.DiscountEnd.Duration; + export type Type = Stripe_.QuoteCreateParams.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteCreateParams.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.QuoteCreateParams.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.QuoteCreateParams.InvoiceSettings.Issuer.Type; + } + } + export namespace Line { + export type Action = Stripe_.QuoteCreateParams.Line.Action; + export type AppliesTo = Stripe_.QuoteCreateParams.Line.AppliesTo; + export type BillingCycleAnchor = Stripe_.QuoteCreateParams.Line.BillingCycleAnchor; + export type CancelSubscriptionSchedule = Stripe_.QuoteCreateParams.Line.CancelSubscriptionSchedule; + export type EndsAt = Stripe_.QuoteCreateParams.Line.EndsAt; + export type ProrationBehavior = Stripe_.QuoteCreateParams.Line.ProrationBehavior; + export type SetPauseCollection = Stripe_.QuoteCreateParams.Line.SetPauseCollection; + export type SetScheduleEnd = Stripe_.QuoteCreateParams.Line.SetScheduleEnd; + export type StartsAt = Stripe_.QuoteCreateParams.Line.StartsAt; + export type TrialSettings = Stripe_.QuoteCreateParams.Line.TrialSettings; + export namespace Action { + export type AddDiscount = Stripe_.QuoteCreateParams.Line.Action.AddDiscount; + export type AddItem = Stripe_.QuoteCreateParams.Line.Action.AddItem; + export type RemoveDiscount = Stripe_.QuoteCreateParams.Line.Action.RemoveDiscount; + export type RemoveItem = Stripe_.QuoteCreateParams.Line.Action.RemoveItem; + export type SetDiscount = Stripe_.QuoteCreateParams.Line.Action.SetDiscount; + export type SetItem = Stripe_.QuoteCreateParams.Line.Action.SetItem; + export type Type = Stripe_.QuoteCreateParams.Line.Action.Type; + export namespace AddDiscount { + export type DiscountEnd = Stripe_.QuoteCreateParams.Line.Action.AddDiscount.DiscountEnd; + } + export namespace AddItem { + export type Discount = Stripe_.QuoteCreateParams.Line.Action.AddItem.Discount; + export type Trial = Stripe_.QuoteCreateParams.Line.Action.AddItem.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.QuoteCreateParams.Line.Action.AddItem.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.QuoteCreateParams.Line.Action.AddItem.Discount.DiscountEnd.Duration; + export type Type = Stripe_.QuoteCreateParams.Line.Action.AddItem.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteCreateParams.Line.Action.AddItem.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Trial { + export type Type = Stripe_.QuoteCreateParams.Line.Action.AddItem.Trial.Type; + } + } + export namespace SetItem { + export type Discount = Stripe_.QuoteCreateParams.Line.Action.SetItem.Discount; + export type Trial = Stripe_.QuoteCreateParams.Line.Action.SetItem.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.QuoteCreateParams.Line.Action.SetItem.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.QuoteCreateParams.Line.Action.SetItem.Discount.DiscountEnd.Duration; + export type Type = Stripe_.QuoteCreateParams.Line.Action.SetItem.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteCreateParams.Line.Action.SetItem.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Trial { + export type Type = Stripe_.QuoteCreateParams.Line.Action.SetItem.Trial.Type; + } + } + } + export namespace AppliesTo { + export type Type = Stripe_.QuoteCreateParams.Line.AppliesTo.Type; + } + export namespace EndsAt { + export type DiscountEnd = Stripe_.QuoteCreateParams.Line.EndsAt.DiscountEnd; + export type Duration = Stripe_.QuoteCreateParams.Line.EndsAt.Duration; + export type Type = Stripe_.QuoteCreateParams.Line.EndsAt.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteCreateParams.Line.EndsAt.Duration.Interval; + } + } + export namespace SetPauseCollection { + export type Set = Stripe_.QuoteCreateParams.Line.SetPauseCollection.Set; + export type Type = Stripe_.QuoteCreateParams.Line.SetPauseCollection.Type; + export namespace Set { + export type Behavior = Stripe_.QuoteCreateParams.Line.SetPauseCollection.Set.Behavior; + } + } + export namespace StartsAt { + export type DiscountEnd = Stripe_.QuoteCreateParams.Line.StartsAt.DiscountEnd; + export type LineEndsAt = Stripe_.QuoteCreateParams.Line.StartsAt.LineEndsAt; + export type Type = Stripe_.QuoteCreateParams.Line.StartsAt.Type; + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.QuoteCreateParams.Line.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type ProrateUpFront = Stripe_.QuoteCreateParams.Line.TrialSettings.EndBehavior.ProrateUpFront; + } + } + } + export namespace LineItem { + export type Discount = Stripe_.QuoteCreateParams.LineItem.Discount; + export type PriceData = Stripe_.QuoteCreateParams.LineItem.PriceData; + export namespace Discount { + export type DiscountEnd = Stripe_.QuoteCreateParams.LineItem.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.QuoteCreateParams.LineItem.Discount.DiscountEnd.Duration; + export type Type = Stripe_.QuoteCreateParams.LineItem.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteCreateParams.LineItem.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type Recurring = Stripe_.QuoteCreateParams.LineItem.PriceData.Recurring; + export type TaxBehavior = Stripe_.QuoteCreateParams.LineItem.PriceData.TaxBehavior; + export namespace Recurring { + export type Interval = Stripe_.QuoteCreateParams.LineItem.PriceData.Recurring.Interval; + } + } + } + export namespace SubscriptionData { + export type BillOnAcceptance = Stripe_.QuoteCreateParams.SubscriptionData.BillOnAcceptance; + export type BillingBehavior = Stripe_.QuoteCreateParams.SubscriptionData.BillingBehavior; + export type BillingMode = Stripe_.QuoteCreateParams.SubscriptionData.BillingMode; + export type EndBehavior = Stripe_.QuoteCreateParams.SubscriptionData.EndBehavior; + export type Prebilling = Stripe_.QuoteCreateParams.SubscriptionData.Prebilling; + export type ProrationBehavior = Stripe_.QuoteCreateParams.SubscriptionData.ProrationBehavior; + export namespace BillingMode { + export type Flexible = Stripe_.QuoteCreateParams.SubscriptionData.BillingMode.Flexible; + export type Type = Stripe_.QuoteCreateParams.SubscriptionData.BillingMode.Type; + export namespace Flexible { + export type ProrationDiscounts = Stripe_.QuoteCreateParams.SubscriptionData.BillingMode.Flexible.ProrationDiscounts; + } + } + export namespace BillOnAcceptance { + export type BillFrom = Stripe_.QuoteCreateParams.SubscriptionData.BillOnAcceptance.BillFrom; + export type BillUntil = Stripe_.QuoteCreateParams.SubscriptionData.BillOnAcceptance.BillUntil; + export namespace BillFrom { + export type LineStartsAt = Stripe_.QuoteCreateParams.SubscriptionData.BillOnAcceptance.BillFrom.LineStartsAt; + export type Type = Stripe_.QuoteCreateParams.SubscriptionData.BillOnAcceptance.BillFrom.Type; + } + export namespace BillUntil { + export type Duration = Stripe_.QuoteCreateParams.SubscriptionData.BillOnAcceptance.BillUntil.Duration; + export type LineEndsAt = Stripe_.QuoteCreateParams.SubscriptionData.BillOnAcceptance.BillUntil.LineEndsAt; + export type Type = Stripe_.QuoteCreateParams.SubscriptionData.BillOnAcceptance.BillUntil.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteCreateParams.SubscriptionData.BillOnAcceptance.BillUntil.Duration.Interval; + } + } + } + } + export namespace SubscriptionDataOverride { + export type AppliesTo = Stripe_.QuoteCreateParams.SubscriptionDataOverride.AppliesTo; + export type BillOnAcceptance = Stripe_.QuoteCreateParams.SubscriptionDataOverride.BillOnAcceptance; + export type BillingBehavior = Stripe_.QuoteCreateParams.SubscriptionDataOverride.BillingBehavior; + export type EndBehavior = Stripe_.QuoteCreateParams.SubscriptionDataOverride.EndBehavior; + export type ProrationBehavior = Stripe_.QuoteCreateParams.SubscriptionDataOverride.ProrationBehavior; + export namespace AppliesTo { + export type Type = Stripe_.QuoteCreateParams.SubscriptionDataOverride.AppliesTo.Type; + } + export namespace BillOnAcceptance { + export type BillFrom = Stripe_.QuoteCreateParams.SubscriptionDataOverride.BillOnAcceptance.BillFrom; + export type BillUntil = Stripe_.QuoteCreateParams.SubscriptionDataOverride.BillOnAcceptance.BillUntil; + export namespace BillFrom { + export type LineStartsAt = Stripe_.QuoteCreateParams.SubscriptionDataOverride.BillOnAcceptance.BillFrom.LineStartsAt; + export type Type = Stripe_.QuoteCreateParams.SubscriptionDataOverride.BillOnAcceptance.BillFrom.Type; + } + export namespace BillUntil { + export type Duration = Stripe_.QuoteCreateParams.SubscriptionDataOverride.BillOnAcceptance.BillUntil.Duration; + export type LineEndsAt = Stripe_.QuoteCreateParams.SubscriptionDataOverride.BillOnAcceptance.BillUntil.LineEndsAt; + export type Type = Stripe_.QuoteCreateParams.SubscriptionDataOverride.BillOnAcceptance.BillUntil.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteCreateParams.SubscriptionDataOverride.BillOnAcceptance.BillUntil.Duration.Interval; + } + } + } + } + } + export namespace QuoteUpdateParams { + export type AutomaticTax = Stripe_.QuoteUpdateParams.AutomaticTax; + export type CollectionMethod = Stripe_.QuoteUpdateParams.CollectionMethod; + export type Discount = Stripe_.QuoteUpdateParams.Discount; + export type InvoiceSettings = Stripe_.QuoteUpdateParams.InvoiceSettings; + export type LineItem = Stripe_.QuoteUpdateParams.LineItem; + export type Line = Stripe_.QuoteUpdateParams.Line; + export type SubscriptionData = Stripe_.QuoteUpdateParams.SubscriptionData; + export type SubscriptionDataOverride = Stripe_.QuoteUpdateParams.SubscriptionDataOverride; + export type TransferData = Stripe_.QuoteUpdateParams.TransferData; + export namespace AutomaticTax { + export type Liability = Stripe_.QuoteUpdateParams.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.QuoteUpdateParams.AutomaticTax.Liability.Type; + } + } + export namespace Discount { + export type DiscountEnd = Stripe_.QuoteUpdateParams.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.QuoteUpdateParams.Discount.DiscountEnd.Duration; + export type Type = Stripe_.QuoteUpdateParams.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteUpdateParams.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.QuoteUpdateParams.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.QuoteUpdateParams.InvoiceSettings.Issuer.Type; + } + } + export namespace Line { + export type Action = Stripe_.QuoteUpdateParams.Line.Action; + export type AppliesTo = Stripe_.QuoteUpdateParams.Line.AppliesTo; + export type BillingCycleAnchor = Stripe_.QuoteUpdateParams.Line.BillingCycleAnchor; + export type CancelSubscriptionSchedule = Stripe_.QuoteUpdateParams.Line.CancelSubscriptionSchedule; + export type EndsAt = Stripe_.QuoteUpdateParams.Line.EndsAt; + export type ProrationBehavior = Stripe_.QuoteUpdateParams.Line.ProrationBehavior; + export type SetPauseCollection = Stripe_.QuoteUpdateParams.Line.SetPauseCollection; + export type SetScheduleEnd = Stripe_.QuoteUpdateParams.Line.SetScheduleEnd; + export type StartsAt = Stripe_.QuoteUpdateParams.Line.StartsAt; + export type TrialSettings = Stripe_.QuoteUpdateParams.Line.TrialSettings; + export namespace Action { + export type AddDiscount = Stripe_.QuoteUpdateParams.Line.Action.AddDiscount; + export type AddItem = Stripe_.QuoteUpdateParams.Line.Action.AddItem; + export type RemoveDiscount = Stripe_.QuoteUpdateParams.Line.Action.RemoveDiscount; + export type RemoveItem = Stripe_.QuoteUpdateParams.Line.Action.RemoveItem; + export type SetDiscount = Stripe_.QuoteUpdateParams.Line.Action.SetDiscount; + export type SetItem = Stripe_.QuoteUpdateParams.Line.Action.SetItem; + export type Type = Stripe_.QuoteUpdateParams.Line.Action.Type; + export namespace AddDiscount { + export type DiscountEnd = Stripe_.QuoteUpdateParams.Line.Action.AddDiscount.DiscountEnd; + } + export namespace AddItem { + export type Discount = Stripe_.QuoteUpdateParams.Line.Action.AddItem.Discount; + export type Trial = Stripe_.QuoteUpdateParams.Line.Action.AddItem.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.QuoteUpdateParams.Line.Action.AddItem.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.QuoteUpdateParams.Line.Action.AddItem.Discount.DiscountEnd.Duration; + export type Type = Stripe_.QuoteUpdateParams.Line.Action.AddItem.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteUpdateParams.Line.Action.AddItem.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Trial { + export type Type = Stripe_.QuoteUpdateParams.Line.Action.AddItem.Trial.Type; + } + } + export namespace SetItem { + export type Discount = Stripe_.QuoteUpdateParams.Line.Action.SetItem.Discount; + export type Trial = Stripe_.QuoteUpdateParams.Line.Action.SetItem.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.QuoteUpdateParams.Line.Action.SetItem.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.QuoteUpdateParams.Line.Action.SetItem.Discount.DiscountEnd.Duration; + export type Type = Stripe_.QuoteUpdateParams.Line.Action.SetItem.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteUpdateParams.Line.Action.SetItem.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Trial { + export type Type = Stripe_.QuoteUpdateParams.Line.Action.SetItem.Trial.Type; + } + } + } + export namespace AppliesTo { + export type Type = Stripe_.QuoteUpdateParams.Line.AppliesTo.Type; + } + export namespace EndsAt { + export type DiscountEnd = Stripe_.QuoteUpdateParams.Line.EndsAt.DiscountEnd; + export type Duration = Stripe_.QuoteUpdateParams.Line.EndsAt.Duration; + export type Type = Stripe_.QuoteUpdateParams.Line.EndsAt.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteUpdateParams.Line.EndsAt.Duration.Interval; + } + } + export namespace SetPauseCollection { + export type Set = Stripe_.QuoteUpdateParams.Line.SetPauseCollection.Set; + export type Type = Stripe_.QuoteUpdateParams.Line.SetPauseCollection.Type; + export namespace Set { + export type Behavior = Stripe_.QuoteUpdateParams.Line.SetPauseCollection.Set.Behavior; + } + } + export namespace StartsAt { + export type DiscountEnd = Stripe_.QuoteUpdateParams.Line.StartsAt.DiscountEnd; + export type LineEndsAt = Stripe_.QuoteUpdateParams.Line.StartsAt.LineEndsAt; + export type Type = Stripe_.QuoteUpdateParams.Line.StartsAt.Type; + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.QuoteUpdateParams.Line.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type ProrateUpFront = Stripe_.QuoteUpdateParams.Line.TrialSettings.EndBehavior.ProrateUpFront; + } + } + } + export namespace LineItem { + export type Discount = Stripe_.QuoteUpdateParams.LineItem.Discount; + export type PriceData = Stripe_.QuoteUpdateParams.LineItem.PriceData; + export namespace Discount { + export type DiscountEnd = Stripe_.QuoteUpdateParams.LineItem.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.QuoteUpdateParams.LineItem.Discount.DiscountEnd.Duration; + export type Type = Stripe_.QuoteUpdateParams.LineItem.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteUpdateParams.LineItem.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type Recurring = Stripe_.QuoteUpdateParams.LineItem.PriceData.Recurring; + export type TaxBehavior = Stripe_.QuoteUpdateParams.LineItem.PriceData.TaxBehavior; + export namespace Recurring { + export type Interval = Stripe_.QuoteUpdateParams.LineItem.PriceData.Recurring.Interval; + } + } + } + export namespace SubscriptionData { + export type BillOnAcceptance = Stripe_.QuoteUpdateParams.SubscriptionData.BillOnAcceptance; + export type BillingBehavior = Stripe_.QuoteUpdateParams.SubscriptionData.BillingBehavior; + export type EndBehavior = Stripe_.QuoteUpdateParams.SubscriptionData.EndBehavior; + export type Prebilling = Stripe_.QuoteUpdateParams.SubscriptionData.Prebilling; + export type ProrationBehavior = Stripe_.QuoteUpdateParams.SubscriptionData.ProrationBehavior; + export namespace BillOnAcceptance { + export type BillFrom = Stripe_.QuoteUpdateParams.SubscriptionData.BillOnAcceptance.BillFrom; + export type BillUntil = Stripe_.QuoteUpdateParams.SubscriptionData.BillOnAcceptance.BillUntil; + export namespace BillFrom { + export type LineStartsAt = Stripe_.QuoteUpdateParams.SubscriptionData.BillOnAcceptance.BillFrom.LineStartsAt; + export type Type = Stripe_.QuoteUpdateParams.SubscriptionData.BillOnAcceptance.BillFrom.Type; + } + export namespace BillUntil { + export type Duration = Stripe_.QuoteUpdateParams.SubscriptionData.BillOnAcceptance.BillUntil.Duration; + export type LineEndsAt = Stripe_.QuoteUpdateParams.SubscriptionData.BillOnAcceptance.BillUntil.LineEndsAt; + export type Type = Stripe_.QuoteUpdateParams.SubscriptionData.BillOnAcceptance.BillUntil.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteUpdateParams.SubscriptionData.BillOnAcceptance.BillUntil.Duration.Interval; + } + } + } + } + export namespace SubscriptionDataOverride { + export type AppliesTo = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.AppliesTo; + export type BillOnAcceptance = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.BillOnAcceptance; + export type BillingBehavior = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.BillingBehavior; + export type EndBehavior = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.EndBehavior; + export type ProrationBehavior = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.ProrationBehavior; + export namespace AppliesTo { + export type Type = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.AppliesTo.Type; + } + export namespace BillOnAcceptance { + export type BillFrom = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.BillOnAcceptance.BillFrom; + export type BillUntil = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.BillOnAcceptance.BillUntil; + export namespace BillFrom { + export type LineStartsAt = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.BillOnAcceptance.BillFrom.LineStartsAt; + export type Type = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.BillOnAcceptance.BillFrom.Type; + } + export namespace BillUntil { + export type Duration = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.BillOnAcceptance.BillUntil.Duration; + export type LineEndsAt = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.BillOnAcceptance.BillUntil.LineEndsAt; + export type Type = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.BillOnAcceptance.BillUntil.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteUpdateParams.SubscriptionDataOverride.BillOnAcceptance.BillUntil.Duration.Interval; + } + } + } + } + } + export namespace QuoteListParams { + export type Status = Stripe_.QuoteListParams.Status; + } + export namespace Quote { + export type AutomaticTax = Stripe_.Quote.AutomaticTax; + export type CollectionMethod = Stripe_.Quote.CollectionMethod; + export type Computed = Stripe_.Quote.Computed; + export type FromQuote = Stripe_.Quote.FromQuote; + export type InvoiceSettings = Stripe_.Quote.InvoiceSettings; + export type Status = Stripe_.Quote.Status; + export type StatusDetails = Stripe_.Quote.StatusDetails; + export type StatusTransitions = Stripe_.Quote.StatusTransitions; + export type SubscriptionData = Stripe_.Quote.SubscriptionData; + export type SubscriptionDataOverride = Stripe_.Quote.SubscriptionDataOverride; + export type SubscriptionSchedule = Stripe_.Quote.SubscriptionSchedule; + export type TotalDetails = Stripe_.Quote.TotalDetails; + export type TransferData = Stripe_.Quote.TransferData; + export namespace AutomaticTax { + export type Liability = Stripe_.Quote.AutomaticTax.Liability; + export type Status = Stripe_.Quote.AutomaticTax.Status; + export namespace Liability { + export type Type = Stripe_.Quote.AutomaticTax.Liability.Type; + } + } + export namespace Computed { + export type LastReestimationDetails = Stripe_.Quote.Computed.LastReestimationDetails; + export type Recurring = Stripe_.Quote.Computed.Recurring; + export type Upfront = Stripe_.Quote.Computed.Upfront; + export namespace LastReestimationDetails { + export type Failed = Stripe_.Quote.Computed.LastReestimationDetails.Failed; + export type Status = Stripe_.Quote.Computed.LastReestimationDetails.Status; + export namespace Failed { + export type Reason = Stripe_.Quote.Computed.LastReestimationDetails.Failed.Reason; + } + } + export namespace Recurring { + export type Interval = Stripe_.Quote.Computed.Recurring.Interval; + export type TotalDetails = Stripe_.Quote.Computed.Recurring.TotalDetails; + export namespace TotalDetails { + export type Breakdown = Stripe_.Quote.Computed.Recurring.TotalDetails.Breakdown; + export namespace Breakdown { + export type Discount = Stripe_.Quote.Computed.Recurring.TotalDetails.Breakdown.Discount; + export type Tax = Stripe_.Quote.Computed.Recurring.TotalDetails.Breakdown.Tax; + export namespace Tax { + export type TaxabilityReason = Stripe_.Quote.Computed.Recurring.TotalDetails.Breakdown.Tax.TaxabilityReason; + } + } + } + } + export namespace Upfront { + export type TotalDetails = Stripe_.Quote.Computed.Upfront.TotalDetails; + export namespace TotalDetails { + export type Breakdown = Stripe_.Quote.Computed.Upfront.TotalDetails.Breakdown; + export namespace Breakdown { + export type Discount = Stripe_.Quote.Computed.Upfront.TotalDetails.Breakdown.Discount; + export type Tax = Stripe_.Quote.Computed.Upfront.TotalDetails.Breakdown.Tax; + export namespace Tax { + export type TaxabilityReason = Stripe_.Quote.Computed.Upfront.TotalDetails.Breakdown.Tax.TaxabilityReason; + } + } + } + } + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.Quote.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.Quote.InvoiceSettings.Issuer.Type; + } + } + export namespace StatusDetails { + export type Canceled = Stripe_.Quote.StatusDetails.Canceled; + export type Stale = Stripe_.Quote.StatusDetails.Stale; + export namespace Canceled { + export type Reason = Stripe_.Quote.StatusDetails.Canceled.Reason; + } + export namespace Stale { + export type LastReason = Stripe_.Quote.StatusDetails.Stale.LastReason; + export namespace LastReason { + export type LinesInvalid = Stripe_.Quote.StatusDetails.Stale.LastReason.LinesInvalid; + export type SubscriptionChanged = Stripe_.Quote.StatusDetails.Stale.LastReason.SubscriptionChanged; + export type SubscriptionScheduleChanged = Stripe_.Quote.StatusDetails.Stale.LastReason.SubscriptionScheduleChanged; + export type Type = Stripe_.Quote.StatusDetails.Stale.LastReason.Type; + } + } + } + export namespace SubscriptionData { + export type BillOnAcceptance = Stripe_.Quote.SubscriptionData.BillOnAcceptance; + export type BillingBehavior = Stripe_.Quote.SubscriptionData.BillingBehavior; + export type BillingMode = Stripe_.Quote.SubscriptionData.BillingMode; + export type EndBehavior = Stripe_.Quote.SubscriptionData.EndBehavior; + export type Prebilling = Stripe_.Quote.SubscriptionData.Prebilling; + export type ProrationBehavior = Stripe_.Quote.SubscriptionData.ProrationBehavior; + export namespace BillingMode { + export type Flexible = Stripe_.Quote.SubscriptionData.BillingMode.Flexible; + export type Type = Stripe_.Quote.SubscriptionData.BillingMode.Type; + export namespace Flexible { + export type ProrationDiscounts = Stripe_.Quote.SubscriptionData.BillingMode.Flexible.ProrationDiscounts; + } + } + export namespace BillOnAcceptance { + export type BillFrom = Stripe_.Quote.SubscriptionData.BillOnAcceptance.BillFrom; + export type BillUntil = Stripe_.Quote.SubscriptionData.BillOnAcceptance.BillUntil; + export namespace BillFrom { + export type LineStartsAt = Stripe_.Quote.SubscriptionData.BillOnAcceptance.BillFrom.LineStartsAt; + export type Type = Stripe_.Quote.SubscriptionData.BillOnAcceptance.BillFrom.Type; + } + export namespace BillUntil { + export type Duration = Stripe_.Quote.SubscriptionData.BillOnAcceptance.BillUntil.Duration; + export type LineEndsAt = Stripe_.Quote.SubscriptionData.BillOnAcceptance.BillUntil.LineEndsAt; + export type Type = Stripe_.Quote.SubscriptionData.BillOnAcceptance.BillUntil.Type; + export namespace Duration { + export type Interval = Stripe_.Quote.SubscriptionData.BillOnAcceptance.BillUntil.Duration.Interval; + } + } + } + } + export namespace SubscriptionDataOverride { + export type AppliesTo = Stripe_.Quote.SubscriptionDataOverride.AppliesTo; + export type BillOnAcceptance = Stripe_.Quote.SubscriptionDataOverride.BillOnAcceptance; + export type BillingBehavior = Stripe_.Quote.SubscriptionDataOverride.BillingBehavior; + export type EndBehavior = Stripe_.Quote.SubscriptionDataOverride.EndBehavior; + export type ProrationBehavior = Stripe_.Quote.SubscriptionDataOverride.ProrationBehavior; + export namespace AppliesTo { + export type Type = Stripe_.Quote.SubscriptionDataOverride.AppliesTo.Type; + } + export namespace BillOnAcceptance { + export type BillFrom = Stripe_.Quote.SubscriptionDataOverride.BillOnAcceptance.BillFrom; + export type BillUntil = Stripe_.Quote.SubscriptionDataOverride.BillOnAcceptance.BillUntil; + export namespace BillFrom { + export type LineStartsAt = Stripe_.Quote.SubscriptionDataOverride.BillOnAcceptance.BillFrom.LineStartsAt; + export type Type = Stripe_.Quote.SubscriptionDataOverride.BillOnAcceptance.BillFrom.Type; + } + export namespace BillUntil { + export type Duration = Stripe_.Quote.SubscriptionDataOverride.BillOnAcceptance.BillUntil.Duration; + export type LineEndsAt = Stripe_.Quote.SubscriptionDataOverride.BillOnAcceptance.BillUntil.LineEndsAt; + export type Type = Stripe_.Quote.SubscriptionDataOverride.BillOnAcceptance.BillUntil.Type; + export namespace Duration { + export type Interval = Stripe_.Quote.SubscriptionDataOverride.BillOnAcceptance.BillUntil.Duration.Interval; + } + } + } + } + export namespace SubscriptionSchedule { + export type AppliesTo = Stripe_.Quote.SubscriptionSchedule.AppliesTo; + export namespace AppliesTo { + export type Type = Stripe_.Quote.SubscriptionSchedule.AppliesTo.Type; + } + } + export namespace TotalDetails { + export type Breakdown = Stripe_.Quote.TotalDetails.Breakdown; + export namespace Breakdown { + export type Discount = Stripe_.Quote.TotalDetails.Breakdown.Discount; + export type Tax = Stripe_.Quote.TotalDetails.Breakdown.Tax; + export namespace Tax { + export type TaxabilityReason = Stripe_.Quote.TotalDetails.Breakdown.Tax.TaxabilityReason; + } + } + } + } + export namespace RefundCreateParams { + export type Reason = Stripe_.RefundCreateParams.Reason; + } + export namespace Refund { + export type DestinationDetails = Stripe_.Refund.DestinationDetails; + export type NextAction = Stripe_.Refund.NextAction; + export type PendingReason = Stripe_.Refund.PendingReason; + export type PresentmentDetails = Stripe_.Refund.PresentmentDetails; + export type Reason = Stripe_.Refund.Reason; + export namespace DestinationDetails { + export type Affirm = Stripe_.Refund.DestinationDetails.Affirm; + export type AfterpayClearpay = Stripe_.Refund.DestinationDetails.AfterpayClearpay; + export type Alipay = Stripe_.Refund.DestinationDetails.Alipay; + export type Alma = Stripe_.Refund.DestinationDetails.Alma; + export type AmazonPay = Stripe_.Refund.DestinationDetails.AmazonPay; + export type AuBankTransfer = Stripe_.Refund.DestinationDetails.AuBankTransfer; + export type Blik = Stripe_.Refund.DestinationDetails.Blik; + export type BrBankTransfer = Stripe_.Refund.DestinationDetails.BrBankTransfer; + export type Card = Stripe_.Refund.DestinationDetails.Card; + export type Cashapp = Stripe_.Refund.DestinationDetails.Cashapp; + export type Crypto = Stripe_.Refund.DestinationDetails.Crypto; + export type CustomerCashBalance = Stripe_.Refund.DestinationDetails.CustomerCashBalance; + export type Eps = Stripe_.Refund.DestinationDetails.Eps; + export type EuBankTransfer = Stripe_.Refund.DestinationDetails.EuBankTransfer; + export type GbBankTransfer = Stripe_.Refund.DestinationDetails.GbBankTransfer; + export type Giropay = Stripe_.Refund.DestinationDetails.Giropay; + export type Grabpay = Stripe_.Refund.DestinationDetails.Grabpay; + export type IdBankTransfer = Stripe_.Refund.DestinationDetails.IdBankTransfer; + export type JpBankTransfer = Stripe_.Refund.DestinationDetails.JpBankTransfer; + export type Klarna = Stripe_.Refund.DestinationDetails.Klarna; + export type MbWay = Stripe_.Refund.DestinationDetails.MbWay; + export type Multibanco = Stripe_.Refund.DestinationDetails.Multibanco; + export type MxBankTransfer = Stripe_.Refund.DestinationDetails.MxBankTransfer; + export type NzBankTransfer = Stripe_.Refund.DestinationDetails.NzBankTransfer; + export type P24 = Stripe_.Refund.DestinationDetails.P24; + export type Paynow = Stripe_.Refund.DestinationDetails.Paynow; + export type Paypal = Stripe_.Refund.DestinationDetails.Paypal; + export type Pix = Stripe_.Refund.DestinationDetails.Pix; + export type Revolut = Stripe_.Refund.DestinationDetails.Revolut; + export type Scalapay = Stripe_.Refund.DestinationDetails.Scalapay; + export type Sofort = Stripe_.Refund.DestinationDetails.Sofort; + export type Swish = Stripe_.Refund.DestinationDetails.Swish; + export type ThBankTransfer = Stripe_.Refund.DestinationDetails.ThBankTransfer; + export type Twint = Stripe_.Refund.DestinationDetails.Twint; + export type UsBankTransfer = Stripe_.Refund.DestinationDetails.UsBankTransfer; + export type WechatPay = Stripe_.Refund.DestinationDetails.WechatPay; + export type Zip = Stripe_.Refund.DestinationDetails.Zip; + export namespace Card { + export type Type = Stripe_.Refund.DestinationDetails.Card.Type; + } + } + export namespace NextAction { + export type DisplayDetails = Stripe_.Refund.NextAction.DisplayDetails; + export namespace DisplayDetails { + export type EmailSent = Stripe_.Refund.NextAction.DisplayDetails.EmailSent; + } + } + } + export namespace Review { + export type ClosedReason = Stripe_.Review.ClosedReason; + export type IpAddressLocation = Stripe_.Review.IpAddressLocation; + export type OpenedReason = Stripe_.Review.OpenedReason; + export type Session = Stripe_.Review.Session; + } + export namespace SetupAttempt { + export type FlowDirection = Stripe_.SetupAttempt.FlowDirection; + export type PaymentMethodDetails = Stripe_.SetupAttempt.PaymentMethodDetails; + export type SetupError = Stripe_.SetupAttempt.SetupError; + export namespace PaymentMethodDetails { + export type AcssDebit = Stripe_.SetupAttempt.PaymentMethodDetails.AcssDebit; + export type AmazonPay = Stripe_.SetupAttempt.PaymentMethodDetails.AmazonPay; + export type AuBecsDebit = Stripe_.SetupAttempt.PaymentMethodDetails.AuBecsDebit; + export type BacsDebit = Stripe_.SetupAttempt.PaymentMethodDetails.BacsDebit; + export type Bancontact = Stripe_.SetupAttempt.PaymentMethodDetails.Bancontact; + export type Boleto = Stripe_.SetupAttempt.PaymentMethodDetails.Boleto; + export type Card = Stripe_.SetupAttempt.PaymentMethodDetails.Card; + export type CardPresent = Stripe_.SetupAttempt.PaymentMethodDetails.CardPresent; + export type Cashapp = Stripe_.SetupAttempt.PaymentMethodDetails.Cashapp; + export type IdBankTransfer = Stripe_.SetupAttempt.PaymentMethodDetails.IdBankTransfer; + export type Ideal = Stripe_.SetupAttempt.PaymentMethodDetails.Ideal; + export type KakaoPay = Stripe_.SetupAttempt.PaymentMethodDetails.KakaoPay; + export type Klarna = Stripe_.SetupAttempt.PaymentMethodDetails.Klarna; + export type KrCard = Stripe_.SetupAttempt.PaymentMethodDetails.KrCard; + export type Link = Stripe_.SetupAttempt.PaymentMethodDetails.Link; + export type NaverPay = Stripe_.SetupAttempt.PaymentMethodDetails.NaverPay; + export type NzBankAccount = Stripe_.SetupAttempt.PaymentMethodDetails.NzBankAccount; + export type Paypal = Stripe_.SetupAttempt.PaymentMethodDetails.Paypal; + export type Payto = Stripe_.SetupAttempt.PaymentMethodDetails.Payto; + export type Pix = Stripe_.SetupAttempt.PaymentMethodDetails.Pix; + export type RevolutPay = Stripe_.SetupAttempt.PaymentMethodDetails.RevolutPay; + export type SepaDebit = Stripe_.SetupAttempt.PaymentMethodDetails.SepaDebit; + export type Sofort = Stripe_.SetupAttempt.PaymentMethodDetails.Sofort; + export type StripeBalance = Stripe_.SetupAttempt.PaymentMethodDetails.StripeBalance; + export type Twint = Stripe_.SetupAttempt.PaymentMethodDetails.Twint; + export type Upi = Stripe_.SetupAttempt.PaymentMethodDetails.Upi; + export type UsBankAccount = Stripe_.SetupAttempt.PaymentMethodDetails.UsBankAccount; + export namespace Bancontact { + export type PreferredLanguage = Stripe_.SetupAttempt.PaymentMethodDetails.Bancontact.PreferredLanguage; + } + export namespace Card { + export type Checks = Stripe_.SetupAttempt.PaymentMethodDetails.Card.Checks; + export type ThreeDSecure = Stripe_.SetupAttempt.PaymentMethodDetails.Card.ThreeDSecure; + export type Wallet = Stripe_.SetupAttempt.PaymentMethodDetails.Card.Wallet; + export namespace ThreeDSecure { + export type AuthenticationFlow = Stripe_.SetupAttempt.PaymentMethodDetails.Card.ThreeDSecure.AuthenticationFlow; + export type ElectronicCommerceIndicator = Stripe_.SetupAttempt.PaymentMethodDetails.Card.ThreeDSecure.ElectronicCommerceIndicator; + export type Result = Stripe_.SetupAttempt.PaymentMethodDetails.Card.ThreeDSecure.Result; + export type ResultReason = Stripe_.SetupAttempt.PaymentMethodDetails.Card.ThreeDSecure.ResultReason; + export type Version = Stripe_.SetupAttempt.PaymentMethodDetails.Card.ThreeDSecure.Version; + } + export namespace Wallet { + export type ApplePay = Stripe_.SetupAttempt.PaymentMethodDetails.Card.Wallet.ApplePay; + export type GooglePay = Stripe_.SetupAttempt.PaymentMethodDetails.Card.Wallet.GooglePay; + export type Type = Stripe_.SetupAttempt.PaymentMethodDetails.Card.Wallet.Type; + } + } + export namespace CardPresent { + export type Offline = Stripe_.SetupAttempt.PaymentMethodDetails.CardPresent.Offline; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.SetupAttempt.PaymentMethodDetails.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.SetupAttempt.PaymentMethodDetails.Ideal.Bank; + export type Bic = Stripe_.SetupAttempt.PaymentMethodDetails.Ideal.Bic; + } + export namespace Sofort { + export type PreferredLanguage = Stripe_.SetupAttempt.PaymentMethodDetails.Sofort.PreferredLanguage; + } + } + export namespace SetupError { + export type Code = Stripe_.SetupAttempt.SetupError.Code; + export type Type = Stripe_.SetupAttempt.SetupError.Type; + } } - export namespace PaymentMethodConfigurationUpdateParams { - export type AcssDebit = Stripe.PaymentMethodConfigurationUpdateParams.AcssDebit; - export type Affirm = Stripe.PaymentMethodConfigurationUpdateParams.Affirm; - export type AfterpayClearpay = Stripe.PaymentMethodConfigurationUpdateParams.AfterpayClearpay; - export type Alipay = Stripe.PaymentMethodConfigurationUpdateParams.Alipay; - export type Alma = Stripe.PaymentMethodConfigurationUpdateParams.Alma; - export type AmazonPay = Stripe.PaymentMethodConfigurationUpdateParams.AmazonPay; - export type ApplePay = Stripe.PaymentMethodConfigurationUpdateParams.ApplePay; - export type ApplePayLater = Stripe.PaymentMethodConfigurationUpdateParams.ApplePayLater; - export type AuBecsDebit = Stripe.PaymentMethodConfigurationUpdateParams.AuBecsDebit; - export type BacsDebit = Stripe.PaymentMethodConfigurationUpdateParams.BacsDebit; - export type Bancontact = Stripe.PaymentMethodConfigurationUpdateParams.Bancontact; - export type Billie = Stripe.PaymentMethodConfigurationUpdateParams.Billie; - export type Bizum = Stripe.PaymentMethodConfigurationUpdateParams.Bizum; - export type Blik = Stripe.PaymentMethodConfigurationUpdateParams.Blik; - export type Boleto = Stripe.PaymentMethodConfigurationUpdateParams.Boleto; - export type Card = Stripe.PaymentMethodConfigurationUpdateParams.Card; - export type CartesBancaires = Stripe.PaymentMethodConfigurationUpdateParams.CartesBancaires; - export type Cashapp = Stripe.PaymentMethodConfigurationUpdateParams.Cashapp; - export type Crypto = Stripe.PaymentMethodConfigurationUpdateParams.Crypto; - export type CustomerBalance = Stripe.PaymentMethodConfigurationUpdateParams.CustomerBalance; - export type Eps = Stripe.PaymentMethodConfigurationUpdateParams.Eps; - export type Fpx = Stripe.PaymentMethodConfigurationUpdateParams.Fpx; - export type FrMealVoucherConecs = Stripe.PaymentMethodConfigurationUpdateParams.FrMealVoucherConecs; - export type Giropay = Stripe.PaymentMethodConfigurationUpdateParams.Giropay; - export type GooglePay = Stripe.PaymentMethodConfigurationUpdateParams.GooglePay; - export type Gopay = Stripe.PaymentMethodConfigurationUpdateParams.Gopay; - export type Grabpay = Stripe.PaymentMethodConfigurationUpdateParams.Grabpay; - export type IdBankTransfer = Stripe.PaymentMethodConfigurationUpdateParams.IdBankTransfer; - export type Ideal = Stripe.PaymentMethodConfigurationUpdateParams.Ideal; - export type Jcb = Stripe.PaymentMethodConfigurationUpdateParams.Jcb; - export type KakaoPay = Stripe.PaymentMethodConfigurationUpdateParams.KakaoPay; - export type Klarna = Stripe.PaymentMethodConfigurationUpdateParams.Klarna; - export type Konbini = Stripe.PaymentMethodConfigurationUpdateParams.Konbini; - export type KrCard = Stripe.PaymentMethodConfigurationUpdateParams.KrCard; - export type Link = Stripe.PaymentMethodConfigurationUpdateParams.Link; - export type MbWay = Stripe.PaymentMethodConfigurationUpdateParams.MbWay; - export type Mobilepay = Stripe.PaymentMethodConfigurationUpdateParams.Mobilepay; - export type Multibanco = Stripe.PaymentMethodConfigurationUpdateParams.Multibanco; - export type NaverPay = Stripe.PaymentMethodConfigurationUpdateParams.NaverPay; - export type NzBankAccount = Stripe.PaymentMethodConfigurationUpdateParams.NzBankAccount; - export type Oxxo = Stripe.PaymentMethodConfigurationUpdateParams.Oxxo; - export type P24 = Stripe.PaymentMethodConfigurationUpdateParams.P24; - export type PayByBank = Stripe.PaymentMethodConfigurationUpdateParams.PayByBank; - export type Payco = Stripe.PaymentMethodConfigurationUpdateParams.Payco; - export type Paynow = Stripe.PaymentMethodConfigurationUpdateParams.Paynow; - export type Paypal = Stripe.PaymentMethodConfigurationUpdateParams.Paypal; - export type Paypay = Stripe.PaymentMethodConfigurationUpdateParams.Paypay; - export type Payto = Stripe.PaymentMethodConfigurationUpdateParams.Payto; - export type Pix = Stripe.PaymentMethodConfigurationUpdateParams.Pix; - export type Promptpay = Stripe.PaymentMethodConfigurationUpdateParams.Promptpay; - export type Qris = Stripe.PaymentMethodConfigurationUpdateParams.Qris; - export type RevolutPay = Stripe.PaymentMethodConfigurationUpdateParams.RevolutPay; - export type SamsungPay = Stripe.PaymentMethodConfigurationUpdateParams.SamsungPay; - export type Satispay = Stripe.PaymentMethodConfigurationUpdateParams.Satispay; - export type Scalapay = Stripe.PaymentMethodConfigurationUpdateParams.Scalapay; - export type SepaDebit = Stripe.PaymentMethodConfigurationUpdateParams.SepaDebit; - export type Shopeepay = Stripe.PaymentMethodConfigurationUpdateParams.Shopeepay; - export type Sofort = Stripe.PaymentMethodConfigurationUpdateParams.Sofort; - export type Sunbit = Stripe.PaymentMethodConfigurationUpdateParams.Sunbit; - export type Swish = Stripe.PaymentMethodConfigurationUpdateParams.Swish; - export type Twint = Stripe.PaymentMethodConfigurationUpdateParams.Twint; - export type Upi = Stripe.PaymentMethodConfigurationUpdateParams.Upi; - export type UsBankAccount = Stripe.PaymentMethodConfigurationUpdateParams.UsBankAccount; - export type WechatPay = Stripe.PaymentMethodConfigurationUpdateParams.WechatPay; - export type Zip = Stripe.PaymentMethodConfigurationUpdateParams.Zip; + export namespace SetupIntentCreateParams { + export type AutomaticPaymentMethods = Stripe_.SetupIntentCreateParams.AutomaticPaymentMethods; + export type ExcludedPaymentMethodType = Stripe_.SetupIntentCreateParams.ExcludedPaymentMethodType; + export type FlowDirection = Stripe_.SetupIntentCreateParams.FlowDirection; + export type MandateData = Stripe_.SetupIntentCreateParams.MandateData; + export type PaymentMethodData = Stripe_.SetupIntentCreateParams.PaymentMethodData; + export type PaymentMethodOptions = Stripe_.SetupIntentCreateParams.PaymentMethodOptions; + export type SingleUse = Stripe_.SetupIntentCreateParams.SingleUse; + export type Usage = Stripe_.SetupIntentCreateParams.Usage; + export namespace AutomaticPaymentMethods { + export type AllowRedirects = Stripe_.SetupIntentCreateParams.AutomaticPaymentMethods.AllowRedirects; + } + export namespace MandateData { + export type CustomerAcceptance = Stripe_.SetupIntentCreateParams.MandateData.CustomerAcceptance; + export namespace CustomerAcceptance { + export type Offline = Stripe_.SetupIntentCreateParams.MandateData.CustomerAcceptance.Offline; + export type Online = Stripe_.SetupIntentCreateParams.MandateData.CustomerAcceptance.Online; + export type Type = Stripe_.SetupIntentCreateParams.MandateData.CustomerAcceptance.Type; + } + } + export namespace PaymentMethodData { + export type AcssDebit = Stripe_.SetupIntentCreateParams.PaymentMethodData.AcssDebit; + export type Affirm = Stripe_.SetupIntentCreateParams.PaymentMethodData.Affirm; + export type AfterpayClearpay = Stripe_.SetupIntentCreateParams.PaymentMethodData.AfterpayClearpay; + export type Alipay = Stripe_.SetupIntentCreateParams.PaymentMethodData.Alipay; + export type AllowRedisplay = Stripe_.SetupIntentCreateParams.PaymentMethodData.AllowRedisplay; + export type Alma = Stripe_.SetupIntentCreateParams.PaymentMethodData.Alma; + export type AmazonPay = Stripe_.SetupIntentCreateParams.PaymentMethodData.AmazonPay; + export type AuBecsDebit = Stripe_.SetupIntentCreateParams.PaymentMethodData.AuBecsDebit; + export type BacsDebit = Stripe_.SetupIntentCreateParams.PaymentMethodData.BacsDebit; + export type Bancontact = Stripe_.SetupIntentCreateParams.PaymentMethodData.Bancontact; + export type Billie = Stripe_.SetupIntentCreateParams.PaymentMethodData.Billie; + export type BillingDetails = Stripe_.SetupIntentCreateParams.PaymentMethodData.BillingDetails; + export type Bizum = Stripe_.SetupIntentCreateParams.PaymentMethodData.Bizum; + export type Blik = Stripe_.SetupIntentCreateParams.PaymentMethodData.Blik; + export type Boleto = Stripe_.SetupIntentCreateParams.PaymentMethodData.Boleto; + export type Cashapp = Stripe_.SetupIntentCreateParams.PaymentMethodData.Cashapp; + export type Crypto = Stripe_.SetupIntentCreateParams.PaymentMethodData.Crypto; + export type CustomerBalance = Stripe_.SetupIntentCreateParams.PaymentMethodData.CustomerBalance; + export type Eps = Stripe_.SetupIntentCreateParams.PaymentMethodData.Eps; + export type Fpx = Stripe_.SetupIntentCreateParams.PaymentMethodData.Fpx; + export type Giropay = Stripe_.SetupIntentCreateParams.PaymentMethodData.Giropay; + export type Gopay = Stripe_.SetupIntentCreateParams.PaymentMethodData.Gopay; + export type Grabpay = Stripe_.SetupIntentCreateParams.PaymentMethodData.Grabpay; + export type IdBankTransfer = Stripe_.SetupIntentCreateParams.PaymentMethodData.IdBankTransfer; + export type Ideal = Stripe_.SetupIntentCreateParams.PaymentMethodData.Ideal; + export type InteracPresent = Stripe_.SetupIntentCreateParams.PaymentMethodData.InteracPresent; + export type KakaoPay = Stripe_.SetupIntentCreateParams.PaymentMethodData.KakaoPay; + export type Klarna = Stripe_.SetupIntentCreateParams.PaymentMethodData.Klarna; + export type Konbini = Stripe_.SetupIntentCreateParams.PaymentMethodData.Konbini; + export type KrCard = Stripe_.SetupIntentCreateParams.PaymentMethodData.KrCard; + export type Link = Stripe_.SetupIntentCreateParams.PaymentMethodData.Link; + export type MbWay = Stripe_.SetupIntentCreateParams.PaymentMethodData.MbWay; + export type Mobilepay = Stripe_.SetupIntentCreateParams.PaymentMethodData.Mobilepay; + export type Multibanco = Stripe_.SetupIntentCreateParams.PaymentMethodData.Multibanco; + export type NaverPay = Stripe_.SetupIntentCreateParams.PaymentMethodData.NaverPay; + export type NzBankAccount = Stripe_.SetupIntentCreateParams.PaymentMethodData.NzBankAccount; + export type Oxxo = Stripe_.SetupIntentCreateParams.PaymentMethodData.Oxxo; + export type P24 = Stripe_.SetupIntentCreateParams.PaymentMethodData.P24; + export type PayByBank = Stripe_.SetupIntentCreateParams.PaymentMethodData.PayByBank; + export type Payco = Stripe_.SetupIntentCreateParams.PaymentMethodData.Payco; + export type Paynow = Stripe_.SetupIntentCreateParams.PaymentMethodData.Paynow; + export type Paypal = Stripe_.SetupIntentCreateParams.PaymentMethodData.Paypal; + export type Paypay = Stripe_.SetupIntentCreateParams.PaymentMethodData.Paypay; + export type Payto = Stripe_.SetupIntentCreateParams.PaymentMethodData.Payto; + export type Pix = Stripe_.SetupIntentCreateParams.PaymentMethodData.Pix; + export type Promptpay = Stripe_.SetupIntentCreateParams.PaymentMethodData.Promptpay; + export type Qris = Stripe_.SetupIntentCreateParams.PaymentMethodData.Qris; + export type RadarOptions = Stripe_.SetupIntentCreateParams.PaymentMethodData.RadarOptions; + export type Rechnung = Stripe_.SetupIntentCreateParams.PaymentMethodData.Rechnung; + export type RevolutPay = Stripe_.SetupIntentCreateParams.PaymentMethodData.RevolutPay; + export type SamsungPay = Stripe_.SetupIntentCreateParams.PaymentMethodData.SamsungPay; + export type Satispay = Stripe_.SetupIntentCreateParams.PaymentMethodData.Satispay; + export type Scalapay = Stripe_.SetupIntentCreateParams.PaymentMethodData.Scalapay; + export type SepaDebit = Stripe_.SetupIntentCreateParams.PaymentMethodData.SepaDebit; + export type Shopeepay = Stripe_.SetupIntentCreateParams.PaymentMethodData.Shopeepay; + export type Sofort = Stripe_.SetupIntentCreateParams.PaymentMethodData.Sofort; + export type StripeBalance = Stripe_.SetupIntentCreateParams.PaymentMethodData.StripeBalance; + export type Sunbit = Stripe_.SetupIntentCreateParams.PaymentMethodData.Sunbit; + export type Swish = Stripe_.SetupIntentCreateParams.PaymentMethodData.Swish; + export type Twint = Stripe_.SetupIntentCreateParams.PaymentMethodData.Twint; + export type Type = Stripe_.SetupIntentCreateParams.PaymentMethodData.Type; + export type Upi = Stripe_.SetupIntentCreateParams.PaymentMethodData.Upi; + export type UsBankAccount = Stripe_.SetupIntentCreateParams.PaymentMethodData.UsBankAccount; + export type WechatPay = Stripe_.SetupIntentCreateParams.PaymentMethodData.WechatPay; + export type Zip = Stripe_.SetupIntentCreateParams.PaymentMethodData.Zip; + export namespace Eps { + export type Bank = Stripe_.SetupIntentCreateParams.PaymentMethodData.Eps.Bank; + } + export namespace Fpx { + export type AccountHolderType = Stripe_.SetupIntentCreateParams.PaymentMethodData.Fpx.AccountHolderType; + export type Bank = Stripe_.SetupIntentCreateParams.PaymentMethodData.Fpx.Bank; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.SetupIntentCreateParams.PaymentMethodData.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.SetupIntentCreateParams.PaymentMethodData.Ideal.Bank; + } + export namespace Klarna { + export type Dob = Stripe_.SetupIntentCreateParams.PaymentMethodData.Klarna.Dob; + } + export namespace NaverPay { + export type Funding = Stripe_.SetupIntentCreateParams.PaymentMethodData.NaverPay.Funding; + } + export namespace P24 { + export type Bank = Stripe_.SetupIntentCreateParams.PaymentMethodData.P24.Bank; + } + export namespace Rechnung { + export type Dob = Stripe_.SetupIntentCreateParams.PaymentMethodData.Rechnung.Dob; + } + export namespace Sofort { + export type Country = Stripe_.SetupIntentCreateParams.PaymentMethodData.Sofort.Country; + } + export namespace Upi { + export type MandateOptions = Stripe_.SetupIntentCreateParams.PaymentMethodData.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntentCreateParams.PaymentMethodData.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.SetupIntentCreateParams.PaymentMethodData.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.SetupIntentCreateParams.PaymentMethodData.UsBankAccount.AccountType; + } + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.AcssDebit; + export type AmazonPay = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.AmazonPay; + export type BacsDebit = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.BacsDebit; + export type Bizum = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Bizum; + export type Card = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.CardPresent; + export type Klarna = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Klarna; + export type Link = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Link; + export type Paypal = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Paypal; + export type Payto = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Payto; + export type Pix = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Pix; + export type SepaDebit = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.SepaDebit; + export type Upi = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type Currency = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.AcssDebit.Currency; + export type MandateOptions = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type DefaultFor = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.AcssDebit.MandateOptions.DefaultFor; + export type PaymentSchedule = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.AcssDebit.MandateOptions.PaymentSchedule; + export type TransactionType = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace BacsDebit { + export type MandateOptions = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions; + } + export namespace Card { + export type MandateOptions = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions; + export type Network = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Card.Network; + export type RequestThreeDSecure = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Card.RequestThreeDSecure; + export type ThreeDSecure = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.AmountType; + export type Interval = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Card.MandateOptions.Interval; + } + export namespace ThreeDSecure { + export type AresTransStatus = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure.AresTransStatus; + export type ElectronicCommerceIndicator = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure.ElectronicCommerceIndicator; + export type NetworkOptions = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions; + export type Version = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure.Version; + export namespace NetworkOptions { + export type CartesBancaires = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions.CartesBancaires; + export namespace CartesBancaires { + export type CbAvalgo = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions.CartesBancaires.CbAvalgo; + } + } + } + } + export namespace Klarna { + export type OnDemand = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Klarna.OnDemand; + export type PreferredLocale = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Klarna.PreferredLocale; + export type Subscription = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription; + export namespace OnDemand { + export type PurchaseInterval = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Klarna.OnDemand.PurchaseInterval; + } + export namespace Subscription { + export type Interval = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.Interval; + export type NextBilling = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Klarna.Subscription.NextBilling; + } + } + export namespace Payto { + export type MandateOptions = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule; + export type Purpose = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type MandateOptions = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Pix.MandateOptions; + export namespace MandateOptions { + export type AmountIncludesIof = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Pix.MandateOptions.AmountIncludesIof; + export type AmountType = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Pix.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Pix.MandateOptions.PaymentSchedule; + } + } + export namespace SepaDebit { + export type MandateOptions = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions; + } + export namespace Upi { + export type MandateOptions = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Upi.MandateOptions; + export type SetupFutureUsage = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Upi.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type MandateOptions = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.UsBankAccount.MandateOptions; + export type Networks = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.UsBankAccount.Networks; + export type VerificationMethod = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type ManualEntry = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry; + export type Permission = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + export namespace ManualEntry { + export type Mode = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry.Mode; + } + } + export namespace Networks { + export type Requested = Stripe_.SetupIntentCreateParams.PaymentMethodOptions.UsBankAccount.Networks.Requested; + } + } + } } - export namespace PaymentRecordReportPaymentParams { - export type AmountRequested = Stripe.PaymentRecordReportPaymentParams.AmountRequested; - export type PaymentMethodDetails = Stripe.PaymentRecordReportPaymentParams.PaymentMethodDetails; - export type CustomerDetails = Stripe.PaymentRecordReportPaymentParams.CustomerDetails; - export type CustomerPresence = Stripe.PaymentRecordReportPaymentParams.CustomerPresence; - export type Failed = Stripe.PaymentRecordReportPaymentParams.Failed; - export type Guaranteed = Stripe.PaymentRecordReportPaymentParams.Guaranteed; - export type Outcome = Stripe.PaymentRecordReportPaymentParams.Outcome; - export type ProcessorDetails = Stripe.PaymentRecordReportPaymentParams.ProcessorDetails; - export type ShippingDetails = Stripe.PaymentRecordReportPaymentParams.ShippingDetails; + export namespace SetupIntentUpdateParams { + export type ExcludedPaymentMethodType = Stripe_.SetupIntentUpdateParams.ExcludedPaymentMethodType; + export type FlowDirection = Stripe_.SetupIntentUpdateParams.FlowDirection; + export type PaymentMethodData = Stripe_.SetupIntentUpdateParams.PaymentMethodData; + export type PaymentMethodOptions = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions; + export namespace PaymentMethodData { + export type AcssDebit = Stripe_.SetupIntentUpdateParams.PaymentMethodData.AcssDebit; + export type Affirm = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Affirm; + export type AfterpayClearpay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.AfterpayClearpay; + export type Alipay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Alipay; + export type AllowRedisplay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.AllowRedisplay; + export type Alma = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Alma; + export type AmazonPay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.AmazonPay; + export type AuBecsDebit = Stripe_.SetupIntentUpdateParams.PaymentMethodData.AuBecsDebit; + export type BacsDebit = Stripe_.SetupIntentUpdateParams.PaymentMethodData.BacsDebit; + export type Bancontact = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Bancontact; + export type Billie = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Billie; + export type BillingDetails = Stripe_.SetupIntentUpdateParams.PaymentMethodData.BillingDetails; + export type Bizum = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Bizum; + export type Blik = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Blik; + export type Boleto = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Boleto; + export type Cashapp = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Cashapp; + export type Crypto = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Crypto; + export type CustomerBalance = Stripe_.SetupIntentUpdateParams.PaymentMethodData.CustomerBalance; + export type Eps = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Eps; + export type Fpx = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Fpx; + export type Giropay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Giropay; + export type Gopay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Gopay; + export type Grabpay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Grabpay; + export type IdBankTransfer = Stripe_.SetupIntentUpdateParams.PaymentMethodData.IdBankTransfer; + export type Ideal = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Ideal; + export type InteracPresent = Stripe_.SetupIntentUpdateParams.PaymentMethodData.InteracPresent; + export type KakaoPay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.KakaoPay; + export type Klarna = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Klarna; + export type Konbini = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Konbini; + export type KrCard = Stripe_.SetupIntentUpdateParams.PaymentMethodData.KrCard; + export type Link = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Link; + export type MbWay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.MbWay; + export type Mobilepay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Mobilepay; + export type Multibanco = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Multibanco; + export type NaverPay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.NaverPay; + export type NzBankAccount = Stripe_.SetupIntentUpdateParams.PaymentMethodData.NzBankAccount; + export type Oxxo = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Oxxo; + export type P24 = Stripe_.SetupIntentUpdateParams.PaymentMethodData.P24; + export type PayByBank = Stripe_.SetupIntentUpdateParams.PaymentMethodData.PayByBank; + export type Payco = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Payco; + export type Paynow = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Paynow; + export type Paypal = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Paypal; + export type Paypay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Paypay; + export type Payto = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Payto; + export type Pix = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Pix; + export type Promptpay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Promptpay; + export type Qris = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Qris; + export type RadarOptions = Stripe_.SetupIntentUpdateParams.PaymentMethodData.RadarOptions; + export type Rechnung = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Rechnung; + export type RevolutPay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.RevolutPay; + export type SamsungPay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.SamsungPay; + export type Satispay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Satispay; + export type Scalapay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Scalapay; + export type SepaDebit = Stripe_.SetupIntentUpdateParams.PaymentMethodData.SepaDebit; + export type Shopeepay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Shopeepay; + export type Sofort = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Sofort; + export type StripeBalance = Stripe_.SetupIntentUpdateParams.PaymentMethodData.StripeBalance; + export type Sunbit = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Sunbit; + export type Swish = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Swish; + export type Twint = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Twint; + export type Type = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Type; + export type Upi = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Upi; + export type UsBankAccount = Stripe_.SetupIntentUpdateParams.PaymentMethodData.UsBankAccount; + export type WechatPay = Stripe_.SetupIntentUpdateParams.PaymentMethodData.WechatPay; + export type Zip = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Zip; + export namespace Eps { + export type Bank = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Eps.Bank; + } + export namespace Fpx { + export type AccountHolderType = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Fpx.AccountHolderType; + export type Bank = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Fpx.Bank; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.SetupIntentUpdateParams.PaymentMethodData.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Ideal.Bank; + } + export namespace Klarna { + export type Dob = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Klarna.Dob; + } + export namespace NaverPay { + export type Funding = Stripe_.SetupIntentUpdateParams.PaymentMethodData.NaverPay.Funding; + } + export namespace P24 { + export type Bank = Stripe_.SetupIntentUpdateParams.PaymentMethodData.P24.Bank; + } + export namespace Rechnung { + export type Dob = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Rechnung.Dob; + } + export namespace Sofort { + export type Country = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Sofort.Country; + } + export namespace Upi { + export type MandateOptions = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntentUpdateParams.PaymentMethodData.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.SetupIntentUpdateParams.PaymentMethodData.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.SetupIntentUpdateParams.PaymentMethodData.UsBankAccount.AccountType; + } + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.AcssDebit; + export type AmazonPay = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.AmazonPay; + export type BacsDebit = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit; + export type Bizum = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Bizum; + export type Card = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.CardPresent; + export type Klarna = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Klarna; + export type Link = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Link; + export type Paypal = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Paypal; + export type Payto = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Payto; + export type Pix = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Pix; + export type SepaDebit = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.SepaDebit; + export type Upi = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type Currency = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.AcssDebit.Currency; + export type MandateOptions = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type DefaultFor = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.AcssDebit.MandateOptions.DefaultFor; + export type PaymentSchedule = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.AcssDebit.MandateOptions.PaymentSchedule; + export type TransactionType = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace BacsDebit { + export type MandateOptions = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions; + } + export namespace Card { + export type MandateOptions = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions; + export type Network = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Card.Network; + export type RequestThreeDSecure = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Card.RequestThreeDSecure; + export type ThreeDSecure = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.AmountType; + export type Interval = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Card.MandateOptions.Interval; + } + export namespace ThreeDSecure { + export type AresTransStatus = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure.AresTransStatus; + export type ElectronicCommerceIndicator = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure.ElectronicCommerceIndicator; + export type NetworkOptions = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions; + export type Version = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure.Version; + export namespace NetworkOptions { + export type CartesBancaires = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions.CartesBancaires; + export namespace CartesBancaires { + export type CbAvalgo = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions.CartesBancaires.CbAvalgo; + } + } + } + } + export namespace Klarna { + export type OnDemand = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Klarna.OnDemand; + export type PreferredLocale = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Klarna.PreferredLocale; + export type Subscription = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Klarna.Subscription; + export namespace OnDemand { + export type PurchaseInterval = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Klarna.OnDemand.PurchaseInterval; + } + export namespace Subscription { + export type Interval = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Klarna.Subscription.Interval; + export type NextBilling = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Klarna.Subscription.NextBilling; + } + } + export namespace Payto { + export type MandateOptions = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule; + export type Purpose = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type MandateOptions = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Pix.MandateOptions; + export namespace MandateOptions { + export type AmountIncludesIof = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Pix.MandateOptions.AmountIncludesIof; + export type AmountType = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Pix.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Pix.MandateOptions.PaymentSchedule; + } + } + export namespace SepaDebit { + export type MandateOptions = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions; + } + export namespace Upi { + export type MandateOptions = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Upi.MandateOptions; + export type SetupFutureUsage = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Upi.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type MandateOptions = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.UsBankAccount.MandateOptions; + export type Networks = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.UsBankAccount.Networks; + export type VerificationMethod = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type ManualEntry = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry; + export type Permission = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + export namespace ManualEntry { + export type Mode = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry.Mode; + } + } + export namespace Networks { + export type Requested = Stripe_.SetupIntentUpdateParams.PaymentMethodOptions.UsBankAccount.Networks.Requested; + } + } + } + } + export namespace SetupIntentCancelParams { + export type CancellationReason = Stripe_.SetupIntentCancelParams.CancellationReason; + } + export namespace SetupIntentConfirmParams { + export type MandateData = Stripe_.SetupIntentConfirmParams.MandateData; + export type PaymentMethodData = Stripe_.SetupIntentConfirmParams.PaymentMethodData; + export type PaymentMethodOptions = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions; + export namespace MandateData { + export type CustomerAcceptance = Stripe_.SetupIntentConfirmParams.MandateData.CustomerAcceptance; + export namespace CustomerAcceptance { + export type Offline = Stripe_.SetupIntentConfirmParams.MandateData.CustomerAcceptance.Offline; + export type Online = Stripe_.SetupIntentConfirmParams.MandateData.CustomerAcceptance.Online; + export type Type = Stripe_.SetupIntentConfirmParams.MandateData.CustomerAcceptance.Type; + } + } + export namespace PaymentMethodData { + export type AcssDebit = Stripe_.SetupIntentConfirmParams.PaymentMethodData.AcssDebit; + export type Affirm = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Affirm; + export type AfterpayClearpay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.AfterpayClearpay; + export type Alipay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Alipay; + export type AllowRedisplay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.AllowRedisplay; + export type Alma = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Alma; + export type AmazonPay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.AmazonPay; + export type AuBecsDebit = Stripe_.SetupIntentConfirmParams.PaymentMethodData.AuBecsDebit; + export type BacsDebit = Stripe_.SetupIntentConfirmParams.PaymentMethodData.BacsDebit; + export type Bancontact = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Bancontact; + export type Billie = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Billie; + export type BillingDetails = Stripe_.SetupIntentConfirmParams.PaymentMethodData.BillingDetails; + export type Bizum = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Bizum; + export type Blik = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Blik; + export type Boleto = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Boleto; + export type Cashapp = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Cashapp; + export type Crypto = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Crypto; + export type CustomerBalance = Stripe_.SetupIntentConfirmParams.PaymentMethodData.CustomerBalance; + export type Eps = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Eps; + export type Fpx = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Fpx; + export type Giropay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Giropay; + export type Gopay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Gopay; + export type Grabpay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Grabpay; + export type IdBankTransfer = Stripe_.SetupIntentConfirmParams.PaymentMethodData.IdBankTransfer; + export type Ideal = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Ideal; + export type InteracPresent = Stripe_.SetupIntentConfirmParams.PaymentMethodData.InteracPresent; + export type KakaoPay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.KakaoPay; + export type Klarna = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Klarna; + export type Konbini = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Konbini; + export type KrCard = Stripe_.SetupIntentConfirmParams.PaymentMethodData.KrCard; + export type Link = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Link; + export type MbWay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.MbWay; + export type Mobilepay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Mobilepay; + export type Multibanco = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Multibanco; + export type NaverPay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.NaverPay; + export type NzBankAccount = Stripe_.SetupIntentConfirmParams.PaymentMethodData.NzBankAccount; + export type Oxxo = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Oxxo; + export type P24 = Stripe_.SetupIntentConfirmParams.PaymentMethodData.P24; + export type PayByBank = Stripe_.SetupIntentConfirmParams.PaymentMethodData.PayByBank; + export type Payco = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Payco; + export type Paynow = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Paynow; + export type Paypal = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Paypal; + export type Paypay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Paypay; + export type Payto = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Payto; + export type Pix = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Pix; + export type Promptpay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Promptpay; + export type Qris = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Qris; + export type RadarOptions = Stripe_.SetupIntentConfirmParams.PaymentMethodData.RadarOptions; + export type Rechnung = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Rechnung; + export type RevolutPay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.RevolutPay; + export type SamsungPay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.SamsungPay; + export type Satispay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Satispay; + export type Scalapay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Scalapay; + export type SepaDebit = Stripe_.SetupIntentConfirmParams.PaymentMethodData.SepaDebit; + export type Shopeepay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Shopeepay; + export type Sofort = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Sofort; + export type StripeBalance = Stripe_.SetupIntentConfirmParams.PaymentMethodData.StripeBalance; + export type Sunbit = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Sunbit; + export type Swish = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Swish; + export type Twint = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Twint; + export type Type = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Type; + export type Upi = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Upi; + export type UsBankAccount = Stripe_.SetupIntentConfirmParams.PaymentMethodData.UsBankAccount; + export type WechatPay = Stripe_.SetupIntentConfirmParams.PaymentMethodData.WechatPay; + export type Zip = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Zip; + export namespace Eps { + export type Bank = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Eps.Bank; + } + export namespace Fpx { + export type AccountHolderType = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Fpx.AccountHolderType; + export type Bank = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Fpx.Bank; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.SetupIntentConfirmParams.PaymentMethodData.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Ideal.Bank; + } + export namespace Klarna { + export type Dob = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Klarna.Dob; + } + export namespace NaverPay { + export type Funding = Stripe_.SetupIntentConfirmParams.PaymentMethodData.NaverPay.Funding; + } + export namespace P24 { + export type Bank = Stripe_.SetupIntentConfirmParams.PaymentMethodData.P24.Bank; + } + export namespace Rechnung { + export type Dob = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Rechnung.Dob; + } + export namespace Sofort { + export type Country = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Sofort.Country; + } + export namespace Upi { + export type MandateOptions = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntentConfirmParams.PaymentMethodData.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.SetupIntentConfirmParams.PaymentMethodData.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.SetupIntentConfirmParams.PaymentMethodData.UsBankAccount.AccountType; + } + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.AcssDebit; + export type AmazonPay = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.AmazonPay; + export type BacsDebit = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit; + export type Bizum = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Bizum; + export type Card = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.CardPresent; + export type Klarna = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Klarna; + export type Link = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Link; + export type Paypal = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Paypal; + export type Payto = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Payto; + export type Pix = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Pix; + export type SepaDebit = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.SepaDebit; + export type Upi = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type Currency = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.AcssDebit.Currency; + export type MandateOptions = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type DefaultFor = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.AcssDebit.MandateOptions.DefaultFor; + export type PaymentSchedule = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.AcssDebit.MandateOptions.PaymentSchedule; + export type TransactionType = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace BacsDebit { + export type MandateOptions = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions; + } + export namespace Card { + export type MandateOptions = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Card.MandateOptions; + export type Network = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Card.Network; + export type RequestThreeDSecure = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Card.RequestThreeDSecure; + export type ThreeDSecure = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Card.MandateOptions.AmountType; + export type Interval = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Card.MandateOptions.Interval; + } + export namespace ThreeDSecure { + export type AresTransStatus = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure.AresTransStatus; + export type ElectronicCommerceIndicator = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure.ElectronicCommerceIndicator; + export type NetworkOptions = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions; + export type Version = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure.Version; + export namespace NetworkOptions { + export type CartesBancaires = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions.CartesBancaires; + export namespace CartesBancaires { + export type CbAvalgo = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Card.ThreeDSecure.NetworkOptions.CartesBancaires.CbAvalgo; + } + } + } + } + export namespace Klarna { + export type OnDemand = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Klarna.OnDemand; + export type PreferredLocale = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Klarna.PreferredLocale; + export type Subscription = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Subscription; + export namespace OnDemand { + export type PurchaseInterval = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Klarna.OnDemand.PurchaseInterval; + } + export namespace Subscription { + export type Interval = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Subscription.Interval; + export type NextBilling = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Klarna.Subscription.NextBilling; + } + } + export namespace Payto { + export type MandateOptions = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule; + export type Purpose = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type MandateOptions = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Pix.MandateOptions; + export namespace MandateOptions { + export type AmountIncludesIof = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Pix.MandateOptions.AmountIncludesIof; + export type AmountType = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Pix.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Pix.MandateOptions.PaymentSchedule; + } + } + export namespace SepaDebit { + export type MandateOptions = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions; + } + export namespace Upi { + export type MandateOptions = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Upi.MandateOptions; + export type SetupFutureUsage = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Upi.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type MandateOptions = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.UsBankAccount.MandateOptions; + export type Networks = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.UsBankAccount.Networks; + export type VerificationMethod = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type ManualEntry = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry; + export type Permission = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + export namespace ManualEntry { + export type Mode = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry.Mode; + } + } + export namespace Networks { + export type Requested = Stripe_.SetupIntentConfirmParams.PaymentMethodOptions.UsBankAccount.Networks.Requested; + } + } + } + } + export namespace SetupIntent { + export type AutomaticPaymentMethods = Stripe_.SetupIntent.AutomaticPaymentMethods; + export type CancellationReason = Stripe_.SetupIntent.CancellationReason; + export type ExcludedPaymentMethodType = Stripe_.SetupIntent.ExcludedPaymentMethodType; + export type FlowDirection = Stripe_.SetupIntent.FlowDirection; + export type LastSetupError = Stripe_.SetupIntent.LastSetupError; + export type ManagedPayments = Stripe_.SetupIntent.ManagedPayments; + export type NextAction = Stripe_.SetupIntent.NextAction; + export type PaymentMethodConfigurationDetails = Stripe_.SetupIntent.PaymentMethodConfigurationDetails; + export type PaymentMethodOptions = Stripe_.SetupIntent.PaymentMethodOptions; + export type Status = Stripe_.SetupIntent.Status; + export namespace AutomaticPaymentMethods { + export type AllowRedirects = Stripe_.SetupIntent.AutomaticPaymentMethods.AllowRedirects; + } + export namespace LastSetupError { + export type Code = Stripe_.SetupIntent.LastSetupError.Code; + export type Type = Stripe_.SetupIntent.LastSetupError.Type; + } + export namespace NextAction { + export type BlikAuthorize = Stripe_.SetupIntent.NextAction.BlikAuthorize; + export type CashappHandleRedirectOrDisplayQrCode = Stripe_.SetupIntent.NextAction.CashappHandleRedirectOrDisplayQrCode; + export type PixDisplayQrCode = Stripe_.SetupIntent.NextAction.PixDisplayQrCode; + export type RedirectToUrl = Stripe_.SetupIntent.NextAction.RedirectToUrl; + export type UpiHandleRedirectOrDisplayQrCode = Stripe_.SetupIntent.NextAction.UpiHandleRedirectOrDisplayQrCode; + export type UseStripeSdk = Stripe_.SetupIntent.NextAction.UseStripeSdk; + export type VerifyWithMicrodeposits = Stripe_.SetupIntent.NextAction.VerifyWithMicrodeposits; + export namespace CashappHandleRedirectOrDisplayQrCode { + export type QrCode = Stripe_.SetupIntent.NextAction.CashappHandleRedirectOrDisplayQrCode.QrCode; + } + export namespace UpiHandleRedirectOrDisplayQrCode { + export type QrCode = Stripe_.SetupIntent.NextAction.UpiHandleRedirectOrDisplayQrCode.QrCode; + } + export namespace VerifyWithMicrodeposits { + export type MicrodepositType = Stripe_.SetupIntent.NextAction.VerifyWithMicrodeposits.MicrodepositType; + } + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.SetupIntent.PaymentMethodOptions.AcssDebit; + export type AmazonPay = Stripe_.SetupIntent.PaymentMethodOptions.AmazonPay; + export type BacsDebit = Stripe_.SetupIntent.PaymentMethodOptions.BacsDebit; + export type Bizum = Stripe_.SetupIntent.PaymentMethodOptions.Bizum; + export type Card = Stripe_.SetupIntent.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.SetupIntent.PaymentMethodOptions.CardPresent; + export type Klarna = Stripe_.SetupIntent.PaymentMethodOptions.Klarna; + export type Link = Stripe_.SetupIntent.PaymentMethodOptions.Link; + export type Paypal = Stripe_.SetupIntent.PaymentMethodOptions.Paypal; + export type Payto = Stripe_.SetupIntent.PaymentMethodOptions.Payto; + export type Pix = Stripe_.SetupIntent.PaymentMethodOptions.Pix; + export type SepaDebit = Stripe_.SetupIntent.PaymentMethodOptions.SepaDebit; + export type Upi = Stripe_.SetupIntent.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.SetupIntent.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type Currency = Stripe_.SetupIntent.PaymentMethodOptions.AcssDebit.Currency; + export type MandateOptions = Stripe_.SetupIntent.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.SetupIntent.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type DefaultFor = Stripe_.SetupIntent.PaymentMethodOptions.AcssDebit.MandateOptions.DefaultFor; + export type PaymentSchedule = Stripe_.SetupIntent.PaymentMethodOptions.AcssDebit.MandateOptions.PaymentSchedule; + export type TransactionType = Stripe_.SetupIntent.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace BacsDebit { + export type MandateOptions = Stripe_.SetupIntent.PaymentMethodOptions.BacsDebit.MandateOptions; + } + export namespace Card { + export type MandateOptions = Stripe_.SetupIntent.PaymentMethodOptions.Card.MandateOptions; + export type Network = Stripe_.SetupIntent.PaymentMethodOptions.Card.Network; + export type RequestThreeDSecure = Stripe_.SetupIntent.PaymentMethodOptions.Card.RequestThreeDSecure; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntent.PaymentMethodOptions.Card.MandateOptions.AmountType; + export type Interval = Stripe_.SetupIntent.PaymentMethodOptions.Card.MandateOptions.Interval; + } + } + export namespace Payto { + export type MandateOptions = Stripe_.SetupIntent.PaymentMethodOptions.Payto.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntent.PaymentMethodOptions.Payto.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.SetupIntent.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule; + export type Purpose = Stripe_.SetupIntent.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type MandateOptions = Stripe_.SetupIntent.PaymentMethodOptions.Pix.MandateOptions; + export namespace MandateOptions { + export type AmountIncludesIof = Stripe_.SetupIntent.PaymentMethodOptions.Pix.MandateOptions.AmountIncludesIof; + export type AmountType = Stripe_.SetupIntent.PaymentMethodOptions.Pix.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.SetupIntent.PaymentMethodOptions.Pix.MandateOptions.PaymentSchedule; + } + } + export namespace SepaDebit { + export type MandateOptions = Stripe_.SetupIntent.PaymentMethodOptions.SepaDebit.MandateOptions; + } + export namespace Upi { + export type MandateOptions = Stripe_.SetupIntent.PaymentMethodOptions.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.SetupIntent.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.SetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type MandateOptions = Stripe_.SetupIntent.PaymentMethodOptions.UsBankAccount.MandateOptions; + export type VerificationMethod = Stripe_.SetupIntent.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.SetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type ManualEntry = Stripe_.SetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry; + export type Permission = Stripe_.SetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.SetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.SetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + export namespace ManualEntry { + export type Mode = Stripe_.SetupIntent.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry.Mode; + } + } + } + } + } + export namespace ShippingRateCreateParams { + export type DeliveryEstimate = Stripe_.ShippingRateCreateParams.DeliveryEstimate; + export type FixedAmount = Stripe_.ShippingRateCreateParams.FixedAmount; + export type TaxBehavior = Stripe_.ShippingRateCreateParams.TaxBehavior; + export namespace DeliveryEstimate { + export type Maximum = Stripe_.ShippingRateCreateParams.DeliveryEstimate.Maximum; + export type Minimum = Stripe_.ShippingRateCreateParams.DeliveryEstimate.Minimum; + export namespace Maximum { + export type Unit = Stripe_.ShippingRateCreateParams.DeliveryEstimate.Maximum.Unit; + } + export namespace Minimum { + export type Unit = Stripe_.ShippingRateCreateParams.DeliveryEstimate.Minimum.Unit; + } + } + export namespace FixedAmount { + export type CurrencyOptions = Stripe_.ShippingRateCreateParams.FixedAmount.CurrencyOptions; + export namespace CurrencyOptions { + export type TaxBehavior = Stripe_.ShippingRateCreateParams.FixedAmount.CurrencyOptions.TaxBehavior; + } + } + } + export namespace ShippingRateUpdateParams { + export type FixedAmount = Stripe_.ShippingRateUpdateParams.FixedAmount; + export type TaxBehavior = Stripe_.ShippingRateUpdateParams.TaxBehavior; + export namespace FixedAmount { + export type CurrencyOptions = Stripe_.ShippingRateUpdateParams.FixedAmount.CurrencyOptions; + export namespace CurrencyOptions { + export type TaxBehavior = Stripe_.ShippingRateUpdateParams.FixedAmount.CurrencyOptions.TaxBehavior; + } + } + } + export namespace ShippingRate { + export type DeliveryEstimate = Stripe_.ShippingRate.DeliveryEstimate; + export type FixedAmount = Stripe_.ShippingRate.FixedAmount; + export type TaxBehavior = Stripe_.ShippingRate.TaxBehavior; + export namespace DeliveryEstimate { + export type Maximum = Stripe_.ShippingRate.DeliveryEstimate.Maximum; + export type Minimum = Stripe_.ShippingRate.DeliveryEstimate.Minimum; + export namespace Maximum { + export type Unit = Stripe_.ShippingRate.DeliveryEstimate.Maximum.Unit; + } + export namespace Minimum { + export type Unit = Stripe_.ShippingRate.DeliveryEstimate.Minimum.Unit; + } + } + export namespace FixedAmount { + export type CurrencyOptions = Stripe_.ShippingRate.FixedAmount.CurrencyOptions; + export namespace CurrencyOptions { + export type TaxBehavior = Stripe_.ShippingRate.FixedAmount.CurrencyOptions.TaxBehavior; + } + } + } + export namespace SourceCreateParams { + export type Flow = Stripe_.SourceCreateParams.Flow; + export type Mandate = Stripe_.SourceCreateParams.Mandate; + export type Owner = Stripe_.SourceCreateParams.Owner; + export type Receiver = Stripe_.SourceCreateParams.Receiver; + export type Redirect = Stripe_.SourceCreateParams.Redirect; + export type SourceOrder = Stripe_.SourceCreateParams.SourceOrder; + export type Usage = Stripe_.SourceCreateParams.Usage; + export namespace Mandate { + export type Acceptance = Stripe_.SourceCreateParams.Mandate.Acceptance; + export type Interval = Stripe_.SourceCreateParams.Mandate.Interval; + export type NotificationMethod = Stripe_.SourceCreateParams.Mandate.NotificationMethod; + export namespace Acceptance { + export type Offline = Stripe_.SourceCreateParams.Mandate.Acceptance.Offline; + export type Online = Stripe_.SourceCreateParams.Mandate.Acceptance.Online; + export type Status = Stripe_.SourceCreateParams.Mandate.Acceptance.Status; + export type Type = Stripe_.SourceCreateParams.Mandate.Acceptance.Type; + } + } + export namespace Receiver { + export type RefundAttributesMethod = Stripe_.SourceCreateParams.Receiver.RefundAttributesMethod; + } + export namespace SourceOrder { + export type Item = Stripe_.SourceCreateParams.SourceOrder.Item; + export type Shipping = Stripe_.SourceCreateParams.SourceOrder.Shipping; + export namespace Item { + export type Type = Stripe_.SourceCreateParams.SourceOrder.Item.Type; + } + } + } + export namespace SourceUpdateParams { + export type Mandate = Stripe_.SourceUpdateParams.Mandate; + export type Owner = Stripe_.SourceUpdateParams.Owner; + export type SourceOrder = Stripe_.SourceUpdateParams.SourceOrder; + export namespace Mandate { + export type Acceptance = Stripe_.SourceUpdateParams.Mandate.Acceptance; + export type Interval = Stripe_.SourceUpdateParams.Mandate.Interval; + export type NotificationMethod = Stripe_.SourceUpdateParams.Mandate.NotificationMethod; + export namespace Acceptance { + export type Offline = Stripe_.SourceUpdateParams.Mandate.Acceptance.Offline; + export type Online = Stripe_.SourceUpdateParams.Mandate.Acceptance.Online; + export type Status = Stripe_.SourceUpdateParams.Mandate.Acceptance.Status; + export type Type = Stripe_.SourceUpdateParams.Mandate.Acceptance.Type; + } + } + export namespace SourceOrder { + export type Item = Stripe_.SourceUpdateParams.SourceOrder.Item; + export type Shipping = Stripe_.SourceUpdateParams.SourceOrder.Shipping; + export namespace Item { + export type Type = Stripe_.SourceUpdateParams.SourceOrder.Item.Type; + } + } + } + export namespace Source { + export type AchCreditTransfer = Stripe_.Source.AchCreditTransfer; + export type AchDebit = Stripe_.Source.AchDebit; + export type AcssDebit = Stripe_.Source.AcssDebit; + export type Alipay = Stripe_.Source.Alipay; + export type AllowRedisplay = Stripe_.Source.AllowRedisplay; + export type AuBecsDebit = Stripe_.Source.AuBecsDebit; + export type Bancontact = Stripe_.Source.Bancontact; + export type Card = Stripe_.Source.Card; + export type CardPresent = Stripe_.Source.CardPresent; + export type CodeVerification = Stripe_.Source.CodeVerification; + export type Eps = Stripe_.Source.Eps; + export type Giropay = Stripe_.Source.Giropay; + export type Ideal = Stripe_.Source.Ideal; + export type Klarna = Stripe_.Source.Klarna; + export type Multibanco = Stripe_.Source.Multibanco; + export type Owner = Stripe_.Source.Owner; + export type P24 = Stripe_.Source.P24; + export type Paypal = Stripe_.Source.Paypal; + export type Receiver = Stripe_.Source.Receiver; + export type Redirect = Stripe_.Source.Redirect; + export type SepaCreditTransfer = Stripe_.Source.SepaCreditTransfer; + export type SepaDebit = Stripe_.Source.SepaDebit; + export type Sofort = Stripe_.Source.Sofort; + export type SourceOrder = Stripe_.Source.SourceOrder; + export type ThreeDSecure = Stripe_.Source.ThreeDSecure; + export type Type = Stripe_.Source.Type; + export type Wechat = Stripe_.Source.Wechat; + export namespace SourceOrder { + export type Item = Stripe_.Source.SourceOrder.Item; + export type Shipping = Stripe_.Source.SourceOrder.Shipping; + } + } + export namespace SubscriptionCreateParams { + export type AddInvoiceItem = Stripe_.SubscriptionCreateParams.AddInvoiceItem; + export type AutomaticTax = Stripe_.SubscriptionCreateParams.AutomaticTax; + export type BillingCycleAnchorConfig = Stripe_.SubscriptionCreateParams.BillingCycleAnchorConfig; + export type BillingMode = Stripe_.SubscriptionCreateParams.BillingMode; + export type BillingSchedule = Stripe_.SubscriptionCreateParams.BillingSchedule; + export type BillingThresholds = Stripe_.SubscriptionCreateParams.BillingThresholds; + export type CancelAt = Stripe_.SubscriptionCreateParams.CancelAt; + export type CollectionMethod = Stripe_.SubscriptionCreateParams.CollectionMethod; + export type Discount = Stripe_.SubscriptionCreateParams.Discount; + export type InvoiceSettings = Stripe_.SubscriptionCreateParams.InvoiceSettings; + export type Item = Stripe_.SubscriptionCreateParams.Item; + export type PaymentBehavior = Stripe_.SubscriptionCreateParams.PaymentBehavior; + export type PaymentSettings = Stripe_.SubscriptionCreateParams.PaymentSettings; + export type PendingInvoiceItemInterval = Stripe_.SubscriptionCreateParams.PendingInvoiceItemInterval; + export type Prebilling = Stripe_.SubscriptionCreateParams.Prebilling; + export type ProrationBehavior = Stripe_.SubscriptionCreateParams.ProrationBehavior; + export type TransferData = Stripe_.SubscriptionCreateParams.TransferData; + export type TrialSettings = Stripe_.SubscriptionCreateParams.TrialSettings; + export namespace AddInvoiceItem { + export type Discount = Stripe_.SubscriptionCreateParams.AddInvoiceItem.Discount; + export type Period = Stripe_.SubscriptionCreateParams.AddInvoiceItem.Period; + export type PriceData = Stripe_.SubscriptionCreateParams.AddInvoiceItem.PriceData; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionCreateParams.AddInvoiceItem.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionCreateParams.AddInvoiceItem.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionCreateParams.AddInvoiceItem.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionCreateParams.AddInvoiceItem.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Period { + export type End = Stripe_.SubscriptionCreateParams.AddInvoiceItem.Period.End; + export type Start = Stripe_.SubscriptionCreateParams.AddInvoiceItem.Period.Start; + export namespace End { + export type Type = Stripe_.SubscriptionCreateParams.AddInvoiceItem.Period.End.Type; + } + export namespace Start { + export type Type = Stripe_.SubscriptionCreateParams.AddInvoiceItem.Period.Start.Type; + } + } + export namespace PriceData { + export type TaxBehavior = Stripe_.SubscriptionCreateParams.AddInvoiceItem.PriceData.TaxBehavior; + } + } + export namespace AutomaticTax { + export type Liability = Stripe_.SubscriptionCreateParams.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.SubscriptionCreateParams.AutomaticTax.Liability.Type; + } + } + export namespace BillingMode { + export type Flexible = Stripe_.SubscriptionCreateParams.BillingMode.Flexible; + export type Type = Stripe_.SubscriptionCreateParams.BillingMode.Type; + export namespace Flexible { + export type ProrationDiscounts = Stripe_.SubscriptionCreateParams.BillingMode.Flexible.ProrationDiscounts; + } + } + export namespace BillingSchedule { + export type AppliesTo = Stripe_.SubscriptionCreateParams.BillingSchedule.AppliesTo; + export type BillUntil = Stripe_.SubscriptionCreateParams.BillingSchedule.BillUntil; + export namespace BillUntil { + export type Duration = Stripe_.SubscriptionCreateParams.BillingSchedule.BillUntil.Duration; + export type Type = Stripe_.SubscriptionCreateParams.BillingSchedule.BillUntil.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionCreateParams.BillingSchedule.BillUntil.Duration.Interval; + } + } + } + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionCreateParams.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionCreateParams.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionCreateParams.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionCreateParams.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.SubscriptionCreateParams.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.SubscriptionCreateParams.InvoiceSettings.Issuer.Type; + } + } + export namespace Item { + export type BillingThresholds = Stripe_.SubscriptionCreateParams.Item.BillingThresholds; + export type CurrentTrial = Stripe_.SubscriptionCreateParams.Item.CurrentTrial; + export type Discount = Stripe_.SubscriptionCreateParams.Item.Discount; + export type PriceData = Stripe_.SubscriptionCreateParams.Item.PriceData; + export type Trial = Stripe_.SubscriptionCreateParams.Item.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionCreateParams.Item.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionCreateParams.Item.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionCreateParams.Item.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionCreateParams.Item.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type Recurring = Stripe_.SubscriptionCreateParams.Item.PriceData.Recurring; + export type TaxBehavior = Stripe_.SubscriptionCreateParams.Item.PriceData.TaxBehavior; + export namespace Recurring { + export type Interval = Stripe_.SubscriptionCreateParams.Item.PriceData.Recurring.Interval; + } + } + export namespace Trial { + export type Type = Stripe_.SubscriptionCreateParams.Item.Trial.Type; + } + } + export namespace PaymentSettings { + export type PaymentMethodOptions = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodType; + export type SaveDefaultPaymentMethod = Stripe_.SubscriptionCreateParams.PaymentSettings.SaveDefaultPaymentMethod; + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.AcssDebit; + export type Bancontact = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Bancontact; + export type Blik = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Blik; + export type Card = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.CustomerBalance; + export type IdBankTransfer = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.IdBankTransfer; + export type Konbini = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Konbini; + export type Payto = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Payto; + export type Pix = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Pix; + export type SepaDebit = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.SepaDebit; + export type Upi = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type MandateOptions = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type TransactionType = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Bancontact.PreferredLanguage; + } + export namespace Blik { + export type MandateOptions = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Blik.MandateOptions; + } + export namespace Card { + export type MandateOptions = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card.MandateOptions; + export type Network = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card.Network; + export type RequestThreeDSecure = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card.RequestThreeDSecure; + export namespace MandateOptions { + export type AmountType = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Card.MandateOptions.AmountType; + } + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + } + } + export namespace Payto { + export type MandateOptions = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions; + export namespace MandateOptions { + export type Purpose = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type MandateOptions = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Pix.MandateOptions; + export namespace MandateOptions { + export type AmountIncludesIof = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Pix.MandateOptions.AmountIncludesIof; + export type PaymentSchedule = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Pix.MandateOptions.PaymentSchedule; + } + } + export namespace Upi { + export type MandateOptions = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type VerificationMethod = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type Permission = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.SubscriptionCreateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + } + } + } + } + export namespace PendingInvoiceItemInterval { + export type Interval = Stripe_.SubscriptionCreateParams.PendingInvoiceItemInterval.Interval; + } + export namespace Prebilling { + export type UpdateBehavior = Stripe_.SubscriptionCreateParams.Prebilling.UpdateBehavior; + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.SubscriptionCreateParams.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type BillingCycleAnchor = Stripe_.SubscriptionCreateParams.TrialSettings.EndBehavior.BillingCycleAnchor; + export type MissingPaymentMethod = Stripe_.SubscriptionCreateParams.TrialSettings.EndBehavior.MissingPaymentMethod; + } + } + } + export namespace SubscriptionUpdateParams { + export type AddInvoiceItem = Stripe_.SubscriptionUpdateParams.AddInvoiceItem; + export type AutomaticTax = Stripe_.SubscriptionUpdateParams.AutomaticTax; + export type BillingCycleAnchor = Stripe_.SubscriptionUpdateParams.BillingCycleAnchor; + export type BillingSchedule = Stripe_.SubscriptionUpdateParams.BillingSchedule; + export type BillingThresholds = Stripe_.SubscriptionUpdateParams.BillingThresholds; + export type CancelAt = Stripe_.SubscriptionUpdateParams.CancelAt; + export type CancellationDetails = Stripe_.SubscriptionUpdateParams.CancellationDetails; + export type CollectionMethod = Stripe_.SubscriptionUpdateParams.CollectionMethod; + export type Discount = Stripe_.SubscriptionUpdateParams.Discount; + export type InvoiceSettings = Stripe_.SubscriptionUpdateParams.InvoiceSettings; + export type Item = Stripe_.SubscriptionUpdateParams.Item; + export type PauseCollection = Stripe_.SubscriptionUpdateParams.PauseCollection; + export type PaymentBehavior = Stripe_.SubscriptionUpdateParams.PaymentBehavior; + export type PaymentSettings = Stripe_.SubscriptionUpdateParams.PaymentSettings; + export type PendingInvoiceItemInterval = Stripe_.SubscriptionUpdateParams.PendingInvoiceItemInterval; + export type Prebilling = Stripe_.SubscriptionUpdateParams.Prebilling; + export type ProrationBehavior = Stripe_.SubscriptionUpdateParams.ProrationBehavior; + export type TransferData = Stripe_.SubscriptionUpdateParams.TransferData; + export type TrialSettings = Stripe_.SubscriptionUpdateParams.TrialSettings; + export namespace AddInvoiceItem { + export type Discount = Stripe_.SubscriptionUpdateParams.AddInvoiceItem.Discount; + export type Period = Stripe_.SubscriptionUpdateParams.AddInvoiceItem.Period; + export type PriceData = Stripe_.SubscriptionUpdateParams.AddInvoiceItem.PriceData; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionUpdateParams.AddInvoiceItem.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionUpdateParams.AddInvoiceItem.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionUpdateParams.AddInvoiceItem.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionUpdateParams.AddInvoiceItem.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Period { + export type End = Stripe_.SubscriptionUpdateParams.AddInvoiceItem.Period.End; + export type Start = Stripe_.SubscriptionUpdateParams.AddInvoiceItem.Period.Start; + export namespace End { + export type Type = Stripe_.SubscriptionUpdateParams.AddInvoiceItem.Period.End.Type; + } + export namespace Start { + export type Type = Stripe_.SubscriptionUpdateParams.AddInvoiceItem.Period.Start.Type; + } + } + export namespace PriceData { + export type TaxBehavior = Stripe_.SubscriptionUpdateParams.AddInvoiceItem.PriceData.TaxBehavior; + } + } + export namespace AutomaticTax { + export type Liability = Stripe_.SubscriptionUpdateParams.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.SubscriptionUpdateParams.AutomaticTax.Liability.Type; + } + } + export namespace BillingSchedule { + export type AppliesTo = Stripe_.SubscriptionUpdateParams.BillingSchedule.AppliesTo; + export type BillUntil = Stripe_.SubscriptionUpdateParams.BillingSchedule.BillUntil; + export namespace BillUntil { + export type Duration = Stripe_.SubscriptionUpdateParams.BillingSchedule.BillUntil.Duration; + export type Type = Stripe_.SubscriptionUpdateParams.BillingSchedule.BillUntil.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionUpdateParams.BillingSchedule.BillUntil.Duration.Interval; + } + } + } + export namespace CancellationDetails { + export type Feedback = Stripe_.SubscriptionUpdateParams.CancellationDetails.Feedback; + } + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionUpdateParams.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionUpdateParams.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionUpdateParams.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionUpdateParams.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.SubscriptionUpdateParams.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.SubscriptionUpdateParams.InvoiceSettings.Issuer.Type; + } + } + export namespace Item { + export type BillingThresholds = Stripe_.SubscriptionUpdateParams.Item.BillingThresholds; + export type CurrentTrial = Stripe_.SubscriptionUpdateParams.Item.CurrentTrial; + export type Discount = Stripe_.SubscriptionUpdateParams.Item.Discount; + export type PriceData = Stripe_.SubscriptionUpdateParams.Item.PriceData; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionUpdateParams.Item.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionUpdateParams.Item.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionUpdateParams.Item.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionUpdateParams.Item.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type Recurring = Stripe_.SubscriptionUpdateParams.Item.PriceData.Recurring; + export type TaxBehavior = Stripe_.SubscriptionUpdateParams.Item.PriceData.TaxBehavior; + export namespace Recurring { + export type Interval = Stripe_.SubscriptionUpdateParams.Item.PriceData.Recurring.Interval; + } + } + } + export namespace PauseCollection { + export type Behavior = Stripe_.SubscriptionUpdateParams.PauseCollection.Behavior; + } + export namespace PaymentSettings { + export type PaymentMethodOptions = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodType; + export type SaveDefaultPaymentMethod = Stripe_.SubscriptionUpdateParams.PaymentSettings.SaveDefaultPaymentMethod; + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.AcssDebit; + export type Bancontact = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Bancontact; + export type Blik = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Blik; + export type Card = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.CustomerBalance; + export type IdBankTransfer = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.IdBankTransfer; + export type Konbini = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Konbini; + export type Payto = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Payto; + export type Pix = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Pix; + export type SepaDebit = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.SepaDebit; + export type Upi = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type MandateOptions = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type TransactionType = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Bancontact.PreferredLanguage; + } + export namespace Blik { + export type MandateOptions = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Blik.MandateOptions; + } + export namespace Card { + export type MandateOptions = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Card.MandateOptions; + export type Network = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Card.Network; + export type RequestThreeDSecure = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Card.RequestThreeDSecure; + export namespace MandateOptions { + export type AmountType = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Card.MandateOptions.AmountType; + } + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + } + } + export namespace Payto { + export type MandateOptions = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions; + export namespace MandateOptions { + export type Purpose = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type MandateOptions = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Pix.MandateOptions; + export namespace MandateOptions { + export type AmountIncludesIof = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Pix.MandateOptions.AmountIncludesIof; + export type PaymentSchedule = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Pix.MandateOptions.PaymentSchedule; + } + } + export namespace Upi { + export type MandateOptions = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type VerificationMethod = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type Permission = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.SubscriptionUpdateParams.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + } + } + } + } + export namespace PendingInvoiceItemInterval { + export type Interval = Stripe_.SubscriptionUpdateParams.PendingInvoiceItemInterval.Interval; + } + export namespace Prebilling { + export type UpdateBehavior = Stripe_.SubscriptionUpdateParams.Prebilling.UpdateBehavior; + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.SubscriptionUpdateParams.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type BillingCycleAnchor = Stripe_.SubscriptionUpdateParams.TrialSettings.EndBehavior.BillingCycleAnchor; + export type MissingPaymentMethod = Stripe_.SubscriptionUpdateParams.TrialSettings.EndBehavior.MissingPaymentMethod; + } + } } - export namespace PaymentRecordReportPaymentAttemptParams { - export type Failed = Stripe.PaymentRecordReportPaymentAttemptParams.Failed; - export type Guaranteed = Stripe.PaymentRecordReportPaymentAttemptParams.Guaranteed; - export type Outcome = Stripe.PaymentRecordReportPaymentAttemptParams.Outcome; - export type PaymentMethodDetails = Stripe.PaymentRecordReportPaymentAttemptParams.PaymentMethodDetails; - export type ShippingDetails = Stripe.PaymentRecordReportPaymentAttemptParams.ShippingDetails; + export namespace SubscriptionListParams { + export type AutomaticTax = Stripe_.SubscriptionListParams.AutomaticTax; + export type CollectionMethod = Stripe_.SubscriptionListParams.CollectionMethod; + export type Status = Stripe_.SubscriptionListParams.Status; } - export namespace PaymentRecordReportPaymentAttemptInformationalParams { - export type CustomerDetails = Stripe.PaymentRecordReportPaymentAttemptInformationalParams.CustomerDetails; - export type ShippingDetails = Stripe.PaymentRecordReportPaymentAttemptInformationalParams.ShippingDetails; + export namespace SubscriptionCancelParams { + export type CancellationDetails = Stripe_.SubscriptionCancelParams.CancellationDetails; + export namespace CancellationDetails { + export type Feedback = Stripe_.SubscriptionCancelParams.CancellationDetails.Feedback; + } } - export namespace PaymentRecordReportRefundParams { - export type ProcessorDetails = Stripe.PaymentRecordReportRefundParams.ProcessorDetails; - export type Refunded = Stripe.PaymentRecordReportRefundParams.Refunded; - export type Amount = Stripe.PaymentRecordReportRefundParams.Amount; + export namespace SubscriptionMigrateParams { + export type BillingMode = Stripe_.SubscriptionMigrateParams.BillingMode; + export namespace BillingMode { + export type Flexible = Stripe_.SubscriptionMigrateParams.BillingMode.Flexible; + export namespace Flexible { + export type ProrationDiscounts = Stripe_.SubscriptionMigrateParams.BillingMode.Flexible.ProrationDiscounts; + } + } } - export namespace PayoutCreateParams { - export type Method = Stripe.PayoutCreateParams.Method; - export type SourceType = Stripe.PayoutCreateParams.SourceType; + export namespace SubscriptionPauseParams { + export type BillFor = Stripe_.SubscriptionPauseParams.BillFor; + export type InvoicingBehavior = Stripe_.SubscriptionPauseParams.InvoicingBehavior; + export namespace BillFor { + export type OutstandingUsageThrough = Stripe_.SubscriptionPauseParams.BillFor.OutstandingUsageThrough; + export type UnusedTimeFrom = Stripe_.SubscriptionPauseParams.BillFor.UnusedTimeFrom; + export namespace OutstandingUsageThrough { + export type Type = Stripe_.SubscriptionPauseParams.BillFor.OutstandingUsageThrough.Type; + } + export namespace UnusedTimeFrom { + export type Type = Stripe_.SubscriptionPauseParams.BillFor.UnusedTimeFrom.Type; + } + } } - export namespace PlanCreateParams { - export type Interval = Stripe.PlanCreateParams.Interval; - export type BillingScheme = Stripe.PlanCreateParams.BillingScheme; - export type Product = Stripe.PlanCreateParams.Product; - export type Tier = Stripe.PlanCreateParams.Tier; - export type TiersMode = Stripe.PlanCreateParams.TiersMode; - export type TransformUsage = Stripe.PlanCreateParams.TransformUsage; - export type UsageType = Stripe.PlanCreateParams.UsageType; + export namespace SubscriptionResumeParams { + export type BillingCycleAnchor = Stripe_.SubscriptionResumeParams.BillingCycleAnchor; + export type PaymentBehavior = Stripe_.SubscriptionResumeParams.PaymentBehavior; + export type ProrationBehavior = Stripe_.SubscriptionResumeParams.ProrationBehavior; } - export namespace PriceCreateParams { - export type BillingScheme = Stripe.PriceCreateParams.BillingScheme; - export type CurrencyOptions = Stripe.PriceCreateParams.CurrencyOptions; - export type CustomUnitAmount = Stripe.PriceCreateParams.CustomUnitAmount; - export type ProductData = Stripe.PriceCreateParams.ProductData; - export type Recurring = Stripe.PriceCreateParams.Recurring; - export type TaxBehavior = Stripe.PriceCreateParams.TaxBehavior; - export type Tier = Stripe.PriceCreateParams.Tier; - export type TiersMode = Stripe.PriceCreateParams.TiersMode; - export type TransformQuantity = Stripe.PriceCreateParams.TransformQuantity; + export namespace Subscription { + export type AutomaticTax = Stripe_.Subscription.AutomaticTax; + export type BillingCycleAnchorConfig = Stripe_.Subscription.BillingCycleAnchorConfig; + export type BillingMode = Stripe_.Subscription.BillingMode; + export type BillingSchedule = Stripe_.Subscription.BillingSchedule; + export type BillingThresholds = Stripe_.Subscription.BillingThresholds; + export type CancellationDetails = Stripe_.Subscription.CancellationDetails; + export type CollectionMethod = Stripe_.Subscription.CollectionMethod; + export type InvoiceSettings = Stripe_.Subscription.InvoiceSettings; + export type LastPriceMigrationError = Stripe_.Subscription.LastPriceMigrationError; + export type ManagedPayments = Stripe_.Subscription.ManagedPayments; + export type PauseCollection = Stripe_.Subscription.PauseCollection; + export type PaymentSettings = Stripe_.Subscription.PaymentSettings; + export type PendingInvoiceItemInterval = Stripe_.Subscription.PendingInvoiceItemInterval; + export type PendingUpdate = Stripe_.Subscription.PendingUpdate; + export type Prebilling = Stripe_.Subscription.Prebilling; + export type PresentmentDetails = Stripe_.Subscription.PresentmentDetails; + export type Status = Stripe_.Subscription.Status; + export type StatusDetails = Stripe_.Subscription.StatusDetails; + export type TransferData = Stripe_.Subscription.TransferData; + export type TrialSettings = Stripe_.Subscription.TrialSettings; + export namespace AutomaticTax { + export type Liability = Stripe_.Subscription.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.Subscription.AutomaticTax.Liability.Type; + } + } + export namespace BillingMode { + export type Flexible = Stripe_.Subscription.BillingMode.Flexible; + export type Type = Stripe_.Subscription.BillingMode.Type; + export namespace Flexible { + export type ProrationDiscounts = Stripe_.Subscription.BillingMode.Flexible.ProrationDiscounts; + } + } + export namespace BillingSchedule { + export type AppliesTo = Stripe_.Subscription.BillingSchedule.AppliesTo; + export type BillUntil = Stripe_.Subscription.BillingSchedule.BillUntil; + export namespace BillUntil { + export type Duration = Stripe_.Subscription.BillingSchedule.BillUntil.Duration; + export type Type = Stripe_.Subscription.BillingSchedule.BillUntil.Type; + export namespace Duration { + export type Interval = Stripe_.Subscription.BillingSchedule.BillUntil.Duration.Interval; + } + } + } + export namespace CancellationDetails { + export type Feedback = Stripe_.Subscription.CancellationDetails.Feedback; + export type Reason = Stripe_.Subscription.CancellationDetails.Reason; + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.Subscription.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.Subscription.InvoiceSettings.Issuer.Type; + } + } + export namespace LastPriceMigrationError { + export type FailedTransition = Stripe_.Subscription.LastPriceMigrationError.FailedTransition; + } + export namespace PauseCollection { + export type Behavior = Stripe_.Subscription.PauseCollection.Behavior; + } + export namespace PaymentSettings { + export type PaymentMethodOptions = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.Subscription.PaymentSettings.PaymentMethodType; + export type SaveDefaultPaymentMethod = Stripe_.Subscription.PaymentSettings.SaveDefaultPaymentMethod; + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.AcssDebit; + export type Bancontact = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Bancontact; + export type Blik = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Blik; + export type Card = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.CustomerBalance; + export type IdBankTransfer = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.IdBankTransfer; + export type Konbini = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Konbini; + export type Payto = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Payto; + export type Pix = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Pix; + export type SepaDebit = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.SepaDebit; + export type Upi = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type MandateOptions = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type TransactionType = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Bancontact.PreferredLanguage; + } + export namespace Blik { + export type MandateOptions = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Blik.MandateOptions; + } + export namespace Card { + export type MandateOptions = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Card.MandateOptions; + export type Network = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Card.Network; + export type RequestThreeDSecure = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Card.RequestThreeDSecure; + export namespace MandateOptions { + export type AmountType = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Card.MandateOptions.AmountType; + } + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export namespace EuBankTransfer { + export type Country = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer.Country; + } + } + } + export namespace Payto { + export type MandateOptions = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions.AmountType; + export type Purpose = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type MandateOptions = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Pix.MandateOptions; + export namespace MandateOptions { + export type AmountIncludesIof = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Pix.MandateOptions.AmountIncludesIof; + export type PaymentSchedule = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Pix.MandateOptions.PaymentSchedule; + } + } + export namespace Upi { + export type MandateOptions = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type VerificationMethod = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type Permission = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.Subscription.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + } + } + } + } + export namespace PendingInvoiceItemInterval { + export type Interval = Stripe_.Subscription.PendingInvoiceItemInterval.Interval; + } + export namespace Prebilling { + export type UpdateBehavior = Stripe_.Subscription.Prebilling.UpdateBehavior; + } + export namespace StatusDetails { + export type Paused = Stripe_.Subscription.StatusDetails.Paused; + export namespace Paused { + export type Subscription = Stripe_.Subscription.StatusDetails.Paused.Subscription; + export namespace Subscription { + export type Type = Stripe_.Subscription.StatusDetails.Paused.Subscription.Type; + } + } + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.Subscription.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type BillingCycleAnchor = Stripe_.Subscription.TrialSettings.EndBehavior.BillingCycleAnchor; + export type MissingPaymentMethod = Stripe_.Subscription.TrialSettings.EndBehavior.MissingPaymentMethod; + } + } } - export namespace PriceUpdateParams { - export type CurrencyOptions = Stripe.PriceUpdateParams.CurrencyOptions; - export type MigrateTo = Stripe.PriceUpdateParams.MigrateTo; - export type TaxBehavior = Stripe.PriceUpdateParams.TaxBehavior; + export namespace SubscriptionItemCreateParams { + export type BillingThresholds = Stripe_.SubscriptionItemCreateParams.BillingThresholds; + export type CurrentTrial = Stripe_.SubscriptionItemCreateParams.CurrentTrial; + export type Discount = Stripe_.SubscriptionItemCreateParams.Discount; + export type PaymentBehavior = Stripe_.SubscriptionItemCreateParams.PaymentBehavior; + export type PriceData = Stripe_.SubscriptionItemCreateParams.PriceData; + export type ProrationBehavior = Stripe_.SubscriptionItemCreateParams.ProrationBehavior; + export type Trial = Stripe_.SubscriptionItemCreateParams.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionItemCreateParams.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionItemCreateParams.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionItemCreateParams.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionItemCreateParams.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type Recurring = Stripe_.SubscriptionItemCreateParams.PriceData.Recurring; + export type TaxBehavior = Stripe_.SubscriptionItemCreateParams.PriceData.TaxBehavior; + export namespace Recurring { + export type Interval = Stripe_.SubscriptionItemCreateParams.PriceData.Recurring.Interval; + } + } + export namespace Trial { + export type Type = Stripe_.SubscriptionItemCreateParams.Trial.Type; + } } - export namespace PriceListParams { - export type Recurring = Stripe.PriceListParams.Recurring; - export type Type = Stripe.PriceListParams.Type; + export namespace SubscriptionItemUpdateParams { + export type BillingThresholds = Stripe_.SubscriptionItemUpdateParams.BillingThresholds; + export type CurrentTrial = Stripe_.SubscriptionItemUpdateParams.CurrentTrial; + export type Discount = Stripe_.SubscriptionItemUpdateParams.Discount; + export type PaymentBehavior = Stripe_.SubscriptionItemUpdateParams.PaymentBehavior; + export type PriceData = Stripe_.SubscriptionItemUpdateParams.PriceData; + export type ProrationBehavior = Stripe_.SubscriptionItemUpdateParams.ProrationBehavior; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionItemUpdateParams.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionItemUpdateParams.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionItemUpdateParams.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionItemUpdateParams.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type Recurring = Stripe_.SubscriptionItemUpdateParams.PriceData.Recurring; + export type TaxBehavior = Stripe_.SubscriptionItemUpdateParams.PriceData.TaxBehavior; + export namespace Recurring { + export type Interval = Stripe_.SubscriptionItemUpdateParams.PriceData.Recurring.Interval; + } + } } - export namespace ProductCreateParams { - export type DefaultPriceData = Stripe.ProductCreateParams.DefaultPriceData; - export type MarketingFeature = Stripe.ProductCreateParams.MarketingFeature; - export type PackageDimensions = Stripe.ProductCreateParams.PackageDimensions; - export type TaxDetails = Stripe.ProductCreateParams.TaxDetails; - export type Type = Stripe.ProductCreateParams.Type; + export namespace SubscriptionItemDeleteParams { + export type PaymentBehavior = Stripe_.SubscriptionItemDeleteParams.PaymentBehavior; + export type ProrationBehavior = Stripe_.SubscriptionItemDeleteParams.ProrationBehavior; } - export namespace ProductUpdateParams { - export type MarketingFeature = Stripe.ProductUpdateParams.MarketingFeature; - export type PackageDimensions = Stripe.ProductUpdateParams.PackageDimensions; - export type TaxDetails = Stripe.ProductUpdateParams.TaxDetails; + export namespace SubscriptionItem { + export type BillingThresholds = Stripe_.SubscriptionItem.BillingThresholds; + export type CurrentTrial = Stripe_.SubscriptionItem.CurrentTrial; + export type Trial = Stripe_.SubscriptionItem.Trial; + export namespace Trial { + export type Type = Stripe_.SubscriptionItem.Trial.Type; + } } - export namespace ProductListParams { - export type Type = Stripe.ProductListParams.Type; + export namespace SubscriptionScheduleCreateParams { + export type BillingBehavior = Stripe_.SubscriptionScheduleCreateParams.BillingBehavior; + export type BillingMode = Stripe_.SubscriptionScheduleCreateParams.BillingMode; + export type DefaultSettings = Stripe_.SubscriptionScheduleCreateParams.DefaultSettings; + export type EndBehavior = Stripe_.SubscriptionScheduleCreateParams.EndBehavior; + export type Phase = Stripe_.SubscriptionScheduleCreateParams.Phase; + export type Prebilling = Stripe_.SubscriptionScheduleCreateParams.Prebilling; + export namespace BillingMode { + export type Flexible = Stripe_.SubscriptionScheduleCreateParams.BillingMode.Flexible; + export type Type = Stripe_.SubscriptionScheduleCreateParams.BillingMode.Type; + export namespace Flexible { + export type ProrationDiscounts = Stripe_.SubscriptionScheduleCreateParams.BillingMode.Flexible.ProrationDiscounts; + } + } + export namespace DefaultSettings { + export type AutomaticTax = Stripe_.SubscriptionScheduleCreateParams.DefaultSettings.AutomaticTax; + export type BillingCycleAnchor = Stripe_.SubscriptionScheduleCreateParams.DefaultSettings.BillingCycleAnchor; + export type BillingThresholds = Stripe_.SubscriptionScheduleCreateParams.DefaultSettings.BillingThresholds; + export type CollectionMethod = Stripe_.SubscriptionScheduleCreateParams.DefaultSettings.CollectionMethod; + export type InvoiceSettings = Stripe_.SubscriptionScheduleCreateParams.DefaultSettings.InvoiceSettings; + export type TransferData = Stripe_.SubscriptionScheduleCreateParams.DefaultSettings.TransferData; + export namespace AutomaticTax { + export type Liability = Stripe_.SubscriptionScheduleCreateParams.DefaultSettings.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.SubscriptionScheduleCreateParams.DefaultSettings.AutomaticTax.Liability.Type; + } + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.SubscriptionScheduleCreateParams.DefaultSettings.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.SubscriptionScheduleCreateParams.DefaultSettings.InvoiceSettings.Issuer.Type; + } + } + } + export namespace Phase { + export type AddInvoiceItem = Stripe_.SubscriptionScheduleCreateParams.Phase.AddInvoiceItem; + export type AutomaticTax = Stripe_.SubscriptionScheduleCreateParams.Phase.AutomaticTax; + export type BillingCycleAnchor = Stripe_.SubscriptionScheduleCreateParams.Phase.BillingCycleAnchor; + export type BillingThresholds = Stripe_.SubscriptionScheduleCreateParams.Phase.BillingThresholds; + export type CollectionMethod = Stripe_.SubscriptionScheduleCreateParams.Phase.CollectionMethod; + export type Discount = Stripe_.SubscriptionScheduleCreateParams.Phase.Discount; + export type Duration = Stripe_.SubscriptionScheduleCreateParams.Phase.Duration; + export type InvoiceSettings = Stripe_.SubscriptionScheduleCreateParams.Phase.InvoiceSettings; + export type Item = Stripe_.SubscriptionScheduleCreateParams.Phase.Item; + export type PauseCollection = Stripe_.SubscriptionScheduleCreateParams.Phase.PauseCollection; + export type ProrationBehavior = Stripe_.SubscriptionScheduleCreateParams.Phase.ProrationBehavior; + export type TransferData = Stripe_.SubscriptionScheduleCreateParams.Phase.TransferData; + export type TrialContinuation = Stripe_.SubscriptionScheduleCreateParams.Phase.TrialContinuation; + export type TrialSettings = Stripe_.SubscriptionScheduleCreateParams.Phase.TrialSettings; + export namespace AddInvoiceItem { + export type Discount = Stripe_.SubscriptionScheduleCreateParams.Phase.AddInvoiceItem.Discount; + export type Period = Stripe_.SubscriptionScheduleCreateParams.Phase.AddInvoiceItem.Period; + export type PriceData = Stripe_.SubscriptionScheduleCreateParams.Phase.AddInvoiceItem.PriceData; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionScheduleCreateParams.Phase.AddInvoiceItem.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionScheduleCreateParams.Phase.AddInvoiceItem.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionScheduleCreateParams.Phase.AddInvoiceItem.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionScheduleCreateParams.Phase.AddInvoiceItem.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Period { + export type End = Stripe_.SubscriptionScheduleCreateParams.Phase.AddInvoiceItem.Period.End; + export type Start = Stripe_.SubscriptionScheduleCreateParams.Phase.AddInvoiceItem.Period.Start; + export namespace End { + export type Type = Stripe_.SubscriptionScheduleCreateParams.Phase.AddInvoiceItem.Period.End.Type; + } + export namespace Start { + export type Type = Stripe_.SubscriptionScheduleCreateParams.Phase.AddInvoiceItem.Period.Start.Type; + } + } + export namespace PriceData { + export type TaxBehavior = Stripe_.SubscriptionScheduleCreateParams.Phase.AddInvoiceItem.PriceData.TaxBehavior; + } + } + export namespace AutomaticTax { + export type Liability = Stripe_.SubscriptionScheduleCreateParams.Phase.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.SubscriptionScheduleCreateParams.Phase.AutomaticTax.Liability.Type; + } + } + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionScheduleCreateParams.Phase.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionScheduleCreateParams.Phase.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionScheduleCreateParams.Phase.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionScheduleCreateParams.Phase.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Duration { + export type Interval = Stripe_.SubscriptionScheduleCreateParams.Phase.Duration.Interval; + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.SubscriptionScheduleCreateParams.Phase.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.SubscriptionScheduleCreateParams.Phase.InvoiceSettings.Issuer.Type; + } + } + export namespace Item { + export type BillingThresholds = Stripe_.SubscriptionScheduleCreateParams.Phase.Item.BillingThresholds; + export type Discount = Stripe_.SubscriptionScheduleCreateParams.Phase.Item.Discount; + export type PriceData = Stripe_.SubscriptionScheduleCreateParams.Phase.Item.PriceData; + export type Trial = Stripe_.SubscriptionScheduleCreateParams.Phase.Item.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionScheduleCreateParams.Phase.Item.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionScheduleCreateParams.Phase.Item.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionScheduleCreateParams.Phase.Item.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionScheduleCreateParams.Phase.Item.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type Recurring = Stripe_.SubscriptionScheduleCreateParams.Phase.Item.PriceData.Recurring; + export type TaxBehavior = Stripe_.SubscriptionScheduleCreateParams.Phase.Item.PriceData.TaxBehavior; + export namespace Recurring { + export type Interval = Stripe_.SubscriptionScheduleCreateParams.Phase.Item.PriceData.Recurring.Interval; + } + } + export namespace Trial { + export type Type = Stripe_.SubscriptionScheduleCreateParams.Phase.Item.Trial.Type; + } + } + export namespace PauseCollection { + export type Behavior = Stripe_.SubscriptionScheduleCreateParams.Phase.PauseCollection.Behavior; + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.SubscriptionScheduleCreateParams.Phase.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type ProrateUpFront = Stripe_.SubscriptionScheduleCreateParams.Phase.TrialSettings.EndBehavior.ProrateUpFront; + } + } + } + export namespace Prebilling { + export type UpdateBehavior = Stripe_.SubscriptionScheduleCreateParams.Prebilling.UpdateBehavior; + } } - export namespace PromotionCodeCreateParams { - export type Promotion = Stripe.PromotionCodeCreateParams.Promotion; - export type Restrictions = Stripe.PromotionCodeCreateParams.Restrictions; + export namespace SubscriptionScheduleUpdateParams { + export type BillingBehavior = Stripe_.SubscriptionScheduleUpdateParams.BillingBehavior; + export type DefaultSettings = Stripe_.SubscriptionScheduleUpdateParams.DefaultSettings; + export type EndBehavior = Stripe_.SubscriptionScheduleUpdateParams.EndBehavior; + export type Phase = Stripe_.SubscriptionScheduleUpdateParams.Phase; + export type Prebilling = Stripe_.SubscriptionScheduleUpdateParams.Prebilling; + export type ProrationBehavior = Stripe_.SubscriptionScheduleUpdateParams.ProrationBehavior; + export namespace DefaultSettings { + export type AutomaticTax = Stripe_.SubscriptionScheduleUpdateParams.DefaultSettings.AutomaticTax; + export type BillingCycleAnchor = Stripe_.SubscriptionScheduleUpdateParams.DefaultSettings.BillingCycleAnchor; + export type BillingThresholds = Stripe_.SubscriptionScheduleUpdateParams.DefaultSettings.BillingThresholds; + export type CollectionMethod = Stripe_.SubscriptionScheduleUpdateParams.DefaultSettings.CollectionMethod; + export type InvoiceSettings = Stripe_.SubscriptionScheduleUpdateParams.DefaultSettings.InvoiceSettings; + export type TransferData = Stripe_.SubscriptionScheduleUpdateParams.DefaultSettings.TransferData; + export namespace AutomaticTax { + export type Liability = Stripe_.SubscriptionScheduleUpdateParams.DefaultSettings.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.SubscriptionScheduleUpdateParams.DefaultSettings.AutomaticTax.Liability.Type; + } + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.SubscriptionScheduleUpdateParams.DefaultSettings.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.SubscriptionScheduleUpdateParams.DefaultSettings.InvoiceSettings.Issuer.Type; + } + } + } + export namespace Phase { + export type AddInvoiceItem = Stripe_.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem; + export type AutomaticTax = Stripe_.SubscriptionScheduleUpdateParams.Phase.AutomaticTax; + export type BillingCycleAnchor = Stripe_.SubscriptionScheduleUpdateParams.Phase.BillingCycleAnchor; + export type BillingThresholds = Stripe_.SubscriptionScheduleUpdateParams.Phase.BillingThresholds; + export type CollectionMethod = Stripe_.SubscriptionScheduleUpdateParams.Phase.CollectionMethod; + export type Discount = Stripe_.SubscriptionScheduleUpdateParams.Phase.Discount; + export type Duration = Stripe_.SubscriptionScheduleUpdateParams.Phase.Duration; + export type InvoiceSettings = Stripe_.SubscriptionScheduleUpdateParams.Phase.InvoiceSettings; + export type Item = Stripe_.SubscriptionScheduleUpdateParams.Phase.Item; + export type PauseCollection = Stripe_.SubscriptionScheduleUpdateParams.Phase.PauseCollection; + export type ProrationBehavior = Stripe_.SubscriptionScheduleUpdateParams.Phase.ProrationBehavior; + export type TransferData = Stripe_.SubscriptionScheduleUpdateParams.Phase.TransferData; + export type TrialContinuation = Stripe_.SubscriptionScheduleUpdateParams.Phase.TrialContinuation; + export type TrialSettings = Stripe_.SubscriptionScheduleUpdateParams.Phase.TrialSettings; + export namespace AddInvoiceItem { + export type Discount = Stripe_.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount; + export type Period = Stripe_.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Period; + export type PriceData = Stripe_.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Period { + export type End = Stripe_.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Period.End; + export type Start = Stripe_.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Period.Start; + export namespace End { + export type Type = Stripe_.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Period.End.Type; + } + export namespace Start { + export type Type = Stripe_.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.Period.Start.Type; + } + } + export namespace PriceData { + export type TaxBehavior = Stripe_.SubscriptionScheduleUpdateParams.Phase.AddInvoiceItem.PriceData.TaxBehavior; + } + } + export namespace AutomaticTax { + export type Liability = Stripe_.SubscriptionScheduleUpdateParams.Phase.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.SubscriptionScheduleUpdateParams.Phase.AutomaticTax.Liability.Type; + } + } + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionScheduleUpdateParams.Phase.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionScheduleUpdateParams.Phase.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionScheduleUpdateParams.Phase.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionScheduleUpdateParams.Phase.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Duration { + export type Interval = Stripe_.SubscriptionScheduleUpdateParams.Phase.Duration.Interval; + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.SubscriptionScheduleUpdateParams.Phase.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.SubscriptionScheduleUpdateParams.Phase.InvoiceSettings.Issuer.Type; + } + } + export namespace Item { + export type BillingThresholds = Stripe_.SubscriptionScheduleUpdateParams.Phase.Item.BillingThresholds; + export type Discount = Stripe_.SubscriptionScheduleUpdateParams.Phase.Item.Discount; + export type PriceData = Stripe_.SubscriptionScheduleUpdateParams.Phase.Item.PriceData; + export type Trial = Stripe_.SubscriptionScheduleUpdateParams.Phase.Item.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionScheduleUpdateParams.Phase.Item.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionScheduleUpdateParams.Phase.Item.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionScheduleUpdateParams.Phase.Item.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionScheduleUpdateParams.Phase.Item.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace PriceData { + export type Recurring = Stripe_.SubscriptionScheduleUpdateParams.Phase.Item.PriceData.Recurring; + export type TaxBehavior = Stripe_.SubscriptionScheduleUpdateParams.Phase.Item.PriceData.TaxBehavior; + export namespace Recurring { + export type Interval = Stripe_.SubscriptionScheduleUpdateParams.Phase.Item.PriceData.Recurring.Interval; + } + } + export namespace Trial { + export type Type = Stripe_.SubscriptionScheduleUpdateParams.Phase.Item.Trial.Type; + } + } + export namespace PauseCollection { + export type Behavior = Stripe_.SubscriptionScheduleUpdateParams.Phase.PauseCollection.Behavior; + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.SubscriptionScheduleUpdateParams.Phase.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type ProrateUpFront = Stripe_.SubscriptionScheduleUpdateParams.Phase.TrialSettings.EndBehavior.ProrateUpFront; + } + } + } + export namespace Prebilling { + export type UpdateBehavior = Stripe_.SubscriptionScheduleUpdateParams.Prebilling.UpdateBehavior; + } } - export namespace PromotionCodeUpdateParams { - export type Restrictions = Stripe.PromotionCodeUpdateParams.Restrictions; + export namespace SubscriptionScheduleAmendParams { + export type Amendment = Stripe_.SubscriptionScheduleAmendParams.Amendment; + export type Prebilling = Stripe_.SubscriptionScheduleAmendParams.Prebilling; + export type ProrationBehavior = Stripe_.SubscriptionScheduleAmendParams.ProrationBehavior; + export type ScheduleSettings = Stripe_.SubscriptionScheduleAmendParams.ScheduleSettings; + export namespace Amendment { + export type AmendmentEnd = Stripe_.SubscriptionScheduleAmendParams.Amendment.AmendmentEnd; + export type AmendmentStart = Stripe_.SubscriptionScheduleAmendParams.Amendment.AmendmentStart; + export type BillingCycleAnchor = Stripe_.SubscriptionScheduleAmendParams.Amendment.BillingCycleAnchor; + export type DiscountAction = Stripe_.SubscriptionScheduleAmendParams.Amendment.DiscountAction; + export type ItemAction = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction; + export type MetadataAction = Stripe_.SubscriptionScheduleAmendParams.Amendment.MetadataAction; + export type ProrationBehavior = Stripe_.SubscriptionScheduleAmendParams.Amendment.ProrationBehavior; + export type SetPauseCollection = Stripe_.SubscriptionScheduleAmendParams.Amendment.SetPauseCollection; + export type SetScheduleEnd = Stripe_.SubscriptionScheduleAmendParams.Amendment.SetScheduleEnd; + export type TrialSettings = Stripe_.SubscriptionScheduleAmendParams.Amendment.TrialSettings; + export namespace AmendmentEnd { + export type DiscountEnd = Stripe_.SubscriptionScheduleAmendParams.Amendment.AmendmentEnd.DiscountEnd; + export type Duration = Stripe_.SubscriptionScheduleAmendParams.Amendment.AmendmentEnd.Duration; + export type Type = Stripe_.SubscriptionScheduleAmendParams.Amendment.AmendmentEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionScheduleAmendParams.Amendment.AmendmentEnd.Duration.Interval; + } + } + export namespace AmendmentStart { + export type AmendmentEnd = Stripe_.SubscriptionScheduleAmendParams.Amendment.AmendmentStart.AmendmentEnd; + export type DiscountEnd = Stripe_.SubscriptionScheduleAmendParams.Amendment.AmendmentStart.DiscountEnd; + export type Type = Stripe_.SubscriptionScheduleAmendParams.Amendment.AmendmentStart.Type; + } + export namespace DiscountAction { + export type Add = Stripe_.SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add; + export type Remove = Stripe_.SubscriptionScheduleAmendParams.Amendment.DiscountAction.Remove; + export type Set = Stripe_.SubscriptionScheduleAmendParams.Amendment.DiscountAction.Set; + export type Type = Stripe_.SubscriptionScheduleAmendParams.Amendment.DiscountAction.Type; + export namespace Add { + export type DiscountEnd = Stripe_.SubscriptionScheduleAmendParams.Amendment.DiscountAction.Add.DiscountEnd; + } + } + export namespace ItemAction { + export type Add = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Add; + export type Remove = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Remove; + export type Set = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Set; + export type Type = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Type; + export namespace Add { + export type Discount = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount; + export type Trial = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Trial { + export type Type = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Add.Trial.Type; + } + } + export namespace Set { + export type Discount = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount; + export type Trial = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd; + export namespace DiscountEnd { + export type Duration = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.Duration; + export type Type = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Discount.DiscountEnd.Duration.Interval; + } + } + } + export namespace Trial { + export type Type = Stripe_.SubscriptionScheduleAmendParams.Amendment.ItemAction.Set.Trial.Type; + } + } + } + export namespace MetadataAction { + export type Type = Stripe_.SubscriptionScheduleAmendParams.Amendment.MetadataAction.Type; + } + export namespace SetPauseCollection { + export type Set = Stripe_.SubscriptionScheduleAmendParams.Amendment.SetPauseCollection.Set; + export type Type = Stripe_.SubscriptionScheduleAmendParams.Amendment.SetPauseCollection.Type; + export namespace Set { + export type Behavior = Stripe_.SubscriptionScheduleAmendParams.Amendment.SetPauseCollection.Set.Behavior; + } + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.SubscriptionScheduleAmendParams.Amendment.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type ProrateUpFront = Stripe_.SubscriptionScheduleAmendParams.Amendment.TrialSettings.EndBehavior.ProrateUpFront; + } + } + } + export namespace Prebilling { + export type BillFrom = Stripe_.SubscriptionScheduleAmendParams.Prebilling.BillFrom; + export type BillUntil = Stripe_.SubscriptionScheduleAmendParams.Prebilling.BillUntil; + export type UpdateBehavior = Stripe_.SubscriptionScheduleAmendParams.Prebilling.UpdateBehavior; + export namespace BillFrom { + export type AmendmentStart = Stripe_.SubscriptionScheduleAmendParams.Prebilling.BillFrom.AmendmentStart; + export type Type = Stripe_.SubscriptionScheduleAmendParams.Prebilling.BillFrom.Type; + } + export namespace BillUntil { + export type AmendmentEnd = Stripe_.SubscriptionScheduleAmendParams.Prebilling.BillUntil.AmendmentEnd; + export type Duration = Stripe_.SubscriptionScheduleAmendParams.Prebilling.BillUntil.Duration; + export type Type = Stripe_.SubscriptionScheduleAmendParams.Prebilling.BillUntil.Type; + export namespace Duration { + export type Interval = Stripe_.SubscriptionScheduleAmendParams.Prebilling.BillUntil.Duration.Interval; + } + } + } + export namespace ScheduleSettings { + export type EndBehavior = Stripe_.SubscriptionScheduleAmendParams.ScheduleSettings.EndBehavior; + } } - export namespace QuoteCreateParams { - export type AutomaticTax = Stripe.QuoteCreateParams.AutomaticTax; - export type CollectionMethod = Stripe.QuoteCreateParams.CollectionMethod; - export type Discount = Stripe.QuoteCreateParams.Discount; - export type FromQuote = Stripe.QuoteCreateParams.FromQuote; - export type InvoiceSettings = Stripe.QuoteCreateParams.InvoiceSettings; - export type LineItem = Stripe.QuoteCreateParams.LineItem; - export type Line = Stripe.QuoteCreateParams.Line; - export type SubscriptionData = Stripe.QuoteCreateParams.SubscriptionData; - export type SubscriptionDataOverride = Stripe.QuoteCreateParams.SubscriptionDataOverride; - export type TransferData = Stripe.QuoteCreateParams.TransferData; + export namespace SubscriptionSchedule { + export type BillingBehavior = Stripe_.SubscriptionSchedule.BillingBehavior; + export type BillingMode = Stripe_.SubscriptionSchedule.BillingMode; + export type CurrentPhase = Stripe_.SubscriptionSchedule.CurrentPhase; + export type DefaultSettings = Stripe_.SubscriptionSchedule.DefaultSettings; + export type EndBehavior = Stripe_.SubscriptionSchedule.EndBehavior; + export type LastPriceMigrationError = Stripe_.SubscriptionSchedule.LastPriceMigrationError; + export type Phase = Stripe_.SubscriptionSchedule.Phase; + export type Prebilling = Stripe_.SubscriptionSchedule.Prebilling; + export type Status = Stripe_.SubscriptionSchedule.Status; + export namespace BillingMode { + export type Flexible = Stripe_.SubscriptionSchedule.BillingMode.Flexible; + export type Type = Stripe_.SubscriptionSchedule.BillingMode.Type; + export namespace Flexible { + export type ProrationDiscounts = Stripe_.SubscriptionSchedule.BillingMode.Flexible.ProrationDiscounts; + } + } + export namespace DefaultSettings { + export type AutomaticTax = Stripe_.SubscriptionSchedule.DefaultSettings.AutomaticTax; + export type BillingCycleAnchor = Stripe_.SubscriptionSchedule.DefaultSettings.BillingCycleAnchor; + export type BillingThresholds = Stripe_.SubscriptionSchedule.DefaultSettings.BillingThresholds; + export type CollectionMethod = Stripe_.SubscriptionSchedule.DefaultSettings.CollectionMethod; + export type InvoiceSettings = Stripe_.SubscriptionSchedule.DefaultSettings.InvoiceSettings; + export type TransferData = Stripe_.SubscriptionSchedule.DefaultSettings.TransferData; + export namespace AutomaticTax { + export type Liability = Stripe_.SubscriptionSchedule.DefaultSettings.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.SubscriptionSchedule.DefaultSettings.AutomaticTax.Liability.Type; + } + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.SubscriptionSchedule.DefaultSettings.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.SubscriptionSchedule.DefaultSettings.InvoiceSettings.Issuer.Type; + } + } + } + export namespace LastPriceMigrationError { + export type FailedTransition = Stripe_.SubscriptionSchedule.LastPriceMigrationError.FailedTransition; + } + export namespace Phase { + export type AddInvoiceItem = Stripe_.SubscriptionSchedule.Phase.AddInvoiceItem; + export type AutomaticTax = Stripe_.SubscriptionSchedule.Phase.AutomaticTax; + export type BillingCycleAnchor = Stripe_.SubscriptionSchedule.Phase.BillingCycleAnchor; + export type BillingThresholds = Stripe_.SubscriptionSchedule.Phase.BillingThresholds; + export type CollectionMethod = Stripe_.SubscriptionSchedule.Phase.CollectionMethod; + export type Discount = Stripe_.SubscriptionSchedule.Phase.Discount; + export type InvoiceSettings = Stripe_.SubscriptionSchedule.Phase.InvoiceSettings; + export type Item = Stripe_.SubscriptionSchedule.Phase.Item; + export type PauseCollection = Stripe_.SubscriptionSchedule.Phase.PauseCollection; + export type ProrationBehavior = Stripe_.SubscriptionSchedule.Phase.ProrationBehavior; + export type TransferData = Stripe_.SubscriptionSchedule.Phase.TransferData; + export type TrialContinuation = Stripe_.SubscriptionSchedule.Phase.TrialContinuation; + export type TrialSettings = Stripe_.SubscriptionSchedule.Phase.TrialSettings; + export namespace AddInvoiceItem { + export type Discount = Stripe_.SubscriptionSchedule.Phase.AddInvoiceItem.Discount; + export type Period = Stripe_.SubscriptionSchedule.Phase.AddInvoiceItem.Period; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionSchedule.Phase.AddInvoiceItem.Discount.DiscountEnd; + } + export namespace Period { + export type End = Stripe_.SubscriptionSchedule.Phase.AddInvoiceItem.Period.End; + export type Start = Stripe_.SubscriptionSchedule.Phase.AddInvoiceItem.Period.Start; + export namespace End { + export type Type = Stripe_.SubscriptionSchedule.Phase.AddInvoiceItem.Period.End.Type; + } + export namespace Start { + export type Type = Stripe_.SubscriptionSchedule.Phase.AddInvoiceItem.Period.Start.Type; + } + } + } + export namespace AutomaticTax { + export type Liability = Stripe_.SubscriptionSchedule.Phase.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.SubscriptionSchedule.Phase.AutomaticTax.Liability.Type; + } + } + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionSchedule.Phase.Discount.DiscountEnd; + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.SubscriptionSchedule.Phase.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.SubscriptionSchedule.Phase.InvoiceSettings.Issuer.Type; + } + } + export namespace Item { + export type BillingThresholds = Stripe_.SubscriptionSchedule.Phase.Item.BillingThresholds; + export type Discount = Stripe_.SubscriptionSchedule.Phase.Item.Discount; + export type Trial = Stripe_.SubscriptionSchedule.Phase.Item.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.SubscriptionSchedule.Phase.Item.Discount.DiscountEnd; + } + export namespace Trial { + export type Type = Stripe_.SubscriptionSchedule.Phase.Item.Trial.Type; + } + } + export namespace PauseCollection { + export type Behavior = Stripe_.SubscriptionSchedule.Phase.PauseCollection.Behavior; + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.SubscriptionSchedule.Phase.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type ProrateUpFront = Stripe_.SubscriptionSchedule.Phase.TrialSettings.EndBehavior.ProrateUpFront; + } + } + } + export namespace Prebilling { + export type UpdateBehavior = Stripe_.SubscriptionSchedule.Prebilling.UpdateBehavior; + } } - export namespace QuoteUpdateParams { - export type AutomaticTax = Stripe.QuoteUpdateParams.AutomaticTax; - export type CollectionMethod = Stripe.QuoteUpdateParams.CollectionMethod; - export type Discount = Stripe.QuoteUpdateParams.Discount; - export type InvoiceSettings = Stripe.QuoteUpdateParams.InvoiceSettings; - export type LineItem = Stripe.QuoteUpdateParams.LineItem; - export type Line = Stripe.QuoteUpdateParams.Line; - export type SubscriptionData = Stripe.QuoteUpdateParams.SubscriptionData; - export type SubscriptionDataOverride = Stripe.QuoteUpdateParams.SubscriptionDataOverride; - export type TransferData = Stripe.QuoteUpdateParams.TransferData; + export namespace TaxCode { + export type Requirements = Stripe_.TaxCode.Requirements; + export namespace Requirements { + export type PerformanceLocation = Stripe_.TaxCode.Requirements.PerformanceLocation; + } } - export namespace QuoteListParams { - export type Status = Stripe.QuoteListParams.Status; + export namespace TaxIdCreateParams { + export type Type = Stripe_.TaxIdCreateParams.Type; + export type Owner = Stripe_.TaxIdCreateParams.Owner; + export namespace Owner { + export type Type = Stripe_.TaxIdCreateParams.Owner.Type; + } } - export namespace RefundCreateParams { - export type Reason = Stripe.RefundCreateParams.Reason; + export namespace TaxIdListParams { + export type Owner = Stripe_.TaxIdListParams.Owner; + export namespace Owner { + export type Type = Stripe_.TaxIdListParams.Owner.Type; + } } - export namespace SetupIntentCreateParams { - export type AutomaticPaymentMethods = Stripe.SetupIntentCreateParams.AutomaticPaymentMethods; - export type ExcludedPaymentMethodType = Stripe.SetupIntentCreateParams.ExcludedPaymentMethodType; - export type FlowDirection = Stripe.SetupIntentCreateParams.FlowDirection; - export type MandateData = Stripe.SetupIntentCreateParams.MandateData; - export type PaymentMethodData = Stripe.SetupIntentCreateParams.PaymentMethodData; - export type PaymentMethodOptions = Stripe.SetupIntentCreateParams.PaymentMethodOptions; - export type SingleUse = Stripe.SetupIntentCreateParams.SingleUse; - export type Usage = Stripe.SetupIntentCreateParams.Usage; + export namespace TaxId { + export type Owner = Stripe_.TaxId.Owner; + export type Type = Stripe_.TaxId.Type; + export type Verification = Stripe_.TaxId.Verification; + export namespace Owner { + export type Type = Stripe_.TaxId.Owner.Type; + } + export namespace Verification { + export type Status = Stripe_.TaxId.Verification.Status; + } } - export namespace SetupIntentUpdateParams { - export type ExcludedPaymentMethodType = Stripe.SetupIntentUpdateParams.ExcludedPaymentMethodType; - export type FlowDirection = Stripe.SetupIntentUpdateParams.FlowDirection; - export type PaymentMethodData = Stripe.SetupIntentUpdateParams.PaymentMethodData; - export type PaymentMethodOptions = Stripe.SetupIntentUpdateParams.PaymentMethodOptions; + export namespace TaxRateCreateParams { + export type TaxType = Stripe_.TaxRateCreateParams.TaxType; } - export namespace SetupIntentCancelParams { - export type CancellationReason = Stripe.SetupIntentCancelParams.CancellationReason; + export namespace TaxRateUpdateParams { + export type TaxType = Stripe_.TaxRateUpdateParams.TaxType; } - export namespace SetupIntentConfirmParams { - export type MandateData = Stripe.SetupIntentConfirmParams.MandateData; - export type PaymentMethodData = Stripe.SetupIntentConfirmParams.PaymentMethodData; - export type PaymentMethodOptions = Stripe.SetupIntentConfirmParams.PaymentMethodOptions; + export namespace TaxRate { + export type FlatAmount = Stripe_.TaxRate.FlatAmount; + export type JurisdictionLevel = Stripe_.TaxRate.JurisdictionLevel; + export type RateType = Stripe_.TaxRate.RateType; + export type TaxType = Stripe_.TaxRate.TaxType; } - export namespace ShippingRateCreateParams { - export type DeliveryEstimate = Stripe.ShippingRateCreateParams.DeliveryEstimate; - export type FixedAmount = Stripe.ShippingRateCreateParams.FixedAmount; - export type TaxBehavior = Stripe.ShippingRateCreateParams.TaxBehavior; + export namespace TokenCreateParams { + export type Account = Stripe_.TokenCreateParams.Account; + export type BankAccount = Stripe_.TokenCreateParams.BankAccount; + export type Card = Stripe_.TokenCreateParams.Card; + export type CvcUpdate = Stripe_.TokenCreateParams.CvcUpdate; + export type Person = Stripe_.TokenCreateParams.Person; + export type Pii = Stripe_.TokenCreateParams.Pii; + export namespace Account { + export type BusinessType = Stripe_.TokenCreateParams.Account.BusinessType; + export type Company = Stripe_.TokenCreateParams.Account.Company; + export type Individual = Stripe_.TokenCreateParams.Account.Individual; + export namespace Company { + export type DirectorshipDeclaration = Stripe_.TokenCreateParams.Account.Company.DirectorshipDeclaration; + export type OwnershipDeclaration = Stripe_.TokenCreateParams.Account.Company.OwnershipDeclaration; + export type OwnershipExemptionReason = Stripe_.TokenCreateParams.Account.Company.OwnershipExemptionReason; + export type RegistrationDate = Stripe_.TokenCreateParams.Account.Company.RegistrationDate; + export type RepresentativeDeclaration = Stripe_.TokenCreateParams.Account.Company.RepresentativeDeclaration; + export type Structure = Stripe_.TokenCreateParams.Account.Company.Structure; + export type Verification = Stripe_.TokenCreateParams.Account.Company.Verification; + export namespace Verification { + export type Document = Stripe_.TokenCreateParams.Account.Company.Verification.Document; + } + } + export namespace Individual { + export type Dob = Stripe_.TokenCreateParams.Account.Individual.Dob; + export type PoliticalExposure = Stripe_.TokenCreateParams.Account.Individual.PoliticalExposure; + export type Relationship = Stripe_.TokenCreateParams.Account.Individual.Relationship; + export type Verification = Stripe_.TokenCreateParams.Account.Individual.Verification; + export namespace Verification { + export type AdditionalDocument = Stripe_.TokenCreateParams.Account.Individual.Verification.AdditionalDocument; + export type Document = Stripe_.TokenCreateParams.Account.Individual.Verification.Document; + } + } + } + export namespace BankAccount { + export type AccountHolderType = Stripe_.TokenCreateParams.BankAccount.AccountHolderType; + export type AccountType = Stripe_.TokenCreateParams.BankAccount.AccountType; + } + export namespace Card { + export type Networks = Stripe_.TokenCreateParams.Card.Networks; + export namespace Networks { + export type Preferred = Stripe_.TokenCreateParams.Card.Networks.Preferred; + } + } + export namespace Person { + export type AdditionalTosAcceptances = Stripe_.TokenCreateParams.Person.AdditionalTosAcceptances; + export type Dob = Stripe_.TokenCreateParams.Person.Dob; + export type Documents = Stripe_.TokenCreateParams.Person.Documents; + export type PoliticalExposure = Stripe_.TokenCreateParams.Person.PoliticalExposure; + export type Relationship = Stripe_.TokenCreateParams.Person.Relationship; + export type UsCfpbData = Stripe_.TokenCreateParams.Person.UsCfpbData; + export type Verification = Stripe_.TokenCreateParams.Person.Verification; + export namespace AdditionalTosAcceptances { + export type Account = Stripe_.TokenCreateParams.Person.AdditionalTosAcceptances.Account; + } + export namespace Documents { + export type CompanyAuthorization = Stripe_.TokenCreateParams.Person.Documents.CompanyAuthorization; + export type Passport = Stripe_.TokenCreateParams.Person.Documents.Passport; + export type Visa = Stripe_.TokenCreateParams.Person.Documents.Visa; + } + export namespace UsCfpbData { + export type EthnicityDetails = Stripe_.TokenCreateParams.Person.UsCfpbData.EthnicityDetails; + export type RaceDetails = Stripe_.TokenCreateParams.Person.UsCfpbData.RaceDetails; + export namespace EthnicityDetails { + export type Ethnicity = Stripe_.TokenCreateParams.Person.UsCfpbData.EthnicityDetails.Ethnicity; + } + export namespace RaceDetails { + export type Race = Stripe_.TokenCreateParams.Person.UsCfpbData.RaceDetails.Race; + } + } + export namespace Verification { + export type AdditionalDocument = Stripe_.TokenCreateParams.Person.Verification.AdditionalDocument; + export type Document = Stripe_.TokenCreateParams.Person.Verification.Document; + } + } } - export namespace ShippingRateUpdateParams { - export type FixedAmount = Stripe.ShippingRateUpdateParams.FixedAmount; - export type TaxBehavior = Stripe.ShippingRateUpdateParams.TaxBehavior; + export namespace TopupListParams { + export type Status = Stripe_.TopupListParams.Status; } - export namespace SourceCreateParams { - export type Flow = Stripe.SourceCreateParams.Flow; - export type Mandate = Stripe.SourceCreateParams.Mandate; - export type Owner = Stripe.SourceCreateParams.Owner; - export type Receiver = Stripe.SourceCreateParams.Receiver; - export type Redirect = Stripe.SourceCreateParams.Redirect; - export type SourceOrder = Stripe.SourceCreateParams.SourceOrder; - export type Usage = Stripe.SourceCreateParams.Usage; + export namespace Topup { + export type Status = Stripe_.Topup.Status; } - export namespace SourceUpdateParams { - export type Mandate = Stripe.SourceUpdateParams.Mandate; - export type Owner = Stripe.SourceUpdateParams.Owner; - export type SourceOrder = Stripe.SourceUpdateParams.SourceOrder; + export namespace TransferCreateParams { + export type SourceType = Stripe_.TransferCreateParams.SourceType; } - export namespace SubscriptionCreateParams { - export type AddInvoiceItem = Stripe.SubscriptionCreateParams.AddInvoiceItem; - export type AutomaticTax = Stripe.SubscriptionCreateParams.AutomaticTax; - export type BillingCycleAnchorConfig = Stripe.SubscriptionCreateParams.BillingCycleAnchorConfig; - export type BillingMode = Stripe.SubscriptionCreateParams.BillingMode; - export type BillingSchedule = Stripe.SubscriptionCreateParams.BillingSchedule; - export type BillingThresholds = Stripe.SubscriptionCreateParams.BillingThresholds; - export type CancelAt = Stripe.SubscriptionCreateParams.CancelAt; - export type CollectionMethod = Stripe.SubscriptionCreateParams.CollectionMethod; - export type Discount = Stripe.SubscriptionCreateParams.Discount; - export type InvoiceSettings = Stripe.SubscriptionCreateParams.InvoiceSettings; - export type Item = Stripe.SubscriptionCreateParams.Item; - export type PaymentBehavior = Stripe.SubscriptionCreateParams.PaymentBehavior; - export type PaymentSettings = Stripe.SubscriptionCreateParams.PaymentSettings; - export type PendingInvoiceItemInterval = Stripe.SubscriptionCreateParams.PendingInvoiceItemInterval; - export type Prebilling = Stripe.SubscriptionCreateParams.Prebilling; - export type ProrationBehavior = Stripe.SubscriptionCreateParams.ProrationBehavior; - export type TransferData = Stripe.SubscriptionCreateParams.TransferData; - export type TrialSettings = Stripe.SubscriptionCreateParams.TrialSettings; + export namespace WebhookEndpointCreateParams { + export type EnabledEvent = Stripe_.WebhookEndpointCreateParams.EnabledEvent; + export type ApiVersion = Stripe_.WebhookEndpointCreateParams.ApiVersion; } - export namespace SubscriptionUpdateParams { - export type AddInvoiceItem = Stripe.SubscriptionUpdateParams.AddInvoiceItem; - export type AutomaticTax = Stripe.SubscriptionUpdateParams.AutomaticTax; - export type BillingCycleAnchor = Stripe.SubscriptionUpdateParams.BillingCycleAnchor; - export type BillingSchedule = Stripe.SubscriptionUpdateParams.BillingSchedule; - export type BillingThresholds = Stripe.SubscriptionUpdateParams.BillingThresholds; - export type CancelAt = Stripe.SubscriptionUpdateParams.CancelAt; - export type CancellationDetails = Stripe.SubscriptionUpdateParams.CancellationDetails; - export type CollectionMethod = Stripe.SubscriptionUpdateParams.CollectionMethod; - export type Discount = Stripe.SubscriptionUpdateParams.Discount; - export type InvoiceSettings = Stripe.SubscriptionUpdateParams.InvoiceSettings; - export type Item = Stripe.SubscriptionUpdateParams.Item; - export type PauseCollection = Stripe.SubscriptionUpdateParams.PauseCollection; - export type PaymentBehavior = Stripe.SubscriptionUpdateParams.PaymentBehavior; - export type PaymentSettings = Stripe.SubscriptionUpdateParams.PaymentSettings; - export type PendingInvoiceItemInterval = Stripe.SubscriptionUpdateParams.PendingInvoiceItemInterval; - export type Prebilling = Stripe.SubscriptionUpdateParams.Prebilling; - export type ProrationBehavior = Stripe.SubscriptionUpdateParams.ProrationBehavior; - export type TransferData = Stripe.SubscriptionUpdateParams.TransferData; - export type TrialSettings = Stripe.SubscriptionUpdateParams.TrialSettings; + export namespace WebhookEndpointUpdateParams { + export type EnabledEvent = Stripe_.WebhookEndpointUpdateParams.EnabledEvent; } - export namespace SubscriptionListParams { - export type AutomaticTax = Stripe.SubscriptionListParams.AutomaticTax; - export type CollectionMethod = Stripe.SubscriptionListParams.CollectionMethod; - export type Status = Stripe.SubscriptionListParams.Status; + export namespace BankAccount { + export type AvailablePayoutMethod = Stripe_.BankAccount.AvailablePayoutMethod; + export type FutureRequirements = Stripe_.BankAccount.FutureRequirements; + export type Requirements = Stripe_.BankAccount.Requirements; + export namespace FutureRequirements { + export type Error = Stripe_.BankAccount.FutureRequirements.Error; + export namespace Error { + export type Code = Stripe_.BankAccount.FutureRequirements.Error.Code; + } + } + export namespace Requirements { + export type Error = Stripe_.BankAccount.Requirements.Error; + export namespace Error { + export type Code = Stripe_.BankAccount.Requirements.Error.Code; + } + } } - export namespace SubscriptionCancelParams { - export type CancellationDetails = Stripe.SubscriptionCancelParams.CancellationDetails; + export namespace Card { + export type AllowRedisplay = Stripe_.Card.AllowRedisplay; + export type AvailablePayoutMethod = Stripe_.Card.AvailablePayoutMethod; + export type Networks = Stripe_.Card.Networks; + export type RegulatedStatus = Stripe_.Card.RegulatedStatus; } - export namespace SubscriptionMigrateParams { - export type BillingMode = Stripe.SubscriptionMigrateParams.BillingMode; + export namespace DeletedDiscount { + export type Source = Stripe_.DeletedDiscount.Source; } - export namespace SubscriptionPauseParams { - export type BillFor = Stripe.SubscriptionPauseParams.BillFor; - export type InvoicingBehavior = Stripe.SubscriptionPauseParams.InvoicingBehavior; + export namespace Discount { + export type Source = Stripe_.Discount.Source; } - export namespace SubscriptionResumeParams { - export type BillingCycleAnchor = Stripe.SubscriptionResumeParams.BillingCycleAnchor; - export type PaymentBehavior = Stripe.SubscriptionResumeParams.PaymentBehavior; - export type ProrationBehavior = Stripe.SubscriptionResumeParams.ProrationBehavior; + export namespace FundingInstructions { + export type BankTransfer = Stripe_.FundingInstructions.BankTransfer; + export namespace BankTransfer { + export type FinancialAddress = Stripe_.FundingInstructions.BankTransfer.FinancialAddress; + export type Type = Stripe_.FundingInstructions.BankTransfer.Type; + export namespace FinancialAddress { + export type Aba = Stripe_.FundingInstructions.BankTransfer.FinancialAddress.Aba; + export type Iban = Stripe_.FundingInstructions.BankTransfer.FinancialAddress.Iban; + export type SortCode = Stripe_.FundingInstructions.BankTransfer.FinancialAddress.SortCode; + export type Spei = Stripe_.FundingInstructions.BankTransfer.FinancialAddress.Spei; + export type SupportedNetwork = Stripe_.FundingInstructions.BankTransfer.FinancialAddress.SupportedNetwork; + export type Swift = Stripe_.FundingInstructions.BankTransfer.FinancialAddress.Swift; + export type Type = Stripe_.FundingInstructions.BankTransfer.FinancialAddress.Type; + export type Zengin = Stripe_.FundingInstructions.BankTransfer.FinancialAddress.Zengin; + } + } } - export namespace SubscriptionItemCreateParams { - export type BillingThresholds = Stripe.SubscriptionItemCreateParams.BillingThresholds; - export type CurrentTrial = Stripe.SubscriptionItemCreateParams.CurrentTrial; - export type Discount = Stripe.SubscriptionItemCreateParams.Discount; - export type PaymentBehavior = Stripe.SubscriptionItemCreateParams.PaymentBehavior; - export type PriceData = Stripe.SubscriptionItemCreateParams.PriceData; - export type ProrationBehavior = Stripe.SubscriptionItemCreateParams.ProrationBehavior; - export type Trial = Stripe.SubscriptionItemCreateParams.Trial; + export namespace LineItem { + export type AdjustableQuantity = Stripe_.LineItem.AdjustableQuantity; + export type Discount = Stripe_.LineItem.Discount; + export type Display = Stripe_.LineItem.Display; + export type TaxCalculationReference = Stripe_.LineItem.TaxCalculationReference; + export type Tax = Stripe_.LineItem.Tax; + export namespace Tax { + export type TaxabilityReason = Stripe_.LineItem.Tax.TaxabilityReason; + } } - export namespace SubscriptionItemUpdateParams { - export type BillingThresholds = Stripe.SubscriptionItemUpdateParams.BillingThresholds; - export type CurrentTrial = Stripe.SubscriptionItemUpdateParams.CurrentTrial; - export type Discount = Stripe.SubscriptionItemUpdateParams.Discount; - export type PaymentBehavior = Stripe.SubscriptionItemUpdateParams.PaymentBehavior; - export type PriceData = Stripe.SubscriptionItemUpdateParams.PriceData; - export type ProrationBehavior = Stripe.SubscriptionItemUpdateParams.ProrationBehavior; + export namespace QuoteLine { + export type Action = Stripe_.QuoteLine.Action; + export type AppliesTo = Stripe_.QuoteLine.AppliesTo; + export type BillingCycleAnchor = Stripe_.QuoteLine.BillingCycleAnchor; + export type CancelSubscriptionSchedule = Stripe_.QuoteLine.CancelSubscriptionSchedule; + export type EndsAt = Stripe_.QuoteLine.EndsAt; + export type ProrationBehavior = Stripe_.QuoteLine.ProrationBehavior; + export type SetPauseCollection = Stripe_.QuoteLine.SetPauseCollection; + export type SetScheduleEnd = Stripe_.QuoteLine.SetScheduleEnd; + export type StartsAt = Stripe_.QuoteLine.StartsAt; + export type TrialSettings = Stripe_.QuoteLine.TrialSettings; + export namespace Action { + export type AddDiscount = Stripe_.QuoteLine.Action.AddDiscount; + export type AddItem = Stripe_.QuoteLine.Action.AddItem; + export type RemoveDiscount = Stripe_.QuoteLine.Action.RemoveDiscount; + export type RemoveItem = Stripe_.QuoteLine.Action.RemoveItem; + export type SetDiscount = Stripe_.QuoteLine.Action.SetDiscount; + export type SetItem = Stripe_.QuoteLine.Action.SetItem; + export type Type = Stripe_.QuoteLine.Action.Type; + export namespace AddDiscount { + export type DiscountEnd = Stripe_.QuoteLine.Action.AddDiscount.DiscountEnd; + } + export namespace AddItem { + export type Discount = Stripe_.QuoteLine.Action.AddItem.Discount; + export type Trial = Stripe_.QuoteLine.Action.AddItem.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.QuoteLine.Action.AddItem.Discount.DiscountEnd; + } + export namespace Trial { + export type Type = Stripe_.QuoteLine.Action.AddItem.Trial.Type; + } + } + export namespace RemoveDiscount { + export type DiscountEnd = Stripe_.QuoteLine.Action.RemoveDiscount.DiscountEnd; + } + export namespace SetDiscount { + export type DiscountEnd = Stripe_.QuoteLine.Action.SetDiscount.DiscountEnd; + } + export namespace SetItem { + export type Discount = Stripe_.QuoteLine.Action.SetItem.Discount; + export type Trial = Stripe_.QuoteLine.Action.SetItem.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.QuoteLine.Action.SetItem.Discount.DiscountEnd; + } + export namespace Trial { + export type Type = Stripe_.QuoteLine.Action.SetItem.Trial.Type; + } + } + } + export namespace AppliesTo { + export type Type = Stripe_.QuoteLine.AppliesTo.Type; + } + export namespace EndsAt { + export type DiscountEnd = Stripe_.QuoteLine.EndsAt.DiscountEnd; + export type Duration = Stripe_.QuoteLine.EndsAt.Duration; + export type Type = Stripe_.QuoteLine.EndsAt.Type; + export namespace Duration { + export type Interval = Stripe_.QuoteLine.EndsAt.Duration.Interval; + } + } + export namespace SetPauseCollection { + export type Set = Stripe_.QuoteLine.SetPauseCollection.Set; + export type Type = Stripe_.QuoteLine.SetPauseCollection.Type; + export namespace Set { + export type Behavior = Stripe_.QuoteLine.SetPauseCollection.Set.Behavior; + } + } + export namespace StartsAt { + export type DiscountEnd = Stripe_.QuoteLine.StartsAt.DiscountEnd; + export type LineEndsAt = Stripe_.QuoteLine.StartsAt.LineEndsAt; + export type Type = Stripe_.QuoteLine.StartsAt.Type; + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.QuoteLine.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type ProrateUpFront = Stripe_.QuoteLine.TrialSettings.EndBehavior.ProrateUpFront; + } + } } - export namespace SubscriptionItemDeleteParams { - export type PaymentBehavior = Stripe.SubscriptionItemDeleteParams.PaymentBehavior; - export type ProrationBehavior = Stripe.SubscriptionItemDeleteParams.ProrationBehavior; + export namespace SourceMandateNotification { + export type AcssDebit = Stripe_.SourceMandateNotification.AcssDebit; + export type BacsDebit = Stripe_.SourceMandateNotification.BacsDebit; + export type SepaDebit = Stripe_.SourceMandateNotification.SepaDebit; } - export namespace SubscriptionScheduleCreateParams { - export type BillingBehavior = Stripe.SubscriptionScheduleCreateParams.BillingBehavior; - export type BillingMode = Stripe.SubscriptionScheduleCreateParams.BillingMode; - export type DefaultSettings = Stripe.SubscriptionScheduleCreateParams.DefaultSettings; - export type EndBehavior = Stripe.SubscriptionScheduleCreateParams.EndBehavior; - export type Phase = Stripe.SubscriptionScheduleCreateParams.Phase; - export type Prebilling = Stripe.SubscriptionScheduleCreateParams.Prebilling; + export namespace SourceTransaction { + export type AchCreditTransfer = Stripe_.SourceTransaction.AchCreditTransfer; + export type ChfCreditTransfer = Stripe_.SourceTransaction.ChfCreditTransfer; + export type GbpCreditTransfer = Stripe_.SourceTransaction.GbpCreditTransfer; + export type PaperCheck = Stripe_.SourceTransaction.PaperCheck; + export type SepaCreditTransfer = Stripe_.SourceTransaction.SepaCreditTransfer; + export type Type = Stripe_.SourceTransaction.Type; } - export namespace SubscriptionScheduleUpdateParams { - export type BillingBehavior = Stripe.SubscriptionScheduleUpdateParams.BillingBehavior; - export type DefaultSettings = Stripe.SubscriptionScheduleUpdateParams.DefaultSettings; - export type EndBehavior = Stripe.SubscriptionScheduleUpdateParams.EndBehavior; - export type Phase = Stripe.SubscriptionScheduleUpdateParams.Phase; - export type Prebilling = Stripe.SubscriptionScheduleUpdateParams.Prebilling; - export type ProrationBehavior = Stripe.SubscriptionScheduleUpdateParams.ProrationBehavior; + export namespace Capability { + export type FutureRequirements = Stripe_.Capability.FutureRequirements; + export type Requirements = Stripe_.Capability.Requirements; + export type Status = Stripe_.Capability.Status; + export namespace FutureRequirements { + export type Alternative = Stripe_.Capability.FutureRequirements.Alternative; + export type DisabledReason = Stripe_.Capability.FutureRequirements.DisabledReason; + export type Error = Stripe_.Capability.FutureRequirements.Error; + export namespace Error { + export type Code = Stripe_.Capability.FutureRequirements.Error.Code; + } + } + export namespace Requirements { + export type Alternative = Stripe_.Capability.Requirements.Alternative; + export type DisabledReason = Stripe_.Capability.Requirements.DisabledReason; + export type Error = Stripe_.Capability.Requirements.Error; + export namespace Error { + export type Code = Stripe_.Capability.Requirements.Error.Code; + } + } } - export namespace SubscriptionScheduleAmendParams { - export type Amendment = Stripe.SubscriptionScheduleAmendParams.Amendment; - export type Prebilling = Stripe.SubscriptionScheduleAmendParams.Prebilling; - export type ProrationBehavior = Stripe.SubscriptionScheduleAmendParams.ProrationBehavior; - export type ScheduleSettings = Stripe.SubscriptionScheduleAmendParams.ScheduleSettings; + export namespace Person { + export type AdditionalTosAcceptances = Stripe_.Person.AdditionalTosAcceptances; + export type AddressKana = Stripe_.Person.AddressKana; + export type AddressKanji = Stripe_.Person.AddressKanji; + export type Dob = Stripe_.Person.Dob; + export type FutureRequirements = Stripe_.Person.FutureRequirements; + export type PoliticalExposure = Stripe_.Person.PoliticalExposure; + export type Relationship = Stripe_.Person.Relationship; + export type Requirements = Stripe_.Person.Requirements; + export type UsCfpbData = Stripe_.Person.UsCfpbData; + export type Verification = Stripe_.Person.Verification; + export namespace AdditionalTosAcceptances { + export type Account = Stripe_.Person.AdditionalTosAcceptances.Account; + } + export namespace FutureRequirements { + export type Alternative = Stripe_.Person.FutureRequirements.Alternative; + export type Error = Stripe_.Person.FutureRequirements.Error; + export namespace Error { + export type Code = Stripe_.Person.FutureRequirements.Error.Code; + } + } + export namespace Requirements { + export type Alternative = Stripe_.Person.Requirements.Alternative; + export type Error = Stripe_.Person.Requirements.Error; + export namespace Error { + export type Code = Stripe_.Person.Requirements.Error.Code; + } + } + export namespace UsCfpbData { + export type EthnicityDetails = Stripe_.Person.UsCfpbData.EthnicityDetails; + export type RaceDetails = Stripe_.Person.UsCfpbData.RaceDetails; + export namespace EthnicityDetails { + export type Ethnicity = Stripe_.Person.UsCfpbData.EthnicityDetails.Ethnicity; + } + export namespace RaceDetails { + export type Race = Stripe_.Person.UsCfpbData.RaceDetails.Race; + } + } + export namespace Verification { + export type AdditionalDocument = Stripe_.Person.Verification.AdditionalDocument; + export type Document = Stripe_.Person.Verification.Document; + } } - export namespace TaxIdCreateParams { - export type Type = Stripe.TaxIdCreateParams.Type; - export type Owner = Stripe.TaxIdCreateParams.Owner; + export namespace CreditNoteLineItem { + export type DiscountAmount = Stripe_.CreditNoteLineItem.DiscountAmount; + export type PretaxCreditAmount = Stripe_.CreditNoteLineItem.PretaxCreditAmount; + export type TaxCalculationReference = Stripe_.CreditNoteLineItem.TaxCalculationReference; + export type Tax = Stripe_.CreditNoteLineItem.Tax; + export type Type = Stripe_.CreditNoteLineItem.Type; + export namespace PretaxCreditAmount { + export type Type = Stripe_.CreditNoteLineItem.PretaxCreditAmount.Type; + } + export namespace Tax { + export type TaxBehavior = Stripe_.CreditNoteLineItem.Tax.TaxBehavior; + export type TaxRateDetails = Stripe_.CreditNoteLineItem.Tax.TaxRateDetails; + export type TaxabilityReason = Stripe_.CreditNoteLineItem.Tax.TaxabilityReason; + } } - export namespace TaxIdListParams { - export type Owner = Stripe.TaxIdListParams.Owner; + export namespace CustomerBalanceTransaction { + export type Type = Stripe_.CustomerBalanceTransaction.Type; } - export namespace TaxRateCreateParams { - export type TaxType = Stripe.TaxRateCreateParams.TaxType; + export namespace CashBalance { + export type Settings = Stripe_.CashBalance.Settings; + export namespace Settings { + export type ReconciliationMode = Stripe_.CashBalance.Settings.ReconciliationMode; + } } - export namespace TaxRateUpdateParams { - export type TaxType = Stripe.TaxRateUpdateParams.TaxType; + export namespace CustomerCashBalanceTransaction { + export type AdjustedForOverdraft = Stripe_.CustomerCashBalanceTransaction.AdjustedForOverdraft; + export type AppliedToPayment = Stripe_.CustomerCashBalanceTransaction.AppliedToPayment; + export type Funded = Stripe_.CustomerCashBalanceTransaction.Funded; + export type RefundedFromPayment = Stripe_.CustomerCashBalanceTransaction.RefundedFromPayment; + export type TransferredToBalance = Stripe_.CustomerCashBalanceTransaction.TransferredToBalance; + export type Type = Stripe_.CustomerCashBalanceTransaction.Type; + export type UnappliedFromPayment = Stripe_.CustomerCashBalanceTransaction.UnappliedFromPayment; + export namespace Funded { + export type BankTransfer = Stripe_.CustomerCashBalanceTransaction.Funded.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.CustomerCashBalanceTransaction.Funded.BankTransfer.EuBankTransfer; + export type GbBankTransfer = Stripe_.CustomerCashBalanceTransaction.Funded.BankTransfer.GbBankTransfer; + export type JpBankTransfer = Stripe_.CustomerCashBalanceTransaction.Funded.BankTransfer.JpBankTransfer; + export type Type = Stripe_.CustomerCashBalanceTransaction.Funded.BankTransfer.Type; + export type UsBankTransfer = Stripe_.CustomerCashBalanceTransaction.Funded.BankTransfer.UsBankTransfer; + export namespace UsBankTransfer { + export type Network = Stripe_.CustomerCashBalanceTransaction.Funded.BankTransfer.UsBankTransfer.Network; + } + } + } } - export namespace TokenCreateParams { - export type Account = Stripe.TokenCreateParams.Account; - export type BankAccount = Stripe.TokenCreateParams.BankAccount; - export type Card = Stripe.TokenCreateParams.Card; - export type CvcUpdate = Stripe.TokenCreateParams.CvcUpdate; - export type Person = Stripe.TokenCreateParams.Person; - export type Pii = Stripe.TokenCreateParams.Pii; + export namespace InvoiceLineItem { + export type DiscountAmount = Stripe_.InvoiceLineItem.DiscountAmount; + export type MarginAmount = Stripe_.InvoiceLineItem.MarginAmount; + export type Parent = Stripe_.InvoiceLineItem.Parent; + export type Period = Stripe_.InvoiceLineItem.Period; + export type PretaxCreditAmount = Stripe_.InvoiceLineItem.PretaxCreditAmount; + export type Pricing = Stripe_.InvoiceLineItem.Pricing; + export type TaxCalculationReference = Stripe_.InvoiceLineItem.TaxCalculationReference; + export type Tax = Stripe_.InvoiceLineItem.Tax; + export namespace Parent { + export type InvoiceItemDetails = Stripe_.InvoiceLineItem.Parent.InvoiceItemDetails; + export type SubscriptionItemDetails = Stripe_.InvoiceLineItem.Parent.SubscriptionItemDetails; + export type Type = Stripe_.InvoiceLineItem.Parent.Type; + export namespace InvoiceItemDetails { + export type ProrationDetails = Stripe_.InvoiceLineItem.Parent.InvoiceItemDetails.ProrationDetails; + export namespace ProrationDetails { + export type CreditedItems = Stripe_.InvoiceLineItem.Parent.InvoiceItemDetails.ProrationDetails.CreditedItems; + } + } + export namespace SubscriptionItemDetails { + export type ProrationDetails = Stripe_.InvoiceLineItem.Parent.SubscriptionItemDetails.ProrationDetails; + export namespace ProrationDetails { + export type CreditedItems = Stripe_.InvoiceLineItem.Parent.SubscriptionItemDetails.ProrationDetails.CreditedItems; + } + } + } + export namespace PretaxCreditAmount { + export type Type = Stripe_.InvoiceLineItem.PretaxCreditAmount.Type; + } + export namespace Pricing { + export type PriceDetails = Stripe_.InvoiceLineItem.Pricing.PriceDetails; + } + export namespace Tax { + export type TaxBehavior = Stripe_.InvoiceLineItem.Tax.TaxBehavior; + export type TaxRateDetails = Stripe_.InvoiceLineItem.Tax.TaxRateDetails; + export type TaxabilityReason = Stripe_.InvoiceLineItem.Tax.TaxabilityReason; + } } - export namespace TopupListParams { - export type Status = Stripe.TopupListParams.Status; + export namespace PaymentIntentAmountDetailsLineItem { + export type PaymentMethodOptions = Stripe_.PaymentIntentAmountDetailsLineItem.PaymentMethodOptions; + export type Tax = Stripe_.PaymentIntentAmountDetailsLineItem.Tax; + export namespace PaymentMethodOptions { + export type Card = Stripe_.PaymentIntentAmountDetailsLineItem.PaymentMethodOptions.Card; + export type CardPresent = Stripe_.PaymentIntentAmountDetailsLineItem.PaymentMethodOptions.CardPresent; + export type Klarna = Stripe_.PaymentIntentAmountDetailsLineItem.PaymentMethodOptions.Klarna; + export type Paypal = Stripe_.PaymentIntentAmountDetailsLineItem.PaymentMethodOptions.Paypal; + export namespace Paypal { + export type Category = Stripe_.PaymentIntentAmountDetailsLineItem.PaymentMethodOptions.Paypal.Category; + } + } } - export namespace TransferCreateParams { - export type SourceType = Stripe.TransferCreateParams.SourceType; + export namespace QuotePreviewInvoice { + export type AmountsDue = Stripe_.QuotePreviewInvoice.AmountsDue; + export type AppliesTo = Stripe_.QuotePreviewInvoice.AppliesTo; + export type AutomaticTax = Stripe_.QuotePreviewInvoice.AutomaticTax; + export type BillingReason = Stripe_.QuotePreviewInvoice.BillingReason; + export type CollectionMethod = Stripe_.QuotePreviewInvoice.CollectionMethod; + export type ConfirmationSecret = Stripe_.QuotePreviewInvoice.ConfirmationSecret; + export type CustomField = Stripe_.QuotePreviewInvoice.CustomField; + export type CustomerShipping = Stripe_.QuotePreviewInvoice.CustomerShipping; + export type CustomerTaxExempt = Stripe_.QuotePreviewInvoice.CustomerTaxExempt; + export type CustomerTaxId = Stripe_.QuotePreviewInvoice.CustomerTaxId; + export type FromInvoice = Stripe_.QuotePreviewInvoice.FromInvoice; + export type Issuer = Stripe_.QuotePreviewInvoice.Issuer; + export type LastFinalizationError = Stripe_.QuotePreviewInvoice.LastFinalizationError; + export type Parent = Stripe_.QuotePreviewInvoice.Parent; + export type PaymentSettings = Stripe_.QuotePreviewInvoice.PaymentSettings; + export type Rendering = Stripe_.QuotePreviewInvoice.Rendering; + export type ShippingCost = Stripe_.QuotePreviewInvoice.ShippingCost; + export type ShippingDetails = Stripe_.QuotePreviewInvoice.ShippingDetails; + export type Status = Stripe_.QuotePreviewInvoice.Status; + export type StatusTransitions = Stripe_.QuotePreviewInvoice.StatusTransitions; + export type ThresholdReason = Stripe_.QuotePreviewInvoice.ThresholdReason; + export type TotalDiscountAmount = Stripe_.QuotePreviewInvoice.TotalDiscountAmount; + export type TotalMarginAmount = Stripe_.QuotePreviewInvoice.TotalMarginAmount; + export type TotalPretaxCreditAmount = Stripe_.QuotePreviewInvoice.TotalPretaxCreditAmount; + export type TotalTax = Stripe_.QuotePreviewInvoice.TotalTax; + export namespace AmountsDue { + export type Status = Stripe_.QuotePreviewInvoice.AmountsDue.Status; + } + export namespace AppliesTo { + export type Type = Stripe_.QuotePreviewInvoice.AppliesTo.Type; + } + export namespace AutomaticTax { + export type DisabledReason = Stripe_.QuotePreviewInvoice.AutomaticTax.DisabledReason; + export type Liability = Stripe_.QuotePreviewInvoice.AutomaticTax.Liability; + export type Status = Stripe_.QuotePreviewInvoice.AutomaticTax.Status; + export namespace Liability { + export type Type = Stripe_.QuotePreviewInvoice.AutomaticTax.Liability.Type; + } + } + export namespace CustomerTaxId { + export type Type = Stripe_.QuotePreviewInvoice.CustomerTaxId.Type; + } + export namespace Issuer { + export type Type = Stripe_.QuotePreviewInvoice.Issuer.Type; + } + export namespace LastFinalizationError { + export type Code = Stripe_.QuotePreviewInvoice.LastFinalizationError.Code; + export type Type = Stripe_.QuotePreviewInvoice.LastFinalizationError.Type; + } + export namespace Parent { + export type QuoteDetails = Stripe_.QuotePreviewInvoice.Parent.QuoteDetails; + export type SubscriptionDetails = Stripe_.QuotePreviewInvoice.Parent.SubscriptionDetails; + export type Type = Stripe_.QuotePreviewInvoice.Parent.Type; + export namespace SubscriptionDetails { + export type PauseCollection = Stripe_.QuotePreviewInvoice.Parent.SubscriptionDetails.PauseCollection; + export namespace PauseCollection { + export type Behavior = Stripe_.QuotePreviewInvoice.Parent.SubscriptionDetails.PauseCollection.Behavior; + } + } + } + export namespace PaymentSettings { + export type PaymentMethodOptions = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodType; + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.AcssDebit; + export type Bancontact = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Bancontact; + export type Blik = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Blik; + export type Card = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.CustomerBalance; + export type IdBankTransfer = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.IdBankTransfer; + export type Konbini = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Konbini; + export type Payto = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Payto; + export type Pix = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Pix; + export type SepaDebit = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.SepaDebit; + export type Upi = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type MandateOptions = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type TransactionType = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Bancontact.PreferredLanguage; + } + export namespace Card { + export type Installments = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Card.Installments; + export type RequestThreeDSecure = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Card.RequestThreeDSecure; + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export namespace EuBankTransfer { + export type Country = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer.Country; + } + } + } + export namespace Payto { + export type MandateOptions = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions.AmountType; + export type Purpose = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type AmountIncludesIof = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Pix.AmountIncludesIof; + } + export namespace Upi { + export type MandateOptions = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions; + export namespace MandateOptions { + export type AmountType = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type VerificationMethod = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type Permission = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.QuotePreviewInvoice.PaymentSettings.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + } + } + } + } + export namespace Rendering { + export type Pdf = Stripe_.QuotePreviewInvoice.Rendering.Pdf; + export namespace Pdf { + export type PageSize = Stripe_.QuotePreviewInvoice.Rendering.Pdf.PageSize; + } + } + export namespace ShippingCost { + export type Tax = Stripe_.QuotePreviewInvoice.ShippingCost.Tax; + export namespace Tax { + export type TaxabilityReason = Stripe_.QuotePreviewInvoice.ShippingCost.Tax.TaxabilityReason; + } + } + export namespace ThresholdReason { + export type ItemReason = Stripe_.QuotePreviewInvoice.ThresholdReason.ItemReason; + } + export namespace TotalPretaxCreditAmount { + export type Type = Stripe_.QuotePreviewInvoice.TotalPretaxCreditAmount.Type; + } + export namespace TotalTax { + export type TaxBehavior = Stripe_.QuotePreviewInvoice.TotalTax.TaxBehavior; + export type TaxRateDetails = Stripe_.QuotePreviewInvoice.TotalTax.TaxRateDetails; + export type TaxabilityReason = Stripe_.QuotePreviewInvoice.TotalTax.TaxabilityReason; + } } - export namespace WebhookEndpointCreateParams { - export type EnabledEvent = Stripe.WebhookEndpointCreateParams.EnabledEvent; - export type ApiVersion = Stripe.WebhookEndpointCreateParams.ApiVersion; + export namespace QuotePreviewSubscriptionSchedule { + export type AppliesTo = Stripe_.QuotePreviewSubscriptionSchedule.AppliesTo; + export type BillingBehavior = Stripe_.QuotePreviewSubscriptionSchedule.BillingBehavior; + export type BillingMode = Stripe_.QuotePreviewSubscriptionSchedule.BillingMode; + export type CurrentPhase = Stripe_.QuotePreviewSubscriptionSchedule.CurrentPhase; + export type DefaultSettings = Stripe_.QuotePreviewSubscriptionSchedule.DefaultSettings; + export type EndBehavior = Stripe_.QuotePreviewSubscriptionSchedule.EndBehavior; + export type LastPriceMigrationError = Stripe_.QuotePreviewSubscriptionSchedule.LastPriceMigrationError; + export type Phase = Stripe_.QuotePreviewSubscriptionSchedule.Phase; + export type Prebilling = Stripe_.QuotePreviewSubscriptionSchedule.Prebilling; + export type Status = Stripe_.QuotePreviewSubscriptionSchedule.Status; + export namespace AppliesTo { + export type Type = Stripe_.QuotePreviewSubscriptionSchedule.AppliesTo.Type; + } + export namespace BillingMode { + export type Flexible = Stripe_.QuotePreviewSubscriptionSchedule.BillingMode.Flexible; + export type Type = Stripe_.QuotePreviewSubscriptionSchedule.BillingMode.Type; + export namespace Flexible { + export type ProrationDiscounts = Stripe_.QuotePreviewSubscriptionSchedule.BillingMode.Flexible.ProrationDiscounts; + } + } + export namespace DefaultSettings { + export type AutomaticTax = Stripe_.QuotePreviewSubscriptionSchedule.DefaultSettings.AutomaticTax; + export type BillingCycleAnchor = Stripe_.QuotePreviewSubscriptionSchedule.DefaultSettings.BillingCycleAnchor; + export type BillingThresholds = Stripe_.QuotePreviewSubscriptionSchedule.DefaultSettings.BillingThresholds; + export type CollectionMethod = Stripe_.QuotePreviewSubscriptionSchedule.DefaultSettings.CollectionMethod; + export type InvoiceSettings = Stripe_.QuotePreviewSubscriptionSchedule.DefaultSettings.InvoiceSettings; + export type TransferData = Stripe_.QuotePreviewSubscriptionSchedule.DefaultSettings.TransferData; + export namespace AutomaticTax { + export type Liability = Stripe_.QuotePreviewSubscriptionSchedule.DefaultSettings.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.QuotePreviewSubscriptionSchedule.DefaultSettings.AutomaticTax.Liability.Type; + } + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.QuotePreviewSubscriptionSchedule.DefaultSettings.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.QuotePreviewSubscriptionSchedule.DefaultSettings.InvoiceSettings.Issuer.Type; + } + } + } + export namespace LastPriceMigrationError { + export type FailedTransition = Stripe_.QuotePreviewSubscriptionSchedule.LastPriceMigrationError.FailedTransition; + } + export namespace Phase { + export type AddInvoiceItem = Stripe_.QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem; + export type AutomaticTax = Stripe_.QuotePreviewSubscriptionSchedule.Phase.AutomaticTax; + export type BillingCycleAnchor = Stripe_.QuotePreviewSubscriptionSchedule.Phase.BillingCycleAnchor; + export type BillingThresholds = Stripe_.QuotePreviewSubscriptionSchedule.Phase.BillingThresholds; + export type CollectionMethod = Stripe_.QuotePreviewSubscriptionSchedule.Phase.CollectionMethod; + export type Discount = Stripe_.QuotePreviewSubscriptionSchedule.Phase.Discount; + export type InvoiceSettings = Stripe_.QuotePreviewSubscriptionSchedule.Phase.InvoiceSettings; + export type Item = Stripe_.QuotePreviewSubscriptionSchedule.Phase.Item; + export type PauseCollection = Stripe_.QuotePreviewSubscriptionSchedule.Phase.PauseCollection; + export type ProrationBehavior = Stripe_.QuotePreviewSubscriptionSchedule.Phase.ProrationBehavior; + export type TransferData = Stripe_.QuotePreviewSubscriptionSchedule.Phase.TransferData; + export type TrialContinuation = Stripe_.QuotePreviewSubscriptionSchedule.Phase.TrialContinuation; + export type TrialSettings = Stripe_.QuotePreviewSubscriptionSchedule.Phase.TrialSettings; + export namespace AddInvoiceItem { + export type Discount = Stripe_.QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem.Discount; + export type Period = Stripe_.QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem.Period; + export namespace Discount { + export type DiscountEnd = Stripe_.QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem.Discount.DiscountEnd; + } + export namespace Period { + export type End = Stripe_.QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem.Period.End; + export type Start = Stripe_.QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem.Period.Start; + export namespace End { + export type Type = Stripe_.QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem.Period.End.Type; + } + export namespace Start { + export type Type = Stripe_.QuotePreviewSubscriptionSchedule.Phase.AddInvoiceItem.Period.Start.Type; + } + } + } + export namespace AutomaticTax { + export type Liability = Stripe_.QuotePreviewSubscriptionSchedule.Phase.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.QuotePreviewSubscriptionSchedule.Phase.AutomaticTax.Liability.Type; + } + } + export namespace Discount { + export type DiscountEnd = Stripe_.QuotePreviewSubscriptionSchedule.Phase.Discount.DiscountEnd; + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.QuotePreviewSubscriptionSchedule.Phase.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.QuotePreviewSubscriptionSchedule.Phase.InvoiceSettings.Issuer.Type; + } + } + export namespace Item { + export type BillingThresholds = Stripe_.QuotePreviewSubscriptionSchedule.Phase.Item.BillingThresholds; + export type Discount = Stripe_.QuotePreviewSubscriptionSchedule.Phase.Item.Discount; + export type Trial = Stripe_.QuotePreviewSubscriptionSchedule.Phase.Item.Trial; + export namespace Discount { + export type DiscountEnd = Stripe_.QuotePreviewSubscriptionSchedule.Phase.Item.Discount.DiscountEnd; + } + export namespace Trial { + export type Type = Stripe_.QuotePreviewSubscriptionSchedule.Phase.Item.Trial.Type; + } + } + export namespace PauseCollection { + export type Behavior = Stripe_.QuotePreviewSubscriptionSchedule.Phase.PauseCollection.Behavior; + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.QuotePreviewSubscriptionSchedule.Phase.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type ProrateUpFront = Stripe_.QuotePreviewSubscriptionSchedule.Phase.TrialSettings.EndBehavior.ProrateUpFront; + } + } + } + export namespace Prebilling { + export type UpdateBehavior = Stripe_.QuotePreviewSubscriptionSchedule.Prebilling.UpdateBehavior; + } } - export namespace WebhookEndpointUpdateParams { - export type EnabledEvent = Stripe.WebhookEndpointUpdateParams.EnabledEvent; - } - export type Apps = Stripe.Apps; - export type Billing = Stripe.Billing; - export type BillingPortal = Stripe.BillingPortal; - export type Capital = Stripe.Capital; - export type Checkout = Stripe.Checkout; - export type Climate = Stripe.Climate; - export type Entitlements = Stripe.Entitlements; - export type FinancialConnections = Stripe.FinancialConnections; - export type Forwarding = Stripe.Forwarding; - export type Identity = Stripe.Identity; - export type Issuing = Stripe.Issuing; - export type Privacy = Stripe.Privacy; - export type ProductCatalog = Stripe.ProductCatalog; - export type Radar = Stripe.Radar; - export type Reporting = Stripe.Reporting; - export type Reserve = Stripe.Reserve; - export type SharedPayment = Stripe.SharedPayment; - export type Sigma = Stripe.Sigma; - export type Tax = Stripe.Tax; - export type Terminal = Stripe.Terminal; - export type TestHelpers = Stripe.TestHelpers; - export type Treasury = Stripe.Treasury; - export type V2 = Stripe.V2; + export type Apps = Stripe_.Apps; + export type Billing = Stripe_.Billing; + export type BillingPortal = Stripe_.BillingPortal; + export type Capital = Stripe_.Capital; + export type Checkout = Stripe_.Checkout; + export type Climate = Stripe_.Climate; + export type Entitlements = Stripe_.Entitlements; + export type FinancialConnections = Stripe_.FinancialConnections; + export type Forwarding = Stripe_.Forwarding; + export type Identity = Stripe_.Identity; + export type Issuing = Stripe_.Issuing; + export type Privacy = Stripe_.Privacy; + export type ProductCatalog = Stripe_.ProductCatalog; + export type Radar = Stripe_.Radar; + export type Reporting = Stripe_.Reporting; + export type Reserve = Stripe_.Reserve; + export type SharedPayment = Stripe_.SharedPayment; + export type Sigma = Stripe_.Sigma; + export type Tax = Stripe_.Tax; + export type Terminal = Stripe_.Terminal; + export type TestHelpers = Stripe_.TestHelpers; + export type Treasury = Stripe_.Treasury; + export type V2 = Stripe_.V2; export namespace Apps { - export type Secret = Stripe.Apps.Secret; - export type SecretCreateParams = Stripe.Apps.SecretCreateParams; - export type SecretListParams = Stripe.Apps.SecretListParams; - export type SecretDeleteWhereParams = Stripe.Apps.SecretDeleteWhereParams; - export type SecretFindParams = Stripe.Apps.SecretFindParams; - export type SecretResource = Stripe.Apps.SecretResource; + export type Secret = Stripe_.Apps.Secret; + export type SecretCreateParams = Stripe_.Apps.SecretCreateParams; + export type SecretListParams = Stripe_.Apps.SecretListParams; + export type SecretDeleteWhereParams = Stripe_.Apps.SecretDeleteWhereParams; + export type SecretFindParams = Stripe_.Apps.SecretFindParams; + export type SecretResource = Stripe_.Apps.SecretResource; export namespace SecretCreateParams { - export type Scope = Stripe.Apps.SecretCreateParams.Scope; - } - export namespace SecretListParams { - export type Scope = Stripe.Apps.SecretListParams.Scope; - } - export namespace SecretDeleteWhereParams { - export type Scope = Stripe.Apps.SecretDeleteWhereParams.Scope; + export type Scope = Stripe_.Apps.SecretCreateParams.Scope; + export namespace Scope { + export type Type = Stripe_.Apps.SecretCreateParams.Scope.Type; + } } - export namespace SecretFindParams { - export type Scope = Stripe.Apps.SecretFindParams.Scope; + export namespace Secret { + export type Scope = Stripe_.Apps.Secret.Scope; + export namespace Scope { + export type Type = Stripe_.Apps.Secret.Scope.Type; + } } } export namespace Billing { - export type Alert = Stripe.Billing.Alert; - export type AlertCreateParams = Stripe.Billing.AlertCreateParams; - export type AlertRetrieveParams = Stripe.Billing.AlertRetrieveParams; - export type AlertListParams = Stripe.Billing.AlertListParams; - export type AlertActivateParams = Stripe.Billing.AlertActivateParams; - export type AlertArchiveParams = Stripe.Billing.AlertArchiveParams; - export type AlertDeactivateParams = Stripe.Billing.AlertDeactivateParams; - export type AlertResource = Stripe.Billing.AlertResource; - export type CreditBalanceSummary = Stripe.Billing.CreditBalanceSummary; - export type CreditBalanceSummaryRetrieveParams = Stripe.Billing.CreditBalanceSummaryRetrieveParams; - export type CreditBalanceSummaryResource = Stripe.Billing.CreditBalanceSummaryResource; - export type CreditBalanceTransaction = Stripe.Billing.CreditBalanceTransaction; - export type CreditBalanceTransactionRetrieveParams = Stripe.Billing.CreditBalanceTransactionRetrieveParams; - export type CreditBalanceTransactionListParams = Stripe.Billing.CreditBalanceTransactionListParams; - export type CreditBalanceTransactionResource = Stripe.Billing.CreditBalanceTransactionResource; - export type CreditGrant = Stripe.Billing.CreditGrant; - export type CreditGrantCreateParams = Stripe.Billing.CreditGrantCreateParams; - export type CreditGrantRetrieveParams = Stripe.Billing.CreditGrantRetrieveParams; - export type CreditGrantUpdateParams = Stripe.Billing.CreditGrantUpdateParams; - export type CreditGrantListParams = Stripe.Billing.CreditGrantListParams; - export type CreditGrantExpireParams = Stripe.Billing.CreditGrantExpireParams; - export type CreditGrantVoidGrantParams = Stripe.Billing.CreditGrantVoidGrantParams; - export type CreditGrantResource = Stripe.Billing.CreditGrantResource; - export type Meter = Stripe.Billing.Meter; - export type MeterCreateParams = Stripe.Billing.MeterCreateParams; - export type MeterRetrieveParams = Stripe.Billing.MeterRetrieveParams; - export type MeterUpdateParams = Stripe.Billing.MeterUpdateParams; - export type MeterListParams = Stripe.Billing.MeterListParams; - export type MeterDeactivateParams = Stripe.Billing.MeterDeactivateParams; - export type MeterListEventSummariesParams = Stripe.Billing.MeterListEventSummariesParams; - export type MeterReactivateParams = Stripe.Billing.MeterReactivateParams; - export type MeterResource = Stripe.Billing.MeterResource; - export type MeterEvent = Stripe.Billing.MeterEvent; - export type MeterEventCreateParams = Stripe.Billing.MeterEventCreateParams; - export type MeterEventResource = Stripe.Billing.MeterEventResource; - export type MeterEventAdjustment = Stripe.Billing.MeterEventAdjustment; - export type MeterEventAdjustmentCreateParams = Stripe.Billing.MeterEventAdjustmentCreateParams; - export type MeterEventAdjustmentResource = Stripe.Billing.MeterEventAdjustmentResource; - export type AlertTriggered = Stripe.Billing.AlertTriggered; - export type MeterEventSummary = Stripe.Billing.MeterEventSummary; + export type Alert = Stripe_.Billing.Alert; + export type AlertCreateParams = Stripe_.Billing.AlertCreateParams; + export type AlertRetrieveParams = Stripe_.Billing.AlertRetrieveParams; + export type AlertListParams = Stripe_.Billing.AlertListParams; + export type AlertActivateParams = Stripe_.Billing.AlertActivateParams; + export type AlertArchiveParams = Stripe_.Billing.AlertArchiveParams; + export type AlertDeactivateParams = Stripe_.Billing.AlertDeactivateParams; + export type AlertResource = Stripe_.Billing.AlertResource; + export type CreditBalanceSummary = Stripe_.Billing.CreditBalanceSummary; + export type CreditBalanceSummaryRetrieveParams = Stripe_.Billing.CreditBalanceSummaryRetrieveParams; + export type CreditBalanceSummaryResource = Stripe_.Billing.CreditBalanceSummaryResource; + export type CreditBalanceTransaction = Stripe_.Billing.CreditBalanceTransaction; + export type CreditBalanceTransactionRetrieveParams = Stripe_.Billing.CreditBalanceTransactionRetrieveParams; + export type CreditBalanceTransactionListParams = Stripe_.Billing.CreditBalanceTransactionListParams; + export type CreditBalanceTransactionResource = Stripe_.Billing.CreditBalanceTransactionResource; + export type CreditGrant = Stripe_.Billing.CreditGrant; + export type CreditGrantCreateParams = Stripe_.Billing.CreditGrantCreateParams; + export type CreditGrantRetrieveParams = Stripe_.Billing.CreditGrantRetrieveParams; + export type CreditGrantUpdateParams = Stripe_.Billing.CreditGrantUpdateParams; + export type CreditGrantListParams = Stripe_.Billing.CreditGrantListParams; + export type CreditGrantExpireParams = Stripe_.Billing.CreditGrantExpireParams; + export type CreditGrantVoidGrantParams = Stripe_.Billing.CreditGrantVoidGrantParams; + export type CreditGrantResource = Stripe_.Billing.CreditGrantResource; + export type Meter = Stripe_.Billing.Meter; + export type MeterCreateParams = Stripe_.Billing.MeterCreateParams; + export type MeterRetrieveParams = Stripe_.Billing.MeterRetrieveParams; + export type MeterUpdateParams = Stripe_.Billing.MeterUpdateParams; + export type MeterListParams = Stripe_.Billing.MeterListParams; + export type MeterDeactivateParams = Stripe_.Billing.MeterDeactivateParams; + export type MeterListEventSummariesParams = Stripe_.Billing.MeterListEventSummariesParams; + export type MeterReactivateParams = Stripe_.Billing.MeterReactivateParams; + export type MeterResource = Stripe_.Billing.MeterResource; + export type MeterEvent = Stripe_.Billing.MeterEvent; + export type MeterEventCreateParams = Stripe_.Billing.MeterEventCreateParams; + export type MeterEventResource = Stripe_.Billing.MeterEventResource; + export type MeterEventAdjustment = Stripe_.Billing.MeterEventAdjustment; + export type MeterEventAdjustmentCreateParams = Stripe_.Billing.MeterEventAdjustmentCreateParams; + export type MeterEventAdjustmentResource = Stripe_.Billing.MeterEventAdjustmentResource; + export type AlertTriggered = Stripe_.Billing.AlertTriggered; + export type MeterEventSummary = Stripe_.Billing.MeterEventSummary; export namespace AlertCreateParams { - export type UsageThreshold = Stripe.Billing.AlertCreateParams.UsageThreshold; + export type UsageThreshold = Stripe_.Billing.AlertCreateParams.UsageThreshold; + export namespace UsageThreshold { + export type Filter = Stripe_.Billing.AlertCreateParams.UsageThreshold.Filter; + } + } + export namespace Alert { + export type Status = Stripe_.Billing.Alert.Status; + export type UsageThreshold = Stripe_.Billing.Alert.UsageThreshold; + export namespace UsageThreshold { + export type Filter = Stripe_.Billing.Alert.UsageThreshold.Filter; + } } export namespace CreditBalanceSummaryRetrieveParams { - export type Filter = Stripe.Billing.CreditBalanceSummaryRetrieveParams.Filter; + export type Filter = Stripe_.Billing.CreditBalanceSummaryRetrieveParams.Filter; + export namespace Filter { + export type ApplicabilityScope = Stripe_.Billing.CreditBalanceSummaryRetrieveParams.Filter.ApplicabilityScope; + export type Type = Stripe_.Billing.CreditBalanceSummaryRetrieveParams.Filter.Type; + export namespace ApplicabilityScope { + export type Price = Stripe_.Billing.CreditBalanceSummaryRetrieveParams.Filter.ApplicabilityScope.Price; + } + } + } + export namespace CreditBalanceSummary { + export type Balance = Stripe_.Billing.CreditBalanceSummary.Balance; + export namespace Balance { + export type AvailableBalance = Stripe_.Billing.CreditBalanceSummary.Balance.AvailableBalance; + export type LedgerBalance = Stripe_.Billing.CreditBalanceSummary.Balance.LedgerBalance; + export namespace AvailableBalance { + export type Monetary = Stripe_.Billing.CreditBalanceSummary.Balance.AvailableBalance.Monetary; + } + export namespace LedgerBalance { + export type Monetary = Stripe_.Billing.CreditBalanceSummary.Balance.LedgerBalance.Monetary; + } + } + } + export namespace CreditBalanceTransaction { + export type Credit = Stripe_.Billing.CreditBalanceTransaction.Credit; + export type Debit = Stripe_.Billing.CreditBalanceTransaction.Debit; + export type Type = Stripe_.Billing.CreditBalanceTransaction.Type; + export namespace Credit { + export type Amount = Stripe_.Billing.CreditBalanceTransaction.Credit.Amount; + export type CreditsApplicationInvoiceVoided = Stripe_.Billing.CreditBalanceTransaction.Credit.CreditsApplicationInvoiceVoided; + export type Type = Stripe_.Billing.CreditBalanceTransaction.Credit.Type; + export namespace Amount { + export type Monetary = Stripe_.Billing.CreditBalanceTransaction.Credit.Amount.Monetary; + } + } + export namespace Debit { + export type Amount = Stripe_.Billing.CreditBalanceTransaction.Debit.Amount; + export type CreditsApplied = Stripe_.Billing.CreditBalanceTransaction.Debit.CreditsApplied; + export type Type = Stripe_.Billing.CreditBalanceTransaction.Debit.Type; + export namespace Amount { + export type Monetary = Stripe_.Billing.CreditBalanceTransaction.Debit.Amount.Monetary; + } + } } export namespace CreditGrantCreateParams { - export type Amount = Stripe.Billing.CreditGrantCreateParams.Amount; - export type ApplicabilityConfig = Stripe.Billing.CreditGrantCreateParams.ApplicabilityConfig; - export type Category = Stripe.Billing.CreditGrantCreateParams.Category; + export type Amount = Stripe_.Billing.CreditGrantCreateParams.Amount; + export type ApplicabilityConfig = Stripe_.Billing.CreditGrantCreateParams.ApplicabilityConfig; + export type Category = Stripe_.Billing.CreditGrantCreateParams.Category; + export namespace Amount { + export type Monetary = Stripe_.Billing.CreditGrantCreateParams.Amount.Monetary; + } + export namespace ApplicabilityConfig { + export type Scope = Stripe_.Billing.CreditGrantCreateParams.ApplicabilityConfig.Scope; + export namespace Scope { + export type Price = Stripe_.Billing.CreditGrantCreateParams.ApplicabilityConfig.Scope.Price; + } + } } - export namespace MeterCreateParams { - export type DefaultAggregation = Stripe.Billing.MeterCreateParams.DefaultAggregation; - export type CustomerMapping = Stripe.Billing.MeterCreateParams.CustomerMapping; - export type EventTimeWindow = Stripe.Billing.MeterCreateParams.EventTimeWindow; - export type ValueSettings = Stripe.Billing.MeterCreateParams.ValueSettings; + export namespace CreditGrant { + export type Amount = Stripe_.Billing.CreditGrant.Amount; + export type ApplicabilityConfig = Stripe_.Billing.CreditGrant.ApplicabilityConfig; + export type Category = Stripe_.Billing.CreditGrant.Category; + export namespace Amount { + export type Monetary = Stripe_.Billing.CreditGrant.Amount.Monetary; + } + export namespace ApplicabilityConfig { + export type Scope = Stripe_.Billing.CreditGrant.ApplicabilityConfig.Scope; + export namespace Scope { + export type Price = Stripe_.Billing.CreditGrant.ApplicabilityConfig.Scope.Price; + } + } } - export namespace MeterListParams { - export type Status = Stripe.Billing.MeterListParams.Status; + export namespace MeterCreateParams { + export type DefaultAggregation = Stripe_.Billing.MeterCreateParams.DefaultAggregation; + export type CustomerMapping = Stripe_.Billing.MeterCreateParams.CustomerMapping; + export type EventTimeWindow = Stripe_.Billing.MeterCreateParams.EventTimeWindow; + export type ValueSettings = Stripe_.Billing.MeterCreateParams.ValueSettings; + export namespace DefaultAggregation { + export type Formula = Stripe_.Billing.MeterCreateParams.DefaultAggregation.Formula; + } } - export namespace MeterListEventSummariesParams { - export type ValueGroupingWindow = Stripe.Billing.MeterListEventSummariesParams.ValueGroupingWindow; + export namespace Meter { + export type CustomerMapping = Stripe_.Billing.Meter.CustomerMapping; + export type DefaultAggregation = Stripe_.Billing.Meter.DefaultAggregation; + export type EventTimeWindow = Stripe_.Billing.Meter.EventTimeWindow; + export type Status = Stripe_.Billing.Meter.Status; + export type StatusTransitions = Stripe_.Billing.Meter.StatusTransitions; + export type ValueSettings = Stripe_.Billing.Meter.ValueSettings; + export namespace DefaultAggregation { + export type Formula = Stripe_.Billing.Meter.DefaultAggregation.Formula; + } } export namespace MeterEventAdjustmentCreateParams { - export type Cancel = Stripe.Billing.MeterEventAdjustmentCreateParams.Cancel; + export type Cancel = Stripe_.Billing.MeterEventAdjustmentCreateParams.Cancel; + } + export namespace MeterEventAdjustment { + export type Cancel = Stripe_.Billing.MeterEventAdjustment.Cancel; + export type Status = Stripe_.Billing.MeterEventAdjustment.Status; } export namespace Analytics { - export type MeterUsage = Stripe.Billing.Analytics.MeterUsage; - export type MeterUsageRetrieveParams = Stripe.Billing.Analytics.MeterUsageRetrieveParams; - export type MeterUsageResource = Stripe.Billing.Analytics.MeterUsageResource; - export type MeterUsageRow = Stripe.Billing.Analytics.MeterUsageRow; + export type MeterUsage = Stripe_.Billing.Analytics.MeterUsage; + export type MeterUsageRetrieveParams = Stripe_.Billing.Analytics.MeterUsageRetrieveParams; + export type MeterUsageResource = Stripe_.Billing.Analytics.MeterUsageResource; + export type MeterUsageRow = Stripe_.Billing.Analytics.MeterUsageRow; export namespace MeterUsageRetrieveParams { - export type Meter = Stripe.Billing.Analytics.MeterUsageRetrieveParams.Meter; - export type Timezone = Stripe.Billing.Analytics.MeterUsageRetrieveParams.Timezone; - export type ValueGroupingWindow = Stripe.Billing.Analytics.MeterUsageRetrieveParams.ValueGroupingWindow; + export type Meter = Stripe_.Billing.Analytics.MeterUsageRetrieveParams.Meter; + export type Timezone = Stripe_.Billing.Analytics.MeterUsageRetrieveParams.Timezone; + export type ValueGroupingWindow = Stripe_.Billing.Analytics.MeterUsageRetrieveParams.ValueGroupingWindow; + } + } + } + export namespace BillingPortal { + export type Configuration = Stripe_.BillingPortal.Configuration; + export type ConfigurationCreateParams = Stripe_.BillingPortal.ConfigurationCreateParams; + export type ConfigurationRetrieveParams = Stripe_.BillingPortal.ConfigurationRetrieveParams; + export type ConfigurationUpdateParams = Stripe_.BillingPortal.ConfigurationUpdateParams; + export type ConfigurationListParams = Stripe_.BillingPortal.ConfigurationListParams; + export type ConfigurationResource = Stripe_.BillingPortal.ConfigurationResource; + export type Session = Stripe_.BillingPortal.Session; + export type SessionCreateParams = Stripe_.BillingPortal.SessionCreateParams; + export type SessionResource = Stripe_.BillingPortal.SessionResource; + export namespace ConfigurationCreateParams { + export type Features = Stripe_.BillingPortal.ConfigurationCreateParams.Features; + export type BusinessProfile = Stripe_.BillingPortal.ConfigurationCreateParams.BusinessProfile; + export type LoginPage = Stripe_.BillingPortal.ConfigurationCreateParams.LoginPage; + export namespace Features { + export type CustomerUpdate = Stripe_.BillingPortal.ConfigurationCreateParams.Features.CustomerUpdate; + export type InvoiceHistory = Stripe_.BillingPortal.ConfigurationCreateParams.Features.InvoiceHistory; + export type PaymentMethodUpdate = Stripe_.BillingPortal.ConfigurationCreateParams.Features.PaymentMethodUpdate; + export type SubscriptionCancel = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionCancel; + export type SubscriptionUpdate = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionUpdate; + export namespace CustomerUpdate { + export type AllowedUpdate = Stripe_.BillingPortal.ConfigurationCreateParams.Features.CustomerUpdate.AllowedUpdate; + } + export namespace SubscriptionCancel { + export type CancellationReason = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason; + export type Mode = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionCancel.Mode; + export type ProrationBehavior = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionCancel.ProrationBehavior; + export namespace CancellationReason { + export type Option = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionCancel.CancellationReason.Option; + } + } + export namespace SubscriptionUpdate { + export type BillingCycleAnchor = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionUpdate.BillingCycleAnchor; + export type DefaultAllowedUpdate = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionUpdate.DefaultAllowedUpdate; + export type Product = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionUpdate.Product; + export type ProrationBehavior = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionUpdate.ProrationBehavior; + export type ScheduleAtPeriodEnd = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd; + export type TrialUpdateBehavior = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionUpdate.TrialUpdateBehavior; + export namespace Product { + export type AdjustableQuantity = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionUpdate.Product.AdjustableQuantity; + } + export namespace ScheduleAtPeriodEnd { + export type Condition = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd.Condition; + export namespace Condition { + export type Type = Stripe_.BillingPortal.ConfigurationCreateParams.Features.SubscriptionUpdate.ScheduleAtPeriodEnd.Condition.Type; + } + } + } + } + } + export namespace Configuration { + export type BusinessProfile = Stripe_.BillingPortal.Configuration.BusinessProfile; + export type Features = Stripe_.BillingPortal.Configuration.Features; + export type LoginPage = Stripe_.BillingPortal.Configuration.LoginPage; + export namespace Features { + export type CustomerUpdate = Stripe_.BillingPortal.Configuration.Features.CustomerUpdate; + export type InvoiceHistory = Stripe_.BillingPortal.Configuration.Features.InvoiceHistory; + export type PaymentMethodUpdate = Stripe_.BillingPortal.Configuration.Features.PaymentMethodUpdate; + export type SubscriptionCancel = Stripe_.BillingPortal.Configuration.Features.SubscriptionCancel; + export type SubscriptionUpdate = Stripe_.BillingPortal.Configuration.Features.SubscriptionUpdate; + export namespace CustomerUpdate { + export type AllowedUpdate = Stripe_.BillingPortal.Configuration.Features.CustomerUpdate.AllowedUpdate; + } + export namespace SubscriptionCancel { + export type CancellationReason = Stripe_.BillingPortal.Configuration.Features.SubscriptionCancel.CancellationReason; + export type Mode = Stripe_.BillingPortal.Configuration.Features.SubscriptionCancel.Mode; + export type ProrationBehavior = Stripe_.BillingPortal.Configuration.Features.SubscriptionCancel.ProrationBehavior; + export namespace CancellationReason { + export type Option = Stripe_.BillingPortal.Configuration.Features.SubscriptionCancel.CancellationReason.Option; + } + } + export namespace SubscriptionUpdate { + export type BillingCycleAnchor = Stripe_.BillingPortal.Configuration.Features.SubscriptionUpdate.BillingCycleAnchor; + export type DefaultAllowedUpdate = Stripe_.BillingPortal.Configuration.Features.SubscriptionUpdate.DefaultAllowedUpdate; + export type Product = Stripe_.BillingPortal.Configuration.Features.SubscriptionUpdate.Product; + export type ProrationBehavior = Stripe_.BillingPortal.Configuration.Features.SubscriptionUpdate.ProrationBehavior; + export type ScheduleAtPeriodEnd = Stripe_.BillingPortal.Configuration.Features.SubscriptionUpdate.ScheduleAtPeriodEnd; + export type TrialUpdateBehavior = Stripe_.BillingPortal.Configuration.Features.SubscriptionUpdate.TrialUpdateBehavior; + export namespace Product { + export type AdjustableQuantity = Stripe_.BillingPortal.Configuration.Features.SubscriptionUpdate.Product.AdjustableQuantity; + } + export namespace ScheduleAtPeriodEnd { + export type Condition = Stripe_.BillingPortal.Configuration.Features.SubscriptionUpdate.ScheduleAtPeriodEnd.Condition; + export namespace Condition { + export type Type = Stripe_.BillingPortal.Configuration.Features.SubscriptionUpdate.ScheduleAtPeriodEnd.Condition.Type; + } + } + } + } + } + export namespace SessionCreateParams { + export type FlowData = Stripe_.BillingPortal.SessionCreateParams.FlowData; + export type Locale = Stripe_.BillingPortal.SessionCreateParams.Locale; + export namespace FlowData { + export type AfterCompletion = Stripe_.BillingPortal.SessionCreateParams.FlowData.AfterCompletion; + export type SubscriptionCancel = Stripe_.BillingPortal.SessionCreateParams.FlowData.SubscriptionCancel; + export type SubscriptionUpdate = Stripe_.BillingPortal.SessionCreateParams.FlowData.SubscriptionUpdate; + export type SubscriptionUpdateConfirm = Stripe_.BillingPortal.SessionCreateParams.FlowData.SubscriptionUpdateConfirm; + export type Type = Stripe_.BillingPortal.SessionCreateParams.FlowData.Type; + export namespace AfterCompletion { + export type HostedConfirmation = Stripe_.BillingPortal.SessionCreateParams.FlowData.AfterCompletion.HostedConfirmation; + export type Redirect = Stripe_.BillingPortal.SessionCreateParams.FlowData.AfterCompletion.Redirect; + export type Type = Stripe_.BillingPortal.SessionCreateParams.FlowData.AfterCompletion.Type; + } + export namespace SubscriptionCancel { + export type Retention = Stripe_.BillingPortal.SessionCreateParams.FlowData.SubscriptionCancel.Retention; + export namespace Retention { + export type CouponOffer = Stripe_.BillingPortal.SessionCreateParams.FlowData.SubscriptionCancel.Retention.CouponOffer; + } + } + export namespace SubscriptionUpdateConfirm { + export type Discount = Stripe_.BillingPortal.SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Discount; + export type Item = Stripe_.BillingPortal.SessionCreateParams.FlowData.SubscriptionUpdateConfirm.Item; + } + } + } + export namespace Session { + export type Flow = Stripe_.BillingPortal.Session.Flow; + export type Locale = Stripe_.BillingPortal.Session.Locale; + export namespace Flow { + export type AfterCompletion = Stripe_.BillingPortal.Session.Flow.AfterCompletion; + export type SubscriptionCancel = Stripe_.BillingPortal.Session.Flow.SubscriptionCancel; + export type SubscriptionUpdate = Stripe_.BillingPortal.Session.Flow.SubscriptionUpdate; + export type SubscriptionUpdateConfirm = Stripe_.BillingPortal.Session.Flow.SubscriptionUpdateConfirm; + export type Type = Stripe_.BillingPortal.Session.Flow.Type; + export namespace AfterCompletion { + export type HostedConfirmation = Stripe_.BillingPortal.Session.Flow.AfterCompletion.HostedConfirmation; + export type Redirect = Stripe_.BillingPortal.Session.Flow.AfterCompletion.Redirect; + export type Type = Stripe_.BillingPortal.Session.Flow.AfterCompletion.Type; + } + export namespace SubscriptionCancel { + export type Retention = Stripe_.BillingPortal.Session.Flow.SubscriptionCancel.Retention; + export namespace Retention { + export type CouponOffer = Stripe_.BillingPortal.Session.Flow.SubscriptionCancel.Retention.CouponOffer; + } + } + export namespace SubscriptionUpdateConfirm { + export type Discount = Stripe_.BillingPortal.Session.Flow.SubscriptionUpdateConfirm.Discount; + export type Item = Stripe_.BillingPortal.Session.Flow.SubscriptionUpdateConfirm.Item; + } + } + } + } + export namespace Capital { + export type FinancingOffer = Stripe_.Capital.FinancingOffer; + export type FinancingOfferRetrieveParams = Stripe_.Capital.FinancingOfferRetrieveParams; + export type FinancingOfferListParams = Stripe_.Capital.FinancingOfferListParams; + export type FinancingOfferMarkDeliveredParams = Stripe_.Capital.FinancingOfferMarkDeliveredParams; + export type FinancingOfferResource = Stripe_.Capital.FinancingOfferResource; + export type FinancingSummary = Stripe_.Capital.FinancingSummary; + export type FinancingSummaryRetrieveParams = Stripe_.Capital.FinancingSummaryRetrieveParams; + export type FinancingSummaryResource = Stripe_.Capital.FinancingSummaryResource; + export type FinancingTransaction = Stripe_.Capital.FinancingTransaction; + export type FinancingTransactionRetrieveParams = Stripe_.Capital.FinancingTransactionRetrieveParams; + export type FinancingTransactionListParams = Stripe_.Capital.FinancingTransactionListParams; + export type FinancingTransactionResource = Stripe_.Capital.FinancingTransactionResource; + export namespace FinancingOffer { + export type AcceptedTerms = Stripe_.Capital.FinancingOffer.AcceptedTerms; + export type FinancingType = Stripe_.Capital.FinancingOffer.FinancingType; + export type OfferedTerms = Stripe_.Capital.FinancingOffer.OfferedTerms; + export type ProductType = Stripe_.Capital.FinancingOffer.ProductType; + export type Status = Stripe_.Capital.FinancingOffer.Status; + export type Type = Stripe_.Capital.FinancingOffer.Type; + export namespace OfferedTerms { + export type CampaignType = Stripe_.Capital.FinancingOffer.OfferedTerms.CampaignType; + } + } + export namespace FinancingSummary { + export type Details = Stripe_.Capital.FinancingSummary.Details; + export type Status = Stripe_.Capital.FinancingSummary.Status; + export namespace Details { + export type CurrentRepaymentInterval = Stripe_.Capital.FinancingSummary.Details.CurrentRepaymentInterval; + } + } + export namespace FinancingTransaction { + export type Details = Stripe_.Capital.FinancingTransaction.Details; + export type Type = Stripe_.Capital.FinancingTransaction.Type; + export namespace Details { + export type Reason = Stripe_.Capital.FinancingTransaction.Details.Reason; + export type Transaction = Stripe_.Capital.FinancingTransaction.Details.Transaction; + } + } + } + export namespace Checkout { + export type Session = Stripe_.Checkout.Session; + export type SessionCreateParams = Stripe_.Checkout.SessionCreateParams; + export type SessionRetrieveParams = Stripe_.Checkout.SessionRetrieveParams; + export type SessionUpdateParams = Stripe_.Checkout.SessionUpdateParams; + export type SessionListParams = Stripe_.Checkout.SessionListParams; + export type SessionExpireParams = Stripe_.Checkout.SessionExpireParams; + export type SessionListLineItemsParams = Stripe_.Checkout.SessionListLineItemsParams; + export type SessionResource = Stripe_.Checkout.SessionResource; + export namespace SessionCreateParams { + export type AdaptivePricing = Stripe_.Checkout.SessionCreateParams.AdaptivePricing; + export type AfterExpiration = Stripe_.Checkout.SessionCreateParams.AfterExpiration; + export type AutomaticTax = Stripe_.Checkout.SessionCreateParams.AutomaticTax; + export type BillingAddressCollection = Stripe_.Checkout.SessionCreateParams.BillingAddressCollection; + export type BrandingSettings = Stripe_.Checkout.SessionCreateParams.BrandingSettings; + export type ConsentCollection = Stripe_.Checkout.SessionCreateParams.ConsentCollection; + export type CustomField = Stripe_.Checkout.SessionCreateParams.CustomField; + export type CustomText = Stripe_.Checkout.SessionCreateParams.CustomText; + export type CustomerCreation = Stripe_.Checkout.SessionCreateParams.CustomerCreation; + export type CustomerUpdate = Stripe_.Checkout.SessionCreateParams.CustomerUpdate; + export type Discount = Stripe_.Checkout.SessionCreateParams.Discount; + export type ExcludedPaymentMethodType = Stripe_.Checkout.SessionCreateParams.ExcludedPaymentMethodType; + export type InvoiceCreation = Stripe_.Checkout.SessionCreateParams.InvoiceCreation; + export type LineItem = Stripe_.Checkout.SessionCreateParams.LineItem; + export type Locale = Stripe_.Checkout.SessionCreateParams.Locale; + export type ManagedPayments = Stripe_.Checkout.SessionCreateParams.ManagedPayments; + export type Mode = Stripe_.Checkout.SessionCreateParams.Mode; + export type NameCollection = Stripe_.Checkout.SessionCreateParams.NameCollection; + export type OptionalItem = Stripe_.Checkout.SessionCreateParams.OptionalItem; + export type OriginContext = Stripe_.Checkout.SessionCreateParams.OriginContext; + export type PaymentIntentData = Stripe_.Checkout.SessionCreateParams.PaymentIntentData; + export type PaymentMethodCollection = Stripe_.Checkout.SessionCreateParams.PaymentMethodCollection; + export type PaymentMethodData = Stripe_.Checkout.SessionCreateParams.PaymentMethodData; + export type PaymentMethodOptions = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions; + export type PaymentMethodType = Stripe_.Checkout.SessionCreateParams.PaymentMethodType; + export type Permissions = Stripe_.Checkout.SessionCreateParams.Permissions; + export type PhoneNumberCollection = Stripe_.Checkout.SessionCreateParams.PhoneNumberCollection; + export type RedirectOnCompletion = Stripe_.Checkout.SessionCreateParams.RedirectOnCompletion; + export type SavedPaymentMethodOptions = Stripe_.Checkout.SessionCreateParams.SavedPaymentMethodOptions; + export type SetupIntentData = Stripe_.Checkout.SessionCreateParams.SetupIntentData; + export type ShippingAddressCollection = Stripe_.Checkout.SessionCreateParams.ShippingAddressCollection; + export type ShippingOption = Stripe_.Checkout.SessionCreateParams.ShippingOption; + export type SubmitType = Stripe_.Checkout.SessionCreateParams.SubmitType; + export type SubscriptionData = Stripe_.Checkout.SessionCreateParams.SubscriptionData; + export type TaxIdCollection = Stripe_.Checkout.SessionCreateParams.TaxIdCollection; + export type UiMode = Stripe_.Checkout.SessionCreateParams.UiMode; + export type WalletOptions = Stripe_.Checkout.SessionCreateParams.WalletOptions; + export namespace AfterExpiration { + export type Recovery = Stripe_.Checkout.SessionCreateParams.AfterExpiration.Recovery; + } + export namespace AutomaticTax { + export type Liability = Stripe_.Checkout.SessionCreateParams.AutomaticTax.Liability; + export namespace Liability { + export type Type = Stripe_.Checkout.SessionCreateParams.AutomaticTax.Liability.Type; + } + } + export namespace BrandingSettings { + export type BorderStyle = Stripe_.Checkout.SessionCreateParams.BrandingSettings.BorderStyle; + export type FontFamily = Stripe_.Checkout.SessionCreateParams.BrandingSettings.FontFamily; + export type Icon = Stripe_.Checkout.SessionCreateParams.BrandingSettings.Icon; + export type Logo = Stripe_.Checkout.SessionCreateParams.BrandingSettings.Logo; + export namespace Icon { + export type Type = Stripe_.Checkout.SessionCreateParams.BrandingSettings.Icon.Type; + } + export namespace Logo { + export type Type = Stripe_.Checkout.SessionCreateParams.BrandingSettings.Logo.Type; + } + } + export namespace ConsentCollection { + export type PaymentMethodReuseAgreement = Stripe_.Checkout.SessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement; + export type Promotions = Stripe_.Checkout.SessionCreateParams.ConsentCollection.Promotions; + export type TermsOfService = Stripe_.Checkout.SessionCreateParams.ConsentCollection.TermsOfService; + export namespace PaymentMethodReuseAgreement { + export type Position = Stripe_.Checkout.SessionCreateParams.ConsentCollection.PaymentMethodReuseAgreement.Position; + } + } + export namespace CustomerUpdate { + export type Address = Stripe_.Checkout.SessionCreateParams.CustomerUpdate.Address; + export type Name = Stripe_.Checkout.SessionCreateParams.CustomerUpdate.Name; + export type Shipping = Stripe_.Checkout.SessionCreateParams.CustomerUpdate.Shipping; + } + export namespace CustomField { + export type Dropdown = Stripe_.Checkout.SessionCreateParams.CustomField.Dropdown; + export type Label = Stripe_.Checkout.SessionCreateParams.CustomField.Label; + export type Numeric = Stripe_.Checkout.SessionCreateParams.CustomField.Numeric; + export type Text = Stripe_.Checkout.SessionCreateParams.CustomField.Text; + export type Type = Stripe_.Checkout.SessionCreateParams.CustomField.Type; + export namespace Dropdown { + export type Option = Stripe_.Checkout.SessionCreateParams.CustomField.Dropdown.Option; + } + } + export namespace CustomText { + export type AfterSubmit = Stripe_.Checkout.SessionCreateParams.CustomText.AfterSubmit; + export type ShippingAddress = Stripe_.Checkout.SessionCreateParams.CustomText.ShippingAddress; + export type Submit = Stripe_.Checkout.SessionCreateParams.CustomText.Submit; + export type TermsOfServiceAcceptance = Stripe_.Checkout.SessionCreateParams.CustomText.TermsOfServiceAcceptance; + } + export namespace Discount { + export type CouponData = Stripe_.Checkout.SessionCreateParams.Discount.CouponData; + export namespace CouponData { + export type Duration = Stripe_.Checkout.SessionCreateParams.Discount.CouponData.Duration; + } + } + export namespace InvoiceCreation { + export type InvoiceData = Stripe_.Checkout.SessionCreateParams.InvoiceCreation.InvoiceData; + export namespace InvoiceData { + export type CustomField = Stripe_.Checkout.SessionCreateParams.InvoiceCreation.InvoiceData.CustomField; + export type Issuer = Stripe_.Checkout.SessionCreateParams.InvoiceCreation.InvoiceData.Issuer; + export type RenderingOptions = Stripe_.Checkout.SessionCreateParams.InvoiceCreation.InvoiceData.RenderingOptions; + export namespace Issuer { + export type Type = Stripe_.Checkout.SessionCreateParams.InvoiceCreation.InvoiceData.Issuer.Type; + } + export namespace RenderingOptions { + export type AmountTaxDisplay = Stripe_.Checkout.SessionCreateParams.InvoiceCreation.InvoiceData.RenderingOptions.AmountTaxDisplay; + } + } + } + export namespace LineItem { + export type AdjustableQuantity = Stripe_.Checkout.SessionCreateParams.LineItem.AdjustableQuantity; + export type PriceData = Stripe_.Checkout.SessionCreateParams.LineItem.PriceData; + export namespace PriceData { + export type ProductData = Stripe_.Checkout.SessionCreateParams.LineItem.PriceData.ProductData; + export type Recurring = Stripe_.Checkout.SessionCreateParams.LineItem.PriceData.Recurring; + export type TaxBehavior = Stripe_.Checkout.SessionCreateParams.LineItem.PriceData.TaxBehavior; + export namespace ProductData { + export type TaxDetails = Stripe_.Checkout.SessionCreateParams.LineItem.PriceData.ProductData.TaxDetails; + } + export namespace Recurring { + export type Interval = Stripe_.Checkout.SessionCreateParams.LineItem.PriceData.Recurring.Interval; + } + } + } + export namespace NameCollection { + export type Business = Stripe_.Checkout.SessionCreateParams.NameCollection.Business; + export type Individual = Stripe_.Checkout.SessionCreateParams.NameCollection.Individual; + } + export namespace OptionalItem { + export type AdjustableQuantity = Stripe_.Checkout.SessionCreateParams.OptionalItem.AdjustableQuantity; + } + export namespace PaymentIntentData { + export type CaptureMethod = Stripe_.Checkout.SessionCreateParams.PaymentIntentData.CaptureMethod; + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentIntentData.SetupFutureUsage; + export type Shipping = Stripe_.Checkout.SessionCreateParams.PaymentIntentData.Shipping; + export type TransferData = Stripe_.Checkout.SessionCreateParams.PaymentIntentData.TransferData; + } + export namespace PaymentMethodData { + export type AllowRedisplay = Stripe_.Checkout.SessionCreateParams.PaymentMethodData.AllowRedisplay; + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.AcssDebit; + export type Affirm = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Affirm; + export type AfterpayClearpay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.AfterpayClearpay; + export type Alipay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Alipay; + export type Alma = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Alma; + export type AmazonPay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.AmazonPay; + export type AuBecsDebit = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.AuBecsDebit; + export type BacsDebit = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.BacsDebit; + export type Bancontact = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Bancontact; + export type Billie = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Billie; + export type Blik = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Blik; + export type Boleto = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Boleto; + export type Card = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Card; + export type Cashapp = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Cashapp; + export type Crypto = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Crypto; + export type CustomerBalance = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.CustomerBalance; + export type DemoPay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.DemoPay; + export type Eps = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Eps; + export type Fpx = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Fpx; + export type Giropay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Giropay; + export type Grabpay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Grabpay; + export type Ideal = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Ideal; + export type KakaoPay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.KakaoPay; + export type Klarna = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Klarna; + export type Konbini = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Konbini; + export type KrCard = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.KrCard; + export type Link = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Link; + export type Mobilepay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Mobilepay; + export type Multibanco = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Multibanco; + export type NaverPay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.NaverPay; + export type Oxxo = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Oxxo; + export type P24 = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.P24; + export type PayByBank = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.PayByBank; + export type Payco = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Payco; + export type Paynow = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Paynow; + export type Paypal = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Paypal; + export type Payto = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Payto; + export type Pix = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Pix; + export type RevolutPay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.RevolutPay; + export type SamsungPay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.SamsungPay; + export type Satispay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Satispay; + export type Scalapay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Scalapay; + export type SepaDebit = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.SepaDebit; + export type Sofort = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Sofort; + export type Swish = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Swish; + export type Twint = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Twint; + export type Upi = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.UsBankAccount; + export type WechatPay = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.WechatPay; + export namespace AcssDebit { + export type Currency = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.AcssDebit.Currency; + export type MandateOptions = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.AcssDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.AcssDebit.SetupFutureUsage; + export type VerificationMethod = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type DefaultFor = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.AcssDebit.MandateOptions.DefaultFor; + export type PaymentSchedule = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.AcssDebit.MandateOptions.PaymentSchedule; + export type TransactionType = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace AmazonPay { + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.AmazonPay.SetupFutureUsage; + } + export namespace BacsDebit { + export type MandateOptions = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.BacsDebit.SetupFutureUsage; + } + export namespace Blik { + export type MandateOptions = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Blik.MandateOptions; + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Blik.SetupFutureUsage; + } + export namespace Boleto { + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Boleto.SetupFutureUsage; + } + export namespace Card { + export type Installments = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Card.Installments; + export type RequestDecrementalAuthorization = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Card.RequestDecrementalAuthorization; + export type RequestExtendedAuthorization = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Card.RequestExtendedAuthorization; + export type RequestIncrementalAuthorization = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Card.RequestIncrementalAuthorization; + export type RequestMulticapture = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Card.RequestMulticapture; + export type RequestOvercapture = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Card.RequestOvercapture; + export type RequestThreeDSecure = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Card.RequestThreeDSecure; + export type Restrictions = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Card.Restrictions; + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Card.SetupFutureUsage; + export namespace Restrictions { + export type BrandsBlocked = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Card.Restrictions.BrandsBlocked; + } + } + export namespace Cashapp { + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Cashapp.SetupFutureUsage; + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export type RequestedAddressType = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.CustomerBalance.BankTransfer.RequestedAddressType; + export type Type = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.CustomerBalance.BankTransfer.Type; + } + } + export namespace DemoPay { + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.DemoPay.SetupFutureUsage; + } + export namespace KakaoPay { + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.KakaoPay.SetupFutureUsage; + } + export namespace Klarna { + export type Subscription = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Klarna.Subscription; + export namespace Subscription { + export type Interval = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Klarna.Subscription.Interval; + export type NextBilling = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Klarna.Subscription.NextBilling; + } + } + export namespace KrCard { + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.KrCard.SetupFutureUsage; + } + export namespace Link { + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Link.SetupFutureUsage; + } + export namespace NaverPay { + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.NaverPay.SetupFutureUsage; + } + export namespace Paypal { + export type PreferredLocale = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Paypal.PreferredLocale; + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Paypal.SetupFutureUsage; + } + export namespace Payto { + export type MandateOptions = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions; + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Payto.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule; + export type Purpose = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type AmountIncludesIof = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Pix.AmountIncludesIof; + export type MandateOptions = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Pix.MandateOptions; + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Pix.SetupFutureUsage; + export namespace MandateOptions { + export type AmountIncludesIof = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Pix.MandateOptions.AmountIncludesIof; + export type AmountType = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Pix.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Pix.MandateOptions.PaymentSchedule; + } + } + export namespace RevolutPay { + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.RevolutPay.SetupFutureUsage; + } + export namespace SepaDebit { + export type MandateOptions = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.SepaDebit.SetupFutureUsage; + } + export namespace Twint { + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Twint.SetupFutureUsage; + } + export namespace Upi { + export type MandateOptions = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Upi.MandateOptions; + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Upi.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type SetupFutureUsage = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.UsBankAccount.SetupFutureUsage; + export type VerificationMethod = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Permission = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + } + } + export namespace WechatPay { + export type Client = Stripe_.Checkout.SessionCreateParams.PaymentMethodOptions.WechatPay.Client; + } + } + export namespace Permissions { + export type Update = Stripe_.Checkout.SessionCreateParams.Permissions.Update; + export type UpdateDiscounts = Stripe_.Checkout.SessionCreateParams.Permissions.UpdateDiscounts; + export type UpdateLineItems = Stripe_.Checkout.SessionCreateParams.Permissions.UpdateLineItems; + export type UpdateShippingDetails = Stripe_.Checkout.SessionCreateParams.Permissions.UpdateShippingDetails; + export namespace Update { + export type LineItems = Stripe_.Checkout.SessionCreateParams.Permissions.Update.LineItems; + export type ShippingDetails = Stripe_.Checkout.SessionCreateParams.Permissions.Update.ShippingDetails; + } + } + export namespace SavedPaymentMethodOptions { + export type AllowRedisplayFilter = Stripe_.Checkout.SessionCreateParams.SavedPaymentMethodOptions.AllowRedisplayFilter; + export type PaymentMethodRemove = Stripe_.Checkout.SessionCreateParams.SavedPaymentMethodOptions.PaymentMethodRemove; + export type PaymentMethodSave = Stripe_.Checkout.SessionCreateParams.SavedPaymentMethodOptions.PaymentMethodSave; + } + export namespace ShippingAddressCollection { + export type AllowedCountry = Stripe_.Checkout.SessionCreateParams.ShippingAddressCollection.AllowedCountry; + } + export namespace ShippingOption { + export type ShippingRateData = Stripe_.Checkout.SessionCreateParams.ShippingOption.ShippingRateData; + export namespace ShippingRateData { + export type DeliveryEstimate = Stripe_.Checkout.SessionCreateParams.ShippingOption.ShippingRateData.DeliveryEstimate; + export type FixedAmount = Stripe_.Checkout.SessionCreateParams.ShippingOption.ShippingRateData.FixedAmount; + export type TaxBehavior = Stripe_.Checkout.SessionCreateParams.ShippingOption.ShippingRateData.TaxBehavior; + export namespace DeliveryEstimate { + export type Maximum = Stripe_.Checkout.SessionCreateParams.ShippingOption.ShippingRateData.DeliveryEstimate.Maximum; + export type Minimum = Stripe_.Checkout.SessionCreateParams.ShippingOption.ShippingRateData.DeliveryEstimate.Minimum; + export namespace Maximum { + export type Unit = Stripe_.Checkout.SessionCreateParams.ShippingOption.ShippingRateData.DeliveryEstimate.Maximum.Unit; + } + export namespace Minimum { + export type Unit = Stripe_.Checkout.SessionCreateParams.ShippingOption.ShippingRateData.DeliveryEstimate.Minimum.Unit; + } + } + export namespace FixedAmount { + export type CurrencyOptions = Stripe_.Checkout.SessionCreateParams.ShippingOption.ShippingRateData.FixedAmount.CurrencyOptions; + export namespace CurrencyOptions { + export type TaxBehavior = Stripe_.Checkout.SessionCreateParams.ShippingOption.ShippingRateData.FixedAmount.CurrencyOptions.TaxBehavior; + } + } + } + } + export namespace SubscriptionData { + export type BillingMode = Stripe_.Checkout.SessionCreateParams.SubscriptionData.BillingMode; + export type InvoiceSettings = Stripe_.Checkout.SessionCreateParams.SubscriptionData.InvoiceSettings; + export type PendingInvoiceItemInterval = Stripe_.Checkout.SessionCreateParams.SubscriptionData.PendingInvoiceItemInterval; + export type ProrationBehavior = Stripe_.Checkout.SessionCreateParams.SubscriptionData.ProrationBehavior; + export type TransferData = Stripe_.Checkout.SessionCreateParams.SubscriptionData.TransferData; + export type TrialSettings = Stripe_.Checkout.SessionCreateParams.SubscriptionData.TrialSettings; + export namespace BillingMode { + export type Flexible = Stripe_.Checkout.SessionCreateParams.SubscriptionData.BillingMode.Flexible; + export type Type = Stripe_.Checkout.SessionCreateParams.SubscriptionData.BillingMode.Type; + export namespace Flexible { + export type ProrationDiscounts = Stripe_.Checkout.SessionCreateParams.SubscriptionData.BillingMode.Flexible.ProrationDiscounts; + } + } + export namespace InvoiceSettings { + export type Issuer = Stripe_.Checkout.SessionCreateParams.SubscriptionData.InvoiceSettings.Issuer; + export namespace Issuer { + export type Type = Stripe_.Checkout.SessionCreateParams.SubscriptionData.InvoiceSettings.Issuer.Type; + } + } + export namespace PendingInvoiceItemInterval { + export type Interval = Stripe_.Checkout.SessionCreateParams.SubscriptionData.PendingInvoiceItemInterval.Interval; + } + export namespace TrialSettings { + export type EndBehavior = Stripe_.Checkout.SessionCreateParams.SubscriptionData.TrialSettings.EndBehavior; + export namespace EndBehavior { + export type MissingPaymentMethod = Stripe_.Checkout.SessionCreateParams.SubscriptionData.TrialSettings.EndBehavior.MissingPaymentMethod; + } + } + } + export namespace TaxIdCollection { + export type Required = Stripe_.Checkout.SessionCreateParams.TaxIdCollection.Required; + } + export namespace WalletOptions { + export type Link = Stripe_.Checkout.SessionCreateParams.WalletOptions.Link; + export namespace Link { + export type Display = Stripe_.Checkout.SessionCreateParams.WalletOptions.Link.Display; + } + } + } + export namespace Session { + export type AdaptivePricing = Stripe_.Checkout.Session.AdaptivePricing; + export type AfterExpiration = Stripe_.Checkout.Session.AfterExpiration; + export type AutomaticTax = Stripe_.Checkout.Session.AutomaticTax; + export type BillingAddressCollection = Stripe_.Checkout.Session.BillingAddressCollection; + export type BrandingSettings = Stripe_.Checkout.Session.BrandingSettings; + export type CollectedInformation = Stripe_.Checkout.Session.CollectedInformation; + export type Consent = Stripe_.Checkout.Session.Consent; + export type ConsentCollection = Stripe_.Checkout.Session.ConsentCollection; + export type CurrencyConversion = Stripe_.Checkout.Session.CurrencyConversion; + export type CustomField = Stripe_.Checkout.Session.CustomField; + export type CustomText = Stripe_.Checkout.Session.CustomText; + export type CustomerCreation = Stripe_.Checkout.Session.CustomerCreation; + export type CustomerDetails = Stripe_.Checkout.Session.CustomerDetails; + export type Discount = Stripe_.Checkout.Session.Discount; + export type InvoiceCreation = Stripe_.Checkout.Session.InvoiceCreation; + export type Locale = Stripe_.Checkout.Session.Locale; + export type ManagedPayments = Stripe_.Checkout.Session.ManagedPayments; + export type Mode = Stripe_.Checkout.Session.Mode; + export type NameCollection = Stripe_.Checkout.Session.NameCollection; + export type OptionalItem = Stripe_.Checkout.Session.OptionalItem; + export type OriginContext = Stripe_.Checkout.Session.OriginContext; + export type PaymentMethodCollection = Stripe_.Checkout.Session.PaymentMethodCollection; + export type PaymentMethodConfigurationDetails = Stripe_.Checkout.Session.PaymentMethodConfigurationDetails; + export type PaymentMethodOptions = Stripe_.Checkout.Session.PaymentMethodOptions; + export type PaymentStatus = Stripe_.Checkout.Session.PaymentStatus; + export type Permissions = Stripe_.Checkout.Session.Permissions; + export type PhoneNumberCollection = Stripe_.Checkout.Session.PhoneNumberCollection; + export type PresentmentDetails = Stripe_.Checkout.Session.PresentmentDetails; + export type RedirectOnCompletion = Stripe_.Checkout.Session.RedirectOnCompletion; + export type SavedPaymentMethodOptions = Stripe_.Checkout.Session.SavedPaymentMethodOptions; + export type ShippingAddressCollection = Stripe_.Checkout.Session.ShippingAddressCollection; + export type ShippingCost = Stripe_.Checkout.Session.ShippingCost; + export type ShippingOption = Stripe_.Checkout.Session.ShippingOption; + export type Status = Stripe_.Checkout.Session.Status; + export type SubmitType = Stripe_.Checkout.Session.SubmitType; + export type TaxIdCollection = Stripe_.Checkout.Session.TaxIdCollection; + export type TotalDetails = Stripe_.Checkout.Session.TotalDetails; + export type UiMode = Stripe_.Checkout.Session.UiMode; + export type WalletOptions = Stripe_.Checkout.Session.WalletOptions; + export namespace AfterExpiration { + export type Recovery = Stripe_.Checkout.Session.AfterExpiration.Recovery; + } + export namespace AutomaticTax { + export type Liability = Stripe_.Checkout.Session.AutomaticTax.Liability; + export type Status = Stripe_.Checkout.Session.AutomaticTax.Status; + export namespace Liability { + export type Type = Stripe_.Checkout.Session.AutomaticTax.Liability.Type; + } + } + export namespace BrandingSettings { + export type BorderStyle = Stripe_.Checkout.Session.BrandingSettings.BorderStyle; + export type Icon = Stripe_.Checkout.Session.BrandingSettings.Icon; + export type Logo = Stripe_.Checkout.Session.BrandingSettings.Logo; + export namespace Icon { + export type Type = Stripe_.Checkout.Session.BrandingSettings.Icon.Type; + } + export namespace Logo { + export type Type = Stripe_.Checkout.Session.BrandingSettings.Logo.Type; + } + } + export namespace CollectedInformation { + export type ShippingDetails = Stripe_.Checkout.Session.CollectedInformation.ShippingDetails; + export type TaxId = Stripe_.Checkout.Session.CollectedInformation.TaxId; + export namespace TaxId { + export type Type = Stripe_.Checkout.Session.CollectedInformation.TaxId.Type; + } + } + export namespace Consent { + export type Promotions = Stripe_.Checkout.Session.Consent.Promotions; + } + export namespace ConsentCollection { + export type PaymentMethodReuseAgreement = Stripe_.Checkout.Session.ConsentCollection.PaymentMethodReuseAgreement; + export type Promotions = Stripe_.Checkout.Session.ConsentCollection.Promotions; + export type TermsOfService = Stripe_.Checkout.Session.ConsentCollection.TermsOfService; + export namespace PaymentMethodReuseAgreement { + export type Position = Stripe_.Checkout.Session.ConsentCollection.PaymentMethodReuseAgreement.Position; + } + } + export namespace CustomerDetails { + export type TaxExempt = Stripe_.Checkout.Session.CustomerDetails.TaxExempt; + export type TaxId = Stripe_.Checkout.Session.CustomerDetails.TaxId; + export namespace TaxId { + export type Type = Stripe_.Checkout.Session.CustomerDetails.TaxId.Type; + } + } + export namespace CustomField { + export type Dropdown = Stripe_.Checkout.Session.CustomField.Dropdown; + export type Label = Stripe_.Checkout.Session.CustomField.Label; + export type Numeric = Stripe_.Checkout.Session.CustomField.Numeric; + export type Text = Stripe_.Checkout.Session.CustomField.Text; + export type Type = Stripe_.Checkout.Session.CustomField.Type; + export namespace Dropdown { + export type Option = Stripe_.Checkout.Session.CustomField.Dropdown.Option; + } + } + export namespace CustomText { + export type AfterSubmit = Stripe_.Checkout.Session.CustomText.AfterSubmit; + export type ShippingAddress = Stripe_.Checkout.Session.CustomText.ShippingAddress; + export type Submit = Stripe_.Checkout.Session.CustomText.Submit; + export type TermsOfServiceAcceptance = Stripe_.Checkout.Session.CustomText.TermsOfServiceAcceptance; + } + export namespace InvoiceCreation { + export type InvoiceData = Stripe_.Checkout.Session.InvoiceCreation.InvoiceData; + export namespace InvoiceData { + export type CustomField = Stripe_.Checkout.Session.InvoiceCreation.InvoiceData.CustomField; + export type Issuer = Stripe_.Checkout.Session.InvoiceCreation.InvoiceData.Issuer; + export type RenderingOptions = Stripe_.Checkout.Session.InvoiceCreation.InvoiceData.RenderingOptions; + export namespace Issuer { + export type Type = Stripe_.Checkout.Session.InvoiceCreation.InvoiceData.Issuer.Type; + } + } + } + export namespace NameCollection { + export type Business = Stripe_.Checkout.Session.NameCollection.Business; + export type Individual = Stripe_.Checkout.Session.NameCollection.Individual; + } + export namespace OptionalItem { + export type AdjustableQuantity = Stripe_.Checkout.Session.OptionalItem.AdjustableQuantity; + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.Checkout.Session.PaymentMethodOptions.AcssDebit; + export type Affirm = Stripe_.Checkout.Session.PaymentMethodOptions.Affirm; + export type AfterpayClearpay = Stripe_.Checkout.Session.PaymentMethodOptions.AfterpayClearpay; + export type Alipay = Stripe_.Checkout.Session.PaymentMethodOptions.Alipay; + export type Alma = Stripe_.Checkout.Session.PaymentMethodOptions.Alma; + export type AmazonPay = Stripe_.Checkout.Session.PaymentMethodOptions.AmazonPay; + export type AuBecsDebit = Stripe_.Checkout.Session.PaymentMethodOptions.AuBecsDebit; + export type BacsDebit = Stripe_.Checkout.Session.PaymentMethodOptions.BacsDebit; + export type Bancontact = Stripe_.Checkout.Session.PaymentMethodOptions.Bancontact; + export type Billie = Stripe_.Checkout.Session.PaymentMethodOptions.Billie; + export type Boleto = Stripe_.Checkout.Session.PaymentMethodOptions.Boleto; + export type Card = Stripe_.Checkout.Session.PaymentMethodOptions.Card; + export type Cashapp = Stripe_.Checkout.Session.PaymentMethodOptions.Cashapp; + export type CustomerBalance = Stripe_.Checkout.Session.PaymentMethodOptions.CustomerBalance; + export type Eps = Stripe_.Checkout.Session.PaymentMethodOptions.Eps; + export type Fpx = Stripe_.Checkout.Session.PaymentMethodOptions.Fpx; + export type Giropay = Stripe_.Checkout.Session.PaymentMethodOptions.Giropay; + export type Grabpay = Stripe_.Checkout.Session.PaymentMethodOptions.Grabpay; + export type Ideal = Stripe_.Checkout.Session.PaymentMethodOptions.Ideal; + export type KakaoPay = Stripe_.Checkout.Session.PaymentMethodOptions.KakaoPay; + export type Klarna = Stripe_.Checkout.Session.PaymentMethodOptions.Klarna; + export type Konbini = Stripe_.Checkout.Session.PaymentMethodOptions.Konbini; + export type KrCard = Stripe_.Checkout.Session.PaymentMethodOptions.KrCard; + export type Link = Stripe_.Checkout.Session.PaymentMethodOptions.Link; + export type Mobilepay = Stripe_.Checkout.Session.PaymentMethodOptions.Mobilepay; + export type Multibanco = Stripe_.Checkout.Session.PaymentMethodOptions.Multibanco; + export type NaverPay = Stripe_.Checkout.Session.PaymentMethodOptions.NaverPay; + export type Oxxo = Stripe_.Checkout.Session.PaymentMethodOptions.Oxxo; + export type P24 = Stripe_.Checkout.Session.PaymentMethodOptions.P24; + export type Payco = Stripe_.Checkout.Session.PaymentMethodOptions.Payco; + export type Paynow = Stripe_.Checkout.Session.PaymentMethodOptions.Paynow; + export type Paypal = Stripe_.Checkout.Session.PaymentMethodOptions.Paypal; + export type Payto = Stripe_.Checkout.Session.PaymentMethodOptions.Payto; + export type Pix = Stripe_.Checkout.Session.PaymentMethodOptions.Pix; + export type RevolutPay = Stripe_.Checkout.Session.PaymentMethodOptions.RevolutPay; + export type SamsungPay = Stripe_.Checkout.Session.PaymentMethodOptions.SamsungPay; + export type Satispay = Stripe_.Checkout.Session.PaymentMethodOptions.Satispay; + export type Scalapay = Stripe_.Checkout.Session.PaymentMethodOptions.Scalapay; + export type SepaDebit = Stripe_.Checkout.Session.PaymentMethodOptions.SepaDebit; + export type Sofort = Stripe_.Checkout.Session.PaymentMethodOptions.Sofort; + export type Swish = Stripe_.Checkout.Session.PaymentMethodOptions.Swish; + export type Twint = Stripe_.Checkout.Session.PaymentMethodOptions.Twint; + export type Upi = Stripe_.Checkout.Session.PaymentMethodOptions.Upi; + export type UsBankAccount = Stripe_.Checkout.Session.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type Currency = Stripe_.Checkout.Session.PaymentMethodOptions.AcssDebit.Currency; + export type MandateOptions = Stripe_.Checkout.Session.PaymentMethodOptions.AcssDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.AcssDebit.SetupFutureUsage; + export type VerificationMethod = Stripe_.Checkout.Session.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type DefaultFor = Stripe_.Checkout.Session.PaymentMethodOptions.AcssDebit.MandateOptions.DefaultFor; + export type PaymentSchedule = Stripe_.Checkout.Session.PaymentMethodOptions.AcssDebit.MandateOptions.PaymentSchedule; + export type TransactionType = Stripe_.Checkout.Session.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace AmazonPay { + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.AmazonPay.SetupFutureUsage; + } + export namespace BacsDebit { + export type MandateOptions = Stripe_.Checkout.Session.PaymentMethodOptions.BacsDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.BacsDebit.SetupFutureUsage; + } + export namespace Boleto { + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.Boleto.SetupFutureUsage; + } + export namespace Card { + export type Installments = Stripe_.Checkout.Session.PaymentMethodOptions.Card.Installments; + export type RequestDecrementalAuthorization = Stripe_.Checkout.Session.PaymentMethodOptions.Card.RequestDecrementalAuthorization; + export type RequestExtendedAuthorization = Stripe_.Checkout.Session.PaymentMethodOptions.Card.RequestExtendedAuthorization; + export type RequestIncrementalAuthorization = Stripe_.Checkout.Session.PaymentMethodOptions.Card.RequestIncrementalAuthorization; + export type RequestMulticapture = Stripe_.Checkout.Session.PaymentMethodOptions.Card.RequestMulticapture; + export type RequestOvercapture = Stripe_.Checkout.Session.PaymentMethodOptions.Card.RequestOvercapture; + export type RequestThreeDSecure = Stripe_.Checkout.Session.PaymentMethodOptions.Card.RequestThreeDSecure; + export type Restrictions = Stripe_.Checkout.Session.PaymentMethodOptions.Card.Restrictions; + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.Card.SetupFutureUsage; + export namespace Restrictions { + export type BrandsBlocked = Stripe_.Checkout.Session.PaymentMethodOptions.Card.Restrictions.BrandsBlocked; + } + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.Checkout.Session.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.Checkout.Session.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export type RequestedAddressType = Stripe_.Checkout.Session.PaymentMethodOptions.CustomerBalance.BankTransfer.RequestedAddressType; + export type Type = Stripe_.Checkout.Session.PaymentMethodOptions.CustomerBalance.BankTransfer.Type; + export namespace EuBankTransfer { + export type Country = Stripe_.Checkout.Session.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer.Country; + } + } + } + export namespace KakaoPay { + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.KakaoPay.SetupFutureUsage; + } + export namespace Klarna { + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.Klarna.SetupFutureUsage; + } + export namespace KrCard { + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.KrCard.SetupFutureUsage; + } + export namespace Link { + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.Link.SetupFutureUsage; + } + export namespace NaverPay { + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.NaverPay.SetupFutureUsage; + } + export namespace Paypal { + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.Paypal.SetupFutureUsage; + } + export namespace Payto { + export type MandateOptions = Stripe_.Checkout.Session.PaymentMethodOptions.Payto.MandateOptions; + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.Payto.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.Checkout.Session.PaymentMethodOptions.Payto.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.Checkout.Session.PaymentMethodOptions.Payto.MandateOptions.PaymentSchedule; + export type Purpose = Stripe_.Checkout.Session.PaymentMethodOptions.Payto.MandateOptions.Purpose; + } + } + export namespace Pix { + export type AmountIncludesIof = Stripe_.Checkout.Session.PaymentMethodOptions.Pix.AmountIncludesIof; + export type MandateOptions = Stripe_.Checkout.Session.PaymentMethodOptions.Pix.MandateOptions; + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.Pix.SetupFutureUsage; + export namespace MandateOptions { + export type AmountIncludesIof = Stripe_.Checkout.Session.PaymentMethodOptions.Pix.MandateOptions.AmountIncludesIof; + export type AmountType = Stripe_.Checkout.Session.PaymentMethodOptions.Pix.MandateOptions.AmountType; + export type PaymentSchedule = Stripe_.Checkout.Session.PaymentMethodOptions.Pix.MandateOptions.PaymentSchedule; + } + } + export namespace RevolutPay { + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.RevolutPay.SetupFutureUsage; + } + export namespace SepaDebit { + export type MandateOptions = Stripe_.Checkout.Session.PaymentMethodOptions.SepaDebit.MandateOptions; + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.SepaDebit.SetupFutureUsage; + } + export namespace Twint { + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.Twint.SetupFutureUsage; + } + export namespace Upi { + export type MandateOptions = Stripe_.Checkout.Session.PaymentMethodOptions.Upi.MandateOptions; + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.Upi.SetupFutureUsage; + export namespace MandateOptions { + export type AmountType = Stripe_.Checkout.Session.PaymentMethodOptions.Upi.MandateOptions.AmountType; + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.Checkout.Session.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type SetupFutureUsage = Stripe_.Checkout.Session.PaymentMethodOptions.UsBankAccount.SetupFutureUsage; + export type VerificationMethod = Stripe_.Checkout.Session.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.Checkout.Session.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type ManualEntry = Stripe_.Checkout.Session.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry; + export type Permission = Stripe_.Checkout.Session.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.Checkout.Session.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.Checkout.Session.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + export namespace ManualEntry { + export type Mode = Stripe_.Checkout.Session.PaymentMethodOptions.UsBankAccount.FinancialConnections.ManualEntry.Mode; + } + } + } + } + export namespace Permissions { + export type Update = Stripe_.Checkout.Session.Permissions.Update; + export type UpdateLineItems = Stripe_.Checkout.Session.Permissions.UpdateLineItems; + export type UpdateShippingDetails = Stripe_.Checkout.Session.Permissions.UpdateShippingDetails; + export namespace Update { + export type LineItems = Stripe_.Checkout.Session.Permissions.Update.LineItems; + export type ShippingDetails = Stripe_.Checkout.Session.Permissions.Update.ShippingDetails; + } + } + export namespace SavedPaymentMethodOptions { + export type AllowRedisplayFilter = Stripe_.Checkout.Session.SavedPaymentMethodOptions.AllowRedisplayFilter; + export type PaymentMethodRemove = Stripe_.Checkout.Session.SavedPaymentMethodOptions.PaymentMethodRemove; + export type PaymentMethodSave = Stripe_.Checkout.Session.SavedPaymentMethodOptions.PaymentMethodSave; + } + export namespace ShippingAddressCollection { + export type AllowedCountry = Stripe_.Checkout.Session.ShippingAddressCollection.AllowedCountry; + } + export namespace ShippingCost { + export type Tax = Stripe_.Checkout.Session.ShippingCost.Tax; + export namespace Tax { + export type TaxabilityReason = Stripe_.Checkout.Session.ShippingCost.Tax.TaxabilityReason; + } + } + export namespace TaxIdCollection { + export type Required = Stripe_.Checkout.Session.TaxIdCollection.Required; + } + export namespace TotalDetails { + export type Breakdown = Stripe_.Checkout.Session.TotalDetails.Breakdown; + export namespace Breakdown { + export type Discount = Stripe_.Checkout.Session.TotalDetails.Breakdown.Discount; + export type Tax = Stripe_.Checkout.Session.TotalDetails.Breakdown.Tax; + export namespace Tax { + export type TaxabilityReason = Stripe_.Checkout.Session.TotalDetails.Breakdown.Tax.TaxabilityReason; + } + } + } + export namespace WalletOptions { + export type Link = Stripe_.Checkout.Session.WalletOptions.Link; + export namespace Link { + export type Display = Stripe_.Checkout.Session.WalletOptions.Link.Display; + } } - } - } - export namespace BillingPortal { - export type Configuration = Stripe.BillingPortal.Configuration; - export type ConfigurationCreateParams = Stripe.BillingPortal.ConfigurationCreateParams; - export type ConfigurationRetrieveParams = Stripe.BillingPortal.ConfigurationRetrieveParams; - export type ConfigurationUpdateParams = Stripe.BillingPortal.ConfigurationUpdateParams; - export type ConfigurationListParams = Stripe.BillingPortal.ConfigurationListParams; - export type ConfigurationResource = Stripe.BillingPortal.ConfigurationResource; - export type Session = Stripe.BillingPortal.Session; - export type SessionCreateParams = Stripe.BillingPortal.SessionCreateParams; - export type SessionResource = Stripe.BillingPortal.SessionResource; - export namespace ConfigurationCreateParams { - export type Features = Stripe.BillingPortal.ConfigurationCreateParams.Features; - export type BusinessProfile = Stripe.BillingPortal.ConfigurationCreateParams.BusinessProfile; - export type LoginPage = Stripe.BillingPortal.ConfigurationCreateParams.LoginPage; - } - export namespace ConfigurationUpdateParams { - export type BusinessProfile = Stripe.BillingPortal.ConfigurationUpdateParams.BusinessProfile; - export type Features = Stripe.BillingPortal.ConfigurationUpdateParams.Features; - export type LoginPage = Stripe.BillingPortal.ConfigurationUpdateParams.LoginPage; - } - export namespace SessionCreateParams { - export type FlowData = Stripe.BillingPortal.SessionCreateParams.FlowData; - export type Locale = Stripe.BillingPortal.SessionCreateParams.Locale; - } - } - export namespace Capital { - export type FinancingOffer = Stripe.Capital.FinancingOffer; - export type FinancingOfferRetrieveParams = Stripe.Capital.FinancingOfferRetrieveParams; - export type FinancingOfferListParams = Stripe.Capital.FinancingOfferListParams; - export type FinancingOfferMarkDeliveredParams = Stripe.Capital.FinancingOfferMarkDeliveredParams; - export type FinancingOfferResource = Stripe.Capital.FinancingOfferResource; - export type FinancingSummary = Stripe.Capital.FinancingSummary; - export type FinancingSummaryRetrieveParams = Stripe.Capital.FinancingSummaryRetrieveParams; - export type FinancingSummaryResource = Stripe.Capital.FinancingSummaryResource; - export type FinancingTransaction = Stripe.Capital.FinancingTransaction; - export type FinancingTransactionRetrieveParams = Stripe.Capital.FinancingTransactionRetrieveParams; - export type FinancingTransactionListParams = Stripe.Capital.FinancingTransactionListParams; - export type FinancingTransactionResource = Stripe.Capital.FinancingTransactionResource; - export namespace FinancingOfferListParams { - export type Status = Stripe.Capital.FinancingOfferListParams.Status; - } - } - export namespace Checkout { - export type Session = Stripe.Checkout.Session; - export type SessionCreateParams = Stripe.Checkout.SessionCreateParams; - export type SessionRetrieveParams = Stripe.Checkout.SessionRetrieveParams; - export type SessionUpdateParams = Stripe.Checkout.SessionUpdateParams; - export type SessionListParams = Stripe.Checkout.SessionListParams; - export type SessionExpireParams = Stripe.Checkout.SessionExpireParams; - export type SessionListLineItemsParams = Stripe.Checkout.SessionListLineItemsParams; - export type SessionResource = Stripe.Checkout.SessionResource; - export namespace SessionCreateParams { - export type AdaptivePricing = Stripe.Checkout.SessionCreateParams.AdaptivePricing; - export type AfterExpiration = Stripe.Checkout.SessionCreateParams.AfterExpiration; - export type AutomaticTax = Stripe.Checkout.SessionCreateParams.AutomaticTax; - export type BillingAddressCollection = Stripe.Checkout.SessionCreateParams.BillingAddressCollection; - export type BrandingSettings = Stripe.Checkout.SessionCreateParams.BrandingSettings; - export type ConsentCollection = Stripe.Checkout.SessionCreateParams.ConsentCollection; - export type CustomField = Stripe.Checkout.SessionCreateParams.CustomField; - export type CustomText = Stripe.Checkout.SessionCreateParams.CustomText; - export type CustomerCreation = Stripe.Checkout.SessionCreateParams.CustomerCreation; - export type CustomerUpdate = Stripe.Checkout.SessionCreateParams.CustomerUpdate; - export type Discount = Stripe.Checkout.SessionCreateParams.Discount; - export type ExcludedPaymentMethodType = Stripe.Checkout.SessionCreateParams.ExcludedPaymentMethodType; - export type InvoiceCreation = Stripe.Checkout.SessionCreateParams.InvoiceCreation; - export type LineItem = Stripe.Checkout.SessionCreateParams.LineItem; - export type Locale = Stripe.Checkout.SessionCreateParams.Locale; - export type ManagedPayments = Stripe.Checkout.SessionCreateParams.ManagedPayments; - export type Mode = Stripe.Checkout.SessionCreateParams.Mode; - export type NameCollection = Stripe.Checkout.SessionCreateParams.NameCollection; - export type OptionalItem = Stripe.Checkout.SessionCreateParams.OptionalItem; - export type OriginContext = Stripe.Checkout.SessionCreateParams.OriginContext; - export type PaymentIntentData = Stripe.Checkout.SessionCreateParams.PaymentIntentData; - export type PaymentMethodCollection = Stripe.Checkout.SessionCreateParams.PaymentMethodCollection; - export type PaymentMethodData = Stripe.Checkout.SessionCreateParams.PaymentMethodData; - export type PaymentMethodOptions = Stripe.Checkout.SessionCreateParams.PaymentMethodOptions; - export type PaymentMethodType = Stripe.Checkout.SessionCreateParams.PaymentMethodType; - export type Permissions = Stripe.Checkout.SessionCreateParams.Permissions; - export type PhoneNumberCollection = Stripe.Checkout.SessionCreateParams.PhoneNumberCollection; - export type RedirectOnCompletion = Stripe.Checkout.SessionCreateParams.RedirectOnCompletion; - export type SavedPaymentMethodOptions = Stripe.Checkout.SessionCreateParams.SavedPaymentMethodOptions; - export type SetupIntentData = Stripe.Checkout.SessionCreateParams.SetupIntentData; - export type ShippingAddressCollection = Stripe.Checkout.SessionCreateParams.ShippingAddressCollection; - export type ShippingOption = Stripe.Checkout.SessionCreateParams.ShippingOption; - export type SubmitType = Stripe.Checkout.SessionCreateParams.SubmitType; - export type SubscriptionData = Stripe.Checkout.SessionCreateParams.SubscriptionData; - export type TaxIdCollection = Stripe.Checkout.SessionCreateParams.TaxIdCollection; - export type UiMode = Stripe.Checkout.SessionCreateParams.UiMode; - export type WalletOptions = Stripe.Checkout.SessionCreateParams.WalletOptions; - } - export namespace SessionUpdateParams { - export type AutomaticTax = Stripe.Checkout.SessionUpdateParams.AutomaticTax; - export type CollectedInformation = Stripe.Checkout.SessionUpdateParams.CollectedInformation; - export type Discount = Stripe.Checkout.SessionUpdateParams.Discount; - export type InvoiceCreation = Stripe.Checkout.SessionUpdateParams.InvoiceCreation; - export type LineItem = Stripe.Checkout.SessionUpdateParams.LineItem; - export type ShippingOption = Stripe.Checkout.SessionUpdateParams.ShippingOption; - export type SubscriptionData = Stripe.Checkout.SessionUpdateParams.SubscriptionData; - } - export namespace SessionListParams { - export type CustomerDetails = Stripe.Checkout.SessionListParams.CustomerDetails; - export type Status = Stripe.Checkout.SessionListParams.Status; } } export namespace Climate { - export type Order = Stripe.Climate.Order; - export type OrderCreateParams = Stripe.Climate.OrderCreateParams; - export type OrderRetrieveParams = Stripe.Climate.OrderRetrieveParams; - export type OrderUpdateParams = Stripe.Climate.OrderUpdateParams; - export type OrderListParams = Stripe.Climate.OrderListParams; - export type OrderCancelParams = Stripe.Climate.OrderCancelParams; - export type OrderResource = Stripe.Climate.OrderResource; - export type Product = Stripe.Climate.Product; - export type ProductRetrieveParams = Stripe.Climate.ProductRetrieveParams; - export type ProductListParams = Stripe.Climate.ProductListParams; - export type ProductResource = Stripe.Climate.ProductResource; - export type Supplier = Stripe.Climate.Supplier; - export type SupplierRetrieveParams = Stripe.Climate.SupplierRetrieveParams; - export type SupplierListParams = Stripe.Climate.SupplierListParams; - export type SupplierResource = Stripe.Climate.SupplierResource; + export type Order = Stripe_.Climate.Order; + export type OrderCreateParams = Stripe_.Climate.OrderCreateParams; + export type OrderRetrieveParams = Stripe_.Climate.OrderRetrieveParams; + export type OrderUpdateParams = Stripe_.Climate.OrderUpdateParams; + export type OrderListParams = Stripe_.Climate.OrderListParams; + export type OrderCancelParams = Stripe_.Climate.OrderCancelParams; + export type OrderResource = Stripe_.Climate.OrderResource; + export type Product = Stripe_.Climate.Product; + export type ProductRetrieveParams = Stripe_.Climate.ProductRetrieveParams; + export type ProductListParams = Stripe_.Climate.ProductListParams; + export type ProductResource = Stripe_.Climate.ProductResource; + export type Supplier = Stripe_.Climate.Supplier; + export type SupplierRetrieveParams = Stripe_.Climate.SupplierRetrieveParams; + export type SupplierListParams = Stripe_.Climate.SupplierListParams; + export type SupplierResource = Stripe_.Climate.SupplierResource; export namespace OrderCreateParams { - export type Beneficiary = Stripe.Climate.OrderCreateParams.Beneficiary; + export type Beneficiary = Stripe_.Climate.OrderCreateParams.Beneficiary; } - export namespace OrderUpdateParams { - export type Beneficiary = Stripe.Climate.OrderUpdateParams.Beneficiary; + export namespace Order { + export type Beneficiary = Stripe_.Climate.Order.Beneficiary; + export type CancellationReason = Stripe_.Climate.Order.CancellationReason; + export type DeliveryDetail = Stripe_.Climate.Order.DeliveryDetail; + export type Status = Stripe_.Climate.Order.Status; + export namespace DeliveryDetail { + export type Location = Stripe_.Climate.Order.DeliveryDetail.Location; + } + } + export namespace Product { + export type CurrentPricesPerMetricTon = Stripe_.Climate.Product.CurrentPricesPerMetricTon; + } + export namespace Supplier { + export type Location = Stripe_.Climate.Supplier.Location; + export type RemovalPathway = Stripe_.Climate.Supplier.RemovalPathway; } } export namespace Entitlements { - export type ActiveEntitlement = Stripe.Entitlements.ActiveEntitlement; - export type ActiveEntitlementRetrieveParams = Stripe.Entitlements.ActiveEntitlementRetrieveParams; - export type ActiveEntitlementListParams = Stripe.Entitlements.ActiveEntitlementListParams; - export type ActiveEntitlementResource = Stripe.Entitlements.ActiveEntitlementResource; - export type Feature = Stripe.Entitlements.Feature; - export type FeatureCreateParams = Stripe.Entitlements.FeatureCreateParams; - export type FeatureRetrieveParams = Stripe.Entitlements.FeatureRetrieveParams; - export type FeatureUpdateParams = Stripe.Entitlements.FeatureUpdateParams; - export type FeatureListParams = Stripe.Entitlements.FeatureListParams; - export type FeatureResource = Stripe.Entitlements.FeatureResource; - export type ActiveEntitlementSummary = Stripe.Entitlements.ActiveEntitlementSummary; + export type ActiveEntitlement = Stripe_.Entitlements.ActiveEntitlement; + export type ActiveEntitlementRetrieveParams = Stripe_.Entitlements.ActiveEntitlementRetrieveParams; + export type ActiveEntitlementListParams = Stripe_.Entitlements.ActiveEntitlementListParams; + export type ActiveEntitlementResource = Stripe_.Entitlements.ActiveEntitlementResource; + export type Feature = Stripe_.Entitlements.Feature; + export type FeatureCreateParams = Stripe_.Entitlements.FeatureCreateParams; + export type FeatureRetrieveParams = Stripe_.Entitlements.FeatureRetrieveParams; + export type FeatureUpdateParams = Stripe_.Entitlements.FeatureUpdateParams; + export type FeatureListParams = Stripe_.Entitlements.FeatureListParams; + export type FeatureResource = Stripe_.Entitlements.FeatureResource; + export type ActiveEntitlementSummary = Stripe_.Entitlements.ActiveEntitlementSummary; } export namespace FinancialConnections { - export type Account = Stripe.FinancialConnections.Account; - export type AccountRetrieveParams = Stripe.FinancialConnections.AccountRetrieveParams; - export type AccountListParams = Stripe.FinancialConnections.AccountListParams; - export type AccountDisconnectParams = Stripe.FinancialConnections.AccountDisconnectParams; - export type AccountListInferredBalancesParams = Stripe.FinancialConnections.AccountListInferredBalancesParams; - export type AccountListOwnersParams = Stripe.FinancialConnections.AccountListOwnersParams; - export type AccountRefreshParams = Stripe.FinancialConnections.AccountRefreshParams; - export type AccountSubscribeParams = Stripe.FinancialConnections.AccountSubscribeParams; - export type AccountUnsubscribeParams = Stripe.FinancialConnections.AccountUnsubscribeParams; - export type AccountResource = Stripe.FinancialConnections.AccountResource; - export type Authorization = Stripe.FinancialConnections.Authorization; - export type AuthorizationRetrieveParams = Stripe.FinancialConnections.AuthorizationRetrieveParams; - export type AuthorizationResource = Stripe.FinancialConnections.AuthorizationResource; - export type Institution = Stripe.FinancialConnections.Institution; - export type InstitutionRetrieveParams = Stripe.FinancialConnections.InstitutionRetrieveParams; - export type InstitutionListParams = Stripe.FinancialConnections.InstitutionListParams; - export type InstitutionResource = Stripe.FinancialConnections.InstitutionResource; - export type Session = Stripe.FinancialConnections.Session; - export type SessionCreateParams = Stripe.FinancialConnections.SessionCreateParams; - export type SessionRetrieveParams = Stripe.FinancialConnections.SessionRetrieveParams; - export type SessionResource = Stripe.FinancialConnections.SessionResource; - export type Transaction = Stripe.FinancialConnections.Transaction; - export type TransactionRetrieveParams = Stripe.FinancialConnections.TransactionRetrieveParams; - export type TransactionListParams = Stripe.FinancialConnections.TransactionListParams; - export type TransactionResource = Stripe.FinancialConnections.TransactionResource; - export type AccountOwner = Stripe.FinancialConnections.AccountOwner; - export type AccountOwnership = Stripe.FinancialConnections.AccountOwnership; - export type AccountInferredBalance = Stripe.FinancialConnections.AccountInferredBalance; - export namespace AccountListParams { - export type AccountHolder = Stripe.FinancialConnections.AccountListParams.AccountHolder; - } - export namespace AccountRefreshParams { - export type Feature = Stripe.FinancialConnections.AccountRefreshParams.Feature; - } - export namespace AccountSubscribeParams { - export type Feature = Stripe.FinancialConnections.AccountSubscribeParams.Feature; - } - export namespace AccountUnsubscribeParams { - export type Feature = Stripe.FinancialConnections.AccountUnsubscribeParams.Feature; + export type Account = Stripe_.FinancialConnections.Account; + export type AccountRetrieveParams = Stripe_.FinancialConnections.AccountRetrieveParams; + export type AccountListParams = Stripe_.FinancialConnections.AccountListParams; + export type AccountDisconnectParams = Stripe_.FinancialConnections.AccountDisconnectParams; + export type AccountListInferredBalancesParams = Stripe_.FinancialConnections.AccountListInferredBalancesParams; + export type AccountListOwnersParams = Stripe_.FinancialConnections.AccountListOwnersParams; + export type AccountRefreshParams = Stripe_.FinancialConnections.AccountRefreshParams; + export type AccountSubscribeParams = Stripe_.FinancialConnections.AccountSubscribeParams; + export type AccountUnsubscribeParams = Stripe_.FinancialConnections.AccountUnsubscribeParams; + export type AccountResource = Stripe_.FinancialConnections.AccountResource; + export type Authorization = Stripe_.FinancialConnections.Authorization; + export type AuthorizationRetrieveParams = Stripe_.FinancialConnections.AuthorizationRetrieveParams; + export type AuthorizationResource = Stripe_.FinancialConnections.AuthorizationResource; + export type Institution = Stripe_.FinancialConnections.Institution; + export type InstitutionRetrieveParams = Stripe_.FinancialConnections.InstitutionRetrieveParams; + export type InstitutionListParams = Stripe_.FinancialConnections.InstitutionListParams; + export type InstitutionResource = Stripe_.FinancialConnections.InstitutionResource; + export type Session = Stripe_.FinancialConnections.Session; + export type SessionCreateParams = Stripe_.FinancialConnections.SessionCreateParams; + export type SessionRetrieveParams = Stripe_.FinancialConnections.SessionRetrieveParams; + export type SessionResource = Stripe_.FinancialConnections.SessionResource; + export type Transaction = Stripe_.FinancialConnections.Transaction; + export type TransactionRetrieveParams = Stripe_.FinancialConnections.TransactionRetrieveParams; + export type TransactionListParams = Stripe_.FinancialConnections.TransactionListParams; + export type TransactionResource = Stripe_.FinancialConnections.TransactionResource; + export type AccountOwner = Stripe_.FinancialConnections.AccountOwner; + export type AccountOwnership = Stripe_.FinancialConnections.AccountOwnership; + export type AccountInferredBalance = Stripe_.FinancialConnections.AccountInferredBalance; + export namespace Account { + export type AccountHolder = Stripe_.FinancialConnections.Account.AccountHolder; + export type AccountNumber = Stripe_.FinancialConnections.Account.AccountNumber; + export type Balance = Stripe_.FinancialConnections.Account.Balance; + export type BalanceRefresh = Stripe_.FinancialConnections.Account.BalanceRefresh; + export type Category = Stripe_.FinancialConnections.Account.Category; + export type InferredBalancesRefresh = Stripe_.FinancialConnections.Account.InferredBalancesRefresh; + export type OwnershipRefresh = Stripe_.FinancialConnections.Account.OwnershipRefresh; + export type Permission = Stripe_.FinancialConnections.Account.Permission; + export type Status = Stripe_.FinancialConnections.Account.Status; + export type StatusDetails = Stripe_.FinancialConnections.Account.StatusDetails; + export type Subcategory = Stripe_.FinancialConnections.Account.Subcategory; + export type Subscription = Stripe_.FinancialConnections.Account.Subscription; + export type SupportedPaymentMethodType = Stripe_.FinancialConnections.Account.SupportedPaymentMethodType; + export type TransactionRefresh = Stripe_.FinancialConnections.Account.TransactionRefresh; + export namespace AccountHolder { + export type Type = Stripe_.FinancialConnections.Account.AccountHolder.Type; + } + export namespace AccountNumber { + export type IdentifierType = Stripe_.FinancialConnections.Account.AccountNumber.IdentifierType; + export type Status = Stripe_.FinancialConnections.Account.AccountNumber.Status; + } + export namespace Balance { + export type Cash = Stripe_.FinancialConnections.Account.Balance.Cash; + export type Credit = Stripe_.FinancialConnections.Account.Balance.Credit; + export type Type = Stripe_.FinancialConnections.Account.Balance.Type; + } + export namespace BalanceRefresh { + export type Status = Stripe_.FinancialConnections.Account.BalanceRefresh.Status; + } + export namespace InferredBalancesRefresh { + export type Status = Stripe_.FinancialConnections.Account.InferredBalancesRefresh.Status; + } + export namespace OwnershipRefresh { + export type Status = Stripe_.FinancialConnections.Account.OwnershipRefresh.Status; + } + export namespace StatusDetails { + export type Inactive = Stripe_.FinancialConnections.Account.StatusDetails.Inactive; + export namespace Inactive { + export type Action = Stripe_.FinancialConnections.Account.StatusDetails.Inactive.Action; + export type Cause = Stripe_.FinancialConnections.Account.StatusDetails.Inactive.Cause; + } + } + export namespace TransactionRefresh { + export type Status = Stripe_.FinancialConnections.Account.TransactionRefresh.Status; + } + } + export namespace Authorization { + export type AccountHolder = Stripe_.FinancialConnections.Authorization.AccountHolder; + export type Status = Stripe_.FinancialConnections.Authorization.Status; + export type StatusDetails = Stripe_.FinancialConnections.Authorization.StatusDetails; + export namespace AccountHolder { + export type Type = Stripe_.FinancialConnections.Authorization.AccountHolder.Type; + } + export namespace StatusDetails { + export type Inactive = Stripe_.FinancialConnections.Authorization.StatusDetails.Inactive; + export namespace Inactive { + export type Action = Stripe_.FinancialConnections.Authorization.StatusDetails.Inactive.Action; + } + } + } + export namespace Institution { + export type Features = Stripe_.FinancialConnections.Institution.Features; + export type Status = Stripe_.FinancialConnections.Institution.Status; + export namespace Features { + export type Balances = Stripe_.FinancialConnections.Institution.Features.Balances; + export type Ownership = Stripe_.FinancialConnections.Institution.Features.Ownership; + export type PaymentMethod = Stripe_.FinancialConnections.Institution.Features.PaymentMethod; + export type Transactions = Stripe_.FinancialConnections.Institution.Features.Transactions; + } } export namespace SessionCreateParams { - export type Permission = Stripe.FinancialConnections.SessionCreateParams.Permission; - export type AccountHolder = Stripe.FinancialConnections.SessionCreateParams.AccountHolder; - export type Filters = Stripe.FinancialConnections.SessionCreateParams.Filters; - export type Hosted = Stripe.FinancialConnections.SessionCreateParams.Hosted; - export type Limits = Stripe.FinancialConnections.SessionCreateParams.Limits; - export type ManualEntry = Stripe.FinancialConnections.SessionCreateParams.ManualEntry; - export type Prefetch = Stripe.FinancialConnections.SessionCreateParams.Prefetch; - export type RelinkOptions = Stripe.FinancialConnections.SessionCreateParams.RelinkOptions; - export type UiMode = Stripe.FinancialConnections.SessionCreateParams.UiMode; + export type Permission = Stripe_.FinancialConnections.SessionCreateParams.Permission; + export type AccountHolder = Stripe_.FinancialConnections.SessionCreateParams.AccountHolder; + export type Filters = Stripe_.FinancialConnections.SessionCreateParams.Filters; + export type Hosted = Stripe_.FinancialConnections.SessionCreateParams.Hosted; + export type Limits = Stripe_.FinancialConnections.SessionCreateParams.Limits; + export type ManualEntry = Stripe_.FinancialConnections.SessionCreateParams.ManualEntry; + export type Prefetch = Stripe_.FinancialConnections.SessionCreateParams.Prefetch; + export type RelinkOptions = Stripe_.FinancialConnections.SessionCreateParams.RelinkOptions; + export type UiMode = Stripe_.FinancialConnections.SessionCreateParams.UiMode; + export namespace AccountHolder { + export type Type = Stripe_.FinancialConnections.SessionCreateParams.AccountHolder.Type; + } + export namespace Filters { + export type AccountSubcategory = Stripe_.FinancialConnections.SessionCreateParams.Filters.AccountSubcategory; + } + export namespace Hosted { + export type DeliveryMethod = Stripe_.FinancialConnections.SessionCreateParams.Hosted.DeliveryMethod; + } + export namespace ManualEntry { + export type Mode = Stripe_.FinancialConnections.SessionCreateParams.ManualEntry.Mode; + } + } + export namespace Session { + export type AccountHolder = Stripe_.FinancialConnections.Session.AccountHolder; + export type Filters = Stripe_.FinancialConnections.Session.Filters; + export type Hosted = Stripe_.FinancialConnections.Session.Hosted; + export type Limits = Stripe_.FinancialConnections.Session.Limits; + export type ManualEntry = Stripe_.FinancialConnections.Session.ManualEntry; + export type Permission = Stripe_.FinancialConnections.Session.Permission; + export type Prefetch = Stripe_.FinancialConnections.Session.Prefetch; + export type RelinkOptions = Stripe_.FinancialConnections.Session.RelinkOptions; + export type RelinkResult = Stripe_.FinancialConnections.Session.RelinkResult; + export type Status = Stripe_.FinancialConnections.Session.Status; + export type StatusDetails = Stripe_.FinancialConnections.Session.StatusDetails; + export type UiMode = Stripe_.FinancialConnections.Session.UiMode; + export namespace AccountHolder { + export type Type = Stripe_.FinancialConnections.Session.AccountHolder.Type; + } + export namespace Filters { + export type AccountSubcategory = Stripe_.FinancialConnections.Session.Filters.AccountSubcategory; + } + export namespace Hosted { + export type DeliveryMethod = Stripe_.FinancialConnections.Session.Hosted.DeliveryMethod; + } + export namespace RelinkResult { + export type FailureReason = Stripe_.FinancialConnections.Session.RelinkResult.FailureReason; + } + export namespace StatusDetails { + export type Cancelled = Stripe_.FinancialConnections.Session.StatusDetails.Cancelled; + export namespace Cancelled { + export type Reason = Stripe_.FinancialConnections.Session.StatusDetails.Cancelled.Reason; + } + } } - export namespace TransactionListParams { - export type TransactionRefresh = Stripe.FinancialConnections.TransactionListParams.TransactionRefresh; + export namespace Transaction { + export type Status = Stripe_.FinancialConnections.Transaction.Status; + export type StatusTransitions = Stripe_.FinancialConnections.Transaction.StatusTransitions; } } export namespace Forwarding { - export type Request = Stripe.Forwarding.Request; - export type RequestCreateParams = Stripe.Forwarding.RequestCreateParams; - export type RequestRetrieveParams = Stripe.Forwarding.RequestRetrieveParams; - export type RequestListParams = Stripe.Forwarding.RequestListParams; - export type RequestResource = Stripe.Forwarding.RequestResource; + export type Request = Stripe_.Forwarding.Request; + export type RequestCreateParams = Stripe_.Forwarding.RequestCreateParams; + export type RequestRetrieveParams = Stripe_.Forwarding.RequestRetrieveParams; + export type RequestListParams = Stripe_.Forwarding.RequestListParams; + export type RequestResource = Stripe_.Forwarding.RequestResource; export namespace RequestCreateParams { - export type Replacement = Stripe.Forwarding.RequestCreateParams.Replacement; - export type Request = Stripe.Forwarding.RequestCreateParams.Request; + export type Replacement = Stripe_.Forwarding.RequestCreateParams.Replacement; + export type Request = Stripe_.Forwarding.RequestCreateParams.Request; + export namespace Request { + export type Header = Stripe_.Forwarding.RequestCreateParams.Request.Header; + } + } + export namespace Request { + export type Replacement = Stripe_.Forwarding.Request.Replacement; + export type RequestContext = Stripe_.Forwarding.Request.RequestContext; + export type RequestDetails = Stripe_.Forwarding.Request.RequestDetails; + export type ResponseDetails = Stripe_.Forwarding.Request.ResponseDetails; + export namespace RequestDetails { + export type Header = Stripe_.Forwarding.Request.RequestDetails.Header; + } + export namespace ResponseDetails { + export type Header = Stripe_.Forwarding.Request.ResponseDetails.Header; + } } } export namespace Identity { - export type VerificationReport = Stripe.Identity.VerificationReport; - export type VerificationReportRetrieveParams = Stripe.Identity.VerificationReportRetrieveParams; - export type VerificationReportListParams = Stripe.Identity.VerificationReportListParams; - export type VerificationReportResource = Stripe.Identity.VerificationReportResource; - export type VerificationSession = Stripe.Identity.VerificationSession; - export type VerificationSessionCreateParams = Stripe.Identity.VerificationSessionCreateParams; - export type VerificationSessionRetrieveParams = Stripe.Identity.VerificationSessionRetrieveParams; - export type VerificationSessionUpdateParams = Stripe.Identity.VerificationSessionUpdateParams; - export type VerificationSessionListParams = Stripe.Identity.VerificationSessionListParams; - export type VerificationSessionCancelParams = Stripe.Identity.VerificationSessionCancelParams; - export type VerificationSessionRedactParams = Stripe.Identity.VerificationSessionRedactParams; - export type VerificationSessionResource = Stripe.Identity.VerificationSessionResource; - export namespace VerificationReportListParams { - export type Type = Stripe.Identity.VerificationReportListParams.Type; + export type VerificationReport = Stripe_.Identity.VerificationReport; + export type VerificationReportRetrieveParams = Stripe_.Identity.VerificationReportRetrieveParams; + export type VerificationReportListParams = Stripe_.Identity.VerificationReportListParams; + export type VerificationReportResource = Stripe_.Identity.VerificationReportResource; + export type VerificationSession = Stripe_.Identity.VerificationSession; + export type VerificationSessionCreateParams = Stripe_.Identity.VerificationSessionCreateParams; + export type VerificationSessionRetrieveParams = Stripe_.Identity.VerificationSessionRetrieveParams; + export type VerificationSessionUpdateParams = Stripe_.Identity.VerificationSessionUpdateParams; + export type VerificationSessionListParams = Stripe_.Identity.VerificationSessionListParams; + export type VerificationSessionCancelParams = Stripe_.Identity.VerificationSessionCancelParams; + export type VerificationSessionRedactParams = Stripe_.Identity.VerificationSessionRedactParams; + export type VerificationSessionResource = Stripe_.Identity.VerificationSessionResource; + export namespace VerificationReport { + export type Document = Stripe_.Identity.VerificationReport.Document; + export type Email = Stripe_.Identity.VerificationReport.Email; + export type IdNumber = Stripe_.Identity.VerificationReport.IdNumber; + export type Options = Stripe_.Identity.VerificationReport.Options; + export type Phone = Stripe_.Identity.VerificationReport.Phone; + export type Selfie = Stripe_.Identity.VerificationReport.Selfie; + export type Type = Stripe_.Identity.VerificationReport.Type; + export namespace Document { + export type Dob = Stripe_.Identity.VerificationReport.Document.Dob; + export type Error = Stripe_.Identity.VerificationReport.Document.Error; + export type ExpirationDate = Stripe_.Identity.VerificationReport.Document.ExpirationDate; + export type IssuedDate = Stripe_.Identity.VerificationReport.Document.IssuedDate; + export type Sex = Stripe_.Identity.VerificationReport.Document.Sex; + export type Status = Stripe_.Identity.VerificationReport.Document.Status; + export type Type = Stripe_.Identity.VerificationReport.Document.Type; + export namespace Error { + export type Code = Stripe_.Identity.VerificationReport.Document.Error.Code; + } + } + export namespace Email { + export type Error = Stripe_.Identity.VerificationReport.Email.Error; + export type Status = Stripe_.Identity.VerificationReport.Email.Status; + export namespace Error { + export type Code = Stripe_.Identity.VerificationReport.Email.Error.Code; + } + } + export namespace IdNumber { + export type Dob = Stripe_.Identity.VerificationReport.IdNumber.Dob; + export type Error = Stripe_.Identity.VerificationReport.IdNumber.Error; + export type IdNumberType = Stripe_.Identity.VerificationReport.IdNumber.IdNumberType; + export type Status = Stripe_.Identity.VerificationReport.IdNumber.Status; + export namespace Error { + export type Code = Stripe_.Identity.VerificationReport.IdNumber.Error.Code; + } + } + export namespace Options { + export type Document = Stripe_.Identity.VerificationReport.Options.Document; + export type IdNumber = Stripe_.Identity.VerificationReport.Options.IdNumber; + export namespace Document { + export type AllowedType = Stripe_.Identity.VerificationReport.Options.Document.AllowedType; + } + } + export namespace Phone { + export type Error = Stripe_.Identity.VerificationReport.Phone.Error; + export type Status = Stripe_.Identity.VerificationReport.Phone.Status; + export namespace Error { + export type Code = Stripe_.Identity.VerificationReport.Phone.Error.Code; + } + } + export namespace Selfie { + export type Error = Stripe_.Identity.VerificationReport.Selfie.Error; + export type Status = Stripe_.Identity.VerificationReport.Selfie.Status; + export namespace Error { + export type Code = Stripe_.Identity.VerificationReport.Selfie.Error.Code; + } + } } export namespace VerificationSessionCreateParams { - export type Options = Stripe.Identity.VerificationSessionCreateParams.Options; - export type ProvidedDetails = Stripe.Identity.VerificationSessionCreateParams.ProvidedDetails; - export type RelatedPerson = Stripe.Identity.VerificationSessionCreateParams.RelatedPerson; - export type Type = Stripe.Identity.VerificationSessionCreateParams.Type; - } - export namespace VerificationSessionUpdateParams { - export type Options = Stripe.Identity.VerificationSessionUpdateParams.Options; - export type ProvidedDetails = Stripe.Identity.VerificationSessionUpdateParams.ProvidedDetails; - export type Type = Stripe.Identity.VerificationSessionUpdateParams.Type; + export type Options = Stripe_.Identity.VerificationSessionCreateParams.Options; + export type ProvidedDetails = Stripe_.Identity.VerificationSessionCreateParams.ProvidedDetails; + export type RelatedPerson = Stripe_.Identity.VerificationSessionCreateParams.RelatedPerson; + export type Type = Stripe_.Identity.VerificationSessionCreateParams.Type; + export namespace Options { + export type Document = Stripe_.Identity.VerificationSessionCreateParams.Options.Document; + export namespace Document { + export type AllowedType = Stripe_.Identity.VerificationSessionCreateParams.Options.Document.AllowedType; + } + } } - export namespace VerificationSessionListParams { - export type Status = Stripe.Identity.VerificationSessionListParams.Status; + export namespace VerificationSession { + export type LastError = Stripe_.Identity.VerificationSession.LastError; + export type Options = Stripe_.Identity.VerificationSession.Options; + export type ProvidedDetails = Stripe_.Identity.VerificationSession.ProvidedDetails; + export type Redaction = Stripe_.Identity.VerificationSession.Redaction; + export type RelatedPerson = Stripe_.Identity.VerificationSession.RelatedPerson; + export type Status = Stripe_.Identity.VerificationSession.Status; + export type Type = Stripe_.Identity.VerificationSession.Type; + export type VerifiedOutputs = Stripe_.Identity.VerificationSession.VerifiedOutputs; + export namespace LastError { + export type Code = Stripe_.Identity.VerificationSession.LastError.Code; + } + export namespace Options { + export type Document = Stripe_.Identity.VerificationSession.Options.Document; + export type Email = Stripe_.Identity.VerificationSession.Options.Email; + export type IdNumber = Stripe_.Identity.VerificationSession.Options.IdNumber; + export type Matching = Stripe_.Identity.VerificationSession.Options.Matching; + export type Phone = Stripe_.Identity.VerificationSession.Options.Phone; + export namespace Document { + export type AllowedType = Stripe_.Identity.VerificationSession.Options.Document.AllowedType; + } + export namespace Matching { + export type Dob = Stripe_.Identity.VerificationSession.Options.Matching.Dob; + export type Name = Stripe_.Identity.VerificationSession.Options.Matching.Name; + } + } + export namespace Redaction { + export type Status = Stripe_.Identity.VerificationSession.Redaction.Status; + } + export namespace VerifiedOutputs { + export type Dob = Stripe_.Identity.VerificationSession.VerifiedOutputs.Dob; + export type IdNumberType = Stripe_.Identity.VerificationSession.VerifiedOutputs.IdNumberType; + export type Sex = Stripe_.Identity.VerificationSession.VerifiedOutputs.Sex; + } } } export namespace Issuing { - export type Authorization = Stripe.Issuing.Authorization; - export type AuthorizationRetrieveParams = Stripe.Issuing.AuthorizationRetrieveParams; - export type AuthorizationUpdateParams = Stripe.Issuing.AuthorizationUpdateParams; - export type AuthorizationListParams = Stripe.Issuing.AuthorizationListParams; - export type AuthorizationApproveParams = Stripe.Issuing.AuthorizationApproveParams; - export type AuthorizationDeclineParams = Stripe.Issuing.AuthorizationDeclineParams; - export type AuthorizationResource = Stripe.Issuing.AuthorizationResource; - export type Card = Stripe.Issuing.Card; - export type CardCreateParams = Stripe.Issuing.CardCreateParams; - export type CardRetrieveParams = Stripe.Issuing.CardRetrieveParams; - export type CardUpdateParams = Stripe.Issuing.CardUpdateParams; - export type CardListParams = Stripe.Issuing.CardListParams; - export type CardResource = Stripe.Issuing.CardResource; - export type Cardholder = Stripe.Issuing.Cardholder; - export type CardholderCreateParams = Stripe.Issuing.CardholderCreateParams; - export type CardholderRetrieveParams = Stripe.Issuing.CardholderRetrieveParams; - export type CardholderUpdateParams = Stripe.Issuing.CardholderUpdateParams; - export type CardholderListParams = Stripe.Issuing.CardholderListParams; - export type CardholderResource = Stripe.Issuing.CardholderResource; - export type CreditUnderwritingRecord = Stripe.Issuing.CreditUnderwritingRecord; - export type CreditUnderwritingRecordRetrieveParams = Stripe.Issuing.CreditUnderwritingRecordRetrieveParams; - export type CreditUnderwritingRecordListParams = Stripe.Issuing.CreditUnderwritingRecordListParams; - export type CreditUnderwritingRecordCorrectParams = Stripe.Issuing.CreditUnderwritingRecordCorrectParams; - export type CreditUnderwritingRecordCreateFromApplicationParams = Stripe.Issuing.CreditUnderwritingRecordCreateFromApplicationParams; - export type CreditUnderwritingRecordCreateFromProactiveReviewParams = Stripe.Issuing.CreditUnderwritingRecordCreateFromProactiveReviewParams; - export type CreditUnderwritingRecordReportDecisionParams = Stripe.Issuing.CreditUnderwritingRecordReportDecisionParams; - export type CreditUnderwritingRecordResource = Stripe.Issuing.CreditUnderwritingRecordResource; - export type Dispute = Stripe.Issuing.Dispute; - export type DisputeCreateParams = Stripe.Issuing.DisputeCreateParams; - export type DisputeRetrieveParams = Stripe.Issuing.DisputeRetrieveParams; - export type DisputeUpdateParams = Stripe.Issuing.DisputeUpdateParams; - export type DisputeListParams = Stripe.Issuing.DisputeListParams; - export type DisputeSubmitParams = Stripe.Issuing.DisputeSubmitParams; - export type DisputeResource = Stripe.Issuing.DisputeResource; - export type DisputeSettlementDetail = Stripe.Issuing.DisputeSettlementDetail; - export type DisputeSettlementDetailRetrieveParams = Stripe.Issuing.DisputeSettlementDetailRetrieveParams; - export type DisputeSettlementDetailListParams = Stripe.Issuing.DisputeSettlementDetailListParams; - export type DisputeSettlementDetailResource = Stripe.Issuing.DisputeSettlementDetailResource; - export type FraudLiabilityDebit = Stripe.Issuing.FraudLiabilityDebit; - export type FraudLiabilityDebitRetrieveParams = Stripe.Issuing.FraudLiabilityDebitRetrieveParams; - export type FraudLiabilityDebitListParams = Stripe.Issuing.FraudLiabilityDebitListParams; - export type FraudLiabilityDebitResource = Stripe.Issuing.FraudLiabilityDebitResource; - export type PersonalizationDesign = Stripe.Issuing.PersonalizationDesign; - export type PersonalizationDesignCreateParams = Stripe.Issuing.PersonalizationDesignCreateParams; - export type PersonalizationDesignRetrieveParams = Stripe.Issuing.PersonalizationDesignRetrieveParams; - export type PersonalizationDesignUpdateParams = Stripe.Issuing.PersonalizationDesignUpdateParams; - export type PersonalizationDesignListParams = Stripe.Issuing.PersonalizationDesignListParams; - export type PersonalizationDesignResource = Stripe.Issuing.PersonalizationDesignResource; - export type PhysicalBundle = Stripe.Issuing.PhysicalBundle; - export type PhysicalBundleRetrieveParams = Stripe.Issuing.PhysicalBundleRetrieveParams; - export type PhysicalBundleListParams = Stripe.Issuing.PhysicalBundleListParams; - export type PhysicalBundleResource = Stripe.Issuing.PhysicalBundleResource; - export type Token = Stripe.Issuing.Token; - export type TokenRetrieveParams = Stripe.Issuing.TokenRetrieveParams; - export type TokenUpdateParams = Stripe.Issuing.TokenUpdateParams; - export type TokenListParams = Stripe.Issuing.TokenListParams; - export type TokenResource = Stripe.Issuing.TokenResource; - export type Transaction = Stripe.Issuing.Transaction; - export type TransactionRetrieveParams = Stripe.Issuing.TransactionRetrieveParams; - export type TransactionUpdateParams = Stripe.Issuing.TransactionUpdateParams; - export type TransactionListParams = Stripe.Issuing.TransactionListParams; - export type TransactionResource = Stripe.Issuing.TransactionResource; - export type Settlement = Stripe.Issuing.Settlement; - export namespace AuthorizationListParams { - export type Status = Stripe.Issuing.AuthorizationListParams.Status; + export type Authorization = Stripe_.Issuing.Authorization; + export type AuthorizationRetrieveParams = Stripe_.Issuing.AuthorizationRetrieveParams; + export type AuthorizationUpdateParams = Stripe_.Issuing.AuthorizationUpdateParams; + export type AuthorizationListParams = Stripe_.Issuing.AuthorizationListParams; + export type AuthorizationApproveParams = Stripe_.Issuing.AuthorizationApproveParams; + export type AuthorizationDeclineParams = Stripe_.Issuing.AuthorizationDeclineParams; + export type AuthorizationResource = Stripe_.Issuing.AuthorizationResource; + export type Card = Stripe_.Issuing.Card; + export type CardCreateParams = Stripe_.Issuing.CardCreateParams; + export type CardRetrieveParams = Stripe_.Issuing.CardRetrieveParams; + export type CardUpdateParams = Stripe_.Issuing.CardUpdateParams; + export type CardListParams = Stripe_.Issuing.CardListParams; + export type CardResource = Stripe_.Issuing.CardResource; + export type Cardholder = Stripe_.Issuing.Cardholder; + export type CardholderCreateParams = Stripe_.Issuing.CardholderCreateParams; + export type CardholderRetrieveParams = Stripe_.Issuing.CardholderRetrieveParams; + export type CardholderUpdateParams = Stripe_.Issuing.CardholderUpdateParams; + export type CardholderListParams = Stripe_.Issuing.CardholderListParams; + export type CardholderResource = Stripe_.Issuing.CardholderResource; + export type CreditUnderwritingRecord = Stripe_.Issuing.CreditUnderwritingRecord; + export type CreditUnderwritingRecordRetrieveParams = Stripe_.Issuing.CreditUnderwritingRecordRetrieveParams; + export type CreditUnderwritingRecordListParams = Stripe_.Issuing.CreditUnderwritingRecordListParams; + export type CreditUnderwritingRecordCorrectParams = Stripe_.Issuing.CreditUnderwritingRecordCorrectParams; + export type CreditUnderwritingRecordCreateFromApplicationParams = Stripe_.Issuing.CreditUnderwritingRecordCreateFromApplicationParams; + export type CreditUnderwritingRecordCreateFromProactiveReviewParams = Stripe_.Issuing.CreditUnderwritingRecordCreateFromProactiveReviewParams; + export type CreditUnderwritingRecordReportDecisionParams = Stripe_.Issuing.CreditUnderwritingRecordReportDecisionParams; + export type CreditUnderwritingRecordResource = Stripe_.Issuing.CreditUnderwritingRecordResource; + export type Dispute = Stripe_.Issuing.Dispute; + export type DisputeCreateParams = Stripe_.Issuing.DisputeCreateParams; + export type DisputeRetrieveParams = Stripe_.Issuing.DisputeRetrieveParams; + export type DisputeUpdateParams = Stripe_.Issuing.DisputeUpdateParams; + export type DisputeListParams = Stripe_.Issuing.DisputeListParams; + export type DisputeSubmitParams = Stripe_.Issuing.DisputeSubmitParams; + export type DisputeResource = Stripe_.Issuing.DisputeResource; + export type DisputeSettlementDetail = Stripe_.Issuing.DisputeSettlementDetail; + export type DisputeSettlementDetailRetrieveParams = Stripe_.Issuing.DisputeSettlementDetailRetrieveParams; + export type DisputeSettlementDetailListParams = Stripe_.Issuing.DisputeSettlementDetailListParams; + export type DisputeSettlementDetailResource = Stripe_.Issuing.DisputeSettlementDetailResource; + export type FraudLiabilityDebit = Stripe_.Issuing.FraudLiabilityDebit; + export type FraudLiabilityDebitRetrieveParams = Stripe_.Issuing.FraudLiabilityDebitRetrieveParams; + export type FraudLiabilityDebitListParams = Stripe_.Issuing.FraudLiabilityDebitListParams; + export type FraudLiabilityDebitResource = Stripe_.Issuing.FraudLiabilityDebitResource; + export type PersonalizationDesign = Stripe_.Issuing.PersonalizationDesign; + export type PersonalizationDesignCreateParams = Stripe_.Issuing.PersonalizationDesignCreateParams; + export type PersonalizationDesignRetrieveParams = Stripe_.Issuing.PersonalizationDesignRetrieveParams; + export type PersonalizationDesignUpdateParams = Stripe_.Issuing.PersonalizationDesignUpdateParams; + export type PersonalizationDesignListParams = Stripe_.Issuing.PersonalizationDesignListParams; + export type PersonalizationDesignResource = Stripe_.Issuing.PersonalizationDesignResource; + export type PhysicalBundle = Stripe_.Issuing.PhysicalBundle; + export type PhysicalBundleRetrieveParams = Stripe_.Issuing.PhysicalBundleRetrieveParams; + export type PhysicalBundleListParams = Stripe_.Issuing.PhysicalBundleListParams; + export type PhysicalBundleResource = Stripe_.Issuing.PhysicalBundleResource; + export type Token = Stripe_.Issuing.Token; + export type TokenRetrieveParams = Stripe_.Issuing.TokenRetrieveParams; + export type TokenUpdateParams = Stripe_.Issuing.TokenUpdateParams; + export type TokenListParams = Stripe_.Issuing.TokenListParams; + export type TokenResource = Stripe_.Issuing.TokenResource; + export type Transaction = Stripe_.Issuing.Transaction; + export type TransactionRetrieveParams = Stripe_.Issuing.TransactionRetrieveParams; + export type TransactionUpdateParams = Stripe_.Issuing.TransactionUpdateParams; + export type TransactionListParams = Stripe_.Issuing.TransactionListParams; + export type TransactionResource = Stripe_.Issuing.TransactionResource; + export type Settlement = Stripe_.Issuing.Settlement; + export namespace Authorization { + export type AmountDetails = Stripe_.Issuing.Authorization.AmountDetails; + export type AuthorizationMethod = Stripe_.Issuing.Authorization.AuthorizationMethod; + export type CardPresence = Stripe_.Issuing.Authorization.CardPresence; + export type Fleet = Stripe_.Issuing.Authorization.Fleet; + export type FraudChallenge = Stripe_.Issuing.Authorization.FraudChallenge; + export type Fuel = Stripe_.Issuing.Authorization.Fuel; + export type MerchantData = Stripe_.Issuing.Authorization.MerchantData; + export type NetworkData = Stripe_.Issuing.Authorization.NetworkData; + export type PendingRequest = Stripe_.Issuing.Authorization.PendingRequest; + export type RequestHistory = Stripe_.Issuing.Authorization.RequestHistory; + export type Status = Stripe_.Issuing.Authorization.Status; + export type Treasury = Stripe_.Issuing.Authorization.Treasury; + export type VerificationData = Stripe_.Issuing.Authorization.VerificationData; + export namespace Fleet { + export type CardholderPromptData = Stripe_.Issuing.Authorization.Fleet.CardholderPromptData; + export type PurchaseType = Stripe_.Issuing.Authorization.Fleet.PurchaseType; + export type ReportedBreakdown = Stripe_.Issuing.Authorization.Fleet.ReportedBreakdown; + export type ServiceType = Stripe_.Issuing.Authorization.Fleet.ServiceType; + export namespace ReportedBreakdown { + export type Fuel = Stripe_.Issuing.Authorization.Fleet.ReportedBreakdown.Fuel; + export type NonFuel = Stripe_.Issuing.Authorization.Fleet.ReportedBreakdown.NonFuel; + export type Tax = Stripe_.Issuing.Authorization.Fleet.ReportedBreakdown.Tax; + } + } + export namespace FraudChallenge { + export type Status = Stripe_.Issuing.Authorization.FraudChallenge.Status; + export type UndeliverableReason = Stripe_.Issuing.Authorization.FraudChallenge.UndeliverableReason; + } + export namespace Fuel { + export type Type = Stripe_.Issuing.Authorization.Fuel.Type; + export type Unit = Stripe_.Issuing.Authorization.Fuel.Unit; + } + export namespace PendingRequest { + export type AmountDetails = Stripe_.Issuing.Authorization.PendingRequest.AmountDetails; + } + export namespace RequestHistory { + export type AmountDetails = Stripe_.Issuing.Authorization.RequestHistory.AmountDetails; + export type Reason = Stripe_.Issuing.Authorization.RequestHistory.Reason; + } + export namespace VerificationData { + export type AddressLine1Check = Stripe_.Issuing.Authorization.VerificationData.AddressLine1Check; + export type AddressPostalCodeCheck = Stripe_.Issuing.Authorization.VerificationData.AddressPostalCodeCheck; + export type AuthenticationExemption = Stripe_.Issuing.Authorization.VerificationData.AuthenticationExemption; + export type CvcCheck = Stripe_.Issuing.Authorization.VerificationData.CvcCheck; + export type ExpiryCheck = Stripe_.Issuing.Authorization.VerificationData.ExpiryCheck; + export type ThreeDSecure = Stripe_.Issuing.Authorization.VerificationData.ThreeDSecure; + export namespace AuthenticationExemption { + export type ClaimedBy = Stripe_.Issuing.Authorization.VerificationData.AuthenticationExemption.ClaimedBy; + export type Type = Stripe_.Issuing.Authorization.VerificationData.AuthenticationExemption.Type; + } + export namespace ThreeDSecure { + export type Result = Stripe_.Issuing.Authorization.VerificationData.ThreeDSecure.Result; + } + } } export namespace CardCreateParams { - export type Type = Stripe.Issuing.CardCreateParams.Type; - export type LifecycleControls = Stripe.Issuing.CardCreateParams.LifecycleControls; - export type Pin = Stripe.Issuing.CardCreateParams.Pin; - export type ReplacementReason = Stripe.Issuing.CardCreateParams.ReplacementReason; - export type Shipping = Stripe.Issuing.CardCreateParams.Shipping; - export type SpendingControls = Stripe.Issuing.CardCreateParams.SpendingControls; - export type Status = Stripe.Issuing.CardCreateParams.Status; - } - export namespace CardUpdateParams { - export type CancellationReason = Stripe.Issuing.CardUpdateParams.CancellationReason; - export type Pin = Stripe.Issuing.CardUpdateParams.Pin; - export type Shipping = Stripe.Issuing.CardUpdateParams.Shipping; - export type SpendingControls = Stripe.Issuing.CardUpdateParams.SpendingControls; - export type Status = Stripe.Issuing.CardUpdateParams.Status; - } - export namespace CardListParams { - export type Status = Stripe.Issuing.CardListParams.Status; - export type Type = Stripe.Issuing.CardListParams.Type; + export type Type = Stripe_.Issuing.CardCreateParams.Type; + export type LifecycleControls = Stripe_.Issuing.CardCreateParams.LifecycleControls; + export type Pin = Stripe_.Issuing.CardCreateParams.Pin; + export type ReplacementReason = Stripe_.Issuing.CardCreateParams.ReplacementReason; + export type Shipping = Stripe_.Issuing.CardCreateParams.Shipping; + export type SpendingControls = Stripe_.Issuing.CardCreateParams.SpendingControls; + export type Status = Stripe_.Issuing.CardCreateParams.Status; + export namespace LifecycleControls { + export type CancelAfter = Stripe_.Issuing.CardCreateParams.LifecycleControls.CancelAfter; + } + export namespace Shipping { + export type Address = Stripe_.Issuing.CardCreateParams.Shipping.Address; + export type AddressValidation = Stripe_.Issuing.CardCreateParams.Shipping.AddressValidation; + export type Customs = Stripe_.Issuing.CardCreateParams.Shipping.Customs; + export type Service = Stripe_.Issuing.CardCreateParams.Shipping.Service; + export type Type = Stripe_.Issuing.CardCreateParams.Shipping.Type; + export namespace AddressValidation { + export type Mode = Stripe_.Issuing.CardCreateParams.Shipping.AddressValidation.Mode; + } + } + export namespace SpendingControls { + export type AllowedCardPresence = Stripe_.Issuing.CardCreateParams.SpendingControls.AllowedCardPresence; + export type AllowedCategory = Stripe_.Issuing.CardCreateParams.SpendingControls.AllowedCategory; + export type BlockedCardPresence = Stripe_.Issuing.CardCreateParams.SpendingControls.BlockedCardPresence; + export type BlockedCategory = Stripe_.Issuing.CardCreateParams.SpendingControls.BlockedCategory; + export type SpendingLimit = Stripe_.Issuing.CardCreateParams.SpendingControls.SpendingLimit; + export namespace SpendingLimit { + export type Category = Stripe_.Issuing.CardCreateParams.SpendingControls.SpendingLimit.Category; + export type Interval = Stripe_.Issuing.CardCreateParams.SpendingControls.SpendingLimit.Interval; + } + } + } + export namespace Card { + export type CancellationReason = Stripe_.Issuing.Card.CancellationReason; + export type LatestFraudWarning = Stripe_.Issuing.Card.LatestFraudWarning; + export type LifecycleControls = Stripe_.Issuing.Card.LifecycleControls; + export type ReplacementReason = Stripe_.Issuing.Card.ReplacementReason; + export type Shipping = Stripe_.Issuing.Card.Shipping; + export type SpendingControls = Stripe_.Issuing.Card.SpendingControls; + export type Status = Stripe_.Issuing.Card.Status; + export type Type = Stripe_.Issuing.Card.Type; + export type Wallets = Stripe_.Issuing.Card.Wallets; + export namespace LatestFraudWarning { + export type Type = Stripe_.Issuing.Card.LatestFraudWarning.Type; + } + export namespace LifecycleControls { + export type CancelAfter = Stripe_.Issuing.Card.LifecycleControls.CancelAfter; + } + export namespace Shipping { + export type AddressValidation = Stripe_.Issuing.Card.Shipping.AddressValidation; + export type Carrier = Stripe_.Issuing.Card.Shipping.Carrier; + export type Customs = Stripe_.Issuing.Card.Shipping.Customs; + export type Service = Stripe_.Issuing.Card.Shipping.Service; + export type Status = Stripe_.Issuing.Card.Shipping.Status; + export type Type = Stripe_.Issuing.Card.Shipping.Type; + export namespace AddressValidation { + export type Mode = Stripe_.Issuing.Card.Shipping.AddressValidation.Mode; + export type Result = Stripe_.Issuing.Card.Shipping.AddressValidation.Result; + } + } + export namespace SpendingControls { + export type AllowedCardPresence = Stripe_.Issuing.Card.SpendingControls.AllowedCardPresence; + export type AllowedCategory = Stripe_.Issuing.Card.SpendingControls.AllowedCategory; + export type BlockedCardPresence = Stripe_.Issuing.Card.SpendingControls.BlockedCardPresence; + export type BlockedCategory = Stripe_.Issuing.Card.SpendingControls.BlockedCategory; + export type SpendingLimit = Stripe_.Issuing.Card.SpendingControls.SpendingLimit; + export namespace SpendingLimit { + export type Category = Stripe_.Issuing.Card.SpendingControls.SpendingLimit.Category; + export type Interval = Stripe_.Issuing.Card.SpendingControls.SpendingLimit.Interval; + } + } + export namespace Wallets { + export type ApplePay = Stripe_.Issuing.Card.Wallets.ApplePay; + export type GooglePay = Stripe_.Issuing.Card.Wallets.GooglePay; + export namespace ApplePay { + export type IneligibleReason = Stripe_.Issuing.Card.Wallets.ApplePay.IneligibleReason; + } + export namespace GooglePay { + export type IneligibleReason = Stripe_.Issuing.Card.Wallets.GooglePay.IneligibleReason; + } + } } export namespace CardholderCreateParams { - export type Billing = Stripe.Issuing.CardholderCreateParams.Billing; - export type Company = Stripe.Issuing.CardholderCreateParams.Company; - export type Individual = Stripe.Issuing.CardholderCreateParams.Individual; - export type PreferredLocale = Stripe.Issuing.CardholderCreateParams.PreferredLocale; - export type SpendingControls = Stripe.Issuing.CardholderCreateParams.SpendingControls; - export type Status = Stripe.Issuing.CardholderCreateParams.Status; - export type Type = Stripe.Issuing.CardholderCreateParams.Type; - } - export namespace CardholderUpdateParams { - export type Billing = Stripe.Issuing.CardholderUpdateParams.Billing; - export type Company = Stripe.Issuing.CardholderUpdateParams.Company; - export type Individual = Stripe.Issuing.CardholderUpdateParams.Individual; - export type PreferredLocale = Stripe.Issuing.CardholderUpdateParams.PreferredLocale; - export type SpendingControls = Stripe.Issuing.CardholderUpdateParams.SpendingControls; - export type Status = Stripe.Issuing.CardholderUpdateParams.Status; - } - export namespace CardholderListParams { - export type Status = Stripe.Issuing.CardholderListParams.Status; - export type Type = Stripe.Issuing.CardholderListParams.Type; - } - export namespace CreditUnderwritingRecordCorrectParams { - export type Application = Stripe.Issuing.CreditUnderwritingRecordCorrectParams.Application; - export type CreditUser = Stripe.Issuing.CreditUnderwritingRecordCorrectParams.CreditUser; - export type Decision = Stripe.Issuing.CreditUnderwritingRecordCorrectParams.Decision; - export type UnderwritingException = Stripe.Issuing.CreditUnderwritingRecordCorrectParams.UnderwritingException; - } - export namespace CreditUnderwritingRecordCreateFromApplicationParams { - export type Application = Stripe.Issuing.CreditUnderwritingRecordCreateFromApplicationParams.Application; - export type CreditUser = Stripe.Issuing.CreditUnderwritingRecordCreateFromApplicationParams.CreditUser; - } - export namespace CreditUnderwritingRecordCreateFromProactiveReviewParams { - export type CreditUser = Stripe.Issuing.CreditUnderwritingRecordCreateFromProactiveReviewParams.CreditUser; - export type Decision = Stripe.Issuing.CreditUnderwritingRecordCreateFromProactiveReviewParams.Decision; - export type UnderwritingException = Stripe.Issuing.CreditUnderwritingRecordCreateFromProactiveReviewParams.UnderwritingException; - } - export namespace CreditUnderwritingRecordReportDecisionParams { - export type Decision = Stripe.Issuing.CreditUnderwritingRecordReportDecisionParams.Decision; - export type UnderwritingException = Stripe.Issuing.CreditUnderwritingRecordReportDecisionParams.UnderwritingException; + export type Billing = Stripe_.Issuing.CardholderCreateParams.Billing; + export type Company = Stripe_.Issuing.CardholderCreateParams.Company; + export type Individual = Stripe_.Issuing.CardholderCreateParams.Individual; + export type PreferredLocale = Stripe_.Issuing.CardholderCreateParams.PreferredLocale; + export type SpendingControls = Stripe_.Issuing.CardholderCreateParams.SpendingControls; + export type Status = Stripe_.Issuing.CardholderCreateParams.Status; + export type Type = Stripe_.Issuing.CardholderCreateParams.Type; + export namespace Billing { + export type Address = Stripe_.Issuing.CardholderCreateParams.Billing.Address; + } + export namespace Individual { + export type CardIssuing = Stripe_.Issuing.CardholderCreateParams.Individual.CardIssuing; + export type Dob = Stripe_.Issuing.CardholderCreateParams.Individual.Dob; + export type Verification = Stripe_.Issuing.CardholderCreateParams.Individual.Verification; + export namespace CardIssuing { + export type UserTermsAcceptance = Stripe_.Issuing.CardholderCreateParams.Individual.CardIssuing.UserTermsAcceptance; + } + export namespace Verification { + export type Document = Stripe_.Issuing.CardholderCreateParams.Individual.Verification.Document; + } + } + export namespace SpendingControls { + export type AllowedCardPresence = Stripe_.Issuing.CardholderCreateParams.SpendingControls.AllowedCardPresence; + export type AllowedCategory = Stripe_.Issuing.CardholderCreateParams.SpendingControls.AllowedCategory; + export type BlockedCardPresence = Stripe_.Issuing.CardholderCreateParams.SpendingControls.BlockedCardPresence; + export type BlockedCategory = Stripe_.Issuing.CardholderCreateParams.SpendingControls.BlockedCategory; + export type SpendingLimit = Stripe_.Issuing.CardholderCreateParams.SpendingControls.SpendingLimit; + export namespace SpendingLimit { + export type Category = Stripe_.Issuing.CardholderCreateParams.SpendingControls.SpendingLimit.Category; + export type Interval = Stripe_.Issuing.CardholderCreateParams.SpendingControls.SpendingLimit.Interval; + } + } + } + export namespace Cardholder { + export type Billing = Stripe_.Issuing.Cardholder.Billing; + export type Company = Stripe_.Issuing.Cardholder.Company; + export type Individual = Stripe_.Issuing.Cardholder.Individual; + export type PreferredLocale = Stripe_.Issuing.Cardholder.PreferredLocale; + export type Requirements = Stripe_.Issuing.Cardholder.Requirements; + export type SpendingControls = Stripe_.Issuing.Cardholder.SpendingControls; + export type Status = Stripe_.Issuing.Cardholder.Status; + export type Type = Stripe_.Issuing.Cardholder.Type; + export namespace Individual { + export type CardIssuing = Stripe_.Issuing.Cardholder.Individual.CardIssuing; + export type Dob = Stripe_.Issuing.Cardholder.Individual.Dob; + export type Verification = Stripe_.Issuing.Cardholder.Individual.Verification; + export namespace CardIssuing { + export type UserTermsAcceptance = Stripe_.Issuing.Cardholder.Individual.CardIssuing.UserTermsAcceptance; + } + export namespace Verification { + export type Document = Stripe_.Issuing.Cardholder.Individual.Verification.Document; + } + } + export namespace Requirements { + export type DisabledReason = Stripe_.Issuing.Cardholder.Requirements.DisabledReason; + export type PastDue = Stripe_.Issuing.Cardholder.Requirements.PastDue; + } + export namespace SpendingControls { + export type AllowedCardPresence = Stripe_.Issuing.Cardholder.SpendingControls.AllowedCardPresence; + export type AllowedCategory = Stripe_.Issuing.Cardholder.SpendingControls.AllowedCategory; + export type BlockedCardPresence = Stripe_.Issuing.Cardholder.SpendingControls.BlockedCardPresence; + export type BlockedCategory = Stripe_.Issuing.Cardholder.SpendingControls.BlockedCategory; + export type SpendingLimit = Stripe_.Issuing.Cardholder.SpendingControls.SpendingLimit; + export namespace SpendingLimit { + export type Category = Stripe_.Issuing.Cardholder.SpendingControls.SpendingLimit.Category; + export type Interval = Stripe_.Issuing.Cardholder.SpendingControls.SpendingLimit.Interval; + } + } + } + export namespace CreditUnderwritingRecord { + export type Application = Stripe_.Issuing.CreditUnderwritingRecord.Application; + export type CreatedFrom = Stripe_.Issuing.CreditUnderwritingRecord.CreatedFrom; + export type CreditUser = Stripe_.Issuing.CreditUnderwritingRecord.CreditUser; + export type Decision = Stripe_.Issuing.CreditUnderwritingRecord.Decision; + export type UnderwritingException = Stripe_.Issuing.CreditUnderwritingRecord.UnderwritingException; + export namespace Application { + export type ApplicationMethod = Stripe_.Issuing.CreditUnderwritingRecord.Application.ApplicationMethod; + export type Purpose = Stripe_.Issuing.CreditUnderwritingRecord.Application.Purpose; + } + export namespace Decision { + export type ApplicationRejected = Stripe_.Issuing.CreditUnderwritingRecord.Decision.ApplicationRejected; + export type CreditLimitApproved = Stripe_.Issuing.CreditUnderwritingRecord.Decision.CreditLimitApproved; + export type CreditLimitDecreased = Stripe_.Issuing.CreditUnderwritingRecord.Decision.CreditLimitDecreased; + export type CreditLineClosed = Stripe_.Issuing.CreditUnderwritingRecord.Decision.CreditLineClosed; + export type Type = Stripe_.Issuing.CreditUnderwritingRecord.Decision.Type; + export namespace ApplicationRejected { + export type Reason = Stripe_.Issuing.CreditUnderwritingRecord.Decision.ApplicationRejected.Reason; + } + export namespace CreditLimitDecreased { + export type Reason = Stripe_.Issuing.CreditUnderwritingRecord.Decision.CreditLimitDecreased.Reason; + } + export namespace CreditLineClosed { + export type Reason = Stripe_.Issuing.CreditUnderwritingRecord.Decision.CreditLineClosed.Reason; + } + } + export namespace UnderwritingException { + export type OriginalDecisionType = Stripe_.Issuing.CreditUnderwritingRecord.UnderwritingException.OriginalDecisionType; + } } export namespace DisputeCreateParams { - export type Evidence = Stripe.Issuing.DisputeCreateParams.Evidence; - export type Treasury = Stripe.Issuing.DisputeCreateParams.Treasury; + export type Evidence = Stripe_.Issuing.DisputeCreateParams.Evidence; + export type Treasury = Stripe_.Issuing.DisputeCreateParams.Treasury; + export namespace Evidence { + export type Canceled = Stripe_.Issuing.DisputeCreateParams.Evidence.Canceled; + export type Duplicate = Stripe_.Issuing.DisputeCreateParams.Evidence.Duplicate; + export type Fraudulent = Stripe_.Issuing.DisputeCreateParams.Evidence.Fraudulent; + export type MerchandiseNotAsDescribed = Stripe_.Issuing.DisputeCreateParams.Evidence.MerchandiseNotAsDescribed; + export type NoValidAuthorization = Stripe_.Issuing.DisputeCreateParams.Evidence.NoValidAuthorization; + export type NotReceived = Stripe_.Issuing.DisputeCreateParams.Evidence.NotReceived; + export type Other = Stripe_.Issuing.DisputeCreateParams.Evidence.Other; + export type Reason = Stripe_.Issuing.DisputeCreateParams.Evidence.Reason; + export type ServiceNotAsDescribed = Stripe_.Issuing.DisputeCreateParams.Evidence.ServiceNotAsDescribed; + export namespace Canceled { + export type ProductType = Stripe_.Issuing.DisputeCreateParams.Evidence.Canceled.ProductType; + export type ReturnStatus = Stripe_.Issuing.DisputeCreateParams.Evidence.Canceled.ReturnStatus; + } + export namespace MerchandiseNotAsDescribed { + export type ReturnStatus = Stripe_.Issuing.DisputeCreateParams.Evidence.MerchandiseNotAsDescribed.ReturnStatus; + } + export namespace NotReceived { + export type ProductType = Stripe_.Issuing.DisputeCreateParams.Evidence.NotReceived.ProductType; + } + export namespace Other { + export type ProductType = Stripe_.Issuing.DisputeCreateParams.Evidence.Other.ProductType; + } + } } - export namespace DisputeUpdateParams { - export type Evidence = Stripe.Issuing.DisputeUpdateParams.Evidence; + export namespace Dispute { + export type Evidence = Stripe_.Issuing.Dispute.Evidence; + export type LossReason = Stripe_.Issuing.Dispute.LossReason; + export type Status = Stripe_.Issuing.Dispute.Status; + export type Treasury = Stripe_.Issuing.Dispute.Treasury; + export namespace Evidence { + export type Canceled = Stripe_.Issuing.Dispute.Evidence.Canceled; + export type Duplicate = Stripe_.Issuing.Dispute.Evidence.Duplicate; + export type Fraudulent = Stripe_.Issuing.Dispute.Evidence.Fraudulent; + export type MerchandiseNotAsDescribed = Stripe_.Issuing.Dispute.Evidence.MerchandiseNotAsDescribed; + export type NoValidAuthorization = Stripe_.Issuing.Dispute.Evidence.NoValidAuthorization; + export type NotReceived = Stripe_.Issuing.Dispute.Evidence.NotReceived; + export type Other = Stripe_.Issuing.Dispute.Evidence.Other; + export type Reason = Stripe_.Issuing.Dispute.Evidence.Reason; + export type ServiceNotAsDescribed = Stripe_.Issuing.Dispute.Evidence.ServiceNotAsDescribed; + export namespace Canceled { + export type ProductType = Stripe_.Issuing.Dispute.Evidence.Canceled.ProductType; + export type ReturnStatus = Stripe_.Issuing.Dispute.Evidence.Canceled.ReturnStatus; + } + export namespace MerchandiseNotAsDescribed { + export type ReturnStatus = Stripe_.Issuing.Dispute.Evidence.MerchandiseNotAsDescribed.ReturnStatus; + } + export namespace NotReceived { + export type ProductType = Stripe_.Issuing.Dispute.Evidence.NotReceived.ProductType; + } + export namespace Other { + export type ProductType = Stripe_.Issuing.Dispute.Evidence.Other.ProductType; + } + } } - export namespace DisputeListParams { - export type Status = Stripe.Issuing.DisputeListParams.Status; + export namespace DisputeSettlementDetail { + export type EventType = Stripe_.Issuing.DisputeSettlementDetail.EventType; + export type Network = Stripe_.Issuing.DisputeSettlementDetail.Network; + export type NetworkData = Stripe_.Issuing.DisputeSettlementDetail.NetworkData; } export namespace PersonalizationDesignCreateParams { - export type CarrierText = Stripe.Issuing.PersonalizationDesignCreateParams.CarrierText; - export type Preferences = Stripe.Issuing.PersonalizationDesignCreateParams.Preferences; + export type CarrierText = Stripe_.Issuing.PersonalizationDesignCreateParams.CarrierText; + export type Preferences = Stripe_.Issuing.PersonalizationDesignCreateParams.Preferences; } - export namespace PersonalizationDesignUpdateParams { - export type CarrierText = Stripe.Issuing.PersonalizationDesignUpdateParams.CarrierText; - export type Preferences = Stripe.Issuing.PersonalizationDesignUpdateParams.Preferences; - } - export namespace PersonalizationDesignListParams { - export type Preferences = Stripe.Issuing.PersonalizationDesignListParams.Preferences; - export type Status = Stripe.Issuing.PersonalizationDesignListParams.Status; + export namespace PersonalizationDesign { + export type CarrierText = Stripe_.Issuing.PersonalizationDesign.CarrierText; + export type Preferences = Stripe_.Issuing.PersonalizationDesign.Preferences; + export type RejectionReasons = Stripe_.Issuing.PersonalizationDesign.RejectionReasons; + export type Status = Stripe_.Issuing.PersonalizationDesign.Status; + export namespace RejectionReasons { + export type CardLogo = Stripe_.Issuing.PersonalizationDesign.RejectionReasons.CardLogo; + export type CarrierText = Stripe_.Issuing.PersonalizationDesign.RejectionReasons.CarrierText; + } } - export namespace PhysicalBundleListParams { - export type Status = Stripe.Issuing.PhysicalBundleListParams.Status; - export type Type = Stripe.Issuing.PhysicalBundleListParams.Type; + export namespace PhysicalBundle { + export type Features = Stripe_.Issuing.PhysicalBundle.Features; + export type Status = Stripe_.Issuing.PhysicalBundle.Status; + export type Type = Stripe_.Issuing.PhysicalBundle.Type; + export namespace Features { + export type CardLogo = Stripe_.Issuing.PhysicalBundle.Features.CardLogo; + export type CarrierText = Stripe_.Issuing.PhysicalBundle.Features.CarrierText; + export type SecondLine = Stripe_.Issuing.PhysicalBundle.Features.SecondLine; + } } - export namespace TokenUpdateParams { - export type Status = Stripe.Issuing.TokenUpdateParams.Status; + export namespace Token { + export type Network = Stripe_.Issuing.Token.Network; + export type NetworkData = Stripe_.Issuing.Token.NetworkData; + export type Status = Stripe_.Issuing.Token.Status; + export type WalletProvider = Stripe_.Issuing.Token.WalletProvider; + export namespace NetworkData { + export type Device = Stripe_.Issuing.Token.NetworkData.Device; + export type Mastercard = Stripe_.Issuing.Token.NetworkData.Mastercard; + export type Type = Stripe_.Issuing.Token.NetworkData.Type; + export type Visa = Stripe_.Issuing.Token.NetworkData.Visa; + export type WalletProvider = Stripe_.Issuing.Token.NetworkData.WalletProvider; + export namespace Device { + export type Type = Stripe_.Issuing.Token.NetworkData.Device.Type; + } + export namespace WalletProvider { + export type CardNumberSource = Stripe_.Issuing.Token.NetworkData.WalletProvider.CardNumberSource; + export type CardholderAddress = Stripe_.Issuing.Token.NetworkData.WalletProvider.CardholderAddress; + export type ReasonCode = Stripe_.Issuing.Token.NetworkData.WalletProvider.ReasonCode; + export type SuggestedDecision = Stripe_.Issuing.Token.NetworkData.WalletProvider.SuggestedDecision; + } + } } - export namespace TokenListParams { - export type Status = Stripe.Issuing.TokenListParams.Status; + export namespace Transaction { + export type AmountDetails = Stripe_.Issuing.Transaction.AmountDetails; + export type MerchantData = Stripe_.Issuing.Transaction.MerchantData; + export type NetworkData = Stripe_.Issuing.Transaction.NetworkData; + export type PurchaseDetails = Stripe_.Issuing.Transaction.PurchaseDetails; + export type Treasury = Stripe_.Issuing.Transaction.Treasury; + export type Type = Stripe_.Issuing.Transaction.Type; + export type Wallet = Stripe_.Issuing.Transaction.Wallet; + export namespace PurchaseDetails { + export type Fleet = Stripe_.Issuing.Transaction.PurchaseDetails.Fleet; + export type Flight = Stripe_.Issuing.Transaction.PurchaseDetails.Flight; + export type Fuel = Stripe_.Issuing.Transaction.PurchaseDetails.Fuel; + export type Lodging = Stripe_.Issuing.Transaction.PurchaseDetails.Lodging; + export type Receipt = Stripe_.Issuing.Transaction.PurchaseDetails.Receipt; + export namespace Fleet { + export type CardholderPromptData = Stripe_.Issuing.Transaction.PurchaseDetails.Fleet.CardholderPromptData; + export type ReportedBreakdown = Stripe_.Issuing.Transaction.PurchaseDetails.Fleet.ReportedBreakdown; + export namespace ReportedBreakdown { + export type Fuel = Stripe_.Issuing.Transaction.PurchaseDetails.Fleet.ReportedBreakdown.Fuel; + export type NonFuel = Stripe_.Issuing.Transaction.PurchaseDetails.Fleet.ReportedBreakdown.NonFuel; + export type Tax = Stripe_.Issuing.Transaction.PurchaseDetails.Fleet.ReportedBreakdown.Tax; + } + } + export namespace Flight { + export type Segment = Stripe_.Issuing.Transaction.PurchaseDetails.Flight.Segment; + } + } } - export namespace TransactionListParams { - export type Type = Stripe.Issuing.TransactionListParams.Type; + export namespace Settlement { + export type Network = Stripe_.Issuing.Settlement.Network; + export type Status = Stripe_.Issuing.Settlement.Status; } } export namespace Privacy { - export type RedactionJob = Stripe.Privacy.RedactionJob; - export type RedactionJobCreateParams = Stripe.Privacy.RedactionJobCreateParams; - export type RedactionJobRetrieveParams = Stripe.Privacy.RedactionJobRetrieveParams; - export type RedactionJobUpdateParams = Stripe.Privacy.RedactionJobUpdateParams; - export type RedactionJobListParams = Stripe.Privacy.RedactionJobListParams; - export type RedactionJobCancelParams = Stripe.Privacy.RedactionJobCancelParams; - export type RedactionJobListValidationErrorsParams = Stripe.Privacy.RedactionJobListValidationErrorsParams; - export type RedactionJobRunParams = Stripe.Privacy.RedactionJobRunParams; - export type RedactionJobValidateParams = Stripe.Privacy.RedactionJobValidateParams; - export type RedactionJobResource = Stripe.Privacy.RedactionJobResource; - export type RedactionJobValidationError = Stripe.Privacy.RedactionJobValidationError; + export type RedactionJob = Stripe_.Privacy.RedactionJob; + export type RedactionJobCreateParams = Stripe_.Privacy.RedactionJobCreateParams; + export type RedactionJobRetrieveParams = Stripe_.Privacy.RedactionJobRetrieveParams; + export type RedactionJobUpdateParams = Stripe_.Privacy.RedactionJobUpdateParams; + export type RedactionJobListParams = Stripe_.Privacy.RedactionJobListParams; + export type RedactionJobCancelParams = Stripe_.Privacy.RedactionJobCancelParams; + export type RedactionJobListValidationErrorsParams = Stripe_.Privacy.RedactionJobListValidationErrorsParams; + export type RedactionJobRunParams = Stripe_.Privacy.RedactionJobRunParams; + export type RedactionJobValidateParams = Stripe_.Privacy.RedactionJobValidateParams; + export type RedactionJobResource = Stripe_.Privacy.RedactionJobResource; + export type RedactionJobValidationError = Stripe_.Privacy.RedactionJobValidationError; export namespace RedactionJobCreateParams { - export type Objects = Stripe.Privacy.RedactionJobCreateParams.Objects; - export type ValidationBehavior = Stripe.Privacy.RedactionJobCreateParams.ValidationBehavior; + export type Objects = Stripe_.Privacy.RedactionJobCreateParams.Objects; + export type ValidationBehavior = Stripe_.Privacy.RedactionJobCreateParams.ValidationBehavior; } - export namespace RedactionJobUpdateParams { - export type ValidationBehavior = Stripe.Privacy.RedactionJobUpdateParams.ValidationBehavior; + export namespace RedactionJob { + export type Objects = Stripe_.Privacy.RedactionJob.Objects; + export type Status = Stripe_.Privacy.RedactionJob.Status; + export type ValidationBehavior = Stripe_.Privacy.RedactionJob.ValidationBehavior; } - export namespace RedactionJobListParams { - export type Status = Stripe.Privacy.RedactionJobListParams.Status; + export namespace RedactionJobValidationError { + export type Code = Stripe_.Privacy.RedactionJobValidationError.Code; + export type ErroringObject = Stripe_.Privacy.RedactionJobValidationError.ErroringObject; } } export namespace ProductCatalog { - export type TrialOffer = Stripe.ProductCatalog.TrialOffer; - export type TrialOfferCreateParams = Stripe.ProductCatalog.TrialOfferCreateParams; - export type TrialOfferResource = Stripe.ProductCatalog.TrialOfferResource; + export type TrialOffer = Stripe_.ProductCatalog.TrialOffer; + export type TrialOfferCreateParams = Stripe_.ProductCatalog.TrialOfferCreateParams; + export type TrialOfferResource = Stripe_.ProductCatalog.TrialOfferResource; export namespace TrialOfferCreateParams { - export type Duration = Stripe.ProductCatalog.TrialOfferCreateParams.Duration; - export type EndBehavior = Stripe.ProductCatalog.TrialOfferCreateParams.EndBehavior; + export type Duration = Stripe_.ProductCatalog.TrialOfferCreateParams.Duration; + export type EndBehavior = Stripe_.ProductCatalog.TrialOfferCreateParams.EndBehavior; + export namespace Duration { + export type Relative = Stripe_.ProductCatalog.TrialOfferCreateParams.Duration.Relative; + export type Type = Stripe_.ProductCatalog.TrialOfferCreateParams.Duration.Type; + } + export namespace EndBehavior { + export type Transition = Stripe_.ProductCatalog.TrialOfferCreateParams.EndBehavior.Transition; + } + } + export namespace TrialOffer { + export type Duration = Stripe_.ProductCatalog.TrialOffer.Duration; + export type EndBehavior = Stripe_.ProductCatalog.TrialOffer.EndBehavior; + export namespace Duration { + export type Relative = Stripe_.ProductCatalog.TrialOffer.Duration.Relative; + export type Type = Stripe_.ProductCatalog.TrialOffer.Duration.Type; + } + export namespace EndBehavior { + export type Transition = Stripe_.ProductCatalog.TrialOffer.EndBehavior.Transition; + } } } export namespace Radar { - export type EarlyFraudWarning = Stripe.Radar.EarlyFraudWarning; - export type EarlyFraudWarningRetrieveParams = Stripe.Radar.EarlyFraudWarningRetrieveParams; - export type EarlyFraudWarningListParams = Stripe.Radar.EarlyFraudWarningListParams; - export type EarlyFraudWarningResource = Stripe.Radar.EarlyFraudWarningResource; - export type PaymentEvaluation = Stripe.Radar.PaymentEvaluation; - export type PaymentEvaluationCreateParams = Stripe.Radar.PaymentEvaluationCreateParams; - export type PaymentEvaluationResource = Stripe.Radar.PaymentEvaluationResource; - export type ValueList = Stripe.Radar.ValueList; - export type DeletedValueList = Stripe.Radar.DeletedValueList; - export type ValueListCreateParams = Stripe.Radar.ValueListCreateParams; - export type ValueListRetrieveParams = Stripe.Radar.ValueListRetrieveParams; - export type ValueListUpdateParams = Stripe.Radar.ValueListUpdateParams; - export type ValueListListParams = Stripe.Radar.ValueListListParams; - export type ValueListDeleteParams = Stripe.Radar.ValueListDeleteParams; - export type ValueListResource = Stripe.Radar.ValueListResource; - export type ValueListItem = Stripe.Radar.ValueListItem; - export type DeletedValueListItem = Stripe.Radar.DeletedValueListItem; - export type ValueListItemCreateParams = Stripe.Radar.ValueListItemCreateParams; - export type ValueListItemRetrieveParams = Stripe.Radar.ValueListItemRetrieveParams; - export type ValueListItemListParams = Stripe.Radar.ValueListItemListParams; - export type ValueListItemDeleteParams = Stripe.Radar.ValueListItemDeleteParams; - export type ValueListItemResource = Stripe.Radar.ValueListItemResource; + export type EarlyFraudWarning = Stripe_.Radar.EarlyFraudWarning; + export type EarlyFraudWarningRetrieveParams = Stripe_.Radar.EarlyFraudWarningRetrieveParams; + export type EarlyFraudWarningListParams = Stripe_.Radar.EarlyFraudWarningListParams; + export type EarlyFraudWarningResource = Stripe_.Radar.EarlyFraudWarningResource; + export type PaymentEvaluation = Stripe_.Radar.PaymentEvaluation; + export type PaymentEvaluationCreateParams = Stripe_.Radar.PaymentEvaluationCreateParams; + export type PaymentEvaluationResource = Stripe_.Radar.PaymentEvaluationResource; + export type ValueList = Stripe_.Radar.ValueList; + export type DeletedValueList = Stripe_.Radar.DeletedValueList; + export type ValueListCreateParams = Stripe_.Radar.ValueListCreateParams; + export type ValueListRetrieveParams = Stripe_.Radar.ValueListRetrieveParams; + export type ValueListUpdateParams = Stripe_.Radar.ValueListUpdateParams; + export type ValueListListParams = Stripe_.Radar.ValueListListParams; + export type ValueListDeleteParams = Stripe_.Radar.ValueListDeleteParams; + export type ValueListResource = Stripe_.Radar.ValueListResource; + export type ValueListItem = Stripe_.Radar.ValueListItem; + export type DeletedValueListItem = Stripe_.Radar.DeletedValueListItem; + export type ValueListItemCreateParams = Stripe_.Radar.ValueListItemCreateParams; + export type ValueListItemRetrieveParams = Stripe_.Radar.ValueListItemRetrieveParams; + export type ValueListItemListParams = Stripe_.Radar.ValueListItemListParams; + export type ValueListItemDeleteParams = Stripe_.Radar.ValueListItemDeleteParams; + export type ValueListItemResource = Stripe_.Radar.ValueListItemResource; export namespace PaymentEvaluationCreateParams { - export type CustomerDetails = Stripe.Radar.PaymentEvaluationCreateParams.CustomerDetails; - export type PaymentDetails = Stripe.Radar.PaymentEvaluationCreateParams.PaymentDetails; - export type ClientDeviceMetadataDetails = Stripe.Radar.PaymentEvaluationCreateParams.ClientDeviceMetadataDetails; + export type CustomerDetails = Stripe_.Radar.PaymentEvaluationCreateParams.CustomerDetails; + export type PaymentDetails = Stripe_.Radar.PaymentEvaluationCreateParams.PaymentDetails; + export type ClientDeviceMetadataDetails = Stripe_.Radar.PaymentEvaluationCreateParams.ClientDeviceMetadataDetails; + export namespace PaymentDetails { + export type MoneyMovementDetails = Stripe_.Radar.PaymentEvaluationCreateParams.PaymentDetails.MoneyMovementDetails; + export type PaymentMethodDetails = Stripe_.Radar.PaymentEvaluationCreateParams.PaymentDetails.PaymentMethodDetails; + export type ShippingDetails = Stripe_.Radar.PaymentEvaluationCreateParams.PaymentDetails.ShippingDetails; + export namespace MoneyMovementDetails { + export type Card = Stripe_.Radar.PaymentEvaluationCreateParams.PaymentDetails.MoneyMovementDetails.Card; + export namespace Card { + export type CustomerPresence = Stripe_.Radar.PaymentEvaluationCreateParams.PaymentDetails.MoneyMovementDetails.Card.CustomerPresence; + export type PaymentType = Stripe_.Radar.PaymentEvaluationCreateParams.PaymentDetails.MoneyMovementDetails.Card.PaymentType; + } + } + export namespace PaymentMethodDetails { + export type BillingDetails = Stripe_.Radar.PaymentEvaluationCreateParams.PaymentDetails.PaymentMethodDetails.BillingDetails; + } + } + } + export namespace PaymentEvaluation { + export type ClientDeviceMetadataDetails = Stripe_.Radar.PaymentEvaluation.ClientDeviceMetadataDetails; + export type CustomerDetails = Stripe_.Radar.PaymentEvaluation.CustomerDetails; + export type Event = Stripe_.Radar.PaymentEvaluation.Event; + export type Outcome = Stripe_.Radar.PaymentEvaluation.Outcome; + export type PaymentDetails = Stripe_.Radar.PaymentEvaluation.PaymentDetails; + export type RecommendedAction = Stripe_.Radar.PaymentEvaluation.RecommendedAction; + export type Signals = Stripe_.Radar.PaymentEvaluation.Signals; + export namespace Event { + export type DisputeOpened = Stripe_.Radar.PaymentEvaluation.Event.DisputeOpened; + export type EarlyFraudWarningReceived = Stripe_.Radar.PaymentEvaluation.Event.EarlyFraudWarningReceived; + export type Refunded = Stripe_.Radar.PaymentEvaluation.Event.Refunded; + export type Type = Stripe_.Radar.PaymentEvaluation.Event.Type; + export type UserInterventionRaised = Stripe_.Radar.PaymentEvaluation.Event.UserInterventionRaised; + export type UserInterventionResolved = Stripe_.Radar.PaymentEvaluation.Event.UserInterventionResolved; + export namespace DisputeOpened { + export type Reason = Stripe_.Radar.PaymentEvaluation.Event.DisputeOpened.Reason; + } + export namespace EarlyFraudWarningReceived { + export type FraudType = Stripe_.Radar.PaymentEvaluation.Event.EarlyFraudWarningReceived.FraudType; + } + export namespace Refunded { + export type Reason = Stripe_.Radar.PaymentEvaluation.Event.Refunded.Reason; + } + export namespace UserInterventionRaised { + export type Custom = Stripe_.Radar.PaymentEvaluation.Event.UserInterventionRaised.Custom; + export type Type = Stripe_.Radar.PaymentEvaluation.Event.UserInterventionRaised.Type; + } + export namespace UserInterventionResolved { + export type Outcome = Stripe_.Radar.PaymentEvaluation.Event.UserInterventionResolved.Outcome; + } + } + export namespace Outcome { + export type MerchantBlocked = Stripe_.Radar.PaymentEvaluation.Outcome.MerchantBlocked; + export type Rejected = Stripe_.Radar.PaymentEvaluation.Outcome.Rejected; + export type Succeeded = Stripe_.Radar.PaymentEvaluation.Outcome.Succeeded; + export type Type = Stripe_.Radar.PaymentEvaluation.Outcome.Type; + export namespace MerchantBlocked { + export type Reason = Stripe_.Radar.PaymentEvaluation.Outcome.MerchantBlocked.Reason; + } + export namespace Rejected { + export type Card = Stripe_.Radar.PaymentEvaluation.Outcome.Rejected.Card; + export namespace Card { + export type AddressLine1Check = Stripe_.Radar.PaymentEvaluation.Outcome.Rejected.Card.AddressLine1Check; + export type AddressPostalCodeCheck = Stripe_.Radar.PaymentEvaluation.Outcome.Rejected.Card.AddressPostalCodeCheck; + export type CvcCheck = Stripe_.Radar.PaymentEvaluation.Outcome.Rejected.Card.CvcCheck; + export type Reason = Stripe_.Radar.PaymentEvaluation.Outcome.Rejected.Card.Reason; + } + } + export namespace Succeeded { + export type Card = Stripe_.Radar.PaymentEvaluation.Outcome.Succeeded.Card; + export namespace Card { + export type AddressLine1Check = Stripe_.Radar.PaymentEvaluation.Outcome.Succeeded.Card.AddressLine1Check; + export type AddressPostalCodeCheck = Stripe_.Radar.PaymentEvaluation.Outcome.Succeeded.Card.AddressPostalCodeCheck; + export type CvcCheck = Stripe_.Radar.PaymentEvaluation.Outcome.Succeeded.Card.CvcCheck; + } + } + } + export namespace PaymentDetails { + export type MoneyMovementDetails = Stripe_.Radar.PaymentEvaluation.PaymentDetails.MoneyMovementDetails; + export type PaymentMethodDetails = Stripe_.Radar.PaymentEvaluation.PaymentDetails.PaymentMethodDetails; + export type ShippingDetails = Stripe_.Radar.PaymentEvaluation.PaymentDetails.ShippingDetails; + export namespace MoneyMovementDetails { + export type Card = Stripe_.Radar.PaymentEvaluation.PaymentDetails.MoneyMovementDetails.Card; + export namespace Card { + export type CustomerPresence = Stripe_.Radar.PaymentEvaluation.PaymentDetails.MoneyMovementDetails.Card.CustomerPresence; + export type PaymentType = Stripe_.Radar.PaymentEvaluation.PaymentDetails.MoneyMovementDetails.Card.PaymentType; + } + } + export namespace PaymentMethodDetails { + export type BillingDetails = Stripe_.Radar.PaymentEvaluation.PaymentDetails.PaymentMethodDetails.BillingDetails; + } + } + export namespace Signals { + export type FraudulentPayment = Stripe_.Radar.PaymentEvaluation.Signals.FraudulentPayment; + export namespace FraudulentPayment { + export type RiskLevel = Stripe_.Radar.PaymentEvaluation.Signals.FraudulentPayment.RiskLevel; + } + } } export namespace ValueListCreateParams { - export type ItemType = Stripe.Radar.ValueListCreateParams.ItemType; + export type ItemType = Stripe_.Radar.ValueListCreateParams.ItemType; + } + export namespace ValueList { + export type ItemType = Stripe_.Radar.ValueList.ItemType; } } export namespace Reporting { - export type ReportRun = Stripe.Reporting.ReportRun; - export type ReportRunCreateParams = Stripe.Reporting.ReportRunCreateParams; - export type ReportRunRetrieveParams = Stripe.Reporting.ReportRunRetrieveParams; - export type ReportRunListParams = Stripe.Reporting.ReportRunListParams; - export type ReportRunResource = Stripe.Reporting.ReportRunResource; - export type ReportType = Stripe.Reporting.ReportType; - export type ReportTypeRetrieveParams = Stripe.Reporting.ReportTypeRetrieveParams; - export type ReportTypeListParams = Stripe.Reporting.ReportTypeListParams; - export type ReportTypeResource = Stripe.Reporting.ReportTypeResource; + export type ReportRun = Stripe_.Reporting.ReportRun; + export type ReportRunCreateParams = Stripe_.Reporting.ReportRunCreateParams; + export type ReportRunRetrieveParams = Stripe_.Reporting.ReportRunRetrieveParams; + export type ReportRunListParams = Stripe_.Reporting.ReportRunListParams; + export type ReportRunResource = Stripe_.Reporting.ReportRunResource; + export type ReportType = Stripe_.Reporting.ReportType; + export type ReportTypeRetrieveParams = Stripe_.Reporting.ReportTypeRetrieveParams; + export type ReportTypeListParams = Stripe_.Reporting.ReportTypeListParams; + export type ReportTypeResource = Stripe_.Reporting.ReportTypeResource; export namespace ReportRunCreateParams { - export type Parameters = Stripe.Reporting.ReportRunCreateParams.Parameters; + export type Parameters = Stripe_.Reporting.ReportRunCreateParams.Parameters; + export namespace Parameters { + export type ReportingCategory = Stripe_.Reporting.ReportRunCreateParams.Parameters.ReportingCategory; + export type Timezone = Stripe_.Reporting.ReportRunCreateParams.Parameters.Timezone; + } + } + export namespace ReportRun { + export type Parameters = Stripe_.Reporting.ReportRun.Parameters; } } export namespace Reserve { - export type Hold = Stripe.Reserve.Hold; - export type HoldRetrieveParams = Stripe.Reserve.HoldRetrieveParams; - export type HoldListParams = Stripe.Reserve.HoldListParams; - export type HoldResource = Stripe.Reserve.HoldResource; - export type Plan = Stripe.Reserve.Plan; - export type PlanRetrieveParams = Stripe.Reserve.PlanRetrieveParams; - export type PlanResource = Stripe.Reserve.PlanResource; - export type Release = Stripe.Reserve.Release; - export type ReleaseRetrieveParams = Stripe.Reserve.ReleaseRetrieveParams; - export type ReleaseListParams = Stripe.Reserve.ReleaseListParams; - export type ReleaseResource = Stripe.Reserve.ReleaseResource; - export namespace HoldListParams { - export type Reason = Stripe.Reserve.HoldListParams.Reason; + export type Hold = Stripe_.Reserve.Hold; + export type HoldRetrieveParams = Stripe_.Reserve.HoldRetrieveParams; + export type HoldListParams = Stripe_.Reserve.HoldListParams; + export type HoldResource = Stripe_.Reserve.HoldResource; + export type Plan = Stripe_.Reserve.Plan; + export type PlanRetrieveParams = Stripe_.Reserve.PlanRetrieveParams; + export type PlanResource = Stripe_.Reserve.PlanResource; + export type Release = Stripe_.Reserve.Release; + export type ReleaseRetrieveParams = Stripe_.Reserve.ReleaseRetrieveParams; + export type ReleaseListParams = Stripe_.Reserve.ReleaseListParams; + export type ReleaseResource = Stripe_.Reserve.ReleaseResource; + export namespace Hold { + export type CreatedBy = Stripe_.Reserve.Hold.CreatedBy; + export type Reason = Stripe_.Reserve.Hold.Reason; + export type ReleaseSchedule = Stripe_.Reserve.Hold.ReleaseSchedule; + export type SourceType = Stripe_.Reserve.Hold.SourceType; + } + export namespace Plan { + export type CreatedBy = Stripe_.Reserve.Plan.CreatedBy; + export type FixedRelease = Stripe_.Reserve.Plan.FixedRelease; + export type RollingRelease = Stripe_.Reserve.Plan.RollingRelease; + export type Status = Stripe_.Reserve.Plan.Status; + export type Type = Stripe_.Reserve.Plan.Type; + } + export namespace Release { + export type CreatedBy = Stripe_.Reserve.Release.CreatedBy; + export type Reason = Stripe_.Reserve.Release.Reason; + export type SourceTransaction = Stripe_.Reserve.Release.SourceTransaction; + export namespace SourceTransaction { + export type Type = Stripe_.Reserve.Release.SourceTransaction.Type; + } } } export namespace SharedPayment { - export type GrantedToken = Stripe.SharedPayment.GrantedToken; - export type GrantedTokenRetrieveParams = Stripe.SharedPayment.GrantedTokenRetrieveParams; - export type GrantedTokenResource = Stripe.SharedPayment.GrantedTokenResource; - export type IssuedToken = Stripe.SharedPayment.IssuedToken; - export type IssuedTokenCreateParams = Stripe.SharedPayment.IssuedTokenCreateParams; - export type IssuedTokenRetrieveParams = Stripe.SharedPayment.IssuedTokenRetrieveParams; - export type IssuedTokenRevokeParams = Stripe.SharedPayment.IssuedTokenRevokeParams; - export type IssuedTokenResource = Stripe.SharedPayment.IssuedTokenResource; + export type GrantedToken = Stripe_.SharedPayment.GrantedToken; + export type GrantedTokenRetrieveParams = Stripe_.SharedPayment.GrantedTokenRetrieveParams; + export type GrantedTokenResource = Stripe_.SharedPayment.GrantedTokenResource; + export type IssuedToken = Stripe_.SharedPayment.IssuedToken; + export type IssuedTokenCreateParams = Stripe_.SharedPayment.IssuedTokenCreateParams; + export type IssuedTokenRetrieveParams = Stripe_.SharedPayment.IssuedTokenRetrieveParams; + export type IssuedTokenRevokeParams = Stripe_.SharedPayment.IssuedTokenRevokeParams; + export type IssuedTokenResource = Stripe_.SharedPayment.IssuedTokenResource; + export namespace GrantedToken { + export type AgentDetails = Stripe_.SharedPayment.GrantedToken.AgentDetails; + export type DeactivatedReason = Stripe_.SharedPayment.GrantedToken.DeactivatedReason; + export type PaymentMethodDetails = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails; + export type RiskDetails = Stripe_.SharedPayment.GrantedToken.RiskDetails; + export type UsageDetails = Stripe_.SharedPayment.GrantedToken.UsageDetails; + export type UsageLimits = Stripe_.SharedPayment.GrantedToken.UsageLimits; + export namespace PaymentMethodDetails { + export type AcssDebit = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.AcssDebit; + export type Affirm = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Affirm; + export type AfterpayClearpay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.AfterpayClearpay; + export type Alipay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Alipay; + export type Alma = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Alma; + export type AmazonPay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.AmazonPay; + export type AuBecsDebit = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.AuBecsDebit; + export type BacsDebit = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.BacsDebit; + export type Bancontact = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Bancontact; + export type Billie = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Billie; + export type BillingDetails = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.BillingDetails; + export type Bizum = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Bizum; + export type Blik = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Blik; + export type Boleto = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Boleto; + export type Card = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Card; + export type CardPresent = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.CardPresent; + export type Cashapp = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Cashapp; + export type Crypto = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Crypto; + export type CustomerBalance = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.CustomerBalance; + export type Eps = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Eps; + export type Fpx = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Fpx; + export type Giropay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Giropay; + export type Gopay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Gopay; + export type Grabpay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Grabpay; + export type IdBankTransfer = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.IdBankTransfer; + export type Ideal = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Ideal; + export type InteracPresent = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.InteracPresent; + export type KakaoPay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.KakaoPay; + export type Klarna = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Klarna; + export type Konbini = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Konbini; + export type KrCard = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.KrCard; + export type Link = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Link; + export type MbWay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.MbWay; + export type Mobilepay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Mobilepay; + export type Multibanco = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Multibanco; + export type NaverPay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.NaverPay; + export type NzBankAccount = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.NzBankAccount; + export type Oxxo = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Oxxo; + export type P24 = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.P24; + export type PayByBank = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.PayByBank; + export type Payco = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Payco; + export type Paynow = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Paynow; + export type Paypal = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Paypal; + export type Paypay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Paypay; + export type Payto = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Payto; + export type Pix = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Pix; + export type Promptpay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Promptpay; + export type Qris = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Qris; + export type Rechnung = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Rechnung; + export type RevolutPay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.RevolutPay; + export type SamsungPay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.SamsungPay; + export type Satispay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Satispay; + export type Scalapay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Scalapay; + export type SepaDebit = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.SepaDebit; + export type Shopeepay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Shopeepay; + export type Sofort = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Sofort; + export type StripeBalance = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.StripeBalance; + export type Sunbit = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Sunbit; + export type Swish = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Swish; + export type Twint = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Twint; + export type Type = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Type; + export type Upi = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Upi; + export type UsBankAccount = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.UsBankAccount; + export type WechatPay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.WechatPay; + export type Zip = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Zip; + export namespace Card { + export type Checks = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Card.Checks; + export type Networks = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Card.Networks; + export type Wallet = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Card.Wallet; + export namespace Wallet { + export type AmexExpressCheckout = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Card.Wallet.AmexExpressCheckout; + export type ApplePay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Card.Wallet.ApplePay; + export type GooglePay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Card.Wallet.GooglePay; + export type Link = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Card.Wallet.Link; + export type Masterpass = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Card.Wallet.Masterpass; + export type SamsungPay = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Card.Wallet.SamsungPay; + export type Type = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Card.Wallet.Type; + export type VisaCheckout = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Card.Wallet.VisaCheckout; + } + } + export namespace CardPresent { + export type Networks = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.CardPresent.Networks; + export type Offline = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.CardPresent.Offline; + export type ReadMethod = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.CardPresent.ReadMethod; + export type Wallet = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.CardPresent.Wallet; + export namespace Wallet { + export type Type = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.CardPresent.Wallet.Type; + } + } + export namespace Eps { + export type Bank = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Eps.Bank; + } + export namespace Fpx { + export type AccountHolderType = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Fpx.AccountHolderType; + export type Bank = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Fpx.Bank; + } + export namespace IdBankTransfer { + export type Bank = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.IdBankTransfer.Bank; + } + export namespace Ideal { + export type Bank = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Ideal.Bank; + export type Bic = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Ideal.Bic; + } + export namespace InteracPresent { + export type Networks = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.InteracPresent.Networks; + export type ReadMethod = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.InteracPresent.ReadMethod; + } + export namespace Klarna { + export type Dob = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Klarna.Dob; + } + export namespace KrCard { + export type Brand = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.KrCard.Brand; + } + export namespace NaverPay { + export type Funding = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.NaverPay.Funding; + } + export namespace P24 { + export type Bank = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.P24.Bank; + } + export namespace Rechnung { + export type Dob = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.Rechnung.Dob; + } + export namespace SepaDebit { + export type GeneratedFrom = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.SepaDebit.GeneratedFrom; + } + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.UsBankAccount.AccountType; + export type Networks = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.UsBankAccount.Networks; + export type StatusDetails = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.UsBankAccount.StatusDetails; + export namespace Networks { + export type Supported = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.UsBankAccount.Networks.Supported; + } + export namespace StatusDetails { + export type Blocked = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.UsBankAccount.StatusDetails.Blocked; + export namespace Blocked { + export type NetworkCode = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.UsBankAccount.StatusDetails.Blocked.NetworkCode; + export type Reason = Stripe_.SharedPayment.GrantedToken.PaymentMethodDetails.UsBankAccount.StatusDetails.Blocked.Reason; + } + } + } + } + export namespace RiskDetails { + export type Insights = Stripe_.SharedPayment.GrantedToken.RiskDetails.Insights; + export namespace Insights { + export type Bot = Stripe_.SharedPayment.GrantedToken.RiskDetails.Insights.Bot; + export type CardIssuerDecline = Stripe_.SharedPayment.GrantedToken.RiskDetails.Insights.CardIssuerDecline; + export type CardTesting = Stripe_.SharedPayment.GrantedToken.RiskDetails.Insights.CardTesting; + export type FraudulentDispute = Stripe_.SharedPayment.GrantedToken.RiskDetails.Insights.FraudulentDispute; + export type StolenCard = Stripe_.SharedPayment.GrantedToken.RiskDetails.Insights.StolenCard; + } + } + export namespace UsageDetails { + export type AmountCaptured = Stripe_.SharedPayment.GrantedToken.UsageDetails.AmountCaptured; + } + } export namespace IssuedTokenCreateParams { - export type SellerDetails = Stripe.SharedPayment.IssuedTokenCreateParams.SellerDetails; - export type UsageLimits = Stripe.SharedPayment.IssuedTokenCreateParams.UsageLimits; + export type SellerDetails = Stripe_.SharedPayment.IssuedTokenCreateParams.SellerDetails; + export type UsageLimits = Stripe_.SharedPayment.IssuedTokenCreateParams.UsageLimits; + } + export namespace IssuedToken { + export type DeactivatedReason = Stripe_.SharedPayment.IssuedToken.DeactivatedReason; + export type NextAction = Stripe_.SharedPayment.IssuedToken.NextAction; + export type RiskDetails = Stripe_.SharedPayment.IssuedToken.RiskDetails; + export type SellerDetails = Stripe_.SharedPayment.IssuedToken.SellerDetails; + export type Status = Stripe_.SharedPayment.IssuedToken.Status; + export type UsageDetails = Stripe_.SharedPayment.IssuedToken.UsageDetails; + export type UsageLimits = Stripe_.SharedPayment.IssuedToken.UsageLimits; + export namespace NextAction { + export type UseStripeSdk = Stripe_.SharedPayment.IssuedToken.NextAction.UseStripeSdk; + } + export namespace RiskDetails { + export type Insights = Stripe_.SharedPayment.IssuedToken.RiskDetails.Insights; + export namespace Insights { + export type Bot = Stripe_.SharedPayment.IssuedToken.RiskDetails.Insights.Bot; + export type CardIssuerDecline = Stripe_.SharedPayment.IssuedToken.RiskDetails.Insights.CardIssuerDecline; + export type CardTesting = Stripe_.SharedPayment.IssuedToken.RiskDetails.Insights.CardTesting; + export type FraudulentDispute = Stripe_.SharedPayment.IssuedToken.RiskDetails.Insights.FraudulentDispute; + export type StolenCard = Stripe_.SharedPayment.IssuedToken.RiskDetails.Insights.StolenCard; + } + } + export namespace UsageDetails { + export type AmountCaptured = Stripe_.SharedPayment.IssuedToken.UsageDetails.AmountCaptured; + } } } export namespace Sigma { - export type ScheduledQueryRun = Stripe.Sigma.ScheduledQueryRun; - export type ScheduledQueryRunRetrieveParams = Stripe.Sigma.ScheduledQueryRunRetrieveParams; - export type ScheduledQueryRunListParams = Stripe.Sigma.ScheduledQueryRunListParams; - export type ScheduledQueryRunResource = Stripe.Sigma.ScheduledQueryRunResource; + export type ScheduledQueryRun = Stripe_.Sigma.ScheduledQueryRun; + export type ScheduledQueryRunRetrieveParams = Stripe_.Sigma.ScheduledQueryRunRetrieveParams; + export type ScheduledQueryRunListParams = Stripe_.Sigma.ScheduledQueryRunListParams; + export type ScheduledQueryRunResource = Stripe_.Sigma.ScheduledQueryRunResource; + export namespace ScheduledQueryRun { + export type Error = Stripe_.Sigma.ScheduledQueryRun.Error; + } } export namespace Tax { - export type Association = Stripe.Tax.Association; - export type AssociationFindParams = Stripe.Tax.AssociationFindParams; - export type AssociationResource = Stripe.Tax.AssociationResource; - export type Calculation = Stripe.Tax.Calculation; - export type CalculationCreateParams = Stripe.Tax.CalculationCreateParams; - export type CalculationRetrieveParams = Stripe.Tax.CalculationRetrieveParams; - export type CalculationListLineItemsParams = Stripe.Tax.CalculationListLineItemsParams; - export type CalculationResource = Stripe.Tax.CalculationResource; - export type Form = Stripe.Tax.Form; - export type FormRetrieveParams = Stripe.Tax.FormRetrieveParams; - export type FormListParams = Stripe.Tax.FormListParams; - export type FormPdfParams = Stripe.Tax.FormPdfParams; - export type FormResource = Stripe.Tax.FormResource; - export type Location = Stripe.Tax.Location; - export type LocationCreateParams = Stripe.Tax.LocationCreateParams; - export type LocationRetrieveParams = Stripe.Tax.LocationRetrieveParams; - export type LocationListParams = Stripe.Tax.LocationListParams; - export type LocationResource = Stripe.Tax.LocationResource; - export type Registration = Stripe.Tax.Registration; - export type RegistrationCreateParams = Stripe.Tax.RegistrationCreateParams; - export type RegistrationRetrieveParams = Stripe.Tax.RegistrationRetrieveParams; - export type RegistrationUpdateParams = Stripe.Tax.RegistrationUpdateParams; - export type RegistrationListParams = Stripe.Tax.RegistrationListParams; - export type RegistrationResource = Stripe.Tax.RegistrationResource; - export type Settings = Stripe.Tax.Settings; - export type SettingsRetrieveParams = Stripe.Tax.SettingsRetrieveParams; - export type SettingsUpdateParams = Stripe.Tax.SettingsUpdateParams; - export type SettingResource = Stripe.Tax.SettingResource; - export type Transaction = Stripe.Tax.Transaction; - export type TransactionRetrieveParams = Stripe.Tax.TransactionRetrieveParams; - export type TransactionCreateFromCalculationParams = Stripe.Tax.TransactionCreateFromCalculationParams; - export type TransactionCreateReversalParams = Stripe.Tax.TransactionCreateReversalParams; - export type TransactionListLineItemsParams = Stripe.Tax.TransactionListLineItemsParams; - export type TransactionResource = Stripe.Tax.TransactionResource; - export type CalculationLineItem = Stripe.Tax.CalculationLineItem; - export type TransactionLineItem = Stripe.Tax.TransactionLineItem; + export type Association = Stripe_.Tax.Association; + export type AssociationFindParams = Stripe_.Tax.AssociationFindParams; + export type AssociationResource = Stripe_.Tax.AssociationResource; + export type Calculation = Stripe_.Tax.Calculation; + export type CalculationCreateParams = Stripe_.Tax.CalculationCreateParams; + export type CalculationRetrieveParams = Stripe_.Tax.CalculationRetrieveParams; + export type CalculationListLineItemsParams = Stripe_.Tax.CalculationListLineItemsParams; + export type CalculationResource = Stripe_.Tax.CalculationResource; + export type Form = Stripe_.Tax.Form; + export type FormRetrieveParams = Stripe_.Tax.FormRetrieveParams; + export type FormListParams = Stripe_.Tax.FormListParams; + export type FormPdfParams = Stripe_.Tax.FormPdfParams; + export type FormResource = Stripe_.Tax.FormResource; + export type Location = Stripe_.Tax.Location; + export type LocationCreateParams = Stripe_.Tax.LocationCreateParams; + export type LocationRetrieveParams = Stripe_.Tax.LocationRetrieveParams; + export type LocationListParams = Stripe_.Tax.LocationListParams; + export type LocationResource = Stripe_.Tax.LocationResource; + export type Registration = Stripe_.Tax.Registration; + export type RegistrationCreateParams = Stripe_.Tax.RegistrationCreateParams; + export type RegistrationRetrieveParams = Stripe_.Tax.RegistrationRetrieveParams; + export type RegistrationUpdateParams = Stripe_.Tax.RegistrationUpdateParams; + export type RegistrationListParams = Stripe_.Tax.RegistrationListParams; + export type RegistrationResource = Stripe_.Tax.RegistrationResource; + export type Settings = Stripe_.Tax.Settings; + export type SettingsRetrieveParams = Stripe_.Tax.SettingsRetrieveParams; + export type SettingsUpdateParams = Stripe_.Tax.SettingsUpdateParams; + export type SettingResource = Stripe_.Tax.SettingResource; + export type Transaction = Stripe_.Tax.Transaction; + export type TransactionRetrieveParams = Stripe_.Tax.TransactionRetrieveParams; + export type TransactionCreateFromCalculationParams = Stripe_.Tax.TransactionCreateFromCalculationParams; + export type TransactionCreateReversalParams = Stripe_.Tax.TransactionCreateReversalParams; + export type TransactionListLineItemsParams = Stripe_.Tax.TransactionListLineItemsParams; + export type TransactionResource = Stripe_.Tax.TransactionResource; + export type CalculationLineItem = Stripe_.Tax.CalculationLineItem; + export type TransactionLineItem = Stripe_.Tax.TransactionLineItem; + export namespace Association { + export type TaxTransactionAttempt = Stripe_.Tax.Association.TaxTransactionAttempt; + export namespace TaxTransactionAttempt { + export type Committed = Stripe_.Tax.Association.TaxTransactionAttempt.Committed; + export type Errored = Stripe_.Tax.Association.TaxTransactionAttempt.Errored; + export namespace Errored { + export type Reason = Stripe_.Tax.Association.TaxTransactionAttempt.Errored.Reason; + } + } + } export namespace CalculationCreateParams { - export type LineItem = Stripe.Tax.CalculationCreateParams.LineItem; - export type CustomerDetails = Stripe.Tax.CalculationCreateParams.CustomerDetails; - export type ShipFromDetails = Stripe.Tax.CalculationCreateParams.ShipFromDetails; - export type ShippingCost = Stripe.Tax.CalculationCreateParams.ShippingCost; + export type LineItem = Stripe_.Tax.CalculationCreateParams.LineItem; + export type CustomerDetails = Stripe_.Tax.CalculationCreateParams.CustomerDetails; + export type ShipFromDetails = Stripe_.Tax.CalculationCreateParams.ShipFromDetails; + export type ShippingCost = Stripe_.Tax.CalculationCreateParams.ShippingCost; + export namespace CustomerDetails { + export type Address = Stripe_.Tax.CalculationCreateParams.CustomerDetails.Address; + export type AddressSource = Stripe_.Tax.CalculationCreateParams.CustomerDetails.AddressSource; + export type TaxId = Stripe_.Tax.CalculationCreateParams.CustomerDetails.TaxId; + export type TaxabilityOverride = Stripe_.Tax.CalculationCreateParams.CustomerDetails.TaxabilityOverride; + export namespace TaxId { + export type Type = Stripe_.Tax.CalculationCreateParams.CustomerDetails.TaxId.Type; + } + } + export namespace LineItem { + export type TaxBehavior = Stripe_.Tax.CalculationCreateParams.LineItem.TaxBehavior; + } + export namespace ShipFromDetails { + export type Address = Stripe_.Tax.CalculationCreateParams.ShipFromDetails.Address; + } + export namespace ShippingCost { + export type TaxBehavior = Stripe_.Tax.CalculationCreateParams.ShippingCost.TaxBehavior; + } + } + export namespace Calculation { + export type CustomerDetails = Stripe_.Tax.Calculation.CustomerDetails; + export type ShipFromDetails = Stripe_.Tax.Calculation.ShipFromDetails; + export type ShippingCost = Stripe_.Tax.Calculation.ShippingCost; + export type TaxBreakdown = Stripe_.Tax.Calculation.TaxBreakdown; + export namespace CustomerDetails { + export type AddressSource = Stripe_.Tax.Calculation.CustomerDetails.AddressSource; + export type TaxId = Stripe_.Tax.Calculation.CustomerDetails.TaxId; + export type TaxabilityOverride = Stripe_.Tax.Calculation.CustomerDetails.TaxabilityOverride; + export namespace TaxId { + export type Type = Stripe_.Tax.Calculation.CustomerDetails.TaxId.Type; + } + } + export namespace ShippingCost { + export type TaxBehavior = Stripe_.Tax.Calculation.ShippingCost.TaxBehavior; + export type TaxBreakdown = Stripe_.Tax.Calculation.ShippingCost.TaxBreakdown; + export namespace TaxBreakdown { + export type Jurisdiction = Stripe_.Tax.Calculation.ShippingCost.TaxBreakdown.Jurisdiction; + export type Sourcing = Stripe_.Tax.Calculation.ShippingCost.TaxBreakdown.Sourcing; + export type TaxRateDetails = Stripe_.Tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetails; + export type TaxabilityReason = Stripe_.Tax.Calculation.ShippingCost.TaxBreakdown.TaxabilityReason; + export namespace Jurisdiction { + export type Level = Stripe_.Tax.Calculation.ShippingCost.TaxBreakdown.Jurisdiction.Level; + } + export namespace TaxRateDetails { + export type TaxType = Stripe_.Tax.Calculation.ShippingCost.TaxBreakdown.TaxRateDetails.TaxType; + } + } + } + export namespace TaxBreakdown { + export type TaxRateDetails = Stripe_.Tax.Calculation.TaxBreakdown.TaxRateDetails; + export type TaxabilityReason = Stripe_.Tax.Calculation.TaxBreakdown.TaxabilityReason; + export namespace TaxRateDetails { + export type FlatAmount = Stripe_.Tax.Calculation.TaxBreakdown.TaxRateDetails.FlatAmount; + export type RateType = Stripe_.Tax.Calculation.TaxBreakdown.TaxRateDetails.RateType; + export type TaxType = Stripe_.Tax.Calculation.TaxBreakdown.TaxRateDetails.TaxType; + } + } + } + export namespace Form { + export type AuSerr = Stripe_.Tax.Form.AuSerr; + export type CaMrdp = Stripe_.Tax.Form.CaMrdp; + export type EuDac7 = Stripe_.Tax.Form.EuDac7; + export type FilingStatus = Stripe_.Tax.Form.FilingStatus; + export type GbMrdp = Stripe_.Tax.Form.GbMrdp; + export type NzMrdp = Stripe_.Tax.Form.NzMrdp; + export type Payee = Stripe_.Tax.Form.Payee; + export type Type = Stripe_.Tax.Form.Type; + export type Us1099K = Stripe_.Tax.Form.Us1099K; + export type Us1099Misc = Stripe_.Tax.Form.Us1099Misc; + export type Us1099Nec = Stripe_.Tax.Form.Us1099Nec; + export namespace FilingStatus { + export type Jurisdiction = Stripe_.Tax.Form.FilingStatus.Jurisdiction; + export type Value = Stripe_.Tax.Form.FilingStatus.Value; + export namespace Jurisdiction { + export type Level = Stripe_.Tax.Form.FilingStatus.Jurisdiction.Level; + } + } + export namespace Payee { + export type Type = Stripe_.Tax.Form.Payee.Type; + } + } + export namespace LocationCreateParams { + export type Address = Stripe_.Tax.LocationCreateParams.Address; } - export namespace FormListParams { - export type Payee = Stripe.Tax.FormListParams.Payee; - export type Type = Stripe.Tax.FormListParams.Type; + export namespace RegistrationCreateParams { + export type CountryOptions = Stripe_.Tax.RegistrationCreateParams.CountryOptions; + export namespace CountryOptions { + export type Ae = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ae; + export type Al = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Al; + export type Am = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Am; + export type Ao = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ao; + export type At = Stripe_.Tax.RegistrationCreateParams.CountryOptions.At; + export type Au = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Au; + export type Aw = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Aw; + export type Az = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Az; + export type Ba = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ba; + export type Bb = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bb; + export type Bd = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bd; + export type Be = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Be; + export type Bf = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bf; + export type Bg = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bg; + export type Bh = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bh; + export type Bj = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bj; + export type Bs = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bs; + export type By = Stripe_.Tax.RegistrationCreateParams.CountryOptions.By; + export type Ca = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ca; + export type Cd = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cd; + export type Ch = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ch; + export type Cl = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cl; + export type Cm = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cm; + export type Co = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Co; + export type Cr = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cr; + export type Cv = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cv; + export type Cy = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cy; + export type Cz = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cz; + export type De = Stripe_.Tax.RegistrationCreateParams.CountryOptions.De; + export type Dk = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Dk; + export type Ec = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ec; + export type Ee = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ee; + export type Eg = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Eg; + export type Es = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Es; + export type Et = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Et; + export type Fi = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Fi; + export type Fr = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Fr; + export type Gb = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Gb; + export type Ge = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ge; + export type Gn = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Gn; + export type Gr = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Gr; + export type Hr = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Hr; + export type Hu = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Hu; + export type Id = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Id; + export type Ie = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ie; + export type In = Stripe_.Tax.RegistrationCreateParams.CountryOptions.In; + export type Is = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Is; + export type It = Stripe_.Tax.RegistrationCreateParams.CountryOptions.It; + export type Jp = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Jp; + export type Ke = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ke; + export type Kg = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Kg; + export type Kh = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Kh; + export type Kr = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Kr; + export type Kz = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Kz; + export type La = Stripe_.Tax.RegistrationCreateParams.CountryOptions.La; + export type Lk = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Lk; + export type Lt = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Lt; + export type Lu = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Lu; + export type Lv = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Lv; + export type Ma = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ma; + export type Md = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Md; + export type Me = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Me; + export type Mk = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Mk; + export type Mr = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Mr; + export type Mt = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Mt; + export type Mx = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Mx; + export type My = Stripe_.Tax.RegistrationCreateParams.CountryOptions.My; + export type Ng = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ng; + export type Nl = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Nl; + export type No = Stripe_.Tax.RegistrationCreateParams.CountryOptions.No; + export type Np = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Np; + export type Nz = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Nz; + export type Om = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Om; + export type Pe = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Pe; + export type Ph = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ph; + export type Pl = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Pl; + export type Pt = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Pt; + export type Ro = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ro; + export type Rs = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Rs; + export type Ru = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ru; + export type Sa = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Sa; + export type Se = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Se; + export type Sg = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Sg; + export type Si = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Si; + export type Sk = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Sk; + export type Sn = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Sn; + export type Sr = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Sr; + export type Th = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Th; + export type Tj = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Tj; + export type Tr = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Tr; + export type Tw = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Tw; + export type Tz = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Tz; + export type Ua = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ua; + export type Ug = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ug; + export type Us = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us; + export type Uy = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Uy; + export type Uz = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Uz; + export type Vn = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Vn; + export type Za = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Za; + export type Zm = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Zm; + export type Zw = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Zw; + export namespace Ae { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ae.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ae.Standard.PlaceOfSupplyScheme; + } + } + export namespace Al { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Al.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Al.Standard.PlaceOfSupplyScheme; + } + } + export namespace Ao { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ao.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ao.Standard.PlaceOfSupplyScheme; + } + } + export namespace At { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.At.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.At.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.At.Standard.PlaceOfSupplyScheme; + } + } + export namespace Au { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Au.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Au.Standard.PlaceOfSupplyScheme; + } + } + export namespace Aw { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Aw.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Aw.Standard.PlaceOfSupplyScheme; + } + } + export namespace Ba { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ba.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ba.Standard.PlaceOfSupplyScheme; + } + } + export namespace Bb { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bb.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bb.Standard.PlaceOfSupplyScheme; + } + } + export namespace Bd { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bd.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bd.Standard.PlaceOfSupplyScheme; + } + } + export namespace Be { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Be.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Be.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Be.Standard.PlaceOfSupplyScheme; + } + } + export namespace Bf { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bf.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bf.Standard.PlaceOfSupplyScheme; + } + } + export namespace Bg { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bg.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bg.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bg.Standard.PlaceOfSupplyScheme; + } + } + export namespace Bh { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bh.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bh.Standard.PlaceOfSupplyScheme; + } + } + export namespace Bs { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bs.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Bs.Standard.PlaceOfSupplyScheme; + } + } + export namespace Ca { + export type ProvinceStandard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ca.ProvinceStandard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ca.Type; + } + export namespace Cd { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cd.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cd.Standard.PlaceOfSupplyScheme; + } + } + export namespace Ch { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ch.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ch.Standard.PlaceOfSupplyScheme; + } + } + export namespace Cy { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cy.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cy.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cy.Standard.PlaceOfSupplyScheme; + } + } + export namespace Cz { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cz.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cz.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Cz.Standard.PlaceOfSupplyScheme; + } + } + export namespace De { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.De.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.De.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.De.Standard.PlaceOfSupplyScheme; + } + } + export namespace Dk { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Dk.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Dk.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Dk.Standard.PlaceOfSupplyScheme; + } + } + export namespace Ee { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ee.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ee.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ee.Standard.PlaceOfSupplyScheme; + } + } + export namespace Es { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Es.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Es.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Es.Standard.PlaceOfSupplyScheme; + } + } + export namespace Et { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Et.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Et.Standard.PlaceOfSupplyScheme; + } + } + export namespace Fi { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Fi.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Fi.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Fi.Standard.PlaceOfSupplyScheme; + } + } + export namespace Fr { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Fr.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Fr.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Fr.Standard.PlaceOfSupplyScheme; + } + } + export namespace Gb { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Gb.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Gb.Standard.PlaceOfSupplyScheme; + } + } + export namespace Gn { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Gn.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Gn.Standard.PlaceOfSupplyScheme; + } + } + export namespace Gr { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Gr.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Gr.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Gr.Standard.PlaceOfSupplyScheme; + } + } + export namespace Hr { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Hr.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Hr.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Hr.Standard.PlaceOfSupplyScheme; + } + } + export namespace Hu { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Hu.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Hu.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Hu.Standard.PlaceOfSupplyScheme; + } + } + export namespace Ie { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ie.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ie.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ie.Standard.PlaceOfSupplyScheme; + } + } + export namespace Is { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Is.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Is.Standard.PlaceOfSupplyScheme; + } + } + export namespace It { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.It.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.It.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.It.Standard.PlaceOfSupplyScheme; + } + } + export namespace Jp { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Jp.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Jp.Standard.PlaceOfSupplyScheme; + } + } + export namespace Lt { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Lt.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Lt.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Lt.Standard.PlaceOfSupplyScheme; + } + } + export namespace Lu { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Lu.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Lu.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Lu.Standard.PlaceOfSupplyScheme; + } + } + export namespace Lv { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Lv.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Lv.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Lv.Standard.PlaceOfSupplyScheme; + } + } + export namespace Me { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Me.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Me.Standard.PlaceOfSupplyScheme; + } + } + export namespace Mk { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Mk.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Mk.Standard.PlaceOfSupplyScheme; + } + } + export namespace Mr { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Mr.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Mr.Standard.PlaceOfSupplyScheme; + } + } + export namespace Mt { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Mt.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Mt.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Mt.Standard.PlaceOfSupplyScheme; + } + } + export namespace Nl { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Nl.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Nl.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Nl.Standard.PlaceOfSupplyScheme; + } + } + export namespace No { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.No.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.No.Standard.PlaceOfSupplyScheme; + } + } + export namespace Nz { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Nz.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Nz.Standard.PlaceOfSupplyScheme; + } + } + export namespace Om { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Om.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Om.Standard.PlaceOfSupplyScheme; + } + } + export namespace Pl { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Pl.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Pl.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Pl.Standard.PlaceOfSupplyScheme; + } + } + export namespace Pt { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Pt.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Pt.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Pt.Standard.PlaceOfSupplyScheme; + } + } + export namespace Ro { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ro.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ro.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Ro.Standard.PlaceOfSupplyScheme; + } + } + export namespace Rs { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Rs.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Rs.Standard.PlaceOfSupplyScheme; + } + } + export namespace Se { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Se.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Se.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Se.Standard.PlaceOfSupplyScheme; + } + } + export namespace Sg { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Sg.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Sg.Standard.PlaceOfSupplyScheme; + } + } + export namespace Si { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Si.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Si.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Si.Standard.PlaceOfSupplyScheme; + } + } + export namespace Sk { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Sk.Standard; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Sk.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Sk.Standard.PlaceOfSupplyScheme; + } + } + export namespace Sr { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Sr.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Sr.Standard.PlaceOfSupplyScheme; + } + } + export namespace Us { + export type AdmissionsTax = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.AdmissionsTax; + export type AttendanceTax = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.AttendanceTax; + export type EntertainmentTax = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.EntertainmentTax; + export type GrossReceiptsTax = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.GrossReceiptsTax; + export type HospitalityTax = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.HospitalityTax; + export type LocalAmusementTax = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.LocalAmusementTax; + export type LocalLeaseTax = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.LocalLeaseTax; + export type LuxuryTax = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.LuxuryTax; + export type ResortTax = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.ResortTax; + export type StateSalesTax = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.StateSalesTax; + export type TourismTax = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.TourismTax; + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.Type; + export namespace StateSalesTax { + export type Election = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.StateSalesTax.Election; + export namespace Election { + export type Type = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Us.StateSalesTax.Election.Type; + } + } + } + export namespace Uy { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Uy.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Uy.Standard.PlaceOfSupplyScheme; + } + } + export namespace Za { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Za.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Za.Standard.PlaceOfSupplyScheme; + } + } + export namespace Zw { + export type Standard = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Zw.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.RegistrationCreateParams.CountryOptions.Zw.Standard.PlaceOfSupplyScheme; + } + } + } } - export namespace LocationCreateParams { - export type Address = Stripe.Tax.LocationCreateParams.Address; + export namespace Registration { + export type CountryOptions = Stripe_.Tax.Registration.CountryOptions; + export type Status = Stripe_.Tax.Registration.Status; + export namespace CountryOptions { + export type Ae = Stripe_.Tax.Registration.CountryOptions.Ae; + export type Al = Stripe_.Tax.Registration.CountryOptions.Al; + export type Am = Stripe_.Tax.Registration.CountryOptions.Am; + export type Ao = Stripe_.Tax.Registration.CountryOptions.Ao; + export type At = Stripe_.Tax.Registration.CountryOptions.At; + export type Au = Stripe_.Tax.Registration.CountryOptions.Au; + export type Aw = Stripe_.Tax.Registration.CountryOptions.Aw; + export type Az = Stripe_.Tax.Registration.CountryOptions.Az; + export type Ba = Stripe_.Tax.Registration.CountryOptions.Ba; + export type Bb = Stripe_.Tax.Registration.CountryOptions.Bb; + export type Bd = Stripe_.Tax.Registration.CountryOptions.Bd; + export type Be = Stripe_.Tax.Registration.CountryOptions.Be; + export type Bf = Stripe_.Tax.Registration.CountryOptions.Bf; + export type Bg = Stripe_.Tax.Registration.CountryOptions.Bg; + export type Bh = Stripe_.Tax.Registration.CountryOptions.Bh; + export type Bj = Stripe_.Tax.Registration.CountryOptions.Bj; + export type Bs = Stripe_.Tax.Registration.CountryOptions.Bs; + export type By = Stripe_.Tax.Registration.CountryOptions.By; + export type Ca = Stripe_.Tax.Registration.CountryOptions.Ca; + export type Cd = Stripe_.Tax.Registration.CountryOptions.Cd; + export type Ch = Stripe_.Tax.Registration.CountryOptions.Ch; + export type Cl = Stripe_.Tax.Registration.CountryOptions.Cl; + export type Cm = Stripe_.Tax.Registration.CountryOptions.Cm; + export type Co = Stripe_.Tax.Registration.CountryOptions.Co; + export type Cr = Stripe_.Tax.Registration.CountryOptions.Cr; + export type Cv = Stripe_.Tax.Registration.CountryOptions.Cv; + export type Cy = Stripe_.Tax.Registration.CountryOptions.Cy; + export type Cz = Stripe_.Tax.Registration.CountryOptions.Cz; + export type De = Stripe_.Tax.Registration.CountryOptions.De; + export type Dk = Stripe_.Tax.Registration.CountryOptions.Dk; + export type Ec = Stripe_.Tax.Registration.CountryOptions.Ec; + export type Ee = Stripe_.Tax.Registration.CountryOptions.Ee; + export type Eg = Stripe_.Tax.Registration.CountryOptions.Eg; + export type Es = Stripe_.Tax.Registration.CountryOptions.Es; + export type Et = Stripe_.Tax.Registration.CountryOptions.Et; + export type Fi = Stripe_.Tax.Registration.CountryOptions.Fi; + export type Fr = Stripe_.Tax.Registration.CountryOptions.Fr; + export type Gb = Stripe_.Tax.Registration.CountryOptions.Gb; + export type Ge = Stripe_.Tax.Registration.CountryOptions.Ge; + export type Gn = Stripe_.Tax.Registration.CountryOptions.Gn; + export type Gr = Stripe_.Tax.Registration.CountryOptions.Gr; + export type Hr = Stripe_.Tax.Registration.CountryOptions.Hr; + export type Hu = Stripe_.Tax.Registration.CountryOptions.Hu; + export type Id = Stripe_.Tax.Registration.CountryOptions.Id; + export type Ie = Stripe_.Tax.Registration.CountryOptions.Ie; + export type In = Stripe_.Tax.Registration.CountryOptions.In; + export type Is = Stripe_.Tax.Registration.CountryOptions.Is; + export type It = Stripe_.Tax.Registration.CountryOptions.It; + export type Jp = Stripe_.Tax.Registration.CountryOptions.Jp; + export type Ke = Stripe_.Tax.Registration.CountryOptions.Ke; + export type Kg = Stripe_.Tax.Registration.CountryOptions.Kg; + export type Kh = Stripe_.Tax.Registration.CountryOptions.Kh; + export type Kr = Stripe_.Tax.Registration.CountryOptions.Kr; + export type Kz = Stripe_.Tax.Registration.CountryOptions.Kz; + export type La = Stripe_.Tax.Registration.CountryOptions.La; + export type Lk = Stripe_.Tax.Registration.CountryOptions.Lk; + export type Lt = Stripe_.Tax.Registration.CountryOptions.Lt; + export type Lu = Stripe_.Tax.Registration.CountryOptions.Lu; + export type Lv = Stripe_.Tax.Registration.CountryOptions.Lv; + export type Ma = Stripe_.Tax.Registration.CountryOptions.Ma; + export type Md = Stripe_.Tax.Registration.CountryOptions.Md; + export type Me = Stripe_.Tax.Registration.CountryOptions.Me; + export type Mk = Stripe_.Tax.Registration.CountryOptions.Mk; + export type Mr = Stripe_.Tax.Registration.CountryOptions.Mr; + export type Mt = Stripe_.Tax.Registration.CountryOptions.Mt; + export type Mx = Stripe_.Tax.Registration.CountryOptions.Mx; + export type My = Stripe_.Tax.Registration.CountryOptions.My; + export type Ng = Stripe_.Tax.Registration.CountryOptions.Ng; + export type Nl = Stripe_.Tax.Registration.CountryOptions.Nl; + export type No = Stripe_.Tax.Registration.CountryOptions.No; + export type Np = Stripe_.Tax.Registration.CountryOptions.Np; + export type Nz = Stripe_.Tax.Registration.CountryOptions.Nz; + export type Om = Stripe_.Tax.Registration.CountryOptions.Om; + export type Pe = Stripe_.Tax.Registration.CountryOptions.Pe; + export type Ph = Stripe_.Tax.Registration.CountryOptions.Ph; + export type Pl = Stripe_.Tax.Registration.CountryOptions.Pl; + export type Pt = Stripe_.Tax.Registration.CountryOptions.Pt; + export type Ro = Stripe_.Tax.Registration.CountryOptions.Ro; + export type Rs = Stripe_.Tax.Registration.CountryOptions.Rs; + export type Ru = Stripe_.Tax.Registration.CountryOptions.Ru; + export type Sa = Stripe_.Tax.Registration.CountryOptions.Sa; + export type Se = Stripe_.Tax.Registration.CountryOptions.Se; + export type Sg = Stripe_.Tax.Registration.CountryOptions.Sg; + export type Si = Stripe_.Tax.Registration.CountryOptions.Si; + export type Sk = Stripe_.Tax.Registration.CountryOptions.Sk; + export type Sn = Stripe_.Tax.Registration.CountryOptions.Sn; + export type Sr = Stripe_.Tax.Registration.CountryOptions.Sr; + export type Th = Stripe_.Tax.Registration.CountryOptions.Th; + export type Tj = Stripe_.Tax.Registration.CountryOptions.Tj; + export type Tr = Stripe_.Tax.Registration.CountryOptions.Tr; + export type Tw = Stripe_.Tax.Registration.CountryOptions.Tw; + export type Tz = Stripe_.Tax.Registration.CountryOptions.Tz; + export type Ua = Stripe_.Tax.Registration.CountryOptions.Ua; + export type Ug = Stripe_.Tax.Registration.CountryOptions.Ug; + export type Us = Stripe_.Tax.Registration.CountryOptions.Us; + export type Uy = Stripe_.Tax.Registration.CountryOptions.Uy; + export type Uz = Stripe_.Tax.Registration.CountryOptions.Uz; + export type Vn = Stripe_.Tax.Registration.CountryOptions.Vn; + export type Za = Stripe_.Tax.Registration.CountryOptions.Za; + export type Zm = Stripe_.Tax.Registration.CountryOptions.Zm; + export type Zw = Stripe_.Tax.Registration.CountryOptions.Zw; + export namespace Ae { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Ae.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Ae.Standard.PlaceOfSupplyScheme; + } + } + export namespace At { + export type Standard = Stripe_.Tax.Registration.CountryOptions.At.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.At.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.At.Standard.PlaceOfSupplyScheme; + } + } + export namespace Au { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Au.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Au.Standard.PlaceOfSupplyScheme; + } + } + export namespace Be { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Be.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Be.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Be.Standard.PlaceOfSupplyScheme; + } + } + export namespace Bg { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Bg.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Bg.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Bg.Standard.PlaceOfSupplyScheme; + } + } + export namespace Ca { + export type ProvinceStandard = Stripe_.Tax.Registration.CountryOptions.Ca.ProvinceStandard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Ca.Type; + } + export namespace Ch { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Ch.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Ch.Standard.PlaceOfSupplyScheme; + } + } + export namespace Cy { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Cy.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Cy.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Cy.Standard.PlaceOfSupplyScheme; + } + } + export namespace Cz { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Cz.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Cz.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Cz.Standard.PlaceOfSupplyScheme; + } + } + export namespace De { + export type Standard = Stripe_.Tax.Registration.CountryOptions.De.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.De.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.De.Standard.PlaceOfSupplyScheme; + } + } + export namespace Dk { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Dk.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Dk.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Dk.Standard.PlaceOfSupplyScheme; + } + } + export namespace Ee { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Ee.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Ee.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Ee.Standard.PlaceOfSupplyScheme; + } + } + export namespace Es { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Es.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Es.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Es.Standard.PlaceOfSupplyScheme; + } + } + export namespace Fi { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Fi.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Fi.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Fi.Standard.PlaceOfSupplyScheme; + } + } + export namespace Fr { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Fr.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Fr.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Fr.Standard.PlaceOfSupplyScheme; + } + } + export namespace Gb { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Gb.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Gb.Standard.PlaceOfSupplyScheme; + } + } + export namespace Gr { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Gr.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Gr.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Gr.Standard.PlaceOfSupplyScheme; + } + } + export namespace Hr { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Hr.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Hr.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Hr.Standard.PlaceOfSupplyScheme; + } + } + export namespace Hu { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Hu.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Hu.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Hu.Standard.PlaceOfSupplyScheme; + } + } + export namespace Ie { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Ie.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Ie.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Ie.Standard.PlaceOfSupplyScheme; + } + } + export namespace It { + export type Standard = Stripe_.Tax.Registration.CountryOptions.It.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.It.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.It.Standard.PlaceOfSupplyScheme; + } + } + export namespace Jp { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Jp.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Jp.Standard.PlaceOfSupplyScheme; + } + } + export namespace Lt { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Lt.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Lt.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Lt.Standard.PlaceOfSupplyScheme; + } + } + export namespace Lu { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Lu.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Lu.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Lu.Standard.PlaceOfSupplyScheme; + } + } + export namespace Lv { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Lv.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Lv.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Lv.Standard.PlaceOfSupplyScheme; + } + } + export namespace Mt { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Mt.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Mt.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Mt.Standard.PlaceOfSupplyScheme; + } + } + export namespace Nl { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Nl.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Nl.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Nl.Standard.PlaceOfSupplyScheme; + } + } + export namespace No { + export type Standard = Stripe_.Tax.Registration.CountryOptions.No.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.No.Standard.PlaceOfSupplyScheme; + } + } + export namespace Nz { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Nz.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Nz.Standard.PlaceOfSupplyScheme; + } + } + export namespace Pl { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Pl.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Pl.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Pl.Standard.PlaceOfSupplyScheme; + } + } + export namespace Pt { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Pt.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Pt.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Pt.Standard.PlaceOfSupplyScheme; + } + } + export namespace Ro { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Ro.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Ro.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Ro.Standard.PlaceOfSupplyScheme; + } + } + export namespace Se { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Se.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Se.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Se.Standard.PlaceOfSupplyScheme; + } + } + export namespace Sg { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Sg.Standard; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Sg.Standard.PlaceOfSupplyScheme; + } + } + export namespace Si { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Si.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Si.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Si.Standard.PlaceOfSupplyScheme; + } + } + export namespace Sk { + export type Standard = Stripe_.Tax.Registration.CountryOptions.Sk.Standard; + export type Type = Stripe_.Tax.Registration.CountryOptions.Sk.Type; + export namespace Standard { + export type PlaceOfSupplyScheme = Stripe_.Tax.Registration.CountryOptions.Sk.Standard.PlaceOfSupplyScheme; + } + } + export namespace Us { + export type AdmissionsTax = Stripe_.Tax.Registration.CountryOptions.Us.AdmissionsTax; + export type AttendanceTax = Stripe_.Tax.Registration.CountryOptions.Us.AttendanceTax; + export type EntertainmentTax = Stripe_.Tax.Registration.CountryOptions.Us.EntertainmentTax; + export type GrossReceiptsTax = Stripe_.Tax.Registration.CountryOptions.Us.GrossReceiptsTax; + export type HospitalityTax = Stripe_.Tax.Registration.CountryOptions.Us.HospitalityTax; + export type LocalAmusementTax = Stripe_.Tax.Registration.CountryOptions.Us.LocalAmusementTax; + export type LocalLeaseTax = Stripe_.Tax.Registration.CountryOptions.Us.LocalLeaseTax; + export type LuxuryTax = Stripe_.Tax.Registration.CountryOptions.Us.LuxuryTax; + export type ResortTax = Stripe_.Tax.Registration.CountryOptions.Us.ResortTax; + export type StateSalesTax = Stripe_.Tax.Registration.CountryOptions.Us.StateSalesTax; + export type TourismTax = Stripe_.Tax.Registration.CountryOptions.Us.TourismTax; + export type Type = Stripe_.Tax.Registration.CountryOptions.Us.Type; + export namespace StateSalesTax { + export type Election = Stripe_.Tax.Registration.CountryOptions.Us.StateSalesTax.Election; + export namespace Election { + export type Type = Stripe_.Tax.Registration.CountryOptions.Us.StateSalesTax.Election.Type; + } + } + } + } } - export namespace RegistrationCreateParams { - export type CountryOptions = Stripe.Tax.RegistrationCreateParams.CountryOptions; + export namespace Settings { + export type Defaults = Stripe_.Tax.Settings.Defaults; + export type HeadOffice = Stripe_.Tax.Settings.HeadOffice; + export type Status = Stripe_.Tax.Settings.Status; + export type StatusDetails = Stripe_.Tax.Settings.StatusDetails; + export namespace Defaults { + export type Provider = Stripe_.Tax.Settings.Defaults.Provider; + export type TaxBehavior = Stripe_.Tax.Settings.Defaults.TaxBehavior; + } + export namespace StatusDetails { + export type Active = Stripe_.Tax.Settings.StatusDetails.Active; + export type Pending = Stripe_.Tax.Settings.StatusDetails.Pending; + } } - export namespace RegistrationListParams { - export type Status = Stripe.Tax.RegistrationListParams.Status; + export namespace Transaction { + export type CustomerDetails = Stripe_.Tax.Transaction.CustomerDetails; + export type Reversal = Stripe_.Tax.Transaction.Reversal; + export type ShipFromDetails = Stripe_.Tax.Transaction.ShipFromDetails; + export type ShippingCost = Stripe_.Tax.Transaction.ShippingCost; + export type Type = Stripe_.Tax.Transaction.Type; + export namespace CustomerDetails { + export type AddressSource = Stripe_.Tax.Transaction.CustomerDetails.AddressSource; + export type TaxId = Stripe_.Tax.Transaction.CustomerDetails.TaxId; + export type TaxabilityOverride = Stripe_.Tax.Transaction.CustomerDetails.TaxabilityOverride; + export namespace TaxId { + export type Type = Stripe_.Tax.Transaction.CustomerDetails.TaxId.Type; + } + } + export namespace ShippingCost { + export type TaxBehavior = Stripe_.Tax.Transaction.ShippingCost.TaxBehavior; + export type TaxBreakdown = Stripe_.Tax.Transaction.ShippingCost.TaxBreakdown; + export namespace TaxBreakdown { + export type Jurisdiction = Stripe_.Tax.Transaction.ShippingCost.TaxBreakdown.Jurisdiction; + export type Sourcing = Stripe_.Tax.Transaction.ShippingCost.TaxBreakdown.Sourcing; + export type TaxRateDetails = Stripe_.Tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetails; + export type TaxabilityReason = Stripe_.Tax.Transaction.ShippingCost.TaxBreakdown.TaxabilityReason; + export namespace Jurisdiction { + export type Level = Stripe_.Tax.Transaction.ShippingCost.TaxBreakdown.Jurisdiction.Level; + } + export namespace TaxRateDetails { + export type TaxType = Stripe_.Tax.Transaction.ShippingCost.TaxBreakdown.TaxRateDetails.TaxType; + } + } + } } - export namespace SettingsUpdateParams { - export type Defaults = Stripe.Tax.SettingsUpdateParams.Defaults; - export type HeadOffice = Stripe.Tax.SettingsUpdateParams.HeadOffice; + export namespace CalculationLineItem { + export type TaxBehavior = Stripe_.Tax.CalculationLineItem.TaxBehavior; + export type TaxBreakdown = Stripe_.Tax.CalculationLineItem.TaxBreakdown; + export namespace TaxBreakdown { + export type Jurisdiction = Stripe_.Tax.CalculationLineItem.TaxBreakdown.Jurisdiction; + export type Sourcing = Stripe_.Tax.CalculationLineItem.TaxBreakdown.Sourcing; + export type TaxRateDetails = Stripe_.Tax.CalculationLineItem.TaxBreakdown.TaxRateDetails; + export type TaxabilityReason = Stripe_.Tax.CalculationLineItem.TaxBreakdown.TaxabilityReason; + export namespace Jurisdiction { + export type Level = Stripe_.Tax.CalculationLineItem.TaxBreakdown.Jurisdiction.Level; + } + export namespace TaxRateDetails { + export type TaxType = Stripe_.Tax.CalculationLineItem.TaxBreakdown.TaxRateDetails.TaxType; + } + } } - export namespace TransactionCreateReversalParams { - export type Mode = Stripe.Tax.TransactionCreateReversalParams.Mode; - export type LineItem = Stripe.Tax.TransactionCreateReversalParams.LineItem; - export type ShippingCost = Stripe.Tax.TransactionCreateReversalParams.ShippingCost; + export namespace TransactionLineItem { + export type Reversal = Stripe_.Tax.TransactionLineItem.Reversal; + export type TaxBehavior = Stripe_.Tax.TransactionLineItem.TaxBehavior; + export type Type = Stripe_.Tax.TransactionLineItem.Type; } } export namespace Terminal { - export type Configuration = Stripe.Terminal.Configuration; - export type DeletedConfiguration = Stripe.Terminal.DeletedConfiguration; - export type ConfigurationCreateParams = Stripe.Terminal.ConfigurationCreateParams; - export type ConfigurationRetrieveParams = Stripe.Terminal.ConfigurationRetrieveParams; - export type ConfigurationUpdateParams = Stripe.Terminal.ConfigurationUpdateParams; - export type ConfigurationListParams = Stripe.Terminal.ConfigurationListParams; - export type ConfigurationDeleteParams = Stripe.Terminal.ConfigurationDeleteParams; - export type ConfigurationResource = Stripe.Terminal.ConfigurationResource; - export type ConnectionToken = Stripe.Terminal.ConnectionToken; - export type ConnectionTokenCreateParams = Stripe.Terminal.ConnectionTokenCreateParams; - export type ConnectionTokenResource = Stripe.Terminal.ConnectionTokenResource; - export type Location = Stripe.Terminal.Location; - export type DeletedLocation = Stripe.Terminal.DeletedLocation; - export type LocationCreateParams = Stripe.Terminal.LocationCreateParams; - export type LocationRetrieveParams = Stripe.Terminal.LocationRetrieveParams; - export type LocationUpdateParams = Stripe.Terminal.LocationUpdateParams; - export type LocationListParams = Stripe.Terminal.LocationListParams; - export type LocationDeleteParams = Stripe.Terminal.LocationDeleteParams; - export type LocationResource = Stripe.Terminal.LocationResource; - export type OnboardingLink = Stripe.Terminal.OnboardingLink; - export type OnboardingLinkCreateParams = Stripe.Terminal.OnboardingLinkCreateParams; - export type OnboardingLinkResource = Stripe.Terminal.OnboardingLinkResource; - export type Reader = Stripe.Terminal.Reader; - export type DeletedReader = Stripe.Terminal.DeletedReader; - export type ReaderCreateParams = Stripe.Terminal.ReaderCreateParams; - export type ReaderRetrieveParams = Stripe.Terminal.ReaderRetrieveParams; - export type ReaderUpdateParams = Stripe.Terminal.ReaderUpdateParams; - export type ReaderListParams = Stripe.Terminal.ReaderListParams; - export type ReaderDeleteParams = Stripe.Terminal.ReaderDeleteParams; - export type ReaderCancelActionParams = Stripe.Terminal.ReaderCancelActionParams; - export type ReaderCollectInputsParams = Stripe.Terminal.ReaderCollectInputsParams; - export type ReaderCollectPaymentMethodParams = Stripe.Terminal.ReaderCollectPaymentMethodParams; - export type ReaderConfirmPaymentIntentParams = Stripe.Terminal.ReaderConfirmPaymentIntentParams; - export type ReaderProcessPaymentIntentParams = Stripe.Terminal.ReaderProcessPaymentIntentParams; - export type ReaderProcessSetupIntentParams = Stripe.Terminal.ReaderProcessSetupIntentParams; - export type ReaderRefundPaymentParams = Stripe.Terminal.ReaderRefundPaymentParams; - export type ReaderSetReaderDisplayParams = Stripe.Terminal.ReaderSetReaderDisplayParams; - export type ReaderResource = Stripe.Terminal.ReaderResource; - export type ReaderCollectedData = Stripe.Terminal.ReaderCollectedData; - export type ReaderCollectedDataRetrieveParams = Stripe.Terminal.ReaderCollectedDataRetrieveParams; - export type ReaderCollectedDatumResource = Stripe.Terminal.ReaderCollectedDatumResource; + export type Configuration = Stripe_.Terminal.Configuration; + export type DeletedConfiguration = Stripe_.Terminal.DeletedConfiguration; + export type ConfigurationCreateParams = Stripe_.Terminal.ConfigurationCreateParams; + export type ConfigurationRetrieveParams = Stripe_.Terminal.ConfigurationRetrieveParams; + export type ConfigurationUpdateParams = Stripe_.Terminal.ConfigurationUpdateParams; + export type ConfigurationListParams = Stripe_.Terminal.ConfigurationListParams; + export type ConfigurationDeleteParams = Stripe_.Terminal.ConfigurationDeleteParams; + export type ConfigurationResource = Stripe_.Terminal.ConfigurationResource; + export type ConnectionToken = Stripe_.Terminal.ConnectionToken; + export type ConnectionTokenCreateParams = Stripe_.Terminal.ConnectionTokenCreateParams; + export type ConnectionTokenResource = Stripe_.Terminal.ConnectionTokenResource; + export type Location = Stripe_.Terminal.Location; + export type DeletedLocation = Stripe_.Terminal.DeletedLocation; + export type LocationCreateParams = Stripe_.Terminal.LocationCreateParams; + export type LocationRetrieveParams = Stripe_.Terminal.LocationRetrieveParams; + export type LocationUpdateParams = Stripe_.Terminal.LocationUpdateParams; + export type LocationListParams = Stripe_.Terminal.LocationListParams; + export type LocationDeleteParams = Stripe_.Terminal.LocationDeleteParams; + export type LocationResource = Stripe_.Terminal.LocationResource; + export type OnboardingLink = Stripe_.Terminal.OnboardingLink; + export type OnboardingLinkCreateParams = Stripe_.Terminal.OnboardingLinkCreateParams; + export type OnboardingLinkResource = Stripe_.Terminal.OnboardingLinkResource; + export type Reader = Stripe_.Terminal.Reader; + export type DeletedReader = Stripe_.Terminal.DeletedReader; + export type ReaderCreateParams = Stripe_.Terminal.ReaderCreateParams; + export type ReaderRetrieveParams = Stripe_.Terminal.ReaderRetrieveParams; + export type ReaderUpdateParams = Stripe_.Terminal.ReaderUpdateParams; + export type ReaderListParams = Stripe_.Terminal.ReaderListParams; + export type ReaderDeleteParams = Stripe_.Terminal.ReaderDeleteParams; + export type ReaderCancelActionParams = Stripe_.Terminal.ReaderCancelActionParams; + export type ReaderCollectInputsParams = Stripe_.Terminal.ReaderCollectInputsParams; + export type ReaderCollectPaymentMethodParams = Stripe_.Terminal.ReaderCollectPaymentMethodParams; + export type ReaderConfirmPaymentIntentParams = Stripe_.Terminal.ReaderConfirmPaymentIntentParams; + export type ReaderProcessPaymentIntentParams = Stripe_.Terminal.ReaderProcessPaymentIntentParams; + export type ReaderProcessSetupIntentParams = Stripe_.Terminal.ReaderProcessSetupIntentParams; + export type ReaderRefundPaymentParams = Stripe_.Terminal.ReaderRefundPaymentParams; + export type ReaderSetReaderDisplayParams = Stripe_.Terminal.ReaderSetReaderDisplayParams; + export type ReaderResource = Stripe_.Terminal.ReaderResource; + export type ReaderCollectedData = Stripe_.Terminal.ReaderCollectedData; + export type ReaderCollectedDataRetrieveParams = Stripe_.Terminal.ReaderCollectedDataRetrieveParams; + export type ReaderCollectedDatumResource = Stripe_.Terminal.ReaderCollectedDatumResource; export namespace ConfigurationCreateParams { - export type BbposWisepad3 = Stripe.Terminal.ConfigurationCreateParams.BbposWisepad3; - export type BbposWiseposE = Stripe.Terminal.ConfigurationCreateParams.BbposWiseposE; - export type Cellular = Stripe.Terminal.ConfigurationCreateParams.Cellular; - export type Offline = Stripe.Terminal.ConfigurationCreateParams.Offline; - export type ReaderSecurity = Stripe.Terminal.ConfigurationCreateParams.ReaderSecurity; - export type RebootWindow = Stripe.Terminal.ConfigurationCreateParams.RebootWindow; - export type StripeS700 = Stripe.Terminal.ConfigurationCreateParams.StripeS700; - export type StripeS710 = Stripe.Terminal.ConfigurationCreateParams.StripeS710; - export type Tipping = Stripe.Terminal.ConfigurationCreateParams.Tipping; - export type VerifoneM425 = Stripe.Terminal.ConfigurationCreateParams.VerifoneM425; - export type VerifoneP400 = Stripe.Terminal.ConfigurationCreateParams.VerifoneP400; - export type VerifoneP630 = Stripe.Terminal.ConfigurationCreateParams.VerifoneP630; - export type VerifoneUx700 = Stripe.Terminal.ConfigurationCreateParams.VerifoneUx700; - export type VerifoneV660p = Stripe.Terminal.ConfigurationCreateParams.VerifoneV660p; - export type Wifi = Stripe.Terminal.ConfigurationCreateParams.Wifi; - } - export namespace ConfigurationUpdateParams { - export type BbposWisepad3 = Stripe.Terminal.ConfigurationUpdateParams.BbposWisepad3; - export type BbposWiseposE = Stripe.Terminal.ConfigurationUpdateParams.BbposWiseposE; - export type Cellular = Stripe.Terminal.ConfigurationUpdateParams.Cellular; - export type Offline = Stripe.Terminal.ConfigurationUpdateParams.Offline; - export type ReaderSecurity = Stripe.Terminal.ConfigurationUpdateParams.ReaderSecurity; - export type RebootWindow = Stripe.Terminal.ConfigurationUpdateParams.RebootWindow; - export type StripeS700 = Stripe.Terminal.ConfigurationUpdateParams.StripeS700; - export type StripeS710 = Stripe.Terminal.ConfigurationUpdateParams.StripeS710; - export type Tipping = Stripe.Terminal.ConfigurationUpdateParams.Tipping; - export type VerifoneM425 = Stripe.Terminal.ConfigurationUpdateParams.VerifoneM425; - export type VerifoneP400 = Stripe.Terminal.ConfigurationUpdateParams.VerifoneP400; - export type VerifoneP630 = Stripe.Terminal.ConfigurationUpdateParams.VerifoneP630; - export type VerifoneUx700 = Stripe.Terminal.ConfigurationUpdateParams.VerifoneUx700; - export type VerifoneV660p = Stripe.Terminal.ConfigurationUpdateParams.VerifoneV660p; - export type Wifi = Stripe.Terminal.ConfigurationUpdateParams.Wifi; - } - export namespace LocationCreateParams { - export type Address = Stripe.Terminal.LocationCreateParams.Address; - } - export namespace OnboardingLinkCreateParams { - export type LinkOptions = Stripe.Terminal.OnboardingLinkCreateParams.LinkOptions; + export type BbposWisepad3 = Stripe_.Terminal.ConfigurationCreateParams.BbposWisepad3; + export type BbposWiseposE = Stripe_.Terminal.ConfigurationCreateParams.BbposWiseposE; + export type Cellular = Stripe_.Terminal.ConfigurationCreateParams.Cellular; + export type Offline = Stripe_.Terminal.ConfigurationCreateParams.Offline; + export type ReaderSecurity = Stripe_.Terminal.ConfigurationCreateParams.ReaderSecurity; + export type RebootWindow = Stripe_.Terminal.ConfigurationCreateParams.RebootWindow; + export type StripeS700 = Stripe_.Terminal.ConfigurationCreateParams.StripeS700; + export type StripeS710 = Stripe_.Terminal.ConfigurationCreateParams.StripeS710; + export type Tipping = Stripe_.Terminal.ConfigurationCreateParams.Tipping; + export type VerifoneM425 = Stripe_.Terminal.ConfigurationCreateParams.VerifoneM425; + export type VerifoneP400 = Stripe_.Terminal.ConfigurationCreateParams.VerifoneP400; + export type VerifoneP630 = Stripe_.Terminal.ConfigurationCreateParams.VerifoneP630; + export type VerifoneUx700 = Stripe_.Terminal.ConfigurationCreateParams.VerifoneUx700; + export type VerifoneV660p = Stripe_.Terminal.ConfigurationCreateParams.VerifoneV660p; + export type Wifi = Stripe_.Terminal.ConfigurationCreateParams.Wifi; + export namespace Tipping { + export type Aed = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Aed; + export type Aud = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Aud; + export type Cad = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Cad; + export type Chf = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Chf; + export type Czk = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Czk; + export type Dkk = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Dkk; + export type Eur = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Eur; + export type Gbp = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Gbp; + export type Gip = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Gip; + export type Hkd = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Hkd; + export type Huf = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Huf; + export type Jpy = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Jpy; + export type Mxn = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Mxn; + export type Myr = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Myr; + export type Nok = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Nok; + export type Nzd = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Nzd; + export type Pln = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Pln; + export type Ron = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Ron; + export type Sek = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Sek; + export type Sgd = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Sgd; + export type Usd = Stripe_.Terminal.ConfigurationCreateParams.Tipping.Usd; + } + export namespace Wifi { + export type EnterpriseEapPeap = Stripe_.Terminal.ConfigurationCreateParams.Wifi.EnterpriseEapPeap; + export type EnterpriseEapTls = Stripe_.Terminal.ConfigurationCreateParams.Wifi.EnterpriseEapTls; + export type PersonalPsk = Stripe_.Terminal.ConfigurationCreateParams.Wifi.PersonalPsk; + export type Type = Stripe_.Terminal.ConfigurationCreateParams.Wifi.Type; + } } - export namespace ReaderListParams { - export type DeviceType = Stripe.Terminal.ReaderListParams.DeviceType; - export type Status = Stripe.Terminal.ReaderListParams.Status; + export namespace Configuration { + export type BbposWisepad3 = Stripe_.Terminal.Configuration.BbposWisepad3; + export type BbposWiseposE = Stripe_.Terminal.Configuration.BbposWiseposE; + export type Cellular = Stripe_.Terminal.Configuration.Cellular; + export type Offline = Stripe_.Terminal.Configuration.Offline; + export type ReaderSecurity = Stripe_.Terminal.Configuration.ReaderSecurity; + export type RebootWindow = Stripe_.Terminal.Configuration.RebootWindow; + export type StripeS700 = Stripe_.Terminal.Configuration.StripeS700; + export type StripeS710 = Stripe_.Terminal.Configuration.StripeS710; + export type Tipping = Stripe_.Terminal.Configuration.Tipping; + export type VerifoneM425 = Stripe_.Terminal.Configuration.VerifoneM425; + export type VerifoneP400 = Stripe_.Terminal.Configuration.VerifoneP400; + export type VerifoneP630 = Stripe_.Terminal.Configuration.VerifoneP630; + export type VerifoneUx700 = Stripe_.Terminal.Configuration.VerifoneUx700; + export type VerifoneV660p = Stripe_.Terminal.Configuration.VerifoneV660p; + export type Wifi = Stripe_.Terminal.Configuration.Wifi; + export namespace Tipping { + export type Aed = Stripe_.Terminal.Configuration.Tipping.Aed; + export type Aud = Stripe_.Terminal.Configuration.Tipping.Aud; + export type Cad = Stripe_.Terminal.Configuration.Tipping.Cad; + export type Chf = Stripe_.Terminal.Configuration.Tipping.Chf; + export type Czk = Stripe_.Terminal.Configuration.Tipping.Czk; + export type Dkk = Stripe_.Terminal.Configuration.Tipping.Dkk; + export type Eur = Stripe_.Terminal.Configuration.Tipping.Eur; + export type Gbp = Stripe_.Terminal.Configuration.Tipping.Gbp; + export type Gip = Stripe_.Terminal.Configuration.Tipping.Gip; + export type Hkd = Stripe_.Terminal.Configuration.Tipping.Hkd; + export type Huf = Stripe_.Terminal.Configuration.Tipping.Huf; + export type Jpy = Stripe_.Terminal.Configuration.Tipping.Jpy; + export type Mxn = Stripe_.Terminal.Configuration.Tipping.Mxn; + export type Myr = Stripe_.Terminal.Configuration.Tipping.Myr; + export type Nok = Stripe_.Terminal.Configuration.Tipping.Nok; + export type Nzd = Stripe_.Terminal.Configuration.Tipping.Nzd; + export type Pln = Stripe_.Terminal.Configuration.Tipping.Pln; + export type Ron = Stripe_.Terminal.Configuration.Tipping.Ron; + export type Sek = Stripe_.Terminal.Configuration.Tipping.Sek; + export type Sgd = Stripe_.Terminal.Configuration.Tipping.Sgd; + export type Usd = Stripe_.Terminal.Configuration.Tipping.Usd; + } + export namespace Wifi { + export type EnterpriseEapPeap = Stripe_.Terminal.Configuration.Wifi.EnterpriseEapPeap; + export type EnterpriseEapTls = Stripe_.Terminal.Configuration.Wifi.EnterpriseEapTls; + export type PersonalPsk = Stripe_.Terminal.Configuration.Wifi.PersonalPsk; + export type Type = Stripe_.Terminal.Configuration.Wifi.Type; + } } - export namespace ReaderCollectInputsParams { - export type Input = Stripe.Terminal.ReaderCollectInputsParams.Input; + export namespace LocationCreateParams { + export type Address = Stripe_.Terminal.LocationCreateParams.Address; } - export namespace ReaderCollectPaymentMethodParams { - export type CollectConfig = Stripe.Terminal.ReaderCollectPaymentMethodParams.CollectConfig; + export namespace Location { + export type AddressKana = Stripe_.Terminal.Location.AddressKana; + export type AddressKanji = Stripe_.Terminal.Location.AddressKanji; } - export namespace ReaderConfirmPaymentIntentParams { - export type ConfirmConfig = Stripe.Terminal.ReaderConfirmPaymentIntentParams.ConfirmConfig; + export namespace OnboardingLinkCreateParams { + export type LinkOptions = Stripe_.Terminal.OnboardingLinkCreateParams.LinkOptions; + export namespace LinkOptions { + export type AppleTermsAndConditions = Stripe_.Terminal.OnboardingLinkCreateParams.LinkOptions.AppleTermsAndConditions; + } } - export namespace ReaderProcessPaymentIntentParams { - export type ProcessConfig = Stripe.Terminal.ReaderProcessPaymentIntentParams.ProcessConfig; + export namespace OnboardingLink { + export type LinkOptions = Stripe_.Terminal.OnboardingLink.LinkOptions; + export namespace LinkOptions { + export type AppleTermsAndConditions = Stripe_.Terminal.OnboardingLink.LinkOptions.AppleTermsAndConditions; + } } - export namespace ReaderProcessSetupIntentParams { - export type AllowRedisplay = Stripe.Terminal.ReaderProcessSetupIntentParams.AllowRedisplay; - export type ProcessConfig = Stripe.Terminal.ReaderProcessSetupIntentParams.ProcessConfig; + export namespace DeletedReader { + export type DeviceType = Stripe_.Terminal.DeletedReader.DeviceType; } - export namespace ReaderRefundPaymentParams { - export type RefundPaymentConfig = Stripe.Terminal.ReaderRefundPaymentParams.RefundPaymentConfig; + export namespace Reader { + export type Action = Stripe_.Terminal.Reader.Action; + export type DeviceType = Stripe_.Terminal.Reader.DeviceType; + export type Status = Stripe_.Terminal.Reader.Status; + export namespace Action { + export type ApiError = Stripe_.Terminal.Reader.Action.ApiError; + export type CollectInputs = Stripe_.Terminal.Reader.Action.CollectInputs; + export type CollectPaymentMethod = Stripe_.Terminal.Reader.Action.CollectPaymentMethod; + export type ConfirmPaymentIntent = Stripe_.Terminal.Reader.Action.ConfirmPaymentIntent; + export type PrintContent = Stripe_.Terminal.Reader.Action.PrintContent; + export type ProcessPaymentIntent = Stripe_.Terminal.Reader.Action.ProcessPaymentIntent; + export type ProcessSetupIntent = Stripe_.Terminal.Reader.Action.ProcessSetupIntent; + export type RefundPayment = Stripe_.Terminal.Reader.Action.RefundPayment; + export type SetReaderDisplay = Stripe_.Terminal.Reader.Action.SetReaderDisplay; + export type Status = Stripe_.Terminal.Reader.Action.Status; + export type Type = Stripe_.Terminal.Reader.Action.Type; + export namespace ApiError { + export type Code = Stripe_.Terminal.Reader.Action.ApiError.Code; + export type Type = Stripe_.Terminal.Reader.Action.ApiError.Type; + } + export namespace CollectInputs { + export type Input = Stripe_.Terminal.Reader.Action.CollectInputs.Input; + export namespace Input { + export type CustomText = Stripe_.Terminal.Reader.Action.CollectInputs.Input.CustomText; + export type Email = Stripe_.Terminal.Reader.Action.CollectInputs.Input.Email; + export type Numeric = Stripe_.Terminal.Reader.Action.CollectInputs.Input.Numeric; + export type Phone = Stripe_.Terminal.Reader.Action.CollectInputs.Input.Phone; + export type Selection = Stripe_.Terminal.Reader.Action.CollectInputs.Input.Selection; + export type Signature = Stripe_.Terminal.Reader.Action.CollectInputs.Input.Signature; + export type Text = Stripe_.Terminal.Reader.Action.CollectInputs.Input.Text; + export type Toggle = Stripe_.Terminal.Reader.Action.CollectInputs.Input.Toggle; + export type Type = Stripe_.Terminal.Reader.Action.CollectInputs.Input.Type; + export namespace Selection { + export type Choice = Stripe_.Terminal.Reader.Action.CollectInputs.Input.Selection.Choice; + export namespace Choice { + export type Style = Stripe_.Terminal.Reader.Action.CollectInputs.Input.Selection.Choice.Style; + } + } + export namespace Toggle { + export type DefaultValue = Stripe_.Terminal.Reader.Action.CollectInputs.Input.Toggle.DefaultValue; + export type Value = Stripe_.Terminal.Reader.Action.CollectInputs.Input.Toggle.Value; + } + } + } + export namespace CollectPaymentMethod { + export type CollectConfig = Stripe_.Terminal.Reader.Action.CollectPaymentMethod.CollectConfig; + export namespace CollectConfig { + export type Tipping = Stripe_.Terminal.Reader.Action.CollectPaymentMethod.CollectConfig.Tipping; + } + } + export namespace ConfirmPaymentIntent { + export type ConfirmConfig = Stripe_.Terminal.Reader.Action.ConfirmPaymentIntent.ConfirmConfig; + } + export namespace PrintContent { + export type Image = Stripe_.Terminal.Reader.Action.PrintContent.Image; + } + export namespace ProcessPaymentIntent { + export type ProcessConfig = Stripe_.Terminal.Reader.Action.ProcessPaymentIntent.ProcessConfig; + export namespace ProcessConfig { + export type Tipping = Stripe_.Terminal.Reader.Action.ProcessPaymentIntent.ProcessConfig.Tipping; + } + } + export namespace ProcessSetupIntent { + export type ProcessConfig = Stripe_.Terminal.Reader.Action.ProcessSetupIntent.ProcessConfig; + } + export namespace RefundPayment { + export type Reason = Stripe_.Terminal.Reader.Action.RefundPayment.Reason; + export type RefundPaymentConfig = Stripe_.Terminal.Reader.Action.RefundPayment.RefundPaymentConfig; + } + export namespace SetReaderDisplay { + export type Cart = Stripe_.Terminal.Reader.Action.SetReaderDisplay.Cart; + export namespace Cart { + export type LineItem = Stripe_.Terminal.Reader.Action.SetReaderDisplay.Cart.LineItem; + } + } + } } - export namespace ReaderSetReaderDisplayParams { - export type Cart = Stripe.Terminal.ReaderSetReaderDisplayParams.Cart; + export namespace ReaderCollectedData { + export type Magstripe = Stripe_.Terminal.ReaderCollectedData.Magstripe; } } export namespace TestHelpers { - export type TestClock = Stripe.TestHelpers.TestClock; - export type DeletedTestClock = Stripe.TestHelpers.DeletedTestClock; - export type TestClockCreateParams = Stripe.TestHelpers.TestClockCreateParams; - export type TestClockRetrieveParams = Stripe.TestHelpers.TestClockRetrieveParams; - export type TestClockListParams = Stripe.TestHelpers.TestClockListParams; - export type TestClockDeleteParams = Stripe.TestHelpers.TestClockDeleteParams; - export type TestClockAdvanceParams = Stripe.TestHelpers.TestClockAdvanceParams; - export type TestClockResource = Stripe.TestHelpers.TestClockResource; + export type TestClock = Stripe_.TestHelpers.TestClock; + export type DeletedTestClock = Stripe_.TestHelpers.DeletedTestClock; + export type TestClockCreateParams = Stripe_.TestHelpers.TestClockCreateParams; + export type TestClockRetrieveParams = Stripe_.TestHelpers.TestClockRetrieveParams; + export type TestClockListParams = Stripe_.TestHelpers.TestClockListParams; + export type TestClockDeleteParams = Stripe_.TestHelpers.TestClockDeleteParams; + export type TestClockAdvanceParams = Stripe_.TestHelpers.TestClockAdvanceParams; + export type TestClockResource = Stripe_.TestHelpers.TestClockResource; + export namespace TestClock { + export type Status = Stripe_.TestHelpers.TestClock.Status; + export type StatusDetails = Stripe_.TestHelpers.TestClock.StatusDetails; + export namespace StatusDetails { + export type Advancing = Stripe_.TestHelpers.TestClock.StatusDetails.Advancing; + } + } } export namespace Treasury { - export type CreditReversal = Stripe.Treasury.CreditReversal; - export type CreditReversalCreateParams = Stripe.Treasury.CreditReversalCreateParams; - export type CreditReversalRetrieveParams = Stripe.Treasury.CreditReversalRetrieveParams; - export type CreditReversalListParams = Stripe.Treasury.CreditReversalListParams; - export type CreditReversalResource = Stripe.Treasury.CreditReversalResource; - export type DebitReversal = Stripe.Treasury.DebitReversal; - export type DebitReversalCreateParams = Stripe.Treasury.DebitReversalCreateParams; - export type DebitReversalRetrieveParams = Stripe.Treasury.DebitReversalRetrieveParams; - export type DebitReversalListParams = Stripe.Treasury.DebitReversalListParams; - export type DebitReversalResource = Stripe.Treasury.DebitReversalResource; - export type FinancialAccount = Stripe.Treasury.FinancialAccount; - export type FinancialAccountCreateParams = Stripe.Treasury.FinancialAccountCreateParams; - export type FinancialAccountRetrieveParams = Stripe.Treasury.FinancialAccountRetrieveParams; - export type FinancialAccountUpdateParams = Stripe.Treasury.FinancialAccountUpdateParams; - export type FinancialAccountListParams = Stripe.Treasury.FinancialAccountListParams; - export type FinancialAccountCloseParams = Stripe.Treasury.FinancialAccountCloseParams; - export type FinancialAccountRetrieveFeaturesParams = Stripe.Treasury.FinancialAccountRetrieveFeaturesParams; - export type FinancialAccountUpdateFeaturesParams = Stripe.Treasury.FinancialAccountUpdateFeaturesParams; - export type FinancialAccountResource = Stripe.Treasury.FinancialAccountResource; - export type InboundTransfer = Stripe.Treasury.InboundTransfer; - export type InboundTransferCreateParams = Stripe.Treasury.InboundTransferCreateParams; - export type InboundTransferRetrieveParams = Stripe.Treasury.InboundTransferRetrieveParams; - export type InboundTransferListParams = Stripe.Treasury.InboundTransferListParams; - export type InboundTransferCancelParams = Stripe.Treasury.InboundTransferCancelParams; - export type InboundTransferResource = Stripe.Treasury.InboundTransferResource; - export type OutboundPayment = Stripe.Treasury.OutboundPayment; - export type OutboundPaymentCreateParams = Stripe.Treasury.OutboundPaymentCreateParams; - export type OutboundPaymentRetrieveParams = Stripe.Treasury.OutboundPaymentRetrieveParams; - export type OutboundPaymentListParams = Stripe.Treasury.OutboundPaymentListParams; - export type OutboundPaymentCancelParams = Stripe.Treasury.OutboundPaymentCancelParams; - export type OutboundPaymentResource = Stripe.Treasury.OutboundPaymentResource; - export type OutboundTransfer = Stripe.Treasury.OutboundTransfer; - export type OutboundTransferCreateParams = Stripe.Treasury.OutboundTransferCreateParams; - export type OutboundTransferRetrieveParams = Stripe.Treasury.OutboundTransferRetrieveParams; - export type OutboundTransferListParams = Stripe.Treasury.OutboundTransferListParams; - export type OutboundTransferCancelParams = Stripe.Treasury.OutboundTransferCancelParams; - export type OutboundTransferResource = Stripe.Treasury.OutboundTransferResource; - export type ReceivedCredit = Stripe.Treasury.ReceivedCredit; - export type ReceivedCreditRetrieveParams = Stripe.Treasury.ReceivedCreditRetrieveParams; - export type ReceivedCreditListParams = Stripe.Treasury.ReceivedCreditListParams; - export type ReceivedCreditResource = Stripe.Treasury.ReceivedCreditResource; - export type ReceivedDebit = Stripe.Treasury.ReceivedDebit; - export type ReceivedDebitRetrieveParams = Stripe.Treasury.ReceivedDebitRetrieveParams; - export type ReceivedDebitListParams = Stripe.Treasury.ReceivedDebitListParams; - export type ReceivedDebitResource = Stripe.Treasury.ReceivedDebitResource; - export type Transaction = Stripe.Treasury.Transaction; - export type TransactionRetrieveParams = Stripe.Treasury.TransactionRetrieveParams; - export type TransactionListParams = Stripe.Treasury.TransactionListParams; - export type TransactionResource = Stripe.Treasury.TransactionResource; - export type TransactionEntry = Stripe.Treasury.TransactionEntry; - export type TransactionEntryRetrieveParams = Stripe.Treasury.TransactionEntryRetrieveParams; - export type TransactionEntryListParams = Stripe.Treasury.TransactionEntryListParams; - export type TransactionEntryResource = Stripe.Treasury.TransactionEntryResource; - export type FinancialAccountFeatures = Stripe.Treasury.FinancialAccountFeatures; - export namespace CreditReversalListParams { - export type Status = Stripe.Treasury.CreditReversalListParams.Status; - } - export namespace DebitReversalListParams { - export type Resolution = Stripe.Treasury.DebitReversalListParams.Resolution; - export type Status = Stripe.Treasury.DebitReversalListParams.Status; - } - export namespace FinancialAccountCreateParams { - export type Features = Stripe.Treasury.FinancialAccountCreateParams.Features; - export type PlatformRestrictions = Stripe.Treasury.FinancialAccountCreateParams.PlatformRestrictions; - } - export namespace FinancialAccountUpdateParams { - export type Features = Stripe.Treasury.FinancialAccountUpdateParams.Features; - export type ForwardingSettings = Stripe.Treasury.FinancialAccountUpdateParams.ForwardingSettings; - export type PlatformRestrictions = Stripe.Treasury.FinancialAccountUpdateParams.PlatformRestrictions; + export type CreditReversal = Stripe_.Treasury.CreditReversal; + export type CreditReversalCreateParams = Stripe_.Treasury.CreditReversalCreateParams; + export type CreditReversalRetrieveParams = Stripe_.Treasury.CreditReversalRetrieveParams; + export type CreditReversalListParams = Stripe_.Treasury.CreditReversalListParams; + export type CreditReversalResource = Stripe_.Treasury.CreditReversalResource; + export type DebitReversal = Stripe_.Treasury.DebitReversal; + export type DebitReversalCreateParams = Stripe_.Treasury.DebitReversalCreateParams; + export type DebitReversalRetrieveParams = Stripe_.Treasury.DebitReversalRetrieveParams; + export type DebitReversalListParams = Stripe_.Treasury.DebitReversalListParams; + export type DebitReversalResource = Stripe_.Treasury.DebitReversalResource; + export type FinancialAccount = Stripe_.Treasury.FinancialAccount; + export type FinancialAccountCreateParams = Stripe_.Treasury.FinancialAccountCreateParams; + export type FinancialAccountRetrieveParams = Stripe_.Treasury.FinancialAccountRetrieveParams; + export type FinancialAccountUpdateParams = Stripe_.Treasury.FinancialAccountUpdateParams; + export type FinancialAccountListParams = Stripe_.Treasury.FinancialAccountListParams; + export type FinancialAccountCloseParams = Stripe_.Treasury.FinancialAccountCloseParams; + export type FinancialAccountRetrieveFeaturesParams = Stripe_.Treasury.FinancialAccountRetrieveFeaturesParams; + export type FinancialAccountUpdateFeaturesParams = Stripe_.Treasury.FinancialAccountUpdateFeaturesParams; + export type FinancialAccountResource = Stripe_.Treasury.FinancialAccountResource; + export type InboundTransfer = Stripe_.Treasury.InboundTransfer; + export type InboundTransferCreateParams = Stripe_.Treasury.InboundTransferCreateParams; + export type InboundTransferRetrieveParams = Stripe_.Treasury.InboundTransferRetrieveParams; + export type InboundTransferListParams = Stripe_.Treasury.InboundTransferListParams; + export type InboundTransferCancelParams = Stripe_.Treasury.InboundTransferCancelParams; + export type InboundTransferResource = Stripe_.Treasury.InboundTransferResource; + export type OutboundPayment = Stripe_.Treasury.OutboundPayment; + export type OutboundPaymentCreateParams = Stripe_.Treasury.OutboundPaymentCreateParams; + export type OutboundPaymentRetrieveParams = Stripe_.Treasury.OutboundPaymentRetrieveParams; + export type OutboundPaymentListParams = Stripe_.Treasury.OutboundPaymentListParams; + export type OutboundPaymentCancelParams = Stripe_.Treasury.OutboundPaymentCancelParams; + export type OutboundPaymentResource = Stripe_.Treasury.OutboundPaymentResource; + export type OutboundTransfer = Stripe_.Treasury.OutboundTransfer; + export type OutboundTransferCreateParams = Stripe_.Treasury.OutboundTransferCreateParams; + export type OutboundTransferRetrieveParams = Stripe_.Treasury.OutboundTransferRetrieveParams; + export type OutboundTransferListParams = Stripe_.Treasury.OutboundTransferListParams; + export type OutboundTransferCancelParams = Stripe_.Treasury.OutboundTransferCancelParams; + export type OutboundTransferResource = Stripe_.Treasury.OutboundTransferResource; + export type ReceivedCredit = Stripe_.Treasury.ReceivedCredit; + export type ReceivedCreditRetrieveParams = Stripe_.Treasury.ReceivedCreditRetrieveParams; + export type ReceivedCreditListParams = Stripe_.Treasury.ReceivedCreditListParams; + export type ReceivedCreditResource = Stripe_.Treasury.ReceivedCreditResource; + export type ReceivedDebit = Stripe_.Treasury.ReceivedDebit; + export type ReceivedDebitRetrieveParams = Stripe_.Treasury.ReceivedDebitRetrieveParams; + export type ReceivedDebitListParams = Stripe_.Treasury.ReceivedDebitListParams; + export type ReceivedDebitResource = Stripe_.Treasury.ReceivedDebitResource; + export type Transaction = Stripe_.Treasury.Transaction; + export type TransactionRetrieveParams = Stripe_.Treasury.TransactionRetrieveParams; + export type TransactionListParams = Stripe_.Treasury.TransactionListParams; + export type TransactionResource = Stripe_.Treasury.TransactionResource; + export type TransactionEntry = Stripe_.Treasury.TransactionEntry; + export type TransactionEntryRetrieveParams = Stripe_.Treasury.TransactionEntryRetrieveParams; + export type TransactionEntryListParams = Stripe_.Treasury.TransactionEntryListParams; + export type TransactionEntryResource = Stripe_.Treasury.TransactionEntryResource; + export type FinancialAccountFeatures = Stripe_.Treasury.FinancialAccountFeatures; + export namespace CreditReversal { + export type Network = Stripe_.Treasury.CreditReversal.Network; + export type Status = Stripe_.Treasury.CreditReversal.Status; + export type StatusTransitions = Stripe_.Treasury.CreditReversal.StatusTransitions; } - export namespace FinancialAccountListParams { - export type Status = Stripe.Treasury.FinancialAccountListParams.Status; + export namespace DebitReversal { + export type LinkedFlows = Stripe_.Treasury.DebitReversal.LinkedFlows; + export type Network = Stripe_.Treasury.DebitReversal.Network; + export type Status = Stripe_.Treasury.DebitReversal.Status; + export type StatusTransitions = Stripe_.Treasury.DebitReversal.StatusTransitions; } - export namespace FinancialAccountCloseParams { - export type ForwardingSettings = Stripe.Treasury.FinancialAccountCloseParams.ForwardingSettings; + export namespace FinancialAccountCreateParams { + export type Features = Stripe_.Treasury.FinancialAccountCreateParams.Features; + export type PlatformRestrictions = Stripe_.Treasury.FinancialAccountCreateParams.PlatformRestrictions; + export namespace Features { + export type CardIssuing = Stripe_.Treasury.FinancialAccountCreateParams.Features.CardIssuing; + export type DepositInsurance = Stripe_.Treasury.FinancialAccountCreateParams.Features.DepositInsurance; + export type FinancialAddresses = Stripe_.Treasury.FinancialAccountCreateParams.Features.FinancialAddresses; + export type InboundTransfers = Stripe_.Treasury.FinancialAccountCreateParams.Features.InboundTransfers; + export type IntraStripeFlows = Stripe_.Treasury.FinancialAccountCreateParams.Features.IntraStripeFlows; + export type OutboundPayments = Stripe_.Treasury.FinancialAccountCreateParams.Features.OutboundPayments; + export type OutboundTransfers = Stripe_.Treasury.FinancialAccountCreateParams.Features.OutboundTransfers; + export namespace FinancialAddresses { + export type Aba = Stripe_.Treasury.FinancialAccountCreateParams.Features.FinancialAddresses.Aba; + export namespace Aba { + export type Bank = Stripe_.Treasury.FinancialAccountCreateParams.Features.FinancialAddresses.Aba.Bank; + } + } + export namespace InboundTransfers { + export type Ach = Stripe_.Treasury.FinancialAccountCreateParams.Features.InboundTransfers.Ach; + } + export namespace OutboundPayments { + export type Ach = Stripe_.Treasury.FinancialAccountCreateParams.Features.OutboundPayments.Ach; + export type UsDomesticWire = Stripe_.Treasury.FinancialAccountCreateParams.Features.OutboundPayments.UsDomesticWire; + } + export namespace OutboundTransfers { + export type Ach = Stripe_.Treasury.FinancialAccountCreateParams.Features.OutboundTransfers.Ach; + export type UsDomesticWire = Stripe_.Treasury.FinancialAccountCreateParams.Features.OutboundTransfers.UsDomesticWire; + } + } + export namespace PlatformRestrictions { + export type InboundFlows = Stripe_.Treasury.FinancialAccountCreateParams.PlatformRestrictions.InboundFlows; + export type OutboundFlows = Stripe_.Treasury.FinancialAccountCreateParams.PlatformRestrictions.OutboundFlows; + } } - export namespace FinancialAccountUpdateFeaturesParams { - export type CardIssuing = Stripe.Treasury.FinancialAccountUpdateFeaturesParams.CardIssuing; - export type DepositInsurance = Stripe.Treasury.FinancialAccountUpdateFeaturesParams.DepositInsurance; - export type FinancialAddresses = Stripe.Treasury.FinancialAccountUpdateFeaturesParams.FinancialAddresses; - export type InboundTransfers = Stripe.Treasury.FinancialAccountUpdateFeaturesParams.InboundTransfers; - export type IntraStripeFlows = Stripe.Treasury.FinancialAccountUpdateFeaturesParams.IntraStripeFlows; - export type OutboundPayments = Stripe.Treasury.FinancialAccountUpdateFeaturesParams.OutboundPayments; - export type OutboundTransfers = Stripe.Treasury.FinancialAccountUpdateFeaturesParams.OutboundTransfers; + export namespace FinancialAccount { + export type ActiveFeature = Stripe_.Treasury.FinancialAccount.ActiveFeature; + export type Balance = Stripe_.Treasury.FinancialAccount.Balance; + export type FinancialAddress = Stripe_.Treasury.FinancialAccount.FinancialAddress; + export type PendingFeature = Stripe_.Treasury.FinancialAccount.PendingFeature; + export type PlatformRestrictions = Stripe_.Treasury.FinancialAccount.PlatformRestrictions; + export type RestrictedFeature = Stripe_.Treasury.FinancialAccount.RestrictedFeature; + export type Status = Stripe_.Treasury.FinancialAccount.Status; + export type StatusDetails = Stripe_.Treasury.FinancialAccount.StatusDetails; + export namespace FinancialAddress { + export type Aba = Stripe_.Treasury.FinancialAccount.FinancialAddress.Aba; + export type SupportedNetwork = Stripe_.Treasury.FinancialAccount.FinancialAddress.SupportedNetwork; + } + export namespace PlatformRestrictions { + export type InboundFlows = Stripe_.Treasury.FinancialAccount.PlatformRestrictions.InboundFlows; + export type OutboundFlows = Stripe_.Treasury.FinancialAccount.PlatformRestrictions.OutboundFlows; + } + export namespace StatusDetails { + export type Closed = Stripe_.Treasury.FinancialAccount.StatusDetails.Closed; + export namespace Closed { + export type Reason = Stripe_.Treasury.FinancialAccount.StatusDetails.Closed.Reason; + } + } } - export namespace InboundTransferListParams { - export type Status = Stripe.Treasury.InboundTransferListParams.Status; + export namespace InboundTransfer { + export type FailureDetails = Stripe_.Treasury.InboundTransfer.FailureDetails; + export type LinkedFlows = Stripe_.Treasury.InboundTransfer.LinkedFlows; + export type OriginPaymentMethodDetails = Stripe_.Treasury.InboundTransfer.OriginPaymentMethodDetails; + export type Status = Stripe_.Treasury.InboundTransfer.Status; + export type StatusTransitions = Stripe_.Treasury.InboundTransfer.StatusTransitions; + export namespace FailureDetails { + export type Code = Stripe_.Treasury.InboundTransfer.FailureDetails.Code; + } + export namespace OriginPaymentMethodDetails { + export type BillingDetails = Stripe_.Treasury.InboundTransfer.OriginPaymentMethodDetails.BillingDetails; + export type UsBankAccount = Stripe_.Treasury.InboundTransfer.OriginPaymentMethodDetails.UsBankAccount; + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.Treasury.InboundTransfer.OriginPaymentMethodDetails.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.Treasury.InboundTransfer.OriginPaymentMethodDetails.UsBankAccount.AccountType; + } + } } export namespace OutboundPaymentCreateParams { - export type DestinationPaymentMethodData = Stripe.Treasury.OutboundPaymentCreateParams.DestinationPaymentMethodData; - export type DestinationPaymentMethodOptions = Stripe.Treasury.OutboundPaymentCreateParams.DestinationPaymentMethodOptions; - export type EndUserDetails = Stripe.Treasury.OutboundPaymentCreateParams.EndUserDetails; + export type DestinationPaymentMethodData = Stripe_.Treasury.OutboundPaymentCreateParams.DestinationPaymentMethodData; + export type DestinationPaymentMethodOptions = Stripe_.Treasury.OutboundPaymentCreateParams.DestinationPaymentMethodOptions; + export type EndUserDetails = Stripe_.Treasury.OutboundPaymentCreateParams.EndUserDetails; + export namespace DestinationPaymentMethodData { + export type BillingDetails = Stripe_.Treasury.OutboundPaymentCreateParams.DestinationPaymentMethodData.BillingDetails; + export type Type = Stripe_.Treasury.OutboundPaymentCreateParams.DestinationPaymentMethodData.Type; + export type UsBankAccount = Stripe_.Treasury.OutboundPaymentCreateParams.DestinationPaymentMethodData.UsBankAccount; + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.Treasury.OutboundPaymentCreateParams.DestinationPaymentMethodData.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.Treasury.OutboundPaymentCreateParams.DestinationPaymentMethodData.UsBankAccount.AccountType; + } + } + export namespace DestinationPaymentMethodOptions { + export type UsBankAccount = Stripe_.Treasury.OutboundPaymentCreateParams.DestinationPaymentMethodOptions.UsBankAccount; + export namespace UsBankAccount { + export type Network = Stripe_.Treasury.OutboundPaymentCreateParams.DestinationPaymentMethodOptions.UsBankAccount.Network; + } + } } - export namespace OutboundPaymentListParams { - export type Status = Stripe.Treasury.OutboundPaymentListParams.Status; + export namespace OutboundPayment { + export type DestinationPaymentMethodDetails = Stripe_.Treasury.OutboundPayment.DestinationPaymentMethodDetails; + export type EndUserDetails = Stripe_.Treasury.OutboundPayment.EndUserDetails; + export type ReturnedDetails = Stripe_.Treasury.OutboundPayment.ReturnedDetails; + export type Status = Stripe_.Treasury.OutboundPayment.Status; + export type StatusTransitions = Stripe_.Treasury.OutboundPayment.StatusTransitions; + export type TrackingDetails = Stripe_.Treasury.OutboundPayment.TrackingDetails; + export namespace DestinationPaymentMethodDetails { + export type BillingDetails = Stripe_.Treasury.OutboundPayment.DestinationPaymentMethodDetails.BillingDetails; + export type FinancialAccount = Stripe_.Treasury.OutboundPayment.DestinationPaymentMethodDetails.FinancialAccount; + export type Type = Stripe_.Treasury.OutboundPayment.DestinationPaymentMethodDetails.Type; + export type UsBankAccount = Stripe_.Treasury.OutboundPayment.DestinationPaymentMethodDetails.UsBankAccount; + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.Treasury.OutboundPayment.DestinationPaymentMethodDetails.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.Treasury.OutboundPayment.DestinationPaymentMethodDetails.UsBankAccount.AccountType; + export type Network = Stripe_.Treasury.OutboundPayment.DestinationPaymentMethodDetails.UsBankAccount.Network; + } + } + export namespace ReturnedDetails { + export type Code = Stripe_.Treasury.OutboundPayment.ReturnedDetails.Code; + } + export namespace TrackingDetails { + export type Ach = Stripe_.Treasury.OutboundPayment.TrackingDetails.Ach; + export type Type = Stripe_.Treasury.OutboundPayment.TrackingDetails.Type; + export type UsDomesticWire = Stripe_.Treasury.OutboundPayment.TrackingDetails.UsDomesticWire; + } } export namespace OutboundTransferCreateParams { - export type DestinationPaymentMethodData = Stripe.Treasury.OutboundTransferCreateParams.DestinationPaymentMethodData; - export type DestinationPaymentMethodOptions = Stripe.Treasury.OutboundTransferCreateParams.DestinationPaymentMethodOptions; - export type NetworkDetails = Stripe.Treasury.OutboundTransferCreateParams.NetworkDetails; + export type DestinationPaymentMethodData = Stripe_.Treasury.OutboundTransferCreateParams.DestinationPaymentMethodData; + export type DestinationPaymentMethodOptions = Stripe_.Treasury.OutboundTransferCreateParams.DestinationPaymentMethodOptions; + export type NetworkDetails = Stripe_.Treasury.OutboundTransferCreateParams.NetworkDetails; + export namespace DestinationPaymentMethodOptions { + export type UsBankAccount = Stripe_.Treasury.OutboundTransferCreateParams.DestinationPaymentMethodOptions.UsBankAccount; + export namespace UsBankAccount { + export type Network = Stripe_.Treasury.OutboundTransferCreateParams.DestinationPaymentMethodOptions.UsBankAccount.Network; + } + } + export namespace NetworkDetails { + export type Ach = Stripe_.Treasury.OutboundTransferCreateParams.NetworkDetails.Ach; + } + } + export namespace OutboundTransfer { + export type DestinationPaymentMethodDetails = Stripe_.Treasury.OutboundTransfer.DestinationPaymentMethodDetails; + export type NetworkDetails = Stripe_.Treasury.OutboundTransfer.NetworkDetails; + export type ReturnedDetails = Stripe_.Treasury.OutboundTransfer.ReturnedDetails; + export type Status = Stripe_.Treasury.OutboundTransfer.Status; + export type StatusTransitions = Stripe_.Treasury.OutboundTransfer.StatusTransitions; + export type TrackingDetails = Stripe_.Treasury.OutboundTransfer.TrackingDetails; + export namespace DestinationPaymentMethodDetails { + export type BillingDetails = Stripe_.Treasury.OutboundTransfer.DestinationPaymentMethodDetails.BillingDetails; + export type FinancialAccount = Stripe_.Treasury.OutboundTransfer.DestinationPaymentMethodDetails.FinancialAccount; + export type Type = Stripe_.Treasury.OutboundTransfer.DestinationPaymentMethodDetails.Type; + export type UsBankAccount = Stripe_.Treasury.OutboundTransfer.DestinationPaymentMethodDetails.UsBankAccount; + export namespace UsBankAccount { + export type AccountHolderType = Stripe_.Treasury.OutboundTransfer.DestinationPaymentMethodDetails.UsBankAccount.AccountHolderType; + export type AccountType = Stripe_.Treasury.OutboundTransfer.DestinationPaymentMethodDetails.UsBankAccount.AccountType; + export type Network = Stripe_.Treasury.OutboundTransfer.DestinationPaymentMethodDetails.UsBankAccount.Network; + } + } + export namespace NetworkDetails { + export type Ach = Stripe_.Treasury.OutboundTransfer.NetworkDetails.Ach; + } + export namespace ReturnedDetails { + export type Code = Stripe_.Treasury.OutboundTransfer.ReturnedDetails.Code; + } + export namespace TrackingDetails { + export type Ach = Stripe_.Treasury.OutboundTransfer.TrackingDetails.Ach; + export type Type = Stripe_.Treasury.OutboundTransfer.TrackingDetails.Type; + export type UsDomesticWire = Stripe_.Treasury.OutboundTransfer.TrackingDetails.UsDomesticWire; + } } - export namespace OutboundTransferListParams { - export type Status = Stripe.Treasury.OutboundTransferListParams.Status; + export namespace ReceivedCredit { + export type FailureCode = Stripe_.Treasury.ReceivedCredit.FailureCode; + export type InitiatingPaymentMethodDetails = Stripe_.Treasury.ReceivedCredit.InitiatingPaymentMethodDetails; + export type LinkedFlows = Stripe_.Treasury.ReceivedCredit.LinkedFlows; + export type Network = Stripe_.Treasury.ReceivedCredit.Network; + export type NetworkDetails = Stripe_.Treasury.ReceivedCredit.NetworkDetails; + export type ReversalDetails = Stripe_.Treasury.ReceivedCredit.ReversalDetails; + export type Status = Stripe_.Treasury.ReceivedCredit.Status; + export namespace InitiatingPaymentMethodDetails { + export type BillingDetails = Stripe_.Treasury.ReceivedCredit.InitiatingPaymentMethodDetails.BillingDetails; + export type FinancialAccount = Stripe_.Treasury.ReceivedCredit.InitiatingPaymentMethodDetails.FinancialAccount; + export type Type = Stripe_.Treasury.ReceivedCredit.InitiatingPaymentMethodDetails.Type; + export type UsBankAccount = Stripe_.Treasury.ReceivedCredit.InitiatingPaymentMethodDetails.UsBankAccount; + } + export namespace LinkedFlows { + export type SourceFlowDetails = Stripe_.Treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails; + export namespace SourceFlowDetails { + export type Type = Stripe_.Treasury.ReceivedCredit.LinkedFlows.SourceFlowDetails.Type; + } + } + export namespace NetworkDetails { + export type Ach = Stripe_.Treasury.ReceivedCredit.NetworkDetails.Ach; + } + export namespace ReversalDetails { + export type RestrictedReason = Stripe_.Treasury.ReceivedCredit.ReversalDetails.RestrictedReason; + } } - export namespace ReceivedCreditListParams { - export type LinkedFlows = Stripe.Treasury.ReceivedCreditListParams.LinkedFlows; - export type Status = Stripe.Treasury.ReceivedCreditListParams.Status; + export namespace ReceivedDebit { + export type FailureCode = Stripe_.Treasury.ReceivedDebit.FailureCode; + export type InitiatingPaymentMethodDetails = Stripe_.Treasury.ReceivedDebit.InitiatingPaymentMethodDetails; + export type LinkedFlows = Stripe_.Treasury.ReceivedDebit.LinkedFlows; + export type Network = Stripe_.Treasury.ReceivedDebit.Network; + export type NetworkDetails = Stripe_.Treasury.ReceivedDebit.NetworkDetails; + export type ReversalDetails = Stripe_.Treasury.ReceivedDebit.ReversalDetails; + export type Status = Stripe_.Treasury.ReceivedDebit.Status; + export namespace InitiatingPaymentMethodDetails { + export type BillingDetails = Stripe_.Treasury.ReceivedDebit.InitiatingPaymentMethodDetails.BillingDetails; + export type FinancialAccount = Stripe_.Treasury.ReceivedDebit.InitiatingPaymentMethodDetails.FinancialAccount; + export type Type = Stripe_.Treasury.ReceivedDebit.InitiatingPaymentMethodDetails.Type; + export type UsBankAccount = Stripe_.Treasury.ReceivedDebit.InitiatingPaymentMethodDetails.UsBankAccount; + } + export namespace NetworkDetails { + export type Ach = Stripe_.Treasury.ReceivedDebit.NetworkDetails.Ach; + } + export namespace ReversalDetails { + export type RestrictedReason = Stripe_.Treasury.ReceivedDebit.ReversalDetails.RestrictedReason; + } } - export namespace ReceivedDebitListParams { - export type Status = Stripe.Treasury.ReceivedDebitListParams.Status; + export namespace Transaction { + export type BalanceImpact = Stripe_.Treasury.Transaction.BalanceImpact; + export type FlowDetails = Stripe_.Treasury.Transaction.FlowDetails; + export type FlowType = Stripe_.Treasury.Transaction.FlowType; + export type Status = Stripe_.Treasury.Transaction.Status; + export type StatusTransitions = Stripe_.Treasury.Transaction.StatusTransitions; + export namespace FlowDetails { + export type Type = Stripe_.Treasury.Transaction.FlowDetails.Type; + } } - export namespace TransactionListParams { - export type OrderBy = Stripe.Treasury.TransactionListParams.OrderBy; - export type Status = Stripe.Treasury.TransactionListParams.Status; - export type StatusTransitions = Stripe.Treasury.TransactionListParams.StatusTransitions; + export namespace TransactionEntry { + export type BalanceImpact = Stripe_.Treasury.TransactionEntry.BalanceImpact; + export type FlowDetails = Stripe_.Treasury.TransactionEntry.FlowDetails; + export type FlowType = Stripe_.Treasury.TransactionEntry.FlowType; + export type Type = Stripe_.Treasury.TransactionEntry.Type; + export namespace FlowDetails { + export type Type = Stripe_.Treasury.TransactionEntry.FlowDetails.Type; + } } - export namespace TransactionEntryListParams { - export type OrderBy = Stripe.Treasury.TransactionEntryListParams.OrderBy; + export namespace FinancialAccountFeatures { + export type CardIssuing = Stripe_.Treasury.FinancialAccountFeatures.CardIssuing; + export type DepositInsurance = Stripe_.Treasury.FinancialAccountFeatures.DepositInsurance; + export type FinancialAddresses = Stripe_.Treasury.FinancialAccountFeatures.FinancialAddresses; + export type InboundTransfers = Stripe_.Treasury.FinancialAccountFeatures.InboundTransfers; + export type IntraStripeFlows = Stripe_.Treasury.FinancialAccountFeatures.IntraStripeFlows; + export type OutboundPayments = Stripe_.Treasury.FinancialAccountFeatures.OutboundPayments; + export type OutboundTransfers = Stripe_.Treasury.FinancialAccountFeatures.OutboundTransfers; + export namespace CardIssuing { + export type Status = Stripe_.Treasury.FinancialAccountFeatures.CardIssuing.Status; + export type StatusDetail = Stripe_.Treasury.FinancialAccountFeatures.CardIssuing.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.Treasury.FinancialAccountFeatures.CardIssuing.StatusDetail.Code; + export type Resolution = Stripe_.Treasury.FinancialAccountFeatures.CardIssuing.StatusDetail.Resolution; + export type Restriction = Stripe_.Treasury.FinancialAccountFeatures.CardIssuing.StatusDetail.Restriction; + } + } + export namespace DepositInsurance { + export type Status = Stripe_.Treasury.FinancialAccountFeatures.DepositInsurance.Status; + export type StatusDetail = Stripe_.Treasury.FinancialAccountFeatures.DepositInsurance.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.Treasury.FinancialAccountFeatures.DepositInsurance.StatusDetail.Code; + export type Resolution = Stripe_.Treasury.FinancialAccountFeatures.DepositInsurance.StatusDetail.Resolution; + export type Restriction = Stripe_.Treasury.FinancialAccountFeatures.DepositInsurance.StatusDetail.Restriction; + } + } + export namespace FinancialAddresses { + export type Aba = Stripe_.Treasury.FinancialAccountFeatures.FinancialAddresses.Aba; + export namespace Aba { + export type Bank = Stripe_.Treasury.FinancialAccountFeatures.FinancialAddresses.Aba.Bank; + export type Status = Stripe_.Treasury.FinancialAccountFeatures.FinancialAddresses.Aba.Status; + export type StatusDetail = Stripe_.Treasury.FinancialAccountFeatures.FinancialAddresses.Aba.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.Treasury.FinancialAccountFeatures.FinancialAddresses.Aba.StatusDetail.Code; + export type Resolution = Stripe_.Treasury.FinancialAccountFeatures.FinancialAddresses.Aba.StatusDetail.Resolution; + export type Restriction = Stripe_.Treasury.FinancialAccountFeatures.FinancialAddresses.Aba.StatusDetail.Restriction; + } + } + } + export namespace InboundTransfers { + export type Ach = Stripe_.Treasury.FinancialAccountFeatures.InboundTransfers.Ach; + export namespace Ach { + export type Status = Stripe_.Treasury.FinancialAccountFeatures.InboundTransfers.Ach.Status; + export type StatusDetail = Stripe_.Treasury.FinancialAccountFeatures.InboundTransfers.Ach.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.Treasury.FinancialAccountFeatures.InboundTransfers.Ach.StatusDetail.Code; + export type Resolution = Stripe_.Treasury.FinancialAccountFeatures.InboundTransfers.Ach.StatusDetail.Resolution; + export type Restriction = Stripe_.Treasury.FinancialAccountFeatures.InboundTransfers.Ach.StatusDetail.Restriction; + } + } + } + export namespace IntraStripeFlows { + export type Status = Stripe_.Treasury.FinancialAccountFeatures.IntraStripeFlows.Status; + export type StatusDetail = Stripe_.Treasury.FinancialAccountFeatures.IntraStripeFlows.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.Treasury.FinancialAccountFeatures.IntraStripeFlows.StatusDetail.Code; + export type Resolution = Stripe_.Treasury.FinancialAccountFeatures.IntraStripeFlows.StatusDetail.Resolution; + export type Restriction = Stripe_.Treasury.FinancialAccountFeatures.IntraStripeFlows.StatusDetail.Restriction; + } + } + export namespace OutboundPayments { + export type Ach = Stripe_.Treasury.FinancialAccountFeatures.OutboundPayments.Ach; + export type UsDomesticWire = Stripe_.Treasury.FinancialAccountFeatures.OutboundPayments.UsDomesticWire; + export namespace Ach { + export type Status = Stripe_.Treasury.FinancialAccountFeatures.OutboundPayments.Ach.Status; + export type StatusDetail = Stripe_.Treasury.FinancialAccountFeatures.OutboundPayments.Ach.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.Treasury.FinancialAccountFeatures.OutboundPayments.Ach.StatusDetail.Code; + export type Resolution = Stripe_.Treasury.FinancialAccountFeatures.OutboundPayments.Ach.StatusDetail.Resolution; + export type Restriction = Stripe_.Treasury.FinancialAccountFeatures.OutboundPayments.Ach.StatusDetail.Restriction; + } + } + export namespace UsDomesticWire { + export type Status = Stripe_.Treasury.FinancialAccountFeatures.OutboundPayments.UsDomesticWire.Status; + export type StatusDetail = Stripe_.Treasury.FinancialAccountFeatures.OutboundPayments.UsDomesticWire.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.Treasury.FinancialAccountFeatures.OutboundPayments.UsDomesticWire.StatusDetail.Code; + export type Resolution = Stripe_.Treasury.FinancialAccountFeatures.OutboundPayments.UsDomesticWire.StatusDetail.Resolution; + export type Restriction = Stripe_.Treasury.FinancialAccountFeatures.OutboundPayments.UsDomesticWire.StatusDetail.Restriction; + } + } + } + export namespace OutboundTransfers { + export type Ach = Stripe_.Treasury.FinancialAccountFeatures.OutboundTransfers.Ach; + export type UsDomesticWire = Stripe_.Treasury.FinancialAccountFeatures.OutboundTransfers.UsDomesticWire; + export namespace Ach { + export type Status = Stripe_.Treasury.FinancialAccountFeatures.OutboundTransfers.Ach.Status; + export type StatusDetail = Stripe_.Treasury.FinancialAccountFeatures.OutboundTransfers.Ach.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.Treasury.FinancialAccountFeatures.OutboundTransfers.Ach.StatusDetail.Code; + export type Resolution = Stripe_.Treasury.FinancialAccountFeatures.OutboundTransfers.Ach.StatusDetail.Resolution; + export type Restriction = Stripe_.Treasury.FinancialAccountFeatures.OutboundTransfers.Ach.StatusDetail.Restriction; + } + } + export namespace UsDomesticWire { + export type Status = Stripe_.Treasury.FinancialAccountFeatures.OutboundTransfers.UsDomesticWire.Status; + export type StatusDetail = Stripe_.Treasury.FinancialAccountFeatures.OutboundTransfers.UsDomesticWire.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.Treasury.FinancialAccountFeatures.OutboundTransfers.UsDomesticWire.StatusDetail.Code; + export type Resolution = Stripe_.Treasury.FinancialAccountFeatures.OutboundTransfers.UsDomesticWire.StatusDetail.Resolution; + export type Restriction = Stripe_.Treasury.FinancialAccountFeatures.OutboundTransfers.UsDomesticWire.StatusDetail.Restriction; + } + } + } } } export namespace V2 { - export type DeletedObject = Stripe.V2.DeletedObject; - export type FinancialAddressCreditSimulation = Stripe.V2.FinancialAddressCreditSimulation; - export type FinancialAddressGeneratedMicrodeposits = Stripe.V2.FinancialAddressGeneratedMicrodeposits; + export type DeletedObject = Stripe_.V2.DeletedObject; + export type FinancialAddressCreditSimulation = Stripe_.V2.FinancialAddressCreditSimulation; + export type FinancialAddressGeneratedMicrodeposits = Stripe_.V2.FinancialAddressGeneratedMicrodeposits; export namespace Billing { - export type BillSetting = Stripe.V2.Billing.BillSetting; - export type BillSettingCreateParams = Stripe.V2.Billing.BillSettingCreateParams; - export type BillSettingRetrieveParams = Stripe.V2.Billing.BillSettingRetrieveParams; - export type BillSettingUpdateParams = Stripe.V2.Billing.BillSettingUpdateParams; - export type BillSettingListParams = Stripe.V2.Billing.BillSettingListParams; - export type BillSettingResource = Stripe.V2.Billing.BillSettingResource; - export type Cadence = Stripe.V2.Billing.Cadence; - export type CadenceCreateParams = Stripe.V2.Billing.CadenceCreateParams; - export type CadenceRetrieveParams = Stripe.V2.Billing.CadenceRetrieveParams; - export type CadenceUpdateParams = Stripe.V2.Billing.CadenceUpdateParams; - export type CadenceListParams = Stripe.V2.Billing.CadenceListParams; - export type CadenceCancelParams = Stripe.V2.Billing.CadenceCancelParams; - export type CadenceResource = Stripe.V2.Billing.CadenceResource; - export type CollectionSetting = Stripe.V2.Billing.CollectionSetting; - export type CollectionSettingCreateParams = Stripe.V2.Billing.CollectionSettingCreateParams; - export type CollectionSettingRetrieveParams = Stripe.V2.Billing.CollectionSettingRetrieveParams; - export type CollectionSettingUpdateParams = Stripe.V2.Billing.CollectionSettingUpdateParams; - export type CollectionSettingListParams = Stripe.V2.Billing.CollectionSettingListParams; - export type CollectionSettingResource = Stripe.V2.Billing.CollectionSettingResource; - export type MeterEvent = Stripe.V2.Billing.MeterEvent; - export type MeterEventCreateParams = Stripe.V2.Billing.MeterEventCreateParams; - export type MeterEventResource = Stripe.V2.Billing.MeterEventResource; - export type MeterEventAdjustment = Stripe.V2.Billing.MeterEventAdjustment; - export type MeterEventAdjustmentCreateParams = Stripe.V2.Billing.MeterEventAdjustmentCreateParams; - export type MeterEventAdjustmentResource = Stripe.V2.Billing.MeterEventAdjustmentResource; - export type MeterEventSession = Stripe.V2.Billing.MeterEventSession; - export type MeterEventSessionCreateParams = Stripe.V2.Billing.MeterEventSessionCreateParams; - export type MeterEventSessionResource = Stripe.V2.Billing.MeterEventSessionResource; - export type Profile = Stripe.V2.Billing.Profile; - export type ProfileCreateParams = Stripe.V2.Billing.ProfileCreateParams; - export type ProfileRetrieveParams = Stripe.V2.Billing.ProfileRetrieveParams; - export type ProfileUpdateParams = Stripe.V2.Billing.ProfileUpdateParams; - export type ProfileListParams = Stripe.V2.Billing.ProfileListParams; - export type ProfileResource = Stripe.V2.Billing.ProfileResource; - export type BillSettingVersion = Stripe.V2.Billing.BillSettingVersion; - export type CollectionSettingVersion = Stripe.V2.Billing.CollectionSettingVersion; + export type BillSetting = Stripe_.V2.Billing.BillSetting; + export type BillSettingCreateParams = Stripe_.V2.Billing.BillSettingCreateParams; + export type BillSettingRetrieveParams = Stripe_.V2.Billing.BillSettingRetrieveParams; + export type BillSettingUpdateParams = Stripe_.V2.Billing.BillSettingUpdateParams; + export type BillSettingListParams = Stripe_.V2.Billing.BillSettingListParams; + export type BillSettingResource = Stripe_.V2.Billing.BillSettingResource; + export type Cadence = Stripe_.V2.Billing.Cadence; + export type CadenceCreateParams = Stripe_.V2.Billing.CadenceCreateParams; + export type CadenceRetrieveParams = Stripe_.V2.Billing.CadenceRetrieveParams; + export type CadenceUpdateParams = Stripe_.V2.Billing.CadenceUpdateParams; + export type CadenceListParams = Stripe_.V2.Billing.CadenceListParams; + export type CadenceCancelParams = Stripe_.V2.Billing.CadenceCancelParams; + export type CadenceResource = Stripe_.V2.Billing.CadenceResource; + export type CollectionSetting = Stripe_.V2.Billing.CollectionSetting; + export type CollectionSettingCreateParams = Stripe_.V2.Billing.CollectionSettingCreateParams; + export type CollectionSettingRetrieveParams = Stripe_.V2.Billing.CollectionSettingRetrieveParams; + export type CollectionSettingUpdateParams = Stripe_.V2.Billing.CollectionSettingUpdateParams; + export type CollectionSettingListParams = Stripe_.V2.Billing.CollectionSettingListParams; + export type CollectionSettingResource = Stripe_.V2.Billing.CollectionSettingResource; + export type MeterEvent = Stripe_.V2.Billing.MeterEvent; + export type MeterEventCreateParams = Stripe_.V2.Billing.MeterEventCreateParams; + export type MeterEventResource = Stripe_.V2.Billing.MeterEventResource; + export type MeterEventAdjustment = Stripe_.V2.Billing.MeterEventAdjustment; + export type MeterEventAdjustmentCreateParams = Stripe_.V2.Billing.MeterEventAdjustmentCreateParams; + export type MeterEventAdjustmentResource = Stripe_.V2.Billing.MeterEventAdjustmentResource; + export type MeterEventSession = Stripe_.V2.Billing.MeterEventSession; + export type MeterEventSessionCreateParams = Stripe_.V2.Billing.MeterEventSessionCreateParams; + export type MeterEventSessionResource = Stripe_.V2.Billing.MeterEventSessionResource; + export type Profile = Stripe_.V2.Billing.Profile; + export type ProfileCreateParams = Stripe_.V2.Billing.ProfileCreateParams; + export type ProfileRetrieveParams = Stripe_.V2.Billing.ProfileRetrieveParams; + export type ProfileUpdateParams = Stripe_.V2.Billing.ProfileUpdateParams; + export type ProfileListParams = Stripe_.V2.Billing.ProfileListParams; + export type ProfileResource = Stripe_.V2.Billing.ProfileResource; + export type BillSettingVersion = Stripe_.V2.Billing.BillSettingVersion; + export type CollectionSettingVersion = Stripe_.V2.Billing.CollectionSettingVersion; export namespace BillSettingCreateParams { - export type Calculation = Stripe.V2.Billing.BillSettingCreateParams.Calculation; - export type Invoice = Stripe.V2.Billing.BillSettingCreateParams.Invoice; + export type Calculation = Stripe_.V2.Billing.BillSettingCreateParams.Calculation; + export type Invoice = Stripe_.V2.Billing.BillSettingCreateParams.Invoice; + export namespace Calculation { + export type Tax = Stripe_.V2.Billing.BillSettingCreateParams.Calculation.Tax; + export namespace Tax { + export type Type = Stripe_.V2.Billing.BillSettingCreateParams.Calculation.Tax.Type; + } + } + export namespace Invoice { + export type TimeUntilDue = Stripe_.V2.Billing.BillSettingCreateParams.Invoice.TimeUntilDue; + export namespace TimeUntilDue { + export type Interval = Stripe_.V2.Billing.BillSettingCreateParams.Invoice.TimeUntilDue.Interval; + } + } } - export namespace BillSettingUpdateParams { - export type Calculation = Stripe.V2.Billing.BillSettingUpdateParams.Calculation; - export type Invoice = Stripe.V2.Billing.BillSettingUpdateParams.Invoice; + export namespace BillSetting { + export type Calculation = Stripe_.V2.Billing.BillSetting.Calculation; + export type Invoice = Stripe_.V2.Billing.BillSetting.Invoice; + export namespace Calculation { + export type Tax = Stripe_.V2.Billing.BillSetting.Calculation.Tax; + export namespace Tax { + export type Type = Stripe_.V2.Billing.BillSetting.Calculation.Tax.Type; + } + } + export namespace Invoice { + export type TimeUntilDue = Stripe_.V2.Billing.BillSetting.Invoice.TimeUntilDue; + export namespace TimeUntilDue { + export type Interval = Stripe_.V2.Billing.BillSetting.Invoice.TimeUntilDue.Interval; + } + } } export namespace CadenceCreateParams { - export type BillingCycle = Stripe.V2.Billing.CadenceCreateParams.BillingCycle; - export type Payer = Stripe.V2.Billing.CadenceCreateParams.Payer; - export type Settings = Stripe.V2.Billing.CadenceCreateParams.Settings; - } - export namespace CadenceUpdateParams { - export type Payer = Stripe.V2.Billing.CadenceUpdateParams.Payer; - export type Settings = Stripe.V2.Billing.CadenceUpdateParams.Settings; + export type BillingCycle = Stripe_.V2.Billing.CadenceCreateParams.BillingCycle; + export type Payer = Stripe_.V2.Billing.CadenceCreateParams.Payer; + export type Settings = Stripe_.V2.Billing.CadenceCreateParams.Settings; + export namespace BillingCycle { + export type Day = Stripe_.V2.Billing.CadenceCreateParams.BillingCycle.Day; + export type Month = Stripe_.V2.Billing.CadenceCreateParams.BillingCycle.Month; + export type Type = Stripe_.V2.Billing.CadenceCreateParams.BillingCycle.Type; + export type Week = Stripe_.V2.Billing.CadenceCreateParams.BillingCycle.Week; + export type Year = Stripe_.V2.Billing.CadenceCreateParams.BillingCycle.Year; + export namespace Day { + export type Time = Stripe_.V2.Billing.CadenceCreateParams.BillingCycle.Day.Time; + } + export namespace Month { + export type Time = Stripe_.V2.Billing.CadenceCreateParams.BillingCycle.Month.Time; + } + export namespace Week { + export type Time = Stripe_.V2.Billing.CadenceCreateParams.BillingCycle.Week.Time; + } + export namespace Year { + export type Time = Stripe_.V2.Billing.CadenceCreateParams.BillingCycle.Year.Time; + } + } + export namespace Settings { + export type Bill = Stripe_.V2.Billing.CadenceCreateParams.Settings.Bill; + export type Collection = Stripe_.V2.Billing.CadenceCreateParams.Settings.Collection; + } } - export namespace CadenceListParams { - export type Payer = Stripe.V2.Billing.CadenceListParams.Payer; + export namespace Cadence { + export type BillingCycle = Stripe_.V2.Billing.Cadence.BillingCycle; + export type Payer = Stripe_.V2.Billing.Cadence.Payer; + export type Settings = Stripe_.V2.Billing.Cadence.Settings; + export type SettingsData = Stripe_.V2.Billing.Cadence.SettingsData; + export type Status = Stripe_.V2.Billing.Cadence.Status; + export namespace BillingCycle { + export type Day = Stripe_.V2.Billing.Cadence.BillingCycle.Day; + export type Month = Stripe_.V2.Billing.Cadence.BillingCycle.Month; + export type Type = Stripe_.V2.Billing.Cadence.BillingCycle.Type; + export type Week = Stripe_.V2.Billing.Cadence.BillingCycle.Week; + export type Year = Stripe_.V2.Billing.Cadence.BillingCycle.Year; + export namespace Day { + export type Time = Stripe_.V2.Billing.Cadence.BillingCycle.Day.Time; + } + export namespace Month { + export type Time = Stripe_.V2.Billing.Cadence.BillingCycle.Month.Time; + } + export namespace Week { + export type Time = Stripe_.V2.Billing.Cadence.BillingCycle.Week.Time; + } + export namespace Year { + export type Time = Stripe_.V2.Billing.Cadence.BillingCycle.Year.Time; + } + } + export namespace Settings { + export type Bill = Stripe_.V2.Billing.Cadence.Settings.Bill; + export type Collection = Stripe_.V2.Billing.Cadence.Settings.Collection; + } + export namespace SettingsData { + export type Bill = Stripe_.V2.Billing.Cadence.SettingsData.Bill; + export type Collection = Stripe_.V2.Billing.Cadence.SettingsData.Collection; + export namespace Bill { + export type Calculation = Stripe_.V2.Billing.Cadence.SettingsData.Bill.Calculation; + export type Invoice = Stripe_.V2.Billing.Cadence.SettingsData.Bill.Invoice; + export namespace Calculation { + export type Tax = Stripe_.V2.Billing.Cadence.SettingsData.Bill.Calculation.Tax; + export namespace Tax { + export type Type = Stripe_.V2.Billing.Cadence.SettingsData.Bill.Calculation.Tax.Type; + } + } + export namespace Invoice { + export type TimeUntilDue = Stripe_.V2.Billing.Cadence.SettingsData.Bill.Invoice.TimeUntilDue; + export namespace TimeUntilDue { + export type Interval = Stripe_.V2.Billing.Cadence.SettingsData.Bill.Invoice.TimeUntilDue.Interval; + } + } + } + export namespace Collection { + export type CollectionMethod = Stripe_.V2.Billing.Cadence.SettingsData.Collection.CollectionMethod; + export type EmailDelivery = Stripe_.V2.Billing.Cadence.SettingsData.Collection.EmailDelivery; + export type PaymentMethodOptions = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions; + export namespace EmailDelivery { + export type PaymentDue = Stripe_.V2.Billing.Cadence.SettingsData.Collection.EmailDelivery.PaymentDue; + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.AcssDebit; + export type Bancontact = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.Bancontact; + export type Card = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.CustomerBalance; + export type Konbini = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.Konbini; + export type SepaDebit = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.SepaDebit; + export type UsBankAccount = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type MandateOptions = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type TransactionType = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.Bancontact.PreferredLanguage; + } + export namespace Card { + export type MandateOptions = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.Card.MandateOptions; + export type RequestThreeDSecure = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.Card.RequestThreeDSecure; + export namespace MandateOptions { + export type AmountType = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.Card.MandateOptions.AmountType; + } + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export type Type = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.CustomerBalance.BankTransfer.Type; + export namespace EuBankTransfer { + export type Country = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer.Country; + } + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type VerificationMethod = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type Permission = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.V2.Billing.Cadence.SettingsData.Collection.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + } + } + } + } + } } export namespace CollectionSettingCreateParams { - export type CollectionMethod = Stripe.V2.Billing.CollectionSettingCreateParams.CollectionMethod; - export type EmailDelivery = Stripe.V2.Billing.CollectionSettingCreateParams.EmailDelivery; - export type PaymentMethodOptions = Stripe.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions; + export type CollectionMethod = Stripe_.V2.Billing.CollectionSettingCreateParams.CollectionMethod; + export type EmailDelivery = Stripe_.V2.Billing.CollectionSettingCreateParams.EmailDelivery; + export type PaymentMethodOptions = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions; + export namespace EmailDelivery { + export type PaymentDue = Stripe_.V2.Billing.CollectionSettingCreateParams.EmailDelivery.PaymentDue; + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.AcssDebit; + export type Bancontact = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.Bancontact; + export type Card = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.CustomerBalance; + export type Konbini = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.Konbini; + export type SepaDebit = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.SepaDebit; + export type UsBankAccount = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type MandateOptions = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type TransactionType = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.Bancontact.PreferredLanguage; + } + export namespace Card { + export type MandateOptions = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.Card.MandateOptions; + export type RequestThreeDSecure = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.Card.RequestThreeDSecure; + export namespace MandateOptions { + export type AmountType = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.Card.MandateOptions.AmountType; + } + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export type Type = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.CustomerBalance.BankTransfer.Type; + export namespace EuBankTransfer { + export type Country = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer.Country; + } + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type VerificationMethod = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type Permission = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.V2.Billing.CollectionSettingCreateParams.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + } + } + } } - export namespace CollectionSettingUpdateParams { - export type CollectionMethod = Stripe.V2.Billing.CollectionSettingUpdateParams.CollectionMethod; - export type EmailDelivery = Stripe.V2.Billing.CollectionSettingUpdateParams.EmailDelivery; - export type PaymentMethodOptions = Stripe.V2.Billing.CollectionSettingUpdateParams.PaymentMethodOptions; + export namespace CollectionSetting { + export type CollectionMethod = Stripe_.V2.Billing.CollectionSetting.CollectionMethod; + export type EmailDelivery = Stripe_.V2.Billing.CollectionSetting.EmailDelivery; + export type PaymentMethodOptions = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions; + export namespace EmailDelivery { + export type PaymentDue = Stripe_.V2.Billing.CollectionSetting.EmailDelivery.PaymentDue; + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.AcssDebit; + export type Bancontact = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.Bancontact; + export type Card = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.CustomerBalance; + export type Konbini = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.Konbini; + export type SepaDebit = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.SepaDebit; + export type UsBankAccount = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type MandateOptions = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type TransactionType = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.Bancontact.PreferredLanguage; + } + export namespace Card { + export type MandateOptions = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.Card.MandateOptions; + export type RequestThreeDSecure = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.Card.RequestThreeDSecure; + export namespace MandateOptions { + export type AmountType = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.Card.MandateOptions.AmountType; + } + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export type Type = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.CustomerBalance.BankTransfer.Type; + export namespace EuBankTransfer { + export type Country = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer.Country; + } + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type VerificationMethod = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type Permission = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.V2.Billing.CollectionSetting.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + } + } + } } export namespace MeterEventAdjustmentCreateParams { - export type Cancel = Stripe.V2.Billing.MeterEventAdjustmentCreateParams.Cancel; + export type Cancel = Stripe_.V2.Billing.MeterEventAdjustmentCreateParams.Cancel; } - export namespace ProfileListParams { - export type Status = Stripe.V2.Billing.ProfileListParams.Status; + export namespace MeterEventAdjustment { + export type Cancel = Stripe_.V2.Billing.MeterEventAdjustment.Cancel; + export type Status = Stripe_.V2.Billing.MeterEventAdjustment.Status; } - } - export namespace Core { - export type Account = Stripe.V2.Core.Account; - export type AccountCreateParams = Stripe.V2.Core.AccountCreateParams; - export type AccountRetrieveParams = Stripe.V2.Core.AccountRetrieveParams; - export type AccountUpdateParams = Stripe.V2.Core.AccountUpdateParams; - export type AccountListParams = Stripe.V2.Core.AccountListParams; - export type AccountCloseParams = Stripe.V2.Core.AccountCloseParams; - export type AccountResource = Stripe.V2.Core.AccountResource; - export type AccountLink = Stripe.V2.Core.AccountLink; - export type AccountLinkCreateParams = Stripe.V2.Core.AccountLinkCreateParams; - export type AccountLinkResource = Stripe.V2.Core.AccountLinkResource; - export type AccountToken = Stripe.V2.Core.AccountToken; - export type AccountTokenCreateParams = Stripe.V2.Core.AccountTokenCreateParams; - export type AccountTokenRetrieveParams = Stripe.V2.Core.AccountTokenRetrieveParams; - export type AccountTokenResource = Stripe.V2.Core.AccountTokenResource; - export type BatchJob = Stripe.V2.Core.BatchJob; - export type BatchJobCreateParams = Stripe.V2.Core.BatchJobCreateParams; - export type BatchJobRetrieveParams = Stripe.V2.Core.BatchJobRetrieveParams; - export type BatchJobCancelParams = Stripe.V2.Core.BatchJobCancelParams; - export type BatchJobResource = Stripe.V2.Core.BatchJobResource; - export type Event = Stripe.V2.Core.Event; - export type EventBase = Stripe.V2.Core.EventBase; - export type EventNotification = Stripe.V2.Core.EventNotification; - export type EventRetrieveParams = Stripe.V2.Core.EventRetrieveParams; - export type EventListParams = Stripe.V2.Core.EventListParams; - export type EventResource = Stripe.V2.Core.EventResource; - export type EventDestination = Stripe.V2.Core.EventDestination; - export type EventDestinationCreateParams = Stripe.V2.Core.EventDestinationCreateParams; - export type EventDestinationRetrieveParams = Stripe.V2.Core.EventDestinationRetrieveParams; - export type EventDestinationUpdateParams = Stripe.V2.Core.EventDestinationUpdateParams; - export type EventDestinationListParams = Stripe.V2.Core.EventDestinationListParams; - export type EventDestinationDeleteParams = Stripe.V2.Core.EventDestinationDeleteParams; - export type EventDestinationDisableParams = Stripe.V2.Core.EventDestinationDisableParams; - export type EventDestinationEnableParams = Stripe.V2.Core.EventDestinationEnableParams; - export type EventDestinationPingParams = Stripe.V2.Core.EventDestinationPingParams; - export type EventDestinationResource = Stripe.V2.Core.EventDestinationResource; - export type AccountPersonToken = Stripe.V2.Core.AccountPersonToken; - export type AccountPerson = Stripe.V2.Core.AccountPerson; - export namespace AccountCreateParams { - export type Configuration = Stripe.V2.Core.AccountCreateParams.Configuration; - export type Dashboard = Stripe.V2.Core.AccountCreateParams.Dashboard; - export type Defaults = Stripe.V2.Core.AccountCreateParams.Defaults; - export type Identity = Stripe.V2.Core.AccountCreateParams.Identity; - export type Include = Stripe.V2.Core.AccountCreateParams.Include; + export namespace Profile { + export type Status = Stripe_.V2.Billing.Profile.Status; } - export namespace AccountRetrieveParams { - export type Include = Stripe.V2.Core.AccountRetrieveParams.Include; + export namespace BillSettingVersion { + export type Calculation = Stripe_.V2.Billing.BillSettingVersion.Calculation; + export type Invoice = Stripe_.V2.Billing.BillSettingVersion.Invoice; + export namespace Calculation { + export type Tax = Stripe_.V2.Billing.BillSettingVersion.Calculation.Tax; + export namespace Tax { + export type Type = Stripe_.V2.Billing.BillSettingVersion.Calculation.Tax.Type; + } + } + export namespace Invoice { + export type TimeUntilDue = Stripe_.V2.Billing.BillSettingVersion.Invoice.TimeUntilDue; + export namespace TimeUntilDue { + export type Interval = Stripe_.V2.Billing.BillSettingVersion.Invoice.TimeUntilDue.Interval; + } + } } - export namespace AccountUpdateParams { - export type Configuration = Stripe.V2.Core.AccountUpdateParams.Configuration; - export type Dashboard = Stripe.V2.Core.AccountUpdateParams.Dashboard; - export type Defaults = Stripe.V2.Core.AccountUpdateParams.Defaults; - export type Identity = Stripe.V2.Core.AccountUpdateParams.Identity; - export type Include = Stripe.V2.Core.AccountUpdateParams.Include; + export namespace CollectionSettingVersion { + export type CollectionMethod = Stripe_.V2.Billing.CollectionSettingVersion.CollectionMethod; + export type EmailDelivery = Stripe_.V2.Billing.CollectionSettingVersion.EmailDelivery; + export type PaymentMethodOptions = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions; + export namespace EmailDelivery { + export type PaymentDue = Stripe_.V2.Billing.CollectionSettingVersion.EmailDelivery.PaymentDue; + } + export namespace PaymentMethodOptions { + export type AcssDebit = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.AcssDebit; + export type Bancontact = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.Bancontact; + export type Card = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.Card; + export type CustomerBalance = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.CustomerBalance; + export type Konbini = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.Konbini; + export type SepaDebit = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.SepaDebit; + export type UsBankAccount = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.UsBankAccount; + export namespace AcssDebit { + export type MandateOptions = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.AcssDebit.MandateOptions; + export type VerificationMethod = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.AcssDebit.VerificationMethod; + export namespace MandateOptions { + export type TransactionType = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.AcssDebit.MandateOptions.TransactionType; + } + } + export namespace Bancontact { + export type PreferredLanguage = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.Bancontact.PreferredLanguage; + } + export namespace Card { + export type MandateOptions = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.Card.MandateOptions; + export type RequestThreeDSecure = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.Card.RequestThreeDSecure; + export namespace MandateOptions { + export type AmountType = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.Card.MandateOptions.AmountType; + } + } + export namespace CustomerBalance { + export type BankTransfer = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.CustomerBalance.BankTransfer; + export namespace BankTransfer { + export type EuBankTransfer = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer; + export type Type = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.CustomerBalance.BankTransfer.Type; + export namespace EuBankTransfer { + export type Country = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.CustomerBalance.BankTransfer.EuBankTransfer.Country; + } + } + } + export namespace UsBankAccount { + export type FinancialConnections = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.UsBankAccount.FinancialConnections; + export type VerificationMethod = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.UsBankAccount.VerificationMethod; + export namespace FinancialConnections { + export type Filters = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters; + export type Permission = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.UsBankAccount.FinancialConnections.Permission; + export type Prefetch = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.UsBankAccount.FinancialConnections.Prefetch; + export namespace Filters { + export type AccountSubcategory = Stripe_.V2.Billing.CollectionSettingVersion.PaymentMethodOptions.UsBankAccount.FinancialConnections.Filters.AccountSubcategory; + } + } + } + } } - export namespace AccountListParams { - export type AppliedConfiguration = Stripe.V2.Core.AccountListParams.AppliedConfiguration; + } + export namespace Core { + export type Account = Stripe_.V2.Core.Account; + export type AccountCreateParams = Stripe_.V2.Core.AccountCreateParams; + export type AccountRetrieveParams = Stripe_.V2.Core.AccountRetrieveParams; + export type AccountUpdateParams = Stripe_.V2.Core.AccountUpdateParams; + export type AccountListParams = Stripe_.V2.Core.AccountListParams; + export type AccountCloseParams = Stripe_.V2.Core.AccountCloseParams; + export type AccountResource = Stripe_.V2.Core.AccountResource; + export type AccountLink = Stripe_.V2.Core.AccountLink; + export type AccountLinkCreateParams = Stripe_.V2.Core.AccountLinkCreateParams; + export type AccountLinkResource = Stripe_.V2.Core.AccountLinkResource; + export type AccountToken = Stripe_.V2.Core.AccountToken; + export type AccountTokenCreateParams = Stripe_.V2.Core.AccountTokenCreateParams; + export type AccountTokenRetrieveParams = Stripe_.V2.Core.AccountTokenRetrieveParams; + export type AccountTokenResource = Stripe_.V2.Core.AccountTokenResource; + export type BatchJob = Stripe_.V2.Core.BatchJob; + export type BatchJobCreateParams = Stripe_.V2.Core.BatchJobCreateParams; + export type BatchJobRetrieveParams = Stripe_.V2.Core.BatchJobRetrieveParams; + export type BatchJobCancelParams = Stripe_.V2.Core.BatchJobCancelParams; + export type BatchJobResource = Stripe_.V2.Core.BatchJobResource; + export type Event = Stripe_.V2.Core.Event; + export type EventBase = Stripe_.V2.Core.EventBase; + export type EventNotification = Stripe_.V2.Core.EventNotification; + export type EventRetrieveParams = Stripe_.V2.Core.EventRetrieveParams; + export type EventListParams = Stripe_.V2.Core.EventListParams; + export type EventResource = Stripe_.V2.Core.EventResource; + export type EventDestination = Stripe_.V2.Core.EventDestination; + export type EventDestinationCreateParams = Stripe_.V2.Core.EventDestinationCreateParams; + export type EventDestinationRetrieveParams = Stripe_.V2.Core.EventDestinationRetrieveParams; + export type EventDestinationUpdateParams = Stripe_.V2.Core.EventDestinationUpdateParams; + export type EventDestinationListParams = Stripe_.V2.Core.EventDestinationListParams; + export type EventDestinationDeleteParams = Stripe_.V2.Core.EventDestinationDeleteParams; + export type EventDestinationDisableParams = Stripe_.V2.Core.EventDestinationDisableParams; + export type EventDestinationEnableParams = Stripe_.V2.Core.EventDestinationEnableParams; + export type EventDestinationPingParams = Stripe_.V2.Core.EventDestinationPingParams; + export type EventDestinationResource = Stripe_.V2.Core.EventDestinationResource; + export type AccountPersonToken = Stripe_.V2.Core.AccountPersonToken; + export type AccountPerson = Stripe_.V2.Core.AccountPerson; + export namespace AccountCreateParams { + export type Configuration = Stripe_.V2.Core.AccountCreateParams.Configuration; + export type Dashboard = Stripe_.V2.Core.AccountCreateParams.Dashboard; + export type Defaults = Stripe_.V2.Core.AccountCreateParams.Defaults; + export type Identity = Stripe_.V2.Core.AccountCreateParams.Identity; + export type Include = Stripe_.V2.Core.AccountCreateParams.Include; + export namespace Configuration { + export type Customer = Stripe_.V2.Core.AccountCreateParams.Configuration.Customer; + export type Merchant = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant; + export type Recipient = Stripe_.V2.Core.AccountCreateParams.Configuration.Recipient; + export type Storer = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer; + export namespace Customer { + export type AutomaticIndirectTax = Stripe_.V2.Core.AccountCreateParams.Configuration.Customer.AutomaticIndirectTax; + export type Billing = Stripe_.V2.Core.AccountCreateParams.Configuration.Customer.Billing; + export type Capabilities = Stripe_.V2.Core.AccountCreateParams.Configuration.Customer.Capabilities; + export type Shipping = Stripe_.V2.Core.AccountCreateParams.Configuration.Customer.Shipping; + export namespace AutomaticIndirectTax { + export type Exempt = Stripe_.V2.Core.AccountCreateParams.Configuration.Customer.AutomaticIndirectTax.Exempt; + export type LocationSource = Stripe_.V2.Core.AccountCreateParams.Configuration.Customer.AutomaticIndirectTax.LocationSource; + } + export namespace Billing { + export type Invoice = Stripe_.V2.Core.AccountCreateParams.Configuration.Customer.Billing.Invoice; + export namespace Invoice { + export type CustomField = Stripe_.V2.Core.AccountCreateParams.Configuration.Customer.Billing.Invoice.CustomField; + export type Rendering = Stripe_.V2.Core.AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering; + export namespace Rendering { + export type AmountTaxDisplay = Stripe_.V2.Core.AccountCreateParams.Configuration.Customer.Billing.Invoice.Rendering.AmountTaxDisplay; + } + } + } + export namespace Capabilities { + export type AutomaticIndirectTax = Stripe_.V2.Core.AccountCreateParams.Configuration.Customer.Capabilities.AutomaticIndirectTax; + } + } + export namespace Merchant { + export type BacsDebitPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.BacsDebitPayments; + export type Branding = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Branding; + export type Capabilities = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities; + export type CardPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.CardPayments; + export type KonbiniPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.KonbiniPayments; + export type ScriptStatementDescriptor = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor; + export type SmartDisputes = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.SmartDisputes; + export type StatementDescriptor = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.StatementDescriptor; + export type Support = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Support; + export namespace Capabilities { + export type AchDebitPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.AchDebitPayments; + export type AcssDebitPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.AcssDebitPayments; + export type AffirmPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.AffirmPayments; + export type AfterpayClearpayPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.AfterpayClearpayPayments; + export type AlmaPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.AlmaPayments; + export type AmazonPayPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.AmazonPayPayments; + export type AuBecsDebitPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.AuBecsDebitPayments; + export type BacsDebitPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.BacsDebitPayments; + export type BancontactPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.BancontactPayments; + export type BlikPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.BlikPayments; + export type BoletoPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.BoletoPayments; + export type CardPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.CardPayments; + export type CartesBancairesPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.CartesBancairesPayments; + export type CashappPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.CashappPayments; + export type EpsPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.EpsPayments; + export type FpxPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.FpxPayments; + export type GbBankTransferPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.GbBankTransferPayments; + export type GrabpayPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.GrabpayPayments; + export type IdealPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.IdealPayments; + export type JcbPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.JcbPayments; + export type JpBankTransferPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.JpBankTransferPayments; + export type KakaoPayPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.KakaoPayPayments; + export type KlarnaPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.KlarnaPayments; + export type KonbiniPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.KonbiniPayments; + export type KrCardPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.KrCardPayments; + export type LinkPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.LinkPayments; + export type MobilepayPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.MobilepayPayments; + export type MultibancoPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.MultibancoPayments; + export type MxBankTransferPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.MxBankTransferPayments; + export type NaverPayPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.NaverPayPayments; + export type OxxoPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.OxxoPayments; + export type P24Payments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.P24Payments; + export type PayByBankPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.PayByBankPayments; + export type PaycoPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.PaycoPayments; + export type PaynowPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.PaynowPayments; + export type PromptpayPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.PromptpayPayments; + export type RevolutPayPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.RevolutPayPayments; + export type SamsungPayPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.SamsungPayPayments; + export type SepaBankTransferPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.SepaBankTransferPayments; + export type SepaDebitPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.SepaDebitPayments; + export type SwishPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.SwishPayments; + export type TwintPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.TwintPayments; + export type UsBankTransferPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.UsBankTransferPayments; + export type ZipPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Capabilities.ZipPayments; + } + export namespace CardPayments { + export type DeclineOn = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.CardPayments.DeclineOn; + } + export namespace KonbiniPayments { + export type Support = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.KonbiniPayments.Support; + export namespace Support { + export type Hours = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.KonbiniPayments.Support.Hours; + } + } + export namespace ScriptStatementDescriptor { + export type Kana = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor.Kana; + export type Kanji = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.ScriptStatementDescriptor.Kanji; + } + export namespace SmartDisputes { + export type AutoRespond = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.SmartDisputes.AutoRespond; + export namespace AutoRespond { + export type Preference = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.SmartDisputes.AutoRespond.Preference; + } + } + export namespace Support { + export type Address = Stripe_.V2.Core.AccountCreateParams.Configuration.Merchant.Support.Address; + } + } + export namespace Recipient { + export type Capabilities = Stripe_.V2.Core.AccountCreateParams.Configuration.Recipient.Capabilities; + export namespace Capabilities { + export type BankAccounts = Stripe_.V2.Core.AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts; + export type Cards = Stripe_.V2.Core.AccountCreateParams.Configuration.Recipient.Capabilities.Cards; + export type StripeBalance = Stripe_.V2.Core.AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance; + export namespace BankAccounts { + export type Local = Stripe_.V2.Core.AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Local; + export type Wire = Stripe_.V2.Core.AccountCreateParams.Configuration.Recipient.Capabilities.BankAccounts.Wire; + } + export namespace StripeBalance { + export type StripeTransfers = Stripe_.V2.Core.AccountCreateParams.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers; + } + } + } + export namespace Storer { + export type Capabilities = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities; + export namespace Capabilities { + export type FinancialAddresses = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses; + export type HoldsCurrencies = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies; + export type InboundTransfers = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers; + export type OutboundPayments = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments; + export type OutboundTransfers = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers; + export namespace FinancialAddresses { + export type BankAccounts = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts; + } + export namespace HoldsCurrencies { + export type Eur = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Eur; + export type Gbp = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp; + export type Usd = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.HoldsCurrencies.Usd; + } + export namespace InboundTransfers { + export type BankAccounts = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts; + } + export namespace OutboundPayments { + export type BankAccounts = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts; + export type Cards = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.Cards; + export type FinancialAccounts = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts; + } + export namespace OutboundTransfers { + export type BankAccounts = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts; + export type FinancialAccounts = Stripe_.V2.Core.AccountCreateParams.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts; + } + } + } + } + export namespace Defaults { + export type Locale = Stripe_.V2.Core.AccountCreateParams.Defaults.Locale; + export type Profile = Stripe_.V2.Core.AccountCreateParams.Defaults.Profile; + export type Responsibilities = Stripe_.V2.Core.AccountCreateParams.Defaults.Responsibilities; + export namespace Responsibilities { + export type FeesCollector = Stripe_.V2.Core.AccountCreateParams.Defaults.Responsibilities.FeesCollector; + export type LossesCollector = Stripe_.V2.Core.AccountCreateParams.Defaults.Responsibilities.LossesCollector; + } + } + export namespace Identity { + export type Attestations = Stripe_.V2.Core.AccountCreateParams.Identity.Attestations; + export type BusinessDetails = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails; + export type EntityType = Stripe_.V2.Core.AccountCreateParams.Identity.EntityType; + export type Individual = Stripe_.V2.Core.AccountCreateParams.Identity.Individual; + export namespace Attestations { + export type DirectorshipDeclaration = Stripe_.V2.Core.AccountCreateParams.Identity.Attestations.DirectorshipDeclaration; + export type OwnershipDeclaration = Stripe_.V2.Core.AccountCreateParams.Identity.Attestations.OwnershipDeclaration; + export type PersonsProvided = Stripe_.V2.Core.AccountCreateParams.Identity.Attestations.PersonsProvided; + export type RepresentativeDeclaration = Stripe_.V2.Core.AccountCreateParams.Identity.Attestations.RepresentativeDeclaration; + export type TermsOfService = Stripe_.V2.Core.AccountCreateParams.Identity.Attestations.TermsOfService; + export namespace PersonsProvided { + export type OwnershipExemptionReason = Stripe_.V2.Core.AccountCreateParams.Identity.Attestations.PersonsProvided.OwnershipExemptionReason; + } + export namespace TermsOfService { + export type Account = Stripe_.V2.Core.AccountCreateParams.Identity.Attestations.TermsOfService.Account; + export type Storer = Stripe_.V2.Core.AccountCreateParams.Identity.Attestations.TermsOfService.Storer; + } + } + export namespace BusinessDetails { + export type Address = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Address; + export type AnnualRevenue = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.AnnualRevenue; + export type Documents = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents; + export type IdNumber = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.IdNumber; + export type MonthlyEstimatedRevenue = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue; + export type RegistrationDate = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.RegistrationDate; + export type ScriptAddresses = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.ScriptAddresses; + export type ScriptNames = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.ScriptNames; + export type Structure = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Structure; + export namespace Documents { + export type BankAccountOwnershipVerification = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification; + export type CompanyLicense = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents.CompanyLicense; + export type CompanyMemorandumOfAssociation = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation; + export type CompanyMinisterialDecree = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree; + export type CompanyRegistrationVerification = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification; + export type CompanyTaxIdVerification = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification; + export type PrimaryVerification = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification; + export type ProofOfAddress = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress; + export type ProofOfRegistration = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration; + export type ProofOfUltimateBeneficialOwnership = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership; + export namespace PrimaryVerification { + export type FrontBack = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack; + } + export namespace ProofOfRegistration { + export type Signer = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration.Signer; + } + export namespace ProofOfUltimateBeneficialOwnership { + export type Signer = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership.Signer; + } + } + export namespace IdNumber { + export type Type = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.IdNumber.Type; + } + export namespace ScriptAddresses { + export type Kana = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kana; + export type Kanji = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.ScriptAddresses.Kanji; + } + export namespace ScriptNames { + export type Kana = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kana; + export type Kanji = Stripe_.V2.Core.AccountCreateParams.Identity.BusinessDetails.ScriptNames.Kanji; + } + } + export namespace Individual { + export type AdditionalAddress = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.AdditionalAddress; + export type AdditionalName = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.AdditionalName; + export type Address = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.Address; + export type DateOfBirth = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.DateOfBirth; + export type Documents = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.Documents; + export type IdNumber = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.IdNumber; + export type LegalGender = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.LegalGender; + export type PoliticalExposure = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.PoliticalExposure; + export type Relationship = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.Relationship; + export type ScriptAddresses = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.ScriptAddresses; + export type ScriptNames = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.ScriptNames; + export namespace AdditionalName { + export type Purpose = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.AdditionalName.Purpose; + } + export namespace Documents { + export type CompanyAuthorization = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.Documents.CompanyAuthorization; + export type Passport = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.Documents.Passport; + export type PrimaryVerification = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.Documents.PrimaryVerification; + export type SecondaryVerification = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.Documents.SecondaryVerification; + export type Visa = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.Documents.Visa; + export namespace PrimaryVerification { + export type FrontBack = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack; + } + export namespace SecondaryVerification { + export type FrontBack = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack; + } + } + export namespace IdNumber { + export type Type = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.IdNumber.Type; + } + export namespace ScriptAddresses { + export type Kana = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.ScriptAddresses.Kana; + export type Kanji = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.ScriptAddresses.Kanji; + } + export namespace ScriptNames { + export type Kana = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.ScriptNames.Kana; + export type Kanji = Stripe_.V2.Core.AccountCreateParams.Identity.Individual.ScriptNames.Kanji; + } + } + } } - export namespace AccountCloseParams { - export type AppliedConfiguration = Stripe.V2.Core.AccountCloseParams.AppliedConfiguration; + export namespace Account { + export type AppliedConfiguration = Stripe_.V2.Core.Account.AppliedConfiguration; + export type Configuration = Stripe_.V2.Core.Account.Configuration; + export type Dashboard = Stripe_.V2.Core.Account.Dashboard; + export type Defaults = Stripe_.V2.Core.Account.Defaults; + export type FutureRequirements = Stripe_.V2.Core.Account.FutureRequirements; + export type Identity = Stripe_.V2.Core.Account.Identity; + export type Requirements = Stripe_.V2.Core.Account.Requirements; + export namespace Configuration { + export type Customer = Stripe_.V2.Core.Account.Configuration.Customer; + export type Merchant = Stripe_.V2.Core.Account.Configuration.Merchant; + export type Recipient = Stripe_.V2.Core.Account.Configuration.Recipient; + export type Storer = Stripe_.V2.Core.Account.Configuration.Storer; + export namespace Customer { + export type AutomaticIndirectTax = Stripe_.V2.Core.Account.Configuration.Customer.AutomaticIndirectTax; + export type Billing = Stripe_.V2.Core.Account.Configuration.Customer.Billing; + export type Capabilities = Stripe_.V2.Core.Account.Configuration.Customer.Capabilities; + export type Shipping = Stripe_.V2.Core.Account.Configuration.Customer.Shipping; + export namespace AutomaticIndirectTax { + export type Exempt = Stripe_.V2.Core.Account.Configuration.Customer.AutomaticIndirectTax.Exempt; + export type Location = Stripe_.V2.Core.Account.Configuration.Customer.AutomaticIndirectTax.Location; + export type LocationSource = Stripe_.V2.Core.Account.Configuration.Customer.AutomaticIndirectTax.LocationSource; + } + export namespace Billing { + export type Invoice = Stripe_.V2.Core.Account.Configuration.Customer.Billing.Invoice; + export namespace Invoice { + export type CustomField = Stripe_.V2.Core.Account.Configuration.Customer.Billing.Invoice.CustomField; + export type Rendering = Stripe_.V2.Core.Account.Configuration.Customer.Billing.Invoice.Rendering; + export namespace Rendering { + export type AmountTaxDisplay = Stripe_.V2.Core.Account.Configuration.Customer.Billing.Invoice.Rendering.AmountTaxDisplay; + } + } + } + export namespace Capabilities { + export type AutomaticIndirectTax = Stripe_.V2.Core.Account.Configuration.Customer.Capabilities.AutomaticIndirectTax; + export namespace AutomaticIndirectTax { + export type Status = Stripe_.V2.Core.Account.Configuration.Customer.Capabilities.AutomaticIndirectTax.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Customer.Capabilities.AutomaticIndirectTax.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Customer.Capabilities.AutomaticIndirectTax.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Customer.Capabilities.AutomaticIndirectTax.StatusDetail.Resolution; + } + } + } + export namespace Shipping { + export type Address = Stripe_.V2.Core.Account.Configuration.Customer.Shipping.Address; + } + } + export namespace Merchant { + export type BacsDebitPayments = Stripe_.V2.Core.Account.Configuration.Merchant.BacsDebitPayments; + export type Branding = Stripe_.V2.Core.Account.Configuration.Merchant.Branding; + export type Capabilities = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities; + export type CardPayments = Stripe_.V2.Core.Account.Configuration.Merchant.CardPayments; + export type KonbiniPayments = Stripe_.V2.Core.Account.Configuration.Merchant.KonbiniPayments; + export type ScriptStatementDescriptor = Stripe_.V2.Core.Account.Configuration.Merchant.ScriptStatementDescriptor; + export type SepaDebitPayments = Stripe_.V2.Core.Account.Configuration.Merchant.SepaDebitPayments; + export type SmartDisputes = Stripe_.V2.Core.Account.Configuration.Merchant.SmartDisputes; + export type StatementDescriptor = Stripe_.V2.Core.Account.Configuration.Merchant.StatementDescriptor; + export type Support = Stripe_.V2.Core.Account.Configuration.Merchant.Support; + export namespace Capabilities { + export type AchDebitPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AchDebitPayments; + export type AcssDebitPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AcssDebitPayments; + export type AffirmPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AffirmPayments; + export type AfterpayClearpayPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AfterpayClearpayPayments; + export type AlmaPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AlmaPayments; + export type AmazonPayPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AmazonPayPayments; + export type AuBecsDebitPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AuBecsDebitPayments; + export type BacsDebitPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BacsDebitPayments; + export type BancontactPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BancontactPayments; + export type BlikPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BlikPayments; + export type BoletoPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BoletoPayments; + export type CardPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CardPayments; + export type CartesBancairesPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CartesBancairesPayments; + export type CashappPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CashappPayments; + export type EpsPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.EpsPayments; + export type FpxPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.FpxPayments; + export type GbBankTransferPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.GbBankTransferPayments; + export type GrabpayPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.GrabpayPayments; + export type IdealPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.IdealPayments; + export type JcbPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.JcbPayments; + export type JpBankTransferPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.JpBankTransferPayments; + export type KakaoPayPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KakaoPayPayments; + export type KlarnaPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KlarnaPayments; + export type KonbiniPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KonbiniPayments; + export type KrCardPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KrCardPayments; + export type LinkPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.LinkPayments; + export type MobilepayPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MobilepayPayments; + export type MultibancoPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MultibancoPayments; + export type MxBankTransferPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MxBankTransferPayments; + export type NaverPayPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.NaverPayPayments; + export type OxxoPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.OxxoPayments; + export type P24Payments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.P24Payments; + export type PayByBankPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PayByBankPayments; + export type PaycoPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PaycoPayments; + export type PaynowPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PaynowPayments; + export type PromptpayPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PromptpayPayments; + export type RevolutPayPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.RevolutPayPayments; + export type SamsungPayPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SamsungPayPayments; + export type SepaBankTransferPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SepaBankTransferPayments; + export type SepaDebitPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SepaDebitPayments; + export type StripeBalance = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.StripeBalance; + export type SwishPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SwishPayments; + export type TwintPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.TwintPayments; + export type UsBankTransferPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.UsBankTransferPayments; + export type ZipPayments = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.ZipPayments; + export namespace AchDebitPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AchDebitPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AchDebitPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AchDebitPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AchDebitPayments.StatusDetail.Resolution; + } + } + export namespace AcssDebitPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AcssDebitPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AcssDebitPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AcssDebitPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AcssDebitPayments.StatusDetail.Resolution; + } + } + export namespace AffirmPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AffirmPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AffirmPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AffirmPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AffirmPayments.StatusDetail.Resolution; + } + } + export namespace AfterpayClearpayPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AfterpayClearpayPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AfterpayClearpayPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AfterpayClearpayPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AfterpayClearpayPayments.StatusDetail.Resolution; + } + } + export namespace AlmaPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AlmaPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AlmaPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AlmaPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AlmaPayments.StatusDetail.Resolution; + } + } + export namespace AmazonPayPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AmazonPayPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AmazonPayPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AmazonPayPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AmazonPayPayments.StatusDetail.Resolution; + } + } + export namespace AuBecsDebitPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AuBecsDebitPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AuBecsDebitPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AuBecsDebitPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.AuBecsDebitPayments.StatusDetail.Resolution; + } + } + export namespace BacsDebitPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BacsDebitPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BacsDebitPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BacsDebitPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BacsDebitPayments.StatusDetail.Resolution; + } + } + export namespace BancontactPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BancontactPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BancontactPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BancontactPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BancontactPayments.StatusDetail.Resolution; + } + } + export namespace BlikPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BlikPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BlikPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BlikPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BlikPayments.StatusDetail.Resolution; + } + } + export namespace BoletoPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BoletoPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BoletoPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BoletoPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.BoletoPayments.StatusDetail.Resolution; + } + } + export namespace CardPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CardPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CardPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CardPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CardPayments.StatusDetail.Resolution; + } + } + export namespace CartesBancairesPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CartesBancairesPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CartesBancairesPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CartesBancairesPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CartesBancairesPayments.StatusDetail.Resolution; + } + } + export namespace CashappPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CashappPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CashappPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CashappPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.CashappPayments.StatusDetail.Resolution; + } + } + export namespace EpsPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.EpsPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.EpsPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.EpsPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.EpsPayments.StatusDetail.Resolution; + } + } + export namespace FpxPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.FpxPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.FpxPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.FpxPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.FpxPayments.StatusDetail.Resolution; + } + } + export namespace GbBankTransferPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.GbBankTransferPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.GbBankTransferPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.GbBankTransferPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.GbBankTransferPayments.StatusDetail.Resolution; + } + } + export namespace GrabpayPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.GrabpayPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.GrabpayPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.GrabpayPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.GrabpayPayments.StatusDetail.Resolution; + } + } + export namespace IdealPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.IdealPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.IdealPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.IdealPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.IdealPayments.StatusDetail.Resolution; + } + } + export namespace JcbPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.JcbPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.JcbPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.JcbPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.JcbPayments.StatusDetail.Resolution; + } + } + export namespace JpBankTransferPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.JpBankTransferPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.JpBankTransferPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.JpBankTransferPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.JpBankTransferPayments.StatusDetail.Resolution; + } + } + export namespace KakaoPayPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KakaoPayPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KakaoPayPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KakaoPayPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KakaoPayPayments.StatusDetail.Resolution; + } + } + export namespace KlarnaPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KlarnaPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KlarnaPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KlarnaPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KlarnaPayments.StatusDetail.Resolution; + } + } + export namespace KonbiniPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KonbiniPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KonbiniPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KonbiniPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KonbiniPayments.StatusDetail.Resolution; + } + } + export namespace KrCardPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KrCardPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KrCardPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KrCardPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.KrCardPayments.StatusDetail.Resolution; + } + } + export namespace LinkPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.LinkPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.LinkPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.LinkPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.LinkPayments.StatusDetail.Resolution; + } + } + export namespace MobilepayPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MobilepayPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MobilepayPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MobilepayPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MobilepayPayments.StatusDetail.Resolution; + } + } + export namespace MultibancoPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MultibancoPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MultibancoPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MultibancoPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MultibancoPayments.StatusDetail.Resolution; + } + } + export namespace MxBankTransferPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MxBankTransferPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MxBankTransferPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MxBankTransferPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.MxBankTransferPayments.StatusDetail.Resolution; + } + } + export namespace NaverPayPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.NaverPayPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.NaverPayPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.NaverPayPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.NaverPayPayments.StatusDetail.Resolution; + } + } + export namespace OxxoPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.OxxoPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.OxxoPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.OxxoPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.OxxoPayments.StatusDetail.Resolution; + } + } + export namespace P24Payments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.P24Payments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.P24Payments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.P24Payments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.P24Payments.StatusDetail.Resolution; + } + } + export namespace PayByBankPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PayByBankPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PayByBankPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PayByBankPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PayByBankPayments.StatusDetail.Resolution; + } + } + export namespace PaycoPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PaycoPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PaycoPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PaycoPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PaycoPayments.StatusDetail.Resolution; + } + } + export namespace PaynowPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PaynowPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PaynowPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PaynowPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PaynowPayments.StatusDetail.Resolution; + } + } + export namespace PromptpayPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PromptpayPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PromptpayPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PromptpayPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.PromptpayPayments.StatusDetail.Resolution; + } + } + export namespace RevolutPayPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.RevolutPayPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.RevolutPayPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.RevolutPayPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.RevolutPayPayments.StatusDetail.Resolution; + } + } + export namespace SamsungPayPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SamsungPayPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SamsungPayPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SamsungPayPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SamsungPayPayments.StatusDetail.Resolution; + } + } + export namespace SepaBankTransferPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SepaBankTransferPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SepaBankTransferPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SepaBankTransferPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SepaBankTransferPayments.StatusDetail.Resolution; + } + } + export namespace SepaDebitPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SepaDebitPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SepaDebitPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SepaDebitPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SepaDebitPayments.StatusDetail.Resolution; + } + } + export namespace StripeBalance { + export type Payouts = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.StripeBalance.Payouts; + export namespace Payouts { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.StripeBalance.Payouts.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.StripeBalance.Payouts.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.StripeBalance.Payouts.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.StripeBalance.Payouts.StatusDetail.Resolution; + } + } + } + export namespace SwishPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SwishPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SwishPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SwishPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.SwishPayments.StatusDetail.Resolution; + } + } + export namespace TwintPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.TwintPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.TwintPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.TwintPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.TwintPayments.StatusDetail.Resolution; + } + } + export namespace UsBankTransferPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.UsBankTransferPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.UsBankTransferPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.UsBankTransferPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.UsBankTransferPayments.StatusDetail.Resolution; + } + } + export namespace ZipPayments { + export type Status = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.ZipPayments.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.ZipPayments.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.ZipPayments.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Merchant.Capabilities.ZipPayments.StatusDetail.Resolution; + } + } + } + export namespace CardPayments { + export type DeclineOn = Stripe_.V2.Core.Account.Configuration.Merchant.CardPayments.DeclineOn; + } + export namespace KonbiniPayments { + export type Support = Stripe_.V2.Core.Account.Configuration.Merchant.KonbiniPayments.Support; + export namespace Support { + export type Hours = Stripe_.V2.Core.Account.Configuration.Merchant.KonbiniPayments.Support.Hours; + } + } + export namespace ScriptStatementDescriptor { + export type Kana = Stripe_.V2.Core.Account.Configuration.Merchant.ScriptStatementDescriptor.Kana; + export type Kanji = Stripe_.V2.Core.Account.Configuration.Merchant.ScriptStatementDescriptor.Kanji; + } + export namespace SmartDisputes { + export type AutoRespond = Stripe_.V2.Core.Account.Configuration.Merchant.SmartDisputes.AutoRespond; + export namespace AutoRespond { + export type Preference = Stripe_.V2.Core.Account.Configuration.Merchant.SmartDisputes.AutoRespond.Preference; + export type Value = Stripe_.V2.Core.Account.Configuration.Merchant.SmartDisputes.AutoRespond.Value; + } + } + export namespace Support { + export type Address = Stripe_.V2.Core.Account.Configuration.Merchant.Support.Address; + } + } + export namespace Recipient { + export type Capabilities = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities; + export type DefaultOutboundDestination = Stripe_.V2.Core.Account.Configuration.Recipient.DefaultOutboundDestination; + export namespace Capabilities { + export type BankAccounts = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.BankAccounts; + export type Cards = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.Cards; + export type StripeBalance = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.StripeBalance; + export namespace BankAccounts { + export type Local = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.BankAccounts.Local; + export type Wire = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.BankAccounts.Wire; + export namespace Local { + export type Status = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.BankAccounts.Local.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.BankAccounts.Local.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.BankAccounts.Local.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.BankAccounts.Local.StatusDetail.Resolution; + } + } + export namespace Wire { + export type Status = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.BankAccounts.Wire.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.BankAccounts.Wire.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.BankAccounts.Wire.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.BankAccounts.Wire.StatusDetail.Resolution; + } + } + } + export namespace Cards { + export type Status = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.Cards.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.Cards.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.Cards.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.Cards.StatusDetail.Resolution; + } + } + export namespace StripeBalance { + export type Payouts = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.StripeBalance.Payouts; + export type StripeTransfers = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers; + export namespace Payouts { + export type Status = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.StripeBalance.Payouts.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.StripeBalance.Payouts.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.StripeBalance.Payouts.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.StripeBalance.Payouts.StatusDetail.Resolution; + } + } + export namespace StripeTransfers { + export type Status = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Recipient.Capabilities.StripeBalance.StripeTransfers.StatusDetail.Resolution; + } + } + } + } + export namespace DefaultOutboundDestination { + export type Type = Stripe_.V2.Core.Account.Configuration.Recipient.DefaultOutboundDestination.Type; + } + } + export namespace Storer { + export type Capabilities = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities; + export namespace Capabilities { + export type FinancialAddresses = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.FinancialAddresses; + export type HoldsCurrencies = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies; + export type InboundTransfers = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.InboundTransfers; + export type OutboundPayments = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments; + export type OutboundTransfers = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundTransfers; + export namespace FinancialAddresses { + export type BankAccounts = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts; + export namespace BankAccounts { + export type Status = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.FinancialAddresses.BankAccounts.StatusDetail.Resolution; + } + } + } + export namespace HoldsCurrencies { + export type Eur = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Eur; + export type Gbp = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp; + export type Usd = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Usd; + export namespace Eur { + export type Status = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Eur.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Eur.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Eur.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Eur.StatusDetail.Resolution; + } + } + export namespace Gbp { + export type Status = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Gbp.StatusDetail.Resolution; + } + } + export namespace Usd { + export type Status = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Usd.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Usd.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Usd.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.HoldsCurrencies.Usd.StatusDetail.Resolution; + } + } + } + export namespace InboundTransfers { + export type BankAccounts = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts; + export namespace BankAccounts { + export type Status = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.InboundTransfers.BankAccounts.StatusDetail.Resolution; + } + } + } + export namespace OutboundPayments { + export type BankAccounts = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts; + export type Cards = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.Cards; + export type FinancialAccounts = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts; + export namespace BankAccounts { + export type Status = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.BankAccounts.StatusDetail.Resolution; + } + } + export namespace Cards { + export type Status = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.Cards.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.Cards.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.Cards.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.Cards.StatusDetail.Resolution; + } + } + export namespace FinancialAccounts { + export type Status = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundPayments.FinancialAccounts.StatusDetail.Resolution; + } + } + } + export namespace OutboundTransfers { + export type BankAccounts = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts; + export type FinancialAccounts = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts; + export namespace BankAccounts { + export type Status = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundTransfers.BankAccounts.StatusDetail.Resolution; + } + } + export namespace FinancialAccounts { + export type Status = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts.Status; + export type StatusDetail = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts.StatusDetail; + export namespace StatusDetail { + export type Code = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts.StatusDetail.Code; + export type Resolution = Stripe_.V2.Core.Account.Configuration.Storer.Capabilities.OutboundTransfers.FinancialAccounts.StatusDetail.Resolution; + } + } + } + } + } + } + export namespace Defaults { + export type Locale = Stripe_.V2.Core.Account.Defaults.Locale; + export type Profile = Stripe_.V2.Core.Account.Defaults.Profile; + export type Responsibilities = Stripe_.V2.Core.Account.Defaults.Responsibilities; + export namespace Responsibilities { + export type FeesCollector = Stripe_.V2.Core.Account.Defaults.Responsibilities.FeesCollector; + export type LossesCollector = Stripe_.V2.Core.Account.Defaults.Responsibilities.LossesCollector; + export type RequirementsCollector = Stripe_.V2.Core.Account.Defaults.Responsibilities.RequirementsCollector; + } + } + export namespace FutureRequirements { + export type Entry = Stripe_.V2.Core.Account.FutureRequirements.Entry; + export type Summary = Stripe_.V2.Core.Account.FutureRequirements.Summary; + export namespace Entry { + export type AwaitingActionFrom = Stripe_.V2.Core.Account.FutureRequirements.Entry.AwaitingActionFrom; + export type Error = Stripe_.V2.Core.Account.FutureRequirements.Entry.Error; + export type Impact = Stripe_.V2.Core.Account.FutureRequirements.Entry.Impact; + export type MinimumDeadline = Stripe_.V2.Core.Account.FutureRequirements.Entry.MinimumDeadline; + export type Reference = Stripe_.V2.Core.Account.FutureRequirements.Entry.Reference; + export type RequestedReason = Stripe_.V2.Core.Account.FutureRequirements.Entry.RequestedReason; + export namespace Error { + export type Code = Stripe_.V2.Core.Account.FutureRequirements.Entry.Error.Code; + } + export namespace Impact { + export type RestrictsCapability = Stripe_.V2.Core.Account.FutureRequirements.Entry.Impact.RestrictsCapability; + export namespace RestrictsCapability { + export type Capability = Stripe_.V2.Core.Account.FutureRequirements.Entry.Impact.RestrictsCapability.Capability; + export type Configuration = Stripe_.V2.Core.Account.FutureRequirements.Entry.Impact.RestrictsCapability.Configuration; + export type Deadline = Stripe_.V2.Core.Account.FutureRequirements.Entry.Impact.RestrictsCapability.Deadline; + export namespace Deadline { + export type Status = Stripe_.V2.Core.Account.FutureRequirements.Entry.Impact.RestrictsCapability.Deadline.Status; + } + } + } + export namespace MinimumDeadline { + export type Status = Stripe_.V2.Core.Account.FutureRequirements.Entry.MinimumDeadline.Status; + } + export namespace Reference { + export type Type = Stripe_.V2.Core.Account.FutureRequirements.Entry.Reference.Type; + } + export namespace RequestedReason { + export type Code = Stripe_.V2.Core.Account.FutureRequirements.Entry.RequestedReason.Code; + } + } + export namespace Summary { + export type MinimumDeadline = Stripe_.V2.Core.Account.FutureRequirements.Summary.MinimumDeadline; + export namespace MinimumDeadline { + export type Status = Stripe_.V2.Core.Account.FutureRequirements.Summary.MinimumDeadline.Status; + } + } + } + export namespace Identity { + export type Attestations = Stripe_.V2.Core.Account.Identity.Attestations; + export type BusinessDetails = Stripe_.V2.Core.Account.Identity.BusinessDetails; + export type EntityType = Stripe_.V2.Core.Account.Identity.EntityType; + export type Individual = Stripe_.V2.Core.Account.Identity.Individual; + export namespace Attestations { + export type DirectorshipDeclaration = Stripe_.V2.Core.Account.Identity.Attestations.DirectorshipDeclaration; + export type OwnershipDeclaration = Stripe_.V2.Core.Account.Identity.Attestations.OwnershipDeclaration; + export type PersonsProvided = Stripe_.V2.Core.Account.Identity.Attestations.PersonsProvided; + export type RepresentativeDeclaration = Stripe_.V2.Core.Account.Identity.Attestations.RepresentativeDeclaration; + export type TermsOfService = Stripe_.V2.Core.Account.Identity.Attestations.TermsOfService; + export namespace PersonsProvided { + export type OwnershipExemptionReason = Stripe_.V2.Core.Account.Identity.Attestations.PersonsProvided.OwnershipExemptionReason; + } + export namespace TermsOfService { + export type Account = Stripe_.V2.Core.Account.Identity.Attestations.TermsOfService.Account; + export type Storer = Stripe_.V2.Core.Account.Identity.Attestations.TermsOfService.Storer; + } + } + export namespace BusinessDetails { + export type Address = Stripe_.V2.Core.Account.Identity.BusinessDetails.Address; + export type AnnualRevenue = Stripe_.V2.Core.Account.Identity.BusinessDetails.AnnualRevenue; + export type Documents = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents; + export type IdNumber = Stripe_.V2.Core.Account.Identity.BusinessDetails.IdNumber; + export type MonthlyEstimatedRevenue = Stripe_.V2.Core.Account.Identity.BusinessDetails.MonthlyEstimatedRevenue; + export type RegistrationDate = Stripe_.V2.Core.Account.Identity.BusinessDetails.RegistrationDate; + export type ScriptAddresses = Stripe_.V2.Core.Account.Identity.BusinessDetails.ScriptAddresses; + export type ScriptNames = Stripe_.V2.Core.Account.Identity.BusinessDetails.ScriptNames; + export type Structure = Stripe_.V2.Core.Account.Identity.BusinessDetails.Structure; + export namespace Documents { + export type BankAccountOwnershipVerification = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification; + export type CompanyLicense = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents.CompanyLicense; + export type CompanyMemorandumOfAssociation = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation; + export type CompanyMinisterialDecree = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents.CompanyMinisterialDecree; + export type CompanyRegistrationVerification = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents.CompanyRegistrationVerification; + export type CompanyTaxIdVerification = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents.CompanyTaxIdVerification; + export type PrimaryVerification = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents.PrimaryVerification; + export type ProofOfAddress = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents.ProofOfAddress; + export type ProofOfRegistration = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents.ProofOfRegistration; + export type ProofOfUltimateBeneficialOwnership = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership; + export namespace PrimaryVerification { + export type FrontBack = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack; + } + export namespace ProofOfRegistration { + export type Signer = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents.ProofOfRegistration.Signer; + } + export namespace ProofOfUltimateBeneficialOwnership { + export type Signer = Stripe_.V2.Core.Account.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership.Signer; + } + } + export namespace IdNumber { + export type Type = Stripe_.V2.Core.Account.Identity.BusinessDetails.IdNumber.Type; + } + export namespace ScriptAddresses { + export type Kana = Stripe_.V2.Core.Account.Identity.BusinessDetails.ScriptAddresses.Kana; + export type Kanji = Stripe_.V2.Core.Account.Identity.BusinessDetails.ScriptAddresses.Kanji; + } + export namespace ScriptNames { + export type Kana = Stripe_.V2.Core.Account.Identity.BusinessDetails.ScriptNames.Kana; + export type Kanji = Stripe_.V2.Core.Account.Identity.BusinessDetails.ScriptNames.Kanji; + } + } + export namespace Individual { + export type AdditionalAddress = Stripe_.V2.Core.Account.Identity.Individual.AdditionalAddress; + export type AdditionalName = Stripe_.V2.Core.Account.Identity.Individual.AdditionalName; + export type AdditionalTermsOfService = Stripe_.V2.Core.Account.Identity.Individual.AdditionalTermsOfService; + export type Address = Stripe_.V2.Core.Account.Identity.Individual.Address; + export type DateOfBirth = Stripe_.V2.Core.Account.Identity.Individual.DateOfBirth; + export type Documents = Stripe_.V2.Core.Account.Identity.Individual.Documents; + export type IdNumber = Stripe_.V2.Core.Account.Identity.Individual.IdNumber; + export type LegalGender = Stripe_.V2.Core.Account.Identity.Individual.LegalGender; + export type PoliticalExposure = Stripe_.V2.Core.Account.Identity.Individual.PoliticalExposure; + export type Relationship = Stripe_.V2.Core.Account.Identity.Individual.Relationship; + export type ScriptAddresses = Stripe_.V2.Core.Account.Identity.Individual.ScriptAddresses; + export type ScriptNames = Stripe_.V2.Core.Account.Identity.Individual.ScriptNames; + export namespace AdditionalName { + export type Purpose = Stripe_.V2.Core.Account.Identity.Individual.AdditionalName.Purpose; + } + export namespace AdditionalTermsOfService { + export type Account = Stripe_.V2.Core.Account.Identity.Individual.AdditionalTermsOfService.Account; + } + export namespace Documents { + export type CompanyAuthorization = Stripe_.V2.Core.Account.Identity.Individual.Documents.CompanyAuthorization; + export type Passport = Stripe_.V2.Core.Account.Identity.Individual.Documents.Passport; + export type PrimaryVerification = Stripe_.V2.Core.Account.Identity.Individual.Documents.PrimaryVerification; + export type SecondaryVerification = Stripe_.V2.Core.Account.Identity.Individual.Documents.SecondaryVerification; + export type Visa = Stripe_.V2.Core.Account.Identity.Individual.Documents.Visa; + export namespace PrimaryVerification { + export type FrontBack = Stripe_.V2.Core.Account.Identity.Individual.Documents.PrimaryVerification.FrontBack; + } + export namespace SecondaryVerification { + export type FrontBack = Stripe_.V2.Core.Account.Identity.Individual.Documents.SecondaryVerification.FrontBack; + } + } + export namespace IdNumber { + export type Type = Stripe_.V2.Core.Account.Identity.Individual.IdNumber.Type; + } + export namespace ScriptAddresses { + export type Kana = Stripe_.V2.Core.Account.Identity.Individual.ScriptAddresses.Kana; + export type Kanji = Stripe_.V2.Core.Account.Identity.Individual.ScriptAddresses.Kanji; + } + export namespace ScriptNames { + export type Kana = Stripe_.V2.Core.Account.Identity.Individual.ScriptNames.Kana; + export type Kanji = Stripe_.V2.Core.Account.Identity.Individual.ScriptNames.Kanji; + } + } + } + export namespace Requirements { + export type Entry = Stripe_.V2.Core.Account.Requirements.Entry; + export type Summary = Stripe_.V2.Core.Account.Requirements.Summary; + export namespace Entry { + export type AwaitingActionFrom = Stripe_.V2.Core.Account.Requirements.Entry.AwaitingActionFrom; + export type Error = Stripe_.V2.Core.Account.Requirements.Entry.Error; + export type Impact = Stripe_.V2.Core.Account.Requirements.Entry.Impact; + export type MinimumDeadline = Stripe_.V2.Core.Account.Requirements.Entry.MinimumDeadline; + export type Reference = Stripe_.V2.Core.Account.Requirements.Entry.Reference; + export type RequestedReason = Stripe_.V2.Core.Account.Requirements.Entry.RequestedReason; + export namespace Error { + export type Code = Stripe_.V2.Core.Account.Requirements.Entry.Error.Code; + } + export namespace Impact { + export type RestrictsCapability = Stripe_.V2.Core.Account.Requirements.Entry.Impact.RestrictsCapability; + export namespace RestrictsCapability { + export type Capability = Stripe_.V2.Core.Account.Requirements.Entry.Impact.RestrictsCapability.Capability; + export type Configuration = Stripe_.V2.Core.Account.Requirements.Entry.Impact.RestrictsCapability.Configuration; + export type Deadline = Stripe_.V2.Core.Account.Requirements.Entry.Impact.RestrictsCapability.Deadline; + export namespace Deadline { + export type Status = Stripe_.V2.Core.Account.Requirements.Entry.Impact.RestrictsCapability.Deadline.Status; + } + } + } + export namespace MinimumDeadline { + export type Status = Stripe_.V2.Core.Account.Requirements.Entry.MinimumDeadline.Status; + } + export namespace Reference { + export type Type = Stripe_.V2.Core.Account.Requirements.Entry.Reference.Type; + } + export namespace RequestedReason { + export type Code = Stripe_.V2.Core.Account.Requirements.Entry.RequestedReason.Code; + } + } + export namespace Summary { + export type MinimumDeadline = Stripe_.V2.Core.Account.Requirements.Summary.MinimumDeadline; + export namespace MinimumDeadline { + export type Status = Stripe_.V2.Core.Account.Requirements.Summary.MinimumDeadline.Status; + } + } + } } export namespace AccountLinkCreateParams { - export type UseCase = Stripe.V2.Core.AccountLinkCreateParams.UseCase; + export type UseCase = Stripe_.V2.Core.AccountLinkCreateParams.UseCase; + export namespace UseCase { + export type AccountOnboarding = Stripe_.V2.Core.AccountLinkCreateParams.UseCase.AccountOnboarding; + export type AccountUpdate = Stripe_.V2.Core.AccountLinkCreateParams.UseCase.AccountUpdate; + export type Type = Stripe_.V2.Core.AccountLinkCreateParams.UseCase.Type; + export namespace AccountOnboarding { + export type CollectionOptions = Stripe_.V2.Core.AccountLinkCreateParams.UseCase.AccountOnboarding.CollectionOptions; + export type Configuration = Stripe_.V2.Core.AccountLinkCreateParams.UseCase.AccountOnboarding.Configuration; + export namespace CollectionOptions { + export type Fields = Stripe_.V2.Core.AccountLinkCreateParams.UseCase.AccountOnboarding.CollectionOptions.Fields; + export type FutureRequirements = Stripe_.V2.Core.AccountLinkCreateParams.UseCase.AccountOnboarding.CollectionOptions.FutureRequirements; + } + } + export namespace AccountUpdate { + export type CollectionOptions = Stripe_.V2.Core.AccountLinkCreateParams.UseCase.AccountUpdate.CollectionOptions; + export type Configuration = Stripe_.V2.Core.AccountLinkCreateParams.UseCase.AccountUpdate.Configuration; + export namespace CollectionOptions { + export type Fields = Stripe_.V2.Core.AccountLinkCreateParams.UseCase.AccountUpdate.CollectionOptions.Fields; + export type FutureRequirements = Stripe_.V2.Core.AccountLinkCreateParams.UseCase.AccountUpdate.CollectionOptions.FutureRequirements; + } + } + } + } + export namespace AccountLink { + export type UseCase = Stripe_.V2.Core.AccountLink.UseCase; + export namespace UseCase { + export type AccountOnboarding = Stripe_.V2.Core.AccountLink.UseCase.AccountOnboarding; + export type AccountUpdate = Stripe_.V2.Core.AccountLink.UseCase.AccountUpdate; + export type Type = Stripe_.V2.Core.AccountLink.UseCase.Type; + export namespace AccountOnboarding { + export type CollectionOptions = Stripe_.V2.Core.AccountLink.UseCase.AccountOnboarding.CollectionOptions; + export type Configuration = Stripe_.V2.Core.AccountLink.UseCase.AccountOnboarding.Configuration; + export namespace CollectionOptions { + export type Fields = Stripe_.V2.Core.AccountLink.UseCase.AccountOnboarding.CollectionOptions.Fields; + export type FutureRequirements = Stripe_.V2.Core.AccountLink.UseCase.AccountOnboarding.CollectionOptions.FutureRequirements; + } + } + export namespace AccountUpdate { + export type CollectionOptions = Stripe_.V2.Core.AccountLink.UseCase.AccountUpdate.CollectionOptions; + export type Configuration = Stripe_.V2.Core.AccountLink.UseCase.AccountUpdate.Configuration; + export namespace CollectionOptions { + export type Fields = Stripe_.V2.Core.AccountLink.UseCase.AccountUpdate.CollectionOptions.Fields; + export type FutureRequirements = Stripe_.V2.Core.AccountLink.UseCase.AccountUpdate.CollectionOptions.FutureRequirements; + } + } + } } export namespace AccountTokenCreateParams { - export type Identity = Stripe.V2.Core.AccountTokenCreateParams.Identity; + export type Identity = Stripe_.V2.Core.AccountTokenCreateParams.Identity; + export namespace Identity { + export type Attestations = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Attestations; + export type BusinessDetails = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails; + export type EntityType = Stripe_.V2.Core.AccountTokenCreateParams.Identity.EntityType; + export type Individual = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual; + export namespace Attestations { + export type DirectorshipDeclaration = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Attestations.DirectorshipDeclaration; + export type OwnershipDeclaration = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Attestations.OwnershipDeclaration; + export type PersonsProvided = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Attestations.PersonsProvided; + export type RepresentativeDeclaration = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Attestations.RepresentativeDeclaration; + export type TermsOfService = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Attestations.TermsOfService; + export namespace PersonsProvided { + export type OwnershipExemptionReason = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Attestations.PersonsProvided.OwnershipExemptionReason; + } + export namespace TermsOfService { + export type Account = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Attestations.TermsOfService.Account; + export type Storer = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Attestations.TermsOfService.Storer; + } + } + export namespace BusinessDetails { + export type AnnualRevenue = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.AnnualRevenue; + export type Documents = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents; + export type IdNumber = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.IdNumber; + export type MonthlyEstimatedRevenue = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.MonthlyEstimatedRevenue; + export type RegistrationDate = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.RegistrationDate; + export type ScriptAddresses = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.ScriptAddresses; + export type ScriptNames = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames; + export type Structure = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Structure; + export namespace Documents { + export type BankAccountOwnershipVerification = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents.BankAccountOwnershipVerification; + export type CompanyLicense = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyLicense; + export type CompanyMemorandumOfAssociation = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyMemorandumOfAssociation; + export type CompanyMinisterialDecree = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyMinisterialDecree; + export type CompanyRegistrationVerification = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyRegistrationVerification; + export type CompanyTaxIdVerification = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents.CompanyTaxIdVerification; + export type PrimaryVerification = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification; + export type ProofOfAddress = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfAddress; + export type ProofOfRegistration = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration; + export type ProofOfUltimateBeneficialOwnership = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership; + export namespace PrimaryVerification { + export type FrontBack = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents.PrimaryVerification.FrontBack; + } + export namespace ProofOfRegistration { + export type Signer = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfRegistration.Signer; + } + export namespace ProofOfUltimateBeneficialOwnership { + export type Signer = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.Documents.ProofOfUltimateBeneficialOwnership.Signer; + } + } + export namespace IdNumber { + export type Type = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.IdNumber.Type; + } + export namespace ScriptNames { + export type Kana = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames.Kana; + export type Kanji = Stripe_.V2.Core.AccountTokenCreateParams.Identity.BusinessDetails.ScriptNames.Kanji; + } + } + export namespace Individual { + export type AdditionalAddress = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.AdditionalAddress; + export type AdditionalName = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.AdditionalName; + export type DateOfBirth = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.DateOfBirth; + export type Documents = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.Documents; + export type IdNumber = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.IdNumber; + export type LegalGender = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.LegalGender; + export type PoliticalExposure = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.PoliticalExposure; + export type Relationship = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.Relationship; + export type ScriptAddresses = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.ScriptAddresses; + export type ScriptNames = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.ScriptNames; + export namespace AdditionalName { + export type Purpose = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.AdditionalName.Purpose; + } + export namespace Documents { + export type CompanyAuthorization = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.Documents.CompanyAuthorization; + export type Passport = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.Documents.Passport; + export type PrimaryVerification = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.Documents.PrimaryVerification; + export type SecondaryVerification = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.Documents.SecondaryVerification; + export type Visa = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.Documents.Visa; + export namespace PrimaryVerification { + export type FrontBack = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.Documents.PrimaryVerification.FrontBack; + } + export namespace SecondaryVerification { + export type FrontBack = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.Documents.SecondaryVerification.FrontBack; + } + } + export namespace IdNumber { + export type Type = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.IdNumber.Type; + } + export namespace ScriptNames { + export type Kana = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.ScriptNames.Kana; + export type Kanji = Stripe_.V2.Core.AccountTokenCreateParams.Identity.Individual.ScriptNames.Kanji; + } + } + } } export namespace BatchJobCreateParams { - export type Endpoint = Stripe.V2.Core.BatchJobCreateParams.Endpoint; - export type NotificationSuppression = Stripe.V2.Core.BatchJobCreateParams.NotificationSuppression; + export type Endpoint = Stripe_.V2.Core.BatchJobCreateParams.Endpoint; + export type NotificationSuppression = Stripe_.V2.Core.BatchJobCreateParams.NotificationSuppression; + export namespace Endpoint { + export type HttpMethod = Stripe_.V2.Core.BatchJobCreateParams.Endpoint.HttpMethod; + export type Path = Stripe_.V2.Core.BatchJobCreateParams.Endpoint.Path; + } + export namespace NotificationSuppression { + export type Scope = Stripe_.V2.Core.BatchJobCreateParams.NotificationSuppression.Scope; + } + } + export namespace BatchJob { + export type Status = Stripe_.V2.Core.BatchJob.Status; + export type StatusDetails = Stripe_.V2.Core.BatchJob.StatusDetails; + export namespace StatusDetails { + export type BatchFailed = Stripe_.V2.Core.BatchJob.StatusDetails.BatchFailed; + export type Canceled = Stripe_.V2.Core.BatchJob.StatusDetails.Canceled; + export type Complete = Stripe_.V2.Core.BatchJob.StatusDetails.Complete; + export type InProgress = Stripe_.V2.Core.BatchJob.StatusDetails.InProgress; + export type ReadyForUpload = Stripe_.V2.Core.BatchJob.StatusDetails.ReadyForUpload; + export type Timeout = Stripe_.V2.Core.BatchJob.StatusDetails.Timeout; + export type Validating = Stripe_.V2.Core.BatchJob.StatusDetails.Validating; + export type ValidationFailed = Stripe_.V2.Core.BatchJob.StatusDetails.ValidationFailed; + export namespace Canceled { + export type OutputFile = Stripe_.V2.Core.BatchJob.StatusDetails.Canceled.OutputFile; + export namespace OutputFile { + export type DownloadUrl = Stripe_.V2.Core.BatchJob.StatusDetails.Canceled.OutputFile.DownloadUrl; + } + } + export namespace Complete { + export type OutputFile = Stripe_.V2.Core.BatchJob.StatusDetails.Complete.OutputFile; + export namespace OutputFile { + export type DownloadUrl = Stripe_.V2.Core.BatchJob.StatusDetails.Complete.OutputFile.DownloadUrl; + } + } + export namespace ReadyForUpload { + export type UploadUrl = Stripe_.V2.Core.BatchJob.StatusDetails.ReadyForUpload.UploadUrl; + } + export namespace Timeout { + export type OutputFile = Stripe_.V2.Core.BatchJob.StatusDetails.Timeout.OutputFile; + export namespace OutputFile { + export type DownloadUrl = Stripe_.V2.Core.BatchJob.StatusDetails.Timeout.OutputFile.DownloadUrl; + } + } + export namespace ValidationFailed { + export type OutputFile = Stripe_.V2.Core.BatchJob.StatusDetails.ValidationFailed.OutputFile; + export namespace OutputFile { + export type DownloadUrl = Stripe_.V2.Core.BatchJob.StatusDetails.ValidationFailed.OutputFile.DownloadUrl; + } + } + } + } + export namespace Event { + export type Changes = Stripe_.V2.Core.Event.Changes; + export type Reason = Stripe_.V2.Core.Event.Reason; + export namespace Reason { + export type Request = Stripe_.V2.Core.Event.Reason.Request; + } } export namespace EventDestinationCreateParams { - export type EventPayload = Stripe.V2.Core.EventDestinationCreateParams.EventPayload; - export type Type = Stripe.V2.Core.EventDestinationCreateParams.Type; - export type AmazonEventbridge = Stripe.V2.Core.EventDestinationCreateParams.AmazonEventbridge; - export type AzureEventGrid = Stripe.V2.Core.EventDestinationCreateParams.AzureEventGrid; - export type Include = Stripe.V2.Core.EventDestinationCreateParams.Include; - export type WebhookEndpoint = Stripe.V2.Core.EventDestinationCreateParams.WebhookEndpoint; + export type EventPayload = Stripe_.V2.Core.EventDestinationCreateParams.EventPayload; + export type Type = Stripe_.V2.Core.EventDestinationCreateParams.Type; + export type AmazonEventbridge = Stripe_.V2.Core.EventDestinationCreateParams.AmazonEventbridge; + export type AzureEventGrid = Stripe_.V2.Core.EventDestinationCreateParams.AzureEventGrid; + export type Include = Stripe_.V2.Core.EventDestinationCreateParams.Include; + export type WebhookEndpoint = Stripe_.V2.Core.EventDestinationCreateParams.WebhookEndpoint; + } + export namespace EventDestination { + export type AmazonEventbridge = Stripe_.V2.Core.EventDestination.AmazonEventbridge; + export type AzureEventGrid = Stripe_.V2.Core.EventDestination.AzureEventGrid; + export type EventPayload = Stripe_.V2.Core.EventDestination.EventPayload; + export type Status = Stripe_.V2.Core.EventDestination.Status; + export type StatusDetails = Stripe_.V2.Core.EventDestination.StatusDetails; + export type Type = Stripe_.V2.Core.EventDestination.Type; + export type WebhookEndpoint = Stripe_.V2.Core.EventDestination.WebhookEndpoint; + export namespace AmazonEventbridge { + export type AwsEventSourceStatus = Stripe_.V2.Core.EventDestination.AmazonEventbridge.AwsEventSourceStatus; + } + export namespace AzureEventGrid { + export type AzurePartnerTopicStatus = Stripe_.V2.Core.EventDestination.AzureEventGrid.AzurePartnerTopicStatus; + } + export namespace StatusDetails { + export type Disabled = Stripe_.V2.Core.EventDestination.StatusDetails.Disabled; + export namespace Disabled { + export type Reason = Stripe_.V2.Core.EventDestination.StatusDetails.Disabled.Reason; + } + } } - export namespace EventDestinationUpdateParams { - export type WebhookEndpoint = Stripe.V2.Core.EventDestinationUpdateParams.WebhookEndpoint; + export namespace AccountPerson { + export type AdditionalAddress = Stripe_.V2.Core.AccountPerson.AdditionalAddress; + export type AdditionalName = Stripe_.V2.Core.AccountPerson.AdditionalName; + export type AdditionalTermsOfService = Stripe_.V2.Core.AccountPerson.AdditionalTermsOfService; + export type Address = Stripe_.V2.Core.AccountPerson.Address; + export type DateOfBirth = Stripe_.V2.Core.AccountPerson.DateOfBirth; + export type Documents = Stripe_.V2.Core.AccountPerson.Documents; + export type IdNumber = Stripe_.V2.Core.AccountPerson.IdNumber; + export type LegalGender = Stripe_.V2.Core.AccountPerson.LegalGender; + export type PoliticalExposure = Stripe_.V2.Core.AccountPerson.PoliticalExposure; + export type Relationship = Stripe_.V2.Core.AccountPerson.Relationship; + export type ScriptAddresses = Stripe_.V2.Core.AccountPerson.ScriptAddresses; + export type ScriptNames = Stripe_.V2.Core.AccountPerson.ScriptNames; + export namespace AdditionalName { + export type Purpose = Stripe_.V2.Core.AccountPerson.AdditionalName.Purpose; + } + export namespace AdditionalTermsOfService { + export type Account = Stripe_.V2.Core.AccountPerson.AdditionalTermsOfService.Account; + } + export namespace Documents { + export type CompanyAuthorization = Stripe_.V2.Core.AccountPerson.Documents.CompanyAuthorization; + export type Passport = Stripe_.V2.Core.AccountPerson.Documents.Passport; + export type PrimaryVerification = Stripe_.V2.Core.AccountPerson.Documents.PrimaryVerification; + export type SecondaryVerification = Stripe_.V2.Core.AccountPerson.Documents.SecondaryVerification; + export type Visa = Stripe_.V2.Core.AccountPerson.Documents.Visa; + export namespace PrimaryVerification { + export type FrontBack = Stripe_.V2.Core.AccountPerson.Documents.PrimaryVerification.FrontBack; + } + export namespace SecondaryVerification { + export type FrontBack = Stripe_.V2.Core.AccountPerson.Documents.SecondaryVerification.FrontBack; + } + } + export namespace IdNumber { + export type Type = Stripe_.V2.Core.AccountPerson.IdNumber.Type; + } + export namespace ScriptAddresses { + export type Kana = Stripe_.V2.Core.AccountPerson.ScriptAddresses.Kana; + export type Kanji = Stripe_.V2.Core.AccountPerson.ScriptAddresses.Kanji; + } + export namespace ScriptNames { + export type Kana = Stripe_.V2.Core.AccountPerson.ScriptNames.Kana; + export type Kanji = Stripe_.V2.Core.AccountPerson.ScriptNames.Kanji; + } } export namespace Vault { - export type GbBankAccount = Stripe.V2.Core.Vault.GbBankAccount; - export type GbBankAccountCreateParams = Stripe.V2.Core.Vault.GbBankAccountCreateParams; - export type GbBankAccountRetrieveParams = Stripe.V2.Core.Vault.GbBankAccountRetrieveParams; - export type GbBankAccountListParams = Stripe.V2.Core.Vault.GbBankAccountListParams; - export type GbBankAccountAcknowledgeConfirmationOfPayeeParams = Stripe.V2.Core.Vault.GbBankAccountAcknowledgeConfirmationOfPayeeParams; - export type GbBankAccountArchiveParams = Stripe.V2.Core.Vault.GbBankAccountArchiveParams; - export type GbBankAccountInitiateConfirmationOfPayeeParams = Stripe.V2.Core.Vault.GbBankAccountInitiateConfirmationOfPayeeParams; - export type GbBankAccountResource = Stripe.V2.Core.Vault.GbBankAccountResource; - export type UsBankAccount = Stripe.V2.Core.Vault.UsBankAccount; - export type UsBankAccountCreateParams = Stripe.V2.Core.Vault.UsBankAccountCreateParams; - export type UsBankAccountRetrieveParams = Stripe.V2.Core.Vault.UsBankAccountRetrieveParams; - export type UsBankAccountUpdateParams = Stripe.V2.Core.Vault.UsBankAccountUpdateParams; - export type UsBankAccountListParams = Stripe.V2.Core.Vault.UsBankAccountListParams; - export type UsBankAccountArchiveParams = Stripe.V2.Core.Vault.UsBankAccountArchiveParams; - export type UsBankAccountConfirmMicrodepositsParams = Stripe.V2.Core.Vault.UsBankAccountConfirmMicrodepositsParams; - export type UsBankAccountSendMicrodepositsParams = Stripe.V2.Core.Vault.UsBankAccountSendMicrodepositsParams; - export type UsBankAccountResource = Stripe.V2.Core.Vault.UsBankAccountResource; + export type GbBankAccount = Stripe_.V2.Core.Vault.GbBankAccount; + export type GbBankAccountCreateParams = Stripe_.V2.Core.Vault.GbBankAccountCreateParams; + export type GbBankAccountRetrieveParams = Stripe_.V2.Core.Vault.GbBankAccountRetrieveParams; + export type GbBankAccountListParams = Stripe_.V2.Core.Vault.GbBankAccountListParams; + export type GbBankAccountAcknowledgeConfirmationOfPayeeParams = Stripe_.V2.Core.Vault.GbBankAccountAcknowledgeConfirmationOfPayeeParams; + export type GbBankAccountArchiveParams = Stripe_.V2.Core.Vault.GbBankAccountArchiveParams; + export type GbBankAccountInitiateConfirmationOfPayeeParams = Stripe_.V2.Core.Vault.GbBankAccountInitiateConfirmationOfPayeeParams; + export type GbBankAccountResource = Stripe_.V2.Core.Vault.GbBankAccountResource; + export type UsBankAccount = Stripe_.V2.Core.Vault.UsBankAccount; + export type UsBankAccountCreateParams = Stripe_.V2.Core.Vault.UsBankAccountCreateParams; + export type UsBankAccountRetrieveParams = Stripe_.V2.Core.Vault.UsBankAccountRetrieveParams; + export type UsBankAccountUpdateParams = Stripe_.V2.Core.Vault.UsBankAccountUpdateParams; + export type UsBankAccountListParams = Stripe_.V2.Core.Vault.UsBankAccountListParams; + export type UsBankAccountArchiveParams = Stripe_.V2.Core.Vault.UsBankAccountArchiveParams; + export type UsBankAccountConfirmMicrodepositsParams = Stripe_.V2.Core.Vault.UsBankAccountConfirmMicrodepositsParams; + export type UsBankAccountSendMicrodepositsParams = Stripe_.V2.Core.Vault.UsBankAccountSendMicrodepositsParams; + export type UsBankAccountResource = Stripe_.V2.Core.Vault.UsBankAccountResource; export namespace GbBankAccountCreateParams { - export type BankAccountType = Stripe.V2.Core.Vault.GbBankAccountCreateParams.BankAccountType; - export type ConfirmationOfPayee = Stripe.V2.Core.Vault.GbBankAccountCreateParams.ConfirmationOfPayee; + export type BankAccountType = Stripe_.V2.Core.Vault.GbBankAccountCreateParams.BankAccountType; + export type ConfirmationOfPayee = Stripe_.V2.Core.Vault.GbBankAccountCreateParams.ConfirmationOfPayee; + export namespace ConfirmationOfPayee { + export type BusinessType = Stripe_.V2.Core.Vault.GbBankAccountCreateParams.ConfirmationOfPayee.BusinessType; + } } - export namespace GbBankAccountInitiateConfirmationOfPayeeParams { - export type BusinessType = Stripe.V2.Core.Vault.GbBankAccountInitiateConfirmationOfPayeeParams.BusinessType; + export namespace GbBankAccount { + export type AlternativeReference = Stripe_.V2.Core.Vault.GbBankAccount.AlternativeReference; + export type BankAccountType = Stripe_.V2.Core.Vault.GbBankAccount.BankAccountType; + export type ConfirmationOfPayee = Stripe_.V2.Core.Vault.GbBankAccount.ConfirmationOfPayee; + export namespace AlternativeReference { + export type Type = Stripe_.V2.Core.Vault.GbBankAccount.AlternativeReference.Type; + } + export namespace ConfirmationOfPayee { + export type Result = Stripe_.V2.Core.Vault.GbBankAccount.ConfirmationOfPayee.Result; + export type Status = Stripe_.V2.Core.Vault.GbBankAccount.ConfirmationOfPayee.Status; + export namespace Result { + export type MatchResult = Stripe_.V2.Core.Vault.GbBankAccount.ConfirmationOfPayee.Result.MatchResult; + export type Matched = Stripe_.V2.Core.Vault.GbBankAccount.ConfirmationOfPayee.Result.Matched; + export type Provided = Stripe_.V2.Core.Vault.GbBankAccount.ConfirmationOfPayee.Result.Provided; + export namespace Matched { + export type BusinessType = Stripe_.V2.Core.Vault.GbBankAccount.ConfirmationOfPayee.Result.Matched.BusinessType; + } + export namespace Provided { + export type BusinessType = Stripe_.V2.Core.Vault.GbBankAccount.ConfirmationOfPayee.Result.Provided.BusinessType; + } + } + } } export namespace UsBankAccountCreateParams { - export type BankAccountType = Stripe.V2.Core.Vault.UsBankAccountCreateParams.BankAccountType; + export type BankAccountType = Stripe_.V2.Core.Vault.UsBankAccountCreateParams.BankAccountType; + } + export namespace UsBankAccount { + export type AlternativeReference = Stripe_.V2.Core.Vault.UsBankAccount.AlternativeReference; + export type BankAccountType = Stripe_.V2.Core.Vault.UsBankAccount.BankAccountType; + export type Verification = Stripe_.V2.Core.Vault.UsBankAccount.Verification; + export namespace AlternativeReference { + export type Type = Stripe_.V2.Core.Vault.UsBankAccount.AlternativeReference.Type; + } + export namespace Verification { + export type MicrodepositVerificationDetails = Stripe_.V2.Core.Vault.UsBankAccount.Verification.MicrodepositVerificationDetails; + export type Status = Stripe_.V2.Core.Vault.UsBankAccount.Verification.Status; + export namespace MicrodepositVerificationDetails { + export type MicrodepositType = Stripe_.V2.Core.Vault.UsBankAccount.Verification.MicrodepositVerificationDetails.MicrodepositType; + } + } } } } export namespace Data { export namespace Reporting { - export type QueryRun = Stripe.V2.Data.Reporting.QueryRun; - export type QueryRunCreateParams = Stripe.V2.Data.Reporting.QueryRunCreateParams; - export type QueryRunRetrieveParams = Stripe.V2.Data.Reporting.QueryRunRetrieveParams; - export type QueryRunResource = Stripe.V2.Data.Reporting.QueryRunResource; + export type QueryRun = Stripe_.V2.Data.Reporting.QueryRun; + export type QueryRunCreateParams = Stripe_.V2.Data.Reporting.QueryRunCreateParams; + export type QueryRunRetrieveParams = Stripe_.V2.Data.Reporting.QueryRunRetrieveParams; + export type QueryRunResource = Stripe_.V2.Data.Reporting.QueryRunResource; export namespace QueryRunCreateParams { - export type ResultOptions = Stripe.V2.Data.Reporting.QueryRunCreateParams.ResultOptions; + export type ResultOptions = Stripe_.V2.Data.Reporting.QueryRunCreateParams.ResultOptions; + } + export namespace QueryRun { + export type Result = Stripe_.V2.Data.Reporting.QueryRun.Result; + export type ResultOptions = Stripe_.V2.Data.Reporting.QueryRun.ResultOptions; + export type Status = Stripe_.V2.Data.Reporting.QueryRun.Status; + export type StatusDetails = Stripe_.V2.Data.Reporting.QueryRun.StatusDetails; + export namespace Result { + export type File = Stripe_.V2.Data.Reporting.QueryRun.Result.File; + export namespace File { + export type ContentType = Stripe_.V2.Data.Reporting.QueryRun.Result.File.ContentType; + export type DownloadUrl = Stripe_.V2.Data.Reporting.QueryRun.Result.File.DownloadUrl; + } + } + export namespace StatusDetails { + export type ErrorCode = Stripe_.V2.Data.Reporting.QueryRun.StatusDetails.ErrorCode; + } } } } export namespace Extend { - export type Workflow = Stripe.V2.Extend.Workflow; - export type WorkflowRetrieveParams = Stripe.V2.Extend.WorkflowRetrieveParams; - export type WorkflowListParams = Stripe.V2.Extend.WorkflowListParams; - export type WorkflowInvokeParams = Stripe.V2.Extend.WorkflowInvokeParams; - export type WorkflowResource = Stripe.V2.Extend.WorkflowResource; - export type WorkflowRun = Stripe.V2.Extend.WorkflowRun; - export type WorkflowRunRetrieveParams = Stripe.V2.Extend.WorkflowRunRetrieveParams; - export type WorkflowRunListParams = Stripe.V2.Extend.WorkflowRunListParams; - export type WorkflowRunResource = Stripe.V2.Extend.WorkflowRunResource; - export namespace WorkflowListParams { - export type Status = Stripe.V2.Extend.WorkflowListParams.Status; - } - export namespace WorkflowInvokeParams { - export type InputParameters = Stripe.V2.Extend.WorkflowInvokeParams.InputParameters; + export type Workflow = Stripe_.V2.Extend.Workflow; + export type WorkflowRetrieveParams = Stripe_.V2.Extend.WorkflowRetrieveParams; + export type WorkflowListParams = Stripe_.V2.Extend.WorkflowListParams; + export type WorkflowInvokeParams = Stripe_.V2.Extend.WorkflowInvokeParams; + export type WorkflowResource = Stripe_.V2.Extend.WorkflowResource; + export type WorkflowRun = Stripe_.V2.Extend.WorkflowRun; + export type WorkflowRunRetrieveParams = Stripe_.V2.Extend.WorkflowRunRetrieveParams; + export type WorkflowRunListParams = Stripe_.V2.Extend.WorkflowRunListParams; + export type WorkflowRunResource = Stripe_.V2.Extend.WorkflowRunResource; + export namespace Workflow { + export type Status = Stripe_.V2.Extend.Workflow.Status; + export type Trigger = Stripe_.V2.Extend.Workflow.Trigger; + export namespace Trigger { + export type EventTrigger = Stripe_.V2.Extend.Workflow.Trigger.EventTrigger; + export type Manual = Stripe_.V2.Extend.Workflow.Trigger.Manual; + export type Type = Stripe_.V2.Extend.Workflow.Trigger.Type; + } } - export namespace WorkflowRunListParams { - export type Status = Stripe.V2.Extend.WorkflowRunListParams.Status; + export namespace WorkflowRun { + export type Status = Stripe_.V2.Extend.WorkflowRun.Status; + export type StatusDetails = Stripe_.V2.Extend.WorkflowRun.StatusDetails; + export type StatusTransitions = Stripe_.V2.Extend.WorkflowRun.StatusTransitions; + export type Trigger = Stripe_.V2.Extend.WorkflowRun.Trigger; + export namespace StatusDetails { + export type Failed = Stripe_.V2.Extend.WorkflowRun.StatusDetails.Failed; + export type Started = Stripe_.V2.Extend.WorkflowRun.StatusDetails.Started; + export type Succeeded = Stripe_.V2.Extend.WorkflowRun.StatusDetails.Succeeded; + } + export namespace Trigger { + export type EventTrigger = Stripe_.V2.Extend.WorkflowRun.Trigger.EventTrigger; + export type Manual = Stripe_.V2.Extend.WorkflowRun.Trigger.Manual; + export type Type = Stripe_.V2.Extend.WorkflowRun.Trigger.Type; + export namespace Manual { + export type InputParameters = Stripe_.V2.Extend.WorkflowRun.Trigger.Manual.InputParameters; + } + } } } export namespace Iam { - export type ActivityLog = Stripe.V2.Iam.ActivityLog; - export type ActivityLogRetrieveParams = Stripe.V2.Iam.ActivityLogRetrieveParams; - export type ActivityLogListParams = Stripe.V2.Iam.ActivityLogListParams; - export type ActivityLogResource = Stripe.V2.Iam.ActivityLogResource; - export namespace ActivityLogListParams { - export type ActionGroup = Stripe.V2.Iam.ActivityLogListParams.ActionGroup; - export type Action = Stripe.V2.Iam.ActivityLogListParams.Action; + export type ActivityLog = Stripe_.V2.Iam.ActivityLog; + export type ActivityLogRetrieveParams = Stripe_.V2.Iam.ActivityLogRetrieveParams; + export type ActivityLogListParams = Stripe_.V2.Iam.ActivityLogListParams; + export type ActivityLogResource = Stripe_.V2.Iam.ActivityLogResource; + export namespace ActivityLog { + export type Actor = Stripe_.V2.Iam.ActivityLog.Actor; + export type Details = Stripe_.V2.Iam.ActivityLog.Details; + export type Type = Stripe_.V2.Iam.ActivityLog.Type; + export namespace Actor { + export type ApiKey = Stripe_.V2.Iam.ActivityLog.Actor.ApiKey; + export type Type = Stripe_.V2.Iam.ActivityLog.Actor.Type; + export type User = Stripe_.V2.Iam.ActivityLog.Actor.User; + } + export namespace Details { + export type ApiKey = Stripe_.V2.Iam.ActivityLog.Details.ApiKey; + export type Type = Stripe_.V2.Iam.ActivityLog.Details.Type; + export type UserInvite = Stripe_.V2.Iam.ActivityLog.Details.UserInvite; + export type UserRoles = Stripe_.V2.Iam.ActivityLog.Details.UserRoles; + export namespace ApiKey { + export type ManagedBy = Stripe_.V2.Iam.ActivityLog.Details.ApiKey.ManagedBy; + export type Type = Stripe_.V2.Iam.ActivityLog.Details.ApiKey.Type; + export namespace ManagedBy { + export type Application = Stripe_.V2.Iam.ActivityLog.Details.ApiKey.ManagedBy.Application; + } + } + } } } export namespace MoneyManagement { - export type Adjustment = Stripe.V2.MoneyManagement.Adjustment; - export type AdjustmentRetrieveParams = Stripe.V2.MoneyManagement.AdjustmentRetrieveParams; - export type AdjustmentListParams = Stripe.V2.MoneyManagement.AdjustmentListParams; - export type AdjustmentResource = Stripe.V2.MoneyManagement.AdjustmentResource; - export type FinancialAccount = Stripe.V2.MoneyManagement.FinancialAccount; - export type FinancialAccountCreateParams = Stripe.V2.MoneyManagement.FinancialAccountCreateParams; - export type FinancialAccountRetrieveParams = Stripe.V2.MoneyManagement.FinancialAccountRetrieveParams; - export type FinancialAccountUpdateParams = Stripe.V2.MoneyManagement.FinancialAccountUpdateParams; - export type FinancialAccountListParams = Stripe.V2.MoneyManagement.FinancialAccountListParams; - export type FinancialAccountCloseParams = Stripe.V2.MoneyManagement.FinancialAccountCloseParams; - export type FinancialAccountResource = Stripe.V2.MoneyManagement.FinancialAccountResource; - export type FinancialAddress = Stripe.V2.MoneyManagement.FinancialAddress; - export type FinancialAddressCreateParams = Stripe.V2.MoneyManagement.FinancialAddressCreateParams; - export type FinancialAddressRetrieveParams = Stripe.V2.MoneyManagement.FinancialAddressRetrieveParams; - export type FinancialAddressListParams = Stripe.V2.MoneyManagement.FinancialAddressListParams; - export type FinancialAddressResource = Stripe.V2.MoneyManagement.FinancialAddressResource; - export type InboundTransfer = Stripe.V2.MoneyManagement.InboundTransfer; - export type InboundTransferCreateParams = Stripe.V2.MoneyManagement.InboundTransferCreateParams; - export type InboundTransferRetrieveParams = Stripe.V2.MoneyManagement.InboundTransferRetrieveParams; - export type InboundTransferListParams = Stripe.V2.MoneyManagement.InboundTransferListParams; - export type InboundTransferResource = Stripe.V2.MoneyManagement.InboundTransferResource; - export type OutboundPayment = Stripe.V2.MoneyManagement.OutboundPayment; - export type OutboundPaymentCreateParams = Stripe.V2.MoneyManagement.OutboundPaymentCreateParams; - export type OutboundPaymentRetrieveParams = Stripe.V2.MoneyManagement.OutboundPaymentRetrieveParams; - export type OutboundPaymentListParams = Stripe.V2.MoneyManagement.OutboundPaymentListParams; - export type OutboundPaymentCancelParams = Stripe.V2.MoneyManagement.OutboundPaymentCancelParams; - export type OutboundPaymentResource = Stripe.V2.MoneyManagement.OutboundPaymentResource; - export type OutboundPaymentQuote = Stripe.V2.MoneyManagement.OutboundPaymentQuote; - export type OutboundPaymentQuoteCreateParams = Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateParams; - export type OutboundPaymentQuoteRetrieveParams = Stripe.V2.MoneyManagement.OutboundPaymentQuoteRetrieveParams; - export type OutboundPaymentQuoteResource = Stripe.V2.MoneyManagement.OutboundPaymentQuoteResource; - export type OutboundSetupIntent = Stripe.V2.MoneyManagement.OutboundSetupIntent; - export type OutboundSetupIntentCreateParams = Stripe.V2.MoneyManagement.OutboundSetupIntentCreateParams; - export type OutboundSetupIntentRetrieveParams = Stripe.V2.MoneyManagement.OutboundSetupIntentRetrieveParams; - export type OutboundSetupIntentUpdateParams = Stripe.V2.MoneyManagement.OutboundSetupIntentUpdateParams; - export type OutboundSetupIntentListParams = Stripe.V2.MoneyManagement.OutboundSetupIntentListParams; - export type OutboundSetupIntentCancelParams = Stripe.V2.MoneyManagement.OutboundSetupIntentCancelParams; - export type OutboundSetupIntentResource = Stripe.V2.MoneyManagement.OutboundSetupIntentResource; - export type OutboundTransfer = Stripe.V2.MoneyManagement.OutboundTransfer; - export type OutboundTransferCreateParams = Stripe.V2.MoneyManagement.OutboundTransferCreateParams; - export type OutboundTransferRetrieveParams = Stripe.V2.MoneyManagement.OutboundTransferRetrieveParams; - export type OutboundTransferListParams = Stripe.V2.MoneyManagement.OutboundTransferListParams; - export type OutboundTransferCancelParams = Stripe.V2.MoneyManagement.OutboundTransferCancelParams; - export type OutboundTransferResource = Stripe.V2.MoneyManagement.OutboundTransferResource; - export type PayoutMethod = Stripe.V2.MoneyManagement.PayoutMethod; - export type PayoutMethodRetrieveParams = Stripe.V2.MoneyManagement.PayoutMethodRetrieveParams; - export type PayoutMethodListParams = Stripe.V2.MoneyManagement.PayoutMethodListParams; - export type PayoutMethodArchiveParams = Stripe.V2.MoneyManagement.PayoutMethodArchiveParams; - export type PayoutMethodUnarchiveParams = Stripe.V2.MoneyManagement.PayoutMethodUnarchiveParams; - export type PayoutMethodResource = Stripe.V2.MoneyManagement.PayoutMethodResource; - export type PayoutMethodsBankAccountSpec = Stripe.V2.MoneyManagement.PayoutMethodsBankAccountSpec; - export type PayoutMethodsBankAccountSpecRetrieveParams = Stripe.V2.MoneyManagement.PayoutMethodsBankAccountSpecRetrieveParams; - export type PayoutMethodsBankAccountSpecResource = Stripe.V2.MoneyManagement.PayoutMethodsBankAccountSpecResource; - export type ReceivedCredit = Stripe.V2.MoneyManagement.ReceivedCredit; - export type ReceivedCreditRetrieveParams = Stripe.V2.MoneyManagement.ReceivedCreditRetrieveParams; - export type ReceivedCreditListParams = Stripe.V2.MoneyManagement.ReceivedCreditListParams; - export type ReceivedCreditResource = Stripe.V2.MoneyManagement.ReceivedCreditResource; - export type ReceivedDebit = Stripe.V2.MoneyManagement.ReceivedDebit; - export type ReceivedDebitRetrieveParams = Stripe.V2.MoneyManagement.ReceivedDebitRetrieveParams; - export type ReceivedDebitListParams = Stripe.V2.MoneyManagement.ReceivedDebitListParams; - export type ReceivedDebitResource = Stripe.V2.MoneyManagement.ReceivedDebitResource; - export type Transaction = Stripe.V2.MoneyManagement.Transaction; - export type TransactionRetrieveParams = Stripe.V2.MoneyManagement.TransactionRetrieveParams; - export type TransactionListParams = Stripe.V2.MoneyManagement.TransactionListParams; - export type TransactionResource = Stripe.V2.MoneyManagement.TransactionResource; - export type TransactionEntry = Stripe.V2.MoneyManagement.TransactionEntry; - export type TransactionEntryRetrieveParams = Stripe.V2.MoneyManagement.TransactionEntryRetrieveParams; - export type TransactionEntryListParams = Stripe.V2.MoneyManagement.TransactionEntryListParams; - export type TransactionEntryResource = Stripe.V2.MoneyManagement.TransactionEntryResource; - export namespace FinancialAccountCreateParams { - export type Storage = Stripe.V2.MoneyManagement.FinancialAccountCreateParams.Storage; + export type Adjustment = Stripe_.V2.MoneyManagement.Adjustment; + export type AdjustmentRetrieveParams = Stripe_.V2.MoneyManagement.AdjustmentRetrieveParams; + export type AdjustmentListParams = Stripe_.V2.MoneyManagement.AdjustmentListParams; + export type AdjustmentResource = Stripe_.V2.MoneyManagement.AdjustmentResource; + export type FinancialAccount = Stripe_.V2.MoneyManagement.FinancialAccount; + export type FinancialAccountCreateParams = Stripe_.V2.MoneyManagement.FinancialAccountCreateParams; + export type FinancialAccountRetrieveParams = Stripe_.V2.MoneyManagement.FinancialAccountRetrieveParams; + export type FinancialAccountUpdateParams = Stripe_.V2.MoneyManagement.FinancialAccountUpdateParams; + export type FinancialAccountListParams = Stripe_.V2.MoneyManagement.FinancialAccountListParams; + export type FinancialAccountCloseParams = Stripe_.V2.MoneyManagement.FinancialAccountCloseParams; + export type FinancialAccountResource = Stripe_.V2.MoneyManagement.FinancialAccountResource; + export type FinancialAddress = Stripe_.V2.MoneyManagement.FinancialAddress; + export type FinancialAddressCreateParams = Stripe_.V2.MoneyManagement.FinancialAddressCreateParams; + export type FinancialAddressRetrieveParams = Stripe_.V2.MoneyManagement.FinancialAddressRetrieveParams; + export type FinancialAddressListParams = Stripe_.V2.MoneyManagement.FinancialAddressListParams; + export type FinancialAddressResource = Stripe_.V2.MoneyManagement.FinancialAddressResource; + export type InboundTransfer = Stripe_.V2.MoneyManagement.InboundTransfer; + export type InboundTransferCreateParams = Stripe_.V2.MoneyManagement.InboundTransferCreateParams; + export type InboundTransferRetrieveParams = Stripe_.V2.MoneyManagement.InboundTransferRetrieveParams; + export type InboundTransferListParams = Stripe_.V2.MoneyManagement.InboundTransferListParams; + export type InboundTransferResource = Stripe_.V2.MoneyManagement.InboundTransferResource; + export type OutboundPayment = Stripe_.V2.MoneyManagement.OutboundPayment; + export type OutboundPaymentCreateParams = Stripe_.V2.MoneyManagement.OutboundPaymentCreateParams; + export type OutboundPaymentRetrieveParams = Stripe_.V2.MoneyManagement.OutboundPaymentRetrieveParams; + export type OutboundPaymentListParams = Stripe_.V2.MoneyManagement.OutboundPaymentListParams; + export type OutboundPaymentCancelParams = Stripe_.V2.MoneyManagement.OutboundPaymentCancelParams; + export type OutboundPaymentResource = Stripe_.V2.MoneyManagement.OutboundPaymentResource; + export type OutboundPaymentQuote = Stripe_.V2.MoneyManagement.OutboundPaymentQuote; + export type OutboundPaymentQuoteCreateParams = Stripe_.V2.MoneyManagement.OutboundPaymentQuoteCreateParams; + export type OutboundPaymentQuoteRetrieveParams = Stripe_.V2.MoneyManagement.OutboundPaymentQuoteRetrieveParams; + export type OutboundPaymentQuoteResource = Stripe_.V2.MoneyManagement.OutboundPaymentQuoteResource; + export type OutboundSetupIntent = Stripe_.V2.MoneyManagement.OutboundSetupIntent; + export type OutboundSetupIntentCreateParams = Stripe_.V2.MoneyManagement.OutboundSetupIntentCreateParams; + export type OutboundSetupIntentRetrieveParams = Stripe_.V2.MoneyManagement.OutboundSetupIntentRetrieveParams; + export type OutboundSetupIntentUpdateParams = Stripe_.V2.MoneyManagement.OutboundSetupIntentUpdateParams; + export type OutboundSetupIntentListParams = Stripe_.V2.MoneyManagement.OutboundSetupIntentListParams; + export type OutboundSetupIntentCancelParams = Stripe_.V2.MoneyManagement.OutboundSetupIntentCancelParams; + export type OutboundSetupIntentResource = Stripe_.V2.MoneyManagement.OutboundSetupIntentResource; + export type OutboundTransfer = Stripe_.V2.MoneyManagement.OutboundTransfer; + export type OutboundTransferCreateParams = Stripe_.V2.MoneyManagement.OutboundTransferCreateParams; + export type OutboundTransferRetrieveParams = Stripe_.V2.MoneyManagement.OutboundTransferRetrieveParams; + export type OutboundTransferListParams = Stripe_.V2.MoneyManagement.OutboundTransferListParams; + export type OutboundTransferCancelParams = Stripe_.V2.MoneyManagement.OutboundTransferCancelParams; + export type OutboundTransferResource = Stripe_.V2.MoneyManagement.OutboundTransferResource; + export type PayoutMethod = Stripe_.V2.MoneyManagement.PayoutMethod; + export type PayoutMethodRetrieveParams = Stripe_.V2.MoneyManagement.PayoutMethodRetrieveParams; + export type PayoutMethodListParams = Stripe_.V2.MoneyManagement.PayoutMethodListParams; + export type PayoutMethodArchiveParams = Stripe_.V2.MoneyManagement.PayoutMethodArchiveParams; + export type PayoutMethodUnarchiveParams = Stripe_.V2.MoneyManagement.PayoutMethodUnarchiveParams; + export type PayoutMethodResource = Stripe_.V2.MoneyManagement.PayoutMethodResource; + export type PayoutMethodsBankAccountSpec = Stripe_.V2.MoneyManagement.PayoutMethodsBankAccountSpec; + export type PayoutMethodsBankAccountSpecRetrieveParams = Stripe_.V2.MoneyManagement.PayoutMethodsBankAccountSpecRetrieveParams; + export type PayoutMethodsBankAccountSpecResource = Stripe_.V2.MoneyManagement.PayoutMethodsBankAccountSpecResource; + export type ReceivedCredit = Stripe_.V2.MoneyManagement.ReceivedCredit; + export type ReceivedCreditRetrieveParams = Stripe_.V2.MoneyManagement.ReceivedCreditRetrieveParams; + export type ReceivedCreditListParams = Stripe_.V2.MoneyManagement.ReceivedCreditListParams; + export type ReceivedCreditResource = Stripe_.V2.MoneyManagement.ReceivedCreditResource; + export type ReceivedDebit = Stripe_.V2.MoneyManagement.ReceivedDebit; + export type ReceivedDebitRetrieveParams = Stripe_.V2.MoneyManagement.ReceivedDebitRetrieveParams; + export type ReceivedDebitListParams = Stripe_.V2.MoneyManagement.ReceivedDebitListParams; + export type ReceivedDebitResource = Stripe_.V2.MoneyManagement.ReceivedDebitResource; + export type Transaction = Stripe_.V2.MoneyManagement.Transaction; + export type TransactionRetrieveParams = Stripe_.V2.MoneyManagement.TransactionRetrieveParams; + export type TransactionListParams = Stripe_.V2.MoneyManagement.TransactionListParams; + export type TransactionResource = Stripe_.V2.MoneyManagement.TransactionResource; + export type TransactionEntry = Stripe_.V2.MoneyManagement.TransactionEntry; + export type TransactionEntryRetrieveParams = Stripe_.V2.MoneyManagement.TransactionEntryRetrieveParams; + export type TransactionEntryListParams = Stripe_.V2.MoneyManagement.TransactionEntryListParams; + export type TransactionEntryResource = Stripe_.V2.MoneyManagement.TransactionEntryResource; + export namespace Adjustment { + export type AdjustedFlow = Stripe_.V2.MoneyManagement.Adjustment.AdjustedFlow; + export namespace AdjustedFlow { + export type Type = Stripe_.V2.MoneyManagement.Adjustment.AdjustedFlow.Type; + } } - export namespace FinancialAccountListParams { - export type Status = Stripe.V2.MoneyManagement.FinancialAccountListParams.Status; + export namespace FinancialAccountCreateParams { + export type Storage = Stripe_.V2.MoneyManagement.FinancialAccountCreateParams.Storage; } - export namespace FinancialAccountCloseParams { - export type ForwardingSettings = Stripe.V2.MoneyManagement.FinancialAccountCloseParams.ForwardingSettings; + export namespace FinancialAccount { + export type Balance = Stripe_.V2.MoneyManagement.FinancialAccount.Balance; + export type Other = Stripe_.V2.MoneyManagement.FinancialAccount.Other; + export type Status = Stripe_.V2.MoneyManagement.FinancialAccount.Status; + export type StatusDetails = Stripe_.V2.MoneyManagement.FinancialAccount.StatusDetails; + export type Storage = Stripe_.V2.MoneyManagement.FinancialAccount.Storage; + export type Type = Stripe_.V2.MoneyManagement.FinancialAccount.Type; + export namespace StatusDetails { + export type Closed = Stripe_.V2.MoneyManagement.FinancialAccount.StatusDetails.Closed; + export namespace Closed { + export type ForwardingSettings = Stripe_.V2.MoneyManagement.FinancialAccount.StatusDetails.Closed.ForwardingSettings; + export type Reason = Stripe_.V2.MoneyManagement.FinancialAccount.StatusDetails.Closed.Reason; + } + } } export namespace FinancialAddressCreateParams { - export type Type = Stripe.V2.MoneyManagement.FinancialAddressCreateParams.Type; - } - export namespace FinancialAddressRetrieveParams { - export type Include = Stripe.V2.MoneyManagement.FinancialAddressRetrieveParams.Include; + export type Type = Stripe_.V2.MoneyManagement.FinancialAddressCreateParams.Type; } - export namespace FinancialAddressListParams { - export type Include = Stripe.V2.MoneyManagement.FinancialAddressListParams.Include; + export namespace FinancialAddress { + export type Credentials = Stripe_.V2.MoneyManagement.FinancialAddress.Credentials; + export type Status = Stripe_.V2.MoneyManagement.FinancialAddress.Status; + export namespace Credentials { + export type GbBankAccount = Stripe_.V2.MoneyManagement.FinancialAddress.Credentials.GbBankAccount; + export type SepaBankAccount = Stripe_.V2.MoneyManagement.FinancialAddress.Credentials.SepaBankAccount; + export type Type = Stripe_.V2.MoneyManagement.FinancialAddress.Credentials.Type; + export type UsBankAccount = Stripe_.V2.MoneyManagement.FinancialAddress.Credentials.UsBankAccount; + } } export namespace InboundTransferCreateParams { - export type From = Stripe.V2.MoneyManagement.InboundTransferCreateParams.From; - export type To = Stripe.V2.MoneyManagement.InboundTransferCreateParams.To; + export type From = Stripe_.V2.MoneyManagement.InboundTransferCreateParams.From; + export type To = Stripe_.V2.MoneyManagement.InboundTransferCreateParams.To; + } + export namespace InboundTransfer { + export type From = Stripe_.V2.MoneyManagement.InboundTransfer.From; + export type To = Stripe_.V2.MoneyManagement.InboundTransfer.To; + export type TransferHistory = Stripe_.V2.MoneyManagement.InboundTransfer.TransferHistory; + export namespace From { + export type PaymentMethod = Stripe_.V2.MoneyManagement.InboundTransfer.From.PaymentMethod; + } + export namespace TransferHistory { + export type BankDebitFailed = Stripe_.V2.MoneyManagement.InboundTransfer.TransferHistory.BankDebitFailed; + export type BankDebitProcessing = Stripe_.V2.MoneyManagement.InboundTransfer.TransferHistory.BankDebitProcessing; + export type BankDebitQueued = Stripe_.V2.MoneyManagement.InboundTransfer.TransferHistory.BankDebitQueued; + export type BankDebitReturned = Stripe_.V2.MoneyManagement.InboundTransfer.TransferHistory.BankDebitReturned; + export type BankDebitSucceeded = Stripe_.V2.MoneyManagement.InboundTransfer.TransferHistory.BankDebitSucceeded; + export type Level = Stripe_.V2.MoneyManagement.InboundTransfer.TransferHistory.Level; + export type Type = Stripe_.V2.MoneyManagement.InboundTransfer.TransferHistory.Type; + export namespace BankDebitFailed { + export type FailureReason = Stripe_.V2.MoneyManagement.InboundTransfer.TransferHistory.BankDebitFailed.FailureReason; + } + export namespace BankDebitReturned { + export type ReturnReason = Stripe_.V2.MoneyManagement.InboundTransfer.TransferHistory.BankDebitReturned.ReturnReason; + } + } } export namespace OutboundPaymentCreateParams { - export type From = Stripe.V2.MoneyManagement.OutboundPaymentCreateParams.From; - export type To = Stripe.V2.MoneyManagement.OutboundPaymentCreateParams.To; - export type DeliveryOptions = Stripe.V2.MoneyManagement.OutboundPaymentCreateParams.DeliveryOptions; - export type RecipientNotification = Stripe.V2.MoneyManagement.OutboundPaymentCreateParams.RecipientNotification; + export type From = Stripe_.V2.MoneyManagement.OutboundPaymentCreateParams.From; + export type To = Stripe_.V2.MoneyManagement.OutboundPaymentCreateParams.To; + export type DeliveryOptions = Stripe_.V2.MoneyManagement.OutboundPaymentCreateParams.DeliveryOptions; + export type RecipientNotification = Stripe_.V2.MoneyManagement.OutboundPaymentCreateParams.RecipientNotification; + export namespace DeliveryOptions { + export type BankAccount = Stripe_.V2.MoneyManagement.OutboundPaymentCreateParams.DeliveryOptions.BankAccount; + } + export namespace RecipientNotification { + export type Setting = Stripe_.V2.MoneyManagement.OutboundPaymentCreateParams.RecipientNotification.Setting; + } } - export namespace OutboundPaymentListParams { - export type Status = Stripe.V2.MoneyManagement.OutboundPaymentListParams.Status; + export namespace OutboundPayment { + export type DeliveryOptions = Stripe_.V2.MoneyManagement.OutboundPayment.DeliveryOptions; + export type From = Stripe_.V2.MoneyManagement.OutboundPayment.From; + export type RecipientNotification = Stripe_.V2.MoneyManagement.OutboundPayment.RecipientNotification; + export type Status = Stripe_.V2.MoneyManagement.OutboundPayment.Status; + export type StatusDetails = Stripe_.V2.MoneyManagement.OutboundPayment.StatusDetails; + export type StatusTransitions = Stripe_.V2.MoneyManagement.OutboundPayment.StatusTransitions; + export type To = Stripe_.V2.MoneyManagement.OutboundPayment.To; + export type TraceId = Stripe_.V2.MoneyManagement.OutboundPayment.TraceId; + export namespace DeliveryOptions { + export type BankAccount = Stripe_.V2.MoneyManagement.OutboundPayment.DeliveryOptions.BankAccount; + } + export namespace RecipientNotification { + export type Setting = Stripe_.V2.MoneyManagement.OutboundPayment.RecipientNotification.Setting; + } + export namespace StatusDetails { + export type Failed = Stripe_.V2.MoneyManagement.OutboundPayment.StatusDetails.Failed; + export type Returned = Stripe_.V2.MoneyManagement.OutboundPayment.StatusDetails.Returned; + export namespace Failed { + export type Reason = Stripe_.V2.MoneyManagement.OutboundPayment.StatusDetails.Failed.Reason; + } + export namespace Returned { + export type Reason = Stripe_.V2.MoneyManagement.OutboundPayment.StatusDetails.Returned.Reason; + } + } + export namespace TraceId { + export type Status = Stripe_.V2.MoneyManagement.OutboundPayment.TraceId.Status; + } } export namespace OutboundPaymentQuoteCreateParams { - export type From = Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateParams.From; - export type To = Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateParams.To; - export type DeliveryOptions = Stripe.V2.MoneyManagement.OutboundPaymentQuoteCreateParams.DeliveryOptions; + export type From = Stripe_.V2.MoneyManagement.OutboundPaymentQuoteCreateParams.From; + export type To = Stripe_.V2.MoneyManagement.OutboundPaymentQuoteCreateParams.To; + export type DeliveryOptions = Stripe_.V2.MoneyManagement.OutboundPaymentQuoteCreateParams.DeliveryOptions; + export namespace DeliveryOptions { + export type BankAccount = Stripe_.V2.MoneyManagement.OutboundPaymentQuoteCreateParams.DeliveryOptions.BankAccount; + } + } + export namespace OutboundPaymentQuote { + export type DeliveryOptions = Stripe_.V2.MoneyManagement.OutboundPaymentQuote.DeliveryOptions; + export type EstimatedFee = Stripe_.V2.MoneyManagement.OutboundPaymentQuote.EstimatedFee; + export type From = Stripe_.V2.MoneyManagement.OutboundPaymentQuote.From; + export type FxQuote = Stripe_.V2.MoneyManagement.OutboundPaymentQuote.FxQuote; + export type To = Stripe_.V2.MoneyManagement.OutboundPaymentQuote.To; + export namespace DeliveryOptions { + export type BankAccount = Stripe_.V2.MoneyManagement.OutboundPaymentQuote.DeliveryOptions.BankAccount; + } + export namespace EstimatedFee { + export type Type = Stripe_.V2.MoneyManagement.OutboundPaymentQuote.EstimatedFee.Type; + } + export namespace FxQuote { + export type LockDuration = Stripe_.V2.MoneyManagement.OutboundPaymentQuote.FxQuote.LockDuration; + export type LockStatus = Stripe_.V2.MoneyManagement.OutboundPaymentQuote.FxQuote.LockStatus; + export type Rates = Stripe_.V2.MoneyManagement.OutboundPaymentQuote.FxQuote.Rates; + } } export namespace OutboundSetupIntentCreateParams { - export type PayoutMethodData = Stripe.V2.MoneyManagement.OutboundSetupIntentCreateParams.PayoutMethodData; - export type UsageIntent = Stripe.V2.MoneyManagement.OutboundSetupIntentCreateParams.UsageIntent; + export type PayoutMethodData = Stripe_.V2.MoneyManagement.OutboundSetupIntentCreateParams.PayoutMethodData; + export type UsageIntent = Stripe_.V2.MoneyManagement.OutboundSetupIntentCreateParams.UsageIntent; + export namespace PayoutMethodData { + export type BankAccount = Stripe_.V2.MoneyManagement.OutboundSetupIntentCreateParams.PayoutMethodData.BankAccount; + export type Card = Stripe_.V2.MoneyManagement.OutboundSetupIntentCreateParams.PayoutMethodData.Card; + export type Type = Stripe_.V2.MoneyManagement.OutboundSetupIntentCreateParams.PayoutMethodData.Type; + export namespace BankAccount { + export type BankAccountType = Stripe_.V2.MoneyManagement.OutboundSetupIntentCreateParams.PayoutMethodData.BankAccount.BankAccountType; + } + } } - export namespace OutboundSetupIntentUpdateParams { - export type PayoutMethodData = Stripe.V2.MoneyManagement.OutboundSetupIntentUpdateParams.PayoutMethodData; + export namespace OutboundSetupIntent { + export type NextAction = Stripe_.V2.MoneyManagement.OutboundSetupIntent.NextAction; + export type Status = Stripe_.V2.MoneyManagement.OutboundSetupIntent.Status; + export type UsageIntent = Stripe_.V2.MoneyManagement.OutboundSetupIntent.UsageIntent; + export namespace NextAction { + export type ConfirmationOfPayee = Stripe_.V2.MoneyManagement.OutboundSetupIntent.NextAction.ConfirmationOfPayee; + export namespace ConfirmationOfPayee { + export type Status = Stripe_.V2.MoneyManagement.OutboundSetupIntent.NextAction.ConfirmationOfPayee.Status; + } + } } export namespace OutboundTransferCreateParams { - export type From = Stripe.V2.MoneyManagement.OutboundTransferCreateParams.From; - export type To = Stripe.V2.MoneyManagement.OutboundTransferCreateParams.To; - export type DeliveryOptions = Stripe.V2.MoneyManagement.OutboundTransferCreateParams.DeliveryOptions; + export type From = Stripe_.V2.MoneyManagement.OutboundTransferCreateParams.From; + export type To = Stripe_.V2.MoneyManagement.OutboundTransferCreateParams.To; + export type DeliveryOptions = Stripe_.V2.MoneyManagement.OutboundTransferCreateParams.DeliveryOptions; + export namespace DeliveryOptions { + export type BankAccount = Stripe_.V2.MoneyManagement.OutboundTransferCreateParams.DeliveryOptions.BankAccount; + } + } + export namespace OutboundTransfer { + export type DeliveryOptions = Stripe_.V2.MoneyManagement.OutboundTransfer.DeliveryOptions; + export type From = Stripe_.V2.MoneyManagement.OutboundTransfer.From; + export type Status = Stripe_.V2.MoneyManagement.OutboundTransfer.Status; + export type StatusDetails = Stripe_.V2.MoneyManagement.OutboundTransfer.StatusDetails; + export type StatusTransitions = Stripe_.V2.MoneyManagement.OutboundTransfer.StatusTransitions; + export type To = Stripe_.V2.MoneyManagement.OutboundTransfer.To; + export type TraceId = Stripe_.V2.MoneyManagement.OutboundTransfer.TraceId; + export namespace DeliveryOptions { + export type BankAccount = Stripe_.V2.MoneyManagement.OutboundTransfer.DeliveryOptions.BankAccount; + } + export namespace StatusDetails { + export type Failed = Stripe_.V2.MoneyManagement.OutboundTransfer.StatusDetails.Failed; + export type Returned = Stripe_.V2.MoneyManagement.OutboundTransfer.StatusDetails.Returned; + export namespace Failed { + export type Reason = Stripe_.V2.MoneyManagement.OutboundTransfer.StatusDetails.Failed.Reason; + } + export namespace Returned { + export type Reason = Stripe_.V2.MoneyManagement.OutboundTransfer.StatusDetails.Returned.Reason; + } + } + export namespace TraceId { + export type Status = Stripe_.V2.MoneyManagement.OutboundTransfer.TraceId.Status; + } + } + export namespace PayoutMethod { + export type AlternativeReference = Stripe_.V2.MoneyManagement.PayoutMethod.AlternativeReference; + export type AvailablePayoutSpeed = Stripe_.V2.MoneyManagement.PayoutMethod.AvailablePayoutSpeed; + export type BankAccount = Stripe_.V2.MoneyManagement.PayoutMethod.BankAccount; + export type Card = Stripe_.V2.MoneyManagement.PayoutMethod.Card; + export type Type = Stripe_.V2.MoneyManagement.PayoutMethod.Type; + export type UsageStatus = Stripe_.V2.MoneyManagement.PayoutMethod.UsageStatus; + export namespace AlternativeReference { + export type Type = Stripe_.V2.MoneyManagement.PayoutMethod.AlternativeReference.Type; + } + export namespace BankAccount { + export type BankAccountType = Stripe_.V2.MoneyManagement.PayoutMethod.BankAccount.BankAccountType; + } + export namespace UsageStatus { + export type Payments = Stripe_.V2.MoneyManagement.PayoutMethod.UsageStatus.Payments; + export type Transfers = Stripe_.V2.MoneyManagement.PayoutMethod.UsageStatus.Transfers; + } + } + export namespace PayoutMethodsBankAccountSpec { + export type Countries = Stripe_.V2.MoneyManagement.PayoutMethodsBankAccountSpec.Countries; + export namespace Countries { + export type Field = Stripe_.V2.MoneyManagement.PayoutMethodsBankAccountSpec.Countries.Field; + export namespace Field { + export type LocalNameHuman = Stripe_.V2.MoneyManagement.PayoutMethodsBankAccountSpec.Countries.Field.LocalNameHuman; + } + } } - export namespace OutboundTransferListParams { - export type Status = Stripe.V2.MoneyManagement.OutboundTransferListParams.Status; + export namespace ReceivedCredit { + export type BalanceTransfer = Stripe_.V2.MoneyManagement.ReceivedCredit.BalanceTransfer; + export type BankTransfer = Stripe_.V2.MoneyManagement.ReceivedCredit.BankTransfer; + export type Status = Stripe_.V2.MoneyManagement.ReceivedCredit.Status; + export type StatusDetails = Stripe_.V2.MoneyManagement.ReceivedCredit.StatusDetails; + export type StatusTransitions = Stripe_.V2.MoneyManagement.ReceivedCredit.StatusTransitions; + export type Type = Stripe_.V2.MoneyManagement.ReceivedCredit.Type; + export namespace BalanceTransfer { + export type Type = Stripe_.V2.MoneyManagement.ReceivedCredit.BalanceTransfer.Type; + } + export namespace BankTransfer { + export type GbBankAccount = Stripe_.V2.MoneyManagement.ReceivedCredit.BankTransfer.GbBankAccount; + export type OriginType = Stripe_.V2.MoneyManagement.ReceivedCredit.BankTransfer.OriginType; + export type SepaBankAccount = Stripe_.V2.MoneyManagement.ReceivedCredit.BankTransfer.SepaBankAccount; + export type UsBankAccount = Stripe_.V2.MoneyManagement.ReceivedCredit.BankTransfer.UsBankAccount; + export namespace GbBankAccount { + export type Network = Stripe_.V2.MoneyManagement.ReceivedCredit.BankTransfer.GbBankAccount.Network; + } + export namespace UsBankAccount { + export type Network = Stripe_.V2.MoneyManagement.ReceivedCredit.BankTransfer.UsBankAccount.Network; + } + } + export namespace StatusDetails { + export type Failed = Stripe_.V2.MoneyManagement.ReceivedCredit.StatusDetails.Failed; + export type Returned = Stripe_.V2.MoneyManagement.ReceivedCredit.StatusDetails.Returned; + export namespace Failed { + export type Reason = Stripe_.V2.MoneyManagement.ReceivedCredit.StatusDetails.Failed.Reason; + } + } + } + export namespace ReceivedDebit { + export type BankTransfer = Stripe_.V2.MoneyManagement.ReceivedDebit.BankTransfer; + export type Status = Stripe_.V2.MoneyManagement.ReceivedDebit.Status; + export type StatusDetails = Stripe_.V2.MoneyManagement.ReceivedDebit.StatusDetails; + export type StatusTransitions = Stripe_.V2.MoneyManagement.ReceivedDebit.StatusTransitions; + export type Type = Stripe_.V2.MoneyManagement.ReceivedDebit.Type; + export namespace BankTransfer { + export type UsBankAccount = Stripe_.V2.MoneyManagement.ReceivedDebit.BankTransfer.UsBankAccount; + } + export namespace StatusDetails { + export type Failed = Stripe_.V2.MoneyManagement.ReceivedDebit.StatusDetails.Failed; + export namespace Failed { + export type Reason = Stripe_.V2.MoneyManagement.ReceivedDebit.StatusDetails.Failed.Reason; + } + } + } + export namespace Transaction { + export type BalanceImpact = Stripe_.V2.MoneyManagement.Transaction.BalanceImpact; + export type Category = Stripe_.V2.MoneyManagement.Transaction.Category; + export type Counterparty = Stripe_.V2.MoneyManagement.Transaction.Counterparty; + export type Flow = Stripe_.V2.MoneyManagement.Transaction.Flow; + export type Status = Stripe_.V2.MoneyManagement.Transaction.Status; + export type StatusTransitions = Stripe_.V2.MoneyManagement.Transaction.StatusTransitions; + export namespace Flow { + export type Type = Stripe_.V2.MoneyManagement.Transaction.Flow.Type; + } } - export namespace PayoutMethodListParams { - export type UsageStatus = Stripe.V2.MoneyManagement.PayoutMethodListParams.UsageStatus; + export namespace TransactionEntry { + export type BalanceImpact = Stripe_.V2.MoneyManagement.TransactionEntry.BalanceImpact; + export type TransactionDetails = Stripe_.V2.MoneyManagement.TransactionEntry.TransactionDetails; + export namespace TransactionDetails { + export type Category = Stripe_.V2.MoneyManagement.TransactionEntry.TransactionDetails.Category; + export type Flow = Stripe_.V2.MoneyManagement.TransactionEntry.TransactionDetails.Flow; + export namespace Flow { + export type Type = Stripe_.V2.MoneyManagement.TransactionEntry.TransactionDetails.Flow.Type; + } + } } } export namespace Network { - export type BusinessProfile = Stripe.V2.Network.BusinessProfile; - export type BusinessProfileRetrieveParams = Stripe.V2.Network.BusinessProfileRetrieveParams; - export type BusinessProfileMeParams = Stripe.V2.Network.BusinessProfileMeParams; - export type BusinessProfileResource = Stripe.V2.Network.BusinessProfileResource; + export type BusinessProfile = Stripe_.V2.Network.BusinessProfile; + export type BusinessProfileRetrieveParams = Stripe_.V2.Network.BusinessProfileRetrieveParams; + export type BusinessProfileMeParams = Stripe_.V2.Network.BusinessProfileMeParams; + export type BusinessProfileResource = Stripe_.V2.Network.BusinessProfileResource; + export namespace BusinessProfile { + export type Branding = Stripe_.V2.Network.BusinessProfile.Branding; + export namespace Branding { + export type Icon = Stripe_.V2.Network.BusinessProfile.Branding.Icon; + export type Logo = Stripe_.V2.Network.BusinessProfile.Branding.Logo; + } + } } export namespace OrchestratedCommerce { - export type Agreement = Stripe.V2.OrchestratedCommerce.Agreement; - export type AgreementCreateParams = Stripe.V2.OrchestratedCommerce.AgreementCreateParams; - export type AgreementRetrieveParams = Stripe.V2.OrchestratedCommerce.AgreementRetrieveParams; - export type AgreementListParams = Stripe.V2.OrchestratedCommerce.AgreementListParams; - export type AgreementConfirmParams = Stripe.V2.OrchestratedCommerce.AgreementConfirmParams; - export type AgreementTerminateParams = Stripe.V2.OrchestratedCommerce.AgreementTerminateParams; - export type AgreementResource = Stripe.V2.OrchestratedCommerce.AgreementResource; + export type Agreement = Stripe_.V2.OrchestratedCommerce.Agreement; + export type AgreementCreateParams = Stripe_.V2.OrchestratedCommerce.AgreementCreateParams; + export type AgreementRetrieveParams = Stripe_.V2.OrchestratedCommerce.AgreementRetrieveParams; + export type AgreementListParams = Stripe_.V2.OrchestratedCommerce.AgreementListParams; + export type AgreementConfirmParams = Stripe_.V2.OrchestratedCommerce.AgreementConfirmParams; + export type AgreementTerminateParams = Stripe_.V2.OrchestratedCommerce.AgreementTerminateParams; + export type AgreementResource = Stripe_.V2.OrchestratedCommerce.AgreementResource; + export namespace Agreement { + export type InitiatedBy = Stripe_.V2.OrchestratedCommerce.Agreement.InitiatedBy; + export type OrchestratorDetails = Stripe_.V2.OrchestratedCommerce.Agreement.OrchestratorDetails; + export type SellerDetails = Stripe_.V2.OrchestratedCommerce.Agreement.SellerDetails; + export type Status = Stripe_.V2.OrchestratedCommerce.Agreement.Status; + export type StatusTransitions = Stripe_.V2.OrchestratedCommerce.Agreement.StatusTransitions; + export type TerminatedBy = Stripe_.V2.OrchestratedCommerce.Agreement.TerminatedBy; + } } export namespace Commerce { - export type ProductCatalogImport = Stripe.V2.Commerce.ProductCatalogImport; + export type ProductCatalogImport = Stripe_.V2.Commerce.ProductCatalogImport; + export namespace ProductCatalogImport { + export type FeedType = Stripe_.V2.Commerce.ProductCatalogImport.FeedType; + export type Status = Stripe_.V2.Commerce.ProductCatalogImport.Status; + export type StatusDetails = Stripe_.V2.Commerce.ProductCatalogImport.StatusDetails; + export namespace StatusDetails { + export type AwaitingUpload = Stripe_.V2.Commerce.ProductCatalogImport.StatusDetails.AwaitingUpload; + export type Failed = Stripe_.V2.Commerce.ProductCatalogImport.StatusDetails.Failed; + export type Processing = Stripe_.V2.Commerce.ProductCatalogImport.StatusDetails.Processing; + export type Succeeded = Stripe_.V2.Commerce.ProductCatalogImport.StatusDetails.Succeeded; + export type SucceededWithErrors = Stripe_.V2.Commerce.ProductCatalogImport.StatusDetails.SucceededWithErrors; + export namespace AwaitingUpload { + export type UploadUrl = Stripe_.V2.Commerce.ProductCatalogImport.StatusDetails.AwaitingUpload.UploadUrl; + } + export namespace Failed { + export type Code = Stripe_.V2.Commerce.ProductCatalogImport.StatusDetails.Failed.Code; + export type Type = Stripe_.V2.Commerce.ProductCatalogImport.StatusDetails.Failed.Type; + } + export namespace SucceededWithErrors { + export type ErrorFile = Stripe_.V2.Commerce.ProductCatalogImport.StatusDetails.SucceededWithErrors.ErrorFile; + export type Sample = Stripe_.V2.Commerce.ProductCatalogImport.StatusDetails.SucceededWithErrors.Sample; + export namespace ErrorFile { + export type DownloadUrl = Stripe_.V2.Commerce.ProductCatalogImport.StatusDetails.SucceededWithErrors.ErrorFile.DownloadUrl; + } + } + } + } } } export namespace Events { - export type UnknownEventNotification = Stripe.V2.Core.Events.UnknownEventNotification; - export type V1BillingMeterErrorReportTriggeredEvent = Stripe.V2.Core.Events.V1BillingMeterErrorReportTriggeredEvent; - export type V1BillingMeterErrorReportTriggeredEventNotification = Stripe.V2.Core.Events.V1BillingMeterErrorReportTriggeredEventNotification; - export type V1BillingMeterNoMeterFoundEvent = Stripe.V2.Core.Events.V1BillingMeterNoMeterFoundEvent; - export type V1BillingMeterNoMeterFoundEventNotification = Stripe.V2.Core.Events.V1BillingMeterNoMeterFoundEventNotification; - export type V2CommerceProductCatalogImportsFailedEvent = Stripe.V2.Core.Events.V2CommerceProductCatalogImportsFailedEvent; - export type V2CommerceProductCatalogImportsFailedEventNotification = Stripe.V2.Core.Events.V2CommerceProductCatalogImportsFailedEventNotification; - export type V2CommerceProductCatalogImportsProcessingEvent = Stripe.V2.Core.Events.V2CommerceProductCatalogImportsProcessingEvent; - export type V2CommerceProductCatalogImportsProcessingEventNotification = Stripe.V2.Core.Events.V2CommerceProductCatalogImportsProcessingEventNotification; - export type V2CommerceProductCatalogImportsSucceededEvent = Stripe.V2.Core.Events.V2CommerceProductCatalogImportsSucceededEvent; - export type V2CommerceProductCatalogImportsSucceededEventNotification = Stripe.V2.Core.Events.V2CommerceProductCatalogImportsSucceededEventNotification; - export type V2CommerceProductCatalogImportsSucceededWithErrorsEvent = Stripe.V2.Core.Events.V2CommerceProductCatalogImportsSucceededWithErrorsEvent; - export type V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification = Stripe.V2.Core.Events.V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification; - export type V2CoreAccountClosedEvent = Stripe.V2.Core.Events.V2CoreAccountClosedEvent; - export type V2CoreAccountClosedEventNotification = Stripe.V2.Core.Events.V2CoreAccountClosedEventNotification; - export type V2CoreAccountCreatedEvent = Stripe.V2.Core.Events.V2CoreAccountCreatedEvent; - export type V2CoreAccountCreatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountCreatedEventNotification; - export type V2CoreAccountUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountUpdatedEvent; - export type V2CoreAccountUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountUpdatedEventNotification; - export type V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent; - export type V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification; - export type V2CoreAccountIncludingConfigurationCustomerUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationCustomerUpdatedEvent; - export type V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification; - export type V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent; - export type V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification; - export type V2CoreAccountIncludingConfigurationMerchantUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationMerchantUpdatedEvent; - export type V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification; - export type V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent; - export type V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification; - export type V2CoreAccountIncludingConfigurationRecipientUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEvent; - export type V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification; - export type V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent; - export type V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification; - export type V2CoreAccountIncludingConfigurationStorerUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationStorerUpdatedEvent; - export type V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification; - export type V2CoreAccountIncludingDefaultsUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountIncludingDefaultsUpdatedEvent; - export type V2CoreAccountIncludingDefaultsUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountIncludingDefaultsUpdatedEventNotification; - export type V2CoreAccountIncludingFutureRequirementsUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountIncludingFutureRequirementsUpdatedEvent; - export type V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification; - export type V2CoreAccountIncludingIdentityUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountIncludingIdentityUpdatedEvent; - export type V2CoreAccountIncludingIdentityUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountIncludingIdentityUpdatedEventNotification; - export type V2CoreAccountIncludingRequirementsUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountIncludingRequirementsUpdatedEvent; - export type V2CoreAccountIncludingRequirementsUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountIncludingRequirementsUpdatedEventNotification; - export type V2CoreAccountLinkReturnedEvent = Stripe.V2.Core.Events.V2CoreAccountLinkReturnedEvent; - export type V2CoreAccountLinkReturnedEventNotification = Stripe.V2.Core.Events.V2CoreAccountLinkReturnedEventNotification; - export type V2CoreAccountPersonCreatedEvent = Stripe.V2.Core.Events.V2CoreAccountPersonCreatedEvent; - export type V2CoreAccountPersonCreatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountPersonCreatedEventNotification; - export type V2CoreAccountPersonDeletedEvent = Stripe.V2.Core.Events.V2CoreAccountPersonDeletedEvent; - export type V2CoreAccountPersonDeletedEventNotification = Stripe.V2.Core.Events.V2CoreAccountPersonDeletedEventNotification; - export type V2CoreAccountPersonUpdatedEvent = Stripe.V2.Core.Events.V2CoreAccountPersonUpdatedEvent; - export type V2CoreAccountPersonUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreAccountPersonUpdatedEventNotification; - export type V2CoreBatchJobBatchFailedEvent = Stripe.V2.Core.Events.V2CoreBatchJobBatchFailedEvent; - export type V2CoreBatchJobBatchFailedEventNotification = Stripe.V2.Core.Events.V2CoreBatchJobBatchFailedEventNotification; - export type V2CoreBatchJobCanceledEvent = Stripe.V2.Core.Events.V2CoreBatchJobCanceledEvent; - export type V2CoreBatchJobCanceledEventNotification = Stripe.V2.Core.Events.V2CoreBatchJobCanceledEventNotification; - export type V2CoreBatchJobCompletedEvent = Stripe.V2.Core.Events.V2CoreBatchJobCompletedEvent; - export type V2CoreBatchJobCompletedEventNotification = Stripe.V2.Core.Events.V2CoreBatchJobCompletedEventNotification; - export type V2CoreBatchJobCreatedEvent = Stripe.V2.Core.Events.V2CoreBatchJobCreatedEvent; - export type V2CoreBatchJobCreatedEventNotification = Stripe.V2.Core.Events.V2CoreBatchJobCreatedEventNotification; - export type V2CoreBatchJobReadyForUploadEvent = Stripe.V2.Core.Events.V2CoreBatchJobReadyForUploadEvent; - export type V2CoreBatchJobReadyForUploadEventNotification = Stripe.V2.Core.Events.V2CoreBatchJobReadyForUploadEventNotification; - export type V2CoreBatchJobTimeoutEvent = Stripe.V2.Core.Events.V2CoreBatchJobTimeoutEvent; - export type V2CoreBatchJobTimeoutEventNotification = Stripe.V2.Core.Events.V2CoreBatchJobTimeoutEventNotification; - export type V2CoreBatchJobUpdatedEvent = Stripe.V2.Core.Events.V2CoreBatchJobUpdatedEvent; - export type V2CoreBatchJobUpdatedEventNotification = Stripe.V2.Core.Events.V2CoreBatchJobUpdatedEventNotification; - export type V2CoreBatchJobUploadTimeoutEvent = Stripe.V2.Core.Events.V2CoreBatchJobUploadTimeoutEvent; - export type V2CoreBatchJobUploadTimeoutEventNotification = Stripe.V2.Core.Events.V2CoreBatchJobUploadTimeoutEventNotification; - export type V2CoreBatchJobValidatingEvent = Stripe.V2.Core.Events.V2CoreBatchJobValidatingEvent; - export type V2CoreBatchJobValidatingEventNotification = Stripe.V2.Core.Events.V2CoreBatchJobValidatingEventNotification; - export type V2CoreBatchJobValidationFailedEvent = Stripe.V2.Core.Events.V2CoreBatchJobValidationFailedEvent; - export type V2CoreBatchJobValidationFailedEventNotification = Stripe.V2.Core.Events.V2CoreBatchJobValidationFailedEventNotification; - export type V2CoreEventDestinationPingEvent = Stripe.V2.Core.Events.V2CoreEventDestinationPingEvent; - export type V2CoreEventDestinationPingEventNotification = Stripe.V2.Core.Events.V2CoreEventDestinationPingEventNotification; - export type V2CoreHealthEventGenerationFailureResolvedEvent = Stripe.V2.Core.Events.V2CoreHealthEventGenerationFailureResolvedEvent; - export type V2CoreHealthEventGenerationFailureResolvedEventNotification = Stripe.V2.Core.Events.V2CoreHealthEventGenerationFailureResolvedEventNotification; - export type V2DataReportingQueryRunCreatedEvent = Stripe.V2.Core.Events.V2DataReportingQueryRunCreatedEvent; - export type V2DataReportingQueryRunCreatedEventNotification = Stripe.V2.Core.Events.V2DataReportingQueryRunCreatedEventNotification; - export type V2DataReportingQueryRunFailedEvent = Stripe.V2.Core.Events.V2DataReportingQueryRunFailedEvent; - export type V2DataReportingQueryRunFailedEventNotification = Stripe.V2.Core.Events.V2DataReportingQueryRunFailedEventNotification; - export type V2DataReportingQueryRunSucceededEvent = Stripe.V2.Core.Events.V2DataReportingQueryRunSucceededEvent; - export type V2DataReportingQueryRunSucceededEventNotification = Stripe.V2.Core.Events.V2DataReportingQueryRunSucceededEventNotification; - export type V2DataReportingQueryRunUpdatedEvent = Stripe.V2.Core.Events.V2DataReportingQueryRunUpdatedEvent; - export type V2DataReportingQueryRunUpdatedEventNotification = Stripe.V2.Core.Events.V2DataReportingQueryRunUpdatedEventNotification; - export type V2ExtendWorkflowRunFailedEvent = Stripe.V2.Core.Events.V2ExtendWorkflowRunFailedEvent; - export type V2ExtendWorkflowRunFailedEventNotification = Stripe.V2.Core.Events.V2ExtendWorkflowRunFailedEventNotification; - export type V2ExtendWorkflowRunStartedEvent = Stripe.V2.Core.Events.V2ExtendWorkflowRunStartedEvent; - export type V2ExtendWorkflowRunStartedEventNotification = Stripe.V2.Core.Events.V2ExtendWorkflowRunStartedEventNotification; - export type V2ExtendWorkflowRunSucceededEvent = Stripe.V2.Core.Events.V2ExtendWorkflowRunSucceededEvent; - export type V2ExtendWorkflowRunSucceededEventNotification = Stripe.V2.Core.Events.V2ExtendWorkflowRunSucceededEventNotification; - export type V2MoneyManagementAdjustmentCreatedEvent = Stripe.V2.Core.Events.V2MoneyManagementAdjustmentCreatedEvent; - export type V2MoneyManagementAdjustmentCreatedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementAdjustmentCreatedEventNotification; - export type V2MoneyManagementFinancialAccountCreatedEvent = Stripe.V2.Core.Events.V2MoneyManagementFinancialAccountCreatedEvent; - export type V2MoneyManagementFinancialAccountCreatedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementFinancialAccountCreatedEventNotification; - export type V2MoneyManagementFinancialAccountUpdatedEvent = Stripe.V2.Core.Events.V2MoneyManagementFinancialAccountUpdatedEvent; - export type V2MoneyManagementFinancialAccountUpdatedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementFinancialAccountUpdatedEventNotification; - export type V2MoneyManagementFinancialAddressActivatedEvent = Stripe.V2.Core.Events.V2MoneyManagementFinancialAddressActivatedEvent; - export type V2MoneyManagementFinancialAddressActivatedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementFinancialAddressActivatedEventNotification; - export type V2MoneyManagementFinancialAddressFailedEvent = Stripe.V2.Core.Events.V2MoneyManagementFinancialAddressFailedEvent; - export type V2MoneyManagementFinancialAddressFailedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementFinancialAddressFailedEventNotification; - export type V2MoneyManagementInboundTransferAvailableEvent = Stripe.V2.Core.Events.V2MoneyManagementInboundTransferAvailableEvent; - export type V2MoneyManagementInboundTransferAvailableEventNotification = Stripe.V2.Core.Events.V2MoneyManagementInboundTransferAvailableEventNotification; - export type V2MoneyManagementInboundTransferBankDebitFailedEvent = Stripe.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitFailedEvent; - export type V2MoneyManagementInboundTransferBankDebitFailedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitFailedEventNotification; - export type V2MoneyManagementInboundTransferBankDebitProcessingEvent = Stripe.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitProcessingEvent; - export type V2MoneyManagementInboundTransferBankDebitProcessingEventNotification = Stripe.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitProcessingEventNotification; - export type V2MoneyManagementInboundTransferBankDebitQueuedEvent = Stripe.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitQueuedEvent; - export type V2MoneyManagementInboundTransferBankDebitQueuedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitQueuedEventNotification; - export type V2MoneyManagementInboundTransferBankDebitReturnedEvent = Stripe.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitReturnedEvent; - export type V2MoneyManagementInboundTransferBankDebitReturnedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitReturnedEventNotification; - export type V2MoneyManagementInboundTransferBankDebitSucceededEvent = Stripe.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitSucceededEvent; - export type V2MoneyManagementInboundTransferBankDebitSucceededEventNotification = Stripe.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitSucceededEventNotification; - export type V2MoneyManagementOutboundPaymentCanceledEvent = Stripe.V2.Core.Events.V2MoneyManagementOutboundPaymentCanceledEvent; - export type V2MoneyManagementOutboundPaymentCanceledEventNotification = Stripe.V2.Core.Events.V2MoneyManagementOutboundPaymentCanceledEventNotification; - export type V2MoneyManagementOutboundPaymentCreatedEvent = Stripe.V2.Core.Events.V2MoneyManagementOutboundPaymentCreatedEvent; - export type V2MoneyManagementOutboundPaymentCreatedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementOutboundPaymentCreatedEventNotification; - export type V2MoneyManagementOutboundPaymentFailedEvent = Stripe.V2.Core.Events.V2MoneyManagementOutboundPaymentFailedEvent; - export type V2MoneyManagementOutboundPaymentFailedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementOutboundPaymentFailedEventNotification; - export type V2MoneyManagementOutboundPaymentPostedEvent = Stripe.V2.Core.Events.V2MoneyManagementOutboundPaymentPostedEvent; - export type V2MoneyManagementOutboundPaymentPostedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementOutboundPaymentPostedEventNotification; - export type V2MoneyManagementOutboundPaymentReturnedEvent = Stripe.V2.Core.Events.V2MoneyManagementOutboundPaymentReturnedEvent; - export type V2MoneyManagementOutboundPaymentReturnedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementOutboundPaymentReturnedEventNotification; - export type V2MoneyManagementOutboundPaymentUpdatedEvent = Stripe.V2.Core.Events.V2MoneyManagementOutboundPaymentUpdatedEvent; - export type V2MoneyManagementOutboundPaymentUpdatedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementOutboundPaymentUpdatedEventNotification; - export type V2MoneyManagementOutboundTransferCanceledEvent = Stripe.V2.Core.Events.V2MoneyManagementOutboundTransferCanceledEvent; - export type V2MoneyManagementOutboundTransferCanceledEventNotification = Stripe.V2.Core.Events.V2MoneyManagementOutboundTransferCanceledEventNotification; - export type V2MoneyManagementOutboundTransferCreatedEvent = Stripe.V2.Core.Events.V2MoneyManagementOutboundTransferCreatedEvent; - export type V2MoneyManagementOutboundTransferCreatedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementOutboundTransferCreatedEventNotification; - export type V2MoneyManagementOutboundTransferFailedEvent = Stripe.V2.Core.Events.V2MoneyManagementOutboundTransferFailedEvent; - export type V2MoneyManagementOutboundTransferFailedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementOutboundTransferFailedEventNotification; - export type V2MoneyManagementOutboundTransferPostedEvent = Stripe.V2.Core.Events.V2MoneyManagementOutboundTransferPostedEvent; - export type V2MoneyManagementOutboundTransferPostedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementOutboundTransferPostedEventNotification; - export type V2MoneyManagementOutboundTransferReturnedEvent = Stripe.V2.Core.Events.V2MoneyManagementOutboundTransferReturnedEvent; - export type V2MoneyManagementOutboundTransferReturnedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementOutboundTransferReturnedEventNotification; - export type V2MoneyManagementOutboundTransferUpdatedEvent = Stripe.V2.Core.Events.V2MoneyManagementOutboundTransferUpdatedEvent; - export type V2MoneyManagementOutboundTransferUpdatedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementOutboundTransferUpdatedEventNotification; - export type V2MoneyManagementPayoutMethodCreatedEvent = Stripe.V2.Core.Events.V2MoneyManagementPayoutMethodCreatedEvent; - export type V2MoneyManagementPayoutMethodCreatedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementPayoutMethodCreatedEventNotification; - export type V2MoneyManagementPayoutMethodUpdatedEvent = Stripe.V2.Core.Events.V2MoneyManagementPayoutMethodUpdatedEvent; - export type V2MoneyManagementPayoutMethodUpdatedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementPayoutMethodUpdatedEventNotification; - export type V2MoneyManagementReceivedCreditAvailableEvent = Stripe.V2.Core.Events.V2MoneyManagementReceivedCreditAvailableEvent; - export type V2MoneyManagementReceivedCreditAvailableEventNotification = Stripe.V2.Core.Events.V2MoneyManagementReceivedCreditAvailableEventNotification; - export type V2MoneyManagementReceivedCreditFailedEvent = Stripe.V2.Core.Events.V2MoneyManagementReceivedCreditFailedEvent; - export type V2MoneyManagementReceivedCreditFailedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementReceivedCreditFailedEventNotification; - export type V2MoneyManagementReceivedCreditReturnedEvent = Stripe.V2.Core.Events.V2MoneyManagementReceivedCreditReturnedEvent; - export type V2MoneyManagementReceivedCreditReturnedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementReceivedCreditReturnedEventNotification; - export type V2MoneyManagementReceivedCreditSucceededEvent = Stripe.V2.Core.Events.V2MoneyManagementReceivedCreditSucceededEvent; - export type V2MoneyManagementReceivedCreditSucceededEventNotification = Stripe.V2.Core.Events.V2MoneyManagementReceivedCreditSucceededEventNotification; - export type V2MoneyManagementReceivedDebitCanceledEvent = Stripe.V2.Core.Events.V2MoneyManagementReceivedDebitCanceledEvent; - export type V2MoneyManagementReceivedDebitCanceledEventNotification = Stripe.V2.Core.Events.V2MoneyManagementReceivedDebitCanceledEventNotification; - export type V2MoneyManagementReceivedDebitFailedEvent = Stripe.V2.Core.Events.V2MoneyManagementReceivedDebitFailedEvent; - export type V2MoneyManagementReceivedDebitFailedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementReceivedDebitFailedEventNotification; - export type V2MoneyManagementReceivedDebitPendingEvent = Stripe.V2.Core.Events.V2MoneyManagementReceivedDebitPendingEvent; - export type V2MoneyManagementReceivedDebitPendingEventNotification = Stripe.V2.Core.Events.V2MoneyManagementReceivedDebitPendingEventNotification; - export type V2MoneyManagementReceivedDebitSucceededEvent = Stripe.V2.Core.Events.V2MoneyManagementReceivedDebitSucceededEvent; - export type V2MoneyManagementReceivedDebitSucceededEventNotification = Stripe.V2.Core.Events.V2MoneyManagementReceivedDebitSucceededEventNotification; - export type V2MoneyManagementReceivedDebitUpdatedEvent = Stripe.V2.Core.Events.V2MoneyManagementReceivedDebitUpdatedEvent; - export type V2MoneyManagementReceivedDebitUpdatedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementReceivedDebitUpdatedEventNotification; - export type V2MoneyManagementTransactionCreatedEvent = Stripe.V2.Core.Events.V2MoneyManagementTransactionCreatedEvent; - export type V2MoneyManagementTransactionCreatedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementTransactionCreatedEventNotification; - export type V2MoneyManagementTransactionUpdatedEvent = Stripe.V2.Core.Events.V2MoneyManagementTransactionUpdatedEvent; - export type V2MoneyManagementTransactionUpdatedEventNotification = Stripe.V2.Core.Events.V2MoneyManagementTransactionUpdatedEventNotification; - export type V2OrchestratedCommerceAgreementConfirmedEvent = Stripe.V2.Core.Events.V2OrchestratedCommerceAgreementConfirmedEvent; - export type V2OrchestratedCommerceAgreementConfirmedEventNotification = Stripe.V2.Core.Events.V2OrchestratedCommerceAgreementConfirmedEventNotification; - export type V2OrchestratedCommerceAgreementCreatedEvent = Stripe.V2.Core.Events.V2OrchestratedCommerceAgreementCreatedEvent; - export type V2OrchestratedCommerceAgreementCreatedEventNotification = Stripe.V2.Core.Events.V2OrchestratedCommerceAgreementCreatedEventNotification; - export type V2OrchestratedCommerceAgreementPartiallyConfirmedEvent = Stripe.V2.Core.Events.V2OrchestratedCommerceAgreementPartiallyConfirmedEvent; - export type V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification = Stripe.V2.Core.Events.V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification; - export type V2OrchestratedCommerceAgreementTerminatedEvent = Stripe.V2.Core.Events.V2OrchestratedCommerceAgreementTerminatedEvent; - export type V2OrchestratedCommerceAgreementTerminatedEventNotification = Stripe.V2.Core.Events.V2OrchestratedCommerceAgreementTerminatedEventNotification; + export type UnknownEventNotification = Stripe_.V2.Core.Events.UnknownEventNotification; + export type V1BillingMeterErrorReportTriggeredEvent = Stripe_.V2.Core.Events.V1BillingMeterErrorReportTriggeredEvent; + export type V1BillingMeterErrorReportTriggeredEventNotification = Stripe_.V2.Core.Events.V1BillingMeterErrorReportTriggeredEventNotification; + export type V1BillingMeterNoMeterFoundEvent = Stripe_.V2.Core.Events.V1BillingMeterNoMeterFoundEvent; + export type V1BillingMeterNoMeterFoundEventNotification = Stripe_.V2.Core.Events.V1BillingMeterNoMeterFoundEventNotification; + export type V2CommerceProductCatalogImportsFailedEvent = Stripe_.V2.Core.Events.V2CommerceProductCatalogImportsFailedEvent; + export type V2CommerceProductCatalogImportsFailedEventNotification = Stripe_.V2.Core.Events.V2CommerceProductCatalogImportsFailedEventNotification; + export type V2CommerceProductCatalogImportsProcessingEvent = Stripe_.V2.Core.Events.V2CommerceProductCatalogImportsProcessingEvent; + export type V2CommerceProductCatalogImportsProcessingEventNotification = Stripe_.V2.Core.Events.V2CommerceProductCatalogImportsProcessingEventNotification; + export type V2CommerceProductCatalogImportsSucceededEvent = Stripe_.V2.Core.Events.V2CommerceProductCatalogImportsSucceededEvent; + export type V2CommerceProductCatalogImportsSucceededEventNotification = Stripe_.V2.Core.Events.V2CommerceProductCatalogImportsSucceededEventNotification; + export type V2CommerceProductCatalogImportsSucceededWithErrorsEvent = Stripe_.V2.Core.Events.V2CommerceProductCatalogImportsSucceededWithErrorsEvent; + export type V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification = Stripe_.V2.Core.Events.V2CommerceProductCatalogImportsSucceededWithErrorsEventNotification; + export type V2CoreAccountClosedEvent = Stripe_.V2.Core.Events.V2CoreAccountClosedEvent; + export type V2CoreAccountClosedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountClosedEventNotification; + export type V2CoreAccountCreatedEvent = Stripe_.V2.Core.Events.V2CoreAccountCreatedEvent; + export type V2CoreAccountCreatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountCreatedEventNotification; + export type V2CoreAccountUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountUpdatedEvent; + export type V2CoreAccountUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountUpdatedEventNotification; + export type V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent; + export type V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEventNotification; + export type V2CoreAccountIncludingConfigurationCustomerUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationCustomerUpdatedEvent; + export type V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationCustomerUpdatedEventNotification; + export type V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent; + export type V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEventNotification; + export type V2CoreAccountIncludingConfigurationMerchantUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationMerchantUpdatedEvent; + export type V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationMerchantUpdatedEventNotification; + export type V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent; + export type V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEventNotification; + export type V2CoreAccountIncludingConfigurationRecipientUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEvent; + export type V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationRecipientUpdatedEventNotification; + export type V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent; + export type V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEventNotification; + export type V2CoreAccountIncludingConfigurationStorerUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationStorerUpdatedEvent; + export type V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationStorerUpdatedEventNotification; + export type V2CoreAccountIncludingDefaultsUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountIncludingDefaultsUpdatedEvent; + export type V2CoreAccountIncludingDefaultsUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountIncludingDefaultsUpdatedEventNotification; + export type V2CoreAccountIncludingFutureRequirementsUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountIncludingFutureRequirementsUpdatedEvent; + export type V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountIncludingFutureRequirementsUpdatedEventNotification; + export type V2CoreAccountIncludingIdentityUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountIncludingIdentityUpdatedEvent; + export type V2CoreAccountIncludingIdentityUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountIncludingIdentityUpdatedEventNotification; + export type V2CoreAccountIncludingRequirementsUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountIncludingRequirementsUpdatedEvent; + export type V2CoreAccountIncludingRequirementsUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountIncludingRequirementsUpdatedEventNotification; + export type V2CoreAccountLinkReturnedEvent = Stripe_.V2.Core.Events.V2CoreAccountLinkReturnedEvent; + export type V2CoreAccountLinkReturnedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountLinkReturnedEventNotification; + export type V2CoreAccountPersonCreatedEvent = Stripe_.V2.Core.Events.V2CoreAccountPersonCreatedEvent; + export type V2CoreAccountPersonCreatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountPersonCreatedEventNotification; + export type V2CoreAccountPersonDeletedEvent = Stripe_.V2.Core.Events.V2CoreAccountPersonDeletedEvent; + export type V2CoreAccountPersonDeletedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountPersonDeletedEventNotification; + export type V2CoreAccountPersonUpdatedEvent = Stripe_.V2.Core.Events.V2CoreAccountPersonUpdatedEvent; + export type V2CoreAccountPersonUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreAccountPersonUpdatedEventNotification; + export type V2CoreBatchJobBatchFailedEvent = Stripe_.V2.Core.Events.V2CoreBatchJobBatchFailedEvent; + export type V2CoreBatchJobBatchFailedEventNotification = Stripe_.V2.Core.Events.V2CoreBatchJobBatchFailedEventNotification; + export type V2CoreBatchJobCanceledEvent = Stripe_.V2.Core.Events.V2CoreBatchJobCanceledEvent; + export type V2CoreBatchJobCanceledEventNotification = Stripe_.V2.Core.Events.V2CoreBatchJobCanceledEventNotification; + export type V2CoreBatchJobCompletedEvent = Stripe_.V2.Core.Events.V2CoreBatchJobCompletedEvent; + export type V2CoreBatchJobCompletedEventNotification = Stripe_.V2.Core.Events.V2CoreBatchJobCompletedEventNotification; + export type V2CoreBatchJobCreatedEvent = Stripe_.V2.Core.Events.V2CoreBatchJobCreatedEvent; + export type V2CoreBatchJobCreatedEventNotification = Stripe_.V2.Core.Events.V2CoreBatchJobCreatedEventNotification; + export type V2CoreBatchJobReadyForUploadEvent = Stripe_.V2.Core.Events.V2CoreBatchJobReadyForUploadEvent; + export type V2CoreBatchJobReadyForUploadEventNotification = Stripe_.V2.Core.Events.V2CoreBatchJobReadyForUploadEventNotification; + export type V2CoreBatchJobTimeoutEvent = Stripe_.V2.Core.Events.V2CoreBatchJobTimeoutEvent; + export type V2CoreBatchJobTimeoutEventNotification = Stripe_.V2.Core.Events.V2CoreBatchJobTimeoutEventNotification; + export type V2CoreBatchJobUpdatedEvent = Stripe_.V2.Core.Events.V2CoreBatchJobUpdatedEvent; + export type V2CoreBatchJobUpdatedEventNotification = Stripe_.V2.Core.Events.V2CoreBatchJobUpdatedEventNotification; + export type V2CoreBatchJobUploadTimeoutEvent = Stripe_.V2.Core.Events.V2CoreBatchJobUploadTimeoutEvent; + export type V2CoreBatchJobUploadTimeoutEventNotification = Stripe_.V2.Core.Events.V2CoreBatchJobUploadTimeoutEventNotification; + export type V2CoreBatchJobValidatingEvent = Stripe_.V2.Core.Events.V2CoreBatchJobValidatingEvent; + export type V2CoreBatchJobValidatingEventNotification = Stripe_.V2.Core.Events.V2CoreBatchJobValidatingEventNotification; + export type V2CoreBatchJobValidationFailedEvent = Stripe_.V2.Core.Events.V2CoreBatchJobValidationFailedEvent; + export type V2CoreBatchJobValidationFailedEventNotification = Stripe_.V2.Core.Events.V2CoreBatchJobValidationFailedEventNotification; + export type V2CoreEventDestinationPingEvent = Stripe_.V2.Core.Events.V2CoreEventDestinationPingEvent; + export type V2CoreEventDestinationPingEventNotification = Stripe_.V2.Core.Events.V2CoreEventDestinationPingEventNotification; + export type V2CoreHealthEventGenerationFailureResolvedEvent = Stripe_.V2.Core.Events.V2CoreHealthEventGenerationFailureResolvedEvent; + export type V2CoreHealthEventGenerationFailureResolvedEventNotification = Stripe_.V2.Core.Events.V2CoreHealthEventGenerationFailureResolvedEventNotification; + export type V2DataReportingQueryRunCreatedEvent = Stripe_.V2.Core.Events.V2DataReportingQueryRunCreatedEvent; + export type V2DataReportingQueryRunCreatedEventNotification = Stripe_.V2.Core.Events.V2DataReportingQueryRunCreatedEventNotification; + export type V2DataReportingQueryRunFailedEvent = Stripe_.V2.Core.Events.V2DataReportingQueryRunFailedEvent; + export type V2DataReportingQueryRunFailedEventNotification = Stripe_.V2.Core.Events.V2DataReportingQueryRunFailedEventNotification; + export type V2DataReportingQueryRunSucceededEvent = Stripe_.V2.Core.Events.V2DataReportingQueryRunSucceededEvent; + export type V2DataReportingQueryRunSucceededEventNotification = Stripe_.V2.Core.Events.V2DataReportingQueryRunSucceededEventNotification; + export type V2DataReportingQueryRunUpdatedEvent = Stripe_.V2.Core.Events.V2DataReportingQueryRunUpdatedEvent; + export type V2DataReportingQueryRunUpdatedEventNotification = Stripe_.V2.Core.Events.V2DataReportingQueryRunUpdatedEventNotification; + export type V2ExtendWorkflowRunFailedEvent = Stripe_.V2.Core.Events.V2ExtendWorkflowRunFailedEvent; + export type V2ExtendWorkflowRunFailedEventNotification = Stripe_.V2.Core.Events.V2ExtendWorkflowRunFailedEventNotification; + export type V2ExtendWorkflowRunStartedEvent = Stripe_.V2.Core.Events.V2ExtendWorkflowRunStartedEvent; + export type V2ExtendWorkflowRunStartedEventNotification = Stripe_.V2.Core.Events.V2ExtendWorkflowRunStartedEventNotification; + export type V2ExtendWorkflowRunSucceededEvent = Stripe_.V2.Core.Events.V2ExtendWorkflowRunSucceededEvent; + export type V2ExtendWorkflowRunSucceededEventNotification = Stripe_.V2.Core.Events.V2ExtendWorkflowRunSucceededEventNotification; + export type V2MoneyManagementAdjustmentCreatedEvent = Stripe_.V2.Core.Events.V2MoneyManagementAdjustmentCreatedEvent; + export type V2MoneyManagementAdjustmentCreatedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementAdjustmentCreatedEventNotification; + export type V2MoneyManagementFinancialAccountCreatedEvent = Stripe_.V2.Core.Events.V2MoneyManagementFinancialAccountCreatedEvent; + export type V2MoneyManagementFinancialAccountCreatedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementFinancialAccountCreatedEventNotification; + export type V2MoneyManagementFinancialAccountUpdatedEvent = Stripe_.V2.Core.Events.V2MoneyManagementFinancialAccountUpdatedEvent; + export type V2MoneyManagementFinancialAccountUpdatedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementFinancialAccountUpdatedEventNotification; + export type V2MoneyManagementFinancialAddressActivatedEvent = Stripe_.V2.Core.Events.V2MoneyManagementFinancialAddressActivatedEvent; + export type V2MoneyManagementFinancialAddressActivatedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementFinancialAddressActivatedEventNotification; + export type V2MoneyManagementFinancialAddressFailedEvent = Stripe_.V2.Core.Events.V2MoneyManagementFinancialAddressFailedEvent; + export type V2MoneyManagementFinancialAddressFailedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementFinancialAddressFailedEventNotification; + export type V2MoneyManagementInboundTransferAvailableEvent = Stripe_.V2.Core.Events.V2MoneyManagementInboundTransferAvailableEvent; + export type V2MoneyManagementInboundTransferAvailableEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementInboundTransferAvailableEventNotification; + export type V2MoneyManagementInboundTransferBankDebitFailedEvent = Stripe_.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitFailedEvent; + export type V2MoneyManagementInboundTransferBankDebitFailedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitFailedEventNotification; + export type V2MoneyManagementInboundTransferBankDebitProcessingEvent = Stripe_.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitProcessingEvent; + export type V2MoneyManagementInboundTransferBankDebitProcessingEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitProcessingEventNotification; + export type V2MoneyManagementInboundTransferBankDebitQueuedEvent = Stripe_.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitQueuedEvent; + export type V2MoneyManagementInboundTransferBankDebitQueuedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitQueuedEventNotification; + export type V2MoneyManagementInboundTransferBankDebitReturnedEvent = Stripe_.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitReturnedEvent; + export type V2MoneyManagementInboundTransferBankDebitReturnedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitReturnedEventNotification; + export type V2MoneyManagementInboundTransferBankDebitSucceededEvent = Stripe_.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitSucceededEvent; + export type V2MoneyManagementInboundTransferBankDebitSucceededEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementInboundTransferBankDebitSucceededEventNotification; + export type V2MoneyManagementOutboundPaymentCanceledEvent = Stripe_.V2.Core.Events.V2MoneyManagementOutboundPaymentCanceledEvent; + export type V2MoneyManagementOutboundPaymentCanceledEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementOutboundPaymentCanceledEventNotification; + export type V2MoneyManagementOutboundPaymentCreatedEvent = Stripe_.V2.Core.Events.V2MoneyManagementOutboundPaymentCreatedEvent; + export type V2MoneyManagementOutboundPaymentCreatedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementOutboundPaymentCreatedEventNotification; + export type V2MoneyManagementOutboundPaymentFailedEvent = Stripe_.V2.Core.Events.V2MoneyManagementOutboundPaymentFailedEvent; + export type V2MoneyManagementOutboundPaymentFailedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementOutboundPaymentFailedEventNotification; + export type V2MoneyManagementOutboundPaymentPostedEvent = Stripe_.V2.Core.Events.V2MoneyManagementOutboundPaymentPostedEvent; + export type V2MoneyManagementOutboundPaymentPostedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementOutboundPaymentPostedEventNotification; + export type V2MoneyManagementOutboundPaymentReturnedEvent = Stripe_.V2.Core.Events.V2MoneyManagementOutboundPaymentReturnedEvent; + export type V2MoneyManagementOutboundPaymentReturnedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementOutboundPaymentReturnedEventNotification; + export type V2MoneyManagementOutboundPaymentUpdatedEvent = Stripe_.V2.Core.Events.V2MoneyManagementOutboundPaymentUpdatedEvent; + export type V2MoneyManagementOutboundPaymentUpdatedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementOutboundPaymentUpdatedEventNotification; + export type V2MoneyManagementOutboundTransferCanceledEvent = Stripe_.V2.Core.Events.V2MoneyManagementOutboundTransferCanceledEvent; + export type V2MoneyManagementOutboundTransferCanceledEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementOutboundTransferCanceledEventNotification; + export type V2MoneyManagementOutboundTransferCreatedEvent = Stripe_.V2.Core.Events.V2MoneyManagementOutboundTransferCreatedEvent; + export type V2MoneyManagementOutboundTransferCreatedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementOutboundTransferCreatedEventNotification; + export type V2MoneyManagementOutboundTransferFailedEvent = Stripe_.V2.Core.Events.V2MoneyManagementOutboundTransferFailedEvent; + export type V2MoneyManagementOutboundTransferFailedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementOutboundTransferFailedEventNotification; + export type V2MoneyManagementOutboundTransferPostedEvent = Stripe_.V2.Core.Events.V2MoneyManagementOutboundTransferPostedEvent; + export type V2MoneyManagementOutboundTransferPostedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementOutboundTransferPostedEventNotification; + export type V2MoneyManagementOutboundTransferReturnedEvent = Stripe_.V2.Core.Events.V2MoneyManagementOutboundTransferReturnedEvent; + export type V2MoneyManagementOutboundTransferReturnedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementOutboundTransferReturnedEventNotification; + export type V2MoneyManagementOutboundTransferUpdatedEvent = Stripe_.V2.Core.Events.V2MoneyManagementOutboundTransferUpdatedEvent; + export type V2MoneyManagementOutboundTransferUpdatedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementOutboundTransferUpdatedEventNotification; + export type V2MoneyManagementPayoutMethodCreatedEvent = Stripe_.V2.Core.Events.V2MoneyManagementPayoutMethodCreatedEvent; + export type V2MoneyManagementPayoutMethodCreatedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementPayoutMethodCreatedEventNotification; + export type V2MoneyManagementPayoutMethodUpdatedEvent = Stripe_.V2.Core.Events.V2MoneyManagementPayoutMethodUpdatedEvent; + export type V2MoneyManagementPayoutMethodUpdatedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementPayoutMethodUpdatedEventNotification; + export type V2MoneyManagementReceivedCreditAvailableEvent = Stripe_.V2.Core.Events.V2MoneyManagementReceivedCreditAvailableEvent; + export type V2MoneyManagementReceivedCreditAvailableEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementReceivedCreditAvailableEventNotification; + export type V2MoneyManagementReceivedCreditFailedEvent = Stripe_.V2.Core.Events.V2MoneyManagementReceivedCreditFailedEvent; + export type V2MoneyManagementReceivedCreditFailedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementReceivedCreditFailedEventNotification; + export type V2MoneyManagementReceivedCreditReturnedEvent = Stripe_.V2.Core.Events.V2MoneyManagementReceivedCreditReturnedEvent; + export type V2MoneyManagementReceivedCreditReturnedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementReceivedCreditReturnedEventNotification; + export type V2MoneyManagementReceivedCreditSucceededEvent = Stripe_.V2.Core.Events.V2MoneyManagementReceivedCreditSucceededEvent; + export type V2MoneyManagementReceivedCreditSucceededEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementReceivedCreditSucceededEventNotification; + export type V2MoneyManagementReceivedDebitCanceledEvent = Stripe_.V2.Core.Events.V2MoneyManagementReceivedDebitCanceledEvent; + export type V2MoneyManagementReceivedDebitCanceledEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementReceivedDebitCanceledEventNotification; + export type V2MoneyManagementReceivedDebitFailedEvent = Stripe_.V2.Core.Events.V2MoneyManagementReceivedDebitFailedEvent; + export type V2MoneyManagementReceivedDebitFailedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementReceivedDebitFailedEventNotification; + export type V2MoneyManagementReceivedDebitPendingEvent = Stripe_.V2.Core.Events.V2MoneyManagementReceivedDebitPendingEvent; + export type V2MoneyManagementReceivedDebitPendingEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementReceivedDebitPendingEventNotification; + export type V2MoneyManagementReceivedDebitSucceededEvent = Stripe_.V2.Core.Events.V2MoneyManagementReceivedDebitSucceededEvent; + export type V2MoneyManagementReceivedDebitSucceededEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementReceivedDebitSucceededEventNotification; + export type V2MoneyManagementReceivedDebitUpdatedEvent = Stripe_.V2.Core.Events.V2MoneyManagementReceivedDebitUpdatedEvent; + export type V2MoneyManagementReceivedDebitUpdatedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementReceivedDebitUpdatedEventNotification; + export type V2MoneyManagementTransactionCreatedEvent = Stripe_.V2.Core.Events.V2MoneyManagementTransactionCreatedEvent; + export type V2MoneyManagementTransactionCreatedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementTransactionCreatedEventNotification; + export type V2MoneyManagementTransactionUpdatedEvent = Stripe_.V2.Core.Events.V2MoneyManagementTransactionUpdatedEvent; + export type V2MoneyManagementTransactionUpdatedEventNotification = Stripe_.V2.Core.Events.V2MoneyManagementTransactionUpdatedEventNotification; + export type V2OrchestratedCommerceAgreementConfirmedEvent = Stripe_.V2.Core.Events.V2OrchestratedCommerceAgreementConfirmedEvent; + export type V2OrchestratedCommerceAgreementConfirmedEventNotification = Stripe_.V2.Core.Events.V2OrchestratedCommerceAgreementConfirmedEventNotification; + export type V2OrchestratedCommerceAgreementCreatedEvent = Stripe_.V2.Core.Events.V2OrchestratedCommerceAgreementCreatedEvent; + export type V2OrchestratedCommerceAgreementCreatedEventNotification = Stripe_.V2.Core.Events.V2OrchestratedCommerceAgreementCreatedEventNotification; + export type V2OrchestratedCommerceAgreementPartiallyConfirmedEvent = Stripe_.V2.Core.Events.V2OrchestratedCommerceAgreementPartiallyConfirmedEvent; + export type V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification = Stripe_.V2.Core.Events.V2OrchestratedCommerceAgreementPartiallyConfirmedEventNotification; + export type V2OrchestratedCommerceAgreementTerminatedEvent = Stripe_.V2.Core.Events.V2OrchestratedCommerceAgreementTerminatedEvent; + export type V2OrchestratedCommerceAgreementTerminatedEventNotification = Stripe_.V2.Core.Events.V2OrchestratedCommerceAgreementTerminatedEventNotification; export namespace V1BillingMeterErrorReportTriggeredEvent { - export type Data = Stripe.V2.Core.Events.V1BillingMeterErrorReportTriggeredEvent.Data; + export type Data = Stripe_.V2.Core.Events.V1BillingMeterErrorReportTriggeredEvent.Data; } export namespace V1BillingMeterNoMeterFoundEvent { - export type Data = Stripe.V2.Core.Events.V1BillingMeterNoMeterFoundEvent.Data; + export type Data = Stripe_.V2.Core.Events.V1BillingMeterNoMeterFoundEvent.Data; } export namespace V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent { - export type Data = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent.Data; } export namespace V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent { - export type Data = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.Data; } export namespace V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent { - export type Data = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.Data; } export namespace V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent { - export type Data = Stripe.V2.Core.Events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent.Data; } export namespace V2CoreAccountLinkReturnedEvent { - export type Data = Stripe.V2.Core.Events.V2CoreAccountLinkReturnedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2CoreAccountLinkReturnedEvent.Data; } export namespace V2CoreAccountPersonCreatedEvent { - export type Data = Stripe.V2.Core.Events.V2CoreAccountPersonCreatedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2CoreAccountPersonCreatedEvent.Data; } export namespace V2CoreAccountPersonDeletedEvent { - export type Data = Stripe.V2.Core.Events.V2CoreAccountPersonDeletedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2CoreAccountPersonDeletedEvent.Data; } export namespace V2CoreAccountPersonUpdatedEvent { - export type Data = Stripe.V2.Core.Events.V2CoreAccountPersonUpdatedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2CoreAccountPersonUpdatedEvent.Data; } export namespace V2CoreHealthEventGenerationFailureResolvedEvent { - export type Data = Stripe.V2.Core.Events.V2CoreHealthEventGenerationFailureResolvedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2CoreHealthEventGenerationFailureResolvedEvent.Data; } export namespace V2ExtendWorkflowRunFailedEvent { - export type Data = Stripe.V2.Core.Events.V2ExtendWorkflowRunFailedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2ExtendWorkflowRunFailedEvent.Data; } export namespace V2MoneyManagementInboundTransferAvailableEvent { - export type Data = Stripe.V2.Core.Events.V2MoneyManagementInboundTransferAvailableEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2MoneyManagementInboundTransferAvailableEvent.Data; } export namespace V2MoneyManagementReceivedCreditAvailableEvent { - export type Data = Stripe.V2.Core.Events.V2MoneyManagementReceivedCreditAvailableEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2MoneyManagementReceivedCreditAvailableEvent.Data; } export namespace V2MoneyManagementTransactionCreatedEvent { - export type Data = Stripe.V2.Core.Events.V2MoneyManagementTransactionCreatedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2MoneyManagementTransactionCreatedEvent.Data; } export namespace V2OrchestratedCommerceAgreementConfirmedEvent { - export type Data = Stripe.V2.Core.Events.V2OrchestratedCommerceAgreementConfirmedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2OrchestratedCommerceAgreementConfirmedEvent.Data; } export namespace V2OrchestratedCommerceAgreementCreatedEvent { - export type Data = Stripe.V2.Core.Events.V2OrchestratedCommerceAgreementCreatedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2OrchestratedCommerceAgreementCreatedEvent.Data; } export namespace V2OrchestratedCommerceAgreementPartiallyConfirmedEvent { - export type Data = Stripe.V2.Core.Events.V2OrchestratedCommerceAgreementPartiallyConfirmedEvent.Data; + export type Data = Stripe_.V2.Core.Events.V2OrchestratedCommerceAgreementPartiallyConfirmedEvent.Data; } export namespace V2OrchestratedCommerceAgreementTerminatedEvent { - export type Data = Stripe.V2.Core.Events.V2OrchestratedCommerceAgreementTerminatedEvent.Data; - } - } - export type AccountApplicationAuthorizedEvent = Stripe.AccountApplicationAuthorizedEvent; - export type AccountApplicationDeauthorizedEvent = Stripe.AccountApplicationDeauthorizedEvent; - export type AccountExternalAccountCreatedEvent = Stripe.AccountExternalAccountCreatedEvent; - export type AccountExternalAccountDeletedEvent = Stripe.AccountExternalAccountDeletedEvent; - export type AccountExternalAccountUpdatedEvent = Stripe.AccountExternalAccountUpdatedEvent; - export type AccountUpdatedEvent = Stripe.AccountUpdatedEvent; - export type AccountNoticeCreatedEvent = Stripe.AccountNoticeCreatedEvent; - export type AccountNoticeUpdatedEvent = Stripe.AccountNoticeUpdatedEvent; - export type ApplicationFeeCreatedEvent = Stripe.ApplicationFeeCreatedEvent; - export type ApplicationFeeRefundUpdatedEvent = Stripe.ApplicationFeeRefundUpdatedEvent; - export type ApplicationFeeRefundedEvent = Stripe.ApplicationFeeRefundedEvent; - export type BalanceAvailableEvent = Stripe.BalanceAvailableEvent; - export type BalanceSettingsUpdatedEvent = Stripe.BalanceSettingsUpdatedEvent; - export type BillingAlertTriggeredEvent = Stripe.BillingAlertTriggeredEvent; - export type BillingCreditBalanceTransactionCreatedEvent = Stripe.BillingCreditBalanceTransactionCreatedEvent; - export type BillingCreditGrantCreatedEvent = Stripe.BillingCreditGrantCreatedEvent; - export type BillingCreditGrantUpdatedEvent = Stripe.BillingCreditGrantUpdatedEvent; - export type BillingMeterCreatedEvent = Stripe.BillingMeterCreatedEvent; - export type BillingMeterDeactivatedEvent = Stripe.BillingMeterDeactivatedEvent; - export type BillingMeterReactivatedEvent = Stripe.BillingMeterReactivatedEvent; - export type BillingMeterUpdatedEvent = Stripe.BillingMeterUpdatedEvent; - export type BillingPortalConfigurationCreatedEvent = Stripe.BillingPortalConfigurationCreatedEvent; - export type BillingPortalConfigurationUpdatedEvent = Stripe.BillingPortalConfigurationUpdatedEvent; - export type BillingPortalSessionCreatedEvent = Stripe.BillingPortalSessionCreatedEvent; - export type CapabilityUpdatedEvent = Stripe.CapabilityUpdatedEvent; - export type CapitalFinancingOfferAcceptedEvent = Stripe.CapitalFinancingOfferAcceptedEvent; - export type CapitalFinancingOfferCanceledEvent = Stripe.CapitalFinancingOfferCanceledEvent; - export type CapitalFinancingOfferCreatedEvent = Stripe.CapitalFinancingOfferCreatedEvent; - export type CapitalFinancingOfferExpiredEvent = Stripe.CapitalFinancingOfferExpiredEvent; - export type CapitalFinancingOfferFullyRepaidEvent = Stripe.CapitalFinancingOfferFullyRepaidEvent; - export type CapitalFinancingOfferPaidOutEvent = Stripe.CapitalFinancingOfferPaidOutEvent; - export type CapitalFinancingOfferRejectedEvent = Stripe.CapitalFinancingOfferRejectedEvent; - export type CapitalFinancingOfferReplacementCreatedEvent = Stripe.CapitalFinancingOfferReplacementCreatedEvent; - export type CapitalFinancingTransactionCreatedEvent = Stripe.CapitalFinancingTransactionCreatedEvent; - export type CashBalanceFundsAvailableEvent = Stripe.CashBalanceFundsAvailableEvent; - export type ChargeCapturedEvent = Stripe.ChargeCapturedEvent; - export type ChargeDisputeClosedEvent = Stripe.ChargeDisputeClosedEvent; - export type ChargeDisputeCreatedEvent = Stripe.ChargeDisputeCreatedEvent; - export type ChargeDisputeFundsReinstatedEvent = Stripe.ChargeDisputeFundsReinstatedEvent; - export type ChargeDisputeFundsWithdrawnEvent = Stripe.ChargeDisputeFundsWithdrawnEvent; - export type ChargeDisputeUpdatedEvent = Stripe.ChargeDisputeUpdatedEvent; - export type ChargeExpiredEvent = Stripe.ChargeExpiredEvent; - export type ChargeFailedEvent = Stripe.ChargeFailedEvent; - export type ChargePendingEvent = Stripe.ChargePendingEvent; - export type ChargeRefundUpdatedEvent = Stripe.ChargeRefundUpdatedEvent; - export type ChargeRefundedEvent = Stripe.ChargeRefundedEvent; - export type ChargeSucceededEvent = Stripe.ChargeSucceededEvent; - export type ChargeUpdatedEvent = Stripe.ChargeUpdatedEvent; - export type CheckoutSessionAsyncPaymentFailedEvent = Stripe.CheckoutSessionAsyncPaymentFailedEvent; - export type CheckoutSessionAsyncPaymentSucceededEvent = Stripe.CheckoutSessionAsyncPaymentSucceededEvent; - export type CheckoutSessionCompletedEvent = Stripe.CheckoutSessionCompletedEvent; - export type CheckoutSessionExpiredEvent = Stripe.CheckoutSessionExpiredEvent; - export type ClimateOrderCanceledEvent = Stripe.ClimateOrderCanceledEvent; - export type ClimateOrderCreatedEvent = Stripe.ClimateOrderCreatedEvent; - export type ClimateOrderDelayedEvent = Stripe.ClimateOrderDelayedEvent; - export type ClimateOrderDeliveredEvent = Stripe.ClimateOrderDeliveredEvent; - export type ClimateOrderProductSubstitutedEvent = Stripe.ClimateOrderProductSubstitutedEvent; - export type ClimateProductCreatedEvent = Stripe.ClimateProductCreatedEvent; - export type ClimateProductPricingUpdatedEvent = Stripe.ClimateProductPricingUpdatedEvent; - export type CouponCreatedEvent = Stripe.CouponCreatedEvent; - export type CouponDeletedEvent = Stripe.CouponDeletedEvent; - export type CouponUpdatedEvent = Stripe.CouponUpdatedEvent; - export type CreditNoteCreatedEvent = Stripe.CreditNoteCreatedEvent; - export type CreditNoteUpdatedEvent = Stripe.CreditNoteUpdatedEvent; - export type CreditNoteVoidedEvent = Stripe.CreditNoteVoidedEvent; - export type CustomerCreatedEvent = Stripe.CustomerCreatedEvent; - export type CustomerDeletedEvent = Stripe.CustomerDeletedEvent; - export type CustomerDiscountCreatedEvent = Stripe.CustomerDiscountCreatedEvent; - export type CustomerDiscountDeletedEvent = Stripe.CustomerDiscountDeletedEvent; - export type CustomerDiscountUpdatedEvent = Stripe.CustomerDiscountUpdatedEvent; - export type CustomerSourceCreatedEvent = Stripe.CustomerSourceCreatedEvent; - export type CustomerSourceDeletedEvent = Stripe.CustomerSourceDeletedEvent; - export type CustomerSourceExpiringEvent = Stripe.CustomerSourceExpiringEvent; - export type CustomerSourceUpdatedEvent = Stripe.CustomerSourceUpdatedEvent; - export type CustomerSubscriptionCollectionPausedEvent = Stripe.CustomerSubscriptionCollectionPausedEvent; - export type CustomerSubscriptionCollectionResumedEvent = Stripe.CustomerSubscriptionCollectionResumedEvent; - export type CustomerSubscriptionCreatedEvent = Stripe.CustomerSubscriptionCreatedEvent; - export type CustomerSubscriptionCustomEventEvent = Stripe.CustomerSubscriptionCustomEventEvent; - export type CustomerSubscriptionDeletedEvent = Stripe.CustomerSubscriptionDeletedEvent; - export type CustomerSubscriptionPausedEvent = Stripe.CustomerSubscriptionPausedEvent; - export type CustomerSubscriptionPendingUpdateAppliedEvent = Stripe.CustomerSubscriptionPendingUpdateAppliedEvent; - export type CustomerSubscriptionPendingUpdateExpiredEvent = Stripe.CustomerSubscriptionPendingUpdateExpiredEvent; - export type CustomerSubscriptionPriceMigrationFailedEvent = Stripe.CustomerSubscriptionPriceMigrationFailedEvent; - export type CustomerSubscriptionResumedEvent = Stripe.CustomerSubscriptionResumedEvent; - export type CustomerSubscriptionTrialWillEndEvent = Stripe.CustomerSubscriptionTrialWillEndEvent; - export type CustomerSubscriptionUpdatedEvent = Stripe.CustomerSubscriptionUpdatedEvent; - export type CustomerTaxIdCreatedEvent = Stripe.CustomerTaxIdCreatedEvent; - export type CustomerTaxIdDeletedEvent = Stripe.CustomerTaxIdDeletedEvent; - export type CustomerTaxIdUpdatedEvent = Stripe.CustomerTaxIdUpdatedEvent; - export type CustomerUpdatedEvent = Stripe.CustomerUpdatedEvent; - export type CustomerCashBalanceTransactionCreatedEvent = Stripe.CustomerCashBalanceTransactionCreatedEvent; - export type EntitlementsActiveEntitlementSummaryUpdatedEvent = Stripe.EntitlementsActiveEntitlementSummaryUpdatedEvent; - export type FileCreatedEvent = Stripe.FileCreatedEvent; - export type FinancialConnectionsAccountAccountNumbersUpdatedEvent = Stripe.FinancialConnectionsAccountAccountNumbersUpdatedEvent; - export type FinancialConnectionsAccountCreatedEvent = Stripe.FinancialConnectionsAccountCreatedEvent; - export type FinancialConnectionsAccountDeactivatedEvent = Stripe.FinancialConnectionsAccountDeactivatedEvent; - export type FinancialConnectionsAccountDisconnectedEvent = Stripe.FinancialConnectionsAccountDisconnectedEvent; - export type FinancialConnectionsAccountReactivatedEvent = Stripe.FinancialConnectionsAccountReactivatedEvent; - export type FinancialConnectionsAccountRefreshedBalanceEvent = Stripe.FinancialConnectionsAccountRefreshedBalanceEvent; - export type FinancialConnectionsAccountRefreshedInferredBalancesEvent = Stripe.FinancialConnectionsAccountRefreshedInferredBalancesEvent; - export type FinancialConnectionsAccountRefreshedOwnershipEvent = Stripe.FinancialConnectionsAccountRefreshedOwnershipEvent; - export type FinancialConnectionsAccountRefreshedTransactionsEvent = Stripe.FinancialConnectionsAccountRefreshedTransactionsEvent; - export type FinancialConnectionsAccountUpcomingAccountNumberExpiryEvent = Stripe.FinancialConnectionsAccountUpcomingAccountNumberExpiryEvent; - export type FinancialConnectionsSessionUpdatedEvent = Stripe.FinancialConnectionsSessionUpdatedEvent; - export type FxQuoteExpiredEvent = Stripe.FxQuoteExpiredEvent; - export type IdentityVerificationSessionCanceledEvent = Stripe.IdentityVerificationSessionCanceledEvent; - export type IdentityVerificationSessionCreatedEvent = Stripe.IdentityVerificationSessionCreatedEvent; - export type IdentityVerificationSessionProcessingEvent = Stripe.IdentityVerificationSessionProcessingEvent; - export type IdentityVerificationSessionRedactedEvent = Stripe.IdentityVerificationSessionRedactedEvent; - export type IdentityVerificationSessionRequiresInputEvent = Stripe.IdentityVerificationSessionRequiresInputEvent; - export type IdentityVerificationSessionVerifiedEvent = Stripe.IdentityVerificationSessionVerifiedEvent; - export type InvoiceCreatedEvent = Stripe.InvoiceCreatedEvent; - export type InvoiceDeletedEvent = Stripe.InvoiceDeletedEvent; - export type InvoiceFinalizationFailedEvent = Stripe.InvoiceFinalizationFailedEvent; - export type InvoiceFinalizedEvent = Stripe.InvoiceFinalizedEvent; - export type InvoiceMarkedUncollectibleEvent = Stripe.InvoiceMarkedUncollectibleEvent; - export type InvoiceOverdueEvent = Stripe.InvoiceOverdueEvent; - export type InvoiceOverpaidEvent = Stripe.InvoiceOverpaidEvent; - export type InvoicePaidEvent = Stripe.InvoicePaidEvent; - export type InvoicePaymentOverpaidEvent = Stripe.InvoicePaymentOverpaidEvent; - export type InvoicePaymentActionRequiredEvent = Stripe.InvoicePaymentActionRequiredEvent; - export type InvoicePaymentAttemptRequiredEvent = Stripe.InvoicePaymentAttemptRequiredEvent; - export type InvoicePaymentFailedEvent = Stripe.InvoicePaymentFailedEvent; - export type InvoicePaymentSucceededEvent = Stripe.InvoicePaymentSucceededEvent; - export type InvoiceSentEvent = Stripe.InvoiceSentEvent; - export type InvoiceUpcomingEvent = Stripe.InvoiceUpcomingEvent; - export type InvoiceUpdatedEvent = Stripe.InvoiceUpdatedEvent; - export type InvoiceVoidedEvent = Stripe.InvoiceVoidedEvent; - export type InvoiceWillBeDueEvent = Stripe.InvoiceWillBeDueEvent; - export type InvoicePaymentDetachedEvent = Stripe.InvoicePaymentDetachedEvent; - export type InvoicePaymentPaidEvent = Stripe.InvoicePaymentPaidEvent; - export type InvoiceItemCreatedEvent = Stripe.InvoiceItemCreatedEvent; - export type InvoiceItemDeletedEvent = Stripe.InvoiceItemDeletedEvent; - export type IssuingAuthorizationCreatedEvent = Stripe.IssuingAuthorizationCreatedEvent; - export type IssuingAuthorizationRequestEvent = Stripe.IssuingAuthorizationRequestEvent; - export type IssuingAuthorizationUpdatedEvent = Stripe.IssuingAuthorizationUpdatedEvent; - export type IssuingCardCreatedEvent = Stripe.IssuingCardCreatedEvent; - export type IssuingCardUpdatedEvent = Stripe.IssuingCardUpdatedEvent; - export type IssuingCardholderCreatedEvent = Stripe.IssuingCardholderCreatedEvent; - export type IssuingCardholderUpdatedEvent = Stripe.IssuingCardholderUpdatedEvent; - export type IssuingDisputeClosedEvent = Stripe.IssuingDisputeClosedEvent; - export type IssuingDisputeCreatedEvent = Stripe.IssuingDisputeCreatedEvent; - export type IssuingDisputeFundsReinstatedEvent = Stripe.IssuingDisputeFundsReinstatedEvent; - export type IssuingDisputeFundsRescindedEvent = Stripe.IssuingDisputeFundsRescindedEvent; - export type IssuingDisputeSubmittedEvent = Stripe.IssuingDisputeSubmittedEvent; - export type IssuingDisputeUpdatedEvent = Stripe.IssuingDisputeUpdatedEvent; - export type IssuingDisputeSettlementDetailCreatedEvent = Stripe.IssuingDisputeSettlementDetailCreatedEvent; - export type IssuingDisputeSettlementDetailUpdatedEvent = Stripe.IssuingDisputeSettlementDetailUpdatedEvent; - export type IssuingFraudLiabilityDebitCreatedEvent = Stripe.IssuingFraudLiabilityDebitCreatedEvent; - export type IssuingPersonalizationDesignActivatedEvent = Stripe.IssuingPersonalizationDesignActivatedEvent; - export type IssuingPersonalizationDesignDeactivatedEvent = Stripe.IssuingPersonalizationDesignDeactivatedEvent; - export type IssuingPersonalizationDesignRejectedEvent = Stripe.IssuingPersonalizationDesignRejectedEvent; - export type IssuingPersonalizationDesignUpdatedEvent = Stripe.IssuingPersonalizationDesignUpdatedEvent; - export type IssuingSettlementCreatedEvent = Stripe.IssuingSettlementCreatedEvent; - export type IssuingSettlementUpdatedEvent = Stripe.IssuingSettlementUpdatedEvent; - export type IssuingTokenCreatedEvent = Stripe.IssuingTokenCreatedEvent; - export type IssuingTokenUpdatedEvent = Stripe.IssuingTokenUpdatedEvent; - export type IssuingTransactionCreatedEvent = Stripe.IssuingTransactionCreatedEvent; - export type IssuingTransactionPurchaseDetailsReceiptUpdatedEvent = Stripe.IssuingTransactionPurchaseDetailsReceiptUpdatedEvent; - export type IssuingTransactionUpdatedEvent = Stripe.IssuingTransactionUpdatedEvent; - export type MandateUpdatedEvent = Stripe.MandateUpdatedEvent; - export type PaymentIntentAmountCapturableUpdatedEvent = Stripe.PaymentIntentAmountCapturableUpdatedEvent; - export type PaymentIntentCanceledEvent = Stripe.PaymentIntentCanceledEvent; - export type PaymentIntentCreatedEvent = Stripe.PaymentIntentCreatedEvent; - export type PaymentIntentPartiallyFundedEvent = Stripe.PaymentIntentPartiallyFundedEvent; - export type PaymentIntentPaymentFailedEvent = Stripe.PaymentIntentPaymentFailedEvent; - export type PaymentIntentProcessingEvent = Stripe.PaymentIntentProcessingEvent; - export type PaymentIntentRequiresActionEvent = Stripe.PaymentIntentRequiresActionEvent; - export type PaymentIntentSucceededEvent = Stripe.PaymentIntentSucceededEvent; - export type PaymentLinkCreatedEvent = Stripe.PaymentLinkCreatedEvent; - export type PaymentLinkUpdatedEvent = Stripe.PaymentLinkUpdatedEvent; - export type PaymentMethodAttachedEvent = Stripe.PaymentMethodAttachedEvent; - export type PaymentMethodAutomaticallyUpdatedEvent = Stripe.PaymentMethodAutomaticallyUpdatedEvent; - export type PaymentMethodDetachedEvent = Stripe.PaymentMethodDetachedEvent; - export type PaymentMethodUpdatedEvent = Stripe.PaymentMethodUpdatedEvent; - export type PayoutCanceledEvent = Stripe.PayoutCanceledEvent; - export type PayoutCreatedEvent = Stripe.PayoutCreatedEvent; - export type PayoutFailedEvent = Stripe.PayoutFailedEvent; - export type PayoutPaidEvent = Stripe.PayoutPaidEvent; - export type PayoutReconciliationCompletedEvent = Stripe.PayoutReconciliationCompletedEvent; - export type PayoutUpdatedEvent = Stripe.PayoutUpdatedEvent; - export type PersonCreatedEvent = Stripe.PersonCreatedEvent; - export type PersonDeletedEvent = Stripe.PersonDeletedEvent; - export type PersonUpdatedEvent = Stripe.PersonUpdatedEvent; - export type PlanCreatedEvent = Stripe.PlanCreatedEvent; - export type PlanDeletedEvent = Stripe.PlanDeletedEvent; - export type PlanUpdatedEvent = Stripe.PlanUpdatedEvent; - export type PriceCreatedEvent = Stripe.PriceCreatedEvent; - export type PriceDeletedEvent = Stripe.PriceDeletedEvent; - export type PriceUpdatedEvent = Stripe.PriceUpdatedEvent; - export type PrivacyRedactionJobCanceledEvent = Stripe.PrivacyRedactionJobCanceledEvent; - export type PrivacyRedactionJobCreatedEvent = Stripe.PrivacyRedactionJobCreatedEvent; - export type PrivacyRedactionJobReadyEvent = Stripe.PrivacyRedactionJobReadyEvent; - export type PrivacyRedactionJobSucceededEvent = Stripe.PrivacyRedactionJobSucceededEvent; - export type PrivacyRedactionJobValidationErrorEvent = Stripe.PrivacyRedactionJobValidationErrorEvent; - export type ProductCreatedEvent = Stripe.ProductCreatedEvent; - export type ProductDeletedEvent = Stripe.ProductDeletedEvent; - export type ProductUpdatedEvent = Stripe.ProductUpdatedEvent; - export type PromotionCodeCreatedEvent = Stripe.PromotionCodeCreatedEvent; - export type PromotionCodeUpdatedEvent = Stripe.PromotionCodeUpdatedEvent; - export type QuoteAcceptFailedEvent = Stripe.QuoteAcceptFailedEvent; - export type QuoteAcceptedEvent = Stripe.QuoteAcceptedEvent; - export type QuoteAcceptingEvent = Stripe.QuoteAcceptingEvent; - export type QuoteCanceledEvent = Stripe.QuoteCanceledEvent; - export type QuoteCreatedEvent = Stripe.QuoteCreatedEvent; - export type QuoteDraftEvent = Stripe.QuoteDraftEvent; - export type QuoteFinalizedEvent = Stripe.QuoteFinalizedEvent; - export type QuoteReestimateFailedEvent = Stripe.QuoteReestimateFailedEvent; - export type QuoteReestimatedEvent = Stripe.QuoteReestimatedEvent; - export type QuoteStaleEvent = Stripe.QuoteStaleEvent; - export type RadarEarlyFraudWarningCreatedEvent = Stripe.RadarEarlyFraudWarningCreatedEvent; - export type RadarEarlyFraudWarningUpdatedEvent = Stripe.RadarEarlyFraudWarningUpdatedEvent; - export type RefundCreatedEvent = Stripe.RefundCreatedEvent; - export type RefundFailedEvent = Stripe.RefundFailedEvent; - export type RefundUpdatedEvent = Stripe.RefundUpdatedEvent; - export type ReportingReportRunFailedEvent = Stripe.ReportingReportRunFailedEvent; - export type ReportingReportRunSucceededEvent = Stripe.ReportingReportRunSucceededEvent; - export type ReportingReportTypeUpdatedEvent = Stripe.ReportingReportTypeUpdatedEvent; - export type ReserveHoldCreatedEvent = Stripe.ReserveHoldCreatedEvent; - export type ReserveHoldUpdatedEvent = Stripe.ReserveHoldUpdatedEvent; - export type ReservePlanCreatedEvent = Stripe.ReservePlanCreatedEvent; - export type ReservePlanDisabledEvent = Stripe.ReservePlanDisabledEvent; - export type ReservePlanExpiredEvent = Stripe.ReservePlanExpiredEvent; - export type ReservePlanUpdatedEvent = Stripe.ReservePlanUpdatedEvent; - export type ReserveReleaseCreatedEvent = Stripe.ReserveReleaseCreatedEvent; - export type ReviewClosedEvent = Stripe.ReviewClosedEvent; - export type ReviewOpenedEvent = Stripe.ReviewOpenedEvent; - export type SetupIntentCanceledEvent = Stripe.SetupIntentCanceledEvent; - export type SetupIntentCreatedEvent = Stripe.SetupIntentCreatedEvent; - export type SetupIntentRequiresActionEvent = Stripe.SetupIntentRequiresActionEvent; - export type SetupIntentSetupFailedEvent = Stripe.SetupIntentSetupFailedEvent; - export type SetupIntentSucceededEvent = Stripe.SetupIntentSucceededEvent; - export type SigmaScheduledQueryRunCreatedEvent = Stripe.SigmaScheduledQueryRunCreatedEvent; - export type SourceCanceledEvent = Stripe.SourceCanceledEvent; - export type SourceChargeableEvent = Stripe.SourceChargeableEvent; - export type SourceFailedEvent = Stripe.SourceFailedEvent; - export type SourceMandateNotificationEvent = Stripe.SourceMandateNotificationEvent; - export type SourceRefundAttributesRequiredEvent = Stripe.SourceRefundAttributesRequiredEvent; - export type SourceTransactionCreatedEvent = Stripe.SourceTransactionCreatedEvent; - export type SourceTransactionUpdatedEvent = Stripe.SourceTransactionUpdatedEvent; - export type SubscriptionScheduleAbortedEvent = Stripe.SubscriptionScheduleAbortedEvent; - export type SubscriptionScheduleCanceledEvent = Stripe.SubscriptionScheduleCanceledEvent; - export type SubscriptionScheduleCompletedEvent = Stripe.SubscriptionScheduleCompletedEvent; - export type SubscriptionScheduleCreatedEvent = Stripe.SubscriptionScheduleCreatedEvent; - export type SubscriptionScheduleExpiringEvent = Stripe.SubscriptionScheduleExpiringEvent; - export type SubscriptionSchedulePriceMigrationFailedEvent = Stripe.SubscriptionSchedulePriceMigrationFailedEvent; - export type SubscriptionScheduleReleasedEvent = Stripe.SubscriptionScheduleReleasedEvent; - export type SubscriptionScheduleUpdatedEvent = Stripe.SubscriptionScheduleUpdatedEvent; - export type TaxFormUpdatedEvent = Stripe.TaxFormUpdatedEvent; - export type TaxSettingsUpdatedEvent = Stripe.TaxSettingsUpdatedEvent; - export type TaxRateCreatedEvent = Stripe.TaxRateCreatedEvent; - export type TaxRateUpdatedEvent = Stripe.TaxRateUpdatedEvent; - export type TerminalReaderActionFailedEvent = Stripe.TerminalReaderActionFailedEvent; - export type TerminalReaderActionSucceededEvent = Stripe.TerminalReaderActionSucceededEvent; - export type TerminalReaderActionUpdatedEvent = Stripe.TerminalReaderActionUpdatedEvent; - export type TestHelpersTestClockAdvancingEvent = Stripe.TestHelpersTestClockAdvancingEvent; - export type TestHelpersTestClockCreatedEvent = Stripe.TestHelpersTestClockCreatedEvent; - export type TestHelpersTestClockDeletedEvent = Stripe.TestHelpersTestClockDeletedEvent; - export type TestHelpersTestClockInternalFailureEvent = Stripe.TestHelpersTestClockInternalFailureEvent; - export type TestHelpersTestClockReadyEvent = Stripe.TestHelpersTestClockReadyEvent; - export type TopupCanceledEvent = Stripe.TopupCanceledEvent; - export type TopupCreatedEvent = Stripe.TopupCreatedEvent; - export type TopupFailedEvent = Stripe.TopupFailedEvent; - export type TopupReversedEvent = Stripe.TopupReversedEvent; - export type TopupSucceededEvent = Stripe.TopupSucceededEvent; - export type TransferCreatedEvent = Stripe.TransferCreatedEvent; - export type TransferReversedEvent = Stripe.TransferReversedEvent; - export type TransferUpdatedEvent = Stripe.TransferUpdatedEvent; - export type TreasuryCreditReversalCreatedEvent = Stripe.TreasuryCreditReversalCreatedEvent; - export type TreasuryCreditReversalPostedEvent = Stripe.TreasuryCreditReversalPostedEvent; - export type TreasuryDebitReversalCompletedEvent = Stripe.TreasuryDebitReversalCompletedEvent; - export type TreasuryDebitReversalCreatedEvent = Stripe.TreasuryDebitReversalCreatedEvent; - export type TreasuryDebitReversalInitialCreditGrantedEvent = Stripe.TreasuryDebitReversalInitialCreditGrantedEvent; - export type TreasuryFinancialAccountClosedEvent = Stripe.TreasuryFinancialAccountClosedEvent; - export type TreasuryFinancialAccountCreatedEvent = Stripe.TreasuryFinancialAccountCreatedEvent; - export type TreasuryFinancialAccountFeaturesStatusUpdatedEvent = Stripe.TreasuryFinancialAccountFeaturesStatusUpdatedEvent; - export type TreasuryInboundTransferCanceledEvent = Stripe.TreasuryInboundTransferCanceledEvent; - export type TreasuryInboundTransferCreatedEvent = Stripe.TreasuryInboundTransferCreatedEvent; - export type TreasuryInboundTransferFailedEvent = Stripe.TreasuryInboundTransferFailedEvent; - export type TreasuryInboundTransferSucceededEvent = Stripe.TreasuryInboundTransferSucceededEvent; - export type TreasuryOutboundPaymentCanceledEvent = Stripe.TreasuryOutboundPaymentCanceledEvent; - export type TreasuryOutboundPaymentCreatedEvent = Stripe.TreasuryOutboundPaymentCreatedEvent; - export type TreasuryOutboundPaymentExpectedArrivalDateUpdatedEvent = Stripe.TreasuryOutboundPaymentExpectedArrivalDateUpdatedEvent; - export type TreasuryOutboundPaymentFailedEvent = Stripe.TreasuryOutboundPaymentFailedEvent; - export type TreasuryOutboundPaymentPostedEvent = Stripe.TreasuryOutboundPaymentPostedEvent; - export type TreasuryOutboundPaymentReturnedEvent = Stripe.TreasuryOutboundPaymentReturnedEvent; - export type TreasuryOutboundPaymentTrackingDetailsUpdatedEvent = Stripe.TreasuryOutboundPaymentTrackingDetailsUpdatedEvent; - export type TreasuryOutboundTransferCanceledEvent = Stripe.TreasuryOutboundTransferCanceledEvent; - export type TreasuryOutboundTransferCreatedEvent = Stripe.TreasuryOutboundTransferCreatedEvent; - export type TreasuryOutboundTransferExpectedArrivalDateUpdatedEvent = Stripe.TreasuryOutboundTransferExpectedArrivalDateUpdatedEvent; - export type TreasuryOutboundTransferFailedEvent = Stripe.TreasuryOutboundTransferFailedEvent; - export type TreasuryOutboundTransferPostedEvent = Stripe.TreasuryOutboundTransferPostedEvent; - export type TreasuryOutboundTransferReturnedEvent = Stripe.TreasuryOutboundTransferReturnedEvent; - export type TreasuryOutboundTransferTrackingDetailsUpdatedEvent = Stripe.TreasuryOutboundTransferTrackingDetailsUpdatedEvent; - export type TreasuryReceivedCreditCreatedEvent = Stripe.TreasuryReceivedCreditCreatedEvent; - export type TreasuryReceivedCreditFailedEvent = Stripe.TreasuryReceivedCreditFailedEvent; - export type TreasuryReceivedCreditSucceededEvent = Stripe.TreasuryReceivedCreditSucceededEvent; - export type TreasuryReceivedDebitCreatedEvent = Stripe.TreasuryReceivedDebitCreatedEvent; - export type V2List = Stripe.V2List; - export type V2ListPromise = Stripe.V2ListPromise; + export type Data = Stripe_.V2.Core.Events.V2OrchestratedCommerceAgreementTerminatedEvent.Data; + } + } + export type AccountApplicationAuthorizedEvent = Stripe_.AccountApplicationAuthorizedEvent; + export type AccountApplicationDeauthorizedEvent = Stripe_.AccountApplicationDeauthorizedEvent; + export type AccountExternalAccountCreatedEvent = Stripe_.AccountExternalAccountCreatedEvent; + export type AccountExternalAccountDeletedEvent = Stripe_.AccountExternalAccountDeletedEvent; + export type AccountExternalAccountUpdatedEvent = Stripe_.AccountExternalAccountUpdatedEvent; + export type AccountUpdatedEvent = Stripe_.AccountUpdatedEvent; + export type AccountNoticeCreatedEvent = Stripe_.AccountNoticeCreatedEvent; + export type AccountNoticeUpdatedEvent = Stripe_.AccountNoticeUpdatedEvent; + export type ApplicationFeeCreatedEvent = Stripe_.ApplicationFeeCreatedEvent; + export type ApplicationFeeRefundUpdatedEvent = Stripe_.ApplicationFeeRefundUpdatedEvent; + export type ApplicationFeeRefundedEvent = Stripe_.ApplicationFeeRefundedEvent; + export type BalanceAvailableEvent = Stripe_.BalanceAvailableEvent; + export type BalanceSettingsUpdatedEvent = Stripe_.BalanceSettingsUpdatedEvent; + export type BillingAlertTriggeredEvent = Stripe_.BillingAlertTriggeredEvent; + export type BillingCreditBalanceTransactionCreatedEvent = Stripe_.BillingCreditBalanceTransactionCreatedEvent; + export type BillingCreditGrantCreatedEvent = Stripe_.BillingCreditGrantCreatedEvent; + export type BillingCreditGrantUpdatedEvent = Stripe_.BillingCreditGrantUpdatedEvent; + export type BillingMeterCreatedEvent = Stripe_.BillingMeterCreatedEvent; + export type BillingMeterDeactivatedEvent = Stripe_.BillingMeterDeactivatedEvent; + export type BillingMeterReactivatedEvent = Stripe_.BillingMeterReactivatedEvent; + export type BillingMeterUpdatedEvent = Stripe_.BillingMeterUpdatedEvent; + export type BillingPortalConfigurationCreatedEvent = Stripe_.BillingPortalConfigurationCreatedEvent; + export type BillingPortalConfigurationUpdatedEvent = Stripe_.BillingPortalConfigurationUpdatedEvent; + export type BillingPortalSessionCreatedEvent = Stripe_.BillingPortalSessionCreatedEvent; + export type CapabilityUpdatedEvent = Stripe_.CapabilityUpdatedEvent; + export type CapitalFinancingOfferAcceptedEvent = Stripe_.CapitalFinancingOfferAcceptedEvent; + export type CapitalFinancingOfferCanceledEvent = Stripe_.CapitalFinancingOfferCanceledEvent; + export type CapitalFinancingOfferCreatedEvent = Stripe_.CapitalFinancingOfferCreatedEvent; + export type CapitalFinancingOfferExpiredEvent = Stripe_.CapitalFinancingOfferExpiredEvent; + export type CapitalFinancingOfferFullyRepaidEvent = Stripe_.CapitalFinancingOfferFullyRepaidEvent; + export type CapitalFinancingOfferPaidOutEvent = Stripe_.CapitalFinancingOfferPaidOutEvent; + export type CapitalFinancingOfferRejectedEvent = Stripe_.CapitalFinancingOfferRejectedEvent; + export type CapitalFinancingOfferReplacementCreatedEvent = Stripe_.CapitalFinancingOfferReplacementCreatedEvent; + export type CapitalFinancingTransactionCreatedEvent = Stripe_.CapitalFinancingTransactionCreatedEvent; + export type CashBalanceFundsAvailableEvent = Stripe_.CashBalanceFundsAvailableEvent; + export type ChargeCapturedEvent = Stripe_.ChargeCapturedEvent; + export type ChargeDisputeClosedEvent = Stripe_.ChargeDisputeClosedEvent; + export type ChargeDisputeCreatedEvent = Stripe_.ChargeDisputeCreatedEvent; + export type ChargeDisputeFundsReinstatedEvent = Stripe_.ChargeDisputeFundsReinstatedEvent; + export type ChargeDisputeFundsWithdrawnEvent = Stripe_.ChargeDisputeFundsWithdrawnEvent; + export type ChargeDisputeUpdatedEvent = Stripe_.ChargeDisputeUpdatedEvent; + export type ChargeExpiredEvent = Stripe_.ChargeExpiredEvent; + export type ChargeFailedEvent = Stripe_.ChargeFailedEvent; + export type ChargePendingEvent = Stripe_.ChargePendingEvent; + export type ChargeRefundUpdatedEvent = Stripe_.ChargeRefundUpdatedEvent; + export type ChargeRefundedEvent = Stripe_.ChargeRefundedEvent; + export type ChargeSucceededEvent = Stripe_.ChargeSucceededEvent; + export type ChargeUpdatedEvent = Stripe_.ChargeUpdatedEvent; + export type CheckoutSessionAsyncPaymentFailedEvent = Stripe_.CheckoutSessionAsyncPaymentFailedEvent; + export type CheckoutSessionAsyncPaymentSucceededEvent = Stripe_.CheckoutSessionAsyncPaymentSucceededEvent; + export type CheckoutSessionCompletedEvent = Stripe_.CheckoutSessionCompletedEvent; + export type CheckoutSessionExpiredEvent = Stripe_.CheckoutSessionExpiredEvent; + export type ClimateOrderCanceledEvent = Stripe_.ClimateOrderCanceledEvent; + export type ClimateOrderCreatedEvent = Stripe_.ClimateOrderCreatedEvent; + export type ClimateOrderDelayedEvent = Stripe_.ClimateOrderDelayedEvent; + export type ClimateOrderDeliveredEvent = Stripe_.ClimateOrderDeliveredEvent; + export type ClimateOrderProductSubstitutedEvent = Stripe_.ClimateOrderProductSubstitutedEvent; + export type ClimateProductCreatedEvent = Stripe_.ClimateProductCreatedEvent; + export type ClimateProductPricingUpdatedEvent = Stripe_.ClimateProductPricingUpdatedEvent; + export type CouponCreatedEvent = Stripe_.CouponCreatedEvent; + export type CouponDeletedEvent = Stripe_.CouponDeletedEvent; + export type CouponUpdatedEvent = Stripe_.CouponUpdatedEvent; + export type CreditNoteCreatedEvent = Stripe_.CreditNoteCreatedEvent; + export type CreditNoteUpdatedEvent = Stripe_.CreditNoteUpdatedEvent; + export type CreditNoteVoidedEvent = Stripe_.CreditNoteVoidedEvent; + export type CustomerCreatedEvent = Stripe_.CustomerCreatedEvent; + export type CustomerDeletedEvent = Stripe_.CustomerDeletedEvent; + export type CustomerDiscountCreatedEvent = Stripe_.CustomerDiscountCreatedEvent; + export type CustomerDiscountDeletedEvent = Stripe_.CustomerDiscountDeletedEvent; + export type CustomerDiscountUpdatedEvent = Stripe_.CustomerDiscountUpdatedEvent; + export type CustomerSourceCreatedEvent = Stripe_.CustomerSourceCreatedEvent; + export type CustomerSourceDeletedEvent = Stripe_.CustomerSourceDeletedEvent; + export type CustomerSourceExpiringEvent = Stripe_.CustomerSourceExpiringEvent; + export type CustomerSourceUpdatedEvent = Stripe_.CustomerSourceUpdatedEvent; + export type CustomerSubscriptionCollectionPausedEvent = Stripe_.CustomerSubscriptionCollectionPausedEvent; + export type CustomerSubscriptionCollectionResumedEvent = Stripe_.CustomerSubscriptionCollectionResumedEvent; + export type CustomerSubscriptionCreatedEvent = Stripe_.CustomerSubscriptionCreatedEvent; + export type CustomerSubscriptionCustomEventEvent = Stripe_.CustomerSubscriptionCustomEventEvent; + export type CustomerSubscriptionDeletedEvent = Stripe_.CustomerSubscriptionDeletedEvent; + export type CustomerSubscriptionPausedEvent = Stripe_.CustomerSubscriptionPausedEvent; + export type CustomerSubscriptionPendingUpdateAppliedEvent = Stripe_.CustomerSubscriptionPendingUpdateAppliedEvent; + export type CustomerSubscriptionPendingUpdateExpiredEvent = Stripe_.CustomerSubscriptionPendingUpdateExpiredEvent; + export type CustomerSubscriptionPriceMigrationFailedEvent = Stripe_.CustomerSubscriptionPriceMigrationFailedEvent; + export type CustomerSubscriptionResumedEvent = Stripe_.CustomerSubscriptionResumedEvent; + export type CustomerSubscriptionTrialWillEndEvent = Stripe_.CustomerSubscriptionTrialWillEndEvent; + export type CustomerSubscriptionUpdatedEvent = Stripe_.CustomerSubscriptionUpdatedEvent; + export type CustomerTaxIdCreatedEvent = Stripe_.CustomerTaxIdCreatedEvent; + export type CustomerTaxIdDeletedEvent = Stripe_.CustomerTaxIdDeletedEvent; + export type CustomerTaxIdUpdatedEvent = Stripe_.CustomerTaxIdUpdatedEvent; + export type CustomerUpdatedEvent = Stripe_.CustomerUpdatedEvent; + export type CustomerCashBalanceTransactionCreatedEvent = Stripe_.CustomerCashBalanceTransactionCreatedEvent; + export type EntitlementsActiveEntitlementSummaryUpdatedEvent = Stripe_.EntitlementsActiveEntitlementSummaryUpdatedEvent; + export type FileCreatedEvent = Stripe_.FileCreatedEvent; + export type FinancialConnectionsAccountAccountNumbersUpdatedEvent = Stripe_.FinancialConnectionsAccountAccountNumbersUpdatedEvent; + export type FinancialConnectionsAccountCreatedEvent = Stripe_.FinancialConnectionsAccountCreatedEvent; + export type FinancialConnectionsAccountDeactivatedEvent = Stripe_.FinancialConnectionsAccountDeactivatedEvent; + export type FinancialConnectionsAccountDisconnectedEvent = Stripe_.FinancialConnectionsAccountDisconnectedEvent; + export type FinancialConnectionsAccountReactivatedEvent = Stripe_.FinancialConnectionsAccountReactivatedEvent; + export type FinancialConnectionsAccountRefreshedBalanceEvent = Stripe_.FinancialConnectionsAccountRefreshedBalanceEvent; + export type FinancialConnectionsAccountRefreshedInferredBalancesEvent = Stripe_.FinancialConnectionsAccountRefreshedInferredBalancesEvent; + export type FinancialConnectionsAccountRefreshedOwnershipEvent = Stripe_.FinancialConnectionsAccountRefreshedOwnershipEvent; + export type FinancialConnectionsAccountRefreshedTransactionsEvent = Stripe_.FinancialConnectionsAccountRefreshedTransactionsEvent; + export type FinancialConnectionsAccountUpcomingAccountNumberExpiryEvent = Stripe_.FinancialConnectionsAccountUpcomingAccountNumberExpiryEvent; + export type FinancialConnectionsSessionUpdatedEvent = Stripe_.FinancialConnectionsSessionUpdatedEvent; + export type FxQuoteExpiredEvent = Stripe_.FxQuoteExpiredEvent; + export type IdentityVerificationSessionCanceledEvent = Stripe_.IdentityVerificationSessionCanceledEvent; + export type IdentityVerificationSessionCreatedEvent = Stripe_.IdentityVerificationSessionCreatedEvent; + export type IdentityVerificationSessionProcessingEvent = Stripe_.IdentityVerificationSessionProcessingEvent; + export type IdentityVerificationSessionRedactedEvent = Stripe_.IdentityVerificationSessionRedactedEvent; + export type IdentityVerificationSessionRequiresInputEvent = Stripe_.IdentityVerificationSessionRequiresInputEvent; + export type IdentityVerificationSessionVerifiedEvent = Stripe_.IdentityVerificationSessionVerifiedEvent; + export type InvoiceCreatedEvent = Stripe_.InvoiceCreatedEvent; + export type InvoiceDeletedEvent = Stripe_.InvoiceDeletedEvent; + export type InvoiceFinalizationFailedEvent = Stripe_.InvoiceFinalizationFailedEvent; + export type InvoiceFinalizedEvent = Stripe_.InvoiceFinalizedEvent; + export type InvoiceMarkedUncollectibleEvent = Stripe_.InvoiceMarkedUncollectibleEvent; + export type InvoiceOverdueEvent = Stripe_.InvoiceOverdueEvent; + export type InvoiceOverpaidEvent = Stripe_.InvoiceOverpaidEvent; + export type InvoicePaidEvent = Stripe_.InvoicePaidEvent; + export type InvoicePaymentOverpaidEvent = Stripe_.InvoicePaymentOverpaidEvent; + export type InvoicePaymentActionRequiredEvent = Stripe_.InvoicePaymentActionRequiredEvent; + export type InvoicePaymentAttemptRequiredEvent = Stripe_.InvoicePaymentAttemptRequiredEvent; + export type InvoicePaymentFailedEvent = Stripe_.InvoicePaymentFailedEvent; + export type InvoicePaymentSucceededEvent = Stripe_.InvoicePaymentSucceededEvent; + export type InvoiceSentEvent = Stripe_.InvoiceSentEvent; + export type InvoiceUpcomingEvent = Stripe_.InvoiceUpcomingEvent; + export type InvoiceUpdatedEvent = Stripe_.InvoiceUpdatedEvent; + export type InvoiceVoidedEvent = Stripe_.InvoiceVoidedEvent; + export type InvoiceWillBeDueEvent = Stripe_.InvoiceWillBeDueEvent; + export type InvoicePaymentDetachedEvent = Stripe_.InvoicePaymentDetachedEvent; + export type InvoicePaymentPaidEvent = Stripe_.InvoicePaymentPaidEvent; + export type InvoiceItemCreatedEvent = Stripe_.InvoiceItemCreatedEvent; + export type InvoiceItemDeletedEvent = Stripe_.InvoiceItemDeletedEvent; + export type IssuingAuthorizationCreatedEvent = Stripe_.IssuingAuthorizationCreatedEvent; + export type IssuingAuthorizationRequestEvent = Stripe_.IssuingAuthorizationRequestEvent; + export type IssuingAuthorizationUpdatedEvent = Stripe_.IssuingAuthorizationUpdatedEvent; + export type IssuingCardCreatedEvent = Stripe_.IssuingCardCreatedEvent; + export type IssuingCardUpdatedEvent = Stripe_.IssuingCardUpdatedEvent; + export type IssuingCardholderCreatedEvent = Stripe_.IssuingCardholderCreatedEvent; + export type IssuingCardholderUpdatedEvent = Stripe_.IssuingCardholderUpdatedEvent; + export type IssuingDisputeClosedEvent = Stripe_.IssuingDisputeClosedEvent; + export type IssuingDisputeCreatedEvent = Stripe_.IssuingDisputeCreatedEvent; + export type IssuingDisputeFundsReinstatedEvent = Stripe_.IssuingDisputeFundsReinstatedEvent; + export type IssuingDisputeFundsRescindedEvent = Stripe_.IssuingDisputeFundsRescindedEvent; + export type IssuingDisputeSubmittedEvent = Stripe_.IssuingDisputeSubmittedEvent; + export type IssuingDisputeUpdatedEvent = Stripe_.IssuingDisputeUpdatedEvent; + export type IssuingDisputeSettlementDetailCreatedEvent = Stripe_.IssuingDisputeSettlementDetailCreatedEvent; + export type IssuingDisputeSettlementDetailUpdatedEvent = Stripe_.IssuingDisputeSettlementDetailUpdatedEvent; + export type IssuingFraudLiabilityDebitCreatedEvent = Stripe_.IssuingFraudLiabilityDebitCreatedEvent; + export type IssuingPersonalizationDesignActivatedEvent = Stripe_.IssuingPersonalizationDesignActivatedEvent; + export type IssuingPersonalizationDesignDeactivatedEvent = Stripe_.IssuingPersonalizationDesignDeactivatedEvent; + export type IssuingPersonalizationDesignRejectedEvent = Stripe_.IssuingPersonalizationDesignRejectedEvent; + export type IssuingPersonalizationDesignUpdatedEvent = Stripe_.IssuingPersonalizationDesignUpdatedEvent; + export type IssuingSettlementCreatedEvent = Stripe_.IssuingSettlementCreatedEvent; + export type IssuingSettlementUpdatedEvent = Stripe_.IssuingSettlementUpdatedEvent; + export type IssuingTokenCreatedEvent = Stripe_.IssuingTokenCreatedEvent; + export type IssuingTokenUpdatedEvent = Stripe_.IssuingTokenUpdatedEvent; + export type IssuingTransactionCreatedEvent = Stripe_.IssuingTransactionCreatedEvent; + export type IssuingTransactionPurchaseDetailsReceiptUpdatedEvent = Stripe_.IssuingTransactionPurchaseDetailsReceiptUpdatedEvent; + export type IssuingTransactionUpdatedEvent = Stripe_.IssuingTransactionUpdatedEvent; + export type MandateUpdatedEvent = Stripe_.MandateUpdatedEvent; + export type PaymentIntentAmountCapturableUpdatedEvent = Stripe_.PaymentIntentAmountCapturableUpdatedEvent; + export type PaymentIntentCanceledEvent = Stripe_.PaymentIntentCanceledEvent; + export type PaymentIntentCreatedEvent = Stripe_.PaymentIntentCreatedEvent; + export type PaymentIntentPartiallyFundedEvent = Stripe_.PaymentIntentPartiallyFundedEvent; + export type PaymentIntentPaymentFailedEvent = Stripe_.PaymentIntentPaymentFailedEvent; + export type PaymentIntentProcessingEvent = Stripe_.PaymentIntentProcessingEvent; + export type PaymentIntentRequiresActionEvent = Stripe_.PaymentIntentRequiresActionEvent; + export type PaymentIntentSucceededEvent = Stripe_.PaymentIntentSucceededEvent; + export type PaymentLinkCreatedEvent = Stripe_.PaymentLinkCreatedEvent; + export type PaymentLinkUpdatedEvent = Stripe_.PaymentLinkUpdatedEvent; + export type PaymentMethodAttachedEvent = Stripe_.PaymentMethodAttachedEvent; + export type PaymentMethodAutomaticallyUpdatedEvent = Stripe_.PaymentMethodAutomaticallyUpdatedEvent; + export type PaymentMethodDetachedEvent = Stripe_.PaymentMethodDetachedEvent; + export type PaymentMethodUpdatedEvent = Stripe_.PaymentMethodUpdatedEvent; + export type PayoutCanceledEvent = Stripe_.PayoutCanceledEvent; + export type PayoutCreatedEvent = Stripe_.PayoutCreatedEvent; + export type PayoutFailedEvent = Stripe_.PayoutFailedEvent; + export type PayoutPaidEvent = Stripe_.PayoutPaidEvent; + export type PayoutReconciliationCompletedEvent = Stripe_.PayoutReconciliationCompletedEvent; + export type PayoutUpdatedEvent = Stripe_.PayoutUpdatedEvent; + export type PersonCreatedEvent = Stripe_.PersonCreatedEvent; + export type PersonDeletedEvent = Stripe_.PersonDeletedEvent; + export type PersonUpdatedEvent = Stripe_.PersonUpdatedEvent; + export type PlanCreatedEvent = Stripe_.PlanCreatedEvent; + export type PlanDeletedEvent = Stripe_.PlanDeletedEvent; + export type PlanUpdatedEvent = Stripe_.PlanUpdatedEvent; + export type PriceCreatedEvent = Stripe_.PriceCreatedEvent; + export type PriceDeletedEvent = Stripe_.PriceDeletedEvent; + export type PriceUpdatedEvent = Stripe_.PriceUpdatedEvent; + export type PrivacyRedactionJobCanceledEvent = Stripe_.PrivacyRedactionJobCanceledEvent; + export type PrivacyRedactionJobCreatedEvent = Stripe_.PrivacyRedactionJobCreatedEvent; + export type PrivacyRedactionJobReadyEvent = Stripe_.PrivacyRedactionJobReadyEvent; + export type PrivacyRedactionJobSucceededEvent = Stripe_.PrivacyRedactionJobSucceededEvent; + export type PrivacyRedactionJobValidationErrorEvent = Stripe_.PrivacyRedactionJobValidationErrorEvent; + export type ProductCreatedEvent = Stripe_.ProductCreatedEvent; + export type ProductDeletedEvent = Stripe_.ProductDeletedEvent; + export type ProductUpdatedEvent = Stripe_.ProductUpdatedEvent; + export type PromotionCodeCreatedEvent = Stripe_.PromotionCodeCreatedEvent; + export type PromotionCodeUpdatedEvent = Stripe_.PromotionCodeUpdatedEvent; + export type QuoteAcceptFailedEvent = Stripe_.QuoteAcceptFailedEvent; + export type QuoteAcceptedEvent = Stripe_.QuoteAcceptedEvent; + export type QuoteAcceptingEvent = Stripe_.QuoteAcceptingEvent; + export type QuoteCanceledEvent = Stripe_.QuoteCanceledEvent; + export type QuoteCreatedEvent = Stripe_.QuoteCreatedEvent; + export type QuoteDraftEvent = Stripe_.QuoteDraftEvent; + export type QuoteFinalizedEvent = Stripe_.QuoteFinalizedEvent; + export type QuoteReestimateFailedEvent = Stripe_.QuoteReestimateFailedEvent; + export type QuoteReestimatedEvent = Stripe_.QuoteReestimatedEvent; + export type QuoteStaleEvent = Stripe_.QuoteStaleEvent; + export type RadarEarlyFraudWarningCreatedEvent = Stripe_.RadarEarlyFraudWarningCreatedEvent; + export type RadarEarlyFraudWarningUpdatedEvent = Stripe_.RadarEarlyFraudWarningUpdatedEvent; + export type RefundCreatedEvent = Stripe_.RefundCreatedEvent; + export type RefundFailedEvent = Stripe_.RefundFailedEvent; + export type RefundUpdatedEvent = Stripe_.RefundUpdatedEvent; + export type ReportingReportRunFailedEvent = Stripe_.ReportingReportRunFailedEvent; + export type ReportingReportRunSucceededEvent = Stripe_.ReportingReportRunSucceededEvent; + export type ReportingReportTypeUpdatedEvent = Stripe_.ReportingReportTypeUpdatedEvent; + export type ReserveHoldCreatedEvent = Stripe_.ReserveHoldCreatedEvent; + export type ReserveHoldUpdatedEvent = Stripe_.ReserveHoldUpdatedEvent; + export type ReservePlanCreatedEvent = Stripe_.ReservePlanCreatedEvent; + export type ReservePlanDisabledEvent = Stripe_.ReservePlanDisabledEvent; + export type ReservePlanExpiredEvent = Stripe_.ReservePlanExpiredEvent; + export type ReservePlanUpdatedEvent = Stripe_.ReservePlanUpdatedEvent; + export type ReserveReleaseCreatedEvent = Stripe_.ReserveReleaseCreatedEvent; + export type ReviewClosedEvent = Stripe_.ReviewClosedEvent; + export type ReviewOpenedEvent = Stripe_.ReviewOpenedEvent; + export type SetupIntentCanceledEvent = Stripe_.SetupIntentCanceledEvent; + export type SetupIntentCreatedEvent = Stripe_.SetupIntentCreatedEvent; + export type SetupIntentRequiresActionEvent = Stripe_.SetupIntentRequiresActionEvent; + export type SetupIntentSetupFailedEvent = Stripe_.SetupIntentSetupFailedEvent; + export type SetupIntentSucceededEvent = Stripe_.SetupIntentSucceededEvent; + export type SigmaScheduledQueryRunCreatedEvent = Stripe_.SigmaScheduledQueryRunCreatedEvent; + export type SourceCanceledEvent = Stripe_.SourceCanceledEvent; + export type SourceChargeableEvent = Stripe_.SourceChargeableEvent; + export type SourceFailedEvent = Stripe_.SourceFailedEvent; + export type SourceMandateNotificationEvent = Stripe_.SourceMandateNotificationEvent; + export type SourceRefundAttributesRequiredEvent = Stripe_.SourceRefundAttributesRequiredEvent; + export type SourceTransactionCreatedEvent = Stripe_.SourceTransactionCreatedEvent; + export type SourceTransactionUpdatedEvent = Stripe_.SourceTransactionUpdatedEvent; + export type SubscriptionScheduleAbortedEvent = Stripe_.SubscriptionScheduleAbortedEvent; + export type SubscriptionScheduleCanceledEvent = Stripe_.SubscriptionScheduleCanceledEvent; + export type SubscriptionScheduleCompletedEvent = Stripe_.SubscriptionScheduleCompletedEvent; + export type SubscriptionScheduleCreatedEvent = Stripe_.SubscriptionScheduleCreatedEvent; + export type SubscriptionScheduleExpiringEvent = Stripe_.SubscriptionScheduleExpiringEvent; + export type SubscriptionSchedulePriceMigrationFailedEvent = Stripe_.SubscriptionSchedulePriceMigrationFailedEvent; + export type SubscriptionScheduleReleasedEvent = Stripe_.SubscriptionScheduleReleasedEvent; + export type SubscriptionScheduleUpdatedEvent = Stripe_.SubscriptionScheduleUpdatedEvent; + export type TaxFormUpdatedEvent = Stripe_.TaxFormUpdatedEvent; + export type TaxSettingsUpdatedEvent = Stripe_.TaxSettingsUpdatedEvent; + export type TaxRateCreatedEvent = Stripe_.TaxRateCreatedEvent; + export type TaxRateUpdatedEvent = Stripe_.TaxRateUpdatedEvent; + export type TerminalReaderActionFailedEvent = Stripe_.TerminalReaderActionFailedEvent; + export type TerminalReaderActionSucceededEvent = Stripe_.TerminalReaderActionSucceededEvent; + export type TerminalReaderActionUpdatedEvent = Stripe_.TerminalReaderActionUpdatedEvent; + export type TestHelpersTestClockAdvancingEvent = Stripe_.TestHelpersTestClockAdvancingEvent; + export type TestHelpersTestClockCreatedEvent = Stripe_.TestHelpersTestClockCreatedEvent; + export type TestHelpersTestClockDeletedEvent = Stripe_.TestHelpersTestClockDeletedEvent; + export type TestHelpersTestClockInternalFailureEvent = Stripe_.TestHelpersTestClockInternalFailureEvent; + export type TestHelpersTestClockReadyEvent = Stripe_.TestHelpersTestClockReadyEvent; + export type TopupCanceledEvent = Stripe_.TopupCanceledEvent; + export type TopupCreatedEvent = Stripe_.TopupCreatedEvent; + export type TopupFailedEvent = Stripe_.TopupFailedEvent; + export type TopupReversedEvent = Stripe_.TopupReversedEvent; + export type TopupSucceededEvent = Stripe_.TopupSucceededEvent; + export type TransferCreatedEvent = Stripe_.TransferCreatedEvent; + export type TransferReversedEvent = Stripe_.TransferReversedEvent; + export type TransferUpdatedEvent = Stripe_.TransferUpdatedEvent; + export type TreasuryCreditReversalCreatedEvent = Stripe_.TreasuryCreditReversalCreatedEvent; + export type TreasuryCreditReversalPostedEvent = Stripe_.TreasuryCreditReversalPostedEvent; + export type TreasuryDebitReversalCompletedEvent = Stripe_.TreasuryDebitReversalCompletedEvent; + export type TreasuryDebitReversalCreatedEvent = Stripe_.TreasuryDebitReversalCreatedEvent; + export type TreasuryDebitReversalInitialCreditGrantedEvent = Stripe_.TreasuryDebitReversalInitialCreditGrantedEvent; + export type TreasuryFinancialAccountClosedEvent = Stripe_.TreasuryFinancialAccountClosedEvent; + export type TreasuryFinancialAccountCreatedEvent = Stripe_.TreasuryFinancialAccountCreatedEvent; + export type TreasuryFinancialAccountFeaturesStatusUpdatedEvent = Stripe_.TreasuryFinancialAccountFeaturesStatusUpdatedEvent; + export type TreasuryInboundTransferCanceledEvent = Stripe_.TreasuryInboundTransferCanceledEvent; + export type TreasuryInboundTransferCreatedEvent = Stripe_.TreasuryInboundTransferCreatedEvent; + export type TreasuryInboundTransferFailedEvent = Stripe_.TreasuryInboundTransferFailedEvent; + export type TreasuryInboundTransferSucceededEvent = Stripe_.TreasuryInboundTransferSucceededEvent; + export type TreasuryOutboundPaymentCanceledEvent = Stripe_.TreasuryOutboundPaymentCanceledEvent; + export type TreasuryOutboundPaymentCreatedEvent = Stripe_.TreasuryOutboundPaymentCreatedEvent; + export type TreasuryOutboundPaymentExpectedArrivalDateUpdatedEvent = Stripe_.TreasuryOutboundPaymentExpectedArrivalDateUpdatedEvent; + export type TreasuryOutboundPaymentFailedEvent = Stripe_.TreasuryOutboundPaymentFailedEvent; + export type TreasuryOutboundPaymentPostedEvent = Stripe_.TreasuryOutboundPaymentPostedEvent; + export type TreasuryOutboundPaymentReturnedEvent = Stripe_.TreasuryOutboundPaymentReturnedEvent; + export type TreasuryOutboundPaymentTrackingDetailsUpdatedEvent = Stripe_.TreasuryOutboundPaymentTrackingDetailsUpdatedEvent; + export type TreasuryOutboundTransferCanceledEvent = Stripe_.TreasuryOutboundTransferCanceledEvent; + export type TreasuryOutboundTransferCreatedEvent = Stripe_.TreasuryOutboundTransferCreatedEvent; + export type TreasuryOutboundTransferExpectedArrivalDateUpdatedEvent = Stripe_.TreasuryOutboundTransferExpectedArrivalDateUpdatedEvent; + export type TreasuryOutboundTransferFailedEvent = Stripe_.TreasuryOutboundTransferFailedEvent; + export type TreasuryOutboundTransferPostedEvent = Stripe_.TreasuryOutboundTransferPostedEvent; + export type TreasuryOutboundTransferReturnedEvent = Stripe_.TreasuryOutboundTransferReturnedEvent; + export type TreasuryOutboundTransferTrackingDetailsUpdatedEvent = Stripe_.TreasuryOutboundTransferTrackingDetailsUpdatedEvent; + export type TreasuryReceivedCreditCreatedEvent = Stripe_.TreasuryReceivedCreditCreatedEvent; + export type TreasuryReceivedCreditFailedEvent = Stripe_.TreasuryReceivedCreditFailedEvent; + export type TreasuryReceivedCreditSucceededEvent = Stripe_.TreasuryReceivedCreditSucceededEvent; + export type TreasuryReceivedDebitCreatedEvent = Stripe_.TreasuryReceivedDebitCreatedEvent; + export type V2List = Stripe_.V2List; + export type V2ListPromise = Stripe_.V2ListPromise; // StripeInterfaceCJSExports: The end of the section generated from our OpenAPI spec - export type Response = Stripe.Response; - export type RequestOptions = Stripe.RequestOptions; - export type RawRequestOptions = Stripe.RawRequestOptions; - export type ApiList = Stripe.ApiList; - export type ApiListPromise = Stripe.ApiListPromise; - export type ApiSearchResultPromise = Stripe.ApiSearchResultPromise; - export type ApiSearchResult = Stripe.ApiSearchResult; - export type StripeStreamResponse = Stripe.StripeStreamResponse; - export type RequestEvent = Stripe.RequestEvent; - export type ResponseEvent = Stripe.ResponseEvent; - export type AppInfo = Stripe.AppInfo; - export type FileData = Stripe.FileData; - export type Metadata = Stripe.Metadata; - export type MetadataParam = Stripe.MetadataParam; - export type Address = Stripe.Address; - export type JapanAddress = Stripe.JapanAddress; - export type AddressParam = Stripe.AddressParam; - export type ShippingAddressParam = Stripe.ShippingAddressParam; - export type JapanAddressParam = Stripe.JapanAddressParam; - export type RangeQueryParam = Stripe.RangeQueryParam; - export type PaginationParams = Stripe.PaginationParams; - export type Emptyable = Stripe.Emptyable; - export type OAuthResource = Stripe.OAuthResource; - export type OAuthToken = Stripe.OAuthToken; - export type OAuthTokenParams = Stripe.OAuthTokenParams; - export type OAuthAuthorizeUrlOptions = Stripe.OAuthAuthorizeUrlOptions; - export type OAuthAuthorizeUrlParams = Stripe.OAuthAuthorizeUrlParams; - export type OAuthDeauthorization = Stripe.OAuthDeauthorization; - export type OAuthDeauthorizeParams = Stripe.OAuthDeauthorizeParams; - export type StripeContextType = Stripe.StripeContextType; - export type StripeRawError = Stripe.StripeRawError; - export type Decimal = Stripe.Decimal; + export type Response = Stripe_.Response; + export type RequestOptions = Stripe_.RequestOptions; + export type RawRequestOptions = Stripe_.RawRequestOptions; + export type ApiList = Stripe_.ApiList; + export type ApiListPromise = Stripe_.ApiListPromise; + export type ApiSearchResultPromise = Stripe_.ApiSearchResultPromise; + export type ApiSearchResult = Stripe_.ApiSearchResult; + export type StripeStreamResponse = Stripe_.StripeStreamResponse; + export type RequestEvent = Stripe_.RequestEvent; + export type ResponseEvent = Stripe_.ResponseEvent; + export type AppInfo = Stripe_.AppInfo; + export type FileData = Stripe_.FileData; + export type Metadata = Stripe_.Metadata; + export type MetadataParam = Stripe_.MetadataParam; + export type Address = Stripe_.Address; + export type JapanAddress = Stripe_.JapanAddress; + export type AddressParam = Stripe_.AddressParam; + export type ShippingAddressParam = Stripe_.ShippingAddressParam; + export type JapanAddressParam = Stripe_.JapanAddressParam; + export type RangeQueryParam = Stripe_.RangeQueryParam; + export type PaginationParams = Stripe_.PaginationParams; + export type Emptyable = Stripe_.Emptyable; + export type OAuthResource = Stripe_.OAuthResource; + export type OAuthToken = Stripe_.OAuthToken; + export type OAuthTokenParams = Stripe_.OAuthTokenParams; + export type OAuthAuthorizeUrlOptions = Stripe_.OAuthAuthorizeUrlOptions; + export type OAuthAuthorizeUrlParams = Stripe_.OAuthAuthorizeUrlParams; + export type OAuthDeauthorization = Stripe_.OAuthDeauthorization; + export type OAuthDeauthorizeParams = Stripe_.OAuthDeauthorizeParams; + export type StripeContextType = Stripe_.StripeContextType; + export type StripeRawError = Stripe_.StripeRawError; + export type Decimal = Stripe_.Decimal; export namespace errors { - export type StripeError = InstanceType; + export type StripeError = InstanceType; export type StripeCardError = InstanceType< - typeof Stripe.errors.StripeCardError + typeof Stripe_.errors.StripeCardError >; export type StripeInvalidRequestError = InstanceType< - typeof Stripe.errors.StripeInvalidRequestError + typeof Stripe_.errors.StripeInvalidRequestError >; export type StripeAPIError = InstanceType< - typeof Stripe.errors.StripeAPIError + typeof Stripe_.errors.StripeAPIError >; export type StripeAuthenticationError = InstanceType< - typeof Stripe.errors.StripeAuthenticationError + typeof Stripe_.errors.StripeAuthenticationError >; export type StripePermissionError = InstanceType< - typeof Stripe.errors.StripePermissionError + typeof Stripe_.errors.StripePermissionError >; export type StripeRateLimitError = InstanceType< - typeof Stripe.errors.StripeRateLimitError + typeof Stripe_.errors.StripeRateLimitError >; export type StripeConnectionError = InstanceType< - typeof Stripe.errors.StripeConnectionError + typeof Stripe_.errors.StripeConnectionError >; export type StripeSignatureVerificationError = InstanceType< - typeof Stripe.errors.StripeSignatureVerificationError + typeof Stripe_.errors.StripeSignatureVerificationError >; export type StripeIdempotencyError = InstanceType< - typeof Stripe.errors.StripeIdempotencyError + typeof Stripe_.errors.StripeIdempotencyError >; export type StripeInvalidGrantError = InstanceType< - typeof Stripe.errors.StripeInvalidGrantError + typeof Stripe_.errors.StripeInvalidGrantError >; } } diff --git a/test/resources/Account.spec.js b/test/resources/Account.spec.js index 9c5d0e5762..ccca31bc6d 100644 --- a/test/resources/Account.spec.js +++ b/test/resources/Account.spec.js @@ -76,6 +76,19 @@ describe('Account Resource', () => { }); }); + // GET /v1/accounts/:id uses an override instead of a normal generated method, + // so it gets its own test. + it('URL-encodes path separators in IDs', () => { + stripe.account.retrieve('acct_123/sources'); + expect(stripe.LAST_REQUEST).to.deep.equal({ + method: 'GET', + url: '/v1/accounts/acct_123%2Fsources', + headers: {}, + data: null, + settings: {}, + }); + }); + it('Sends the correct request with secret key', () => { const key = 'sk_12345678901234567890123456789012'; stripe.account.retrieve(null, undefined, {apiKey: key}); diff --git a/testProjects/cjs-ts/package.json b/testProjects/cjs-ts/package.json index c3b3c84716..a8fb9e45e3 100644 --- a/testProjects/cjs-ts/package.json +++ b/testProjects/cjs-ts/package.json @@ -12,7 +12,7 @@ "lint": "eslint . --ext .ts" }, "devDependencies": { - "@types/node": "~22", + "@types/node": "~22.19", "@typescript-eslint/eslint-plugin": "^5.50.0", "@typescript-eslint/parser": "^5.50.0", "eslint": "^8.33.0", diff --git a/testProjects/types-cjs-node16/package.json b/testProjects/types-cjs-node16/package.json index 41bc0876ce..5b9e6259c9 100644 --- a/testProjects/types-cjs-node16/package.json +++ b/testProjects/types-cjs-node16/package.json @@ -7,7 +7,7 @@ "stripe": "file:../../" }, "devDependencies": { - "@types/node": "~22", + "@types/node": "~22.19", "typescript": "^5.9.3" } } diff --git a/testProjects/types-cjs-node16/typescriptTest.ts b/testProjects/types-cjs-node16/typescriptTest.ts index 2ab5532920..a1259626ad 100644 --- a/testProjects/types-cjs-node16/typescriptTest.ts +++ b/testProjects/types-cjs-node16/typescriptTest.ts @@ -39,6 +39,23 @@ async (): Promise => { let opts: Stripe.RequestOptions; let apiList: Stripe.ApiList; +// Resource sub-types (companion namespace access) +let priceRecurring: Stripe.Price.Recurring; +let customerInvoiceSettings: Stripe.Customer.InvoiceSettings; +let subscriptionBillingMode: Stripe.Subscription.BillingMode; + +// Deep resource sub-types (2+ levels) +const billingModeType: Stripe.Subscription.BillingMode.Type = 'classic'; + +// Nested resource sub-types (product namespace → resource → sub-type) +let alertStatus: Stripe.Billing.Alert.Status; +let terminalTipping: Stripe.Terminal.Configuration.Tipping; +let appsSecretScope: Stripe.Apps.Secret.Scope; + +// Deep params sub-namespaces (2+ levels) +let accountBizProfile: Stripe.AccountCreateParams.BusinessProfile; +let accountBizRevenue: Stripe.AccountCreateParams.BusinessProfile.AnnualRevenue; + // Config strictness // @ts-expect-error - unknown config properties should be rejected const bad = new Stripe('sk_test_123', {unknownProperty: true}); diff --git a/testProjects/types-cjs/package.json b/testProjects/types-cjs/package.json index fdd1746c86..407a7d8eda 100644 --- a/testProjects/types-cjs/package.json +++ b/testProjects/types-cjs/package.json @@ -10,7 +10,7 @@ "runtestproject": "tsc && node typescriptTest.js" }, "devDependencies": { - "@types/node": "~22", + "@types/node": "~22.19", "typescript": "^5.9.3" } } diff --git a/testProjects/types-cjs/typescriptTest.ts b/testProjects/types-cjs/typescriptTest.ts index 8d62a0ebc4..46521d136e 100644 --- a/testProjects/types-cjs/typescriptTest.ts +++ b/testProjects/types-cjs/typescriptTest.ts @@ -443,6 +443,23 @@ const oAuthAuthorizeUrlParams: Stripe.OAuthAuthorizeUrlParams = {}; const oAuthDeauthorization: Stripe.OAuthDeauthorization = {stripe_user_id: ''}; const oAuthDeauthorizeParams: Stripe.OAuthDeauthorizeParams = {}; +// Resource sub-types (companion namespace access) +let priceRecurring: Stripe.Price.Recurring; +let customerInvoiceSettings: Stripe.Customer.InvoiceSettings; +let subscriptionBillingMode: Stripe.Subscription.BillingMode; + +// Deep resource sub-types (2+ levels) +const billingModeType: Stripe.Subscription.BillingMode.Type = 'classic'; + +// Nested resource sub-types (product namespace → resource → sub-type) +let alertStatus: Stripe.Billing.Alert.Status; +let terminalTipping: Stripe.Terminal.Configuration.Tipping; +let appsSecretScope: Stripe.Apps.Secret.Scope; + +// Deep params sub-namespaces (2+ levels) +let accountBizProfile: Stripe.AccountCreateParams.BusinessProfile; +let accountBizRevenue: Stripe.AccountCreateParams.BusinessProfile.AnnualRevenue; + // Access and type top level resources and nested resources const customerResource: Stripe.CustomerResource = new Stripe.CustomerResource( stripe diff --git a/testProjects/types/typescriptTest.ts b/testProjects/types/typescriptTest.ts index d28f84c33f..044f933c93 100644 --- a/testProjects/types/typescriptTest.ts +++ b/testProjects/types/typescriptTest.ts @@ -476,6 +476,23 @@ const oAuthAuthorizeUrlParams: Stripe.OAuthAuthorizeUrlParams = {}; const oAuthDeauthorization: Stripe.OAuthDeauthorization = {stripe_user_id: ''}; const oAuthDeauthorizeParams: Stripe.OAuthDeauthorizeParams = {}; +// Resource sub-types (companion namespace access) +let priceRecurring: Stripe.Price.Recurring; +let customerInvoiceSettings: Stripe.Customer.InvoiceSettings; +let subscriptionBillingMode: Stripe.Subscription.BillingMode; + +// Deep resource sub-types (2+ levels) +const billingModeType: Stripe.Subscription.BillingMode.Type = 'classic'; + +// Nested resource sub-types (product namespace → resource → sub-type) +let alertStatus: Stripe.Billing.Alert.Status; +let terminalTipping: Stripe.Terminal.Configuration.Tipping; +let appsSecretScope: Stripe.Apps.Secret.Scope; + +// Deep params sub-namespaces (2+ levels) +let accountBizProfile: Stripe.AccountCreateParams.BusinessProfile; +let accountBizRevenue: Stripe.AccountCreateParams.BusinessProfile.AnnualRevenue; + // Access and type top level resources and nested resources const customerResource: Stripe.CustomerResource = new Stripe.CustomerResource( stripe