stripe 18.1.0-beta.1 → 18.1.0-beta.2

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 (52) hide show
  1. package/CHANGELOG.md +164 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -3
  4. package/VERSION +1 -1
  5. package/cjs/resources/Privacy/RedactionJobs.js +46 -0
  6. package/cjs/resources.js +5 -1
  7. package/cjs/stripe.core.js +1 -1
  8. package/esm/resources/Privacy/RedactionJobs.js +43 -0
  9. package/esm/resources.js +4 -0
  10. package/esm/stripe.core.js +1 -1
  11. package/package.json +1 -1
  12. package/types/AccountSessionsResource.d.ts +57 -0
  13. package/types/Accounts.d.ts +16 -0
  14. package/types/AccountsResource.d.ts +28 -0
  15. package/types/BalanceSettings.d.ts +1 -1
  16. package/types/BankAccounts.d.ts +2 -0
  17. package/types/Capabilities.d.ts +2 -0
  18. package/types/Capital/FinancingOffers.d.ts +1 -1
  19. package/types/Checkout/Sessions.d.ts +23 -1
  20. package/types/Checkout/SessionsResource.d.ts +26 -1
  21. package/types/EventTypes.d.ts +85 -0
  22. package/types/Events.d.ts +5 -0
  23. package/types/ExternalAccountsResource.d.ts +86 -1
  24. package/types/Invoices.d.ts +1 -0
  25. package/types/InvoicesResource.d.ts +3 -0
  26. package/types/LoginLinks.d.ts +2 -1
  27. package/types/PaymentAttemptRecords.d.ts +4 -4
  28. package/types/PaymentIntents.d.ts +1 -0
  29. package/types/PaymentIntentsResource.d.ts +9 -9
  30. package/types/PaymentMethodDomains.d.ts +28 -0
  31. package/types/PaymentMethodsResource.d.ts +3 -3
  32. package/types/PaymentRecords.d.ts +4 -4
  33. package/types/PaymentRecordsResource.d.ts +2 -2
  34. package/types/Persons.d.ts +2 -0
  35. package/types/Privacy/RedactionJobRootObjects.d.ts +35 -0
  36. package/types/Privacy/RedactionJobValidationErrors.d.ts +30 -0
  37. package/types/Privacy/RedactionJobs.d.ts +43 -0
  38. package/types/Privacy/RedactionJobsResource.d.ts +240 -0
  39. package/types/QuotePreviewInvoices.d.ts +1 -0
  40. package/types/SetupAttempts.d.ts +1 -0
  41. package/types/SetupIntents.d.ts +1 -0
  42. package/types/SetupIntentsResource.d.ts +9 -9
  43. package/types/Subscriptions.d.ts +3 -0
  44. package/types/SubscriptionsResource.d.ts +6 -0
  45. package/types/Tax/CalculationLineItems.d.ts +1 -1
  46. package/types/Tax/Registrations.d.ts +9 -0
  47. package/types/Tax/RegistrationsResource.d.ts +12 -0
  48. package/types/TestHelpers/ConfirmationTokensResource.d.ts +3 -3
  49. package/types/V2/EventTypes.d.ts +0 -4
  50. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +1 -1
  51. package/types/WebhookEndpointsResource.d.ts +10 -0
  52. package/types/index.d.ts +7 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## 18.1.0-beta.2 - 2025-04-10
