Skip to content

Commit

Permalink
Update generated code (stripe#1853)
Browse files Browse the repository at this point in the history
* Update generated code for v426

* Update generated code for v430

* Update generated code for v431

* Update generated code for v433

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
Co-authored-by: Richard Marmorstein <[email protected]>
  • Loading branch information
stripe-openapi[bot] and richardm-stripe authored Jul 27, 2023
1 parent f98b13d commit 5380437
Show file tree
Hide file tree
Showing 10 changed files with 70 additions and 16 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v425
v433
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ declare module 'stripe' {
* This is an object representing a person associated with a Stripe account.
*
* A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account.
* See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform pre-filling and account onboarding steps.
* See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform prefilling and account onboarding steps.
*
* Related guide: [Handling identity verification with the API](https://stripe.com/docs/connect/identity-verification-api#person-information)
*/
Expand Down Expand Up @@ -120,6 +120,8 @@ declare module 'stripe' {
*/
mcc: string | null;

monthly_estimated_revenue?: BusinessProfile.MonthlyEstimatedRevenue;

/**
* The customer-facing business name.
*/
Expand Down Expand Up @@ -156,6 +158,20 @@ declare module 'stripe' {
url: string | null;
}

namespace BusinessProfile {
interface MonthlyEstimatedRevenue {
/**
* A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
*/
amount: number;

/**
* 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).
*/
currency: string;
}
}

type BusinessType =
| 'company'
| 'government_entity'
Expand Down
44 changes: 41 additions & 3 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ declare module 'stripe' {
*/
mcc?: string;

/**
* An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
*/
monthly_estimated_revenue?: BusinessProfile.MonthlyEstimatedRevenue;

/**
* The customer-facing business name.
*/
Expand Down Expand Up @@ -129,6 +134,20 @@ declare module 'stripe' {
url?: string;
}

namespace BusinessProfile {
interface MonthlyEstimatedRevenue {
/**
* A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
*/
amount: number;

/**
* 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).
*/
currency: string;
}
}

type BusinessType =
| 'company'
| 'government_entity'
Expand Down Expand Up @@ -1354,6 +1373,11 @@ declare module 'stripe' {
*/
mcc?: string;

/**
* An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
*/
monthly_estimated_revenue?: BusinessProfile.MonthlyEstimatedRevenue;

/**
* The customer-facing business name.
*/
Expand Down Expand Up @@ -1390,6 +1414,20 @@ declare module 'stripe' {
url?: string;
}

namespace BusinessProfile {
interface MonthlyEstimatedRevenue {
/**
* A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
*/
amount: number;

/**
* 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).
*/
currency: string;
}
}

type BusinessType =
| 'company'
| 'government_entity'
Expand Down Expand Up @@ -3276,9 +3314,9 @@ declare module 'stripe' {
* With [Connect](https://stripe.com/docs/connect), you can create Stripe accounts for your users.
* To do this, you'll first need to [register your platform](https://dashboard.stripe.com/account/applications/settings).
*
* If you've already collected information for your connected accounts, you [can pre-fill that information](https://stripe.com/docs/connect/best-practices#onboarding) when
* creating the account. Connect Onboarding won't ask for the pre-filled information during account onboarding.
* You can pre-fill any information on the account.
* If you've already collected information for your connected accounts, you [can prefill that information](https://stripe.com/docs/connect/best-practices#onboarding) when
* creating the account. Connect Onboarding won't ask for the prefilled information during account onboarding.
* You can prefill any information on the account.
*/
create(
params?: AccountCreateParams,
Expand Down
2 changes: 1 addition & 1 deletion types/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1767,7 +1767,7 @@ declare module 'stripe' {
capture_method?: 'manual';

/**
* Token used for persistent Link logins.
* [Deprecated] This is a legacy parameter that no longer has any function.
*/
persistent_token: string | null;

Expand Down
6 changes: 3 additions & 3 deletions types/PaymentIntentsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1641,7 +1641,7 @@ declare module 'stripe' {
capture_method?: Stripe.Emptyable<'manual'>;

/**
* Token used for persistent Link logins.
* [Deprecated] This is a legacy parameter that no longer has any function.
*/
persistent_token?: string;

Expand Down Expand Up @@ -3554,7 +3554,7 @@ declare module 'stripe' {
capture_method?: Stripe.Emptyable<'manual'>;

/**
* Token used for persistent Link logins.
* [Deprecated] This is a legacy parameter that no longer has any function.
*/
persistent_token?: string;

Expand Down Expand Up @@ -5607,7 +5607,7 @@ declare module 'stripe' {
capture_method?: Stripe.Emptyable<'manual'>;

/**
* Token used for persistent Link logins.
* [Deprecated] This is a legacy parameter that no longer has any function.
*/
persistent_token?: string;

Expand Down
2 changes: 1 addition & 1 deletion types/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ declare module 'stripe' {
email: string | null;

/**
* Token used for persistent Link logins.
* [Deprecated] This is a legacy parameter that no longer has any function.
*/
persistent_token?: string;
}
Expand Down
2 changes: 1 addition & 1 deletion types/Persons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare module 'stripe' {
* This is an object representing a person associated with a Stripe account.
*
* A platform cannot access a Standard or Express account's persons after the account starts onboarding, such as after generating an account link for the account.
* See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform pre-filling and account onboarding steps.
* See the [Standard onboarding](https://stripe.com/docs/connect/standard-accounts) or [Express onboarding documentation](https://stripe.com/docs/connect/express-accounts) for information about platform prefilling and account onboarding steps.
*
* Related guide: [Handling identity verification with the API](https://stripe.com/docs/connect/identity-verification-api#person-information)
*/
Expand Down
2 changes: 1 addition & 1 deletion types/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -753,7 +753,7 @@ declare module 'stripe' {

interface Link {
/**
* Token used for persistent Link logins.
* [Deprecated] This is a legacy parameter that no longer has any function.
*/
persistent_token: string | null;
}
Expand Down
6 changes: 3 additions & 3 deletions types/SetupIntentsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -920,7 +920,7 @@ declare module 'stripe' {

interface Link {
/**
* Token used for persistent Link logins.
* [Deprecated] This is a legacy parameter that no longer has any function.
*/
persistent_token?: string;
}
Expand Down Expand Up @@ -1834,7 +1834,7 @@ declare module 'stripe' {

interface Link {
/**
* Token used for persistent Link logins.
* [Deprecated] This is a legacy parameter that no longer has any function.
*/
persistent_token?: string;
}
Expand Down Expand Up @@ -2835,7 +2835,7 @@ declare module 'stripe' {

interface Link {
/**
* Token used for persistent Link logins.
* [Deprecated] This is a legacy parameter that no longer has any function.
*/
persistent_token?: string;
}
Expand Down

0 comments on commit 5380437

Please sign in to comment.