stripe 19.2.0-beta.1 → 19.3.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.
Files changed (82) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/PaymentRecords.js +4 -0
  6. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
  7. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
  8. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
  9. package/cjs/stripe.core.js +1 -1
  10. package/esm/apiVersion.js +1 -1
  11. package/esm/resources/PaymentRecords.js +4 -0
  12. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +5 -0
  13. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +13 -0
  14. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +4 -0
  15. package/esm/stripe.core.js +1 -1
  16. package/package.json +1 -1
  17. package/types/Accounts.d.ts +24 -0
  18. package/types/AccountsResource.d.ts +44 -0
  19. package/types/BankAccounts.d.ts +2 -0
  20. package/types/Billing/CreditGrantsResource.d.ts +2 -2
  21. package/types/BillingPortal/Configurations.d.ts +1 -1
  22. package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
  23. package/types/Capabilities.d.ts +2 -0
  24. package/types/Charges.d.ts +7 -2
  25. package/types/ChargesResource.d.ts +16 -4
  26. package/types/Checkout/Sessions.d.ts +15 -0
  27. package/types/Checkout/SessionsResource.d.ts +21 -3
  28. package/types/ConfirmationTokens.d.ts +1 -0
  29. package/types/CreditNotes.d.ts +26 -0
  30. package/types/CreditNotesResource.d.ts +78 -0
  31. package/types/CustomerSessions.d.ts +161 -0
  32. package/types/CustomerSessionsResource.d.ts +161 -0
  33. package/types/Customers.d.ts +7 -0
  34. package/types/CustomersResource.d.ts +1 -0
  35. package/types/Files.d.ts +1 -0
  36. package/types/FilesResource.d.ts +2 -0
  37. package/types/FinancialConnections/AccountsResource.d.ts +1 -1
  38. package/types/Invoices.d.ts +1 -0
  39. package/types/PaymentAttemptRecords.d.ts +7 -2
  40. package/types/PaymentAttemptRecordsResource.d.ts +5 -0
  41. package/types/PaymentIntentAmountDetailsLineItems.d.ts +17 -7
  42. package/types/PaymentIntents.d.ts +20 -9
  43. package/types/PaymentIntentsResource.d.ts +170 -65
  44. package/types/PaymentLinks.d.ts +34 -0
  45. package/types/PaymentLinksResource.d.ts +88 -0
  46. package/types/PaymentMethodConfigurations.d.ts +72 -0
  47. package/types/PaymentMethodConfigurationsResource.d.ts +100 -0
  48. package/types/PaymentMethods.d.ts +34 -0
  49. package/types/PaymentMethodsResource.d.ts +15 -1
  50. package/types/PaymentRecords.d.ts +7 -2
  51. package/types/PaymentRecordsResource.d.ts +89 -0
  52. package/types/PayoutsResource.d.ts +1 -1
  53. package/types/Persons.d.ts +2 -0
  54. package/types/QuotePreviewInvoices.d.ts +1 -0
  55. package/types/Refunds.d.ts +9 -0
  56. package/types/SetupAttempts.d.ts +1 -0
  57. package/types/SetupIntents.d.ts +66 -0
  58. package/types/SetupIntentsResource.d.ts +130 -0
  59. package/types/Tax/Registrations.d.ts +9 -0
  60. package/types/Tax/RegistrationsResource.d.ts +12 -0
  61. package/types/Terminal/Configurations.d.ts +19 -0
  62. package/types/Terminal/ConfigurationsResource.d.ts +44 -0
  63. package/types/Terminal/Readers.d.ts +14 -9
  64. package/types/Terminal/ReadersResource.d.ts +30 -30
  65. package/types/TestHelpers/Terminal/ReadersResource.d.ts +1 -1
  66. package/types/TokensResource.d.ts +22 -0
  67. package/types/V2/Billing/Cadences.d.ts +2 -2
  68. package/types/V2/Billing/CollectionSettingVersions.d.ts +2 -2
  69. package/types/V2/Billing/CollectionSettings.d.ts +2 -2
  70. package/types/V2/Billing/CollectionSettingsResource.d.ts +4 -4
  71. package/types/V2/Core/Accounts.d.ts +93 -2
  72. package/types/V2/Core/AccountsResource.d.ts +110 -5
  73. package/types/V2/Core/EventTypes.d.ts +11 -34
  74. package/types/V2/Core/EventsResource.d.ts +29 -3
  75. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +22 -0
  76. package/types/V2/Core/Vault/UsBankAccounts.d.ts +46 -0
  77. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +75 -0
  78. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +25 -0
  79. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +1 -1
  80. package/types/WebhookEndpointsResource.d.ts +2 -1
  81. package/types/apiVersion.d.ts +1 -1
  82. package/types/crypto/crypto.d.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -1,8 +1,98 @@
