Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Updates #1540

Merged
merged 1 commit into from
Aug 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v186
v188
2 changes: 1 addition & 1 deletion types/2022-08-01/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions types/2022-08-01/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<SessionCreateParams.LineItem>;

Expand Down Expand Up @@ -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;

Expand Down
16 changes: 16 additions & 0 deletions types/2022-08-01/Orders.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -1598,18 +1600,24 @@ declare module 'stripe' {
| 'en-NL'
| 'en-NO'
| 'en-NZ'
| 'en-PL'
| 'en-PT'
| 'en-SE'
| 'en-US'
| 'es-ES'
| 'es-US'
| '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';
}
Expand Down Expand Up @@ -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'
Expand All @@ -2752,18 +2762,24 @@ declare module 'stripe' {
| 'en-NL'
| 'en-NO'
| 'en-NZ'
| 'en-PL'
| 'en-PT'
| 'en-SE'
| 'en-US'
| 'es-ES'
| 'es-US'
| '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';
}
Expand Down
24 changes: 24 additions & 0 deletions types/2022-08-01/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -3209,18 +3211,24 @@ declare module 'stripe' {
| 'en-NL'
| 'en-NO'
| 'en-NZ'
| 'en-PL'
| 'en-PT'
| 'en-SE'
| 'en-US'
| 'es-ES'
| 'es-US'
| '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';
}
Expand Down Expand Up @@ -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'
Expand All @@ -4922,18 +4932,24 @@ declare module 'stripe' {
| 'en-NL'
| 'en-NO'
| 'en-NZ'
| 'en-PL'
| 'en-PT'
| 'en-SE'
| 'en-US'
| 'es-ES'
| 'es-US'
| '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';
}
Expand Down Expand Up @@ -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'
Expand All @@ -6770,18 +6788,24 @@ declare module 'stripe' {
| 'en-NL'
| 'en-NO'
| 'en-NZ'
| 'en-PL'
| 'en-PT'
| 'en-SE'
| 'en-US'
| 'es-ES'
| 'es-US'
| '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';
}
Expand Down
10 changes: 10 additions & 0 deletions types/2022-08-01/PaymentLinks.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down Expand Up @@ -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.
*/
Expand Down
5 changes: 4 additions & 1 deletion types/2022-08-01/TestHelpers/Customers.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -19,6 +19,9 @@ declare module 'stripe' {
*/
expand?: Array<string>;

/**
* 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;
}

Expand Down