4
+ * [#2298](https://github.com/stripe/stripe-node/pull/2298) Update generated code for beta
5
+
6
+ ### Breaking changes
7
+ * Change type of `V2.MoneyManagement.ReceivedDebit.status_transitions` from `an object` to `an object | null`
8
+ * Remove support for values `bank_accounts.local_uk`, `bank_accounts.wire_uk`, `cards_uk`, and `crypto_wallets_v2` from enum `EventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability`
9
+
10
+ ### Additions
11
+ * Add support for new resources `Privacy.RedactionJobRootObjects`, `Privacy.RedactionJobValidationError`, and `Privacy.RedactionJob`
12
+ * Add support for `cancel`, `create`, `list`, `retrieve`, `run`, `update`, and `validate` methods on resource `RedactionJob`
13
+ * Add support for `list` and `retrieve` methods on resource `RedactionJobValidationError`
14
+ * Add support for `minority_owned_business_designation` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile`
15
+ * Add support for new value `verification_legal_entity_structure_mismatch` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `AccountCapability.future_requirements.errors[].code`, `AccountCapability.requirements.errors[].code`, `AccountPerson.future_requirements.errors[].code`, `AccountPerson.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
16
+ * Add support for `export_tax_transactions` and `payment_disputes` on `AccountSessionCreateParams.components`
17
+ * Add support for new value `tax_id_prohibited` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `QuotePreviewInvoice.last_finalization_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
18
+ * Add support for new value `fixed_term_loan` on enum `Capital.FinancingOffer.type`
19
+ * Add support for `wallet_options` on `Checkout.SessionCreateParams` and `Checkout.Session`
20
+ * Add support for new values `privacy.redaction_job.canceled`, `privacy.redaction_job.created`, `privacy.redaction_job.ready`, `privacy.redaction_job.succeeded`, and `privacy.redaction_job.validation_error` on enum `Event.type`
21
+ * Add support for `klarna` on `PaymentMethodDomain`
22
+ * Change type of `Tax.CalculationLineItem.reference` from `string | null` to `string`
23
+ * Add support for `in` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
24
+ * Add support for new values `privacy.redaction_job.canceled`, `privacy.redaction_job.created`, `privacy.redaction_job.ready`, `privacy.redaction_job.succeeded`, and `privacy.redaction_job.validation_error` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
25
+ * [#2300](https://github.com/stripe/stripe-node/pull/2300) Handle external_resource field
26
+ - Changes `external_account` field in `ExternalAccountsCreateParams` from a `string` to a union type.
27
+
3
28
  ## 18.1.0-beta.1 - 2025-04-02
4
29
  * [#2288](https://github.com/stripe/stripe-node/pull/2288) Update generated code for beta
5
30
  This release changes the pinned API version to `2025-03-31.preview`
@@ -84,6 +109,145 @@
84
109
  * Change `OrderCreateParams.payment.settings.payment_method_options.wechat_pay.client` and `OrderUpdateParams.payment.settings.payment_method_options.wechat_pay.client` to be optional
85
110
 
86
111
 
112
+ ## 18.0.0 - 2025-04-01
113
+ * [#2279](https://github.com/stripe/stripe-node/pull/2279) Support for APIs in the new API version 2025-03-31.basil
114
+
115
+ This release changes the pinned API version to `2025-03-31.basil`.
116
+
117
+ ### ⚠️ Breaking changes due to changes in the Stripe API
118
+
119
+ Please review details for the breaking changes and alternatives in the [Stripe API changelog](https://docs.stripe.com/changelog/basil) before upgrading.
120
+
121
+ * Remove support for resources `SubscriptionItemUsageRecordSummary` and `SubscriptionItemUsageRecord`
122
+ * Remove support for `listUpcomingLines` and `retrieveUpcoming` methods on resource `Invoice`
123
+ * Remove support for `createUsageRecord` and `listUsageRecordSummaries` methods on resource `SubscriptionItems`
124
+ * Remove support for `invoice` on `Charge` and `PaymentIntent`
125
+ * Remove support for `shipping_details` on `Checkout.Session`
126
+ * Remove support for `carrier`, `phone`, and `tracking_number` on `Checkout.Session.collected_information.shipping_details`. Make `name` and `address` required instead of optional.
127
+ * Remove support for `refund` on `CreditNoteCreateParams`, `CreditNoteListPreviewLineItemsParams`, `CreditNotePreviewParams`, and `CreditNote`
128
+ * Remove support for `tax_amounts` on `CreditNoteLineItem`, `CreditNote`, and `InvoiceLineItem`
129
+ * Remove support for `amount_excluding_tax` and `unit_amount_excluding_tax` on `CreditNoteLineItem` and `InvoiceLineItem`
130
+ * Remove support for `coupon` on `CustomerCreateParams`, `CustomerUpdateParams`, `InvoiceCreatePreviewParams.schedule_details.phases[]`, `InvoiceCreatePreviewParams`, `SubscriptionCreateParams`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[]`, and `SubscriptionUpdateParams`
131
+ * Remove support for `promotion_code` on `CustomerCreateParams`, `CustomerUpdateParams`, `SubscriptionCreateParams`, and `SubscriptionUpdateParams`
132
+ * Remove support for `price` on `InvoiceAddLinesParams.lines[]`, `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceItem`, `InvoiceLineItemUpdateParams`, `InvoiceLineItem`, and `InvoiceUpdateLinesParams.lines[]. Use `pricing` instead.
133
+ * Remove 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`
134
+ * Remove support for `application_fee_amount`, `charge`, `paid_out_of_band`, `paid`, `payment_intent`, `quote`, `subscription`, `subscription_details`, `subscription_proration_date`, `tax`, `total_tax_amounts`, and `transfer_data` on `Invoice`
135
+ * Remove support for `discount` on `Invoice` and `Subscription`
136
+ * Remove support for `invoice_item`, `proration_details`, `proration`, `tax_rates`, and `type` on `InvoiceLineItem`
137
+ * Remove support for `plan` and `subscription_item` on `InvoiceItem` and `InvoiceLineItem`
138
+ * Remove support for `unit_amount` on `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, and `InvoiceItem`
139
+ * Remove support for `subscription` and `unit_amount_decimal` on `InvoiceItem`
140
+ * Remove support for `naver_pay` on `PaymentMethodUpdateParams`
141
+ * Remove support for `aggregate_usage` on `PlanCreateParams`, `Plan`, `Price.recurring`, and `PriceCreateParams.recurring`
142
+ * Remove support for `current_period_end` and `current_period_start` on `Subscription`
143
+ * `page` has been removed from all V2 list method params (e.g. `EventService.list()`); use the [auto paginator](https://github.com/stripe/stripe-node?tab=readme-ov-file#auto-pagination) or the `next_page_url` and `previous_page_url` fields instead ([more info](https://docs.stripe.com/api-v2-overview#list-pagination))
144
+
145
+ ### Changes
146
+
147
+ * Change `Checkout.Session.collected_information` to be required
148
+ * Change `Checkout.Session.collected_information.shipping_details` to be required
149
+ * Change `Checkout.Session.collected_information.shipping_details.address` to be required
150
+ * Change `Checkout.Session.collected_information.shipping_details.name` to be required
151
+ * Change `PaymentIntentConfirmParams.payment_method_options.wechat_pay.client`, `PaymentIntentCreateParams.payment_method_options.wechat_pay.client`, and `PaymentIntentUpdateParams.payment_method_options.wechat_pay.client` to be optional
152
+ * Change `political_exposure` on resources `Person` and `Token` and params `Token.CreateParams` from string to enum("existing" | "none")
153
+
154
+ ### Additions
155
+
156
+ * Add support for new resource `InvoicePayment`
157
+ * Add support for `list` and `retrieve` methods on resource `InvoicePayment`
158
+ * Add support for `billie_payments`, `nz_bank_account_becs_debit_payments`, and `satispay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
159
+ * Add support for `hosted_payment_method_save` on `Account.settings.invoices` and `AccountUpdateParams.settings.invoices`
160
+ * Add support for `invoices` on `AccountCreateParams.settings`
161
+ * Add support for new values `information_missing`, `invalid_signator`, `verification_failed_authorizer_authority`, and `verification_rejected_ownership_exemption_reason` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `AccountCapability.future_requirements.errors[].code`, `AccountCapability.requirements.errors[].code`, `AccountPerson.future_requirements.errors[].code`, `AccountPerson.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
162
+ * Add support for new values `forwarding_api_retryable_upstream_error` and `setup_intent_mobile_wallet_unsupported` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
163
+ * Add support for new values `stripe_balance_payment_debit_reversal` and `stripe_balance_payment_debit` on enum `BalanceTransaction.type`
164
+ * Add support for new value `last` on enums `Billing.Meter.default_aggregation.formula` and `Billing.MeterCreateParams.default_aggregation.formula`
165
+ * Add support for `presentment_details` on `Charge`, `Checkout.Session`, `PaymentIntent`, and `Refund`
166
+ * Add support for `billie` and `satispay` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `CustomerPaymentMethod`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
167
+ * Add support for `nz_bank_account` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `CustomerPaymentMethod`, `Mandate.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
168
+ * Add support for `optional_items` on `Checkout.SessionCreateParams`, `Checkout.Session`, `PaymentLinkCreateParams`, and `PaymentLink`
169
+ * Add support for `permissions` on `Checkout.SessionCreateParams` and `Checkout.Session`
170
+ * Add support for new values `billie` and `satispay` on enum `Checkout.SessionCreateParams.payment_method_types`
171
+ * Add support for new value `custom` on enums `Checkout.Session.ui_mode` and `Checkout.SessionCreateParams.ui_mode`
172
+ * Add support for `shipping_options` on `Checkout.SessionUpdateParams`
173
+ * Add support for new values `billie`, `nz_bank_account`, and `satispay` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
174
+ * Add support for `buyer_id` on `ConfirmationToken.payment_method_preview.naver_pay`, `CustomerPaymentMethod.naver_pay`, and `PaymentMethod.naver_pay`
175
+ * Add support for new values `billie`, `nz_bank_account`, and `satispay` on enums `ConfirmationToken.payment_method_preview.type`, `CustomerPaymentMethod.type`, and `PaymentMethod.type`
176
+ * Add support for `refunds` on `CreditNoteCreateParams`, `CreditNoteListPreviewLineItemsParams`, `CreditNotePreviewParams`, and `CreditNote`
177
+ * Add support for `total_taxes` on `CreditNote` and `Invoice`
178
+ * Add support for `taxes` on `CreditNoteLineItem` and `InvoiceLineItem`
179
+ * Add support for `checkout_session` on `CustomerBalanceTransaction`
180
+ * Add support for new values `checkout_session_subscription_payment_canceled` and `checkout_session_subscription_payment` on enum `CustomerBalanceTransaction.type`
181
+ * Add support for new values `billie`, `nz_bank_account`, and `satispay` on enums `CustomerPaymentMethodListParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
182
+ * Add support for new value `invoice.overpaid` on enum `Event.type`
183
+ * Add support for new values `klarna` and `nz_bank_account` 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`
184
+ * Add support for `pricing` on `InvoiceAddLinesParams.lines[]`, `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceItem`, `InvoiceLineItemUpdateParams`, `InvoiceLineItem`, and `InvoiceUpdateLinesParams.lines[]`
185
+ * Add support for `taxability_reason` on `InvoiceAddLinesParams.lines[].tax_amounts[]`, `InvoiceLineItemUpdateParams.tax_amounts[]`, and `InvoiceUpdateLinesParams.lines[].tax_amounts[]`
186
+ * Add support for `jurisdiction_level` on `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data`, `InvoiceLineItemUpdateParams.tax_amounts[].tax_rate_data`, and `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data`
187
+ * Add support for `amount_overpaid`, `confirmation_secret`, and `payments` on `Invoice`
188
+ * Add support for `parent` on `InvoiceItem`, `InvoiceLineItem`, and `Invoice`
189
+ * Add support for new value `expired` on enums `Issuing.Authorization.status` and `Issuing.AuthorizationListParams.status`
190
+ * Add support for new value `network_fallback` on enum `Issuing.Authorization.request_history[].reason`
191
+ * Add support for `naver_pay` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details`
192
+ * Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.naver_pay`, `PaymentIntentConfirmParams.payment_method_options.naver_pay`, `PaymentIntentCreateParams.payment_method_options.naver_pay`, and `PaymentIntentUpdateParams.payment_method_options.naver_pay`
193
+ * Add support for new value `expired` on enum `PaymentIntent.cancellation_reason`
194
+ * Add support for `default_value` on `PaymentLink.custom_fields[].dropdown`, `PaymentLink.custom_fields[].numeric`, `PaymentLink.custom_fields[].text`, `PaymentLinkCreateParams.custom_fields[].dropdown`, `PaymentLinkCreateParams.custom_fields[].numeric`, `PaymentLinkCreateParams.custom_fields[].text`, `PaymentLinkUpdateParams.custom_fields[].dropdown`, `PaymentLinkUpdateParams.custom_fields[].numeric`, and `PaymentLinkUpdateParams.custom_fields[].text`
195
+ * Add support for new values `billie` and `satispay` on enums `PaymentLink.payment_method_types`, `PaymentLinkCreateParams.payment_method_types`, and `PaymentLinkUpdateParams.payment_method_types`
196
+ * Add support for `nz_bank_transfer` on `Refund.destination_details`
197
+ * Add support for new value `canceled` on enum `Review.closed_reason`
198
+ * Add support for `current_period_end` and `current_period_start` on `SubscriptionItem`
199
+ * Add support for `wifi` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
200
+ * Add support for new value `invoice.overpaid` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
201
+ * Add support for new values `2025-03-01.dashboard` and `2025-03-31.basil` on enum `WebhookEndpointCreateParams.api_version`
202
+
203
+ ### ⚠️ Other Breaking changes in the SDK
204
+ * [#2277](https://github.com/stripe/stripe-node/pull/2277) Swap Stripe.webhooks from a factory function to a static property
205
+ - `Stripe.webhooks` and `Stripe().webhooks` are no longer functions (just plain objects)
206
+ - if you were already treating those properties as plain objects (per the types), then you can ignore this change
207
+ - if you were calling `Stripe.webhooks().someMethod()`, you should use `Stripe.webhooks.someMethod()` instead
208
+ - there shouldn't be user-facing functionality changing, just a slight breaking change in our internal organization
209
+ * [#2286](https://github.com/stripe/stripe-node/pull/2286) Remove types that were marked as deprecated in Feb 2024
210
+ * Remove `AccountDebitSource` in favor of `Account`
211
+ * Remove `CapabilityListParams` in favor of `AccountListCapabilitiesParams`
212
+ * Remove `CapabilityRetrieveParams` in favor of `AccountRetrieveCapabilityParams`
213
+ * Remove `CapabilityUpdateParams` in favor of `AccountUpdateCapabilityParams`
214
+ * Remove `CashBalanceRetrieveParams` in favor of `CustomerRetrieveCashBalanceParams`
215
+ * Remove `CashBalanceUpdateParams` in favor of `CustomerUpdateCashBalanceParams`
216
+ * Remove `CreditNoteLineItemListParams` in favor of `CreditNoteListLineItemsParams`
217
+ * Remove `CustomerBalanceTransactionCreateParams` in favor of `CustomerCreateBalanceTransactionParams`
218
+ * Remove `CustomerBalanceTransactionListParams` in favor of `CustomerListBalanceTransactionsParams`
219
+ * Remove `CustomerBalanceTransactionRetrieveParams` in favor of `CustomerRetrieveBalanceTransactionParams`
220
+ * Remove `CustomerBalanceTransactionUpdateParams` in favor of `CustomerUpdateBalanceTransactionParams`
221
+ * Remove `CustomerCashBalanceTransactionListParams` in favor of `CustomerListCashBalanceTransactionsParams`
222
+ * Remove `CustomerCashBalanceTransactionRetrieveParams` in favor of `CustomerRetrieveCashBalanceTransactionParams`
223
+ * Remove `CustomerSourceCreateParams` in favor of `CustomerCreateSourceParams`
224
+ * Remove `CustomerSourceDeleteParams` in favor of `CustomerDeleteSourceParams`
225
+ * Remove `CustomerSourceListParams` in favor of `CustomerListSourcesParams`
226
+ * Remove `CustomerSourceRetrieveParams` in favor of `CustomerRetrieveSourceParams`
227
+ * Remove `CustomerSourceUpdateParams` in favor of `CustomerUpdateSourceParams`
228
+ * Remove `CustomerSourceVerifyParams` in favor of `CustomerVerifySourceParams`
229
+ * Remove `ExternalAccountCreateParams` in favor of `AccountCreateExternalAccountParams`
230
+ * Remove `ExternalAccountDeleteParams` in favor of `AccountDeleteExternalAccountParams`
231
+ * Remove `ExternalAccountListParams` in favor of `AccountListExternalAccountsParams`
232
+ * Remove `ExternalAccountRetrieveParams` in favor of `AccountRetrieveExternalAccountParams`
233
+ * Remove `ExternalAccountUpdateParams` in favor of `AccountUpdateExternalAccountParams`
234
+ * Remove `FeeRefundCreateParams` in favor of `ApplicationFeeCreateRefundParams`
235
+ * Remove `FeeRefundListParams` in favor of `ApplicationFeeListRefundsParams`
236
+ * Remove `FeeRefundRetrieveParams` in favor of `ApplicationFeeRetrieveRefundParams`
237
+ * Remove `FeeRefundUpdateParams` in favor of `ApplicationFeeUpdateRefundParams`
238
+ * Remove `InvoiceLineItemListParams` in favor of `InvoiceListLineItemsParams`
239
+ * Remove `InvoiceLineItemUpdateParams` in favor of `InvoiceUpdateLineItemParams`
240
+ * Remove `LoginLinkCreateParams` in favor of `AccountCreateLoginLinkParams`
241
+ * Remove `PersonCreateParams` in favor of `AccountCreatePersonParams`
242
+ * Remove `PersonDeleteParams` in favor of `AccountDeletePersonParams`
243
+ * Remove `PersonListParams` in favor of `AccountListPersonsParams`
244
+ * Remove `PersonRetrieveParams` in favor of `AccountRetrievePersonParams`
245
+ * Remove `PersonUpdateParams` in favor of `AccountUpdatePersonParams`
246
+ * Remove `TransferReversalCreateParams` in favor of `TransferCreateReversalParams`
247
+ * Remove `TransferReversalListParams` in favor of `TransferListReversalsParams`
248
+ * Remove `TransferReversalRetrieveParams` in favor of `TransferRetrieveReversalParams`
249
+ * Remove `TransferReversalUpdateParams` in favor of `TransferUpdateReversalParams`
250
+
87
251
  ## 17.8.0-beta.1 - 2025-03-18
88
252
  * [#2271](https://github.com/stripe/stripe-node/pull/2271) Beta SDK updates between Open API versions 1473 and 1505
89
253
 
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1648
1
+ v1669
package/README.md CHANGED
@@ -14,8 +14,6 @@ For collecting customer and payment information in the browser, use [Stripe.js][
14
14
 
15
15
  See the [`stripe-node` API docs](https://stripe.com/docs/api?lang=node) for Node.js.
16
16
 
17
- See [video demonstrations][youtube-playlist] covering how to use the library.
18
-
19
17
  ## Requirements
20
18
 
21
19
  Node 12 or higher.
@@ -659,7 +657,6 @@ just format
659
657
  [stripe-js]: https://stripe.com/docs/js
660
658
  [stripe-mock]: https://github.com/stripe/stripe-mock
661
659
  [stripe-mock-usage]: https://github.com/stripe/stripe-mock#usage
662
- [youtube-playlist]: https://www.youtube.com/playlist?list=PLy1nL-pvL2M5xNIuNapwmABwEy2uifAlY
663
660
 
664
661
  <!--
665
662
  # vim: set tw=79:
package/VERSION CHANGED
@@ -1 +1 @@
1
- 18.1.0-beta.1
1
+ 18.1.0-beta.2
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.RedactionJobs = void 0;
5
+ const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.RedactionJobs = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v1/privacy/redaction_jobs',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v1/privacy/redaction_jobs/{job}',
15
+ }),
16
+ update: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v1/privacy/redaction_jobs/{job}',
19
+ }),
20
+ list: stripeMethod({
21
+ method: 'GET',
22
+ fullPath: '/v1/privacy/redaction_jobs',
23
+ methodType: 'list',
24
+ }),
25
+ cancel: stripeMethod({
26
+ method: 'POST',
27
+ fullPath: '/v1/privacy/redaction_jobs/{job}/cancel',
28
+ }),
29
+ listValidationErrors: stripeMethod({
30
+ method: 'GET',
31
+ fullPath: '/v1/privacy/redaction_jobs/{job}/validation_errors',
32
+ methodType: 'list',
33
+ }),
34
+ retrieveValidationError: stripeMethod({
35
+ method: 'GET',
36
+ fullPath: '/v1/privacy/redaction_jobs/{job}/validation_errors/{error}',
37
+ }),
38
+ run: stripeMethod({
39
+ method: 'POST',
40
+ fullPath: '/v1/privacy/redaction_jobs/{job}/run',
41
+ }),
42
+ validate: stripeMethod({
43
+ method: 'POST',
44
+ fullPath: '/v1/privacy/redaction_jobs/{job}/validate',
45
+ }),
46
+ });
package/cjs/resources.js CHANGED
@@ -2,7 +2,7 @@
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Sources = exports.ShippingRates = 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.InvoiceItems = 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.Issuing = exports.Identity = exports.GiftCards = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = 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 = 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.GiftCards = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = 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 = void 0;
6
6
  const ResourceNamespace_js_1 = require("./ResourceNamespace.js");