1
1
  # Changelog
2
2
 
3
+ ## 19.3.0-beta.1 - 2025-10-29
4
+
5
+ This release changes the pinned API version to `2025-10-29.preview`.
6
+
7
+ * [#2475](https://github.com/stripe/stripe-node/pull/2475) Update generated code for beta
8
+ * Add support for `crypto_storer` on `V2.Core.AccountUpdateParams.identity.attestations.terms_of_service`
9
+ * [#2443](https://github.com/stripe/stripe-node/pull/2443) Update generated code for beta
10
+ * Add support for `update` method on resource `V2.MoneyManagement.FinancialAccount`
11
+ * Add support for `confirm_microdeposits`, `list`, and `send_microdeposits` methods on resource `V2.Core.Vault.UsBankAccount`
12
+ * Add support for `list` method on resource `V2.Core.Vault.GbBankAccount`
13
+ * Add support for new value `verification_data_not_found` 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`
14
+ * Add support for `payment_portal_url` on `Charge.payment_method_details.rechnung`, `PaymentAttemptRecord.payment_method_details.rechnung`, and `PaymentRecord.payment_method_details.rechnung`
15
+ * Add support for `tax_id_element` on `CustomerSession.components` and `CustomerSessionCreateParams.components`
16
+ * Add support for `starting_after` on `PaymentAttemptRecordListParams`
17
+ * Add support for new value `solana` on enums `PaymentAttemptRecord.payment_method_details.crypto.network` and `PaymentRecord.payment_method_details.crypto.network`
18
+ * Add support for `reference` on `PaymentIntentAmountDetailsLineItem.payment_method_options.klarna`, `PaymentIntentCaptureParams.amount_details.line_items[].payment_method_options.klarna`, `PaymentIntentConfirmParams.amount_details.line_items[].payment_method_options.klarna`, `PaymentIntentCreateParams.amount_details.line_items[].payment_method_options.klarna`, `PaymentIntentIncrementAuthorizationParams.amount_details.line_items[].payment_method_options.klarna`, and `PaymentIntentUpdateParams.amount_details.line_items[].payment_method_options.klarna`
19
+ * Change `PaymentIntent.payment_details.customer_reference` to be required
20
+ * Change `PaymentIntent.payment_details.order_reference` to be required
21
+ * Add support for `subscription_reference` on `PaymentIntentAmountDetailsLineItem.payment_method_options.klarna`
22
+ * Add support for `closed` on `V2.Core.AccountListParams` and `V2.Core.Account`
23
+ * Add support for new value `payment_method` on enums `V2.Core.Account.configuration.customer.automatic_indirect_tax.location_source`, `V2.Core.AccountCreateParams.configuration.customer.automatic_indirect_tax.location_source`, and `V2.Core.AccountUpdateParams.configuration.customer.automatic_indirect_tax.location_source`
24
+ * Add support for `usd` 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`
25
+ * Add support for new values `application_custom` and `application_express` on enums `V2.Core.Account.defaults.responsibilities.fees_collector`, `V2.Core.AccountCreateParams.defaults.responsibilities.fees_collector`, and `V2.Core.AccountUpdateParams.defaults.responsibilities.fees_collector`
26
+ * Add support for `representative_declaration` on `V2.Core.Account.identity.attestations`, `V2.Core.AccountCreateParams.identity.attestations`, and `V2.Core.AccountUpdateParams.identity.attestations`
27
+ * Add support for new value `holds_currencies.usd` on enum `V2.Core.Account.requirements.entries[].impact.restricts_capabilities[].capability`
28
+ * Add support for `verification` on `V2.Core.Vault.UsBankAccount`
29
+ * Add support for `v1_id` on `EventsV2MoneyManagementTransactionCreatedEvent`
30
+ * Remove support for thin event `V2BillingBillSettingUpdatedEvent` with related object `V2.Billing.BillSetting`
31
+ * Add support for error code `payment_intent_rate_limit_exceeded` on `QuotePreviewInvoice.last_finalization_error`
32
+ * Add support for error codes `blocked_payout_method_crypto_wallet` and `unsupported_payout_method_crypto_wallet` on `BlockedByStripeError`
33
+ * Add support for error code `outbound_flow_from_closed_financial_account_unsupported` on `FeatureNotEnabledError`
34
+ * Add support for error code `limit_payout_method_crypto_wallet` on `QuotaExceededError`
35
+
36
+ ## 19.2.0 - 2025-10-29
37
+
38
+ This release changes the pinned API version to `2025-10-29.clover`.
39
+
40
+ * [#2477](https://github.com/stripe/stripe-node/pull/2477) Update generated code
41
+ * Improve docs for PaymentIntent related endpoints
42
+ * [#2469](https://github.com/stripe/stripe-node/pull/2469) Update generated code
43
+ * Add support for new resources `PaymentAttemptRecord`, `PaymentIntentAmountDetailsLineItem`, and `PaymentRecord`
44
+ * Add support for `list` and `retrieve` methods on resource `PaymentAttemptRecord`
45
+ * Add support for `report_payment_attempt_canceled`, `report_payment_attempt_failed`, `report_payment_attempt_guaranteed`, `report_payment_attempt_informational`, `report_payment_attempt`, `report_payment`, `report_refund`, and `retrieve` methods on resource `PaymentRecord`
46
+ * Add support for `list` method on resource `PaymentIntentAmountDetailsLineItem`
47
+ * Add support for `representative_declaration` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company`
48
+ * Change `Billing.CreditGrantCreateParams.category` to be optional
49
+ * Add support for `payment_method_configuration` on `BillingPortal.ConfigurationCreateParams.features.payment_method_update` and `BillingPortal.ConfigurationUpdateParams.features.payment_method_update`
50
+ * Add support for new value `solana` on enum `Charge.payment_method_details.crypto.network`
51
+ * Add support for new value `mb_way` on enum `Checkout.SessionCreateParams.excluded_payment_method_types`
52
+ * Add support for `twint` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options`
53
+ * Add support for new value `mb_way` on enum `Checkout.SessionCreateParams.payment_method_types`
54
+ * Add support for new value `custom` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
55
+ * Add support for `payment_record_refund` and `type` on `CreditNote.refunds[]`, `CreditNoteCreateParams.refunds[]`, `CreditNotePreviewLinesParams.refunds[]`, and `CreditNotePreviewParams.refunds[]`
56
+ * Add support for `customer_sheet` and `mobile_payment_element` on `CustomerSession.components` and `CustomerSessionCreateParams.components`
57
+ * Add support for new value `custom` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
58
+ * Add support for `provider` on `Customer.tax`
59
+ * Add support for new values `balance_settings.updated` and `invoice.payment_attempt_required` on enum `Event.type`
60
+ * Add support for new value `platform_terms_of_service` on enums `File.purpose` and `FileListParams.purpose`
61
+ * Add support for new value `platform_terms_of_service` on enum `FileCreateParams.purpose`
62
+ * Add support for `payment_record` on `InvoiceAttachPaymentParams`, `InvoicePayment.payment`, and `InvoicePaymentListParams.payment`
63
+ * Change type of `InvoicePaymentListParams.payment.type` from `literal('payment_intent')` to `enum('payment_intent'|'payment_record')`
64
+ * Add support for new value `custom` 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`
65
+ * Add support for `amount_details` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, and `PaymentIntentUpdateParams`
66
+ * Add support for `payment_details` on `PaymentIntentCaptureParams`, `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentIncrementAuthorizationParams`, `PaymentIntentUpdateParams`, and `PaymentIntent`
67
+ * Add support for `discount_amount`, `line_items`, `shipping`, and `tax` on `PaymentIntent.amount_details`
68
+ * Add support for `name_collection` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
69
+ * Add support for new value `mb_way` on enums `PaymentLink.payment_method_types`, `PaymentLinkCreateParams.payment_method_types`, and `PaymentLinkUpdateParams.payment_method_types`
70
+ * Add support for `crypto` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, and `Refund.destination_details`
71
+ * Add support for `mb_way` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
72
+ * Add support for `custom` on `PaymentMethodCreateParams` and `PaymentMethod`
73
+ * Add support for `excluded_payment_method_types` on `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntent`
74
+ * Add support for `tw` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
75
+ * Add support for `gip` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping`
76
+ * Add support for `last_seen_at` on `Terminal.Reader`
77
+ * Add support for new values `balance_settings.updated` and `invoice.payment_attempt_required` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
78
+ * Add support for new value `2025-10-29.clover` on enum `WebhookEndpointCreateParams.api_version`
79
+ * Add support for `gt`, `gte`, `lt`, `lte`, and `types` on `V2.Core.EventListParams`
80
+ * Change `V2.Core.EventListParams.object_id` to be optional
81
+ * Add support for snapshot event `BalanceSettingsUpdatedEvent` with resource `BalanceSettings`
82
+ * Add support for snapshot event `InvoicePaymentAttemptRequiredEvent` with resource `Invoice`
83
+ * Add support for error code `payment_intent_rate_limit_exceeded` on `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError`
84
+
3
85
  ## 19.2.0-beta.1 - 2025-10-03
4
86
  * Contains bug fixes and improvements from [v19.1.0](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#1910---2025-10-03).
5
87
 
88
+ ## 19.1.0 - 2025-10-03
89
+ * [#2453](https://github.com/stripe/stripe-node/pull/2453) add missing fetchEvent type for UnknownEventNotification
90
+
91
+ - Add missing `fetchEvent()` declaration to the `Stripe.Events.UnknownEventNotification` interface
92
+ - Tweak `Stripe.Events.fetchRelatedObject` so that it's always defined and returns `null` if there's no `related_object`. This fixes the situation where the `UnknownEventNotification` says that `fetchRelatedObject()` is defined, but calling it throws an error.
93
+ * [#2447](https://github.com/stripe/stripe-node/pull/2447) Update param in deprecation docs link
94
+ * [#2444](https://github.com/stripe/stripe-node/pull/2444) Update CHANGELOG.md to point to right API version
95
+
6
96
  ## 19.1.0-beta.1 - 2025-09-30
7
97
  This release changes the pinned API version to `2025-09-30.preview`. It is built on top of SDK version 19.0.0 which contains breaking changes. Please review the [changelog for 19.0.0](https://github.com/stripe/stripe-go/blob/master/CHANGELOG.md#1900---2025-09-30) if upgrading from older SDK versions.
8
98
 
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v2028
1
+ v2104
package/VERSION CHANGED
@@ -1 +1 @@
1
- 19.2.0-beta.1
1
+ 19.3.0-beta.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-09-30.preview';
5
+ exports.ApiVersion = '2025-10-29.preview';
@@ -30,4 +30,8 @@ exports.PaymentRecords = StripeResource_js_1.StripeResource.extend({
30
30
  method: 'POST',
31
31
  fullPath: '/v1/payment_records/{id}/report_payment_attempt_informational',
32
32
  }),
33
+ reportRefund: stripeMethod({
34
+ method: 'POST',
35
+ fullPath: '/v1/payment_records/{id}/report_refund',
36
+ }),
33
37
  });
@@ -13,6 +13,11 @@ exports.GbBankAccounts = StripeResource_js_1.StripeResource.extend({
13
13
  method: 'GET',
14
14
  fullPath: '/v2/core/vault/gb_bank_accounts/{id}',
15
15
  }),
16
+ list: stripeMethod({
17
+ method: 'GET',
18
+ fullPath: '/v2/core/vault/gb_bank_accounts',
19
+ methodType: 'list',
20
+ }),
16
21
  acknowledgeConfirmationOfPayee: stripeMethod({
17
22
  method: 'POST',
18
23
  fullPath: '/v2/core/vault/gb_bank_accounts/{id}/acknowledge_confirmation_of_payee',
@@ -17,8 +17,21 @@ exports.UsBankAccounts = StripeResource_js_1.StripeResource.extend({
17
17
  method: 'POST',
18
18
  fullPath: '/v2/core/vault/us_bank_accounts/{id}',
19
19
  }),
20
+ list: stripeMethod({
21
+ method: 'GET',
22
+ fullPath: '/v2/core/vault/us_bank_accounts',
23
+ methodType: 'list',
24
+ }),
20
25
  archive: stripeMethod({
21
26
  method: 'POST',
22
27
  fullPath: '/v2/core/vault/us_bank_accounts/{id}/archive',
23
28
  }),
29
+ confirmMicrodeposits: stripeMethod({
30
+ method: 'POST',
31
+ fullPath: '/v2/core/vault/us_bank_accounts/{id}/confirm_microdeposits',
32
+ }),
33
+ sendMicrodeposits: stripeMethod({
34
+ method: 'POST',
35
+ fullPath: '/v2/core/vault/us_bank_accounts/{id}/send_microdeposits',
36
+ }),
24
37
  });
@@ -13,6 +13,10 @@ exports.FinancialAccounts = StripeResource_js_1.StripeResource.extend({
13
13
  method: 'GET',
14
14
  fullPath: '/v2/money_management/financial_accounts/{id}',
15
15
  }),
16
+ update: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v2/money_management/financial_accounts/{id}',
19
+ }),
16
20
  list: stripeMethod({
17
21
  method: 'GET',
18
22
  fullPath: '/v2/money_management/financial_accounts',
@@ -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.2.0-beta.1';
40
+ Stripe.PACKAGE_VERSION = '19.3.0-beta.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/esm/apiVersion.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // File generated from our OpenAPI spec
2
- export const ApiVersion = '2025-09-30.preview';
2
+ export const ApiVersion = '2025-10-29.preview';
@@ -27,4 +27,8 @@ export const PaymentRecords = StripeResource.extend({
27
27
  method: 'POST',
28
28
  fullPath: '/v1/payment_records/{id}/report_payment_attempt_informational',
29
29
  }),
30
+ reportRefund: stripeMethod({
31
+ method: 'POST',
32
+ fullPath: '/v1/payment_records/{id}/report_refund',
33
+ }),
30
34
  });
@@ -10,6 +10,11 @@ export const GbBankAccounts = StripeResource.extend({
10
10
  method: 'GET',
11
11
  fullPath: '/v2/core/vault/gb_bank_accounts/{id}',
12
12
  }),
13
+ list: stripeMethod({
14
+ method: 'GET',
15
+ fullPath: '/v2/core/vault/gb_bank_accounts',
16
+ methodType: 'list',
17
+ }),
13
18
  acknowledgeConfirmationOfPayee: stripeMethod({
14
19
  method: 'POST',
15
20
  fullPath: '/v2/core/vault/gb_bank_accounts/{id}/acknowledge_confirmation_of_payee',
@@ -14,8 +14,21 @@ export const UsBankAccounts = StripeResource.extend({
14
14
  method: 'POST',
15
15
  fullPath: '/v2/core/vault/us_bank_accounts/{id}',
16
16
  }),
17
+ list: stripeMethod({
18
+ method: 'GET',
19
+ fullPath: '/v2/core/vault/us_bank_accounts',
20
+ methodType: 'list',
21
+ }),
17
22
  archive: stripeMethod({
18
23
  method: 'POST',
19
24
  fullPath: '/v2/core/vault/us_bank_accounts/{id}/archive',
20
25
  }),
26
+ confirmMicrodeposits: stripeMethod({
27
+ method: 'POST',
28
+ fullPath: '/v2/core/vault/us_bank_accounts/{id}/confirm_microdeposits',
29
+ }),
30
+ sendMicrodeposits: stripeMethod({
31
+ method: 'POST',
32
+ fullPath: '/v2/core/vault/us_bank_accounts/{id}/send_microdeposits',
33
+ }),
21
34
  });
@@ -10,6 +10,10 @@ export const FinancialAccounts = StripeResource.extend({
10
10
  method: 'GET',
11
11
  fullPath: '/v2/money_management/financial_accounts/{id}',
12
12
  }),
13
+ update: stripeMethod({
14
+ method: 'POST',
15
+ fullPath: '/v2/money_management/financial_accounts/{id}',
16
+ }),
13
17
  list: stripeMethod({
14
18
  method: 'GET',
15
19
  fullPath: '/v2/money_management/financial_accounts',
@@ -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.2.0-beta.1';
37
+ Stripe.PACKAGE_VERSION = '19.3.0-beta.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "19.2.0-beta.1",
3
+ "version": "19.3.0-beta.1",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -829,6 +829,11 @@ declare module 'stripe' {
829
829
 
830
830
  registration_date?: Company.RegistrationDate;
831
831
 
832
+ /**
833
+ * This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
834
+ */
835
+ representative_declaration?: Company.RepresentativeDeclaration | null;
836
+
832
837
  /**
833
838
  * 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.
834
839
  */
@@ -985,6 +990,23 @@ declare module 'stripe' {
985
990
  year: number | null;
986
991
  }
987
992
 
993
+ interface RepresentativeDeclaration {
994
+ /**
995
+ * The Unix timestamp marking when the representative declaration attestation was made.
996
+ */
997
+ date: number | null;
998
+
999
+ /**
1000
+ * The IP address from which the representative declaration attestation was made.
1001
+ */
1002
+ ip: string | null;
1003
+
1004
+ /**
1005
+ * The user-agent string from the browser where the representative declaration attestation was made.
1006
+ */
1007
+ user_agent: string | null;
1008
+ }
1009
+
988
1010
  type Structure =
989
1011
  | 'free_zone_establishment'
990
1012
  | 'free_zone_llc'
@@ -1273,6 +1295,7 @@ declare module 'stripe' {
1273
1295
  | 'invalid_url_website_other'
1274
1296
  | 'invalid_value_other'
1275
1297
  | 'unsupported_business_type'
1298
+ | 'verification_data_not_found'
1276
1299
  | 'verification_directors_mismatch'
1277
1300
  | 'verification_document_address_mismatch'
1278
1301
  | 'verification_document_address_missing'
@@ -1471,6 +1494,7 @@ declare module 'stripe' {
1471
1494
  | 'invalid_url_website_other'
1472
1495
  | 'invalid_value_other'
1473
1496
  | 'unsupported_business_type'
1497
+ | 'verification_data_not_found'
1474
1498
  | 'verification_directors_mismatch'
1475
1499
  | 'verification_document_address_mismatch'
1476
1500
  | 'verification_document_address_missing'
@@ -1197,6 +1197,11 @@ declare module 'stripe' {
1197
1197
  */
1198
1198
  registration_number?: string;
1199
1199
 
1200
+ /**
1201
+ * This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
1202
+ */
1203
+ representative_declaration?: Company.RepresentativeDeclaration;
1204
+
1200
1205
  /**
1201
1206
  * The category identifying the legal structure of the company or legal entity. See [Business structure](https://docs.stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
1202
1207
  */
@@ -1279,6 +1284,23 @@ declare module 'stripe' {
1279
1284
  year: number;
1280
1285
  }
1281
1286
 
1287
+ interface RepresentativeDeclaration {
1288
+ /**
1289
+ * The Unix timestamp marking when the representative declaration attestation was made.
1290
+ */
1291
+ date?: number;
1292
+
1293
+ /**
1294
+ * The IP address from which the representative declaration attestation was made.
1295
+ */
1296
+ ip?: string;
1297
+
1298
+ /**
1299
+ * The user agent of the browser from which the representative declaration attestation was made.
1300
+ */
1301
+ user_agent?: string;
1302
+ }
1303
+
1282
1304
  type Structure =
1283
1305
  | 'free_zone_establishment'
1284
1306
  | 'free_zone_llc'
@@ -3417,6 +3439,11 @@ declare module 'stripe' {
3417
3439
  */
3418
3440
  registration_number?: string;
3419
3441
 
3442
+ /**
3443
+ * This hash is used to attest that the representative is authorized to act as the representative of their legal entity.
3444
+ */
3445
+ representative_declaration?: Company.RepresentativeDeclaration;
3446
+
3420
3447
  /**
3421
3448
  * The category identifying the legal structure of the company or legal entity. See [Business structure](https://docs.stripe.com/connect/identity-verification#business-structure) for more details. Pass an empty string to unset this value.
3422
3449
  */
@@ -3499,6 +3526,23 @@ declare module 'stripe' {
3499
3526
  year: number;
3500
3527
  }
3501
3528
 
3529
+ interface RepresentativeDeclaration {
3530
+ /**
3531
+ * The Unix timestamp marking when the representative declaration attestation was made.
3532
+ */
3533
+ date?: number;
3534
+
3535
+ /**
3536
+ * The IP address from which the representative declaration attestation was made.
3537
+ */
3538
+ ip?: string;
3539
+
3540
+ /**
3541
+ * The user agent of the browser from which the representative declaration attestation was made.
3542
+ */
3543
+ user_agent?: string;
3544
+ }
3545
+
3502
3546
  type Structure =
3503
3547
  | 'free_zone_establishment'
3504
3548
  | 'free_zone_llc'
@@ -206,6 +206,7 @@ declare module 'stripe' {
206
206
  | 'invalid_url_website_other'
207
207
  | 'invalid_value_other'
208
208
  | 'unsupported_business_type'
209
+ | 'verification_data_not_found'
209
210
  | 'verification_directors_mismatch'
210
211
  | 'verification_document_address_mismatch'
211
212
  | 'verification_document_address_missing'
@@ -348,6 +349,7 @@ declare module 'stripe' {
348
349
  | 'invalid_url_website_other'
349
350
  | 'invalid_value_other'
350
351
  | 'unsupported_business_type'
352
+ | 'verification_data_not_found'
351
353
  | 'verification_directors_mismatch'
352
354
  | 'verification_document_address_mismatch'
353
355
  | 'verification_document_address_missing'
@@ -15,9 +15,9 @@ declare module 'stripe' {
15
15
  applicability_config: CreditGrantCreateParams.ApplicabilityConfig;
16
16
 
17
17
  /**
18
- * The category of this credit grant.
18
+ * The category of this credit grant. It defaults to `paid` if not specified.
19
19
  */
20
- category: CreditGrantCreateParams.Category;
20
+ category?: CreditGrantCreateParams.Category;
21
21
 
22
22
  /**
23
23
  * ID of the customer to receive the billing credits.
@@ -4,7 +4,7 @@ declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  namespace BillingPortal {
6
6
  /**
7
- * A portal configuration describes the functionality and behavior of a portal session.
7
+ * A portal configuration describes the functionality and behavior you embed in a portal session. Related guide: [Configure the customer portal](https://docs.stripe.com/customer-management/configure-portal).
8
8
  */
9
9
  interface Configuration {
10
10
  /**
@@ -122,6 +122,11 @@ declare module 'stripe' {
122
122
  * Whether the feature is enabled.
123
123
  */
124
124
  enabled: boolean;
125
+
126
+ /**
127
+ * The [Payment Method Configuration](https://docs.stripe.com/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used.
128
+ */
129
+ payment_method_configuration?: Stripe.Emptyable<string>;
125
130
  }
126
131
 
127
132
  interface SubscriptionCancel {
@@ -420,6 +425,11 @@ declare module 'stripe' {
420
425
  * Whether the feature is enabled.
421
426
  */
422
427
  enabled: boolean;
428
+
429
+ /**
430
+ * The [Payment Method Configuration](https://docs.stripe.com/api/payment_method_configurations) to use for this portal session. When specified, customers will be able to update their payment method to one of the options specified by the payment method configuration. If not set or set to an empty string, the default payment method configuration is used.
431
+ */
432
+ payment_method_configuration?: Stripe.Emptyable<string>;
423
433
  }
424
434
 
425
435
  interface SubscriptionCancel {
@@ -174,6 +174,7 @@ declare module 'stripe' {
174
174
  | 'invalid_url_website_other'
175
175
  | 'invalid_value_other'
176
176
  | 'unsupported_business_type'
177
+ | 'verification_data_not_found'
177
178
  | 'verification_directors_mismatch'
178
179
  | 'verification_document_address_mismatch'
179
180
  | 'verification_document_address_missing'
@@ -360,6 +361,7 @@ declare module 'stripe' {
360
361
  | 'invalid_url_website_other'
361
362
  | 'invalid_value_other'
362
363
  | 'unsupported_business_type'
364
+ | 'verification_data_not_found'
363
365
  | 'verification_directors_mismatch'
364
366
  | 'verification_document_address_mismatch'
365
367
  | 'verification_document_address_missing'
@@ -1538,7 +1538,7 @@ declare module 'stripe' {
1538
1538
  }
1539
1539
 
1540
1540
  namespace Crypto {
1541
- type Network = 'base' | 'ethereum' | 'polygon';
1541
+ type Network = 'base' | 'ethereum' | 'polygon' | 'solana';
1542
1542
 
1543
1543
  type TokenCurrency = 'usdc' | 'usdg' | 'usdp';
1544
1544
  }
@@ -2359,7 +2359,12 @@ declare module 'stripe' {
2359
2359
 
2360
2360
  interface Qris {}
2361
2361
 
2362
- interface Rechnung {}
2362
+ interface Rechnung {
2363
+ /**
2364
+ * Payment portal URL.
2365
+ */
2366
+ payment_portal_url: string | null;
2367
+ }
2363
2368
 
2364
2369
  interface RevolutPay {
2365
2370
  funding?: RevolutPay.Funding;
@@ -228,7 +228,9 @@ declare module 'stripe' {
228
228
  car_rental?: PaymentDetails.CarRental;
229
229
 
230
230
  /**
231
- * Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
231
+ * A unique value to identify the customer. This field is available only for card payments.
232
+ *
233
+ * This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
232
234
  */
233
235
  customer_reference?: Stripe.Emptyable<string>;
234
236
 
@@ -248,7 +250,11 @@ declare module 'stripe' {
248
250
  lodging?: PaymentDetails.Lodging;
249
251
 
250
252
  /**
251
- * A unique value assigned by the business to identify the transaction.
253
+ * A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
254
+ *
255
+ * Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
256
+ *
257
+ * For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
252
258
  */
253
259
  order_reference?: Stripe.Emptyable<string>;
254
260
 
@@ -1036,7 +1042,9 @@ declare module 'stripe' {
1036
1042
  car_rental?: PaymentDetails.CarRental;
1037
1043
 
1038
1044
  /**
1039
- * Some customers might be required by their company or organization to provide this information. If so, provide this value. Otherwise you can ignore this field.
1045
+ * A unique value to identify the customer. This field is available only for card payments.
1046
+ *
1047
+ * This field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks.
1040
1048
  */
1041
1049
  customer_reference?: Stripe.Emptyable<string>;
1042
1050
 
@@ -1056,7 +1064,11 @@ declare module 'stripe' {
1056
1064
  lodging?: PaymentDetails.Lodging;
1057
1065
 
1058
1066
  /**
1059
- * A unique value assigned by the business to identify the transaction.
1067
+ * A unique value assigned by the business to identify the transaction. Required for L2 and L3 rates.
1068
+ *
1069
+ * Required when the Payment Method Types array contains `card`, including when [automatic_payment_methods.enabled](https://docs.stripe.com/api/payment_intents/create#create_payment_intent-automatic_payment_methods-enabled) is set to `true`.
1070
+ *
1071
+ * For Cards, this field is truncated to 25 alphanumeric characters, excluding spaces, before being sent to card networks. For Klarna, this field is truncated to 255 characters and is visible to customers when they view the order in the Klarna app.
1060
1072
  */
1061
1073
  order_reference?: Stripe.Emptyable<string>;
1062
1074
 
@@ -1413,6 +1413,8 @@ declare module 'stripe' {
1413
1413
 
1414
1414
  swish?: PaymentMethodOptions.Swish;
1415
1415
 
1416
+ twint?: PaymentMethodOptions.Twint;
1417
+
1416
1418
  us_bank_account?: PaymentMethodOptions.UsBankAccount;
1417
1419
  }
1418
1420
 
@@ -2414,6 +2416,19 @@ declare module 'stripe' {
2414
2416
  reference: string | null;
2415
2417
  }
2416
2418
 
2419
+ interface Twint {
2420
+ /**
2421
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2422
+ *
2423
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2424
+ *
2425
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2426
+ *
2427
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2428
+ */
2429
+ setup_future_usage?: 'none';
2430
+ }
2431
+
2417
2432
  interface UsBankAccount {
2418
2433
  financial_connections?: UsBankAccount.FinancialConnections;
2419
2434
 
@@ -401,7 +401,7 @@ declare module 'stripe' {
401
401
  button_color?: Stripe.Emptyable<string>;
402
402
 
403
403
  /**
404
- * A string to override the business name shown on the Checkout Session.
404
+ * A string to override the business name shown on the Checkout Session. This only shows at the top of the Checkout page, and your business name still appears in terms, receipts, and other places.
405
405
  */
406
406
  display_name?: string;
407
407
 
@@ -411,12 +411,12 @@ declare module 'stripe' {
411
411
  font_family?: Stripe.Emptyable<BrandingSettings.FontFamily>;
412
412
 
413
413
  /**
414
- * The icon for the Checkout Session. You cannot set both `logo` and `icon`.
414
+ * The icon for the Checkout Session. For best results, use a square image.
415
415
  */
416
416
  icon?: BrandingSettings.Icon;
417
417
 
418
418
  /**
419
- * The logo for the Checkout Session. You cannot set both `logo` and `icon`.
419
+ * The logo for the Checkout Session.
420
420
  */
421
421
  logo?: BrandingSettings.Logo;
422
422
  }
@@ -1563,6 +1563,11 @@ declare module 'stripe' {
1563
1563
  */
1564
1564
  swish?: PaymentMethodOptions.Swish;
1565
1565
 
1566
+ /**
1567
+ * contains details about the TWINT payment method options.
1568
+ */
1569
+ twint?: PaymentMethodOptions.Twint;
1570
+
1566
1571
  /**
1567
1572
  * contains details about the Us Bank Account payment method options.
1568
1573
  */
@@ -2707,6 +2712,19 @@ declare module 'stripe' {
2707
2712
  reference?: string;
2708
2713
  }
2709
2714
 
2715
+ interface Twint {
2716
+ /**
2717
+ * Indicates that you intend to make future payments with this PaymentIntent's payment method.
2718
+ *
2719
+ * If you provide a Customer with the PaymentIntent, you can use this parameter to [attach the payment method](https://docs.stripe.com/payments/save-during-payment) to the Customer after the PaymentIntent is confirmed and the customer completes any required actions. If you don't provide a Customer, you can still [attach](https://docs.stripe.com/api/payment_methods/attach) the payment method to a Customer after the transaction completes.
2720
+ *
2721
+ * If the payment method is `card_present` and isn't a digital wallet, Stripe creates and attaches a [generated_card](https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card) payment method representing the card to the Customer instead.
2722
+ *
2723
+ * When processing card payments, Stripe uses `setup_future_usage` to help you comply with regional legislation and network rules, such as [SCA](https://docs.stripe.com/strong-customer-authentication).
2724
+ */
2725
+ setup_future_usage?: 'none';
2726
+ }
2727
+
2710
2728
  interface UsBankAccount {
2711
2729
  /**
2712
2730
  * Additional fields for Financial Connections Session creation