stripe 19.4.0-alpha.2 → 20.1.0-alpha.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.
Files changed (73) hide show
  1. package/CHANGELOG.md +96 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/BalanceTransfers.js +9 -0
  6. package/cjs/resources/Radar/AccountEvaluations.js +20 -0
  7. package/cjs/resources.js +6 -2
  8. package/cjs/stripe.core.js +1 -1
  9. package/cjs/utils.js +2 -1
  10. package/esm/apiVersion.js +1 -1
  11. package/esm/resources/BalanceTransfers.js +6 -0
  12. package/esm/resources/Radar/AccountEvaluations.js +17 -0
  13. package/esm/resources.js +3 -0
  14. package/esm/stripe.core.js +1 -1
  15. package/esm/utils.js +2 -1
  16. package/package.json +1 -1
  17. package/types/Accounts.d.ts +19 -1
  18. package/types/AccountsResource.d.ts +60 -18
  19. package/types/ApplicationFees.d.ts +4 -4
  20. package/types/BalanceTransfers.d.ts +122 -0
  21. package/types/BalanceTransfersResource.d.ts +87 -0
  22. package/types/BankAccounts.d.ts +2 -2
  23. package/types/Billing/Analytics/MeterUsageResource.d.ts +4 -4
  24. package/types/BillingPortal/Configurations.d.ts +5 -0
  25. package/types/Capital/FinancingOffers.d.ts +6 -6
  26. package/types/Capital/FinancingSummary.d.ts +7 -7
  27. package/types/Charges.d.ts +8 -1
  28. package/types/ChargesResource.d.ts +2757 -383
  29. package/types/Checkout/Sessions.d.ts +3 -3
  30. package/types/Checkout/SessionsResource.d.ts +3 -3
  31. package/types/ConfirmationTokens.d.ts +5 -2
  32. package/types/CustomerSessionsResource.d.ts +1 -1
  33. package/types/CustomersResource.d.ts +5 -0
  34. package/types/DelegatedCheckout/RequestedSessions.d.ts +4 -4
  35. package/types/EventTypes.d.ts +36 -0
  36. package/types/Events.d.ts +3 -0
  37. package/types/FinancialConnections/Accounts.d.ts +33 -0
  38. package/types/FinancialConnections/Sessions.d.ts +1 -1
  39. package/types/InvoicePaymentsResource.d.ts +5 -0
  40. package/types/Invoices.d.ts +1 -1
  41. package/types/InvoicesResource.d.ts +33 -0
  42. package/types/Issuing/Cards.d.ts +25 -0
  43. package/types/Mandates.d.ts +3 -3
  44. package/types/OrdersResource.d.ts +3177 -811
  45. package/types/PaymentAttemptRecords.d.ts +16 -6
  46. package/types/PaymentIntentAmountDetailsLineItems.d.ts +13 -7
  47. package/types/PaymentIntents.d.ts +27 -10
  48. package/types/PaymentIntentsResource.d.ts +16930 -8541
  49. package/types/PaymentMethods.d.ts +5 -2
  50. package/types/PaymentMethodsResource.d.ts +13 -0
  51. package/types/PaymentRecords.d.ts +16 -6
  52. package/types/QuotePreviewInvoices.d.ts +1 -1
  53. package/types/QuotePreviewSubscriptionSchedules.d.ts +16 -16
  54. package/types/Quotes.d.ts +53 -53
  55. package/types/QuotesResource.d.ts +48 -48
  56. package/types/Radar/AccountEvaluations.d.ts +88 -0
  57. package/types/Radar/AccountEvaluationsResource.d.ts +148 -0
  58. package/types/Refunds.d.ts +18 -0
  59. package/types/SetupAttempts.d.ts +3 -1
  60. package/types/SetupIntents.d.ts +3 -3
  61. package/types/SetupIntentsResource.d.ts +12 -9
  62. package/types/SubscriptionSchedules.d.ts +16 -16
  63. package/types/SubscriptionSchedulesResource.d.ts +35 -2
  64. package/types/Subscriptions.d.ts +16 -16
  65. package/types/Tax/Associations.d.ts +1 -1
  66. package/types/Tax/RegistrationsResource.d.ts +1 -1
  67. package/types/Terminal/ConfigurationsResource.d.ts +18 -18
  68. package/types/TestHelpers/ConfirmationTokensResource.d.ts +1 -0
  69. package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +27 -0
  70. package/types/TokensResource.d.ts +18 -18
  71. package/types/WebhookEndpointsResource.d.ts +8 -1
  72. package/types/apiVersion.d.ts +1 -1
  73. package/types/index.d.ts +6 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,101 @@
1
1
  # Changelog
2
2
 
