stripe 14.25.0 → 15.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +93 -26
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountSessions.d.ts +46 -1
- package/types/AccountSessionsResource.d.ts +58 -1
- package/types/Accounts.d.ts +2 -2
- package/types/BalanceTransactions.d.ts +1 -5
- package/types/BankAccounts.d.ts +2 -2
- package/types/Billing/MeterEventAdjustments.d.ts +7 -4
- package/types/Billing/MeterEventAdjustmentsResource.d.ts +9 -9
- package/types/Billing/Meters.d.ts +1 -1
- package/types/BillingPortal/Configurations.d.ts +0 -9
- package/types/BillingPortal/ConfigurationsResource.d.ts +0 -24
- package/types/BillingPortal/Sessions.d.ts +1 -1
- package/types/BillingPortal/SessionsResource.d.ts +1 -1
- package/types/Capabilities.d.ts +2 -2
- package/types/Charges.d.ts +6 -2
- package/types/ChargesResource.d.ts +2 -2
- package/types/Checkout/Sessions.d.ts +10 -2
- package/types/Checkout/SessionsResource.d.ts +22 -1
- package/types/Climate/Suppliers.d.ts +1 -2
- package/types/ConfirmationTokens.d.ts +5 -0
- package/types/CustomersResource.d.ts +11 -2
- package/types/EventTypes.d.ts +9 -113
- package/types/Events.d.ts +1 -9
- package/types/FinancialConnections/Accounts.d.ts +5 -0
- package/types/Invoices.d.ts +15 -15
- package/types/InvoicesResource.d.ts +14 -50
- package/types/PaymentIntents.d.ts +14 -1
- package/types/PaymentIntentsResource.d.ts +114 -30
- package/types/PaymentMethodConfigurations.d.ts +36 -180
- package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
- package/types/PaymentMethods.d.ts +5 -0
- package/types/PaymentMethodsResource.d.ts +9 -0
- package/types/Persons.d.ts +2 -2
- package/types/Products.d.ts +6 -6
- package/types/ProductsResource.d.ts +13 -11
- package/types/Refunds.d.ts +4 -0
- package/types/Reporting/ReportRunsResource.d.ts +1 -2
- package/types/SetupAttempts.d.ts +4 -0
- package/types/SetupIntents.d.ts +10 -6
- package/types/SetupIntentsResource.d.ts +48 -3
- package/types/Subscriptions.d.ts +6 -2
- package/types/SubscriptionsResource.d.ts +2 -2
- package/types/Tax/Calculations.d.ts +5 -1
- package/types/Tax/CalculationsResource.d.ts +5 -1
- package/types/Tax/Transactions.d.ts +5 -1
- package/types/TaxIds.d.ts +5 -1
- package/types/TaxIdsResource.d.ts +5 -1
- package/types/TaxRates.d.ts +1 -2
- package/types/TaxRatesResource.d.ts +2 -4
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +8 -0
- package/types/TransferReversals.d.ts +1 -1
- package/types/UsageRecords.d.ts +2 -0
- package/types/WebhookEndpointsResource.d.ts +4 -19
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,36 +1,103 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 15.1.0 - 2024-04-11
|
|
4
|
+
* [#2062](https://github.com/stripe/stripe-node/pull/2062) Update generated code
|
|
5
|
+
* Add support for `account_management` and `notification_banner` on `AccountSession.components` and `AccountSessionCreateParams.components`
|
|
6
|
+
* Add support for `external_account_collection` on `AccountSession.components.account_onboarding.features` and `AccountSessionCreateParams.components.account_onboarding.features`
|
|
7
|
+
* Add support for new values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
|
|
8
|
+
* Change `Billing.MeterEventAdjustmentCreateParams.cancel.identifier` and `Billing.MeterEventAdjustmentCreateParams.cancel` to be optional
|
|
9
|
+
* Change `Billing.MeterEventAdjustmentCreateParams.type` to be required
|
|
10
|
+
* Change type of `Billing.MeterEventAdjustment.cancel` from `BillingMeterResourceBillingMeterEventAdjustmentCancel` to `BillingMeterResourceBillingMeterEventAdjustmentCancel | null`
|
|
11
|
+
* Add support for `amazon_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `Refund.destination_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options`
|
|
12
|
+
* Add support for new value `ownership` on enums `Checkout.Session.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Checkout.SessionCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntent.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections.prefetch[]`
|
|
13
|
+
* Add support for new value `amazon_pay` on enum `Checkout.SessionCreateParams.payment_method_types[]`
|
|
14
|
+
* Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
|
|
15
|
+
* Add support for new value `amazon_pay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
|
|
16
|
+
* Add support for new value `amazon_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
|
|
17
|
+
* Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
|
|
18
|
+
* Add support for new value `amazon_pay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
|
|
19
|
+
* Add support for `next_refresh_available_at` on `FinancialConnections.Account.ownership_refresh`
|
|
20
|
+
* Add support for new value `ownership` on enums `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]` and `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections.permissions[]`
|
|
21
|
+
|
|
22
|
+
## 15.0.0 - 2024-04-10
|
|
23
|
+
* [#2057](https://github.com/stripe/stripe-node/pull/2057)
|
|
24
|
+
|
|
25
|
+
* This release changes the pinned API version to `2024-04-10`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-04-10) and carefully review the API changes before upgrading.
|
|
26
|
+
|
|
27
|
+
### ⚠️ Breaking changes
|
|
28
|
+
|
|
29
|
+
* Rename event type `InvoiceitemCreatedEvent` to `InvoiceItemCreatedEvent`
|
|
30
|
+
* Rename event type `InvoiceitemDeletedEvent` to `InvoiceItemDeletedEvent`
|
|
31
|
+
* Rename `features` to `marketing_features` on `ProductCreateOptions`, `ProductUpdateOptions`, and `Product`.
|
|
32
|
+
|
|
33
|
+
#### ⚠️ Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API
|
|
34
|
+
|
|
35
|
+
* Remove `subscription_pause` from the below as the feature to pause subscription on the portal has been deprecated.
|
|
36
|
+
* `BillingPortal.Configuration.Features`
|
|
37
|
+
* `BillingPortal.ConfigurationCreateParams.Features`
|
|
38
|
+
* `BillingPortal.ConfigurationUpdateParams.Features`
|
|
39
|
+
* Remove the below deprecated values for the type `BalanceTransaction.Type`
|
|
40
|
+
* `obligation_inbound`
|
|
41
|
+
* `obligation_payout`
|
|
42
|
+
* `obligation_payout_failure`
|
|
43
|
+
* `'obligation_reversal_outbound'`
|
|
44
|
+
* Remove deprecated value `various` for the type `Climate.Supplier.RemovalPathway`
|
|
45
|
+
* Remove deprecated events
|
|
46
|
+
* `invoiceitem.updated`
|
|
47
|
+
* `order.created`
|
|
48
|
+
* `recipient.created`
|
|
49
|
+
* `recipient.deleted`
|
|
50
|
+
* `recipient.updated`
|
|
51
|
+
* `sku.created`
|
|
52
|
+
* `sku.deleted`
|
|
53
|
+
* `sku.updated`
|
|
54
|
+
* Remove types for the deprecated events
|
|
55
|
+
* `InvoiceItemUpdatedEvent`
|
|
56
|
+
* `OrderCreatedEvent`
|
|
57
|
+
* `RecipientCreatedEvent`
|
|
58
|
+
* `RecipientDeletedEvent`
|
|
59
|
+
* `RecipientUpdatedEvent`
|
|
60
|
+
* `SKUCreatedEvent`
|
|
61
|
+
* `SKUDeletedEvent`
|
|
62
|
+
* Remove the deprecated value `include_and_require` for the type`InvoiceCreateParams.PendingInvoiceItemsBehavior`
|
|
63
|
+
* Remove the deprecated value `service_tax` for the types `TaxRate.TaxType`, `TaxRateCreateParams.TaxType`, `TaxRateUpdateParams.TaxType`, and `InvoiceUpdateLineItemParams.TaxAmount.TaxRateData`
|
|
64
|
+
* Remove `request_incremental_authorization` from `PaymentIntentCreateParams.PaymentMethodOptions.CardPresent`, `PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent` and `PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent`
|
|
65
|
+
* Remove support for `id_bank_transfer`, `multibanco`, `netbanking`, `pay_by_bank`, and `upi` on `PaymentMethodConfiguration`
|
|
66
|
+
* Remove the deprecated value `obligation` for the type `Reporting.ReportRunCreateParams.Parameters.ReportingCategory`
|
|
67
|
+
* Remove the deprecated value `challenge_only` from the type `SetupIntent.PaymentMethodOptions.Card.RequestThreeDSecure`
|
|
68
|
+
* Remove the legacy field `rendering_options` in `Invoice`, `InvoiceCreateOptions` and `InvoiceUpdateOptions`. Use `rendering` instead.
|
|
69
|
+
|
|
3
70
|
## 14.25.0 - 2024-04-09
|
|
4
71
|
* [#2059](https://github.com/stripe/stripe-node/pull/2059) Update generated code
|
|
5
|
-
* Add support for new resources `Entitlements.ActiveEntitlement` and `Entitlements.Feature`
|
|
6
|
-
* Add support for `list` and `retrieve` methods on resource `ActiveEntitlement`
|
|
7
|
-
* Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Feature`
|
|
8
|
-
* Add support for `controller` on `AccountCreateParams`
|
|
9
|
-
* Add support for `fees`, `losses`, `requirement_collection`, and `stripe_dashboard` on `Account.controller`
|
|
10
|
-
* Add support for new value `none` on enum `Account.type`
|
|
11
|
-
* Add support for `event_name` on `Billing.MeterEventAdjustmentCreateParams` and `Billing.MeterEventAdjustment`
|
|
12
|
-
* Add support for `cancel` and `type` on `Billing.MeterEventAdjustment`
|
|
13
|
-
|
|
72
|
+
* Add support for new resources `Entitlements.ActiveEntitlement` and `Entitlements.Feature`
|
|
73
|
+
* Add support for `list` and `retrieve` methods on resource `ActiveEntitlement`
|
|
74
|
+
* Add support for `create`, `list`, `retrieve`, and `update` methods on resource `Feature`
|
|
75
|
+
* Add support for `controller` on `AccountCreateParams`
|
|
76
|
+
* Add support for `fees`, `losses`, `requirement_collection`, and `stripe_dashboard` on `Account.controller`
|
|
77
|
+
* Add support for new value `none` on enum `Account.type`
|
|
78
|
+
* Add support for `event_name` on `Billing.MeterEventAdjustmentCreateParams` and `Billing.MeterEventAdjustment`
|
|
79
|
+
* Add support for `cancel` and `type` on `Billing.MeterEventAdjustment`
|
|
80
|
+
|
|
14
81
|
|
|
15
82
|
## 14.24.0 - 2024-04-04
|
|
16
83
|
* [#2053](https://github.com/stripe/stripe-node/pull/2053) Update generated code
|
|
17
|
-
* Change `Charge.payment_method_details.us_bank_account.payment_reference`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.hosted_instructions_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.mobile_auth_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.data`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_png`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_svg`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code`, and `PaymentIntent.payment_method_options.swish.reference` to be required
|
|
18
|
-
* Change type of `Checkout.SessionCreateParams.payment_method_options.swish.reference` from `emptyable(string)` to `string`
|
|
19
|
-
* Add support for `subscription_item` on `Discount`
|
|
20
|
-
* Add support for `email` and `phone` on `Identity.VerificationReport`, `Identity.VerificationSession.options`, `Identity.VerificationSession.verified_outputs`, `Identity.VerificationSessionCreateParams.options`, and `Identity.VerificationSessionUpdateParams.options`
|
|
21
|
-
* Add support for `verification_flow` on `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, and `Identity.VerificationSession`
|
|
22
|
-
* Add support for new value `verification_flow` on enums `Identity.VerificationReport.type` and `Identity.VerificationSession.type`
|
|
23
|
-
* Add support for `provided_details` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionUpdateParams`, and `Identity.VerificationSession`
|
|
24
|
-
* Change `Identity.VerificationSessionCreateParams.type` to be optional
|
|
25
|
-
* Add support for new values `email_unverified_other`, `email_verification_declined`, `phone_unverified_other`, and `phone_verification_declined` on enum `Identity.VerificationSession.last_error.code`
|
|
26
|
-
* Add support for `promotion_code` on `InvoiceCreateParams.discounts[]`, `InvoiceItemCreateParams.discounts[]`, `InvoiceItemUpdateParams.discounts[]`, `InvoiceUpdateParams.discounts[]`, `QuoteCreateParams.discounts[]`, and `QuoteUpdateParams.discounts[]`
|
|
27
|
-
* Add support for `discounts` on `InvoiceUpcomingLinesParams.subscription_items[]`, `InvoiceUpcomingParams.subscription_items[]`, `QuoteCreateParams.line_items[]`, `QuoteUpdateParams.line_items[]`, `SubscriptionCreateParams.add_invoice_items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.phases[].add_invoice_items[]`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleUpdateParams.phases[].items[]`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams.add_invoice_items[]`, `SubscriptionUpdateParams.items[]`, `SubscriptionUpdateParams`, and `Subscription`
|
|
28
|
-
* Change type of `Invoice.discounts` from `array(expandable(deletable($Discount))) | null` to `array(expandable(deletable($Discount)))`
|
|
29
|
-
* Add support for `allowed_merchant_countries` and `blocked_merchant_countries` on `Issuing.Card.spending_controls`, `Issuing.CardCreateParams.spending_controls`, `Issuing.CardUpdateParams.spending_controls`, `Issuing.Cardholder.spending_controls`, `Issuing.CardholderCreateParams.spending_controls`, and `Issuing.CardholderUpdateParams.spending_controls`
|
|
30
|
-
* Add support for `zip` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
|
|
31
|
-
* Add support for `offline` on `SetupAttempt.payment_method_details.card_present`
|
|
32
|
-
* Add support for `card_present` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options`
|
|
33
|
-
* Add support for new value `mobile_phone_reader` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type`
|
|
84
|
+
* Change `Charge.payment_method_details.us_bank_account.payment_reference`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.hosted_instructions_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.mobile_auth_url`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.data`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_png`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_svg`, `PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code`, and `PaymentIntent.payment_method_options.swish.reference` to be required
|
|
85
|
+
* Change type of `Checkout.SessionCreateParams.payment_method_options.swish.reference` from `emptyable(string)` to `string`
|
|
86
|
+
* Add support for `subscription_item` on `Discount`
|
|
87
|
+
* Add support for `email` and `phone` on `Identity.VerificationReport`, `Identity.VerificationSession.options`, `Identity.VerificationSession.verified_outputs`, `Identity.VerificationSessionCreateParams.options`, and `Identity.VerificationSessionUpdateParams.options`
|
|
88
|
+
* Add support for `verification_flow` on `Identity.VerificationReport`, `Identity.VerificationSessionCreateParams`, and `Identity.VerificationSession`
|
|
89
|
+
* Add support for new value `verification_flow` on enums `Identity.VerificationReport.type` and `Identity.VerificationSession.type`
|
|
90
|
+
* Add support for `provided_details` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionUpdateParams`, and `Identity.VerificationSession`
|
|
91
|
+
* Change `Identity.VerificationSessionCreateParams.type` to be optional
|
|
92
|
+
* Add support for new values `email_unverified_other`, `email_verification_declined`, `phone_unverified_other`, and `phone_verification_declined` on enum `Identity.VerificationSession.last_error.code`
|
|
93
|
+
* Add support for `promotion_code` on `InvoiceCreateParams.discounts[]`, `InvoiceItemCreateParams.discounts[]`, `InvoiceItemUpdateParams.discounts[]`, `InvoiceUpdateParams.discounts[]`, `QuoteCreateParams.discounts[]`, and `QuoteUpdateParams.discounts[]`
|
|
94
|
+
* Add support for `discounts` on `InvoiceUpcomingLinesParams.subscription_items[]`, `InvoiceUpcomingParams.subscription_items[]`, `QuoteCreateParams.line_items[]`, `QuoteUpdateParams.line_items[]`, `SubscriptionCreateParams.add_invoice_items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.phases[].add_invoice_items[]`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleCreateParams.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleUpdateParams.phases[].items[]`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams.add_invoice_items[]`, `SubscriptionUpdateParams.items[]`, `SubscriptionUpdateParams`, and `Subscription`
|
|
95
|
+
* Change type of `Invoice.discounts` from `array(expandable(deletable($Discount))) | null` to `array(expandable(deletable($Discount)))`
|
|
96
|
+
* Add support for `allowed_merchant_countries` and `blocked_merchant_countries` on `Issuing.Card.spending_controls`, `Issuing.CardCreateParams.spending_controls`, `Issuing.CardUpdateParams.spending_controls`, `Issuing.Cardholder.spending_controls`, `Issuing.CardholderCreateParams.spending_controls`, and `Issuing.CardholderUpdateParams.spending_controls`
|
|
97
|
+
* Add support for `zip` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
|
|
98
|
+
* Add support for `offline` on `SetupAttempt.payment_method_details.card_present`
|
|
99
|
+
* Add support for `card_present` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options`
|
|
100
|
+
* Add support for new value `mobile_phone_reader` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type`
|
|
34
101
|
|
|
35
102
|
## 14.23.0 - 2024-03-28
|
|
36
103
|
* [#2046](https://github.com/stripe/stripe-node/pull/2046) Update generated code
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
15.1.0
|
package/cjs/apiVersion.js
CHANGED
package/cjs/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '
|
|
37
|
+
Stripe.PACKAGE_VERSION = '15.1.0';
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
39
39
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
40
40
|
Stripe.resources = resources;
|
package/esm/apiVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
|
-
export const ApiVersion = '
|
|
2
|
+
export const ApiVersion = '2024-04-10';
|
package/esm/stripe.core.js
CHANGED
|
@@ -31,7 +31,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
31
31
|
];
|
|
32
32
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
33
33
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
34
|
-
Stripe.PACKAGE_VERSION = '
|
|
34
|
+
Stripe.PACKAGE_VERSION = '15.1.0';
|
|
35
35
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
36
36
|
Stripe.StripeResource = StripeResource;
|
|
37
37
|
Stripe.resources = resources;
|
package/package.json
CHANGED
|
@@ -46,10 +46,14 @@ declare module 'stripe' {
|
|
|
46
46
|
|
|
47
47
|
namespace AccountSession {
|
|
48
48
|
interface Components {
|
|
49
|
+
account_management: Components.AccountManagement;
|
|
50
|
+
|
|
49
51
|
account_onboarding: Components.AccountOnboarding;
|
|
50
52
|
|
|
51
53
|
documents: Components.Documents;
|
|
52
54
|
|
|
55
|
+
notification_banner: Components.NotificationBanner;
|
|
56
|
+
|
|
53
57
|
payment_details: Components.PaymentDetails;
|
|
54
58
|
|
|
55
59
|
payments: Components.Payments;
|
|
@@ -58,6 +62,24 @@ declare module 'stripe' {
|
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
namespace Components {
|
|
65
|
+
interface AccountManagement {
|
|
66
|
+
/**
|
|
67
|
+
* Whether the embedded component is enabled.
|
|
68
|
+
*/
|
|
69
|
+
enabled: boolean;
|
|
70
|
+
|
|
71
|
+
features: AccountManagement.Features;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
namespace AccountManagement {
|
|
75
|
+
interface Features {
|
|
76
|
+
/**
|
|
77
|
+
* 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.
|
|
78
|
+
*/
|
|
79
|
+
external_account_collection: boolean;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
61
83
|
interface AccountOnboarding {
|
|
62
84
|
/**
|
|
63
85
|
* Whether the embedded component is enabled.
|
|
@@ -68,7 +90,12 @@ declare module 'stripe' {
|
|
|
68
90
|
}
|
|
69
91
|
|
|
70
92
|
namespace AccountOnboarding {
|
|
71
|
-
interface Features {
|
|
93
|
+
interface Features {
|
|
94
|
+
/**
|
|
95
|
+
* 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.
|
|
96
|
+
*/
|
|
97
|
+
external_account_collection: boolean;
|
|
98
|
+
}
|
|
72
99
|
}
|
|
73
100
|
|
|
74
101
|
interface Documents {
|
|
@@ -84,6 +111,24 @@ declare module 'stripe' {
|
|
|
84
111
|
interface Features {}
|
|
85
112
|
}
|
|
86
113
|
|
|
114
|
+
interface NotificationBanner {
|
|
115
|
+
/**
|
|
116
|
+
* Whether the embedded component is enabled.
|
|
117
|
+
*/
|
|
118
|
+
enabled: boolean;
|
|
119
|
+
|
|
120
|
+
features: NotificationBanner.Features;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
namespace NotificationBanner {
|
|
124
|
+
interface Features {
|
|
125
|
+
/**
|
|
126
|
+
* 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.
|
|
127
|
+
*/
|
|
128
|
+
external_account_collection: boolean;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
87
132
|
interface PaymentDetails {
|
|
88
133
|
/**
|
|
89
134
|
* Whether the embedded component is enabled.
|
|
@@ -21,6 +21,11 @@ declare module 'stripe' {
|
|
|
21
21
|
|
|
22
22
|
namespace AccountSessionCreateParams {
|
|
23
23
|
interface Components {
|
|
24
|
+
/**
|
|
25
|
+
* Configuration for the account management embedded component.
|
|
26
|
+
*/
|
|
27
|
+
account_management?: Components.AccountManagement;
|
|
28
|
+
|
|
24
29
|
/**
|
|
25
30
|
* Configuration for the account onboarding embedded component.
|
|
26
31
|
*/
|
|
@@ -31,6 +36,11 @@ declare module 'stripe' {
|
|
|
31
36
|
*/
|
|
32
37
|
documents?: Components.Documents;
|
|
33
38
|
|
|
39
|
+
/**
|
|
40
|
+
* Configuration for the notification banner embedded component.
|
|
41
|
+
*/
|
|
42
|
+
notification_banner?: Components.NotificationBanner;
|
|
43
|
+
|
|
34
44
|
/**
|
|
35
45
|
* Configuration for the payment details embedded component.
|
|
36
46
|
*/
|
|
@@ -48,6 +58,27 @@ declare module 'stripe' {
|
|
|
48
58
|
}
|
|
49
59
|
|
|
50
60
|
namespace Components {
|
|
61
|
+
interface AccountManagement {
|
|
62
|
+
/**
|
|
63
|
+
* Whether the embedded component is enabled.
|
|
64
|
+
*/
|
|
65
|
+
enabled: boolean;
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* The list of features enabled in the embedded component.
|
|
69
|
+
*/
|
|
70
|
+
features?: AccountManagement.Features;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
namespace AccountManagement {
|
|
74
|
+
interface Features {
|
|
75
|
+
/**
|
|
76
|
+
* 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.
|
|
77
|
+
*/
|
|
78
|
+
external_account_collection?: boolean;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
51
82
|
interface AccountOnboarding {
|
|
52
83
|
/**
|
|
53
84
|
* Whether the embedded component is enabled.
|
|
@@ -61,7 +92,12 @@ declare module 'stripe' {
|
|
|
61
92
|
}
|
|
62
93
|
|
|
63
94
|
namespace AccountOnboarding {
|
|
64
|
-
interface Features {
|
|
95
|
+
interface Features {
|
|
96
|
+
/**
|
|
97
|
+
* 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.
|
|
98
|
+
*/
|
|
99
|
+
external_account_collection?: boolean;
|
|
100
|
+
}
|
|
65
101
|
}
|
|
66
102
|
|
|
67
103
|
interface Documents {
|
|
@@ -80,6 +116,27 @@ declare module 'stripe' {
|
|
|
80
116
|
interface Features {}
|
|
81
117
|
}
|
|
82
118
|
|
|
119
|
+
interface NotificationBanner {
|
|
120
|
+
/**
|
|
121
|
+
* Whether the embedded component is enabled.
|
|
122
|
+
*/
|
|
123
|
+
enabled: boolean;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* The list of features enabled in the embedded component.
|
|
127
|
+
*/
|
|
128
|
+
features?: NotificationBanner.Features;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
namespace NotificationBanner {
|
|
132
|
+
interface Features {
|
|
133
|
+
/**
|
|
134
|
+
* 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.
|
|
135
|
+
*/
|
|
136
|
+
external_account_collection?: boolean;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
83
140
|
interface PaymentDetails {
|
|
84
141
|
/**
|
|
85
142
|
* Whether the embedded component is enabled.
|
package/types/Accounts.d.ts
CHANGED
|
@@ -829,7 +829,7 @@ declare module 'stripe' {
|
|
|
829
829
|
past_due: Array<string> | null;
|
|
830
830
|
|
|
831
831
|
/**
|
|
832
|
-
* Fields that
|
|
832
|
+
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`. Fields might appear in `eventually_due` or `currently_due` and in `pending_verification` if verification fails but another verification is still pending.
|
|
833
833
|
*/
|
|
834
834
|
pending_verification: Array<string> | null;
|
|
835
835
|
}
|
|
@@ -994,7 +994,7 @@ declare module 'stripe' {
|
|
|
994
994
|
past_due: Array<string> | null;
|
|
995
995
|
|
|
996
996
|
/**
|
|
997
|
-
* Fields that
|
|
997
|
+
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
|
998
998
|
*/
|
|
999
999
|
pending_verification: Array<string> | null;
|
|
1000
1000
|
}
|
|
@@ -153,11 +153,7 @@ declare module 'stripe' {
|
|
|
153
153
|
| 'transfer'
|
|
154
154
|
| 'transfer_cancel'
|
|
155
155
|
| 'transfer_failure'
|
|
156
|
-
| 'transfer_refund'
|
|
157
|
-
| 'obligation_inbound'
|
|
158
|
-
| 'obligation_payout'
|
|
159
|
-
| 'obligation_payout_failure'
|
|
160
|
-
| 'obligation_reversal_outbound';
|
|
156
|
+
| 'transfer_refund';
|
|
161
157
|
}
|
|
162
158
|
}
|
|
163
159
|
}
|
package/types/BankAccounts.d.ts
CHANGED
|
@@ -137,7 +137,7 @@ declare module 'stripe' {
|
|
|
137
137
|
past_due: Array<string> | null;
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
|
-
* Fields that
|
|
140
|
+
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
|
141
141
|
*/
|
|
142
142
|
pending_verification: Array<string> | null;
|
|
143
143
|
}
|
|
@@ -270,7 +270,7 @@ declare module 'stripe' {
|
|
|
270
270
|
past_due: Array<string> | null;
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
|
-
* Fields that
|
|
273
|
+
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
|
274
274
|
*/
|
|
275
275
|
pending_verification: Array<string> | null;
|
|
276
276
|
}
|
|
@@ -4,7 +4,7 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Billing {
|
|
6
6
|
/**
|
|
7
|
-
* A billing meter event adjustment
|
|
7
|
+
* A billing meter event adjustment is a resource that allows you to cancel a meter event. For example, you might create a billing meter event adjustment to cancel a meter event that was created in error or attached to the wrong customer.
|
|
8
8
|
*/
|
|
9
9
|
interface MeterEventAdjustment {
|
|
10
10
|
/**
|
|
@@ -12,7 +12,10 @@ declare module 'stripe' {
|
|
|
12
12
|
*/
|
|
13
13
|
object: 'billing.meter_event_adjustment';
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Specifies which event to cancel.
|
|
17
|
+
*/
|
|
18
|
+
cancel: MeterEventAdjustment.Cancel | null;
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
21
|
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
|
@@ -30,7 +33,7 @@ declare module 'stripe' {
|
|
|
30
33
|
status: MeterEventAdjustment.Status;
|
|
31
34
|
|
|
32
35
|
/**
|
|
33
|
-
* Specifies whether to cancel a single event or a range of events for a time period.
|
|
36
|
+
* Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
|
|
34
37
|
*/
|
|
35
38
|
type: 'cancel';
|
|
36
39
|
}
|
|
@@ -40,7 +43,7 @@ declare module 'stripe' {
|
|
|
40
43
|
/**
|
|
41
44
|
* Unique identifier for the event.
|
|
42
45
|
*/
|
|
43
|
-
identifier: string;
|
|
46
|
+
identifier: string | null;
|
|
44
47
|
}
|
|
45
48
|
|
|
46
49
|
type Status = 'complete' | 'pending';
|
|
@@ -5,24 +5,24 @@ declare module 'stripe' {
|
|
|
5
5
|
namespace Billing {
|
|
6
6
|
interface MeterEventAdjustmentCreateParams {
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* The name of the meter event. Corresponds with the `event_name` field on a meter.
|
|
9
9
|
*/
|
|
10
|
-
|
|
10
|
+
event_name: string;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* Specifies whether to cancel a single event or a range of events for a time period. Time period cancellation is not supported yet.
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
type: 'cancel';
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Specifies which
|
|
18
|
+
* Specifies which event to cancel.
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
cancel?: MeterEventAdjustmentCreateParams.Cancel;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Specifies
|
|
23
|
+
* Specifies which fields in the response should be expanded.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
expand?: Array<string>;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
namespace MeterEventAdjustmentCreateParams {
|
|
@@ -30,7 +30,7 @@ declare module 'stripe' {
|
|
|
30
30
|
/**
|
|
31
31
|
* Unique identifier for the event. You can only cancel events within 24 hours of Stripe receiving them.
|
|
32
32
|
*/
|
|
33
|
-
identifier
|
|
33
|
+
identifier?: string;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -4,7 +4,7 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
namespace Billing {
|
|
6
6
|
/**
|
|
7
|
-
* A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then
|
|
7
|
+
* A billing meter is a resource that allows you to track usage of a particular event. For example, you might create a billing meter to track the number of API calls made by a particular user. You can then attach the billing meter to a price and attach the price to a subscription to charge the user for the number of API calls they make.
|
|
8
8
|
*/
|
|
9
9
|
interface Meter {
|
|
10
10
|
/**
|
|
@@ -96,8 +96,6 @@ declare module 'stripe' {
|
|
|
96
96
|
subscription_cancel: Features.SubscriptionCancel;
|
|
97
97
|
|
|
98
98
|
subscription_update: Features.SubscriptionUpdate;
|
|
99
|
-
|
|
100
|
-
subscription_pause: Features.SubscriptionPause;
|
|
101
99
|
}
|
|
102
100
|
|
|
103
101
|
namespace Features {
|
|
@@ -189,13 +187,6 @@ declare module 'stripe' {
|
|
|
189
187
|
| 'none';
|
|
190
188
|
}
|
|
191
189
|
|
|
192
|
-
interface SubscriptionPause {
|
|
193
|
-
/**
|
|
194
|
-
* Whether the feature is enabled.
|
|
195
|
-
*/
|
|
196
|
-
enabled: boolean;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
190
|
interface SubscriptionUpdate {
|
|
200
191
|
/**
|
|
201
192
|
* The types of subscription updates that are supported for items listed in the `products` attribute. When empty, subscriptions are not updateable.
|
|
@@ -78,11 +78,6 @@ declare module 'stripe' {
|
|
|
78
78
|
* Information about updating subscriptions in the portal.
|
|
79
79
|
*/
|
|
80
80
|
subscription_update?: Features.SubscriptionUpdate;
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* Information about pausing subscriptions in the portal.
|
|
84
|
-
*/
|
|
85
|
-
subscription_pause?: Features.SubscriptionPause;
|
|
86
81
|
}
|
|
87
82
|
|
|
88
83
|
namespace Features {
|
|
@@ -179,13 +174,6 @@ declare module 'stripe' {
|
|
|
179
174
|
| 'none';
|
|
180
175
|
}
|
|
181
176
|
|
|
182
|
-
interface SubscriptionPause {
|
|
183
|
-
/**
|
|
184
|
-
* Whether the feature is enabled.
|
|
185
|
-
*/
|
|
186
|
-
enabled: boolean;
|
|
187
|
-
}
|
|
188
|
-
|
|
189
177
|
interface SubscriptionUpdate {
|
|
190
178
|
/**
|
|
191
179
|
* The types of subscription updates that are supported. When empty, subscriptions are not updateable.
|
|
@@ -327,11 +315,6 @@ declare module 'stripe' {
|
|
|
327
315
|
* Information about updating subscriptions in the portal.
|
|
328
316
|
*/
|
|
329
317
|
subscription_update?: Features.SubscriptionUpdate;
|
|
330
|
-
|
|
331
|
-
/**
|
|
332
|
-
* Information about pausing subscriptions in the portal.
|
|
333
|
-
*/
|
|
334
|
-
subscription_pause?: Features.SubscriptionPause;
|
|
335
318
|
}
|
|
336
319
|
|
|
337
320
|
namespace Features {
|
|
@@ -428,13 +411,6 @@ declare module 'stripe' {
|
|
|
428
411
|
| 'none';
|
|
429
412
|
}
|
|
430
413
|
|
|
431
|
-
interface SubscriptionPause {
|
|
432
|
-
/**
|
|
433
|
-
* Whether the feature is enabled.
|
|
434
|
-
*/
|
|
435
|
-
enabled: boolean;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
414
|
interface SubscriptionUpdate {
|
|
439
415
|
/**
|
|
440
416
|
* The types of subscription updates that are supported. When empty, subscriptions are not updateable.
|
|
@@ -61,7 +61,7 @@ declare module 'stripe' {
|
|
|
61
61
|
locale: Session.Locale | null;
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
|
-
* The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#
|
|
64
|
+
* The account for which the session was created on behalf of. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#settlement-merchant). Use the [Accounts API](https://stripe.com/docs/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
|
|
65
65
|
*/
|
|
66
66
|
on_behalf_of: string | null;
|
|
67
67
|
|
|
@@ -30,7 +30,7 @@ declare module 'stripe' {
|
|
|
30
30
|
locale?: SessionCreateParams.Locale;
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
* The `on_behalf_of` account to use for this session. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#
|
|
33
|
+
* The `on_behalf_of` account to use for this session. When specified, only subscriptions and invoices with this `on_behalf_of` account appear in the portal. For more information, see the [docs](https://stripe.com/docs/connect/separate-charges-and-transfers#settlement-merchant). Use the [Accounts API](https://stripe.com/docs/api/accounts/object#account_object-settings-branding) to modify the `on_behalf_of` account's branding settings, which the portal displays.
|
|
34
34
|
*/
|
|
35
35
|
on_behalf_of?: string;
|
|
36
36
|
|
package/types/Capabilities.d.ts
CHANGED
|
@@ -81,7 +81,7 @@ declare module 'stripe' {
|
|
|
81
81
|
past_due: Array<string>;
|
|
82
82
|
|
|
83
83
|
/**
|
|
84
|
-
* Fields that
|
|
84
|
+
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due` or `currently_due`. Fields might appear in `eventually_due` or `currently_due` and in `pending_verification` if verification fails but another verification is still pending.
|
|
85
85
|
*/
|
|
86
86
|
pending_verification: Array<string>;
|
|
87
87
|
}
|
|
@@ -252,7 +252,7 @@ declare module 'stripe' {
|
|
|
252
252
|
past_due: Array<string>;
|
|
253
253
|
|
|
254
254
|
/**
|
|
255
|
-
* Fields that
|
|
255
|
+
* Fields that might become required depending on the results of verification or review. It's an empty array unless an asynchronous verification is pending. If verification fails, these fields move to `eventually_due`, `currently_due`, or `past_due`. Fields might appear in `eventually_due`, `currently_due`, or `past_due` and in `pending_verification` if verification fails but another verification is still pending.
|
|
256
256
|
*/
|
|
257
257
|
pending_verification: Array<string>;
|
|
258
258
|
}
|