diff --git a/types/2020-08-27/Accounts.d.ts b/types/2020-08-27/Accounts.d.ts index 0348aeb10e..d8ae9ade5a 100644 --- a/types/2020-08-27/Accounts.d.ts +++ b/types/2020-08-27/Accounts.d.ts @@ -256,6 +256,11 @@ declare module 'stripe' { */ p24_payments?: Capabilities.P24Payments; + /** + * The status of the paynow payments capability of the account, or whether the account can directly process paynow charges. + */ + paynow_payments?: Capabilities.PaynowPayments; + /** * The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges. */ @@ -323,6 +328,8 @@ declare module 'stripe' { type P24Payments = 'active' | 'inactive' | 'pending'; + type PaynowPayments = 'active' | 'inactive' | 'pending'; + type SepaDebitPayments = 'active' | 'inactive' | 'pending'; type SofortPayments = 'active' | 'inactive' | 'pending'; @@ -1270,6 +1277,11 @@ declare module 'stripe' { */ p24_payments?: Capabilities.P24Payments; + /** + * The paynow_payments capability. + */ + paynow_payments?: Capabilities.PaynowPayments; + /** * The sepa_debit_payments capability. */ @@ -1437,6 +1449,13 @@ declare module 'stripe' { requested?: boolean; } + interface PaynowPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface SepaDebitPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. @@ -2352,6 +2371,11 @@ declare module 'stripe' { */ p24_payments?: Capabilities.P24Payments; + /** + * The paynow_payments capability. + */ + paynow_payments?: Capabilities.PaynowPayments; + /** * The sepa_debit_payments capability. */ @@ -2519,6 +2543,13 @@ declare module 'stripe' { requested?: boolean; } + interface PaynowPayments { + /** + * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. + */ + requested?: boolean; + } + interface SepaDebitPayments { /** * Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays. diff --git a/types/2020-08-27/Charges.d.ts b/types/2020-08-27/Charges.d.ts index 9fad4ccab0..0dfff16846 100644 --- a/types/2020-08-27/Charges.d.ts +++ b/types/2020-08-27/Charges.d.ts @@ -105,6 +105,11 @@ declare module 'stripe' { */ disputed: boolean; + /** + * ID of the balance transaction that describes the reversal of the balance on your account due to payment failure. + */ + failure_balance_transaction?: string | Stripe.BalanceTransaction | null; + /** * Error code explaining reason for charge failure if available (see [the errors section](https://stripe.com/docs/api#errors) for a list of codes). */ @@ -426,6 +431,8 @@ declare module 'stripe' { p24?: PaymentMethodDetails.P24; + paynow?: PaymentMethodDetails.Paynow; + sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer; sepa_debit?: PaymentMethodDetails.SepaDebit; @@ -441,6 +448,8 @@ declare module 'stripe' { */ type: string; + us_bank_account?: PaymentMethodDetails.UsBankAccount; + wechat?: PaymentMethodDetails.Wechat; wechat_pay?: PaymentMethodDetails.WechatPay; @@ -1518,6 +1527,13 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Paynow { + /** + * Reference number associated with this PayNow payment + */ + reference: string | null; + } + interface SepaCreditTransfer { /** * Name of the bank associated with the bank account. @@ -1629,6 +1645,44 @@ declare module 'stripe' { interface StripeAccount {} + 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; + + /** + * Routing number of the bank account. + */ + routing_number: string | null; + } + + namespace UsBankAccount { + type AccountHolderType = 'company' | 'individual'; + + type AccountType = 'checking' | 'savings'; + } + interface Wechat {} interface WechatPay { diff --git a/types/2020-08-27/Checkout/Sessions.d.ts b/types/2020-08-27/Checkout/Sessions.d.ts index 9b37f51eb0..2b286513c4 100644 --- a/types/2020-08-27/Checkout/Sessions.d.ts +++ b/types/2020-08-27/Checkout/Sessions.d.ts @@ -443,6 +443,8 @@ declare module 'stripe' { konbini?: PaymentMethodOptions.Konbini; oxxo?: PaymentMethodOptions.Oxxo; + + us_bank_account?: PaymentMethodOptions.UsBankAccount; } namespace PaymentMethodOptions { @@ -516,6 +518,17 @@ declare module 'stripe' { */ expires_after_days: number; } + + interface UsBankAccount { + /** + * Bank account verification method. + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type VerificationMethod = 'automatic' | 'instant'; + } } type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid'; @@ -1528,6 +1541,11 @@ declare module 'stripe' { */ oxxo?: PaymentMethodOptions.Oxxo; + /** + * contains details about the Us Bank Account payment method options. + */ + us_bank_account?: PaymentMethodOptions.UsBankAccount; + /** * contains details about the WeChat Pay payment method options. */ @@ -1616,6 +1634,17 @@ declare module 'stripe' { expires_after_days?: number; } + interface UsBankAccount { + /** + * Verification method for the intent + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type VerificationMethod = 'automatic' | 'instant'; + } + interface WechatPay { /** * The app ID registered with WeChat Pay. Only required when client is ios or android. @@ -1651,8 +1680,10 @@ declare module 'stripe' { | 'konbini' | 'oxxo' | 'p24' + | 'paynow' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; interface PhoneNumberCollection { diff --git a/types/2020-08-27/Customers.d.ts b/types/2020-08-27/Customers.d.ts index 9ef8688d01..87a5643130 100644 --- a/types/2020-08-27/Customers.d.ts +++ b/types/2020-08-27/Customers.d.ts @@ -717,8 +717,10 @@ declare module 'stripe' { | 'konbini' | 'oxxo' | 'p24' + | 'paynow' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; } diff --git a/types/2020-08-27/Invoices.d.ts b/types/2020-08-27/Invoices.d.ts index 0c19d54944..c9938a22a5 100644 --- a/types/2020-08-27/Invoices.d.ts +++ b/types/2020-08-27/Invoices.d.ts @@ -616,6 +616,11 @@ declare module 'stripe' { * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent. */ konbini: PaymentMethodOptions.Konbini | null; + + /** + * If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. + */ + us_bank_account?: PaymentMethodOptions.UsBankAccount | null; } namespace PaymentMethodOptions { @@ -666,6 +671,17 @@ declare module 'stripe' { } interface Konbini {} + + interface UsBankAccount { + /** + * Bank account verification method. + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } } type PaymentMethodType = @@ -682,9 +698,11 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'konbini' + | 'paynow' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; } @@ -992,6 +1010,13 @@ declare module 'stripe' { * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent. */ konbini?: Stripe.Emptyable; + + /** + * If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. + */ + us_bank_account?: Stripe.Emptyable< + PaymentMethodOptions.UsBankAccount + >; } namespace PaymentMethodOptions { @@ -1045,6 +1070,17 @@ declare module 'stripe' { } interface Konbini {} + + interface UsBankAccount { + /** + * Verification method for the intent + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } } type PaymentMethodType = @@ -1061,9 +1097,11 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'konbini' + | 'paynow' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; } @@ -1263,6 +1301,13 @@ declare module 'stripe' { * If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent. */ konbini?: Stripe.Emptyable; + + /** + * If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. + */ + us_bank_account?: Stripe.Emptyable< + PaymentMethodOptions.UsBankAccount + >; } namespace PaymentMethodOptions { @@ -1316,6 +1361,17 @@ declare module 'stripe' { } interface Konbini {} + + interface UsBankAccount { + /** + * Verification method for the intent + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } } type PaymentMethodType = @@ -1332,9 +1388,11 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'konbini' + | 'paynow' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; } diff --git a/types/2020-08-27/Mandates.d.ts b/types/2020-08-27/Mandates.d.ts index d279f1d61d..e9a9d5055b 100644 --- a/types/2020-08-27/Mandates.d.ts +++ b/types/2020-08-27/Mandates.d.ts @@ -97,6 +97,8 @@ declare module 'stripe' { * The type of the payment method associated with this mandate. An additional hash is included on `payment_method_details` with a name matching this value. It contains mandate information specific to the payment method. */ type: string; + + us_bank_account?: PaymentMethodDetails.UsBankAccount; } namespace PaymentMethodDetails { @@ -171,6 +173,8 @@ declare module 'stripe' { */ url: string; } + + interface UsBankAccount {} } interface SingleUse { diff --git a/types/2020-08-27/PaymentIntents.d.ts b/types/2020-08-27/PaymentIntents.d.ts index 17b94bf023..daa3dbf6a5 100644 --- a/types/2020-08-27/PaymentIntents.d.ts +++ b/types/2020-08-27/PaymentIntents.d.ts @@ -347,6 +347,8 @@ declare module 'stripe' { oxxo_display_details?: NextAction.OxxoDisplayDetails; + paynow_display_qr_code?: NextAction.PaynowDisplayQrCode; + redirect_to_url?: NextAction.RedirectToUrl; /** @@ -530,6 +532,23 @@ declare module 'stripe' { number: string | null; } + interface PaynowDisplayQrCode { + /** + * The raw data string used to generate QR code, it should be used together with QR code library. + */ + data: string; + + /** + * ​​The image_url_png string used to render QR code + */ + image_url_png: string; + + /** + * ​​The image_url_svg string used to render QR code + */ + image_url_svg: string; + } + interface RedirectToUrl { /** * If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion. @@ -554,6 +573,15 @@ declare module 'stripe' { * The URL for the hosted verification page, which allows customers to verify their bank account. */ hosted_verification_url: string; + + /** + * The type of the microdeposit sent to the customer. Used to distinguish between different verification methods. + */ + microdeposit_type?: VerifyWithMicrodeposits.MicrodepositType | null; + } + + namespace VerifyWithMicrodeposits { + type MicrodepositType = 'amounts' | 'descriptor_code'; } interface WechatPayDisplayQrCode { @@ -662,10 +690,14 @@ declare module 'stripe' { p24?: PaymentMethodOptions.P24; + paynow?: PaymentMethodOptions.Paynow; + sepa_debit?: PaymentMethodOptions.SepaDebit; sofort?: PaymentMethodOptions.Sofort; + us_bank_account?: PaymentMethodOptions.UsBankAccount; + wechat_pay?: PaymentMethodOptions.WechatPay; } @@ -723,6 +755,11 @@ declare module 'stripe' { } interface AfterpayClearpay { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + /** * Order identifier shown to the customer in Afterpay's online portal. We recommend using a value that helps you answer any questions a customer might have about * the payment. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes. @@ -827,6 +864,11 @@ declare module 'stripe' { } interface Card { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + /** * Installment details for this payment (Mexico only). * @@ -1049,6 +1091,11 @@ declare module 'stripe' { interface InteracPresent {} interface Klarna { + /** + * Controls when the funds will be captured from the customer's account. + */ + capture_method?: 'manual'; + /** * Preferred locale of the Klarna checkout page that the customer is redirected to. */ @@ -1122,6 +1169,17 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Paynow { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + */ + setup_future_usage?: 'none'; + } + interface SepaDebit { mandate_options?: SepaDebit.MandateOptions; @@ -1170,6 +1228,28 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface UsBankAccount { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + */ + setup_future_usage?: UsBankAccount.SetupFutureUsage; + + /** + * Bank account verification method. + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; + + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } + interface WechatPay { /** * The app ID registered with WeChat Pay. Only required when client is ios or android. @@ -1591,6 +1671,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. + */ + paynow?: PaymentMethodData.Paynow; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -1606,6 +1691,11 @@ declare module 'stripe' { */ type: PaymentMethodData.Type; + /** + * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. + */ + us_bank_account?: PaymentMethodData.UsBankAccount; + /** * If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method. */ @@ -1868,6 +1958,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Paynow {} + interface SepaDebit { /** * IBAN of the bank account. @@ -1903,10 +1995,40 @@ declare module 'stripe' { | 'konbini' | 'oxxo' | 'p24' + | 'paynow' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; + interface UsBankAccount { + /** + * Account holder type: individual or company. + */ + account_holder_type?: UsBankAccount.AccountHolderType; + + /** + * Account number of the bank account. + */ + account_number?: string; + + /** + * Account type: checkings or savings. Defaults to checking if omitted. + */ + account_type?: UsBankAccount.AccountType; + + /** + * Routing number of the bank account. + */ + routing_number?: string; + } + + namespace UsBankAccount { + type AccountHolderType = 'company' | 'individual'; + + type AccountType = 'checking' | 'savings'; + } + interface WechatPay {} } @@ -2008,6 +2130,11 @@ declare module 'stripe' { */ p24?: Stripe.Emptyable; + /** + * If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. + */ + paynow?: Stripe.Emptyable; + /** * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -2018,6 +2145,11 @@ declare module 'stripe' { */ sofort?: Stripe.Emptyable; + /** + * If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. + */ + us_bank_account?: Stripe.Emptyable; + /** * If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options. */ @@ -2085,6 +2217,15 @@ declare module 'stripe' { } interface AfterpayClearpay { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + /** * Order identifier shown to the customer in Afterpay's online portal. We recommend using a value that helps you answer any questions a customer might have about * the payment. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes. @@ -2201,6 +2342,15 @@ declare module 'stripe' { } interface Card { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + /** * A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation. */ @@ -2427,6 +2577,15 @@ declare module 'stripe' { interface InteracPresent {} interface Klarna { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + /** * Preferred language of the Klarna authorization page that the customer is redirected to */ @@ -2545,6 +2704,19 @@ declare module 'stripe' { tos_shown_and_accepted?: boolean; } + interface Paynow { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + * + * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + */ + setup_future_usage?: 'none'; + } + interface SepaDebit { /** * Additional fields for Mandate creation @@ -2600,6 +2772,30 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface UsBankAccount { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + * + * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + */ + setup_future_usage?: Stripe.Emptyable; + + /** + * Verification method for the intent + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; + + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } + interface WechatPay { /** * The app ID registered with WeChat Pay. Only required when client is ios or android. @@ -2900,6 +3096,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. + */ + paynow?: PaymentMethodData.Paynow; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -2915,6 +3116,11 @@ declare module 'stripe' { */ type: PaymentMethodData.Type; + /** + * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. + */ + us_bank_account?: PaymentMethodData.UsBankAccount; + /** * If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method. */ @@ -3177,6 +3383,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Paynow {} + interface SepaDebit { /** * IBAN of the bank account. @@ -3212,10 +3420,40 @@ declare module 'stripe' { | 'konbini' | 'oxxo' | 'p24' + | 'paynow' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; + interface UsBankAccount { + /** + * Account holder type: individual or company. + */ + account_holder_type?: UsBankAccount.AccountHolderType; + + /** + * Account number of the bank account. + */ + account_number?: string; + + /** + * Account type: checkings or savings. Defaults to checking if omitted. + */ + account_type?: UsBankAccount.AccountType; + + /** + * Routing number of the bank account. + */ + routing_number?: string; + } + + namespace UsBankAccount { + type AccountHolderType = 'company' | 'individual'; + + type AccountType = 'checking' | 'savings'; + } + interface WechatPay {} } @@ -3317,6 +3555,11 @@ declare module 'stripe' { */ p24?: Stripe.Emptyable; + /** + * If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. + */ + paynow?: Stripe.Emptyable; + /** * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -3327,6 +3570,11 @@ declare module 'stripe' { */ sofort?: Stripe.Emptyable; + /** + * If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. + */ + us_bank_account?: Stripe.Emptyable; + /** * If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options. */ @@ -3394,6 +3642,15 @@ declare module 'stripe' { } interface AfterpayClearpay { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + /** * Order identifier shown to the customer in Afterpay's online portal. We recommend using a value that helps you answer any questions a customer might have about * the payment. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes. @@ -3510,6 +3767,15 @@ declare module 'stripe' { } interface Card { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + /** * A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation. */ @@ -3736,6 +4002,15 @@ declare module 'stripe' { interface InteracPresent {} interface Klarna { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + /** * Preferred language of the Klarna authorization page that the customer is redirected to */ @@ -3854,6 +4129,19 @@ declare module 'stripe' { tos_shown_and_accepted?: boolean; } + interface Paynow { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + * + * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + */ + setup_future_usage?: 'none'; + } + interface SepaDebit { /** * Additional fields for Mandate creation @@ -3909,6 +4197,30 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface UsBankAccount { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + * + * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + */ + setup_future_usage?: Stripe.Emptyable; + + /** + * Verification method for the intent + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; + + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } + interface WechatPay { /** * The app ID registered with WeChat Pay. Only required when client is ios or android. @@ -4323,6 +4635,11 @@ declare module 'stripe' { */ p24?: PaymentMethodData.P24; + /** + * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. + */ + paynow?: PaymentMethodData.Paynow; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -4338,6 +4655,11 @@ declare module 'stripe' { */ type: PaymentMethodData.Type; + /** + * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. + */ + us_bank_account?: PaymentMethodData.UsBankAccount; + /** * If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method. */ @@ -4600,6 +4922,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Paynow {} + interface SepaDebit { /** * IBAN of the bank account. @@ -4635,10 +4959,40 @@ declare module 'stripe' { | 'konbini' | 'oxxo' | 'p24' + | 'paynow' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; + interface UsBankAccount { + /** + * Account holder type: individual or company. + */ + account_holder_type?: UsBankAccount.AccountHolderType; + + /** + * Account number of the bank account. + */ + account_number?: string; + + /** + * Account type: checkings or savings. Defaults to checking if omitted. + */ + account_type?: UsBankAccount.AccountType; + + /** + * Routing number of the bank account. + */ + routing_number?: string; + } + + namespace UsBankAccount { + type AccountHolderType = 'company' | 'individual'; + + type AccountType = 'checking' | 'savings'; + } + interface WechatPay {} } @@ -4740,6 +5094,11 @@ declare module 'stripe' { */ p24?: Stripe.Emptyable; + /** + * If this is a `paynow` PaymentMethod, this sub-hash contains details about the PayNow payment method options. + */ + paynow?: Stripe.Emptyable; + /** * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -4750,6 +5109,11 @@ declare module 'stripe' { */ sofort?: Stripe.Emptyable; + /** + * If this is a `us_bank_account` PaymentMethod, this sub-hash contains details about the US bank account payment method options. + */ + us_bank_account?: Stripe.Emptyable; + /** * If this is a `wechat_pay` PaymentMethod, this sub-hash contains details about the WeChat Pay payment method options. */ @@ -4817,6 +5181,15 @@ declare module 'stripe' { } interface AfterpayClearpay { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + /** * Order identifier shown to the customer in Afterpay's online portal. We recommend using a value that helps you answer any questions a customer might have about * the payment. The identifier is limited to 128 characters and may contain only letters, digits, underscores, backslashes and dashes. @@ -4933,6 +5306,15 @@ declare module 'stripe' { } interface Card { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + /** * A single-use `cvc_update` Token that represents a card CVC value. When provided, the CVC value will be verified during the card payment attempt. This parameter can only be provided during confirmation. */ @@ -5159,6 +5541,15 @@ declare module 'stripe' { interface InteracPresent {} interface Klarna { + /** + * Controls when the funds will be captured from the customer's account. + * + * If provided, this parameter will override the top-level `capture_method` when finalizing the payment with this payment method type. + * + * If `capture_method` is already set on the PaymentIntent, providing an empty value for this parameter will unset the stored value for this payment method type. + */ + capture_method?: Stripe.Emptyable<'manual'>; + /** * Preferred language of the Klarna authorization page that the customer is redirected to */ @@ -5277,6 +5668,19 @@ declare module 'stripe' { tos_shown_and_accepted?: boolean; } + interface Paynow { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + * + * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + */ + setup_future_usage?: 'none'; + } + interface SepaDebit { /** * Additional fields for Mandate creation @@ -5332,6 +5736,30 @@ declare module 'stripe' { type SetupFutureUsage = 'none' | 'off_session'; } + interface UsBankAccount { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + * Providing this parameter will [attach the payment method](https://stripe.com/docs/payments/save-during-payment) to the PaymentIntent's Customer, if present, after the PaymentIntent is confirmed and any required actions from the user are complete. If no Customer was provided, the payment method can still be [attached](https://stripe.com/docs/api/payment_methods/attach) to a Customer after the transaction completes. + * + * When processing card payments, Stripe also uses `setup_future_usage` to dynamically optimize your payment flow and comply with regional legislation and network rules, such as [SCA](https://stripe.com/docs/strong-customer-authentication). + * + * If `setup_future_usage` is already set and you are performing a request using a publishable key, you may only update the value from `on_session` to `off_session`. + */ + setup_future_usage?: Stripe.Emptyable; + + /** + * Verification method for the intent + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type SetupFutureUsage = 'none' | 'off_session' | 'on_session'; + + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } + interface WechatPay { /** * The app ID registered with WeChat Pay. Only required when client is ios or android. @@ -5402,6 +5830,11 @@ declare module 'stripe' { */ amounts?: Array; + /** + * A six-character code starting with SM present in the microdeposit sent to the bank account. + */ + descriptor_code?: string; + /** * Specifies which fields in the response should be expanded. */ diff --git a/types/2020-08-27/PaymentMethods.d.ts b/types/2020-08-27/PaymentMethods.d.ts index 8a2bc0a9d5..7721aaf9d4 100644 --- a/types/2020-08-27/PaymentMethods.d.ts +++ b/types/2020-08-27/PaymentMethods.d.ts @@ -76,6 +76,8 @@ declare module 'stripe' { p24?: PaymentMethod.P24; + paynow?: PaymentMethod.Paynow; + sepa_debit?: PaymentMethod.SepaDebit; sofort?: PaymentMethod.Sofort; @@ -85,6 +87,8 @@ declare module 'stripe' { */ type: PaymentMethod.Type; + us_bank_account?: PaymentMethod.UsBankAccount; + wechat_pay?: PaymentMethod.WechatPay; } @@ -578,6 +582,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Paynow {} + interface SepaDebit { /** * Bank code of bank associated with the bank account. @@ -651,10 +657,50 @@ declare module 'stripe' { | 'konbini' | 'oxxo' | 'p24' + | 'paynow' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; + 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; + + /** + * The name of the bank. + */ + 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; + + /** + * Routing number of the bank account. + */ + routing_number: string | null; + } + + namespace UsBankAccount { + type AccountHolderType = 'company' | 'individual'; + + type AccountType = 'checking' | 'savings'; + } + interface WechatPay {} } @@ -774,6 +820,11 @@ declare module 'stripe' { */ payment_method?: string; + /** + * If this is a `paynow` PaymentMethod, this hash contains details about the PayNow payment method. + */ + paynow?: PaymentMethodCreateParams.Paynow; + /** * If this is a `sepa_debit` PaymentMethod, this hash contains details about the SEPA debit bank account. */ @@ -789,6 +840,11 @@ declare module 'stripe' { */ type?: PaymentMethodCreateParams.Type; + /** + * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. + */ + us_bank_account?: PaymentMethodCreateParams.UsBankAccount; + /** * If this is an `wechat_pay` PaymentMethod, this hash contains details about the wechat_pay payment method. */ @@ -1077,6 +1133,8 @@ declare module 'stripe' { | 'volkswagen_bank'; } + interface Paynow {} + interface SepaDebit { /** * IBAN of the bank account. @@ -1113,10 +1171,40 @@ declare module 'stripe' { | 'konbini' | 'oxxo' | 'p24' + | 'paynow' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; + interface UsBankAccount { + /** + * Account holder type: individual or company. + */ + account_holder_type?: UsBankAccount.AccountHolderType; + + /** + * Account number of the bank account. + */ + account_number?: string; + + /** + * Account type: checkings or savings. Defaults to checking if omitted. + */ + account_type?: UsBankAccount.AccountType; + + /** + * Routing number of the bank account. + */ + routing_number?: string; + } + + namespace UsBankAccount { + type AccountHolderType = 'company' | 'individual'; + + type AccountType = 'checking' | 'savings'; + } + interface WechatPay {} } @@ -1167,6 +1255,11 @@ declare module 'stripe' { * This is a legacy parameter that will be removed in the future. It is a hash that does not accept any keys. */ sepa_debit?: PaymentMethodUpdateParams.SepaDebit; + + /** + * If this is an `us_bank_account` PaymentMethod, this hash contains details about the US bank account payment method. + */ + us_bank_account?: PaymentMethodUpdateParams.UsBankAccount; } namespace PaymentMethodUpdateParams { @@ -1217,6 +1310,17 @@ declare module 'stripe' { } interface SepaDebit {} + + interface UsBankAccount { + /** + * Bank account type. + */ + account_holder_type?: UsBankAccount.AccountHolderType; + } + + namespace UsBankAccount { + type AccountHolderType = 'company' | 'individual'; + } } interface PaymentMethodListParams extends PaginationParams { @@ -1256,8 +1360,10 @@ declare module 'stripe' { | 'konbini' | 'oxxo' | 'p24' + | 'paynow' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; } diff --git a/types/2020-08-27/SetupAttempts.d.ts b/types/2020-08-27/SetupAttempts.d.ts index e7dfa24b89..64ea073660 100644 --- a/types/2020-08-27/SetupAttempts.d.ts +++ b/types/2020-08-27/SetupAttempts.d.ts @@ -95,6 +95,8 @@ declare module 'stripe' { * The type of the payment method used in the SetupIntent (e.g., `card`). An additional hash is included on `payment_method_details` with a name matching this value. It contains confirmation-specific information for the payment method. */ type: string; + + us_bank_account?: PaymentMethodDetails.UsBankAccount; } namespace PaymentMethodDetails { @@ -330,6 +332,8 @@ declare module 'stripe' { namespace Sofort { type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl'; } + + interface UsBankAccount {} } interface SetupError { diff --git a/types/2020-08-27/SetupIntents.d.ts b/types/2020-08-27/SetupIntents.d.ts index ac24de781a..3baff16a63 100644 --- a/types/2020-08-27/SetupIntents.d.ts +++ b/types/2020-08-27/SetupIntents.d.ts @@ -267,6 +267,15 @@ declare module 'stripe' { * The URL for the hosted verification page, which allows customers to verify their bank account. */ hosted_verification_url: string; + + /** + * The type of the microdeposit sent to the customer. Used to distinguish between different verification methods. + */ + microdeposit_type?: VerifyWithMicrodeposits.MicrodepositType | null; + } + + namespace VerifyWithMicrodeposits { + type MicrodepositType = 'amounts' | 'descriptor_code'; } } @@ -276,6 +285,8 @@ declare module 'stripe' { card?: PaymentMethodOptions.Card; sepa_debit?: PaymentMethodOptions.SepaDebit; + + us_bank_account?: PaymentMethodOptions.UsBankAccount; } namespace PaymentMethodOptions { @@ -415,6 +426,17 @@ declare module 'stripe' { namespace SepaDebit { interface MandateOptions {} } + + interface UsBankAccount { + /** + * Bank account verification method. + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } } type Status = @@ -560,6 +582,11 @@ declare module 'stripe' { * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options. */ sepa_debit?: PaymentMethodOptions.SepaDebit; + + /** + * If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options. + */ + us_bank_account?: PaymentMethodOptions.UsBankAccount; } namespace PaymentMethodOptions { @@ -714,6 +741,17 @@ declare module 'stripe' { namespace SepaDebit { interface MandateOptions {} } + + interface UsBankAccount { + /** + * Verification method for the intent + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } } interface SingleUse { @@ -798,6 +836,11 @@ declare module 'stripe' { * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options. */ sepa_debit?: PaymentMethodOptions.SepaDebit; + + /** + * If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options. + */ + us_bank_account?: PaymentMethodOptions.UsBankAccount; } namespace PaymentMethodOptions { @@ -952,6 +995,17 @@ declare module 'stripe' { namespace SepaDebit { interface MandateOptions {} } + + interface UsBankAccount { + /** + * Verification method for the intent + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } } } @@ -1127,6 +1181,11 @@ declare module 'stripe' { * If this is a `sepa_debit` SetupIntent, this sub-hash contains details about the SEPA Debit payment method options. */ sepa_debit?: PaymentMethodOptions.SepaDebit; + + /** + * If this is a `us_bank_account` SetupIntent, this sub-hash contains details about the US bank account payment method options. + */ + us_bank_account?: PaymentMethodOptions.UsBankAccount; } namespace PaymentMethodOptions { @@ -1281,6 +1340,17 @@ declare module 'stripe' { namespace SepaDebit { interface MandateOptions {} } + + interface UsBankAccount { + /** + * Verification method for the intent + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } } } @@ -1290,6 +1360,11 @@ declare module 'stripe' { */ amounts?: Array; + /** + * A six-character code starting with SM present in the microdeposit sent to the bank account. + */ + descriptor_code?: string; + /** * Specifies which fields in the response should be expanded. */ diff --git a/types/2020-08-27/Subscriptions.d.ts b/types/2020-08-27/Subscriptions.d.ts index 0a18d4993d..d6153534c1 100644 --- a/types/2020-08-27/Subscriptions.d.ts +++ b/types/2020-08-27/Subscriptions.d.ts @@ -268,6 +268,11 @@ declare module 'stripe' { * This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription. */ konbini: PaymentMethodOptions.Konbini | null; + + /** + * This sub-hash contains details about the ACH direct debit payment method options to pass to invoices created by the subscription. + */ + us_bank_account?: PaymentMethodOptions.UsBankAccount | null; } namespace PaymentMethodOptions { @@ -341,6 +346,17 @@ declare module 'stripe' { } interface Konbini {} + + interface UsBankAccount { + /** + * Bank account verification method. + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } } type PaymentMethodType = @@ -357,9 +373,11 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'konbini' + | 'paynow' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; } @@ -798,6 +816,13 @@ declare module 'stripe' { * This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent. */ konbini?: Stripe.Emptyable; + + /** + * This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. + */ + us_bank_account?: Stripe.Emptyable< + PaymentMethodOptions.UsBankAccount + >; } namespace PaymentMethodOptions { @@ -877,6 +902,17 @@ declare module 'stripe' { } interface Konbini {} + + interface UsBankAccount { + /** + * Verification method for the intent + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } } type PaymentMethodType = @@ -893,9 +929,11 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'konbini' + | 'paynow' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; } @@ -1339,6 +1377,13 @@ declare module 'stripe' { * This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent. */ konbini?: Stripe.Emptyable; + + /** + * This sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent. + */ + us_bank_account?: Stripe.Emptyable< + PaymentMethodOptions.UsBankAccount + >; } namespace PaymentMethodOptions { @@ -1418,6 +1463,17 @@ declare module 'stripe' { } interface Konbini {} + + interface UsBankAccount { + /** + * Verification method for the intent + */ + verification_method?: UsBankAccount.VerificationMethod; + } + + namespace UsBankAccount { + type VerificationMethod = 'automatic' | 'instant' | 'microdeposits'; + } } type PaymentMethodType = @@ -1434,9 +1490,11 @@ declare module 'stripe' { | 'grabpay' | 'ideal' | 'konbini' + | 'paynow' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' + | 'us_bank_account' | 'wechat_pay'; } diff --git a/types/2020-08-27/index.d.ts b/types/2020-08-27/index.d.ts index 0eb7736d65..b943c01e04 100644 --- a/types/2020-08-27/index.d.ts +++ b/types/2020-08-27/index.d.ts @@ -217,7 +217,8 @@ declare module 'stripe' { /** * API Errors */ - errors: typeof Stripe.errors; + static errors: Stripe.Errors; + errors: Stripe.Errors; on(event: 'request', handler: (event: Stripe.RequestEvent) => void): void; on(event: 'response', handler: (event: Stripe.ResponseEvent) => void): void;