3
+ ## 20.1.0-alpha.1 - 2025-11-18
4
+ * [#2505](https://github.com/stripe/stripe-node/pull/2505) Update generated code for private-preview
5
+ * Add support for `billing_schedules_actions` on `InvoiceCreatePreviewParams.schedule_details.amendments[]` and `SubscriptionScheduleAmendParams.amendments[]`
6
+ * [#2504](https://github.com/stripe/stripe-node/pull/2504) Update generated code for private-preview
7
+ * Add support for new resources `BalanceTransfer` and `Radar.AccountEvaluation`
8
+ * Add support for `create` method on resource `BalanceTransfer`
9
+ * Add support for `create`, `retrieve`, and `update` methods on resource `Radar.AccountEvaluation`
10
+ * Add support for `specified_commercial_transactions_act_url` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile`
11
+ * Add support for `paypay_payments` on `Account.settings`, `AccountCreateParams.settings`, and `AccountUpdateParams.settings`
12
+ * Change `Tax.Association.tax_transaction_attempts` to be required
13
+ * Change type of `Billing.Analytics.MeterUsageRetrieveParams.meters[].dimension_filters` from `string` to `array(string)`
14
+ * Change type of `Billing.Analytics.MeterUsageRetrieveParams.meters[].tenant_filters` from `string` to `array(string)`
15
+ * Add support for `payment_method_configuration` on `BillingPortal.Configuration.features.payment_method_update`
16
+ * Add support for `car_rental_data`, `flight_data`, and `lodging_data` on `ChargeCaptureParams.payment_details`, `ChargeUpdateParams.payment_details`, `PaymentIntentCaptureParams.payment_details`, `PaymentIntentConfirmParams.payment_details`, `PaymentIntentCreateParams.payment_details`, and `PaymentIntentUpdateParams.payment_details`
17
+ * Add support for `transaction_id` on `Charge.payment_method_details.ideal`, `PaymentAttemptRecord.payment_method_details.ideal`, and `PaymentRecord.payment_method_details.ideal`
18
+ * Add support for new value `finom` on enums `Charge.payment_method_details.ideal.bank`, `ConfirmationToken.payment_method_preview.ideal.bank`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data.ideal.bank`, `PaymentAttemptRecord.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `PaymentRecord.payment_method_details.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank`
19
+ * Add support for new value `FNOMNL22` on enums `Charge.payment_method_details.ideal.bic`, `ConfirmationToken.payment_method_preview.ideal.bic`, `PaymentAttemptRecord.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, `PaymentRecord.payment_method_details.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic`
20
+ * Add support for new value `tokenized_account_number_deactivated` on enums `ConfirmationToken.payment_method_preview.us_bank_account.status_details.blocked.reason` and `PaymentMethod.us_bank_account.status_details.blocked.reason`
21
+ * Add support for `created` on `CustomerListCustomerBalanceTransactionsParams` and `InvoicePaymentListParams`
22
+ * Add support for new values `capital.financing_offer.accepted_other_offer`, `financial_connections.account.account_numbers_updated`, and `financial_connections.account.upcoming_account_number_expiry` on enum `Event.type`
23
+ * Add support for `account_numbers` on `FinancialConnections.Account`
24
+ * Change type of `FinancialConnections.Session.client_secret` from `string` to `string | null`
25
+ * Add support for `fraud_risk` on `Issuing.AuthorizationCreateParams.testHelpers.risk_assessment`
26
+ * Add support for `latest_fraud_warning` on `Issuing.Card`
27
+ * Add support for `supplementary_purchase_data` on `OrderCreateParams.payment.settings.payment_method_options.klarna`, `OrderUpdateParams.payment.settings.payment_method_options.klarna`, `PaymentIntentConfirmParams.payment_method_options.klarna`, `PaymentIntentCreateParams.payment_method_options.klarna`, and `PaymentIntentUpdateParams.payment_method_options.klarna`
28
+ * Add support for `capture_method` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present`
29
+ * Add support for `allow_redisplay` and `customer_account` on `PaymentMethodListParams`
30
+ * Add support for `mb_way` and `twint` on `Refund.destination_details`
31
+ * Change type of `SubscriptionScheduleUpdateParams.billing_schedules` from `array(billing_schedules_update_params)` to `emptyable(array(billing_schedules_update_params))`
32
+ * Add support for new values `capital.financing_offer.accepted_other_offer`, `financial_connections.account.account_numbers_updated`, and `financial_connections.account.upcoming_account_number_expiry` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
33
+ * Add support for new value `2025-11-17.clover` on enum `WebhookEndpointCreateParams.api_version`
34
+ * Add support for snapshot events `FinancialConnectionsAccountAccountNumbersUpdatedEvent` and `FinancialConnectionsAccountUpcomingAccountNumberExpiryEvent` with resource `FinancialConnections.Account`
35
+
36
+ ## 20.1.0-beta.1 - 2025-11-18
37
+ This release changes the pinned API version to `2025-11-17.preview`.
38
+
39
+ * [#2487](https://github.com/stripe/stripe-node/pull/2487) Update generated code for beta
40
+ * Add support for new resources `V2.Core.AccountPersonToken` and `V2.Core.AccountToken`
41
+ * Remove support for resource `V2.Payments.OffSessionPayment`
42
+ * Add support for `create` and `retrieve` methods on resources `V2.Core.AccountPersonToken` and `V2.Core.AccountToken`
43
+ * Remove support for `cancel`, `capture`, `create`, `list`, and `retrieve` methods on resource `V2.Payments.OffSessionPayment`
44
+ * Add support for `specified_commercial_transactions_act_url` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile`
45
+ * Add support for `paypay_payments` on `Account.settings`, `AccountCreateParams.settings`, and `AccountUpdateParams.settings`
46
+ * Change `Tax.Association.tax_transaction_attempts` to be required
47
+ * Change type of `Billing.Analytics.MeterUsageRetrieveParams.meters[].dimension_filters` from `string` to `array(string)`
48
+ * Change type of `Billing.Analytics.MeterUsageRetrieveParams.meters[].tenant_filters` from `string` to `array(string)`
49
+ * Add support for `car_rental_data`, `flight_data`, and `lodging_data` on `ChargeCaptureParams.payment_details`, `ChargeUpdateParams.payment_details`, `PaymentIntentCaptureParams.payment_details`, `PaymentIntentConfirmParams.payment_details`, `PaymentIntentCreateParams.payment_details`, and `PaymentIntentUpdateParams.payment_details`
50
+ * Add support for `supplementary_purchase_data` on `OrderCreateParams.payment.settings.payment_method_options.klarna`, `OrderUpdateParams.payment.settings.payment_method_options.klarna`, `PaymentIntentConfirmParams.payment_method_options.klarna`, `PaymentIntentCreateParams.payment_method_options.klarna`, and `PaymentIntentUpdateParams.payment_method_options.klarna`
51
+ * Add support for `allow_redisplay` and `customer_account` on `PaymentMethodListParams`
52
+ * Add support for `future_requirements` on `V2.Core.Account`
53
+ * Add support for `konbini_payments` and `script_statement_descriptor` on `V2.Core.Account.configuration.merchant`, `V2.Core.AccountCreateParams.configuration.merchant`, and `V2.Core.AccountUpdateParams.configuration.merchant`
54
+ * Add support for `eur` on `V2.Core.Account.configuration.storer.capabilities.holds_currencies`, `V2.Core.AccountCreateParams.configuration.storer.capabilities.holds_currencies`, and `V2.Core.AccountUpdateParams.configuration.storer.capabilities.holds_currencies`
55
+ * Add support for `requirements_collector` on `V2.Core.Account.defaults.responsibilities`
56
+ * Add support for new value `ar_cuit` on enums `V2.Core.Account.identity.business_details.id_numbers[].type`, `V2.Core.AccountCreateParams.identity.business_details.id_numbers[].type`, and `V2.Core.AccountUpdateParams.identity.business_details.id_numbers[].type`
57
+ * Add support for new value `ar_dni` on enums `V2.Core.Account.identity.individual.id_numbers[].type`, `V2.Core.AccountCreateParams.identity.individual.id_numbers[].type`, `V2.Core.AccountPerson.id_numbers[].type`, `V2.Core.AccountPersonCreateParams.id_numbers[].type`, `V2.Core.AccountPersonUpdateParams.id_numbers[].type`, and `V2.Core.AccountUpdateParams.identity.individual.id_numbers[].type`
58
+ * Remove support for `collector` on `V2.Core.Account.requirements`
59
+ * Add support for new value `holds_currencies.eur` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].capability`
60
+ * Add support for new values `payment_method` and `person` on enum `V2.Core.Account.requirements.entries[].reference.type`
61
+ * Remove support for value `resource` from enum `V2.Core.Account.requirements.entries[].reference.type`
62
+ * Remove support for value `future_requirements` from enum `V2.Core.Account.requirements.entries[].requested_reasons[].code`
63
+ * Add support for `changes` on `V2.Core.Event`
64
+ * Remove support for value `sepa_bank_account` from enums `V2.MoneyManagement.FinancialAddress.credentials.type` and `V2.MoneyManagement.FinancialAddressCreateParams.type`
65
+ * Add support for `account_token` on `V2.Core.AccountCreateParams` and `V2.Core.AccountUpdateParams`
66
+ * Add support for new value `future_requirements` on enums `V2.Core.AccountCreateParams.include`, `V2.Core.AccountRetrieveParams.include`, and `V2.Core.AccountUpdateParams.include`
67
+ * Add support for `person_token` on `V2.Core.AccountPersonCreateParams` and `V2.Core.AccountPersonUpdateParams`
68
+ * Add support for `changes` on `v2.core.Event`
69
+ * Add support for thin event `V2CoreHealthEventGenerationFailureResolvedEvent`
70
+ * Remove support for thin events `V2PaymentsOffSessionPaymentAuthorizationAttemptFailedEvent`, `V2PaymentsOffSessionPaymentAuthorizationAttemptStartedEvent`, `V2PaymentsOffSessionPaymentCanceledEvent`, `V2PaymentsOffSessionPaymentCreatedEvent`, `V2PaymentsOffSessionPaymentFailedEvent`, `V2PaymentsOffSessionPaymentRequiresCaptureEvent`, and `V2PaymentsOffSessionPaymentSucceededEvent` with related object `V2.Payments.OffSessionPayment`
71
+
72
+ ## 20.0.0 - 2025-11-18
73
+ This release changes the pinned API version to `2025-11-17.clover`.
74
+
75
+ * [#2502](https://github.com/stripe/stripe-node/pull/2502) Update generated code
76
+ * ⚠️ Remove support for `gt`, `gte`, `lt`, and `lte` on `V2.Core.EventListParams` in favor of `created`.
77
+ * [#2497](https://github.com/stripe/stripe-node/pull/2497) Update v2 array parameter serialization to use indexed format
78
+ - `Retrieve` and `List` calls for `/v2` endpoints now use indexed format (e.g., `?include[0]=foo&include[1]=bar`) instead of repeated parameter format (e.g., `?include=foo&include=bar`) when communicating with the Stripe API. This may break any unit tests that expect the latter behavior when setting up a mock server. Instead, they should now expect the former.
79
+ * [#2495](https://github.com/stripe/stripe-node/pull/2495) Update generated code
80
+ * Add support for new resources `Tax.Association` and `Terminal.OnboardingLink`
81
+ * Add support for `find` method on resource `Tax.Association`
82
+ * Add support for `create` method on resource `Terminal.OnboardingLink`
83
+ * Add support for `payment_method_configuration` on `BillingPortal.Configuration.features.payment_method_update`
84
+ * Add support for `transaction_id` on `Charge.payment_method_details.ideal`, `PaymentAttemptRecord.payment_method_details.ideal`, and `PaymentRecord.payment_method_details.ideal`
85
+ * Add support for new value `finom` on enums `Charge.payment_method_details.ideal.bank`, `ConfirmationToken.payment_method_preview.ideal.bank`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data.ideal.bank`, `PaymentAttemptRecord.payment_method_details.ideal.bank`, `PaymentIntentConfirmParams.payment_method_data.ideal.bank`, `PaymentIntentCreateParams.payment_method_data.ideal.bank`, `PaymentIntentUpdateParams.payment_method_data.ideal.bank`, `PaymentMethod.ideal.bank`, `PaymentMethodCreateParams.ideal.bank`, `PaymentRecord.payment_method_details.ideal.bank`, `SetupAttempt.payment_method_details.ideal.bank`, `SetupIntentConfirmParams.payment_method_data.ideal.bank`, `SetupIntentCreateParams.payment_method_data.ideal.bank`, and `SetupIntentUpdateParams.payment_method_data.ideal.bank`
86
+ * Add support for new value `FNOMNL22` on enums `Charge.payment_method_details.ideal.bic`, `ConfirmationToken.payment_method_preview.ideal.bic`, `PaymentAttemptRecord.payment_method_details.ideal.bic`, `PaymentMethod.ideal.bic`, `PaymentRecord.payment_method_details.ideal.bic`, and `SetupAttempt.payment_method_details.ideal.bic`
87
+ * Add support for new value `tokenized_account_number_deactivated` on enums `ConfirmationToken.payment_method_preview.us_bank_account.status_details.blocked.reason` and `PaymentMethod.us_bank_account.status_details.blocked.reason`
88
+ * Add support for `created` on `CustomerListCustomerBalanceTransactionsParams` and `InvoicePaymentListParams`
89
+ * Add support for new values `financial_connections.account.account_numbers_updated` and `financial_connections.account.upcoming_account_number_expiry` on enum `Event.type`
90
+ * Add support for `account_numbers` on `FinancialConnections.Account`
91
+ * Change type of `FinancialConnections.Session.client_secret` from `string` to `string | null`
92
+ * Add support for `fraud_risk` on `Issuing.AuthorizationCreateParams.testHelpers.risk_assessment`
93
+ * Add support for `latest_fraud_warning` on `Issuing.Card`
94
+ * Add support for `hooks` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, `PaymentIntentUpdateParams`, and `PaymentIntent`
95
+ * Add support for `mb_way` and `twint` on `Refund.destination_details`
96
+ * Add support for new values `financial_connections.account.account_numbers_updated` and `financial_connections.account.upcoming_account_number_expiry` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
97
+ * Add support for snapshot events `FinancialConnectionsAccountAccountNumbersUpdatedEvent` and `FinancialConnectionsAccountUpcomingAccountNumberExpiryEvent` with resource `FinancialConnections.Account`
98
+
3
99
  ## 19.4.0-alpha.2 - 2025-11-13
4
100
  This release changes the pinned API version to `2025-10-29.preview`.
5
101
 
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v2120
1
+ v2125
package/VERSION CHANGED
@@ -1 +1 @@
1
- 19.4.0-alpha.2
1
+ 20.1.0-alpha.1
package/cjs/apiVersion.js CHANGED
@@ -2,4 +2,4 @@
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ApiVersion = void 0;
5
- exports.ApiVersion = '2025-10-29.preview';
5
+ exports.ApiVersion = '2025-11-17.preview';
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BalanceTransfers = void 0;
5
+ const StripeResource_js_1 = require("../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.BalanceTransfers = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({ method: 'POST', fullPath: '/v1/balance_transfers' }),
9
+ });
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AccountEvaluations = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.AccountEvaluations = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v1/radar/account_evaluations',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v1/radar/account_evaluations/{account_evaluation}',
15
+ }),
16
+ update: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v1/radar/account_evaluations/{account_evaluation}/report_event',
19
+ }),
20
+ });
package/cjs/resources.js CHANGED
@@ -1,9 +1,10 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentRecords = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.PaymentAttemptRecords = exports.Orders = exports.OAuth = exports.Margins = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoicePayments = exports.InvoiceItems = exports.FxQuotes = exports.Files = exports.FileLinks = exports.ExternalAccounts = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.BalanceSettings = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountNotices = exports.AccountLinks = exports.Account = void 0;
5
- exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Privacy = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.DelegatedCheckout = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = void 0;
4
+ exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentRecords = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.PaymentAttemptRecords = exports.Orders = exports.OAuth = exports.Margins = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoicePayments = exports.InvoiceItems = exports.FxQuotes = exports.Files = exports.FileLinks = exports.ExternalAccounts = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransfers = exports.BalanceTransactions = exports.BalanceSettings = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountNotices = exports.AccountLinks = exports.Account = void 0;
5
+ exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Privacy = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.DelegatedCheckout = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = exports.SetupIntents = void 0;
6
6
  const ResourceNamespace_js_1 = require("./ResourceNamespace.js");
