stripe 18.1.0-beta.1 → 18.1.0-beta.3

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 (75) hide show
  1. package/CHANGELOG.md +187 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -3
  4. package/VERSION +1 -1
  5. package/cjs/resources/FxQuotes.js +15 -0
  6. package/cjs/resources/Invoices.js +0 -13
  7. package/cjs/resources/PaymentIntents.js +5 -0
  8. package/cjs/resources/Privacy/RedactionJobs.js +46 -0
  9. package/cjs/resources.js +8 -2
  10. package/cjs/stripe.core.js +1 -1
  11. package/esm/resources/FxQuotes.js +12 -0
  12. package/esm/resources/Invoices.js +0 -13
  13. package/esm/resources/PaymentIntents.js +5 -0
  14. package/esm/resources/Privacy/RedactionJobs.js +43 -0
  15. package/esm/resources.js +5 -0
  16. package/esm/stripe.core.js +1 -1
  17. package/package.json +1 -1
  18. package/types/AccountSessionsResource.d.ts +57 -0
  19. package/types/Accounts.d.ts +35 -0
  20. package/types/AccountsResource.d.ts +240 -0
  21. package/types/BalanceSettings.d.ts +5 -1
  22. package/types/BankAccounts.d.ts +2 -0
  23. package/types/Capabilities.d.ts +2 -0
  24. package/types/Capital/FinancingOffers.d.ts +5 -5
  25. package/types/Capital/FinancingSummary.d.ts +6 -6
  26. package/types/Charges.d.ts +5 -0
  27. package/types/ChargesResource.d.ts +20 -0
  28. package/types/Checkout/Sessions.d.ts +23 -1
  29. package/types/Checkout/SessionsResource.d.ts +119 -5
  30. package/types/ConfirmationTokens.d.ts +5 -0
  31. package/types/Coupons.d.ts +33 -0
  32. package/types/CouponsResource.d.ts +21 -0
  33. package/types/EventTypes.d.ts +102 -0
  34. package/types/Events.d.ts +6 -0
  35. package/types/ExternalAccountsResource.d.ts +86 -1
  36. package/types/FxQuotes.d.ts +153 -0
  37. package/types/FxQuotesResource.d.ts +130 -0
  38. package/types/Invoices.d.ts +2 -0
  39. package/types/InvoicesResource.d.ts +5 -76
  40. package/types/LoginLinks.d.ts +2 -1
  41. package/types/PaymentAttemptRecords.d.ts +4 -4
  42. package/types/PaymentIntentAmountDetailsLineItems.d.ts +110 -0
  43. package/types/PaymentIntents.d.ts +54 -0
  44. package/types/PaymentIntentsResource.d.ts +100 -9
  45. package/types/PaymentMethodConfigurations.d.ts +36 -0
  46. package/types/PaymentMethodConfigurationsResource.d.ts +50 -0
  47. package/types/PaymentMethodDomains.d.ts +28 -0
  48. package/types/PaymentMethods.d.ts +5 -0
  49. package/types/PaymentMethodsResource.d.ts +13 -3
  50. package/types/PaymentRecords.d.ts +4 -4
  51. package/types/PaymentRecordsResource.d.ts +2 -2
  52. package/types/Persons.d.ts +90 -1
  53. package/types/Privacy/RedactionJobRootObjects.d.ts +35 -0
  54. package/types/Privacy/RedactionJobValidationErrors.d.ts +30 -0
  55. package/types/Privacy/RedactionJobs.d.ts +43 -0
  56. package/types/Privacy/RedactionJobsResource.d.ts +240 -0
  57. package/types/QuotePreviewInvoices.d.ts +2 -0
  58. package/types/Refunds.d.ts +10 -0
  59. package/types/SetupAttempts.d.ts +1 -0
  60. package/types/SetupIntents.d.ts +1 -0
  61. package/types/SetupIntentsResource.d.ts +24 -9
  62. package/types/Subscriptions.d.ts +4 -0
  63. package/types/SubscriptionsResource.d.ts +8 -0
  64. package/types/Tax/CalculationLineItems.d.ts +1 -1
  65. package/types/Tax/Registrations.d.ts +81 -0
  66. package/types/Tax/RegistrationsResource.d.ts +108 -0
  67. package/types/TestHelpers/ConfirmationTokensResource.d.ts +8 -3
  68. package/types/TokensResource.d.ts +106 -0
  69. package/types/Transfers.d.ts +5 -0
  70. package/types/TransfersResource.d.ts +5 -0
  71. package/types/Treasury/OutboundPaymentsResource.d.ts +5 -0
  72. package/types/V2/EventTypes.d.ts +0 -4
  73. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +1 -1
  74. package/types/WebhookEndpointsResource.d.ts +12 -0
  75. package/types/index.d.ts +11 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,53 @@
