Skip to content

Commit

Permalink
Update generated code (#2095)
Browse files Browse the repository at this point in the history
* Update generated code for v1049

* Update generated code for v1050

* Update generated code for v1051

* Update generated code for v1052

* Update generated code for v1053

* Update generated code for v1054

* Update generated code for v1055

* Update generated code for v1056

* Update generated code for v1058

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed May 30, 2024
1 parent 162ba37 commit 04faec1
Show file tree
Hide file tree
Showing 19 changed files with 664 additions and 100 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1047
v1058
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,8 @@ declare module 'stripe' {
| 'verification_missing_directors'
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}
}

Expand Down Expand Up @@ -1122,7 +1123,8 @@ declare module 'stripe' {
| 'verification_missing_directors'
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}
}

Expand Down
4 changes: 2 additions & 2 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ declare module 'stripe' {
settings?: AccountCreateParams.Settings;

/**
* Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
* Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
*/
tos_acceptance?: AccountCreateParams.TosAcceptance;

Expand Down Expand Up @@ -1566,7 +1566,7 @@ declare module 'stripe' {
settings?: AccountUpdateParams.Settings;

/**
* Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
* Details on the account's acceptance of the [Stripe Services Agreement](https://stripe.com/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
*/
tos_acceptance?: AccountUpdateParams.TosAcceptance;
}
Expand Down
6 changes: 4 additions & 2 deletions types/BankAccounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,8 @@ declare module 'stripe' {
| 'verification_missing_directors'
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}
}

Expand Down Expand Up @@ -383,7 +384,8 @@ declare module 'stripe' {
| 'verification_missing_directors'
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}
}
}
Expand Down
6 changes: 4 additions & 2 deletions types/Capabilities.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ declare module 'stripe' {
| 'verification_missing_directors'
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}
}

Expand Down Expand Up @@ -374,7 +375,8 @@ declare module 'stripe' {
| 'verification_missing_directors'
| 'verification_missing_executives'
| 'verification_missing_owners'
| 'verification_requires_additional_memorandum_of_associations';
| 'verification_requires_additional_memorandum_of_associations'
| 'verification_requires_additional_proof_of_registration';
}
}

Expand Down
2 changes: 1 addition & 1 deletion types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,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`, `cs-CZ`, `en-CZ`, `el-GR`, `en-GR`, `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`
* 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`, `cs-CZ`, `en-CZ`, `ro-RO`, `en-RO`, `el-GR`, `en-GR`, `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
15 changes: 15 additions & 0 deletions types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,11 @@ declare module 'stripe' {

namespace CustomField {
interface Dropdown {
/**
* The value that will pre-fill on the payment page.
*/
default_value: string | null;

/**
* The options available for the customer to select. Up to 200 options allowed.
*/
Expand Down Expand Up @@ -642,6 +647,11 @@ declare module 'stripe' {
}

interface Numeric {
/**
* The value that will pre-fill the field on the payment page.
*/
default_value: string | null;

/**
* The maximum character length constraint for the customer's input.
*/
Expand All @@ -659,6 +669,11 @@ declare module 'stripe' {
}

interface Text {
/**
* The value that will pre-fill the field on the payment page.
*/
default_value: string | null;

/**
* The maximum character length constraint for the customer's input.
*/
Expand Down
17 changes: 16 additions & 1 deletion types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,11 @@ declare module 'stripe' {

namespace CustomField {
interface Dropdown {
/**
* The value that will pre-fill the field on the payment page.Must match a `value` in the `options` array.
*/
default_value?: string;

/**
* The options available for the customer to select. Up to 200 options allowed.
*/
Expand Down Expand Up @@ -454,6 +459,11 @@ declare module 'stripe' {
}

interface Numeric {
/**
* The value that will pre-fill the field on the payment page.
*/
default_value?: string;

/**
* The maximum character length constraint for the customer's input.
*/
Expand All @@ -466,6 +476,11 @@ declare module 'stripe' {
}

interface Text {
/**
* The value that will pre-fill the field on the payment page.
*/
default_value?: string;

/**
* The maximum character length constraint for the customer's input.
*/
Expand Down Expand Up @@ -2116,7 +2131,7 @@ declare module 'stripe' {
shipping_rate?: string;

/**
* Parameters to be passed to Shipping Rate creation for this shipping option
* Parameters to be passed to Shipping Rate creation for this shipping option.
*/
shipping_rate_data?: ShippingOption.ShippingRateData;
}
Expand Down
Loading

0 comments on commit 04faec1

Please sign in to comment.