stripe 18.3.0-beta.2 → 18.4.0-beta.1
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 +48 -7
- package/OPENAPI_VERSION +1 -1
- package/VERSION +1 -1
- package/cjs/Error.js +9 -9
- package/cjs/RequestSender.js +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +7 -7
- package/esm/RequestSender.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 +31 -31
- package/types/AccountSessionsResource.d.ts +62 -62
- package/types/Accounts.d.ts +29 -1
- package/types/AccountsResource.d.ts +89 -0
- package/types/BillingPortal/Sessions.d.ts +1 -1
- package/types/BillingPortal/SessionsResource.d.ts +1 -1
- package/types/Charges.d.ts +52 -16
- package/types/Checkout/SessionsResource.d.ts +61 -7
- package/types/ConfirmationTokens.d.ts +22 -11
- package/types/CreditNotesResource.d.ts +9 -9
- package/types/CustomerSessions.d.ts +1 -1
- package/types/CustomerSessionsResource.d.ts +1 -1
- package/types/CustomersResource.d.ts +1 -0
- package/types/Disputes.d.ts +13 -2
- package/types/Errors.d.ts +6 -6
- package/types/Events.d.ts +1 -1
- package/types/Identity/VerificationSessions.d.ts +34 -0
- package/types/Identity/VerificationSessionsResource.d.ts +17 -0
- package/types/InvoiceItems.d.ts +1 -4
- package/types/Invoices.d.ts +1 -0
- package/types/InvoicesResource.d.ts +29 -7
- package/types/Mandates.d.ts +4 -0
- package/types/Orders.d.ts +5 -1
- package/types/OrdersResource.d.ts +174 -2
- package/types/PaymentAttemptRecords.d.ts +48 -19
- package/types/PaymentIntents.d.ts +38 -7
- package/types/PaymentIntentsResource.d.ts +384 -15
- package/types/PaymentMethods.d.ts +16 -9
- package/types/PaymentMethodsResource.d.ts +10 -0
- package/types/PaymentRecords.d.ts +48 -19
- package/types/QuotePreviewInvoices.d.ts +1 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +17 -3
- package/types/Quotes.d.ts +12 -3
- package/types/QuotesResource.d.ts +7 -1
- package/types/SetupAttempts.d.ts +3 -1
- package/types/SetupIntents.d.ts +15 -1
- package/types/SetupIntentsResource.d.ts +482 -2
- package/types/SubscriptionItems.d.ts +0 -9
- package/types/SubscriptionSchedules.d.ts +17 -3
- package/types/SubscriptionSchedulesResource.d.ts +7 -1
- package/types/Subscriptions.d.ts +14 -11
- package/types/SubscriptionsResource.d.ts +20 -6
- package/types/Tax/Registrations.d.ts +9 -0
- package/types/Tax/RegistrationsResource.d.ts +12 -0
- package/types/Terminal/Configurations.d.ts +1 -0
- package/types/Terminal/LocationsResource.d.ts +1 -1
- package/types/Terminal/Readers.d.ts +6 -6
- package/types/Terminal/ReadersResource.d.ts +4 -4
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +15 -2
- package/types/TokensResource.d.ts +3 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +9 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +10 -0
- package/types/V2/Core/Accounts.d.ts +130 -51
- package/types/V2/Core/AccountsResource.d.ts +54 -0
- package/types/V2/Core/Persons.d.ts +5 -0
- package/types/V2/EventTypes.d.ts +1 -1
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +8 -4
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +1 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +1 -1
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +1 -1
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +1 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +22 -3
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/index.d.ts +12 -12
- package/types/lib.d.ts +11 -1
- package/types/test/typescriptTest.ts +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 18.4.0-beta.1 - 2025-07-01
|
|
4
|
+
* [#2344](https://github.com/stripe/stripe-node/pull/2344) Update generated code for beta
|
|
5
|
+
* Change type of `Checkout.SessionCreateParams.subscription_data.billing_mode`, `InvoiceCreatePreviewParams.schedule_details.billing_mode`, `InvoiceCreatePreviewParams.subscription_details.billing_mode`, `Quote.subscription_data.billing_mode`, `QuoteCreateParams.subscription_data.billing_mode`, `SubscriptionCreateParams.billing_mode`, and `SubscriptionScheduleCreateParams.billing_mode` from `enum('classic'|'flexible')` to `billing_mode`
|
|
6
|
+
* Add support for `submission_method` on `Dispute.evidence_details`
|
|
7
|
+
* Add support for `on_demand` and `subscriptions` on `OrderCreateParams.payment.settings.payment_method_options.klarna` and `OrderUpdateParams.payment.settings.payment_method_options.klarna`
|
|
8
|
+
* Change type of `Order.payment.settings.payment_method_options.klarna.setup_future_usage`, `OrderCreateParams.payment.settings.payment_method_options.klarna.setup_future_usage`, and `OrderUpdateParams.payment.settings.payment_method_options.klarna.setup_future_usage` from `literal('none')` to `enum('none'|'off_session'|'on_session')`
|
|
9
|
+
* Add support for `crypto` on `PaymentAttemptRecord.payment_method_details` and `PaymentRecord.payment_method_details`
|
|
10
|
+
* Add support for new value `buut` on enums `PaymentAttemptRecord.payment_method_details.ideal.bank` and `PaymentRecord.payment_method_details.ideal.bank`
|
|
11
|
+
* Add support for new value `BUUTNL2A` on enums `PaymentAttemptRecord.payment_method_details.ideal.bic` and `PaymentRecord.payment_method_details.ideal.bic`
|
|
12
|
+
* Change type of `PaymentIntent.payment_method_options.gopay.setup_future_usage`, `PaymentIntentConfirmParams.payment_method_options.gopay.setup_future_usage`, `PaymentIntentCreateParams.payment_method_options.gopay.setup_future_usage`, and `PaymentIntentUpdateParams.payment_method_options.gopay.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
|
|
13
|
+
* Change `Quote.subscription_data.billing_mode`, `QuotePreviewSubscriptionSchedule.billing_mode`, `Subscription.billing_mode`, and `SubscriptionSchedule.billing_mode` to be required
|
|
14
|
+
* Add support for new value `crypto` on enum `QuotePreviewInvoice.payment_settings.payment_method_types`
|
|
15
|
+
* Change type of `QuotePreviewSubscriptionSchedule.billing_mode`, `Subscription.billing_mode`, and `SubscriptionSchedule.billing_mode` from `enum('classic'|'flexible')` to `SubscriptionsResourceBillingMode`
|
|
16
|
+
* Change type of `SubscriptionMigrateParams.billing_mode` from `literal('flexible')` to `billing_mode_migrate`
|
|
17
|
+
* Remove support for `billing_mode_details` on `Subscription`
|
|
18
|
+
* Add support for new value `xx` on enums `V2.Core.Account.configuration.customer.automatic_indirect_tax.location.country`, `V2.Core.Account.configuration.customer.shipping.address.country`, `V2.Core.Account.configuration.merchant.support.address.country`, `V2.Core.Account.identity.business_details.address.country`, `V2.Core.Account.identity.business_details.script_addresses.kana.country`, `V2.Core.Account.identity.business_details.script_addresses.kanji.country`, `V2.Core.Account.identity.country`, `V2.Core.Account.identity.individual.additional_addresses[].country`, `V2.Core.Account.identity.individual.address.country`, `V2.Core.Account.identity.individual.script_addresses.kana.country`, `V2.Core.Account.identity.individual.script_addresses.kanji.country`, `V2.Core.AccountCreateParams.configuration.customer.shipping.address.country`, `V2.Core.AccountCreateParams.configuration.merchant.support.address.country`, `V2.Core.AccountCreateParams.identity.business_details.address.country`, `V2.Core.AccountCreateParams.identity.business_details.script_addresses.kana.country`, `V2.Core.AccountCreateParams.identity.business_details.script_addresses.kanji.country`, `V2.Core.AccountCreateParams.identity.country`, `V2.Core.AccountCreateParams.identity.individual.additional_addresses[].country`, `V2.Core.AccountCreateParams.identity.individual.address.country`, `V2.Core.AccountCreateParams.identity.individual.script_addresses.kana.country`, `V2.Core.AccountCreateParams.identity.individual.script_addresses.kanji.country`, `V2.Core.AccountUpdateParams.configuration.customer.shipping.address.country`, `V2.Core.AccountUpdateParams.configuration.merchant.support.address.country`, `V2.Core.AccountUpdateParams.identity.business_details.address.country`, `V2.Core.AccountUpdateParams.identity.business_details.script_addresses.kana.country`, `V2.Core.AccountUpdateParams.identity.business_details.script_addresses.kanji.country`, `V2.Core.AccountUpdateParams.identity.country`, `V2.Core.AccountUpdateParams.identity.individual.additional_addresses[].country`, `V2.Core.AccountUpdateParams.identity.individual.address.country`, `V2.Core.AccountUpdateParams.identity.individual.script_addresses.kana.country`, `V2.Core.AccountUpdateParams.identity.individual.script_addresses.kanji.country`, `V2.Core.Person.additional_addresses[].country`, `V2.Core.Person.address.country`, `V2.Core.Person.script_addresses.kana.country`, `V2.Core.Person.script_addresses.kanji.country`, `V2.Core.PersonCreateParams.additional_addresses[].country`, `V2.Core.PersonCreateParams.address.country`, `V2.Core.PersonCreateParams.script_addresses.kana.country`, `V2.Core.PersonCreateParams.script_addresses.kanji.country`, `V2.Core.PersonUpdateParams.additional_addresses[].country`, `V2.Core.PersonUpdateParams.address.country`, `V2.Core.PersonUpdateParams.script_addresses.kana.country`, `V2.Core.PersonUpdateParams.script_addresses.kanji.country`, and `V2.MoneyManagement.FinancialAccount.country`
|
|
19
|
+
* Add support for new value `unsupported_entity_type` on enums `V2.Core.Account.configuration.customer.capabilities.automatic_indirect_tax.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.ach_debit_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.acss_debit_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.affirm_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.afterpay_clearpay_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.alma_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.amazon_pay_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.au_becs_debit_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.bacs_debit_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.bancontact_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.blik_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.boleto_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.card_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.cartes_bancaires_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.cashapp_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.eps_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.fpx_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.gb_bank_transfer_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.grabpay_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.ideal_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.jcb_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.jp_bank_transfer_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.kakao_pay_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.klarna_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.konbini_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.kr_card_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.link_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.mobilepay_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.multibanco_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.mx_bank_transfer_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.naver_pay_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.oxxo_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.p24_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.pay_by_bank_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.payco_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.paynow_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.promptpay_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.revolut_pay_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.samsung_pay_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.sepa_bank_transfer_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.sepa_debit_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.stripe_balance.payouts.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.swish_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.twint_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.us_bank_transfer_payments.status_details[].code`, `V2.Core.Account.configuration.merchant.capabilities.zip_payments.status_details[].code`, `V2.Core.Account.configuration.recipient.capabilities.bank_accounts.local.status_details[].code`, `V2.Core.Account.configuration.recipient.capabilities.bank_accounts.wire.status_details[].code`, `V2.Core.Account.configuration.recipient.capabilities.cards.status_details[].code`, `V2.Core.Account.configuration.recipient.capabilities.stripe_balance.payouts.status_details[].code`, and `V2.Core.Account.configuration.recipient.capabilities.stripe_balance.stripe_transfers.status_details[].code`
|
|
20
|
+
* Add support for `proof_of_address` on `V2.Core.Account.identity.business_details.documents`, `V2.Core.AccountCreateParams.identity.business_details.documents`, and `V2.Core.AccountUpdateParams.identity.business_details.documents`
|
|
21
|
+
* Add support for new value `xx` on enums `V2.Core.Account.identity.individual.nationalities`, `V2.Core.AccountCreateParams.identity.individual.nationalities`, `V2.Core.AccountUpdateParams.identity.individual.nationalities`, `V2.Core.Person.nationalities`, `V2.Core.PersonCreateParams.nationalities`, and `V2.Core.PersonUpdateParams.nationalities`
|
|
22
|
+
* Add support for `metadata` on `V2.MoneyManagement.FinancialAccount`
|
|
23
|
+
* Remove support for `description` on `V2.MoneyManagement.FinancialAccount`
|
|
24
|
+
* Add support for new value `pending` on enum `V2.MoneyManagement.FinancialAccount.status`
|
|
25
|
+
* Remove support for `attempts` on `V2.Payments.OffSessionPayment`
|
|
26
|
+
* Change type of `V2.Payments.OffSessionPayment.transfer_data.amount` from `integer` to `integer | null`
|
|
27
|
+
* Add support for `from_account`, `outbound_payment`, and `outbound_transfer` on `V2.MoneyManagement.ReceivedCredit.balance_transfer`
|
|
28
|
+
* Change type of `V2.MoneyManagement.ReceivedCredit.balance_transfer.type` from `literal('payout_v1')` to `enum('outbound_payment'|'outbound_transfer'|'payout_v1')`
|
|
29
|
+
* Change type of `V2.MoneyManagement.ReceivedCredit.balance_transfer.payout_v1` from `string` to `string | null`
|
|
30
|
+
* Change `V2.Payments.OffSessionPaymentCreateParams.transfer_data.amount` to be optional
|
|
31
|
+
* Add support for error codes `recipient_feature_not_active`, `storer_capability_missing`, and `storer_capability_not_active` on `FeatureNotEnabledError`
|
|
32
|
+
* Remove support for error code `outbound_payment_recipient_feature_not_active` on `FeatureNotEnabledError`
|
|
33
|
+
* Add support for error code `insufficient_funds` on `InsufficientFundsError`
|
|
34
|
+
* Remove support for error codes `outbound_payment_insufficient_funds` and `outbound_transfer_insufficient_funds` on `InsufficientFundsError`
|
|
35
|
+
* Add support for error codes `recipient_amount_limit_exceeded` and `recipient_count_limit_exceeded` on `QuotaExceededError`
|
|
36
|
+
* Remove support for error codes `outbound_payment_recipient_amount_limit_exceeded` and `outbound_payment_recipient_count_limit_exceeded` on `QuotaExceededError`
|
|
37
|
+
* Add support for error code `recipient_email_does_not_exist` on `RecipientNotNotifiableError`
|
|
38
|
+
* Remove support for error code `outbound_payment_recipient_email_does_not_exist` on `RecipientNotNotifiableError`
|
|
39
|
+
|
|
3
40
|
## 18.3.0-beta.2 - 2025-06-26
|
|
4
41
|
* [#2358](https://github.com/stripe/stripe-node/pull/2358) Pull in OffSessionPayment changes for the May release
|
|
5
42
|
|
|
@@ -49,6 +86,10 @@ This release changes the pinned API version to 2025-05-28.preview.
|
|
|
49
86
|
* Add support for `confirm_config` on `Terminal.Reader.action.confirm_payment_intent` and `Terminal.ReaderConfirmPaymentIntentParams`
|
|
50
87
|
* Add support for error code `forwarding_api_upstream_error` on `QuotePreviewInvoice.last_finalization_error`
|
|
51
88
|
|
|
89
|
+
## 18.2.1 - 2025-06-02
|
|
90
|
+
* [#2346](https://github.com/stripe/stripe-node/pull/2346) Allow data to be set in only `POST` rawRequests
|
|
91
|
+
* Fix bug where `rawRequest` incorrectly emits a warning when sending v2 GET requests
|
|
92
|
+
|
|
52
93
|
## 18.2.0 - 2025-05-29
|
|
53
94
|
This release changes the pinned API version to `2025-05-28.basil`.
|
|
54
95
|
|
|
@@ -779,7 +820,7 @@ This release changes the pinned API version to 2025-05-28.preview.
|
|
|
779
820
|
## 17.0.0 - 2024-10-01
|
|
780
821
|
* [#2192](https://github.com/stripe/stripe-node/pull/2192) Support for APIs in the new API version 2024-09-30.acacia
|
|
781
822
|
|
|
782
|
-
This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API
|
|
823
|
+
This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Changelog](https://docs.stripe.com/changelog/acacia#2024-09-30.acacia) and carefully review the API changes before upgrading.
|
|
783
824
|
|
|
784
825
|
### ⚠️ Breaking changes due to changes in the Stripe API
|
|
785
826
|
- Rename `usage_threshold_config` to `usage_threshold` on `Billing.AlertCreateParams` and `Billing.Alert`
|
|
@@ -1027,7 +1068,7 @@ This release changes the pinned API version to 2025-05-28.preview.
|
|
|
1027
1068
|
## 16.0.0 - 2024-06-24
|
|
1028
1069
|
* [#2113](https://github.com/stripe/stripe-node/pull/2113)
|
|
1029
1070
|
|
|
1030
|
-
This release changes the pinned API version to 2024-06-20. Please read the [API
|
|
1071
|
+
This release changes the pinned API version to 2024-06-20. Please read the [API Changelog](https://docs.stripe.com/changelog/2024-06-20) and carefully review the API changes before upgrading.
|
|
1031
1072
|
|
|
1032
1073
|
### ⚠️ Breaking changes
|
|
1033
1074
|
|
|
@@ -1269,7 +1310,7 @@ This release changes the pinned API version to 2025-05-28.preview.
|
|
|
1269
1310
|
## 15.0.0 - 2024-04-10
|
|
1270
1311
|
* [#2057](https://github.com/stripe/stripe-node/pull/2057)
|
|
1271
1312
|
|
|
1272
|
-
* This release changes the pinned API version to `2024-04-10`. Please read the [API
|
|
1313
|
+
* This release changes the pinned API version to `2024-04-10`. Please read the [API Changelog](https://docs.stripe.com/changelog/2024-04-10) and carefully review the API changes before upgrading.
|
|
1273
1314
|
|
|
1274
1315
|
### ⚠️ Breaking changes
|
|
1275
1316
|
|
|
@@ -1884,7 +1925,7 @@ This release changes the pinned API version to 2025-05-28.preview.
|
|
|
1884
1925
|
* Change `Checkout.Session.client_secret` and `Checkout.Session.ui_mode` to be required
|
|
1885
1926
|
|
|
1886
1927
|
## 14.0.0 - 2023-10-16
|
|
1887
|
-
* This release changes the pinned API version to `2023-10-16`. Please read the [API
|
|
1928
|
+
* This release changes the pinned API version to `2023-10-16`. Please read the [API Changelog](https://docs.stripe.com/changelog/2023-10-16) and carefully review the API changes before upgrading `stripe` package.
|
|
1888
1929
|
* [#1932](https://github.com/stripe/stripe-node/pull/1932) Update generated code
|
|
1889
1930
|
* Add support for `legal_guardian` on `AccountPersonsParams.relationship` and `TokenCreateParams.person.relationship`
|
|
1890
1931
|
* Add support for new values `invalid_address_highway_contract_box`, `invalid_address_private_mailbox`, `invalid_business_profile_name_denylisted`, `invalid_business_profile_name`, `invalid_company_name_denylisted`, `invalid_dob_age_over_maximum`, `invalid_product_description_length`, `invalid_product_description_url_match`, `invalid_statement_descriptor_business_mismatch`, `invalid_statement_descriptor_denylisted`, `invalid_statement_descriptor_length`, `invalid_statement_descriptor_prefix_denylisted`, `invalid_statement_descriptor_prefix_mismatch`, `invalid_tax_id_format`, `invalid_tax_id`, `invalid_url_denylisted`, `invalid_url_format`, `invalid_url_length`, `invalid_url_web_presence_detected`, `invalid_url_website_business_information_mismatch`, `invalid_url_website_empty`, `invalid_url_website_inaccessible_geoblocked`, `invalid_url_website_inaccessible_password_protected`, `invalid_url_website_inaccessible`, `invalid_url_website_incomplete_cancellation_policy`, `invalid_url_website_incomplete_customer_service_details`, `invalid_url_website_incomplete_legal_restrictions`, `invalid_url_website_incomplete_refund_policy`, `invalid_url_website_incomplete_return_policy`, `invalid_url_website_incomplete_terms_and_conditions`, `invalid_url_website_incomplete_under_construction`, `invalid_url_website_incomplete`, and `invalid_url_website_other` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
|
|
@@ -2061,7 +2102,7 @@ This release changes the pinned API version to 2025-05-28.preview.
|
|
|
2061
2102
|
* [#1875](https://github.com/stripe/stripe-node/pull/1875) Update Typescript types to support version `2023-08-16`.
|
|
2062
2103
|
|
|
2063
2104
|
## 13.0.0 - 2023-08-16
|
|
2064
|
-
* This release changes the pinned API version to `2023-08-16`. Please read the [API
|
|
2105
|
+
* This release changes the pinned API version to `2023-08-16`. Please read the [API Changelog](https://docs.stripe.com/changelog/2023-08-16) and carefully review the API changes before upgrading `stripe-node`.
|
|
2065
2106
|
* More information is available in the [stripe-node v13 migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v13)
|
|
2066
2107
|
|
|
2067
2108
|
"⚠️" symbol highlights breaking changes.
|
|
@@ -2749,7 +2790,7 @@ This was added to maintain backwards compatibility during the transition of stri
|
|
|
2749
2790
|
|
|
2750
2791
|
## 11.0.0 - 2022-11-16
|
|
2751
2792
|
|
|
2752
|
-
This release includes breaking changes resulting from moving to use the new API version "2022-11-15". To learn more about these changes to Stripe products, see https://stripe.com/
|
|
2793
|
+
This release includes breaking changes resulting from moving to use the new API version "2022-11-15". To learn more about these changes to Stripe products, see https://docs.stripe.com/changelog/2022-11-15
|
|
2753
2794
|
|
|
2754
2795
|
"⚠️" symbol highlights breaking changes.
|
|
2755
2796
|
|
|
@@ -3011,7 +3052,7 @@ This release includes breaking changes resulting from moving to use the new API
|
|
|
3011
3052
|
|
|
3012
3053
|
This release includes breaking changes resulting from:
|
|
3013
3054
|
|
|
3014
|
-
* Moving to use the new API version "2022-08-01". To learn more about these changes to Stripe products, see https://stripe.com/
|
|
3055
|
+
* Moving to use the new API version "2022-08-01". To learn more about these changes to Stripe products, see https://docs.stripe.com/changelog/2022-08-01
|
|
3015
3056
|
* Cleaning up the SDK to remove deprecated/unused APIs and rename classes/methods/properties to sync with product APIs. Read more detailed description at https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v10.
|
|
3016
3057
|
|
|
3017
3058
|
"⚠️" symbol highlights breaking changes.
|
package/OPENAPI_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v1819
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
18.
|
|
1
|
+
18.4.0-beta.1
|
package/cjs/Error.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable camelcase */
|
|
3
3
|
/* eslint-disable no-warning-comments */
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.InvalidPaymentMethodError = exports.ControlledByDashboardError = exports.InvalidPayoutMethodError = exports.
|
|
5
|
+
exports.InvalidPaymentMethodError = exports.ControlledByDashboardError = exports.InvalidPayoutMethodError = exports.RecipientNotNotifiableError = exports.QuotaExceededError = exports.InsufficientFundsError = exports.NotCancelableError = exports.AlreadyCanceledError = exports.BlockedByStripeError = exports.FeatureNotEnabledError = exports.FinancialAccountNotOpenError = exports.TemporarySessionExpiredError = exports.StripeUnknownError = exports.StripeInvalidGrantError = exports.StripeIdempotencyError = exports.StripeSignatureVerificationError = exports.StripeConnectionError = exports.StripeRateLimitError = exports.StripePermissionError = exports.StripeAuthenticationError = exports.StripeAPIError = exports.StripeInvalidRequestError = exports.StripeCardError = exports.StripeError = exports.generateV2Error = exports.generateV1Error = void 0;
|
|
6
6
|
const generateV1Error = (rawStripeError) => {
|
|
7
7
|
switch (rawStripeError.type) {
|
|
8
8
|
case 'card_error':
|
|
@@ -32,6 +32,8 @@ const generateV2Error = (rawStripeError) => {
|
|
|
32
32
|
return new TemporarySessionExpiredError(rawStripeError);
|
|
33
33
|
case 'financial_account_not_open':
|
|
34
34
|
return new FinancialAccountNotOpenError(rawStripeError);
|
|
35
|
+
case 'feature_not_enabled':
|
|
36
|
+
return new FeatureNotEnabledError(rawStripeError);
|
|
35
37
|
case 'blocked_by_stripe':
|
|
36
38
|
return new BlockedByStripeError(rawStripeError);
|
|
37
39
|
case 'already_canceled':
|
|
@@ -44,8 +46,6 @@ const generateV2Error = (rawStripeError) => {
|
|
|
44
46
|
return new QuotaExceededError(rawStripeError);
|
|
45
47
|
case 'recipient_not_notifiable':
|
|
46
48
|
return new RecipientNotNotifiableError(rawStripeError);
|
|
47
|
-
case 'feature_not_enabled':
|
|
48
|
-
return new FeatureNotEnabledError(rawStripeError);
|
|
49
49
|
case 'invalid_payout_method':
|
|
50
50
|
return new InvalidPayoutMethodError(rawStripeError);
|
|
51
51
|
case 'controlled_by_dashboard':
|
|
@@ -228,6 +228,12 @@ class FinancialAccountNotOpenError extends StripeError {
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
exports.FinancialAccountNotOpenError = FinancialAccountNotOpenError;
|
|
231
|
+
class FeatureNotEnabledError extends StripeError {
|
|
232
|
+
constructor(rawStripeError = {}) {
|
|
233
|
+
super(rawStripeError, 'FeatureNotEnabledError');
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
exports.FeatureNotEnabledError = FeatureNotEnabledError;
|
|
231
237
|
class BlockedByStripeError extends StripeError {
|
|
232
238
|
constructor(rawStripeError = {}) {
|
|
233
239
|
super(rawStripeError, 'BlockedByStripeError');
|
|
@@ -264,12 +270,6 @@ class RecipientNotNotifiableError extends StripeError {
|
|
|
264
270
|
}
|
|
265
271
|
}
|
|
266
272
|
exports.RecipientNotNotifiableError = RecipientNotNotifiableError;
|
|
267
|
-
class FeatureNotEnabledError extends StripeError {
|
|
268
|
-
constructor(rawStripeError = {}) {
|
|
269
|
-
super(rawStripeError, 'FeatureNotEnabledError');
|
|
270
|
-
}
|
|
271
|
-
}
|
|
272
|
-
exports.FeatureNotEnabledError = FeatureNotEnabledError;
|
|
273
273
|
class InvalidPayoutMethodError extends StripeError {
|
|
274
274
|
constructor(rawStripeError = {}) {
|
|
275
275
|
super(rawStripeError, 'InvalidPayoutMethodError');
|
package/cjs/RequestSender.js
CHANGED
|
@@ -298,7 +298,7 @@ class RequestSender {
|
|
|
298
298
|
const args = [].slice.call([params, options]);
|
|
299
299
|
// Pull request data and options (headers, auth) from args.
|
|
300
300
|
const dataFromArgs = (0, utils_js_1.getDataFromArgs)(args);
|
|
301
|
-
const data = Object.assign({}, dataFromArgs);
|
|
301
|
+
const data = requestMethod === 'POST' ? Object.assign({}, dataFromArgs) : null;
|
|
302
302
|
const calculatedOptions = (0, utils_js_1.getOptionsFromArgs)(args);
|
|
303
303
|
const headers = calculatedOptions.headers;
|
|
304
304
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
package/cjs/apiVersion.js
CHANGED
package/cjs/stripe.core.js
CHANGED
|
@@ -36,7 +36,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
36
36
|
];
|
|
37
37
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
38
38
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
39
|
-
Stripe.PACKAGE_VERSION = '18.
|
|
39
|
+
Stripe.PACKAGE_VERSION = '18.4.0-beta.1';
|
|
40
40
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
41
41
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
42
42
|
Stripe.resources = resources;
|
package/esm/Error.js
CHANGED
|
@@ -28,6 +28,8 @@ export const generateV2Error = (rawStripeError) => {
|
|
|
28
28
|
return new TemporarySessionExpiredError(rawStripeError);
|
|
29
29
|
case 'financial_account_not_open':
|
|
30
30
|
return new FinancialAccountNotOpenError(rawStripeError);
|
|
31
|
+
case 'feature_not_enabled':
|
|
32
|
+
return new FeatureNotEnabledError(rawStripeError);
|
|
31
33
|
case 'blocked_by_stripe':
|
|
32
34
|
return new BlockedByStripeError(rawStripeError);
|
|
33
35
|
case 'already_canceled':
|
|
@@ -40,8 +42,6 @@ export const generateV2Error = (rawStripeError) => {
|
|
|
40
42
|
return new QuotaExceededError(rawStripeError);
|
|
41
43
|
case 'recipient_not_notifiable':
|
|
42
44
|
return new RecipientNotNotifiableError(rawStripeError);
|
|
43
|
-
case 'feature_not_enabled':
|
|
44
|
-
return new FeatureNotEnabledError(rawStripeError);
|
|
45
45
|
case 'invalid_payout_method':
|
|
46
46
|
return new InvalidPayoutMethodError(rawStripeError);
|
|
47
47
|
case 'controlled_by_dashboard':
|
|
@@ -209,6 +209,11 @@ export class FinancialAccountNotOpenError extends StripeError {
|
|
|
209
209
|
super(rawStripeError, 'FinancialAccountNotOpenError');
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
+
export class FeatureNotEnabledError extends StripeError {
|
|
213
|
+
constructor(rawStripeError = {}) {
|
|
214
|
+
super(rawStripeError, 'FeatureNotEnabledError');
|
|
215
|
+
}
|
|
216
|
+
}
|
|
212
217
|
export class BlockedByStripeError extends StripeError {
|
|
213
218
|
constructor(rawStripeError = {}) {
|
|
214
219
|
super(rawStripeError, 'BlockedByStripeError');
|
|
@@ -239,11 +244,6 @@ export class RecipientNotNotifiableError extends StripeError {
|
|
|
239
244
|
super(rawStripeError, 'RecipientNotNotifiableError');
|
|
240
245
|
}
|
|
241
246
|
}
|
|
242
|
-
export class FeatureNotEnabledError extends StripeError {
|
|
243
|
-
constructor(rawStripeError = {}) {
|
|
244
|
-
super(rawStripeError, 'FeatureNotEnabledError');
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
247
|
export class InvalidPayoutMethodError extends StripeError {
|
|
248
248
|
constructor(rawStripeError = {}) {
|
|
249
249
|
super(rawStripeError, 'InvalidPayoutMethodError');
|
package/esm/RequestSender.js
CHANGED
|
@@ -295,7 +295,7 @@ export class RequestSender {
|
|
|
295
295
|
const args = [].slice.call([params, options]);
|
|
296
296
|
// Pull request data and options (headers, auth) from args.
|
|
297
297
|
const dataFromArgs = getDataFromArgs(args);
|
|
298
|
-
const data = Object.assign({}, dataFromArgs);
|
|
298
|
+
const data = requestMethod === 'POST' ? Object.assign({}, dataFromArgs) : null;
|
|
299
299
|
const calculatedOptions = getOptionsFromArgs(args);
|
|
300
300
|
const headers = calculatedOptions.headers;
|
|
301
301
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
package/esm/apiVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
|
-
export const ApiVersion = '2025-
|
|
2
|
+
export const ApiVersion = '2025-06-30.preview';
|
package/esm/stripe.core.js
CHANGED
|
@@ -33,7 +33,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
33
33
|
];
|
|
34
34
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
35
35
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
36
|
-
Stripe.PACKAGE_VERSION = '18.
|
|
36
|
+
Stripe.PACKAGE_VERSION = '18.4.0-beta.1';
|
|
37
37
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
38
38
|
Stripe.StripeResource = StripeResource;
|
|
39
39
|
Stripe.resources = resources;
|
package/package.json
CHANGED
|
@@ -100,12 +100,12 @@ declare module 'stripe' {
|
|
|
100
100
|
namespace AccountManagement {
|
|
101
101
|
interface Features {
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
|
104
104
|
*/
|
|
105
105
|
disable_stripe_user_authentication: boolean;
|
|
106
106
|
|
|
107
107
|
/**
|
|
108
|
-
* Whether
|
|
108
|
+
* Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
|
109
109
|
*/
|
|
110
110
|
external_account_collection: boolean;
|
|
111
111
|
}
|
|
@@ -123,12 +123,12 @@ declare module 'stripe' {
|
|
|
123
123
|
namespace AccountOnboarding {
|
|
124
124
|
interface Features {
|
|
125
125
|
/**
|
|
126
|
-
*
|
|
126
|
+
* Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
|
127
127
|
*/
|
|
128
128
|
disable_stripe_user_authentication: boolean;
|
|
129
129
|
|
|
130
130
|
/**
|
|
131
|
-
* Whether
|
|
131
|
+
* Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
|
132
132
|
*/
|
|
133
133
|
external_account_collection: boolean;
|
|
134
134
|
}
|
|
@@ -146,27 +146,27 @@ declare module 'stripe' {
|
|
|
146
146
|
namespace Balances {
|
|
147
147
|
interface Features {
|
|
148
148
|
/**
|
|
149
|
-
*
|
|
149
|
+
* Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
|
150
150
|
*/
|
|
151
151
|
disable_stripe_user_authentication: boolean;
|
|
152
152
|
|
|
153
153
|
/**
|
|
154
|
-
* Whether to allow payout schedule to be changed.
|
|
154
|
+
* Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
|
155
155
|
*/
|
|
156
156
|
edit_payout_schedule: boolean;
|
|
157
157
|
|
|
158
158
|
/**
|
|
159
|
-
* Whether
|
|
159
|
+
* Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
|
160
160
|
*/
|
|
161
161
|
external_account_collection: boolean;
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
|
-
* Whether to allow creation of instant payouts.
|
|
164
|
+
* Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
|
165
165
|
*/
|
|
166
166
|
instant_payouts: boolean;
|
|
167
167
|
|
|
168
168
|
/**
|
|
169
|
-
* Whether to allow creation of standard payouts.
|
|
169
|
+
* Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
|
170
170
|
*/
|
|
171
171
|
standard_payouts: boolean;
|
|
172
172
|
}
|
|
@@ -228,17 +228,17 @@ declare module 'stripe' {
|
|
|
228
228
|
capture_payments: boolean;
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
|
-
* Whether
|
|
231
|
+
* Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
|
|
232
232
|
*/
|
|
233
233
|
destination_on_behalf_of_charge_management: boolean;
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
|
-
* Whether
|
|
236
|
+
* Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
|
|
237
237
|
*/
|
|
238
238
|
dispute_management: boolean;
|
|
239
239
|
|
|
240
240
|
/**
|
|
241
|
-
* Whether
|
|
241
|
+
* Whether sending refunds is enabled. This is `true` by default.
|
|
242
242
|
*/
|
|
243
243
|
refund_management: boolean;
|
|
244
244
|
}
|
|
@@ -269,12 +269,12 @@ declare module 'stripe' {
|
|
|
269
269
|
namespace FinancialAccount {
|
|
270
270
|
interface Features {
|
|
271
271
|
/**
|
|
272
|
-
*
|
|
272
|
+
* Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
|
273
273
|
*/
|
|
274
274
|
disable_stripe_user_authentication: boolean;
|
|
275
275
|
|
|
276
276
|
/**
|
|
277
|
-
* Whether
|
|
277
|
+
* Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
|
278
278
|
*/
|
|
279
279
|
external_account_collection: boolean;
|
|
280
280
|
|
|
@@ -368,7 +368,7 @@ declare module 'stripe' {
|
|
|
368
368
|
cardholder_management: boolean;
|
|
369
369
|
|
|
370
370
|
/**
|
|
371
|
-
*
|
|
371
|
+
* Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
|
372
372
|
*/
|
|
373
373
|
disable_stripe_user_authentication: boolean;
|
|
374
374
|
|
|
@@ -391,12 +391,12 @@ declare module 'stripe' {
|
|
|
391
391
|
namespace NotificationBanner {
|
|
392
392
|
interface Features {
|
|
393
393
|
/**
|
|
394
|
-
*
|
|
394
|
+
* Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
|
395
395
|
*/
|
|
396
396
|
disable_stripe_user_authentication: boolean;
|
|
397
397
|
|
|
398
398
|
/**
|
|
399
|
-
* Whether
|
|
399
|
+
* Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
|
400
400
|
*/
|
|
401
401
|
external_account_collection: boolean;
|
|
402
402
|
}
|
|
@@ -419,17 +419,17 @@ declare module 'stripe' {
|
|
|
419
419
|
capture_payments: boolean;
|
|
420
420
|
|
|
421
421
|
/**
|
|
422
|
-
* Whether
|
|
422
|
+
* Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
|
|
423
423
|
*/
|
|
424
424
|
destination_on_behalf_of_charge_management: boolean;
|
|
425
425
|
|
|
426
426
|
/**
|
|
427
|
-
* Whether
|
|
427
|
+
* Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
|
|
428
428
|
*/
|
|
429
429
|
dispute_management: boolean;
|
|
430
430
|
|
|
431
431
|
/**
|
|
432
|
-
* Whether
|
|
432
|
+
* Whether sending refunds is enabled. This is `true` by default.
|
|
433
433
|
*/
|
|
434
434
|
refund_management: boolean;
|
|
435
435
|
}
|
|
@@ -447,17 +447,17 @@ declare module 'stripe' {
|
|
|
447
447
|
namespace PaymentDisputes {
|
|
448
448
|
interface Features {
|
|
449
449
|
/**
|
|
450
|
-
* Whether
|
|
450
|
+
* Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
|
|
451
451
|
*/
|
|
452
452
|
destination_on_behalf_of_charge_management: boolean;
|
|
453
453
|
|
|
454
454
|
/**
|
|
455
|
-
* Whether
|
|
455
|
+
* Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
|
|
456
456
|
*/
|
|
457
457
|
dispute_management: boolean;
|
|
458
458
|
|
|
459
459
|
/**
|
|
460
|
-
* Whether
|
|
460
|
+
* Whether sending refunds is enabled. This is `true` by default.
|
|
461
461
|
*/
|
|
462
462
|
refund_management: boolean;
|
|
463
463
|
}
|
|
@@ -480,17 +480,17 @@ declare module 'stripe' {
|
|
|
480
480
|
capture_payments: boolean;
|
|
481
481
|
|
|
482
482
|
/**
|
|
483
|
-
* Whether
|
|
483
|
+
* Whether connected accounts can manage destination charges that are created on behalf of them. This is `false` by default.
|
|
484
484
|
*/
|
|
485
485
|
destination_on_behalf_of_charge_management: boolean;
|
|
486
486
|
|
|
487
487
|
/**
|
|
488
|
-
* Whether
|
|
488
|
+
* Whether responding to disputes is enabled, including submitting evidence and accepting disputes. This is `true` by default.
|
|
489
489
|
*/
|
|
490
490
|
dispute_management: boolean;
|
|
491
491
|
|
|
492
492
|
/**
|
|
493
|
-
* Whether
|
|
493
|
+
* Whether sending refunds is enabled. This is `true` by default.
|
|
494
494
|
*/
|
|
495
495
|
refund_management: boolean;
|
|
496
496
|
}
|
|
@@ -508,27 +508,27 @@ declare module 'stripe' {
|
|
|
508
508
|
namespace Payouts {
|
|
509
509
|
interface Features {
|
|
510
510
|
/**
|
|
511
|
-
*
|
|
511
|
+
* Whether Stripe user authentication is disabled. This value can only be `true` for accounts where `controller.requirement_collection` is `application` for the account. The default value is the opposite of the `external_account_collection` value. For example, if you don't set `external_account_collection`, it defaults to `true` and `disable_stripe_user_authentication` defaults to `false`.
|
|
512
512
|
*/
|
|
513
513
|
disable_stripe_user_authentication: boolean;
|
|
514
514
|
|
|
515
515
|
/**
|
|
516
|
-
* Whether to allow payout schedule to be changed.
|
|
516
|
+
* Whether to allow payout schedule to be changed. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
|
517
517
|
*/
|
|
518
518
|
edit_payout_schedule: boolean;
|
|
519
519
|
|
|
520
520
|
/**
|
|
521
|
-
* Whether
|
|
521
|
+
* Whether external account collection is enabled. This feature can only be `false` for accounts where you're responsible for collecting updated information when requirements are due or change, like Custom accounts. The default value for this feature is `true`.
|
|
522
522
|
*/
|
|
523
523
|
external_account_collection: boolean;
|
|
524
524
|
|
|
525
525
|
/**
|
|
526
|
-
* Whether to allow creation of instant payouts.
|
|
526
|
+
* Whether to allow creation of instant payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
|
527
527
|
*/
|
|
528
528
|
instant_payouts: boolean;
|
|
529
529
|
|
|
530
530
|
/**
|
|
531
|
-
* Whether to allow creation of standard payouts.
|
|
531
|
+
* Whether to allow creation of standard payouts. Defaults to `true` when `controller.losses.payments` is set to `stripe` for the account, otherwise `false`.
|
|
532
532
|
*/
|
|
533
533
|
standard_payouts: boolean;
|
|
534
534
|
}
|