Skip to content
Open
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 CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9e950cbf7b5a814a98f27d1a94b72cd6f1df2078
6f80705d2d79a2be4fee472e1156515f7bbfe3e3
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2203
v2204
158 changes: 79 additions & 79 deletions test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

7 changes: 0 additions & 7 deletions types/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4747,11 +4747,6 @@ declare module 'stripe' {
* Bank account verification method.
*/
verification_method?: UsBankAccount.VerificationMethod;

/**
* Preferred transaction settlement speed
*/
preferred_settlement_speed?: UsBankAccount.PreferredSettlementSpeed;
}

namespace UsBankAccount {
Expand Down Expand Up @@ -4824,8 +4819,6 @@ declare module 'stripe' {
collection_method?: 'paper';
}

type PreferredSettlementSpeed = 'fastest' | 'standard';

type SetupFutureUsage = 'none' | 'off_session' | 'on_session';

type TransactionPurpose =
Expand Down
27 changes: 0 additions & 27 deletions types/PaymentIntentsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6903,13 +6903,6 @@ declare module 'stripe' {
* Bank account verification method.
*/
verification_method?: UsBankAccount.VerificationMethod;

/**
* Preferred transaction settlement speed
*/
preferred_settlement_speed?: Stripe.Emptyable<
UsBankAccount.PreferredSettlementSpeed
>;
}

namespace UsBankAccount {
Expand Down Expand Up @@ -6999,8 +6992,6 @@ declare module 'stripe' {
type Requested = 'ach' | 'us_domestic_wire';
}

type PreferredSettlementSpeed = 'fastest' | 'standard';

type SetupFutureUsage = 'none' | 'off_session' | 'on_session';

type TransactionPurpose =
Expand Down Expand Up @@ -13929,13 +13920,6 @@ declare module 'stripe' {
* Bank account verification method.
*/
verification_method?: UsBankAccount.VerificationMethod;

/**
* Preferred transaction settlement speed
*/
preferred_settlement_speed?: Stripe.Emptyable<
UsBankAccount.PreferredSettlementSpeed
>;
}

namespace UsBankAccount {
Expand Down Expand Up @@ -14025,8 +14009,6 @@ declare module 'stripe' {
type Requested = 'ach' | 'us_domestic_wire';
}

type PreferredSettlementSpeed = 'fastest' | 'standard';

type SetupFutureUsage = 'none' | 'off_session' | 'on_session';

type TransactionPurpose =
Expand Down Expand Up @@ -23152,13 +23134,6 @@ declare module 'stripe' {
* Bank account verification method.
*/
verification_method?: UsBankAccount.VerificationMethod;

/**
* Preferred transaction settlement speed
*/
preferred_settlement_speed?: Stripe.Emptyable<
UsBankAccount.PreferredSettlementSpeed
>;
}

namespace UsBankAccount {
Expand Down Expand Up @@ -23248,8 +23223,6 @@ declare module 'stripe' {
type Requested = 'ach' | 'us_domestic_wire';
}

type PreferredSettlementSpeed = 'fastest' | 'standard';

type SetupFutureUsage = 'none' | 'off_session' | 'on_session';

type TransactionPurpose =
Expand Down
2 changes: 1 addition & 1 deletion types/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ declare module 'stripe' {
*
* 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.
*/
flow_directions: Array<SetupIntent.FlowDirection> | null;
flow_directions?: Array<SetupIntent.FlowDirection> | null;

/**
* The error encountered in the previous SetupIntent confirmation.
Expand Down
28 changes: 2 additions & 26 deletions types/V2/Billing/ServiceActions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ declare module 'stripe' {
/**
* The monetary amount of the credit grant. Required if `type` is `monetary`.
*/
monetary?: Amount.Monetary;
monetary?: V2.Amount;
}

namespace Amount {
Expand All @@ -128,18 +128,6 @@ declare module 'stripe' {
value: string;
}

interface Monetary {
/**
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
*/
value: 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 Type = 'custom_pricing_unit' | 'monetary';
}

Expand Down Expand Up @@ -221,7 +209,7 @@ declare module 'stripe' {
/**
* The monetary amount of the credit grant. Required if `type` is `monetary`.
*/
monetary?: Amount.Monetary;
monetary?: V2.Amount;
}

namespace Amount {
Expand All @@ -242,18 +230,6 @@ declare module 'stripe' {
value: string;
}

interface Monetary {
/**
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
*/
value: 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 Type = 'custom_pricing_unit' | 'monetary';
}

Expand Down
28 changes: 2 additions & 26 deletions types/V2/Billing/ServiceActionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ declare module 'stripe' {
/**
* The monetary amount of the credit grant. Required if `type` is `monetary`.
*/
monetary?: Amount.Monetary;
monetary?: V2.Amount;
}

namespace Amount {
Expand All @@ -100,18 +100,6 @@ declare module 'stripe' {
value: string;
}

interface Monetary {
/**
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
*/
value: 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 Type = 'custom_pricing_unit' | 'monetary';
}

Expand Down Expand Up @@ -198,7 +186,7 @@ declare module 'stripe' {
/**
* The monetary amount of the credit grant. Required if `type` is `monetary`.
*/
monetary?: Amount.Monetary;
monetary?: V2.Amount;
}

namespace Amount {
Expand All @@ -214,18 +202,6 @@ declare module 'stripe' {
value: string;
}

interface Monetary {
/**
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
*/
value: 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 Type = 'custom_pricing_unit' | 'monetary';
}

Expand Down
32 changes: 2 additions & 30 deletions types/V2/Core/AccountTokensResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -468,28 +468,14 @@ declare module 'stripe' {
/**
* A non-negative integer representing the amount in the smallest currency unit.
*/
amount?: AnnualRevenue.Amount;
amount?: Amount;

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

namespace AnnualRevenue {
interface Amount {
/**
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
*/
value: 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;
}
}

interface Documents {
/**
* 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.
Expand Down Expand Up @@ -818,21 +804,7 @@ declare module 'stripe' {
/**
* A non-negative integer representing the amount in the smallest currency unit.
*/
amount?: MonthlyEstimatedRevenue.Amount;
}

namespace MonthlyEstimatedRevenue {
interface Amount {
/**
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
*/
value: 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;
}
amount?: Amount;
}

interface RegistrationDate {
Expand Down
32 changes: 2 additions & 30 deletions types/V2/Core/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7287,28 +7287,14 @@ declare module 'stripe' {
/**
* Annual revenue amount in minor currency units (for example, '123' for 1.23 USD).
*/
amount?: AnnualRevenue.Amount;
amount?: Amount;

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

namespace AnnualRevenue {
interface Amount {
/**
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
*/
value: 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;
}
}

interface Documents {
/**
* 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.
Expand Down Expand Up @@ -7632,21 +7618,7 @@ declare module 'stripe' {
/**
* Estimated monthly revenue amount in minor currency units (for example, '123' for 1.23 USD).
*/
amount?: MonthlyEstimatedRevenue.Amount;
}

namespace MonthlyEstimatedRevenue {
interface Amount {
/**
* A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#minor-units).
*/
value: 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;
}
amount?: Amount;
}

interface RegistrationDate {
Expand Down
Loading
Loading