Skip to content

Commit

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

* Update generated code for v1044

* Update generated code for v1045

* Update generated code for v1046

* Update generated code for v1047

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
  • Loading branch information
stripe-openapi[bot] committed May 23, 2024
1 parent a5f4ccc commit 24fe1be
Show file tree
Hide file tree
Showing 14 changed files with 73 additions and 42 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1039
v1047
10 changes: 10 additions & 0 deletions types/AccountSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ declare module 'stripe' {
*/
edit_payout_schedule: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
*/
external_account_collection: boolean;

/**
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
Expand Down Expand Up @@ -243,6 +248,11 @@ declare module 'stripe' {
*/
edit_payout_schedule: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
*/
external_account_collection: boolean;

/**
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
Expand Down
10 changes: 10 additions & 0 deletions types/AccountSessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,11 @@ declare module 'stripe' {
*/
edit_payout_schedule?: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
*/
external_account_collection?: boolean;

/**
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
Expand Down Expand Up @@ -269,6 +274,11 @@ declare module 'stripe' {
*/
edit_payout_schedule?: boolean;

/**
* Whether to allow platforms to control bank account collection for their connected accounts. This feature can only be false for custom accounts (or accounts where the platform is compliance owner). Otherwise, bank account collection is determined by compliance requirements.
*/
external_account_collection?: boolean;

/**
* Whether to allow creation of instant payouts. Default `true` when Stripe owns Loss Liability, default `false` otherwise.
*/
Expand Down
2 changes: 1 addition & 1 deletion types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ declare module 'stripe' {
link_payments?: Capabilities.LinkPayments;

/**
* The status of the MobilepPay capability of the account, or whether the account can directly process MobilePay charges.
* The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
*/
mobilepay_payments?: Capabilities.MobilepayPayments;

Expand Down
7 changes: 7 additions & 0 deletions types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1537,6 +1537,11 @@ declare module 'stripe' {
SavedPaymentMethodOptions.AllowRedisplayFilter
> | null;

/**
* Enable customers to choose if they wish to remove their saved payment methods. Disabled by default.
*/
payment_method_remove: SavedPaymentMethodOptions.PaymentMethodRemove | null;

/**
* Enable customers to choose if they wish to save their payment method for future use. Disabled by default.
*/
Expand All @@ -1546,6 +1551,8 @@ declare module 'stripe' {
namespace SavedPaymentMethodOptions {
type AllowRedisplayFilter = 'always' | 'limited' | 'unspecified';

type PaymentMethodRemove = 'disabled' | 'enabled';

type PaymentMethodSave = 'disabled' | 'enabled';
}

Expand Down
8 changes: 4 additions & 4 deletions types/InvoiceItemsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ declare module 'stripe' {
period?: InvoiceItemCreateParams.Period;

/**
* The ID of the price object.
* The ID of the price object. One of `price` or `price_data` is required.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: InvoiceItemCreateParams.PriceData;

Expand Down Expand Up @@ -207,12 +207,12 @@ declare module 'stripe' {
period?: InvoiceItemUpdateParams.Period;

/**
* The ID of the price object.
* The ID of the price object. One of `price` or `price_data` is required.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: InvoiceItemUpdateParams.PriceData;

Expand Down
1 change: 1 addition & 0 deletions types/Invoices.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@ declare module 'stripe' {
| 'terminal_location_country_unsupported'
| 'terminal_reader_busy'
| 'terminal_reader_hardware_fault'
| 'terminal_reader_invalid_location_for_payment'
| 'terminal_reader_offline'
| 'terminal_reader_timeout'
| 'testmode_charges_only'
Expand Down
48 changes: 24 additions & 24 deletions types/InvoicesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1733,12 +1733,12 @@ declare module 'stripe' {
period?: InvoiceItem.Period;

/**
* The ID of the price object.
* The ID of the price object. One of `price` or `price_data` is required.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: InvoiceItem.PriceData;

Expand Down Expand Up @@ -2000,12 +2000,12 @@ declare module 'stripe' {
discounts?: Array<AddInvoiceItem.Discount>;

/**
* The ID of the price object.
* The ID of the price object. One of `price` or `price_data` is required.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: AddInvoiceItem.PriceData;

Expand Down Expand Up @@ -2409,12 +2409,12 @@ declare module 'stripe' {
plan?: string;

/**
* The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
* The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: Item.PriceData;

Expand Down Expand Up @@ -2908,12 +2908,12 @@ declare module 'stripe' {
period?: InvoiceItem.Period;

/**
* The ID of the price object.
* The ID of the price object. One of `price` or `price_data` is required.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: InvoiceItem.PriceData;

Expand Down Expand Up @@ -3175,12 +3175,12 @@ declare module 'stripe' {
discounts?: Array<AddInvoiceItem.Discount>;

/**
* The ID of the price object.
* The ID of the price object. One of `price` or `price_data` is required.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: AddInvoiceItem.PriceData;

Expand Down Expand Up @@ -3586,12 +3586,12 @@ declare module 'stripe' {
plan?: string;

/**
* The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
* The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: Item.PriceData;

Expand Down Expand Up @@ -3729,12 +3729,12 @@ declare module 'stripe' {
plan?: string;

/**
* The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
* The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: SubscriptionItem.PriceData;

Expand Down Expand Up @@ -4254,12 +4254,12 @@ declare module 'stripe' {
period?: InvoiceItem.Period;

/**
* The ID of the price object.
* The ID of the price object. One of `price` or `price_data` is required.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: InvoiceItem.PriceData;

Expand Down Expand Up @@ -4521,12 +4521,12 @@ declare module 'stripe' {
discounts?: Array<AddInvoiceItem.Discount>;

/**
* The ID of the price object.
* The ID of the price object. One of `price` or `price_data` is required.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: AddInvoiceItem.PriceData;

Expand Down Expand Up @@ -4932,12 +4932,12 @@ declare module 'stripe' {
plan?: string;

/**
* The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
* The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: Item.PriceData;

Expand Down Expand Up @@ -5075,12 +5075,12 @@ declare module 'stripe' {
plan?: string;

/**
* The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
* The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: SubscriptionItem.PriceData;

Expand Down Expand Up @@ -5245,12 +5245,12 @@ declare module 'stripe' {
period?: InvoiceUpdateLineItemParams.Period;

/**
* The ID of the price object.
* The ID of the price object. One of `price` or `price_data` is required.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: InvoiceUpdateLineItemParams.PriceData;

Expand Down
1 change: 1 addition & 0 deletions types/PaymentIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -537,6 +537,7 @@ declare module 'stripe' {
| 'terminal_location_country_unsupported'
| 'terminal_reader_busy'
| 'terminal_reader_hardware_fault'
| 'terminal_reader_invalid_location_for_payment'
| 'terminal_reader_offline'
| 'terminal_reader_timeout'
| 'testmode_charges_only'
Expand Down
1 change: 1 addition & 0 deletions types/SetupAttempts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -780,6 +780,7 @@ declare module 'stripe' {
| 'terminal_location_country_unsupported'
| 'terminal_reader_busy'
| 'terminal_reader_hardware_fault'
| 'terminal_reader_invalid_location_for_payment'
| 'terminal_reader_offline'
| 'terminal_reader_timeout'
| 'testmode_charges_only'
Expand Down
1 change: 1 addition & 0 deletions types/SetupIntents.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,7 @@ declare module 'stripe' {
| 'terminal_location_country_unsupported'
| 'terminal_reader_busy'
| 'terminal_reader_hardware_fault'
| 'terminal_reader_invalid_location_for_payment'
| 'terminal_reader_offline'
| 'terminal_reader_timeout'
| 'testmode_charges_only'
Expand Down
4 changes: 2 additions & 2 deletions types/SubscriptionItemsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,12 @@ declare module 'stripe' {
plan?: string;

/**
* The ID of the price object. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
* The ID of the price object. One of `price` or `price_data` is required. When changing a subscription item's price, `quantity` is set to 1 unless a `quantity` parameter is provided.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: SubscriptionItemUpdateParams.PriceData;

Expand Down
8 changes: 4 additions & 4 deletions types/SubscriptionSchedulesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,12 +316,12 @@ declare module 'stripe' {
discounts?: Array<AddInvoiceItem.Discount>;

/**
* The ID of the price object.
* The ID of the price object. One of `price` or `price_data` is required.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: AddInvoiceItem.PriceData;

Expand Down Expand Up @@ -939,12 +939,12 @@ declare module 'stripe' {
discounts?: Array<AddInvoiceItem.Discount>;

/**
* The ID of the price object.
* The ID of the price object. One of `price` or `price_data` is required.
*/
price?: string;

/**
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline.
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
*/
price_data?: AddInvoiceItem.PriceData;

Expand Down
Loading

0 comments on commit 24fe1be

Please sign in to comment.