diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e0801e4ff5..20970a9f96 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1039 \ No newline at end of file +v1047 \ No newline at end of file diff --git a/types/AccountSessions.d.ts b/types/AccountSessions.d.ts index fb0fb07c92..c500d56ae9 100644 --- a/types/AccountSessions.d.ts +++ b/types/AccountSessions.d.ts @@ -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. */ @@ -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. */ diff --git a/types/AccountSessionsResource.d.ts b/types/AccountSessionsResource.d.ts index abee3d1b56..a6b46e9dad 100644 --- a/types/AccountSessionsResource.d.ts +++ b/types/AccountSessionsResource.d.ts @@ -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. */ @@ -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. */ diff --git a/types/Accounts.d.ts b/types/Accounts.d.ts index 0140a161ea..d04e42cd21 100644 --- a/types/Accounts.d.ts +++ b/types/Accounts.d.ts @@ -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; diff --git a/types/Checkout/Sessions.d.ts b/types/Checkout/Sessions.d.ts index 7326d86760..8f71b547c4 100644 --- a/types/Checkout/Sessions.d.ts +++ b/types/Checkout/Sessions.d.ts @@ -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. */ @@ -1546,6 +1551,8 @@ declare module 'stripe' { namespace SavedPaymentMethodOptions { type AllowRedisplayFilter = 'always' | 'limited' | 'unspecified'; + type PaymentMethodRemove = 'disabled' | 'enabled'; + type PaymentMethodSave = 'disabled' | 'enabled'; } diff --git a/types/InvoiceItemsResource.d.ts b/types/InvoiceItemsResource.d.ts index 1325bef18c..1cedc2046c 100644 --- a/types/InvoiceItemsResource.d.ts +++ b/types/InvoiceItemsResource.d.ts @@ -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; @@ -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; diff --git a/types/Invoices.d.ts b/types/Invoices.d.ts index 4530f01df1..d0cb4da0d2 100644 --- a/types/Invoices.d.ts +++ b/types/Invoices.d.ts @@ -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' diff --git a/types/InvoicesResource.d.ts b/types/InvoicesResource.d.ts index d589b0e3b4..915ba12ac8 100644 --- a/types/InvoicesResource.d.ts +++ b/types/InvoicesResource.d.ts @@ -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; @@ -2000,12 +2000,12 @@ declare module 'stripe' { discounts?: Array; /** - * 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; @@ -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; @@ -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; @@ -3175,12 +3175,12 @@ declare module 'stripe' { discounts?: Array; /** - * 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; @@ -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; @@ -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; @@ -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; @@ -4521,12 +4521,12 @@ declare module 'stripe' { discounts?: Array; /** - * 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; @@ -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; @@ -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; @@ -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; diff --git a/types/PaymentIntents.d.ts b/types/PaymentIntents.d.ts index 8ff37bbbb7..8d6f26e96b 100644 --- a/types/PaymentIntents.d.ts +++ b/types/PaymentIntents.d.ts @@ -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' diff --git a/types/SetupAttempts.d.ts b/types/SetupAttempts.d.ts index d16df113f0..513abcbf00 100644 --- a/types/SetupAttempts.d.ts +++ b/types/SetupAttempts.d.ts @@ -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' diff --git a/types/SetupIntents.d.ts b/types/SetupIntents.d.ts index c2b32561b3..1b16b9ea6f 100644 --- a/types/SetupIntents.d.ts +++ b/types/SetupIntents.d.ts @@ -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' diff --git a/types/SubscriptionItemsResource.d.ts b/types/SubscriptionItemsResource.d.ts index 2c92d11501..d245824e65 100644 --- a/types/SubscriptionItemsResource.d.ts +++ b/types/SubscriptionItemsResource.d.ts @@ -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; diff --git a/types/SubscriptionSchedulesResource.d.ts b/types/SubscriptionSchedulesResource.d.ts index 1441e08ed2..baaf5c11b3 100644 --- a/types/SubscriptionSchedulesResource.d.ts +++ b/types/SubscriptionSchedulesResource.d.ts @@ -316,12 +316,12 @@ declare module 'stripe' { discounts?: Array; /** - * 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; @@ -939,12 +939,12 @@ declare module 'stripe' { discounts?: Array; /** - * 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; diff --git a/types/SubscriptionsResource.d.ts b/types/SubscriptionsResource.d.ts index 44ab38f047..8df55d8271 100644 --- a/types/SubscriptionsResource.d.ts +++ b/types/SubscriptionsResource.d.ts @@ -201,12 +201,12 @@ declare module 'stripe' { discounts?: Array; /** - * 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; @@ -1026,12 +1026,12 @@ declare module 'stripe' { discounts?: Array; /** - * 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; @@ -1250,12 +1250,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;