7
7
  const AccountLinks_js_1 = require("./resources/V2/Core/AccountLinks.js");
8
8
  const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");
@@ -81,6 +81,7 @@ const ReceivedCredits_js_3 = require("./resources/V2/MoneyManagement/ReceivedCre
81
81
  const ReceivedDebits_js_1 = require("./resources/TestHelpers/Treasury/ReceivedDebits.js");
82
82
  const ReceivedDebits_js_2 = require("./resources/Treasury/ReceivedDebits.js");
83
83
  const ReceivedDebits_js_3 = require("./resources/V2/MoneyManagement/ReceivedDebits.js");
84
+ const RedactionJobs_js_1 = require("./resources/Privacy/RedactionJobs.js");
84
85
  const Refunds_js_1 = require("./resources/TestHelpers/Refunds.js");
85
86
  const Registrations_js_1 = require("./resources/Tax/Registrations.js");
86
87
  const ReportRuns_js_1 = require("./resources/Reporting/ReportRuns.js");
@@ -290,6 +291,9 @@ exports.Issuing = (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
290
291
  Tokens: Tokens_js_1.Tokens,
291
292
  Transactions: Transactions_js_4.Transactions,
292
293
  });
294
+ exports.Privacy = (0, ResourceNamespace_js_1.resourceNamespace)('privacy', {
295
+ RedactionJobs: RedactionJobs_js_1.RedactionJobs,
296
+ });
293
297
  exports.Radar = (0, ResourceNamespace_js_1.resourceNamespace)('radar', {
294
298
  EarlyFraudWarnings: EarlyFraudWarnings_js_1.EarlyFraudWarnings,
295
299
  ValueListItems: ValueListItems_js_1.ValueListItems,
@@ -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.0-beta.1';
39
+ Stripe.PACKAGE_VERSION = '18.1.0-beta.2';
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;
@@ -0,0 +1,43 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const RedactionJobs = StripeResource.extend({
5
+ create: stripeMethod({
6
+ method: 'POST',
7
+ fullPath: '/v1/privacy/redaction_jobs',
8
+ }),
9
+ retrieve: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v1/privacy/redaction_jobs/{job}',
12
+ }),
13
+ update: stripeMethod({
14
+ method: 'POST',
15
+ fullPath: '/v1/privacy/redaction_jobs/{job}',
16
+ }),
17
+ list: stripeMethod({
18
+ method: 'GET',
19
+ fullPath: '/v1/privacy/redaction_jobs',
20
+ methodType: 'list',
21
+ }),
22
+ cancel: stripeMethod({
23
+ method: 'POST',
24
+ fullPath: '/v1/privacy/redaction_jobs/{job}/cancel',
25
+ }),
26
+ listValidationErrors: stripeMethod({
27
+ method: 'GET',
28
+ fullPath: '/v1/privacy/redaction_jobs/{job}/validation_errors',
29
+ methodType: 'list',
30
+ }),
31
+ retrieveValidationError: stripeMethod({
32
+ method: 'GET',
33
+ fullPath: '/v1/privacy/redaction_jobs/{job}/validation_errors/{error}',
34
+ }),
35
+ run: stripeMethod({
36
+ method: 'POST',
37
+ fullPath: '/v1/privacy/redaction_jobs/{job}/run',
38
+ }),
39
+ validate: stripeMethod({
40
+ method: 'POST',
41
+ fullPath: '/v1/privacy/redaction_jobs/{job}/validate',
42
+ }),
43
+ });
package/esm/resources.js CHANGED
@@ -77,6 +77,7 @@ import { ReceivedCredits as V2MoneyManagementReceivedCredits } from './resources
77
77
  import { ReceivedDebits as TestHelpersTreasuryReceivedDebits } from './resources/TestHelpers/Treasury/ReceivedDebits.js';