7
+ const AccountEvaluations_js_1 = require("./resources/Radar/AccountEvaluations.js");
7
8
  const AccountLinks_js_1 = require("./resources/V2/Core/AccountLinks.js");
8
9
  const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");
9
10
  const Accounts_js_2 = require("./resources/V2/Core/Accounts.js");
@@ -155,6 +156,8 @@ var BalanceSettings_js_1 = require("./resources/BalanceSettings.js");
155
156
  Object.defineProperty(exports, "BalanceSettings", { enumerable: true, get: function () { return BalanceSettings_js_1.BalanceSettings; } });
156
157
  var BalanceTransactions_js_1 = require("./resources/BalanceTransactions.js");
157
158
  Object.defineProperty(exports, "BalanceTransactions", { enumerable: true, get: function () { return BalanceTransactions_js_1.BalanceTransactions; } });
159
+ var BalanceTransfers_js_1 = require("./resources/BalanceTransfers.js");
160
+ Object.defineProperty(exports, "BalanceTransfers", { enumerable: true, get: function () { return BalanceTransfers_js_1.BalanceTransfers; } });
158
161
  var Charges_js_1 = require("./resources/Charges.js");
159
162
  Object.defineProperty(exports, "Charges", { enumerable: true, get: function () { return Charges_js_1.Charges; } });
