Skip to content

Commit 41787ae

Browse files
Merge upstream and update generated code for v2204 and
2 parents 44d2768 + 7df1388 commit 41787ae

36 files changed

Lines changed: 144 additions & 1082 deletions

CODEGEN_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
9e950cbf7b5a814a98f27d1a94b72cd6f1df2078
1+
85e0466f55837da66b90fce2a7c5b7fc79b83a7c

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v2203
1+
v2204

test/resources/generated_examples_test.spec.js

Lines changed: 71 additions & 71 deletions
Large diffs are not rendered by default.

types/PaymentIntents.d.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4747,11 +4747,6 @@ declare module 'stripe' {
47474747
* Bank account verification method.
47484748
*/
47494749
verification_method?: UsBankAccount.VerificationMethod;
4750-
4751-
/**
4752-
* Preferred transaction settlement speed
4753-
*/
4754-
preferred_settlement_speed?: UsBankAccount.PreferredSettlementSpeed;
47554750
}
47564751

47574752
namespace UsBankAccount {
@@ -4824,8 +4819,6 @@ declare module 'stripe' {
48244819
collection_method?: 'paper';
48254820
}
48264821

4827-
type PreferredSettlementSpeed = 'fastest' | 'standard';
4828-
48294822
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
48304823

48314824
type TransactionPurpose =

types/PaymentIntentsResource.d.ts

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6903,13 +6903,6 @@ declare module 'stripe' {
69036903
* Bank account verification method.
69046904
*/
69056905
verification_method?: UsBankAccount.VerificationMethod;
6906-
6907-
/**
6908-
* Preferred transaction settlement speed
6909-
*/
6910-
preferred_settlement_speed?: Stripe.Emptyable<
6911-
UsBankAccount.PreferredSettlementSpeed
6912-
>;
69136906
}
69146907

69156908
namespace UsBankAccount {
@@ -6999,8 +6992,6 @@ declare module 'stripe' {
69996992
type Requested = 'ach' | 'us_domestic_wire';
70006993
}
70016994

7002-
type PreferredSettlementSpeed = 'fastest' | 'standard';
7003-
70046995
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
70056996

70066997
type TransactionPurpose =
@@ -13929,13 +13920,6 @@ declare module 'stripe' {
1392913920
* Bank account verification method.
1393013921
*/
1393113922
verification_method?: UsBankAccount.VerificationMethod;
13932-
13933-
/**
13934-
* Preferred transaction settlement speed
13935-
*/
13936-
preferred_settlement_speed?: Stripe.Emptyable<
13937-
UsBankAccount.PreferredSettlementSpeed
13938-
>;
1393913923
}
1394013924

1394113925
namespace UsBankAccount {
@@ -14025,8 +14009,6 @@ declare module 'stripe' {
1402514009
type Requested = 'ach' | 'us_domestic_wire';
1402614010
}
1402714011

14028-
type PreferredSettlementSpeed = 'fastest' | 'standard';
14029-
1403014012
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
1403114013

1403214014
type TransactionPurpose =
@@ -23152,13 +23134,6 @@ declare module 'stripe' {
2315223134
* Bank account verification method.
2315323135
*/
2315423136
verification_method?: UsBankAccount.VerificationMethod;
23155-
23156-
/**
23157-
* Preferred transaction settlement speed
23158-
*/
23159-
preferred_settlement_speed?: Stripe.Emptyable<
23160-
UsBankAccount.PreferredSettlementSpeed
23161-
>;
2316223137
}
2316323138

2316423139
namespace UsBankAccount {
@@ -23248,8 +23223,6 @@ declare module 'stripe' {
2324823223
type Requested = 'ach' | 'us_domestic_wire';
2324923224
}
2325023225

23251-
type PreferredSettlementSpeed = 'fastest' | 'standard';
23252-
2325323226
type SetupFutureUsage = 'none' | 'off_session' | 'on_session';
2325423227

2325523228
type TransactionPurpose =

types/SetupIntents.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ declare module 'stripe' {
101101
*
102102
* Include `inbound` if you intend to use the payment method as the origin to pull funds from. Include `outbound` if you intend to use the payment method as the destination to send funds to. You can include both if you intend to use the payment method for both purposes.
103103
*/
104-
flow_directions: Array<SetupIntent.FlowDirection> | null;
104+
flow_directions?: Array<SetupIntent.FlowDirection> | null;
105105

106106
/**
107107
* The error encountered in the previous SetupIntent confirmation.

types/V2/Billing/ServiceActions.d.ts

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ declare module 'stripe' {
107107
/**
108108
* The monetary amount of the credit grant. Required if `type` is `monetary`.
109109
*/
110-
monetary?: Amount.Monetary;
110+
monetary?: V2.Amount;
111111
}
112112

113113
namespace Amount {
@@ -128,18 +128,6 @@ declare module 'stripe' {
128128
value: string;
129129
}
130130

131-
interface Monetary {
132-
/**
133-
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
134-
*/
135-
value: number;
136-
137-
/**
138-
* 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).
139-
*/
140-
currency: string;
141-
}
142-
143131
type Type = 'custom_pricing_unit' | 'monetary';
144132
}
145133

@@ -221,7 +209,7 @@ declare module 'stripe' {
221209
/**
222210
* The monetary amount of the credit grant. Required if `type` is `monetary`.
223211
*/
224-
monetary?: Amount.Monetary;
212+
monetary?: V2.Amount;
225213
}
226214

227215
namespace Amount {
@@ -242,18 +230,6 @@ declare module 'stripe' {
242230
value: string;
243231
}
244232

245-
interface Monetary {
246-
/**
247-
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
248-
*/
249-
value: number;
250-
251-
/**
252-
* 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).
253-
*/
254-
currency: string;
255-
}
256-
257233
type Type = 'custom_pricing_unit' | 'monetary';
258234
}
259235

types/V2/Billing/ServiceActionsResource.d.ts

Lines changed: 2 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ declare module 'stripe' {
8484
/**
8585
* The monetary amount of the credit grant. Required if `type` is `monetary`.
8686
*/
87-
monetary?: Amount.Monetary;
87+
monetary?: V2.Amount;
8888
}
8989

9090
namespace Amount {
@@ -100,18 +100,6 @@ declare module 'stripe' {
100100
value: string;
101101
}
102102

103-
interface Monetary {
104-
/**
105-
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
106-
*/
107-
value: number;
108-
109-
/**
110-
* 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).
111-
*/
112-
currency: string;
113-
}
114-
115103
type Type = 'custom_pricing_unit' | 'monetary';
116104
}
117105

@@ -198,7 +186,7 @@ declare module 'stripe' {
198186
/**
199187
* The monetary amount of the credit grant. Required if `type` is `monetary`.
200188
*/
201-
monetary?: Amount.Monetary;
189+
monetary?: V2.Amount;
202190
}
203191

204192
namespace Amount {
@@ -214,18 +202,6 @@ declare module 'stripe' {
214202
value: string;
215203
}
216204

217-
interface Monetary {
218-
/**
219-
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
220-
*/
221-
value: number;
222-
223-
/**
224-
* 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).
225-
*/
226-
currency: string;
227-
}
228-
229205
type Type = 'custom_pricing_unit' | 'monetary';
230206
}
231207

types/V2/Core/AccountTokensResource.d.ts

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -468,28 +468,14 @@ declare module 'stripe' {
468468
/**
469469
* A non-negative integer representing the amount in the smallest currency unit.
470470
*/
471-
amount?: AnnualRevenue.Amount;
471+
amount?: Amount;
472472

473473
/**
474474
* The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
475475
*/
476476
fiscal_year_end?: string;
477477
}
478478

479-
namespace AnnualRevenue {
480-
interface Amount {
481-
/**
482-
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
483-
*/
484-
value: number;
485-
486-
/**
487-
* 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).
488-
*/
489-
currency: string;
490-
}
491-
}
492-
493479
interface Documents {
494480
/**
495481
* One or more documents that support the bank account ownership verification requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
@@ -818,21 +804,7 @@ declare module 'stripe' {
818804
/**
819805
* A non-negative integer representing the amount in the smallest currency unit.
820806
*/
821-
amount?: MonthlyEstimatedRevenue.Amount;
822-
}
823-
824-
namespace MonthlyEstimatedRevenue {
825-
interface Amount {
826-
/**
827-
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
828-
*/
829-
value: number;
830-
831-
/**
832-
* 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).
833-
*/
834-
currency: string;
835-
}
807+
amount?: Amount;
836808
}
837809

838810
interface RegistrationDate {

types/V2/Core/Accounts.d.ts

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -7287,28 +7287,14 @@ declare module 'stripe' {
72877287
/**
72887288
* Annual revenue amount in minor currency units (for example, '123' for 1.23 USD).
72897289
*/
7290-
amount?: AnnualRevenue.Amount;
7290+
amount?: Amount;
72917291

72927292
/**
72937293
* The close-out date of the preceding fiscal year in ISO 8601 format. E.g. 2023-12-31 for the 31st of December, 2023.
72947294
*/
72957295
fiscal_year_end?: string;
72967296
}
72977297

7298-
namespace AnnualRevenue {
7299-
interface Amount {
7300-
/**
7301-
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
7302-
*/
7303-
value: number;
7304-
7305-
/**
7306-
* 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).
7307-
*/
7308-
currency: string;
7309-
}
7310-
}
7311-
73127298
interface Documents {
73137299
/**
73147300
* One or more documents that support the Bank account ownership verification requirement. Must be a document associated with the account's primary active bank account that displays the last 4 digits of the account number, either a statement or a check.
@@ -7632,21 +7618,7 @@ declare module 'stripe' {
76327618
/**
76337619
* Estimated monthly revenue amount in minor currency units (for example, '123' for 1.23 USD).
76347620
*/
7635-
amount?: MonthlyEstimatedRevenue.Amount;
7636-
}
7637-
7638-
namespace MonthlyEstimatedRevenue {
7639-
interface Amount {
7640-
/**
7641-
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
7642-
*/
7643-
value: number;
7644-
7645-
/**
7646-
* 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).
7647-
*/
7648-
currency: string;
7649-
}
7621+
amount?: Amount;
76507622
}
76517623

76527624
interface RegistrationDate {

0 commit comments

Comments
 (0)