78
78
  import { ReceivedDebits as TreasuryReceivedDebits } from './resources/Treasury/ReceivedDebits.js';
79
79
  import { ReceivedDebits as V2MoneyManagementReceivedDebits } from './resources/V2/MoneyManagement/ReceivedDebits.js';
80
+ import { RedactionJobs as PrivacyRedactionJobs } from './resources/Privacy/RedactionJobs.js';
80
81
  import { Refunds as TestHelpersRefunds } from './resources/TestHelpers/Refunds.js';
81
82
  import { Registrations as TaxRegistrations } from './resources/Tax/Registrations.js';
82
83
  import { ReportRuns as ReportingReportRuns } from './resources/Reporting/ReportRuns.js';
@@ -226,6 +227,9 @@ export const Issuing = resourceNamespace('issuing', {
226
227
  Tokens: IssuingTokens,
227
228
  Transactions: IssuingTransactions,
228
229
  });
230
+ export const Privacy = resourceNamespace('privacy', {
231
+ RedactionJobs: PrivacyRedactionJobs,
232
+ });
229
233
  export const Radar = resourceNamespace('radar', {
230
234
  EarlyFraudWarnings: RadarEarlyFraudWarnings,
231
235
  ValueListItems: RadarValueListItems,
@@ -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.0-beta.1';
36
+ Stripe.PACKAGE_VERSION = '18.1.0-beta.2';
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.0-beta.1",
3
+ "version": "18.1.0-beta.2",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -71,6 +71,11 @@ declare module 'stripe' {
71
71
  */
72
72
  documents?: Components.Documents;
73
73
 
74
+ /**
75
+ * Configuration for the export tax transactions embedded component.
76
+ */
77
+ export_tax_transactions?: Components.ExportTaxTransactions;
78
+
74
79
  /**
75
80
  * Configuration for the financial account embedded component.
76
81
  */
@@ -101,6 +106,11 @@ declare module 'stripe' {
101
106
  */
102
107
  payment_details?: Components.PaymentDetails;
103
108
 
109
+ /**
110
+ * Configuration for the payment disputes embedded component.
111
+ */
112
+ payment_disputes?: Components.PaymentDisputes;
113
+
104
114
  /**
105
115
  * Configuration for the payment method settings embedded component.
106
116
  */
@@ -368,6 +378,22 @@ declare module 'stripe' {
368
378
  interface Features {}
369
379
  }
370
380
 
381
+ interface ExportTaxTransactions {
382
+ /**
383
+ * Whether the embedded component is enabled.
384
+ */
385
+ enabled: boolean;
386
+
387
+ /**
388
+ * The list of features enabled in the embedded component.
389
+ */
390
+ features?: ExportTaxTransactions.Features;
391
+ }
392
+
393
+ namespace ExportTaxTransactions {
394
+ interface Features {}
395
+ }
396
+
371
397
  interface FinancialAccount {
372
398
  /**
373
399
  * Whether the embedded component is enabled.
@@ -564,6 +590,37 @@ declare module 'stripe' {
564
590
  }
565
591
  }
566
592
 
593
+ interface PaymentDisputes {
594
+ /**
595
+ * Whether the embedded component is enabled.
596
+ */
597
+ enabled: boolean;
598
+
599
+ /**
600
+ * The list of features enabled in the embedded component.
601
+ */
602
+ features?: PaymentDisputes.Features;
603
+ }
604
+
605
+ namespace PaymentDisputes {
606
+ interface Features {
607
+ /**
608
+ * Whether to allow connected accounts to manage destination charges that are created on behalf of them. This is `false` by default.
609
+ */
610
+ destination_on_behalf_of_charge_management?: boolean;
611
+
612
+ /**
613
+ * Whether to allow responding to disputes, including submitting evidence and accepting disputes. This is `true` by default.
614
+ */
615
+ dispute_management?: boolean;
616
+
617
+ /**
618
+ * Whether to allow sending refunds. This is `true` by default.
619
+ */
620
+ refund_management?: boolean;
621
+ }
622
+ }
623
+
567
624
  interface PaymentMethodSettings {
568
625
  /**
569
626
  * Whether the embedded component is enabled.
@@ -143,6 +143,13 @@ declare module 'stripe' {
143
143
  */
144
144
  mcc: string | null;
145
145
 
146
+ /**
147
+ * Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
148
+ */
149
+ minority_owned_business_designation: Array<
150
+ BusinessProfile.MinorityOwnedBusinessDesignation
151
+ > | null;
152
+
146
153
  monthly_estimated_revenue?: BusinessProfile.MonthlyEstimatedRevenue;
147
154
 
148
155
  /**
@@ -199,6 +206,13 @@ declare module 'stripe' {
199
206
  fiscal_year_end: string | null;
200
207
  }
201
208
 
209
+ type MinorityOwnedBusinessDesignation =
210
+ | 'lgbtqi_owned_business'
211
+ | 'minority_owned_business'
212
+ | 'none_of_these_apply'
213
+ | 'prefer_not_to_answer'
214
+ | 'women_owned_business';
215
+
202
216
  interface MonthlyEstimatedRevenue {
203
217
  /**
204
218
  * A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
@@ -1262,6 +1276,7 @@ declare module 'stripe' {
1262
1276
  | 'verification_failed_residential_address'
1263
1277
  | 'verification_failed_tax_id_match'
1264
1278
  | 'verification_failed_tax_id_not_issued'
1279
+ | 'verification_legal_entity_structure_mismatch'
1265
1280
  | 'verification_missing_directors'
1266
1281
  | 'verification_missing_executives'
1267
1282
  | 'verification_missing_owners'
@@ -1457,6 +1472,7 @@ declare module 'stripe' {
1457
1472
  | 'verification_failed_residential_address'
1458
1473
  | 'verification_failed_tax_id_match'
1459
1474
  | 'verification_failed_tax_id_not_issued'
1475
+ | 'verification_legal_entity_structure_mismatch'
1460
1476
  | 'verification_missing_directors'
1461
1477
  | 'verification_missing_executives'
1462
1478
  | 'verification_missing_owners'
@@ -125,6 +125,13 @@ declare module 'stripe' {
125
125
  */
126
126
  mcc?: string;
127
127
 
128
+ /**
129
+ * Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
130
+ */
131
+ minority_owned_business_designation?: Array<
132
+ BusinessProfile.MinorityOwnedBusinessDesignation
133
+ >;
134
+
128
135
  /**
129
136
  * An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
130
137
  */
@@ -184,6 +191,13 @@ declare module 'stripe' {
184
191
  fiscal_year_end: string;
185
192
  }
186
193
 
194
+ type MinorityOwnedBusinessDesignation =
195
+ | 'lgbtqi_owned_business'
196
+ | 'minority_owned_business'
197
+ | 'none_of_these_apply'
198
+ | 'prefer_not_to_answer'
199
+ | 'women_owned_business';
200
+
187
201
  interface MonthlyEstimatedRevenue {
188
202
  /**
189
203
  * A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
@@ -2204,6 +2218,13 @@ declare module 'stripe' {
2204
2218
  */
2205
2219
  mcc?: string;
2206
2220
 
2221
+ /**
2222
+ * Whether the business is a minority-owned, women-owned, and/or LGBTQI+-owned business.
2223
+ */
2224
+ minority_owned_business_designation?: Array<
2225
+ BusinessProfile.MinorityOwnedBusinessDesignation
2226
+ >;
2227
+
2207
2228
  /**
2208
2229
  * An estimate of the monthly revenue of the business. Only accepted for accounts in Brazil and India.
2209
2230
  */
@@ -2263,6 +2284,13 @@ declare module 'stripe' {
2263
2284
  fiscal_year_end: string;
2264
2285
  }
2265
2286
 
2287
+ type MinorityOwnedBusinessDesignation =
2288
+ | 'lgbtqi_owned_business'
2289
+ | 'minority_owned_business'
2290
+ | 'none_of_these_apply'
2291
+ | 'prefer_not_to_answer'
2292
+ | 'women_owned_business';
2293
+
2266
2294
  interface MonthlyEstimatedRevenue {
2267
2295
  /**
2268
2296
  * A non-negative integer representing how much to charge in the [smallest currency unit](https://stripe.com/currencies#zero-decimal).
@@ -3,7 +3,7 @@
3
3
  declare module 'stripe' {
4
4
  namespace Stripe {
5
5
  /**
6
- * "Options for customizing account balances within Stripe."
6
+ * Options for customizing account balances within Stripe.
7
7
  */
8
8
  interface BalanceSettings {
9
9
  /**
@@ -249,6 +249,7 @@ declare module 'stripe' {
249
249
  | 'verification_failed_residential_address'
250
250
  | 'verification_failed_tax_id_match'
251
251
  | 'verification_failed_tax_id_not_issued'
252
+ | 'verification_legal_entity_structure_mismatch'
252
253
  | 'verification_missing_directors'
253
254
  | 'verification_missing_executives'
254
255
  | 'verification_missing_owners'
@@ -388,6 +389,7 @@ declare module 'stripe' {
388
389
  | 'verification_failed_residential_address'
389
390
  | 'verification_failed_tax_id_match'
390
391
  | 'verification_failed_tax_id_not_issued'
392
+ | 'verification_legal_entity_structure_mismatch'
391
393
  | 'verification_missing_directors'
392
394
  | 'verification_missing_executives'
393
395
  | 'verification_missing_owners'
@@ -217,6 +217,7 @@ declare module 'stripe' {
217
217
  | 'verification_failed_residential_address'
218
218
  | 'verification_failed_tax_id_match'
219
219
  | 'verification_failed_tax_id_not_issued'
220
+ | 'verification_legal_entity_structure_mismatch'
220
221
  | 'verification_missing_directors'
221
222
  | 'verification_missing_executives'
222
223
  | 'verification_missing_owners'
@@ -400,6 +401,7 @@ declare module 'stripe' {
400
401
  | 'verification_failed_residential_address'
401
402
  | 'verification_failed_tax_id_match'
402
403
  | 'verification_failed_tax_id_not_issued'
404
+ | 'verification_legal_entity_structure_mismatch'
403
405
  | 'verification_missing_directors'
404
406
  | 'verification_missing_executives'
405
407
  | 'verification_missing_owners'
@@ -181,7 +181,7 @@ declare module 'stripe' {
181
181
  | 'replaced'
182
182
  | 'undelivered';
183
183
 
184
- type Type = 'cash_advance' | 'flex_loan';
184
+ type Type = 'cash_advance' | 'fixed_term_loan' | 'flex_loan';
185
185
  }
186
186
  }
187
187
  }