160
163
  var ConfirmationTokens_js_2 = require("./resources/ConfirmationTokens.js");
@@ -328,6 +331,7 @@ exports.Privacy = (0, ResourceNamespace_js_1.resourceNamespace)('privacy', {
328
331
  RedactionJobs: RedactionJobs_js_1.RedactionJobs,
329
332
  });
330
333
  exports.Radar = (0, ResourceNamespace_js_1.resourceNamespace)('radar', {
334
+ AccountEvaluations: AccountEvaluations_js_1.AccountEvaluations,
331
335
  EarlyFraudWarnings: EarlyFraudWarnings_js_1.EarlyFraudWarnings,
332
336
  ValueListItems: ValueListItems_js_1.ValueListItems,
333
337
  ValueLists: ValueLists_js_1.ValueLists,
@@ -37,7 +37,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
37
37
  ];
38
38
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
39
39
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
40
- Stripe.PACKAGE_VERSION = '19.4.0-alpha.2';
40
+ Stripe.PACKAGE_VERSION = '20.1.0-alpha.1';
41
41
  Stripe.API_VERSION = apiVersion_js_1.ApiVersion;
42
42
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
43
43
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
package/cjs/utils.js CHANGED
@@ -29,7 +29,8 @@ function queryStringifyRequestData(data, apiMode) {
29
29
  return (qs
30
30
  .stringify(data, {
31
31
  serializeDate: (d) => Math.floor(d.getTime() / 1000).toString(),
32
- arrayFormat: apiMode == 'v2' ? 'repeat' : 'indices',
32
+ // Always use indexed format for arrays
33
+ arrayFormat: 'indices',
33
34
  })
34
35
  // Don't use strict form encoding by changing the square bracket control
35
36
  // characters back to their literals. This is fine by the server, and
package/esm/apiVersion.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // File generated from our OpenAPI spec
2
- export const ApiVersion = '2025-10-29.preview';
2
+ export const ApiVersion = '2025-11-17.preview';
@@ -0,0 +1,6 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const BalanceTransfers = StripeResource.extend({
5
+ create: stripeMethod({ method: 'POST', fullPath: '/v1/balance_transfers' }),
6
+ });
@@ -0,0 +1,17 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const AccountEvaluations = StripeResource.extend({
5
+ create: stripeMethod({
6
+ method: 'POST',
7
+ fullPath: '/v1/radar/account_evaluations',
8
+ }),
9
+ retrieve: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v1/radar/account_evaluations/{account_evaluation}',
12
+ }),
13
+ update: stripeMethod({
14
+ method: 'POST',
15
+ fullPath: '/v1/radar/account_evaluations/{account_evaluation}/report_event',
16
+ }),
17
+ });
package/esm/resources.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // File generated from our OpenAPI spec
2
2
  import { resourceNamespace } from './ResourceNamespace.js';
3
+ import { AccountEvaluations as RadarAccountEvaluations } from './resources/Radar/AccountEvaluations.js';
3
4
  import { AccountLinks as V2CoreAccountLinks } from './resources/V2/Core/AccountLinks.js';
4
5
  import { Accounts as FinancialConnectionsAccounts } from './resources/FinancialConnections/Accounts.js';
5
6
  import { Accounts as V2CoreAccounts } from './resources/V2/Core/Accounts.js';
@@ -141,6 +142,7 @@ export { ApplicationFees } from './resources/ApplicationFees.js';
141
142
  export { Balance } from './resources/Balance.js';
142
143
  export { BalanceSettings } from './resources/BalanceSettings.js';
143
144
  export { BalanceTransactions } from './resources/BalanceTransactions.js';
145
+ export { BalanceTransfers } from './resources/BalanceTransfers.js';
144
146
  export { Charges } from './resources/Charges.js';
145
147
  export { ConfirmationTokens } from './resources/ConfirmationTokens.js';
146
148
  export { CountrySpecs } from './resources/CountrySpecs.js';
@@ -262,6 +264,7 @@ export const Privacy = resourceNamespace('privacy', {
262
264
  RedactionJobs: PrivacyRedactionJobs,
263
265
  });
264
266
  export const Radar = resourceNamespace('radar', {
267
+ AccountEvaluations: RadarAccountEvaluations,
265
268
  EarlyFraudWarnings: RadarEarlyFraudWarnings,
266
269
  ValueListItems: RadarValueListItems,
267
270
  ValueLists: RadarValueLists,
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
34
34
  ];
35
35
  const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
36
36
  export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
37
- Stripe.PACKAGE_VERSION = '19.4.0-alpha.2';
37
+ Stripe.PACKAGE_VERSION = '20.1.0-alpha.1';
38
38
  Stripe.API_VERSION = ApiVersion;
39
39
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
40
40
  Stripe.StripeResource = StripeResource;
package/esm/utils.js CHANGED
@@ -25,7 +25,8 @@ export function queryStringifyRequestData(data, apiMode) {
25
25
  return (qs
26
26
  .stringify(data, {
27
27
  serializeDate: (d) => Math.floor(d.getTime() / 1000).toString(),
28
- arrayFormat: apiMode == 'v2' ? 'repeat' : 'indices',
28
+ // Always use indexed format for arrays
29
+ arrayFormat: 'indices',
29
30
  })
30
31
  // Don't use strict form encoding by changing the square bracket control
31
32
  // characters back to their literals. This is fine by the server, and
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "19.4.0-alpha.2",
3
+ "version": "20.1.0-alpha.1",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -162,6 +162,11 @@ declare module 'stripe' {
162
162
  */
163
163
  product_description?: string | null;
164
164
 
165
+ /**
166
+ * A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan.
167
+ */
168
+ specified_commercial_transactions_act_url?: string | null;
169
+
165
170
  /**
166
171
  * A publicly available mailing address for sending support issues to.
167
172
  */
@@ -1609,6 +1614,8 @@ declare module 'stripe' {
1609
1614
 
1610
1615
  payouts?: Settings.Payouts;
1611
1616
 
1617
+ paypay_payments?: Settings.PaypayPayments;
1618
+
1612
1619
  sepa_debit_payments?: Settings.SepaDebitPayments;
1613
1620
 
1614
1621
  tax_forms?: Settings.TaxForms;
@@ -1754,7 +1761,7 @@ declare module 'stripe' {
1754
1761
  default_account_tax_ids: Array<string | Stripe.TaxId> | null;
1755
1762
 
1756
1763
  /**
1757
- * Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
1764
+ * Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
1758
1765
  */
1759
1766
  hosted_payment_method_save: Invoices.HostedPaymentMethodSave | null;
1760
1767
  }
@@ -1847,6 +1854,17 @@ declare module 'stripe' {
1847
1854
  }
1848
1855
  }
1849
1856
 
1857
+ interface PaypayPayments {
1858
+ /**
1859
+ * Whether your business sells digital content or not.
1860
+ */
1861
+ goods_type?: PaypayPayments.GoodsType;
1862
+ }
1863
+
1864
+ namespace PaypayPayments {
1865
+ type GoodsType = 'digital_content' | 'other';
1866
+ }
1867
+
1850
1868
  interface SepaDebitPayments {
1851
1869
  /**
1852
1870
  * SEPA creditor identifier that identifies the company making the payment.
@@ -147,6 +147,11 @@ declare module 'stripe' {
147
147
  */
148
148
  product_description?: string;
149
149
 
150
+ /**
151
+ * A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Used by the Checkout product and for Japanese payment methods.
152
+ */
153
+ specified_commercial_transactions_act_url?: Stripe.Emptyable<string>;
154
+
150
155
  /**
151
156
  * A publicly available mailing address for sending support issues to.
152
157
  */
@@ -1708,24 +1713,24 @@ declare module 'stripe' {
1708
1713
  relationship?: Individual.Relationship;
1709
1714
 
1710
1715
  /**
1711
- * The last four digits of the individual's Social Security Number (U.S. only).
1716
+ * The credit applicant's self-reported yearly income in minor units.
1712
1717
  */
1713
- ssn_last_4?: string;
1718
+ self_reported_income?: Individual.SelfReportedIncome;
1714
1719
 
1715
1720
  /**
1716
- * The individual's verification document information.
1721
+ * The credit applicant's self-reported monthly housing payment in minor units.
1717
1722
  */
1718
- verification?: Individual.Verification;
1723
+ self_reported_monthly_housing_payment?: Individual.SelfReportedMonthlyHousingPayment;
1719
1724
 
1720
1725
  /**
1721
- * The credit applicant's self-reported yearly income in minor units.
1726
+ * The last four digits of the individual's Social Security Number (U.S. only).
1722
1727
  */
1723
- self_reported_income?: Individual.SelfReportedIncome;
1728
+ ssn_last_4?: string;
1724
1729
 
1725
1730
  /**
1726
- * The credit applicant's self-reported monthly housing payment in minor units.
1731
+ * The individual's verification document information.
1727
1732
  */
1728
- self_reported_monthly_housing_payment?: Individual.SelfReportedMonthlyHousingPayment;
1733
+ verification?: Individual.Verification;
1729
1734
  }
1730
1735
 
1731
1736
  namespace Individual {
@@ -1902,6 +1907,11 @@ declare module 'stripe' {
1902
1907
  */
1903
1908
  payouts?: Settings.Payouts;
1904
1909
 
1910
+ /**
1911
+ * Settings specific to the PayPay payments method.
1912
+ */
1913
+ paypay_payments?: Settings.PaypayPayments;
1914
+
1905
1915
  /**
1906
1916
  * Settings specific to the account's tax forms.
1907
1917
  */
@@ -2035,7 +2045,7 @@ declare module 'stripe' {
2035
2045
 
2036
2046
  interface Invoices {
2037
2047
  /**
2038
- * Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
2048
+ * Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
2039
2049
  */
2040
2050
  hosted_payment_method_save?: Invoices.HostedPaymentMethodSave;
2041
2051
  }
@@ -2132,6 +2142,17 @@ declare module 'stripe' {
2132
2142
  }
2133
2143
  }
2134
2144
 
2145
+ interface PaypayPayments {
2146
+ /**
2147
+ * Whether your business sells digital content or not.
2148
+ */
2149
+ goods_type?: PaypayPayments.GoodsType;
2150
+ }
2151
+
2152
+ namespace PaypayPayments {
2153
+ type GoodsType = 'digital_content' | 'other';
2154
+ }
2155
+
2135
2156
  interface TaxForms {
2136
2157
  /**
2137
2158
  * Whether the account opted out of receiving their tax forms by postal delivery.
@@ -2371,6 +2392,11 @@ declare module 'stripe' {
2371
2392
  */
2372
2393
  product_description?: string;
2373
2394
 
2395
+ /**
2396
+ * A link to the business's publicly available terms related to the Specified Commercial Transaction Act. Only used for accounts in Japan.
2397
+ */
2398
+ specified_commercial_transactions_act_url?: Stripe.Emptyable<string>;
2399
+
2374
2400
  /**
2375
2401
  * A publicly available mailing address for sending support issues to.
2376
2402
  */
@@ -3838,24 +3864,24 @@ declare module 'stripe' {
3838
3864
  relationship?: Individual.Relationship;
3839
3865
 
3840
3866
  /**
3841
- * The last four digits of the individual's Social Security Number (U.S. only).
3867
+ * The credit applicant's self-reported yearly income in minor units.
3842
3868
  */
3843
- ssn_last_4?: string;
3869
+ self_reported_income?: Individual.SelfReportedIncome;
3844
3870
 
3845
3871
  /**
3846
- * The individual's verification document information.
3872
+ * The credit applicant's self-reported monthly housing payment in minor units.
3847
3873
  */
3848
- verification?: Individual.Verification;
3874
+ self_reported_monthly_housing_payment?: Individual.SelfReportedMonthlyHousingPayment;
3849
3875
 
3850
3876
  /**
3851
- * The credit applicant's self-reported yearly income in minor units.
3877
+ * The last four digits of the individual's Social Security Number (U.S. only).
3852
3878
  */
3853
- self_reported_income?: Individual.SelfReportedIncome;
3879
+ ssn_last_4?: string;
3854
3880
 
3855
3881
  /**
3856
- * The credit applicant's self-reported monthly housing payment in minor units.
3882
+ * The individual's verification document information.
3857
3883
  */
3858
- self_reported_monthly_housing_payment?: Individual.SelfReportedMonthlyHousingPayment;
3884
+ verification?: Individual.Verification;
3859
3885
  }
3860
3886
 
3861
3887
  namespace Individual {
@@ -4032,6 +4058,11 @@ declare module 'stripe' {
4032
4058
  */
4033
4059
  payouts?: Settings.Payouts;
4034
4060
 
4061
+ /**
4062
+ * Settings specific to the PayPay payments method.
4063
+ */
4064
+ paypay_payments?: Settings.PaypayPayments;
4065
+
4035
4066
  /**
4036
4067
  * Settings specific to the account's tax forms.
4037
4068
  */
@@ -4170,7 +4201,7 @@ declare module 'stripe' {
4170
4201
  default_account_tax_ids?: Stripe.Emptyable<Array<string>>;
4171
4202
 
4172
4203
  /**
4173
- * Whether payment methods should be saved when a payment is completed for a one-time invoices on a hosted invoice page.
4204
+ * Whether to save the payment method after a payment is completed for a one-time invoice or a subscription invoice when the customer already has a default payment method on the hosted invoice page.
4174
4205
  */
4175
4206
  hosted_payment_method_save?: Invoices.HostedPaymentMethodSave;
4176
4207
  }
@@ -4267,6 +4298,17 @@ declare module 'stripe' {
4267
4298
  }
4268
4299
  }
4269
4300
 
4301
+ interface PaypayPayments {
4302
+ /**
4303
+ * Whether your business sells digital content or not.
4304
+ */
4305
+ goods_type?: PaypayPayments.GoodsType;
4306
+ }
4307
+
4308
+ namespace PaypayPayments {
4309
+ type GoodsType = 'digital_content' | 'other';
4310
+ }
4311
+
4270
4312
  interface TaxForms {
4271
4313
  /**
4272
4314
  * Whether the account opted out of receiving their tax forms by postal delivery.
@@ -95,14 +95,14 @@ declare module 'stripe' {
95
95
  payout?: string;
96
96
 
97
97
  /**
98
- * Type of object that created the application fee.
98
+ * Transfer ID that created this application fee.
99
99
  */
100
- type: FeeSource.Type;
100
+ transfer?: string;
101
101
 
102
102
  /**
103
- * Transfer ID that created this application fee.
103
+ * Type of object that created the application fee.
104
104
  */
105
- transfer?: string;
105
+ type: FeeSource.Type;
106
106
  }
107
107
 
108
108
  namespace FeeSource {