From 72a1382d7c99e8e0ca8474c698b2980dc61b34c3 Mon Sep 17 00:00:00 2001 From: Yejia Chen Date: Tue, 21 Jun 2022 17:45:25 -0400 Subject: [PATCH] Codegen for openapi v158 --- OPENAPI_VERSION | 2 +- types/2020-08-27/Accounts.d.ts | 31 ++++++ types/2020-08-27/Charges.d.ts | 9 ++ types/2020-08-27/Checkout/Sessions.d.ts | 1 + types/2020-08-27/CreditNoteLineItems.d.ts | 10 ++ types/2020-08-27/CreditNotes.d.ts | 5 + types/2020-08-27/Customers.d.ts | 1 + types/2020-08-27/InvoiceLineItems.d.ts | 10 ++ types/2020-08-27/Invoices.d.ts | 53 ++++++++++ types/2020-08-27/Orders.d.ts | 18 +++- types/2020-08-27/PaymentIntents.d.ts | 115 ++++++++++++++++++++++ types/2020-08-27/PaymentMethods.d.ts | 14 +++ types/2020-08-27/SetupIntents.d.ts | 24 +++++ types/2020-08-27/Subscriptions.d.ts | 3 + 14 files changed, 292 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 2b4f3461d7..d13b3bd2b4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v157 \ No newline at end of file +v158 \ No newline at end of file diff --git a/types/2020-08-27/Accounts.d.ts b/types/2020-08-27/Accounts.d.ts index d0a2e74869..4334c9f638 100644 --- a/types/2020-08-27/Accounts.d.ts +++ b/types/2020-08-27/Accounts.d.ts @@ -276,6 +276,11 @@ declare module 'stripe' { */ paynow_payments?: Capabilities.PaynowPayments; + /** + * The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges. + */ + promptpay_payments?: Capabilities.PromptpayPayments; + /** * The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges. */ @@ -361,6 +366,8 @@ declare module 'stripe' { type PaynowPayments = 'active' | 'inactive' | 'pending'; + type PromptpayPayments = 'active' | 'inactive' | 'pending'; + type SepaDebitPayments = 'active' | 'inactive' | 'pending'; type SofortPayments = 'active' | 'inactive' | 'pending'; @@ -1377,6 +1384,11 @@ declare module 'stripe' { */ paynow_payments?: Capabilities.PaynowPayments; + /** + * The promptpay_payments capability. + */ + promptpay_payments?: Capabilities.PromptpayPayments; + /** * The sepa_debit_payments capability. */ @@ -1582,6 +1594,13 @@ declare module 'stripe' { requested?: boolean; } + interface PromptpayPayments { + /** + * 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. @@ -2586,6 +2605,11 @@ declare module 'stripe' { */ paynow_payments?: Capabilities.PaynowPayments; + /** + * The promptpay_payments capability. + */ + promptpay_payments?: Capabilities.PromptpayPayments; + /** * The sepa_debit_payments capability. */ @@ -2791,6 +2815,13 @@ declare module 'stripe' { requested?: boolean; } + interface PromptpayPayments { + /** + * 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 901e7be817..2682e7581e 100644 --- a/types/2020-08-27/Charges.d.ts +++ b/types/2020-08-27/Charges.d.ts @@ -439,6 +439,8 @@ declare module 'stripe' { paynow?: PaymentMethodDetails.Paynow; + promptpay?: PaymentMethodDetails.Promptpay; + sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer; sepa_debit?: PaymentMethodDetails.SepaDebit; @@ -1556,6 +1558,13 @@ declare module 'stripe' { reference: string | null; } + interface Promptpay { + /** + * Bill reference generated by PromptPay + */ + reference: string | null; + } + interface SepaCreditTransfer { /** * Name of the bank associated with the bank account. diff --git a/types/2020-08-27/Checkout/Sessions.d.ts b/types/2020-08-27/Checkout/Sessions.d.ts index 24af8cefcf..a097aff3de 100644 --- a/types/2020-08-27/Checkout/Sessions.d.ts +++ b/types/2020-08-27/Checkout/Sessions.d.ts @@ -2403,6 +2403,7 @@ declare module 'stripe' { | 'oxxo' | 'p24' | 'paynow' + | 'promptpay' | 'sepa_debit' | 'sofort' | 'us_bank_account' diff --git a/types/2020-08-27/CreditNoteLineItems.d.ts b/types/2020-08-27/CreditNoteLineItems.d.ts index 6699de1d56..e8da9c3b77 100644 --- a/types/2020-08-27/CreditNoteLineItems.d.ts +++ b/types/2020-08-27/CreditNoteLineItems.d.ts @@ -21,6 +21,11 @@ declare module 'stripe' { */ amount: number; + /** + * The integer amount in %s representing the amount being credited for this line item, excluding all tax and discounts. + */ + amount_excluding_tax: number | null; + /** * Description of the item being credited. */ @@ -75,6 +80,11 @@ declare module 'stripe' { * Same as `unit_amount`, but contains a decimal value with at most 12 decimal places. */ unit_amount_decimal: string | null; + + /** + * The amount in %s representing the unit amount being credited for this line item, excluding all tax and discounts. + */ + unit_amount_excluding_tax: string | null; } namespace CreditNoteLineItem { diff --git a/types/2020-08-27/CreditNotes.d.ts b/types/2020-08-27/CreditNotes.d.ts index 0789de8c80..7ce6b3f654 100644 --- a/types/2020-08-27/CreditNotes.d.ts +++ b/types/2020-08-27/CreditNotes.d.ts @@ -114,6 +114,11 @@ declare module 'stripe' { */ subtotal: number; + /** + * The integer amount in %s representing the amount of the credit note, excluding all tax and invoice level discounts. + */ + subtotal_excluding_tax: number | null; + /** * The aggregate amounts calculated per tax rate for all line items. */ diff --git a/types/2020-08-27/Customers.d.ts b/types/2020-08-27/Customers.d.ts index f3969ad19a..e3391d4b0a 100644 --- a/types/2020-08-27/Customers.d.ts +++ b/types/2020-08-27/Customers.d.ts @@ -901,6 +901,7 @@ declare module 'stripe' { | 'oxxo' | 'p24' | 'paynow' + | 'promptpay' | 'sepa_debit' | 'sofort' | 'us_bank_account' diff --git a/types/2020-08-27/InvoiceLineItems.d.ts b/types/2020-08-27/InvoiceLineItems.d.ts index 665986bfe5..0282703878 100644 --- a/types/2020-08-27/InvoiceLineItems.d.ts +++ b/types/2020-08-27/InvoiceLineItems.d.ts @@ -21,6 +21,11 @@ declare module 'stripe' { */ amount: number; + /** + * The integer amount in %s representing the amount for this line item, excluding all tax and discounts. + */ + amount_excluding_tax: number | 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). */ @@ -112,6 +117,11 @@ declare module 'stripe' { * A string identifying the type of the source of this line item, either an `invoiceitem` or a `subscription`. */ type: InvoiceLineItem.Type; + + /** + * The amount in %s representing the unit amount for this line item, excluding all tax and discounts. + */ + unit_amount_excluding_tax: string | null; } namespace InvoiceLineItem { diff --git a/types/2020-08-27/Invoices.d.ts b/types/2020-08-27/Invoices.d.ts index c22ee4cf5d..849e75d43b 100644 --- a/types/2020-08-27/Invoices.d.ts +++ b/types/2020-08-27/Invoices.d.ts @@ -327,6 +327,11 @@ declare module 'stripe' { */ subtotal: number; + /** + * The integer amount in %s representing the subtotal of the invoice before any invoice level discount or tax is applied. Item discounts are already incorporated + */ + subtotal_excluding_tax: number | null; + /** * The amount of tax on this invoice. This is the sum of all the tax amounts on this invoice. */ @@ -349,6 +354,11 @@ declare module 'stripe' { */ total_discount_amounts: Array | null; + /** + * The integer amount in %s representing the total amount of the invoice including all discounts but excluding all tax. + */ + total_excluding_tax: number | null; + /** * The aggregate amounts calculated per tax rate for all line items. */ @@ -767,6 +777,7 @@ declare module 'stripe' { | 'konbini' | 'link' | 'paynow' + | 'promptpay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' @@ -1000,6 +1011,13 @@ declare module 'stripe' { */ pending_invoice_items_behavior?: InvoiceCreateParams.PendingInvoiceItemsBehavior; + /** + * Options for invoice PDF rendering. + */ + rendering_options?: Stripe.Emptyable< + InvoiceCreateParams.RenderingOptions + >; + /** * Extra information about a charge for the customer's credit card statement. It must contain at least one letter. If not specified and this invoice is part of a subscription, the default `statement_descriptor` will be set to the first subscription item's product's `statement_descriptor`. */ @@ -1237,6 +1255,7 @@ declare module 'stripe' { | 'konbini' | 'link' | 'paynow' + | 'promptpay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' @@ -1249,6 +1268,19 @@ declare module 'stripe' { | 'include' | 'include_and_require'; + interface RenderingOptions { + /** + * How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. + */ + amount_tax_display?: Stripe.Emptyable< + RenderingOptions.AmountTaxDisplay + >; + } + + namespace RenderingOptions { + type AmountTaxDisplay = 'exclude_tax' | 'include_inclusive_tax'; + } + interface TransferData { /** * The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. @@ -1360,6 +1392,13 @@ declare module 'stripe' { */ payment_settings?: InvoiceUpdateParams.PaymentSettings; + /** + * Options for invoice PDF rendering. + */ + rendering_options?: Stripe.Emptyable< + InvoiceUpdateParams.RenderingOptions + >; + /** * Extra information about a charge for the customer's credit card statement. It must contain at least one letter. If not specified and this invoice is part of a subscription, the default `statement_descriptor` will be set to the first subscription item's product's `statement_descriptor`. */ @@ -1592,6 +1631,7 @@ declare module 'stripe' { | 'konbini' | 'link' | 'paynow' + | 'promptpay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' @@ -1599,6 +1639,19 @@ declare module 'stripe' { | 'wechat_pay'; } + interface RenderingOptions { + /** + * How line-item prices and amounts will be displayed with respect to tax on invoice PDFs. One of `exclude_tax` or `include_inclusive_tax`. `include_inclusive_tax` will include inclusive tax (and exclude exclusive tax) in invoice PDF amounts. `exclude_tax` will exclude all tax (inclusive and exclusive alike) from invoice PDF amounts. + */ + amount_tax_display?: Stripe.Emptyable< + RenderingOptions.AmountTaxDisplay + >; + } + + namespace RenderingOptions { + type AmountTaxDisplay = 'exclude_tax' | 'include_inclusive_tax'; + } + interface TransferData { /** * The amount that will be transferred automatically when the invoice is paid. If no amount is set, the full amount is transferred. diff --git a/types/2020-08-27/Orders.d.ts b/types/2020-08-27/Orders.d.ts index 687a1ebf89..20bd28ee01 100644 --- a/types/2020-08-27/Orders.d.ts +++ b/types/2020-08-27/Orders.d.ts @@ -177,13 +177,18 @@ declare module 'stripe' { */ application_fee_amount: number | null; + /** + * Indicates whether order has been opted into using [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods) to manage payment method types. + */ + automatic_payment_methods: Settings.AutomaticPaymentMethods | null; + /** * PaymentMethod-specific configuration to provide to the order's PaymentIntent. */ payment_method_options: Settings.PaymentMethodOptions | null; /** - * The list of payment method types (e.g., card) to provide to the order's PaymentIntent. + * The list of [payment method types](https://stripe.com/docs/payments/payment-methods/overview) to provide to the order's PaymentIntent. Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). */ payment_method_types: Array | null; @@ -209,6 +214,13 @@ declare module 'stripe' { } namespace Settings { + interface AutomaticPaymentMethods { + /** + * Whether this Order has been opted into managing payment method types via the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). + */ + enabled: boolean; + } + interface PaymentMethodOptions { acss_debit?: PaymentMethodOptions.AcssDebit; @@ -1108,7 +1120,7 @@ declare module 'stripe' { payment_method_options?: Settings.PaymentMethodOptions; /** - * The list of payment method types (e.g., card) to provide to the order's PaymentIntent. + * The list of [payment method types](https://stripe.com/docs/payments/payment-methods/overview) to provide to the order's PaymentIntent. Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). */ payment_method_types?: Array; @@ -2152,7 +2164,7 @@ declare module 'stripe' { payment_method_options?: Settings.PaymentMethodOptions; /** - * The list of payment method types (e.g., card) to provide to the order's PaymentIntent. + * The list of [payment method types](https://stripe.com/docs/payments/payment-methods/overview) to provide to the order's PaymentIntent. Do not include this attribute if you prefer to manage your payment methods from the [Stripe Dashboard](https://dashboard.stripe.com/settings/payment_methods). */ payment_method_types?: Array; diff --git a/types/2020-08-27/PaymentIntents.d.ts b/types/2020-08-27/PaymentIntents.d.ts index 6de283a1a0..545077fd13 100644 --- a/types/2020-08-27/PaymentIntents.d.ts +++ b/types/2020-08-27/PaymentIntents.d.ts @@ -366,6 +366,8 @@ declare module 'stripe' { paynow_display_qr_code?: NextAction.PaynowDisplayQrCode; + promptpay_display_qr_code?: NextAction.PromptpayDisplayQrCode; + redirect_to_url?: NextAction.RedirectToUrl; /** @@ -739,6 +741,28 @@ declare module 'stripe' { image_url_svg: string; } + interface PromptpayDisplayQrCode { + /** + * The raw data string used to generate QR code, it should be used together with QR code library. + */ + data: string; + + /** + * The URL to the hosted PromptPay instructions page, which allows customers to view the PromptPay QR code. + */ + hosted_instructions_url: string; + + /** + * ​​The image_url_png string used to render QR code, can be used as + */ + image_url_png: string; + + /** + * ​​The image_url_svg string used to render QR code, can be used as + */ + 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. @@ -888,6 +912,8 @@ declare module 'stripe' { paynow?: PaymentMethodOptions.Paynow; + promptpay?: PaymentMethodOptions.Promptpay; + sepa_debit?: PaymentMethodOptions.SepaDebit; sofort?: PaymentMethodOptions.Sofort; @@ -1499,6 +1525,17 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Promptpay { + /** + * 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; @@ -2037,6 +2074,11 @@ declare module 'stripe' { */ paynow?: PaymentMethodData.Paynow; + /** + * If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. + */ + promptpay?: PaymentMethodData.Promptpay; + /** * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. */ @@ -2332,6 +2374,8 @@ declare module 'stripe' { interface Paynow {} + interface Promptpay {} + interface RadarOptions { /** * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. @@ -2378,6 +2422,7 @@ declare module 'stripe' { | 'oxxo' | 'p24' | 'paynow' + | 'promptpay' | 'sepa_debit' | 'sofort' | 'us_bank_account' @@ -2539,6 +2584,11 @@ declare module 'stripe' { */ paynow?: Stripe.Emptyable; + /** + * If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. + */ + promptpay?: Stripe.Emptyable; + /** * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -3259,6 +3309,19 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Promptpay { + /** + * 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 @@ -3706,6 +3769,11 @@ declare module 'stripe' { */ paynow?: PaymentMethodData.Paynow; + /** + * If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. + */ + promptpay?: PaymentMethodData.Promptpay; + /** * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. */ @@ -4001,6 +4069,8 @@ declare module 'stripe' { interface Paynow {} + interface Promptpay {} + interface RadarOptions { /** * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. @@ -4047,6 +4117,7 @@ declare module 'stripe' { | 'oxxo' | 'p24' | 'paynow' + | 'promptpay' | 'sepa_debit' | 'sofort' | 'us_bank_account' @@ -4208,6 +4279,11 @@ declare module 'stripe' { */ paynow?: Stripe.Emptyable; + /** + * If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. + */ + promptpay?: Stripe.Emptyable; + /** * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -4928,6 +5004,19 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Promptpay { + /** + * 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 @@ -5510,6 +5599,11 @@ declare module 'stripe' { */ paynow?: PaymentMethodData.Paynow; + /** + * If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. + */ + promptpay?: PaymentMethodData.Promptpay; + /** * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. */ @@ -5805,6 +5899,8 @@ declare module 'stripe' { interface Paynow {} + interface Promptpay {} + interface RadarOptions { /** * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. @@ -5851,6 +5947,7 @@ declare module 'stripe' { | 'oxxo' | 'p24' | 'paynow' + | 'promptpay' | 'sepa_debit' | 'sofort' | 'us_bank_account' @@ -6012,6 +6109,11 @@ declare module 'stripe' { */ paynow?: Stripe.Emptyable; + /** + * If this is a `promptpay` PaymentMethod, this sub-hash contains details about the PromptPay payment method options. + */ + promptpay?: Stripe.Emptyable; + /** * If this is a `sepa_debit` PaymentIntent, this sub-hash contains details about the SEPA Debit payment method options. */ @@ -6732,6 +6834,19 @@ declare module 'stripe' { setup_future_usage?: 'none'; } + interface Promptpay { + /** + * 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 diff --git a/types/2020-08-27/PaymentMethods.d.ts b/types/2020-08-27/PaymentMethods.d.ts index b192752d72..f6e28bc875 100644 --- a/types/2020-08-27/PaymentMethods.d.ts +++ b/types/2020-08-27/PaymentMethods.d.ts @@ -84,6 +84,8 @@ declare module 'stripe' { paynow?: PaymentMethod.Paynow; + promptpay?: PaymentMethod.Promptpay; + /** * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. */ @@ -611,6 +613,8 @@ declare module 'stripe' { interface Paynow {} + interface Promptpay {} + interface RadarOptions { /** * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. @@ -695,6 +699,7 @@ declare module 'stripe' { | 'oxxo' | 'p24' | 'paynow' + | 'promptpay' | 'sepa_debit' | 'sofort' | 'us_bank_account' @@ -903,6 +908,11 @@ declare module 'stripe' { */ paynow?: PaymentMethodCreateParams.Paynow; + /** + * If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. + */ + promptpay?: PaymentMethodCreateParams.Promptpay; + /** * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. */ @@ -1224,6 +1234,8 @@ declare module 'stripe' { interface Paynow {} + interface Promptpay {} + interface RadarOptions { /** * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. @@ -1271,6 +1283,7 @@ declare module 'stripe' { | 'oxxo' | 'p24' | 'paynow' + | 'promptpay' | 'sepa_debit' | 'sofort' | 'us_bank_account' @@ -1482,6 +1495,7 @@ declare module 'stripe' { | 'oxxo' | 'p24' | 'paynow' + | 'promptpay' | 'sepa_debit' | 'sofort' | 'us_bank_account' diff --git a/types/2020-08-27/SetupIntents.d.ts b/types/2020-08-27/SetupIntents.d.ts index 6af1f2f0c7..eaa66bcaac 100644 --- a/types/2020-08-27/SetupIntents.d.ts +++ b/types/2020-08-27/SetupIntents.d.ts @@ -769,6 +769,11 @@ declare module 'stripe' { */ paynow?: PaymentMethodData.Paynow; + /** + * If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. + */ + promptpay?: PaymentMethodData.Promptpay; + /** * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. */ @@ -1064,6 +1069,8 @@ declare module 'stripe' { interface Paynow {} + interface Promptpay {} + interface RadarOptions { /** * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. @@ -1110,6 +1117,7 @@ declare module 'stripe' { | 'oxxo' | 'p24' | 'paynow' + | 'promptpay' | 'sepa_debit' | 'sofort' | 'us_bank_account' @@ -1596,6 +1604,11 @@ declare module 'stripe' { */ paynow?: PaymentMethodData.Paynow; + /** + * If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. + */ + promptpay?: PaymentMethodData.Promptpay; + /** * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. */ @@ -1891,6 +1904,8 @@ declare module 'stripe' { interface Paynow {} + interface Promptpay {} + interface RadarOptions { /** * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. @@ -1937,6 +1952,7 @@ declare module 'stripe' { | 'oxxo' | 'p24' | 'paynow' + | 'promptpay' | 'sepa_debit' | 'sofort' | 'us_bank_account' @@ -2505,6 +2521,11 @@ declare module 'stripe' { */ paynow?: PaymentMethodData.Paynow; + /** + * If this is a `promptpay` PaymentMethod, this hash contains details about the PromptPay payment method. + */ + promptpay?: PaymentMethodData.Promptpay; + /** * Options to configure Radar. See [Radar Session](https://stripe.com/docs/radar/radar-session) for more information. */ @@ -2800,6 +2821,8 @@ declare module 'stripe' { interface Paynow {} + interface Promptpay {} + interface RadarOptions { /** * A [Radar Session](https://stripe.com/docs/radar/radar-session) is a snapshot of the browser metadata and device details that help Radar make more accurate predictions on your payments. @@ -2846,6 +2869,7 @@ declare module 'stripe' { | 'oxxo' | 'p24' | 'paynow' + | 'promptpay' | 'sepa_debit' | 'sofort' | 'us_bank_account' diff --git a/types/2020-08-27/Subscriptions.d.ts b/types/2020-08-27/Subscriptions.d.ts index 0d0b94cd06..91ac59e962 100644 --- a/types/2020-08-27/Subscriptions.d.ts +++ b/types/2020-08-27/Subscriptions.d.ts @@ -446,6 +446,7 @@ declare module 'stripe' { | 'konbini' | 'link' | 'paynow' + | 'promptpay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' @@ -1076,6 +1077,7 @@ declare module 'stripe' { | 'konbini' | 'link' | 'paynow' + | 'promptpay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' @@ -1709,6 +1711,7 @@ declare module 'stripe' { | 'konbini' | 'link' | 'paynow' + | 'promptpay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort'