stripe 18.1.1 → 18.2.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.
Files changed (99) hide show
  1. package/CHANGELOG.md +66 -32
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/Invoices.js +4 -0
  6. package/cjs/resources/Terminal/Readers.js +4 -0
  7. package/cjs/resources/TestHelpers/Terminal/Readers.js +8 -0
  8. package/cjs/stripe.core.js +1 -1
  9. package/esm/apiVersion.js +1 -1
  10. package/esm/resources/Invoices.js +4 -0
  11. package/esm/resources/Terminal/Readers.js +4 -0
  12. package/esm/resources/TestHelpers/Terminal/Readers.js +8 -0
  13. package/esm/stripe.core.js +1 -1
  14. package/package.json +1 -1
  15. package/types/AccountSessions.d.ts +65 -0
  16. package/types/AccountSessionsResource.d.ts +77 -0
  17. package/types/Accounts.d.ts +22 -15
  18. package/types/AccountsResource.d.ts +79 -55
  19. package/types/Balance.d.ts +83 -1
  20. package/types/BalanceResource.d.ts +1 -1
  21. package/types/BalanceTransactions.d.ts +10 -0
  22. package/types/BankAccounts.d.ts +3 -3
  23. package/types/Billing/Alerts.d.ts +1 -1
  24. package/types/Billing/AlertsResource.d.ts +2 -2
  25. package/types/BillingPortal/Sessions.d.ts +1 -1
  26. package/types/Capabilities.d.ts +1 -1
  27. package/types/Cards.d.ts +2 -2
  28. package/types/Charges.d.ts +20 -0
  29. package/types/ChargesResource.d.ts +4 -4
  30. package/types/Checkout/Sessions.d.ts +120 -105
  31. package/types/Checkout/SessionsResource.d.ts +117 -108
  32. package/types/ConfirmationTokens.d.ts +4 -4
  33. package/types/CountrySpecs.d.ts +1 -1
  34. package/types/CreditNotes.d.ts +13 -3
  35. package/types/CreditNotesResource.d.ts +7 -8
  36. package/types/CustomerSessions.d.ts +3 -3
  37. package/types/CustomersResource.d.ts +7 -7
  38. package/types/Disputes.d.ts +1 -1
  39. package/types/DisputesResource.d.ts +1 -1
  40. package/types/EventTypes.d.ts +17 -0
  41. package/types/Events.d.ts +4 -0
  42. package/types/Files.d.ts +1 -1
  43. package/types/FilesResource.d.ts +1 -1
  44. package/types/Identity/VerificationReports.d.ts +17 -0
  45. package/types/Identity/VerificationSessions.d.ts +19 -2
  46. package/types/Identity/VerificationSessionsResource.d.ts +5 -5
  47. package/types/InvoiceItems.d.ts +1 -1
  48. package/types/InvoiceLineItems.d.ts +1 -1
  49. package/types/InvoicePayments.d.ts +9 -2
  50. package/types/Invoices.d.ts +7 -6
  51. package/types/InvoicesResource.d.ts +88 -11
  52. package/types/Issuing/AuthorizationsResource.d.ts +4 -4
  53. package/types/Issuing/CardsResource.d.ts +3 -0
  54. package/types/Issuing/DisputesResource.d.ts +2 -2
  55. package/types/LineItems.d.ts +2 -2
  56. package/types/PaymentIntents.d.ts +143 -128
  57. package/types/PaymentIntentsResource.d.ts +492 -441
  58. package/types/PaymentMethodConfigurations.d.ts +180 -0
  59. package/types/PaymentMethodConfigurationsResource.d.ts +254 -4
  60. package/types/PaymentMethodDomainsResource.d.ts +1 -1
  61. package/types/PaymentMethods.d.ts +4 -4
  62. package/types/PaymentMethodsResource.d.ts +8 -8
  63. package/types/Payouts.d.ts +2 -2
  64. package/types/PayoutsResource.d.ts +2 -2
  65. package/types/Persons.d.ts +10 -10
  66. package/types/PlansResource.d.ts +1 -1
  67. package/types/PricesResource.d.ts +2 -2
  68. package/types/ProductsResource.d.ts +1 -1
  69. package/types/PromotionCodesResource.d.ts +1 -1
  70. package/types/Quotes.d.ts +6 -6
  71. package/types/Radar/EarlyFraudWarningsResource.d.ts +1 -1
  72. package/types/Refunds.d.ts +6 -1
  73. package/types/Reviews.d.ts +1 -1
  74. package/types/SetupAttempts.d.ts +1 -0
  75. package/types/SetupIntents.d.ts +2 -1
  76. package/types/SetupIntentsResource.d.ts +3 -3
  77. package/types/SourcesResource.d.ts +1 -1
  78. package/types/SubscriptionItems.d.ts +14 -0
  79. package/types/SubscriptionItemsResource.d.ts +28 -0
  80. package/types/SubscriptionSchedules.d.ts +47 -1
  81. package/types/SubscriptionSchedulesResource.d.ts +99 -3
  82. package/types/Subscriptions.d.ts +19 -2
  83. package/types/SubscriptionsResource.d.ts +76 -14
  84. package/types/Tax/CalculationLineItems.d.ts +5 -0
  85. package/types/Tax/CalculationsResource.d.ts +5 -0
  86. package/types/Tax/RegistrationsResource.d.ts +1 -1
  87. package/types/TaxRates.d.ts +2 -2
  88. package/types/Terminal/LocationsResource.d.ts +1 -1
  89. package/types/Terminal/Readers.d.ts +219 -1
  90. package/types/Terminal/ReadersResource.d.ts +144 -0
  91. package/types/TestHelpers/Terminal/ReadersResource.d.ts +53 -0
  92. package/types/Tokens.d.ts +3 -3
  93. package/types/TokensResource.d.ts +8 -8
  94. package/types/TransferReversals.d.ts +1 -1
  95. package/types/TransfersResource.d.ts +2 -2
  96. package/types/Treasury/ReceivedCredits.d.ts +2 -2
  97. package/types/WebhookEndpointsResource.d.ts +4 -1
  98. package/types/lib.d.ts +1 -1
  99. package/types/test/typescriptTest.ts +3 -3
package/CHANGELOG.md CHANGED
@@ -1,16 +1,50 @@
1
1
  # Changelog
2
+ ## 18.2.0 - 2025-05-29
3
+ This release changes the pinned API version to `2025-05-28.basil`.
4
+
5
+ * [#2338](https://github.com/stripe/stripe-node/pull/2338) Update generated code
6
+ * Add support for `attach_payment` method on resource `Invoice`
7
+ * Add support for `collect_inputs` method on resource `Terminal.Reader`
8
+ * Add support for `succeed_input_collection` and `timeout_input_collection` test helper methods on resource `Terminal.Reader`
9
+ * Add support for `pix_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
10
+ * Add support for `disputes_list` and `payment_disputes` on `AccountSession.components` and `AccountSessionCreateParams.components`
11
+ * Add support for `refund_and_dispute_prefunding` on `Balance`
12
+ * Add support for `balance_type` on `BalanceTransaction`
13
+ * Change `Billing.AlertCreateParams.usage_threshold.meter` to be required
14
+ * Add support for `location` and `reader` on `Charge.payment_method_details.affirm` and `Charge.payment_method_details.wechat_pay`
15
+ * Add support for `payment_method_remove` on `Checkout.SessionCreateParams.saved_payment_method_options`
16
+ * Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.naver_pay`
17
+ * Change `ConfirmationToken.payment_method_preview.naver_pay.buyer_id` and `PaymentMethod.naver_pay.buyer_id` to be required
18
+ * Add support for `post_payment_amount` and `pre_payment_amount` on `CreditNote`
19
+ * Add support for new value `mixed` on enum `CreditNote.type`
20
+ * Add support for new value `invoice_payment.paid` on enum `Event.type`
21
+ * Add support for `sex`, `unparsed_place_of_birth`, and `unparsed_sex` on `Identity.VerificationReport.document` and `Identity.VerificationSession.verified_outputs`
22
+ * Add support for `billing_thresholds` on `InvoiceCreatePreviewParams.schedule_details.phases[].items[]`, `InvoiceCreatePreviewParams.schedule_details.phases[]`, `InvoiceCreatePreviewParams.subscription_details.items[]`, `SubscriptionCreateParams.items[]`, `SubscriptionCreateParams`, `SubscriptionItemCreateParams`, `SubscriptionItemUpdateParams`, `SubscriptionItem`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[].items[]`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[].items[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, `SubscriptionScheduleUpdateParams.phases[].items[]`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams.items[]`, `SubscriptionUpdateParams`, and `Subscription`
23
+ * Add support for `satispay` on `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_options`, and `PaymentIntentUpdateParams.payment_method_options`
24
+ * Add support for `capture_method` on `PaymentIntent.payment_method_options.billie`
25
+ * Add support for `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
26
+ * Add support for `network_decline_code` on `Refund.destination_details.paypal`
27
+ * Add support for `metadata` on `Tax.CalculationCreateParams.line_items[]` and `Tax.CalculationLineItem`
28
+ * Add support for new value `simulated_stripe_s700` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type`
29
+ * Add support for `return_url` on `Terminal.Reader.action.process_payment_intent.process_config` and `Terminal.ReaderProcessPaymentIntentParams.process_config`
30
+ * Add support for `collect_inputs` on `Terminal.Reader.action`
31
+ * Add support for new value `collect_inputs` on enum `Terminal.Reader.action.type`
32
+ * Add support for new value `invoice_payment.paid` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
33
+ * Add support for new value `2025-05-28.basil` on enum `WebhookEndpointCreateParams.api_version`
34
+ * Add support for snapshot event `InvoicePaymentPaidEvent` with resource `InvoicePayment`
35
+ * Add support for error code `forwarding_api_upstream_error` on `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError`
36
+
2
37
  ## 18.1.1 - 2025-05-19
3
- * [#2308](https://github.com/stripe/stripe-node/pull/2308) RawRequest can use custom host
4
- * RawRequest now allows you set `host` and `streaming` in request options.
5
- ```typescript
6
- const file = await stripe.rawRequest(
7
- 'GET',
8
- '/v1/files/file_123/contents',
9
- {},
10
- {host: 'files.stripe.com', streaming: true}
11
- );
38
+ * [#2308](https://github.com/stripe/stripe-node/pull/2308) RawRequest now allows you set `host` and `streaming` in request options.
39
+ ```typescript
40
+ const file = await stripe.rawRequest(
41
+ 'GET',
42
+ '/v1/files/file_123/contents',
43
+ {},
44
+ {host: 'files.stripe.com', streaming: true}
45
+ );
12
46
  ```
13
- * [#2320](https://github.com/stripe/stripe-node/pull/2320) fix: examples/webhook-signing/nestjs/package.json to reduce vulnerabi…
47
+ * [#2320](https://github.com/stripe/stripe-node/pull/2320) fix: examples/webhook-signing/nestjs/package.json to reduce vulnerabilities.
14
48
  * [#2326](https://github.com/stripe/stripe-node/pull/2326) Adds CONTRIBUTING.md
15
49
 
16
50
  ## 18.1.0 - 2025-04-30
@@ -18,28 +52,28 @@
18
52
  This release changes the pinned API version to `2025-04-30.basil`.
19
53
 
20
54
  * [#2311](https://github.com/stripe/stripe-node/pull/2311) Update generated code
21
- * Add support for `minority_owned_business_designation` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile`
22
- * Add support for `registration_date` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company`
23
- * Add support for `us_cfpb_data` on `AccountCreatePersonParams`, `AccountUpdatePersonParams`, `Person`, and `TokenCreateParams.person`
24
- * Add support for new value `verification_legal_entity_structure_mismatch` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, `BankAccount.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code`
25
- * Add support for new value `tax_id_prohibited` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
26
- * Add support for `tax_id` on `Charge.billing_details`, `ConfirmationToken.payment_method_preview.billing_details`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data.billing_details`, `PaymentIntentConfirmParams.payment_method_data.billing_details`, `PaymentIntentCreateParams.payment_method_data.billing_details`, `PaymentIntentUpdateParams.payment_method_data.billing_details`, `PaymentMethod.billing_details`, `PaymentMethodCreateParams.billing_details`, `PaymentMethodUpdateParams.billing_details`, `SetupIntentConfirmParams.payment_method_data.billing_details`, `SetupIntentCreateParams.payment_method_data.billing_details`, and `SetupIntentUpdateParams.payment_method_data.billing_details`
27
- * Add support for `wallet_options` on `Checkout.SessionCreateParams` and `Checkout.Session`
28
- * Add support for `provider` on `Checkout.Session.automatic_tax`, `Invoice.automatic_tax`, and `Quote.automatic_tax`
29
- * Add support for new values `aw_tin`, `az_tin`, `bd_bin`, `bf_ifu`, `bj_ifu`, `cm_niu`, `cv_nif`, `et_tin`, `kg_tin`, and `la_tin` 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`
30
- * Add support for `payment_method_options` on `ConfirmationTokenCreateParams.testHelpers`
31
- * Add support for `installments` on `ConfirmationToken.payment_method_options.card`
32
- * Add support for new values `aw_tin`, `az_tin`, `bd_bin`, `bf_ifu`, `bj_ifu`, `cm_niu`, `cv_nif`, `et_tin`, `kg_tin`, and `la_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `CustomerCreateTaxIdParams.type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
33
- * Add support for `context` on `Event`
34
- * Add support for new value `affirm` on enums `Invoice.payment_settings.payment_method_types`, `InvoiceCreateParams.payment_settings.payment_method_types`, `InvoiceUpdateParams.payment_settings.payment_method_types`, `Subscription.payment_settings.payment_method_types`, `SubscriptionCreateParams.payment_settings.payment_method_types`, and `SubscriptionUpdateParams.payment_settings.payment_method_types`
35
- * Change type of `InvoiceLineItem.parent.subscription_item_details.subscription` from `string` to `string | null`
36
- * Add support for `billie` on `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_options`, and `PaymentIntentUpdateParams.payment_method_options`
37
- * Add support for `pix` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
38
- * Add support for `klarna` on `PaymentMethodDomain`
39
- * Add support for `pending_reason` on `Refund`
40
- * Change type of `Tax.CalculationLineItem.reference` from `string | null` to `string`
41
- * Add support for `aw`, `az`, `bd`, `bf`, `bj`, `cm`, `cv`, `et`, `in`, `kg`, `la`, and `ph` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
42
- * Add support for new value `2025-04-30.basil` on enum `WebhookEndpointCreateParams.api_version`
55
+ * Add support for `minority_owned_business_designation` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile`
56
+ * Add support for `registration_date` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company`
57
+ * Add support for `us_cfpb_data` on `AccountCreatePersonParams`, `AccountUpdatePersonParams`, `Person`, and `TokenCreateParams.person`
58
+ * Add support for new value `verification_legal_entity_structure_mismatch` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, `BankAccount.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code`
59
+ * Add support for new value `tax_id_prohibited` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
60
+ * Add support for `tax_id` on `Charge.billing_details`, `ConfirmationToken.payment_method_preview.billing_details`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data.billing_details`, `PaymentIntentConfirmParams.payment_method_data.billing_details`, `PaymentIntentCreateParams.payment_method_data.billing_details`, `PaymentIntentUpdateParams.payment_method_data.billing_details`, `PaymentMethod.billing_details`, `PaymentMethodCreateParams.billing_details`, `PaymentMethodUpdateParams.billing_details`, `SetupIntentConfirmParams.payment_method_data.billing_details`, `SetupIntentCreateParams.payment_method_data.billing_details`, and `SetupIntentUpdateParams.payment_method_data.billing_details`
61
+ * Add support for `wallet_options` on `Checkout.SessionCreateParams` and `Checkout.Session`
62
+ * Add support for `provider` on `Checkout.Session.automatic_tax`, `Invoice.automatic_tax`, and `Quote.automatic_tax`
63
+ * Add support for new values `aw_tin`, `az_tin`, `bd_bin`, `bf_ifu`, `bj_ifu`, `cm_niu`, `cv_nif`, `et_tin`, `kg_tin`, and `la_tin` 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`
64
+ * Add support for `payment_method_options` on `ConfirmationTokenCreateParams.testHelpers`
65
+ * Add support for `installments` on `ConfirmationToken.payment_method_options.card`
66
+ * Add support for new values `aw_tin`, `az_tin`, `bd_bin`, `bf_ifu`, `bj_ifu`, `cm_niu`, `cv_nif`, `et_tin`, `kg_tin`, and `la_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `CustomerCreateTaxIdParams.type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
67
+ * Add support for `context` on `Event`
68
+ * Add support for new value `affirm` on enums `Invoice.payment_settings.payment_method_types`, `InvoiceCreateParams.payment_settings.payment_method_types`, `InvoiceUpdateParams.payment_settings.payment_method_types`, `Subscription.payment_settings.payment_method_types`, `SubscriptionCreateParams.payment_settings.payment_method_types`, and `SubscriptionUpdateParams.payment_settings.payment_method_types`
69
+ * Change type of `InvoiceLineItem.parent.subscription_item_details.subscription` from `string` to `string | null`
70
+ * Add support for `billie` on `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_options`, and `PaymentIntentUpdateParams.payment_method_options`
71
+ * Add support for `pix` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
72
+ * Add support for `klarna` on `PaymentMethodDomain`
73
+ * Add support for `pending_reason` on `Refund`
74
+ * Change type of `Tax.CalculationLineItem.reference` from `string | null` to `string`
75
+ * Add support for `aw`, `az`, `bd`, `bf`, `bj`, `cm`, `cv`, `et`, `in`, `kg`, `la`, and `ph` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
76
+ * Add support for new value `2025-04-30.basil` on enum `WebhookEndpointCreateParams.api_version`
43
77
  * [#2202](https://github.com/stripe/stripe-node/pull/2202) Add build scripts to generate source maps
44
78
  * [#2169](https://github.com/stripe/stripe-node/pull/2169) Put @types/node as an optional peerDependency
45
79
  * [#2164](https://github.com/stripe/stripe-node/pull/2164) Bump micromatch from 4.0.5 to 4.0.8
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1719
1
+ v1773
package/VERSION CHANGED
@@ -1 +1 @@
1
- 18.1.1
1
+ 18.2.0
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-04-30.basil';
5
+ exports.ApiVersion = '2025-05-28.basil';
@@ -18,6 +18,10 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
18
18
  method: 'POST',
19
19
  fullPath: '/v1/invoices/{invoice}/add_lines',
20
20
  }),
21
+ attachPayment: stripeMethod({
22
+ method: 'POST',
23
+ fullPath: '/v1/invoices/{invoice}/attach_payment',
24
+ }),
21
25
  createPreview: stripeMethod({
22
26
  method: 'POST',
23
27
  fullPath: '/v1/invoices/create_preview',
@@ -27,6 +27,10 @@ exports.Readers = StripeResource_js_1.StripeResource.extend({
27
27
  method: 'POST',
28
28
  fullPath: '/v1/terminal/readers/{reader}/cancel_action',
29
29
  }),
30
+ collectInputs: stripeMethod({
31
+ method: 'POST',
32
+ fullPath: '/v1/terminal/readers/{reader}/collect_inputs',
33
+ }),
30
34
  processPaymentIntent: stripeMethod({
31
35
  method: 'POST',
32
36
  fullPath: '/v1/terminal/readers/{reader}/process_payment_intent',
@@ -9,4 +9,12 @@ exports.Readers = StripeResource_js_1.StripeResource.extend({
9
9
  method: 'POST',
10
10
  fullPath: '/v1/test_helpers/terminal/readers/{reader}/present_payment_method',
11
11
  }),
12
+ succeedInputCollection: stripeMethod({
13
+ method: 'POST',
14
+ fullPath: '/v1/test_helpers/terminal/readers/{reader}/succeed_input_collection',
15
+ }),
16
+ timeoutInputCollection: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v1/test_helpers/terminal/readers/{reader}/timeout_input_collection',
19
+ }),
12
20
  });
@@ -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.1.1';
39
+ Stripe.PACKAGE_VERSION = '18.2.0';
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/apiVersion.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // File generated from our OpenAPI spec
2
- export const ApiVersion = '2025-04-30.basil';
2
+ export const ApiVersion = '2025-05-28.basil';
@@ -15,6 +15,10 @@ export const Invoices = StripeResource.extend({
15
15
  method: 'POST',
16
16
  fullPath: '/v1/invoices/{invoice}/add_lines',
17
17
  }),
18
+ attachPayment: stripeMethod({
19
+ method: 'POST',
20
+ fullPath: '/v1/invoices/{invoice}/attach_payment',
21
+ }),
18
22
  createPreview: stripeMethod({
19
23
  method: 'POST',
20
24
  fullPath: '/v1/invoices/create_preview',
@@ -24,6 +24,10 @@ export const Readers = StripeResource.extend({
24
24
  method: 'POST',
25
25
  fullPath: '/v1/terminal/readers/{reader}/cancel_action',
26
26
  }),
27
+ collectInputs: stripeMethod({
28
+ method: 'POST',
29
+ fullPath: '/v1/terminal/readers/{reader}/collect_inputs',
30
+ }),
27
31
  processPaymentIntent: stripeMethod({
28
32
  method: 'POST',
29
33
  fullPath: '/v1/terminal/readers/{reader}/process_payment_intent',
@@ -6,4 +6,12 @@ export const Readers = StripeResource.extend({
6
6
  method: 'POST',
7
7
  fullPath: '/v1/test_helpers/terminal/readers/{reader}/present_payment_method',
8
8
  }),
9
+ succeedInputCollection: stripeMethod({
10
+ method: 'POST',
11
+ fullPath: '/v1/test_helpers/terminal/readers/{reader}/succeed_input_collection',
12
+ }),
13
+ timeoutInputCollection: stripeMethod({
14
+ method: 'POST',
15
+ fullPath: '/v1/test_helpers/terminal/readers/{reader}/timeout_input_collection',
16
+ }),
9
17
  });
@@ -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.1.1';
36
+ Stripe.PACKAGE_VERSION = '18.2.0';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "18.1.1",
3
+ "version": "18.2.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -52,6 +52,8 @@ declare module 'stripe' {
52
52
 
53
53
  balances: Components.Balances;
54
54
 
55
+ disputes_list: Components.DisputesList;
56
+
55
57
  documents: Components.Documents;
56
58
 
57
59
  financial_account: Components.FinancialAccount;
@@ -66,6 +68,8 @@ declare module 'stripe' {
66
68
 
67
69
  payment_details: Components.PaymentDetails;
68
70
 
71
+ payment_disputes: Components.PaymentDisputes;
72
+
69
73
  payments: Components.Payments;
70
74
 
71
75
  payouts: Components.Payouts;
@@ -162,6 +166,39 @@ declare module 'stripe' {
162
166
  }
163
167
  }
164
168
 
169
+ interface DisputesList {
170
+ /**
171
+ * Whether the embedded component is enabled.
172
+ */
173
+ enabled: boolean;
174
+
175
+ features: DisputesList.Features;
176
+ }
177
+
178
+ namespace DisputesList {
179
+ interface Features {
180
+ /**
181
+ * Whether to allow capturing and cancelling payment intents. This is `true` by default.
182
+ */
183
+ capture_payments: boolean;
184
+
185
+ /**
186
+ * Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
187
+ */
188
+ destination_on_behalf_of_charge_management: boolean;
189
+
190
+ /**
191
+ * Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
192
+ */
193
+ dispute_management: boolean;
194
+
195
+ /**
196
+ * Whether to allow sending refunds. This is `true` by default.
197
+ */
198
+ refund_management: boolean;
199
+ }
200
+ }
201
+
165
202
  interface Documents {
166
203
  /**
167
204
  * Whether the embedded component is enabled.
@@ -353,6 +390,34 @@ declare module 'stripe' {
353
390
  }
354
391
  }
355
392
 
393
+ interface PaymentDisputes {
394
+ /**
395
+ * Whether the embedded component is enabled.
396
+ */
397
+ enabled: boolean;
398
+
399
+ features: PaymentDisputes.Features;
400
+ }
401
+
402
+ namespace PaymentDisputes {
403
+ interface Features {
404
+ /**
405
+ * Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
406
+ */
407
+ destination_on_behalf_of_charge_management: boolean;
408
+
409
+ /**
410
+ * Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
411
+ */
412
+ dispute_management: boolean;
413
+
414
+ /**
415
+ * Whether to allow sending refunds. This is `true` by default.
416
+ */
417
+ refund_management: boolean;
418
+ }
419
+ }
420
+
356
421
  interface Payments {
357
422
  /**
358
423
  * Whether the embedded component is enabled.
@@ -36,6 +36,11 @@ declare module 'stripe' {
36
36
  */
37
37
  balances?: Components.Balances;
38
38
 
39
+ /**
40
+ * Configuration for the disputes list embedded component.
41
+ */
42
+ disputes_list?: Components.DisputesList;
43
+
39
44
  /**
40
45
  * Configuration for the documents embedded component.
41
46
  */
@@ -71,6 +76,11 @@ declare module 'stripe' {
71
76
  */
72
77
  payment_details?: Components.PaymentDetails;
73
78
 
79
+ /**
80
+ * Configuration for the payment disputes embedded component.
81
+ */
82
+ payment_disputes?: Components.PaymentDisputes;
83
+
74
84
  /**
75
85
  * Configuration for the payments embedded component.
76
86
  */
@@ -191,6 +201,42 @@ declare module 'stripe' {
191
201
  }
192
202
  }
193
203
 
204
+ interface DisputesList {
205
+ /**
206
+ * Whether the embedded component is enabled.
207
+ */
208
+ enabled: boolean;
209
+
210
+ /**
211
+ * The list of features enabled in the embedded component.
212
+ */
213
+ features?: DisputesList.Features;
214
+ }
215
+
216
+ namespace DisputesList {
217
+ interface Features {
218
+ /**
219
+ * Whether to allow capturing and cancelling payment intents. This is `true` by default.
220
+ */
221
+ capture_payments?: boolean;
222
+
223
+ /**
224
+ * Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
225
+ */
226
+ destination_on_behalf_of_charge_management?: boolean;
227
+
228
+ /**
229
+ * Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
230
+ */
231
+ dispute_management?: boolean;
232
+
233
+ /**
234
+ * Whether to allow sending refunds. This is `true` by default.
235
+ */
236
+ refund_management?: boolean;
237
+ }
238
+ }
239
+
194
240
  interface Documents {
195
241
  /**
196
242
  * Whether the embedded component is enabled.
@@ -403,6 +449,37 @@ declare module 'stripe' {
403
449
  }
404
450
  }
405
451
 
452
+ interface PaymentDisputes {
453
+ /**
454
+ * Whether the embedded component is enabled.
455
+ */
456
+ enabled: boolean;
457
+
458
+ /**
459
+ * The list of features enabled in the embedded component.
460
+ */
461
+ features?: PaymentDisputes.Features;
462
+ }
463
+
464
+ namespace PaymentDisputes {
465
+ interface Features {
466
+ /**
467
+ * Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
468
+ */
469
+ destination_on_behalf_of_charge_management?: boolean;
470
+
471
+ /**
472
+ * Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
473
+ */
474
+ dispute_management?: boolean;
475
+
476
+ /**
477
+ * Whether to allow sending refunds. This is `true` by default.
478
+ */
479
+ refund_management?: boolean;
480
+ }
481
+ }
482
+
406
483
  interface Payments {
407
484
  /**
408
485
  * Whether the embedded component is enabled.
@@ -7,14 +7,14 @@ declare module 'stripe' {
7
7
  * properties on the account like its current requirements or if the account is
8
8
  * enabled to make live charges or receive payouts.
9
9
  *
10
- * For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
10
+ * For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
11
11
  * is `application`, which includes Custom accounts, the properties below are always
12
12
  * returned.
13
13
  *
14
- * For accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection)
14
+ * For accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection)
15
15
  * is `stripe`, which includes Standard and Express accounts, some properties are only returned
16
- * until you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions)
17
- * to start Connect Onboarding. Learn about the [differences between accounts](https://stripe.com/connect/accounts).
16
+ * until you create an [Account Link](https://docs.stripe.com/api/account_links) or [Account Session](https://docs.stripe.com/api/account_sessions)
17
+ * to start Connect Onboarding. Learn about the [differences between accounts](https://docs.stripe.com/connect/accounts).
18
18
  */
19
19
  interface Account {
20
20
  /**
@@ -69,7 +69,7 @@ declare module 'stripe' {
69
69
  deleted?: void;
70
70
 
71
71
  /**
72
- * Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true. Accounts where this is false should be directed to [an onboarding flow](https://stripe.com/connect/onboarding) to finish submitting account details.
72
+ * Whether account details have been submitted. Accounts with Stripe Dashboard access, which includes Standard accounts, cannot receive payouts before this is true. Accounts where this is false should be directed to [an onboarding flow](https://docs.stripe.com/connect/onboarding) to finish submitting account details.
73
73
  */
74
74
  details_submitted: boolean;
75
75
 
@@ -93,9 +93,9 @@ declare module 'stripe' {
93
93
  /**
94
94
  * This is an object representing a person associated with a Stripe account.
95
95
  *
96
- * A platform can only access a subset of data in a person for an account where [account.controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
96
+ * A platform can only access a subset of data in a person for an account where [account.controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`, which includes Standard and Express accounts, after creating an Account Link or Account Session to start Connect onboarding.
97
97
  *
98
- * See the [Standard onboarding](https://stripe.com/connect/standard-accounts) or [Express onboarding](https://stripe.com/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](https://stripe.com/connect/handling-api-verification#person-information).
98
+ * See the [Standard onboarding](https://docs.stripe.com/connect/standard-accounts) or [Express onboarding](https://docs.stripe.com/connect/express-accounts) documentation for information about prefilling information and account onboarding steps. Learn more about [handling identity verification with the API](https://docs.stripe.com/connect/handling-api-verification#person-information).
99
99
  */
100
100
  individual?: Stripe.Person;
101
101
 
@@ -137,7 +137,7 @@ declare module 'stripe' {
137
137
  estimated_worker_count?: number | null;
138
138
 
139
139
  /**
140
- * [The merchant category code for the account](https://stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
140
+ * [The merchant category code for the account](https://docs.stripe.com/connect/setting-mcc). MCCs are used to classify businesses based on the goods or services they provide.
141
141
  */
142
142
  mcc: string | null;
143
143
 
@@ -189,7 +189,7 @@ declare module 'stripe' {
189
189
  namespace BusinessProfile {
190
190
  interface AnnualRevenue {
191
191
  /**
192
- * A non-negative integer representing the amount in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
192
+ * A non-negative integer representing the amount in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
193
193
  */
194
194
  amount: number | null;
195
195
 
@@ -213,7 +213,7 @@ declare module 'stripe' {
213
213
 
214
214
  interface MonthlyEstimatedRevenue {
215
215
  /**
216
- * A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
216
+ * A non-negative integer representing how much to charge in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
217
217
  */
218
218
  amount: number;
219
219
 
@@ -436,6 +436,11 @@ declare module 'stripe' {
436
436
  */
437
437
  paynow_payments?: Capabilities.PaynowPayments;
438
438
 
439
+ /**
440
+ * The status of the pix payments capability of the account, or whether the account can directly process pix charges.
441
+ */
442
+ pix_payments?: Capabilities.PixPayments;
443
+
439
444
  /**
440
445
  * The status of the promptpay payments capability of the account, or whether the account can directly process promptpay charges.
441
446
  */
@@ -600,6 +605,8 @@ declare module 'stripe' {
600
605
 
601
606
  type PaynowPayments = 'active' | 'inactive' | 'pending';
602
607
 
608
+ type PixPayments = 'active' | 'inactive' | 'pending';
609
+
603
610
  type PromptpayPayments = 'active' | 'inactive' | 'pending';
604
611
 
605
612
  type RevolutPayPayments = 'active' | 'inactive' | 'pending';
@@ -672,17 +679,17 @@ declare module 'stripe' {
672
679
  export_purpose_code?: string;
673
680
 
674
681
  /**
675
- * The company's legal name. Also available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
682
+ * The company's legal name. Also available for accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
676
683
  */
677
684
  name?: string | null;
678
685
 
679
686
  /**
680
- * The Kana variation of the company's legal name (Japan only). Also available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
687
+ * The Kana variation of the company's legal name (Japan only). Also available for accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
681
688
  */
682
689
  name_kana?: string | null;
683
690
 
684
691
  /**
685
- * The Kanji variation of the company's legal name (Japan only). Also available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
692
+ * The Kanji variation of the company's legal name (Japan only). Also available for accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`.
686
693
  */
687
694
  name_kanji?: string | null;
688
695
 
@@ -709,7 +716,7 @@ declare module 'stripe' {
709
716
  registration_date?: Company.RegistrationDate;
710
717
 
711
718
  /**
712
- * The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
719
+ * The category identifying the legal structure of the company or legal entity. Also available for accounts where [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `stripe`. See [Business structure](https://stripe.com/docs/connect/identity-verification#business-structure) for more details.
713
720
  */
714
721
  structure?: Company.Structure;
715
722
 
@@ -1539,7 +1546,7 @@ declare module 'stripe' {
1539
1546
 
1540
1547
  interface Payouts {
1541
1548
  /**
1542
- * A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](https://stripe.com/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
1549
+ * A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](https://docs.stripe.com/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](https://docs.stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`.
1543
1550
  */
1544
1551
  debit_negative_balances: boolean;
1545
1552