1
1
  # Changelog
2
2
 
3
+ ## 18.1.0-beta.3 - 2025-04-17
4
+ * [#2302](https://github.com/stripe/stripe-node/pull/2302) Update generated code for beta
5
+ * Add support for new resources `FxQuote` and `PaymentIntentAmountDetailsLineItem`
6
+ * Add support for `create`, `list`, and `retrieve` methods on resource `FxQuote`
7
+ * Remove support for `attach_payment_intent` method on resource `Invoice`
8
+ * Add support for `registration_date` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company`
9
+ * Add support for `customer_reference` and `order_reference` on `ChargeCaptureParams.payment_details`, `ChargeUpdateParams.payment_details`, `PaymentIntent.payment_details`, `PaymentIntentCaptureParams.payment_details`, `PaymentIntentConfirmParams.payment_details`, `PaymentIntentCreateParams.payment_details`, and `PaymentIntentUpdateParams.payment_details`
10
+ * 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`, `SetupIntentUpdateParams.payment_method_data.billing_details`, and `Treasury.OutboundPaymentCreateParams.destination_payment_method_data.billing_details`
11
+ * Add support for `price_data` on `Checkout.SessionUpdateParams.line_items[]`
12
+ * Change type of `Checkout.SessionUpdateParams.line_items[].quantity` from `longInteger` to `emptyable(longInteger)`
13
+ * Add support for `script` on `CouponCreateParams` and `Coupon`
14
+ * Add support for `type` on `Coupon`
15
+ * Add support for new value `fx_quote.expired` on enum `Event.type`
16
+ * 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`, `QuotePreviewInvoice.payment_settings.payment_method_types`, `Subscription.payment_settings.payment_method_types`, `SubscriptionCreateParams.payment_settings.payment_method_types`, and `SubscriptionUpdateParams.payment_settings.payment_method_types`
17
+ * Add support for `fx_quote` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, `PaymentIntent`, `TransferCreateParams`, and `Transfer`
18
+ * Add support for `discount_amount`, `line_items`, `shipping`, and `tax` on `PaymentIntent.amount_details`
19
+ * Add support for `pix` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
20
+ * Add support for `us_cfpb_data` on `Person` and `TokenCreateParams.person`
21
+ * Add support for `pending_reason` on `Refund`
22
+ * Add support for `aw`, `az`, `bd`, `bj`, `et`, `kg`, `la`, and `ph` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
23
+ * Add support for new value `fx_quote.expired` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
24
+ * Add support for snapshot event `FxQuoteExpiredEvent` with resource `FxQuote`
25
+
26
+ ## 18.1.0-beta.2 - 2025-04-10
27
+ * [#2298](https://github.com/stripe/stripe-node/pull/2298) Update generated code for beta
28
+
29
+ ### Breaking changes
30
+ * Change type of `V2.MoneyManagement.ReceivedDebit.status_transitions` from `an object` to `an object | null`
31
+ * Remove support for values `bank_accounts.local_uk`, `bank_accounts.wire_uk`, `cards_uk`, and `crypto_wallets_v2` from enum `EventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.updated_capability`
32
+
33
+ ### Additions
34
+ * Add support for new resources `Privacy.RedactionJobRootObjects`, `Privacy.RedactionJobValidationError`, and `Privacy.RedactionJob`
35
+ * Add support for `cancel`, `create`, `list`, `retrieve`, `run`, `update`, and `validate` methods on resource `RedactionJob`
36
+ * Add support for `list` and `retrieve` methods on resource `RedactionJobValidationError`
37
+ * Add support for `minority_owned_business_designation` on `Account.business_profile`, `AccountCreateParams.business_profile`, and `AccountUpdateParams.business_profile`
38
+ * 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`
39
+ * Add support for `export_tax_transactions` and `payment_disputes` on `AccountSessionCreateParams.components`
40
+ * 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`
41
+ * Add support for new value `fixed_term_loan` on enum `Capital.FinancingOffer.type`
42
+ * Add support for `wallet_options` on `Checkout.SessionCreateParams` and `Checkout.Session`
43
+ * 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`
44
+ * Add support for `klarna` on `PaymentMethodDomain`
45
+ * Change type of `Tax.CalculationLineItem.reference` from `string | null` to `string`
46
+ * Add support for `in` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
47
+ * 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`
48
+ * [#2300](https://github.com/stripe/stripe-node/pull/2300) Handle external_resource field
49
+ - Changes `external_account` field in `ExternalAccountsCreateParams` from a `string` to a union type.
50
+
3
51
  ## 18.1.0-beta.1 - 2025-04-02
4
52
  * [#2288](https://github.com/stripe/stripe-node/pull/2288) Update generated code for beta
5
53
  This release changes the pinned API version to `2025-03-31.preview`
@@ -84,6 +132,145 @@
84
132
  * Change `OrderCreateParams.payment.settings.payment_method_options.wechat_pay.client` and `OrderUpdateParams.payment.settings.payment_method_options.wechat_pay.client` to be optional
85
133
 
86
134
 
135
+ ## 18.0.0 - 2025-04-01
136
+ * [#2279](https://github.com/stripe/stripe-node/pull/2279) Support for APIs in the new API version 2025-03-31.basil
137
+
138
+ This release changes the pinned API version to `2025-03-31.basil`.
139
+
140
+ ### ⚠️ Breaking changes due to changes in the Stripe API
141
+
142
+ Please review details for the breaking changes and alternatives in the [Stripe API changelog](https://docs.stripe.com/changelog/basil) before upgrading.
143
+
144
+ * Remove support for resources `SubscriptionItemUsageRecordSummary` and `SubscriptionItemUsageRecord`
145
+ * Remove support for `listUpcomingLines` and `retrieveUpcoming` methods on resource `Invoice`
146
+ * Remove support for `createUsageRecord` and `listUsageRecordSummaries` methods on resource `SubscriptionItems`
147
+ * Remove support for `invoice` on `Charge` and `PaymentIntent`
148
+ * Remove support for `shipping_details` on `Checkout.Session`
149
+ * Remove support for `carrier`, `phone`, and `tracking_number` on `Checkout.Session.collected_information.shipping_details`. Make `name` and `address` required instead of optional.
150
+ * Remove support for `refund` on `CreditNoteCreateParams`, `CreditNoteListPreviewLineItemsParams`, `CreditNotePreviewParams`, and `CreditNote`
151
+ * Remove support for `tax_amounts` on `CreditNoteLineItem`, `CreditNote`, and `InvoiceLineItem`
152
+ * Remove support for `amount_excluding_tax` and `unit_amount_excluding_tax` on `CreditNoteLineItem` and `InvoiceLineItem`
153
+ * Remove support for `coupon` on `CustomerCreateParams`, `CustomerUpdateParams`, `InvoiceCreatePreviewParams.schedule_details.phases[]`, `InvoiceCreatePreviewParams`, `SubscriptionCreateParams`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[]`, and `SubscriptionUpdateParams`
154
+ * Remove support for `promotion_code` on `CustomerCreateParams`, `CustomerUpdateParams`, `SubscriptionCreateParams`, and `SubscriptionUpdateParams`
155
+ * Remove support for `price` on `InvoiceAddLinesParams.lines[]`, `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceItem`, `InvoiceLineItemUpdateParams`, `InvoiceLineItem`, and `InvoiceUpdateLinesParams.lines[]. Use `pricing` instead.
156
+ * 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`
157
+ * 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`
158
+ * Remove support for `discount` on `Invoice` and `Subscription`
159
+ * Remove support for `invoice_item`, `proration_details`, `proration`, `tax_rates`, and `type` on `InvoiceLineItem`
160
+ * Remove support for `plan` and `subscription_item` on `InvoiceItem` and `InvoiceLineItem`
161
+ * Remove support for `unit_amount` on `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, and `InvoiceItem`
162
+ * Remove support for `subscription` and `unit_amount_decimal` on `InvoiceItem`
163
+ * Remove support for `naver_pay` on `PaymentMethodUpdateParams`
164
+ * Remove support for `aggregate_usage` on `PlanCreateParams`, `Plan`, `Price.recurring`, and `PriceCreateParams.recurring`
165
+ * Remove support for `current_period_end` and `current_period_start` on `Subscription`
166
+ * `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))
167
+
168
+ ### Changes
169
+
170
+ * Change `Checkout.Session.collected_information` to be required
171
+ * Change `Checkout.Session.collected_information.shipping_details` to be required
172
+ * Change `Checkout.Session.collected_information.shipping_details.address` to be required
173
+ * Change `Checkout.Session.collected_information.shipping_details.name` to be required
174
+ * 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
175
+ * Change `political_exposure` on resources `Person` and `Token` and params `Token.CreateParams` from string to enum("existing" | "none")
176
+
177
+ ### Additions
178
+
179
+ * Add support for new resource `InvoicePayment`
180
+ * Add support for `list` and `retrieve` methods on resource `InvoicePayment`
181
+ * Add support for `billie_payments`, `nz_bank_account_becs_debit_payments`, and `satispay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
182
+ * Add support for `hosted_payment_method_save` on `Account.settings.invoices` and `AccountUpdateParams.settings.invoices`
183
+ * Add support for `invoices` on `AccountCreateParams.settings`
184
+ * 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`
185
+ * 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`
186
+ * Add support for new values `stripe_balance_payment_debit_reversal` and `stripe_balance_payment_debit` on enum `BalanceTransaction.type`
187
+ * Add support for new value `last` on enums `Billing.Meter.default_aggregation.formula` and `Billing.MeterCreateParams.default_aggregation.formula`
188
+ * Add support for `presentment_details` on `Charge`, `Checkout.Session`, `PaymentIntent`, and `Refund`
189
+ * 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`
190
+ * 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`
191
+ * Add support for `optional_items` on `Checkout.SessionCreateParams`, `Checkout.Session`, `PaymentLinkCreateParams`, and `PaymentLink`
192
+ * Add support for `permissions` on `Checkout.SessionCreateParams` and `Checkout.Session`
193
+ * Add support for new values `billie` and `satispay` on enum `Checkout.SessionCreateParams.payment_method_types`
194
+ * Add support for new value `custom` on enums `Checkout.Session.ui_mode` and `Checkout.SessionCreateParams.ui_mode`
195
+ * Add support for `shipping_options` on `Checkout.SessionUpdateParams`
196
+ * 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`
197
+ * Add support for `buyer_id` on `ConfirmationToken.payment_method_preview.naver_pay`, `CustomerPaymentMethod.naver_pay`, and `PaymentMethod.naver_pay`
198
+ * Add support for new values `billie`, `nz_bank_account`, and `satispay` on enums `ConfirmationToken.payment_method_preview.type`, `CustomerPaymentMethod.type`, and `PaymentMethod.type`
199
+ * Add support for `refunds` on `CreditNoteCreateParams`, `CreditNoteListPreviewLineItemsParams`, `CreditNotePreviewParams`, and `CreditNote`
200
+ * Add support for `total_taxes` on `CreditNote` and `Invoice`
201
+ * Add support for `taxes` on `CreditNoteLineItem` and `InvoiceLineItem`
202
+ * Add support for `checkout_session` on `CustomerBalanceTransaction`
203
+ * Add support for new values `checkout_session_subscription_payment_canceled` and `checkout_session_subscription_payment` on enum `CustomerBalanceTransaction.type`
204
+ * Add support for new values `billie`, `nz_bank_account`, and `satispay` on enums `CustomerPaymentMethodListParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
205
+ * Add support for new value `invoice.overpaid` on enum `Event.type`
206
+ * 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`
207
+ * Add support for `pricing` on `InvoiceAddLinesParams.lines[]`, `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceItem`, `InvoiceLineItemUpdateParams`, `InvoiceLineItem`, and `InvoiceUpdateLinesParams.lines[]`
208
+ * Add support for `taxability_reason` on `InvoiceAddLinesParams.lines[].tax_amounts[]`, `InvoiceLineItemUpdateParams.tax_amounts[]`, and `InvoiceUpdateLinesParams.lines[].tax_amounts[]`
209
+ * 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`
210
+ * Add support for `amount_overpaid`, `confirmation_secret`, and `payments` on `Invoice`
211
+ * Add support for `parent` on `InvoiceItem`, `InvoiceLineItem`, and `Invoice`
212
+ * Add support for new value `expired` on enums `Issuing.Authorization.status` and `Issuing.AuthorizationListParams.status`
213
+ * Add support for new value `network_fallback` on enum `Issuing.Authorization.request_history[].reason`
214
+ * Add support for `naver_pay` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details`
215
+ * 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`
216
+ * Add support for new value `expired` on enum `PaymentIntent.cancellation_reason`
217
+ * 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`
218
+ * Add support for new values `billie` and `satispay` on enums `PaymentLink.payment_method_types`, `PaymentLinkCreateParams.payment_method_types`, and `PaymentLinkUpdateParams.payment_method_types`
219
+ * Add support for `nz_bank_transfer` on `Refund.destination_details`
220
+ * Add support for new value `canceled` on enum `Review.closed_reason`
221
+ * Add support for `current_period_end` and `current_period_start` on `SubscriptionItem`
222
+ * Add support for `wifi` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
223
+ * Add support for new value `invoice.overpaid` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
224
+ * Add support for new values `2025-03-01.dashboard` and `2025-03-31.basil` on enum `WebhookEndpointCreateParams.api_version`
225
+
226
+ ### ⚠️ Other Breaking changes in the SDK
227
+ * [#2277](https://github.com/stripe/stripe-node/pull/2277) Swap Stripe.webhooks from a factory function to a static property
228
+ - `Stripe.webhooks` and `Stripe().webhooks` are no longer functions (just plain objects)
229
+ - if you were already treating those properties as plain objects (per the types), then you can ignore this change
230
+ - if you were calling `Stripe.webhooks().someMethod()`, you should use `Stripe.webhooks.someMethod()` instead
231
+ - there shouldn't be user-facing functionality changing, just a slight breaking change in our internal organization
232
+ * [#2286](https://github.com/stripe/stripe-node/pull/2286) Remove types that were marked as deprecated in Feb 2024
233
+ * Remove `AccountDebitSource` in favor of `Account`
234
+ * Remove `CapabilityListParams` in favor of `AccountListCapabilitiesParams`
235
+ * Remove `CapabilityRetrieveParams` in favor of `AccountRetrieveCapabilityParams`
236
+ * Remove `CapabilityUpdateParams` in favor of `AccountUpdateCapabilityParams`
237
+ * Remove `CashBalanceRetrieveParams` in favor of `CustomerRetrieveCashBalanceParams`
238
+ * Remove `CashBalanceUpdateParams` in favor of `CustomerUpdateCashBalanceParams`
239
+ * Remove `CreditNoteLineItemListParams` in favor of `CreditNoteListLineItemsParams`
240
+ * Remove `CustomerBalanceTransactionCreateParams` in favor of `CustomerCreateBalanceTransactionParams`
241
+ * Remove `CustomerBalanceTransactionListParams` in favor of `CustomerListBalanceTransactionsParams`
242
+ * Remove `CustomerBalanceTransactionRetrieveParams` in favor of `CustomerRetrieveBalanceTransactionParams`
243
+ * Remove `CustomerBalanceTransactionUpdateParams` in favor of `CustomerUpdateBalanceTransactionParams`
244
+ * Remove `CustomerCashBalanceTransactionListParams` in favor of `CustomerListCashBalanceTransactionsParams`
245
+ * Remove `CustomerCashBalanceTransactionRetrieveParams` in favor of `CustomerRetrieveCashBalanceTransactionParams`
246
+ * Remove `CustomerSourceCreateParams` in favor of `CustomerCreateSourceParams`
247
+ * Remove `CustomerSourceDeleteParams` in favor of `CustomerDeleteSourceParams`
248
+ * Remove `CustomerSourceListParams` in favor of `CustomerListSourcesParams`
249
+ * Remove `CustomerSourceRetrieveParams` in favor of `CustomerRetrieveSourceParams`
250
+ * Remove `CustomerSourceUpdateParams` in favor of `CustomerUpdateSourceParams`
251
+ * Remove `CustomerSourceVerifyParams` in favor of `CustomerVerifySourceParams`
252
+ * Remove `ExternalAccountCreateParams` in favor of `AccountCreateExternalAccountParams`
253
+ * Remove `ExternalAccountDeleteParams` in favor of `AccountDeleteExternalAccountParams`
254
+ * Remove `ExternalAccountListParams` in favor of `AccountListExternalAccountsParams`
255
+ * Remove `ExternalAccountRetrieveParams` in favor of `AccountRetrieveExternalAccountParams`
256
+ * Remove `ExternalAccountUpdateParams` in favor of `AccountUpdateExternalAccountParams`
257
+ * Remove `FeeRefundCreateParams` in favor of `ApplicationFeeCreateRefundParams`
258
+ * Remove `FeeRefundListParams` in favor of `ApplicationFeeListRefundsParams`
259
+ * Remove `FeeRefundRetrieveParams` in favor of `ApplicationFeeRetrieveRefundParams`
260
+ * Remove `FeeRefundUpdateParams` in favor of `ApplicationFeeUpdateRefundParams`
261
+ * Remove `InvoiceLineItemListParams` in favor of `InvoiceListLineItemsParams`
262
+ * Remove `InvoiceLineItemUpdateParams` in favor of `InvoiceUpdateLineItemParams`
263
+ * Remove `LoginLinkCreateParams` in favor of `AccountCreateLoginLinkParams`
264
+ * Remove `PersonCreateParams` in favor of `AccountCreatePersonParams`
265
+ * Remove `PersonDeleteParams` in favor of `AccountDeletePersonParams`
266
+ * Remove `PersonListParams` in favor of `AccountListPersonsParams`
267
+ * Remove `PersonRetrieveParams` in favor of `AccountRetrievePersonParams`
268
+ * Remove `PersonUpdateParams` in favor of `AccountUpdatePersonParams`
269
+ * Remove `TransferReversalCreateParams` in favor of `TransferCreateReversalParams`
270
+ * Remove `TransferReversalListParams` in favor of `TransferListReversalsParams`
271
+ * Remove `TransferReversalRetrieveParams` in favor of `TransferRetrieveReversalParams`
272
+ * Remove `TransferReversalUpdateParams` in favor of `TransferUpdateReversalParams`
273
+
87
274
  ## 17.8.0-beta.1 - 2025-03-18
88
275
  * [#2271](https://github.com/stripe/stripe-node/pull/2271) Beta SDK updates between Open API versions 1473 and 1505
89
276
 
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1648
1
+ v1697
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.3
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FxQuotes = void 0;
5
+ const StripeResource_js_1 = require("../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.FxQuotes = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({ method: 'POST', fullPath: '/v1/fx_quotes' }),
9
+ retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/fx_quotes/{id}' }),
10
+ list: stripeMethod({
11
+ method: 'GET',
12
+ fullPath: '/v1/fx_quotes',
13
+ methodType: 'list',
14
+ }),
15
+ });
@@ -22,10 +22,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
22
22
  method: 'POST',
23
23
  fullPath: '/v1/invoices/{invoice}/attach_payment',
24
24
  }),
25
- attachPaymentIntent: stripeMethod({
26
- method: 'POST',
27
- fullPath: '/v1/invoices/{invoice}/attach_payment_intent',
28
- }),
29
25
  createPreview: stripeMethod({
30
26
  method: 'POST',
31
27
  fullPath: '/v1/invoices/create_preview',
@@ -39,11 +35,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
39
35
  fullPath: '/v1/invoices/{invoice}/lines',
40
36
  methodType: 'list',
41
37
  }),
42
- listPayments: stripeMethod({
43
- method: 'GET',
44
- fullPath: '/v1/invoices/{invoice}/payments',
45
- methodType: 'list',
46
- }),
47
38
  markUncollectible: stripeMethod({
48
39
  method: 'POST',
49
40
  fullPath: '/v1/invoices/{invoice}/mark_uncollectible',
@@ -53,10 +44,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
53
44
  method: 'POST',
54
45
  fullPath: '/v1/invoices/{invoice}/remove_lines',
55
46
  }),
56
- retrievePayment: stripeMethod({
57
- method: 'GET',
58
- fullPath: '/v1/invoices/{invoice}/payments/{invoice_payment}',
59
- }),
60
47
  search: stripeMethod({
61
48
  method: 'GET',
62
49
  fullPath: '/v1/invoices/search',
@@ -43,6 +43,11 @@ exports.PaymentIntents = StripeResource_js_1.StripeResource.extend({
43
43
  method: 'POST',
44
44
  fullPath: '/v1/payment_intents/{intent}/increment_authorization',
45
45
  }),
46
+ listAmountDetailsLineItems: stripeMethod({
47
+ method: 'GET',
48
+ fullPath: '/v1/payment_intents/{intent}/amount_details_line_items',
49
+ methodType: 'list',
50
+ }),
46
51
  search: stripeMethod({
47
52
  method: 'GET',
48
53
  fullPath: '/v1/payment_intents/search',
@@ -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
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
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;
4
+ 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.FxQuotes = exports.Files = exports.FileLinks = exports.ExternalAccounts = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.BalanceSettings = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountNotices = exports.AccountLinks = exports.Account = void 0;
5
+ exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Privacy = exports.Issuing = exports.Identity = exports.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 = exports.Sources = 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");
@@ -157,6 +158,8 @@ var FileLinks_js_1 = require("./resources/FileLinks.js");
157
158
  Object.defineProperty(exports, "FileLinks", { enumerable: true, get: function () { return FileLinks_js_1.FileLinks; } });
158
159
  var Files_js_1 = require("./resources/Files.js");
159
160
  Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return Files_js_1.Files; } });
161
+ var FxQuotes_js_1 = require("./resources/FxQuotes.js");
162
+ Object.defineProperty(exports, "FxQuotes", { enumerable: true, get: function () { return FxQuotes_js_1.FxQuotes; } });
160
163
  var InvoiceItems_js_1 = require("./resources/InvoiceItems.js");
161
164
  Object.defineProperty(exports, "InvoiceItems", { enumerable: true, get: function () { return InvoiceItems_js_1.InvoiceItems; } });
162
165
  var InvoiceRenderingTemplates_js_1 = require("./resources/InvoiceRenderingTemplates.js");
@@ -290,6 +293,9 @@ exports.Issuing = (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
290
293
  Tokens: Tokens_js_1.Tokens,
291
294
  Transactions: Transactions_js_4.Transactions,
292
295
  });
296
+ exports.Privacy = (0, ResourceNamespace_js_1.resourceNamespace)('privacy', {
297
+ RedactionJobs: RedactionJobs_js_1.RedactionJobs,
298
+ });
293
299
  exports.Radar = (0, ResourceNamespace_js_1.resourceNamespace)('radar', {
294
300
  EarlyFraudWarnings: EarlyFraudWarnings_js_1.EarlyFraudWarnings,
295
301
  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.3';
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,12 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const FxQuotes = StripeResource.extend({
5
+ create: stripeMethod({ method: 'POST', fullPath: '/v1/fx_quotes' }),
6
+ retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/fx_quotes/{id}' }),
7
+ list: stripeMethod({
8
+ method: 'GET',
9
+ fullPath: '/v1/fx_quotes',
10
+ methodType: 'list',
11
+ }),
12
+ });
@@ -19,10 +19,6 @@ export const Invoices = StripeResource.extend({
19
19
  method: 'POST',
20
20
  fullPath: '/v1/invoices/{invoice}/attach_payment',
21
21
  }),
22
- attachPaymentIntent: stripeMethod({
23
- method: 'POST',
24
- fullPath: '/v1/invoices/{invoice}/attach_payment_intent',
25
- }),
26
22
  createPreview: stripeMethod({
27
23
  method: 'POST',
28
24
  fullPath: '/v1/invoices/create_preview',
@@ -36,11 +32,6 @@ export const Invoices = StripeResource.extend({
36
32
  fullPath: '/v1/invoices/{invoice}/lines',
37
33
  methodType: 'list',
38
34
  }),
39
- listPayments: stripeMethod({
40
- method: 'GET',
41
- fullPath: '/v1/invoices/{invoice}/payments',
42
- methodType: 'list',
43
- }),
44
35
  markUncollectible: stripeMethod({
45
36
  method: 'POST',
46
37
  fullPath: '/v1/invoices/{invoice}/mark_uncollectible',
@@ -50,10 +41,6 @@ export const Invoices = StripeResource.extend({
50
41
  method: 'POST',
51
42
  fullPath: '/v1/invoices/{invoice}/remove_lines',
52
43
  }),
53
- retrievePayment: stripeMethod({
54
- method: 'GET',
55
- fullPath: '/v1/invoices/{invoice}/payments/{invoice_payment}',
56
- }),
57
44
  search: stripeMethod({
58
45
  method: 'GET',
59
46
  fullPath: '/v1/invoices/search',
@@ -40,6 +40,11 @@ export const PaymentIntents = StripeResource.extend({
40
40
  method: 'POST',
41
41
  fullPath: '/v1/payment_intents/{intent}/increment_authorization',
42
42
  }),
43
+ listAmountDetailsLineItems: stripeMethod({
44
+ method: 'GET',
45
+ fullPath: '/v1/payment_intents/{intent}/amount_details_line_items',
46
+ methodType: 'list',
47
+ }),
43
48
  search: stripeMethod({
44
49
  method: 'GET',
45
50
  fullPath: '/v1/payment_intents/search',
@@ -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';
@@ -129,6 +130,7 @@ export { ExchangeRates } from './resources/ExchangeRates.js';
129
130
  export { ExternalAccounts } from './resources/ExternalAccounts.js';
130
131
  export { FileLinks } from './resources/FileLinks.js';
131
132
  export { Files } from './resources/Files.js';
133
+ export { FxQuotes } from './resources/FxQuotes.js';
132
134
  export { InvoiceItems } from './resources/InvoiceItems.js';
133
135
  export { InvoiceRenderingTemplates } from './resources/InvoiceRenderingTemplates.js';
134
136
  export { Invoices } from './resources/Invoices.js';
@@ -226,6 +228,9 @@ export const Issuing = resourceNamespace('issuing', {
226
228
  Tokens: IssuingTokens,
227
229
  Transactions: IssuingTransactions,
228
230
  });
231
+ export const Privacy = resourceNamespace('privacy', {
232
+ RedactionJobs: PrivacyRedactionJobs,
233
+ });
229
234
  export const Radar = resourceNamespace('radar', {
230
235
  EarlyFraudWarnings: RadarEarlyFraudWarnings,
231
236
  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.3';
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.3",
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.