From b192919379a5c17263418e27cbdb1a369c2ff57c Mon Sep 17 00:00:00 2001 From: Pavel Krymets Date: Wed, 31 Aug 2022 08:24:47 -0700 Subject: [PATCH] Codegen for openapi v188 --- OPENAPI_VERSION | 2 +- types/2022-08-01/Charges.d.ts | 2 +- types/2022-08-01/Checkout/Sessions.d.ts | 4 ++-- types/2022-08-01/Orders.d.ts | 16 ++++++++++++++ types/2022-08-01/PaymentIntents.d.ts | 24 +++++++++++++++++++++ types/2022-08-01/PaymentLinks.d.ts | 10 +++++++++ types/2022-08-01/TestHelpers/Customers.d.ts | 5 ++++- 7 files changed, 58 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 2386eb3967..169d5f2568 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v186 \ No newline at end of file +v188 \ No newline at end of file diff --git a/types/2022-08-01/Charges.d.ts b/types/2022-08-01/Charges.d.ts index 2868dd409d..242ecf3052 100644 --- a/types/2022-08-01/Charges.d.ts +++ b/types/2022-08-01/Charges.d.ts @@ -1467,7 +1467,7 @@ declare module 'stripe' { /** * Preferred language of the Klarna authorization page that the customer is redirected to. - * Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `en-AU`, `en-NZ`, `en-CA`, or `fr-CA` + * Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `es-US`, `fr-FR`, `en-FR`, `en-AU`, `en-NZ`, `en-CA`, `fr-CA`, `pl-PL`, `en-PL`, `pt-PT`, `en-PT`, `de-CH`, `fr-CH`, `it-CH`, or `en-CH` */ preferred_locale: string | null; } diff --git a/types/2022-08-01/Checkout/Sessions.d.ts b/types/2022-08-01/Checkout/Sessions.d.ts index e57a2d4504..e3fd770a05 100644 --- a/types/2022-08-01/Checkout/Sessions.d.ts +++ b/types/2022-08-01/Checkout/Sessions.d.ts @@ -1494,7 +1494,7 @@ declare module 'stripe' { * * For `payment` mode, there is a maximum of 100 line items, however it is recommended to consolidate line items if there are more than a few dozen. * - * For `subscription` mode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices in will be on the initial invoice only. + * For `subscription` mode, there is a maximum of 20 line items with recurring Prices and 20 line items with one-time Prices. Line items with one-time Prices will be on the initial invoice only. */ line_items?: Array; @@ -2080,7 +2080,7 @@ declare module 'stripe' { eps?: PaymentMethodOptions.Eps; /** - * contains details about the EPS payment method options. + * contains details about the FPX payment method options. */ fpx?: PaymentMethodOptions.Fpx; diff --git a/types/2022-08-01/Orders.d.ts b/types/2022-08-01/Orders.d.ts index f20819f257..fa491817bd 100644 --- a/types/2022-08-01/Orders.d.ts +++ b/types/2022-08-01/Orders.d.ts @@ -1582,11 +1582,13 @@ declare module 'stripe' { type PreferredLocale = | 'da-DK' | 'de-AT' + | 'de-CH' | 'de-DE' | 'en-AT' | 'en-AU' | 'en-BE' | 'en-CA' + | 'en-CH' | 'en-DE' | 'en-DK' | 'en-ES' @@ -1598,6 +1600,8 @@ declare module 'stripe' { | 'en-NL' | 'en-NO' | 'en-NZ' + | 'en-PL' + | 'en-PT' | 'en-SE' | 'en-US' | 'es-ES' @@ -1605,11 +1609,15 @@ declare module 'stripe' { | 'fi-FI' | 'fr-BE' | 'fr-CA' + | 'fr-CH' | 'fr-FR' + | 'it-CH' | 'it-IT' | 'nb-NO' | 'nl-BE' | 'nl-NL' + | 'pl-PL' + | 'pt-PT' | 'sv-FI' | 'sv-SE'; } @@ -2736,11 +2744,13 @@ declare module 'stripe' { type PreferredLocale = | 'da-DK' | 'de-AT' + | 'de-CH' | 'de-DE' | 'en-AT' | 'en-AU' | 'en-BE' | 'en-CA' + | 'en-CH' | 'en-DE' | 'en-DK' | 'en-ES' @@ -2752,6 +2762,8 @@ declare module 'stripe' { | 'en-NL' | 'en-NO' | 'en-NZ' + | 'en-PL' + | 'en-PT' | 'en-SE' | 'en-US' | 'es-ES' @@ -2759,11 +2771,15 @@ declare module 'stripe' { | 'fi-FI' | 'fr-BE' | 'fr-CA' + | 'fr-CH' | 'fr-FR' + | 'it-CH' | 'it-IT' | 'nb-NO' | 'nl-BE' | 'nl-NL' + | 'pl-PL' + | 'pt-PT' | 'sv-FI' | 'sv-SE'; } diff --git a/types/2022-08-01/PaymentIntents.d.ts b/types/2022-08-01/PaymentIntents.d.ts index 953f153592..98b62f594a 100644 --- a/types/2022-08-01/PaymentIntents.d.ts +++ b/types/2022-08-01/PaymentIntents.d.ts @@ -3193,11 +3193,13 @@ declare module 'stripe' { type PreferredLocale = | 'da-DK' | 'de-AT' + | 'de-CH' | 'de-DE' | 'en-AT' | 'en-AU' | 'en-BE' | 'en-CA' + | 'en-CH' | 'en-DE' | 'en-DK' | 'en-ES' @@ -3209,6 +3211,8 @@ declare module 'stripe' { | 'en-NL' | 'en-NO' | 'en-NZ' + | 'en-PL' + | 'en-PT' | 'en-SE' | 'en-US' | 'es-ES' @@ -3216,11 +3220,15 @@ declare module 'stripe' { | 'fi-FI' | 'fr-BE' | 'fr-CA' + | 'fr-CH' | 'fr-FR' + | 'it-CH' | 'it-IT' | 'nb-NO' | 'nl-BE' | 'nl-NL' + | 'pl-PL' + | 'pt-PT' | 'sv-FI' | 'sv-SE'; } @@ -4906,11 +4914,13 @@ declare module 'stripe' { type PreferredLocale = | 'da-DK' | 'de-AT' + | 'de-CH' | 'de-DE' | 'en-AT' | 'en-AU' | 'en-BE' | 'en-CA' + | 'en-CH' | 'en-DE' | 'en-DK' | 'en-ES' @@ -4922,6 +4932,8 @@ declare module 'stripe' { | 'en-NL' | 'en-NO' | 'en-NZ' + | 'en-PL' + | 'en-PT' | 'en-SE' | 'en-US' | 'es-ES' @@ -4929,11 +4941,15 @@ declare module 'stripe' { | 'fi-FI' | 'fr-BE' | 'fr-CA' + | 'fr-CH' | 'fr-FR' + | 'it-CH' | 'it-IT' | 'nb-NO' | 'nl-BE' | 'nl-NL' + | 'pl-PL' + | 'pt-PT' | 'sv-FI' | 'sv-SE'; } @@ -6754,11 +6770,13 @@ declare module 'stripe' { type PreferredLocale = | 'da-DK' | 'de-AT' + | 'de-CH' | 'de-DE' | 'en-AT' | 'en-AU' | 'en-BE' | 'en-CA' + | 'en-CH' | 'en-DE' | 'en-DK' | 'en-ES' @@ -6770,6 +6788,8 @@ declare module 'stripe' { | 'en-NL' | 'en-NO' | 'en-NZ' + | 'en-PL' + | 'en-PT' | 'en-SE' | 'en-US' | 'es-ES' @@ -6777,11 +6797,15 @@ declare module 'stripe' { | 'fi-FI' | 'fr-BE' | 'fr-CA' + | 'fr-CH' | 'fr-FR' + | 'it-CH' | 'it-IT' | 'nb-NO' | 'nl-BE' | 'nl-NL' + | 'pl-PL' + | 'pt-PT' | 'sv-FI' | 'sv-SE'; } diff --git a/types/2022-08-01/PaymentLinks.d.ts b/types/2022-08-01/PaymentLinks.d.ts index fd579857df..6ec0000a27 100644 --- a/types/2022-08-01/PaymentLinks.d.ts +++ b/types/2022-08-01/PaymentLinks.d.ts @@ -502,6 +502,11 @@ declare module 'stripe' { type SubmitType = 'auto' | 'book' | 'donate' | 'pay'; interface SubscriptionData { + /** + * The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. + */ + description: string | null; + /** * Integer representing the number of trial period days before the customer is charged for the first time. */ @@ -1069,6 +1074,11 @@ declare module 'stripe' { type SubmitType = 'auto' | 'book' | 'donate' | 'pay'; interface SubscriptionData { + /** + * The subscription's description, meant to be displayable to the customer. Use this field to optionally store an explanation of the subscription. + */ + description?: string; + /** * Integer representing the number of trial period days before the customer is charged for the first time. Has to be at least 1. */ diff --git a/types/2022-08-01/TestHelpers/Customers.d.ts b/types/2022-08-01/TestHelpers/Customers.d.ts index 9f3251cfff..96fa90332d 100644 --- a/types/2022-08-01/TestHelpers/Customers.d.ts +++ b/types/2022-08-01/TestHelpers/Customers.d.ts @@ -5,7 +5,7 @@ declare module 'stripe' { namespace TestHelpers { interface CustomerFundCashBalanceParams { /** - * Amount intended to be collected by this PaymentIntent. A positive integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/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://stripe.com/docs/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 to be used for this test cash balance transaction. A positive integer representing how much to fund in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal) (e.g., 100 cents to fund $1.00 or 100 to fund ¥100, a zero-decimal currency). */ amount: number; @@ -19,6 +19,9 @@ declare module 'stripe' { */ expand?: Array; + /** + * A description of the test funding. This simulates free-text references supplied by customers when making bank transfers to their cash balance. You can use this to test how Stripe's [reconciliation algorithm](https://stripe.com/docs/payments/customer-balance/reconciliation) applies to different user inputs. + */ reference?: string; }