stripe/stripe-node (stripe)
### [`v17.3.1`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1731---2024-11-01)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v17.3.0...v17.3.1)
- [#2218](https://redirect.github.com/stripe/stripe-node/pull/2218) Fixed a bug where `latestapiversion` was not updated to `2024-10-28.acacia` in the last release.
### [`v17.3.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1730---2024-10-29)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v17.2.1...v17.3.0)
- [#2204](https://redirect.github.com/stripe/stripe-node/pull/2204) This release changes the pinned API version to `2024-10-28.acacia`.
- Add support for new resource `V2.EventDestinations`
- Add support for `create`, `retrieve`, `update`, `list`, `del`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations`
- Add support for `submit_card` test helper method on resource `Issuing.Card`
- Add support for `groups` on `AccountCreateParams`, `AccountUpdateParams`, and `Account`
- Add support for `alma_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, and `samsung_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
- Add support for `disable_stripe_user_authentication` on `AccountSession.components.account_management.features`, `AccountSession.components.account_onboarding.features`, `AccountSession.components.balances.features`, `AccountSession.components.notification_banner.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.account_management.features`, `AccountSessionCreateParams.components.account_onboarding.features`, `AccountSessionCreateParams.components.balances.features`, `AccountSessionCreateParams.components.notification_banner.features`, and `AccountSessionCreateParams.components.payouts.features`
- Add support for `schedule_at_period_end` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update`
- Change `BillingPortal.ConfigurationCreateParams.business_profile` and `Refund.next_action.display_details` to be optional
- Add support for `alma` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `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`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
- Add support for `kakao_pay` and `kr_card` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `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`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
- Add support for `naver_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `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`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
- Add support for `payco` and `samsung_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `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`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
- Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
- Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
- Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` 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`
- Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
- Add support for new value `auto` on enum `CustomerUpdateParams.tax.validate_location`
- Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
- Add support for `enhanced_evidence` on `Dispute.evidence` and `DisputeUpdateParams.evidence`
- Add support for `enhanced_eligibility_types` on `Dispute`
- Add support for `enhanced_eligibility` on `Dispute.evidence_details`
- Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enum `Event.type`
- Add support for `metadata` on `Forwarding.RequestCreateParams` and `Forwarding.Request`
- Add support for `automatically_finalizes_at` on `InvoiceCreateParams` and `InvoiceUpdateParams`
- Add support for new values `jp_credit_transfer`, `kakao_pay`, `kr_card`, `naver_pay`, and `payco` 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[]`
- Add support for new value `retail_delivery_fee` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type`
- Add support for new value `alma` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
- Add support for `amazon_pay` on `PaymentMethodDomain`
- Change type of `Refund.next_action.display_details` from `RefundNextActionDisplayDetails | null` to `RefundNextActionDisplayDetails`
- Add support for `flat_amount` and `rate_type` on `Tax.Calculation.tax_breakdown[].tax_rate_details` and `TaxRate`
- Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
- Add support for new value `state_retail_delivery_fee` on enums `Tax.Registration.country_options.us.type` and `Tax.RegistrationCreateParams.country_options.us.type`
- Add support for `pln` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping`
- Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
- Add support for new value `2024-10-28.acacia` on enum `WebhookEndpointCreateParams.api_version`
### [`v17.2.1`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1721---2024-10-18)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v17.2.0...v17.2.1)
- [#2210](https://redirect.github.com/stripe/stripe-node/pull/2210) update object tags for meter-related classes
- fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server.
- [#2208](https://redirect.github.com/stripe/stripe-node/pull/2208) Update signature verification docs link
### [`v17.2.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1720---2024-10-09)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v17.1.0...v17.2.0)
- [#2201](https://redirect.github.com/stripe/stripe-node/pull/2201) Add fetchRelatedObject to V2 Events if needed
- `fetchRelatedObject` is added to events retrieved using `stripe.v2.core.events` and can be used to easily fetch the Stripe object related to a retrieved event
### [`v17.1.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1710---2024-10-03)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v17.0.0...v17.1.0)
- [#2199](https://redirect.github.com/stripe/stripe-node/pull/2199) Update generated code
- Remove the support for resource `Margin` that was accidentally made public in the last release
### [`v17.0.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1700---2024-10-01)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.12.0...v17.0.0)
- [#2192](https://redirect.github.com/stripe/stripe-node/pull/2192) Support for APIs in the new API version 2024-09-30.acacia
This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-09-30.acacia) and carefully review the API changes before upgrading.
##### ⚠️ Breaking changes due to changes in the Stripe API
- Rename `usage_threshold_config` to `usage_threshold` on `Billing.AlertCreateParams` and `Billing.Alert`
- Remove support for `filter` on `Billing.AlertCreateParams` and `Billing.Alert`. Use the filters on the `usage_threshold` instead
- Remove support for `customer_consent_collected` on `Terminal.ReaderProcessSetupIntentParams`.
##### ⚠️ Other Breaking changes in the SDK
- Adjusted default values around reties for HTTP requests. You can use the old defaults by setting them explicitly. New values are:
- max retries: `1` -> `2`
- max timeout (seconds): `2` -> `5`
##### Additions
- Add support for `custom_unit_amount` on `ProductCreateParams.default_price_data`
- Add support for `allow_redisplay` on `Terminal.ReaderProcessPaymentIntentParams.process_config` and `Terminal.ReaderProcessSetupIntentParams`
- Add support for new value `international_transaction` on enum `Treasury.ReceivedCredit.failure_code`
- Add support for new value `2024-09-30.acacia` on enum `WebhookEndpointCreateParams.api_version`
- Add support for new Usage Billing APIs `Billing.MeterEvent`, `Billing.MeterEventAdjustments`, `Billing.MeterEventSession`, `Billing.MeterEventStream` and the new Events API `Core.Events` in the [v2 namespace ](https://docs.corp.stripe.com/api-v2-overview)
- Add method `parseThinEvent()` on the `Stripe` class to parse [thin events](https://docs.corp.stripe.com/event-destinations#events-overview).
- Add method [rawRequest()](https://redirect.github.com/stripe/stripe-node/tree/master?tab=readme-ov-file#custom-requests) on the `Stripe` class that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK.
##### Changes
- Change `BillingPortal.ConfigurationCreateParams.features.subscription_update.default_allowed_updates` and `BillingPortal.ConfigurationCreateParams.features.subscription_update.products` to be optional
### [`v16.12.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#16120---2024-09-18)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.11.0...v16.12.0)
- [#2177](https://redirect.github.com/stripe/stripe-node/pull/2177) Update generated code
- Add support for new value `international_transaction` on enum `Treasury.ReceivedDebit.failure_code`
- [#2175](https://redirect.github.com/stripe/stripe-node/pull/2175) Update generated code
- Add support for new value `verification_supportability` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
- Add support for new value `terminal_reader_invalid_location_for_activation` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
- Add support for `payer_details` on `Charge.payment_method_details.klarna`
- Add support for `amazon_pay` on `Dispute.payment_method_details`
- Add support for new value `amazon_pay` on enum `Dispute.payment_method_details.type`
- Add support for `automatically_finalizes_at` on `Invoice`
- Add support for `state_sales_tax` on `Tax.Registration.country_options.us` and `Tax.RegistrationCreateParams.country_options.us`
### [`v16.11.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#16110---2024-09-12)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.10.0...v16.11.0)
- [#2171](https://redirect.github.com/stripe/stripe-node/pull/2171) Update generated code
- Add support for new resource `InvoiceRenderingTemplate`
- Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `InvoiceRenderingTemplate`
- Add support for `required` on `Checkout.Session.tax_id_collection`, `Checkout.SessionCreateParams.tax_id_collection`, `PaymentLink.tax_id_collection`, `PaymentLinkCreateParams.tax_id_collection`, and `PaymentLinkUpdateParams.tax_id_collection`
- Add support for `template` on `Customer.invoice_settings.rendering_options`, `CustomerCreateParams.invoice_settings.rendering_options`, `CustomerUpdateParams.invoice_settings.rendering_options`, `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering`
- Add support for `template_version` on `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering`
- Add support for new value `submitted` on enum `Issuing.Card.shipping.status`
- Change `TestHelpers.TestClock.status_details` to be required
- [#2172](https://redirect.github.com/stripe/stripe-node/pull/2172) Null out empty data sent to GET/DELETE APIs
### [`v16.10.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#16100---2024-09-05)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.9.0...v16.10.0)
- [#2158](https://redirect.github.com/stripe/stripe-node/pull/2158) Update generated code
- Add support for `subscription_item` and `subscription` on `Billing.AlertCreateParams.filter`
- Change `Terminal.ReaderProcessSetupIntentParams.customer_consent_collected` to be optional
### [`v16.9.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1690---2024-08-29)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.8.0...v16.9.0)
- [#2163](https://redirect.github.com/stripe/stripe-node/pull/2163) Generate SDK for OpenAPI spec version 1230
- Change `AccountLinkCreateParams.collection_options.fields` and `LineItem.description` to be optional
- Add support for new value `hr_oib` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
- Add support for new value `hr_oib` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
- Add support for new value `issuing_regulatory_reporting` on enums `File.purpose` and `FileListParams.purpose`
- Add support for new value `issuing_regulatory_reporting` on enum `FileCreateParams.purpose`
- Change `Issuing.Card.shipping.address_validation` to be required
- Add support for `status_details` on `TestHelpers.TestClock`
### [`v16.8.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1680---2024-08-15)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.7.0...v16.8.0)
- [#2155](https://redirect.github.com/stripe/stripe-node/pull/2155) Update generated code
- Add support for `authorization_code` on `Charge.payment_method_details.card`
- Add support for `wallet` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present`
- Add support for `mandate_options` on `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, and `PaymentIntentUpdateParams.payment_method_options.bacs_debit`
- Add support for `bacs_debit` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options`
- Add support for `chips` on `Treasury.OutboundPayment.tracking_details.us_domestic_wire`, `Treasury.OutboundPaymentUpdateParams.testHelpers.tracking_details.us_domestic_wire`, `Treasury.OutboundTransfer.tracking_details.us_domestic_wire`, and `Treasury.OutboundTransferUpdateParams.testHelpers.tracking_details.us_domestic_wire`
- Change type of `Treasury.OutboundPayment.tracking_details.us_domestic_wire.imad` and `Treasury.OutboundTransfer.tracking_details.us_domestic_wire.imad` from `string` to `string | null`
### [`v16.7.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1670---2024-08-08)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.6.0...v16.7.0)
- [#2147](https://redirect.github.com/stripe/stripe-node/pull/2147) Update generated code
- Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Billing.Alert`
- Add support for `retrieve` method on resource `Tax.Calculation`
- Add support for new value `invalid_mandate_reference_prefix_format` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
- Add support for `type` on `Charge.payment_method_details.card_present.offline`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present.offline`, `PaymentMethod.card.generated_from.payment_method_details.card_present.offline`, and `SetupAttempt.payment_method_details.card_present.offline`
- Add support for `offline` on `ConfirmationToken.payment_method_preview.card_present` and `PaymentMethod.card_present`
- Add support for `related_customer` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession`
- Change `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.count`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.count`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.count`, and `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.interval` to be optional
- Add support for new value `girocard` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network`
- Add support for new value `financial_addresses.aba.forwarding` on enums `Treasury.FinancialAccount.active_features[]`, `Treasury.FinancialAccount.pending_features[]`, and `Treasury.FinancialAccount.restricted_features[]`
### [`v16.6.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1660---2024-08-01)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.5.0...v16.6.0)
- [#2144](https://redirect.github.com/stripe/stripe-node/pull/2144) Update generated code
- Add support for new resources `Billing.AlertTriggered` and `Billing.Alert`
- Add support for new value `charge_exceeds_transaction_limit` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
- ⚠️ Remove support for `authorization_code` on `Charge.payment_method_details.card`. This was accidentally released last week.
- Add support for new value `billing.alert.triggered` on enum `Event.type`
- Add support for new value `billing.alert.triggered` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
### [`v16.5.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1650---2024-07-25)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.4.0...v16.5.0)
- [#2143](https://redirect.github.com/stripe/stripe-node/pull/2143) Update generated code
- Add support for `tax_registrations` and `tax_settings` on `AccountSession.components` and `AccountSessionCreateParams.components`
- [#2140](https://redirect.github.com/stripe/stripe-node/pull/2140) Update generated code
- Add support for `update` method on resource `Checkout.Session`
- Add support for `transaction_id` on `Charge.payment_method_details.affirm`
- Add support for `buyer_id` on `Charge.payment_method_details.blik`
- Add support for `authorization_code` on `Charge.payment_method_details.card`
- Add support for `brand_product` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present`
- Add support for `network_transaction_id` on `Charge.payment_method_details.card_present`, `Charge.payment_method_details.interac_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card.generated_from.payment_method_details.card_present`
- Add support for `case_type` on `Dispute.payment_method_details.card`
- Add support for new values `invoice.overdue` and `invoice.will_be_due` on enum `Event.type`
- Add support for `twint` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
- Add support for new values `invoice.overdue` and `invoice.will_be_due` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
### [`v16.4.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1640---2024-07-18)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.2.0...v16.4.0)
- [#2138](https://redirect.github.com/stripe/stripe-node/pull/2138) Update generated code
- Add support for `customer` on `ConfirmationToken.payment_method_preview`
- Add support for new value `issuing_dispute.funds_rescinded` on enum `Event.type`
- Add support for new value `multibanco` 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[]`
- Add support for new value `stripe_s700` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type`
- Add support for new value `issuing_dispute.funds_rescinded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
- [#2136](https://redirect.github.com/stripe/stripe-node/pull/2136) Update changelog
### [`v16.2.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1620---2024-07-05)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.1.0...v16.2.0)
- [#2125](https://redirect.github.com/stripe/stripe-node/pull/2125) Update generated code
- Add support for `add_lines`, `remove_lines`, and `update_lines` methods on resource `Invoice`
- Add support for new value `payment_intent_fx_quote_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
- Add support for `posted_at` on `Tax.TransactionCreateFromCalculationParams` and `Tax.Transaction`
### [`v16.1.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1610---2024-06-27)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.0.0...v16.1.0)
- [#2120](https://redirect.github.com/stripe/stripe-node/pull/2120) Update generated code
- Add support for `filters` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntent.payment_method_options.us_bank_account.financial_connections`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`
- Add support for `email_type` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, and `CreditNotePreviewParams`
- Add support for `account_subcategories` on `FinancialConnections.Session.filters` and `FinancialConnections.SessionCreateParams.filters`
- Add support for new values `multibanco`, `twint`, and `zip` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
- Add support for `reboot_window` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
### [`v16.0.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1600---2024-06-24)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.12.0...v16.0.0)
- [#2113](https://redirect.github.com/stripe/stripe-node/pull/2113)
This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading.
##### ⚠️ Breaking changes
* Remove the unused resource `PlatformTaxFee`
* Rename `volume_decimal` to `quantity_decimal` on
* `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`,
* `Issuing.Transaction.purchase_details.fuel`,
* `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and
* `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel`
* `Capabilities.Requirements.disabled_reason` and `Capabilities.Requirements.disabled_reason` are now enums with the below values
* `other`
* `paused.inactivity`
* `pending.onboarding`
* `pending.review`
* `platform_disabled`
* `platform_paused`
* `rejected.inactivity`
* `rejected.other`
* `rejected.unsupported_business`
* `requirements.fields_needed`
##### Additions
* Add support for new values `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, and `pound` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit`
* Add support for new values `card_canceled`, `card_expired`, `cardholder_blocked`, `insecure_authorization_method`, and `pin_blocked` on enum `Issuing.Authorization.request_history[].reason`
- Add support for `finalize_amount` test helper method on resource `Issuing.Authorization`
- Add support for new value `ch_uid` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
- Add support for new value `ch_uid` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
- Add support for `fleet` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details`, `Issuing.AuthorizationCreateParams.testHelpers`, `Issuing.Authorization`, `Issuing.Transaction.purchase_details`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details`
- Add support for `fuel` on `Issuing.AuthorizationCreateParams.testHelpers` and `Issuing.Authorization`
- Add support for `industry_product_code` and `quantity_decimal` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, `Issuing.Transaction.purchase_details.fuel`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel`
- Add support for new value `2024-06-20` on enum `WebhookEndpointCreateParams.api_version`
- [#2118](https://redirect.github.com/stripe/stripe-node/pull/2118) Use worker module in Bun
### [`v15.12.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#15120---2024-06-17)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.11.0...v15.12.0)
- [#2109](https://redirect.github.com/stripe/stripe-node/pull/2109) Update generated code
- Add support for new value `mobilepay` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
- Add support for `tax_id_collection` on `PaymentLinkUpdateParams`
- [#2111](https://redirect.github.com/stripe/stripe-node/pull/2111) Where params are union of types, merge the types instead of having numbered suffixes in type names
- Change type of `PaymentIntentConfirmParams.mandate_data` from `Stripe.Emptyable` to `Stripe.Emptyable` where the new MandateData is a union of all the properties of MandateData1 and MandateData2
- Change type of `PaymentMethodCreateParams.card` from `PaymentMethodCreateParams.Card1 | PaymentMethodCreateParams.Card2` to `PaymentMethodCreateParams.Card` where the new Card is a union of all the properties of Card1 and Card2
- Change type of `SetupIntentConfirmParams.mandate_data` from `Stripe.Emptyable` to `Stripe.Emptyable` where the new MandateData is a union of all the properties of MandateData1 and MandateData2
### [`v15.11.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#15110---2024-06-13)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.10.0...v15.11.0)
- [#2102](https://redirect.github.com/stripe/stripe-node/pull/2102) Update generated code
- Add support for `multibanco_payments` and `twint_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
- Add support for `twint` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `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`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
- Add support for `multibanco` on `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `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`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
- Add support for new values `multibanco` and `twint` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
- Add support for new value `de_stn` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
- Add support for new values `multibanco` and `twint` 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`
- Add support for new values `multibanco` and `twint` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
- Add support for new value `de_stn` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
- Add support for `multibanco_display_details` on `PaymentIntent.next_action`
- Add support for `invoice_settings` on `Subscription`
### [`v15.10.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#15100---2024-06-06)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.9.0...v15.10.0)
- [#2101](https://redirect.github.com/stripe/stripe-node/pull/2101) Update generated code
- Add support for `gb_bank_transfer_payments`, `jp_bank_transfer_payments`, `mx_bank_transfer_payments`, `sepa_bank_transfer_payments`, and `us_bank_transfer_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
- Add support for new value `swish` 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[]`
### [`v15.9.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1590---2024-05-30)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.8.0...v15.9.0)
- [#2095](https://redirect.github.com/stripe/stripe-node/pull/2095) Update generated code
- Add support for new value `verification_requires_additional_proof_of_registration` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code`
- Add support for `default_value` on `Checkout.Session.custom_fields[].dropdown`, `Checkout.Session.custom_fields[].numeric`, `Checkout.Session.custom_fields[].text`, `Checkout.SessionCreateParams.custom_fields[].dropdown`, `Checkout.SessionCreateParams.custom_fields[].numeric`, and `Checkout.SessionCreateParams.custom_fields[].text`
- Add support for `generated_from` on `ConfirmationToken.payment_method_preview.card` and `PaymentMethod.card`
- Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enum `Event.type`
- Change `Issuing.Card.personalization_design` and `Issuing.PhysicalBundle.features` to be required
- Add support for new values `en-RO` and `ro-RO` on enums `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`
- Add support for new values `issuing_personalization_design.activated`, `issuing_personalization_design.deactivated`, `issuing_personalization_design.rejected`, and `issuing_personalization_design.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
### [`v15.8.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1580---2024-05-23)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.7.0...v15.8.0)
- [#2092](https://redirect.github.com/stripe/stripe-node/pull/2092) Update generated code
- Add support for `external_account_collection` on `AccountSession.components.balances.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.balances.features`, and `AccountSessionCreateParams.components.payouts.features`
- Add support for new value `terminal_reader_invalid_location_for_payment` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
- Add support for `payment_method_remove` on `Checkout.Session.saved_payment_method_options`
### [`v15.7.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1570---2024-05-16)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.6.0...v15.7.0)
- [#2088](https://redirect.github.com/stripe/stripe-node/pull/2088) Update generated code
- Add support for `fee_source` on `ApplicationFee`
- Add support for `net_available` on `Balance.instant_available[]`
- Add support for `preferred_locales` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, and `PaymentMethod.card_present`
- Add support for `klarna` on `Dispute.payment_method_details`
- Add support for new value `klarna` on enum `Dispute.payment_method_details.type`
- Add support for `archived` and `lookup_key` on `Entitlements.FeatureListParams`
- Change `FinancialConnections.SessionCreateParams.filters.countries` to be optional
- Add support for `no_valid_authorization` on `Issuing.Dispute.evidence`, `Issuing.DisputeCreateParams.evidence`, and `Issuing.DisputeUpdateParams.evidence`
- Add support for new value `no_valid_authorization` on enums `Issuing.Dispute.evidence.reason`, `Issuing.DisputeCreateParams.evidence.reason`, and `Issuing.DisputeUpdateParams.evidence.reason`
- Add support for `loss_reason` on `Issuing.Dispute`
- Add support for `routing` on `PaymentIntent.payment_method_options.card_present`, `PaymentIntentConfirmParams.payment_method_options.card_present`, `PaymentIntentCreateParams.payment_method_options.card_present`, and `PaymentIntentUpdateParams.payment_method_options.card_present`
- Add support for `application_fee_amount` and `application_fee` on `Payout`
- Add support for `stripe_s700` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
- Change `Treasury.OutboundPayment.tracking_details` and `Treasury.OutboundTransfer.tracking_details` to be required
### [`v15.6.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1560---2024-05-09)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.5.0...v15.6.0)
- [#2086](https://redirect.github.com/stripe/stripe-node/pull/2086) Update generated code
- Remove support for `pending_invoice_items_behavior` on `SubscriptionCreateParams`
- [#2080](https://redirect.github.com/stripe/stripe-node/pull/2080) Update generated code
- Add support for `update` test helper method on resources `Treasury.OutboundPayment` and `Treasury.OutboundTransfer`
- Add support for `allow_redisplay` on `ConfirmationToken.payment_method_preview` and `PaymentMethod`
- Add support for new values `treasury.outbound_payment.tracking_details_updated` and `treasury.outbound_transfer.tracking_details_updated` on enum `Event.type`
- Add support for `preview_mode` on `InvoiceCreatePreviewParams`, `InvoiceUpcomingLinesParams`, and `InvoiceUpcomingParams`
- Add support for `pending_invoice_items_behavior` on `SubscriptionCreateParams`
- Add support for `tracking_details` on `Treasury.OutboundPayment` and `Treasury.OutboundTransfer`
- Add support for new values `treasury.outbound_payment.tracking_details_updated` and `treasury.outbound_transfer.tracking_details_updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
- [#2085](https://redirect.github.com/stripe/stripe-node/pull/2085) Remove unnecessary pointer to description in deprecation message
### [`v15.5.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1550---2024-05-02)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.4.0...v15.5.0)
- [#2072](https://redirect.github.com/stripe/stripe-node/pull/2072) Update generated code
- Add support for new value `shipping_address_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code`
- Fix properties incorrectly marked as required in the OpenAPI spec.
- Change `Apps.Secret.payload`, `BillingPortal.Configuration.features.subscription_update.products`, `Charge.refunds`, `ConfirmationToken.payment_method_preview.klarna.dob`, `Identity.VerificationReport.document.dob`, `Identity.VerificationReport.document.expiration_date`, `Identity.VerificationReport.document.number`, `Identity.VerificationReport.id_number.dob`, `Identity.VerificationReport.id_number.id_number`, `Identity.VerificationSession.provided_details`, `Identity.VerificationSession.verified_outputs.dob`, `Identity.VerificationSession.verified_outputs.id_number`, `Identity.VerificationSession.verified_outputs`, `Issuing.Dispute.balance_transactions`, `Issuing.Transaction.purchase_details`, `PaymentMethod.klarna.dob`, `Tax.Calculation.line_items`, `Tax.CalculationLineItem.tax_breakdown`, `Tax.Transaction.line_items`, `Treasury.FinancialAccount.financial_addresses[].aba.account_number`, `Treasury.ReceivedCredit.linked_flows.source_flow_details`, `Treasury.Transaction.entries`, `Treasury.Transaction.flow_details`, and `Treasury.TransactionEntry.flow_details` to be optional
- Add support for `paypal` on `Dispute.payment_method_details`
- Change type of `Dispute.payment_method_details.type` from `literal('card')` to `enum('card'|'paypal')`
- Change type of `Entitlements.FeatureUpdateParams.metadata` from `map(string: string)` to `emptyable(map(string: string))`
- Add support for `payment_method_types` on `PaymentIntentConfirmParams`
- Add support for `ship_from_details` on `Tax.CalculationCreateParams`, `Tax.Calculation`, and `Tax.Transaction`
- Add support for `bh`, `eg`, `ge`, `ke`, `kz`, `ng`, and `om` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options`
- [#2077](https://redirect.github.com/stripe/stripe-node/pull/2077) Deprecate Node methods and params based on OpenAPI spec
- Mark as deprecated the `approve` and `decline` methods on `Issuing.Authorization`. Instead, [respond directly to the webhook request to approve an authorization](https://stripe.com/docs/issuing/controls/real-time-authorizations#authorization-handling).
- Mark as deprecated the `persistent_token` property on `ConfirmationToken.PaymentMethodPreview.Link`, `PaymentIntent.PaymentMethodOptions.Link`, `PaymentIntentResource.PaymentMethodOptions.Link`, `PaymentMethod.Link.persistent_token`. `SetupIntents.PaymentMethodOptions.Card.Link.persistent_token`, `SetupIntentsResource.persistent_token`. This is a legacy parameter that no longer has any function.
- [#2074](https://redirect.github.com/stripe/stripe-node/pull/2074) Add a more explicit comment on `limit` param in `autoPagingToArray`
### [`v15.4.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1540---2024-04-25)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.3.0...v15.4.0)
- [#2071](https://redirect.github.com/stripe/stripe-node/pull/2071) Update generated code
- Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.amazon_pay`, `Checkout.Session.payment_method_options.revolut_pay`, `PaymentIntent.payment_method_options.amazon_pay`, and `PaymentIntent.payment_method_options.revolut_pay`
- Change type of `Entitlements.ActiveEntitlement.feature` from `string` to `expandable(Entitlements.Feature)`
- Remove support for inadvertently released identity verification features `email` and `phone` on `Identity.VerificationSessionCreateParams.options` and `Identity.VerificationSessionUpdateParams.options`
- Change `Identity.VerificationSession.provided_details`, `Identity.VerificationSession.verified_outputs.email`, and `Identity.VerificationSession.verified_outputs.phone` to be required
- Add support for new values `amazon_pay` and `revolut_pay` 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[]`
- Add support for `amazon_pay` and `revolut_pay` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details`
- Add support for `ending_before`, `limit`, and `starting_after` on `PaymentMethodConfigurationListParams`
- Add support for `mobilepay` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
- [#2061](https://redirect.github.com/stripe/stripe-node/pull/2061) Make cloudflare package export
### [`v15.3.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1530---2024-04-18)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.2.0...v15.3.0)
- [#2069](https://redirect.github.com/stripe/stripe-node/pull/2069) Update generated code
- Add support for `create_preview` method on resource `Invoice`
- Add support for `payment_method_data` on `Checkout.SessionCreateParams`
- Add support for `saved_payment_method_options` on `Checkout.SessionCreateParams` and `Checkout.Session`
- Add support for `mobilepay` on `Checkout.Session.payment_method_options` and `Checkout.SessionCreateParams.payment_method_options`
- Add support for new value `mobilepay` on enum `Checkout.SessionCreateParams.payment_method_types[]`
- Add support for `allow_redisplay` on `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `CustomerListPaymentMethodsParams`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
- Add support for `schedule_details` and `subscription_details` on `InvoiceUpcomingLinesParams` and `InvoiceUpcomingParams`
- Add support for new value `other` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit`
### [`v15.2.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1520---2024-04-16)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.1.0...v15.2.0)
- [#2064](https://redirect.github.com/stripe/stripe-node/pull/2064) Update generated code
- Add support for new resource `Entitlements.ActiveEntitlementSummary`
- Add support for `balances` and `payouts_list` on `AccountSession.components` and `AccountSessionCreateParams.components`
- Change `AccountSession.components.payment_details.features.destination_on_behalf_of_charge_management` and `AccountSession.components.payments.features.destination_on_behalf_of_charge_management` to be required
- Change `Billing.MeterEventCreateParams.timestamp` and `Dispute.payment_method_details.card` to be optional
- Change type of `Dispute.payment_method_details.card` from `DisputePaymentMethodDetailsCard | null` to `DisputePaymentMethodDetailsCard`
- Add support for new value `entitlements.active_entitlement_summary.updated` on enum `Event.type`
- Remove support for `config` on `Forwarding.RequestCreateParams` and `Forwarding.Request`. This field is no longer used by the Forwarding Request API.
- Add support for `capture_method` on `PaymentIntent.payment_method_options.revolut_pay`, `PaymentIntentConfirmParams.payment_method_options.revolut_pay`, `PaymentIntentCreateParams.payment_method_options.revolut_pay`, and `PaymentIntentUpdateParams.payment_method_options.revolut_pay`
- Add support for `swish` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration`
- Add support for new value `entitlements.active_entitlement_summary.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
### [`v15.1.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1510---2024-04-11)
[Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.0.0...v15.1.0)
- [#2062](https://redirect.github.com/stripe/stripe-node/pull/2062) Update generated code
- Add support for `account_management` and `notification_banner` on `AccountSession.components` and `AccountSessionCreateParams.components`
- Add support for `external_account_collection` on `AccountSession.components.account_onboarding.features` and `AccountSessionCreateParams.components.account_onboarding.features`
- Add support for new values `billing_policy_remote_function_response_invalid`, `b
Configuration
📅 Schedule: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
12.18.0
->17.3.1
Release Notes
stripe/stripe-node (stripe)
### [`v17.3.1`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1731---2024-11-01) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v17.3.0...v17.3.1) - [#2218](https://redirect.github.com/stripe/stripe-node/pull/2218) Fixed a bug where `latestapiversion` was not updated to `2024-10-28.acacia` in the last release. ### [`v17.3.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1730---2024-10-29) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v17.2.1...v17.3.0) - [#2204](https://redirect.github.com/stripe/stripe-node/pull/2204) This release changes the pinned API version to `2024-10-28.acacia`. - Add support for new resource `V2.EventDestinations` - Add support for `create`, `retrieve`, `update`, `list`, `del`, `disable`, `enable` and `ping` methods on resource `V2.EventDestinations` - Add support for `submit_card` test helper method on resource `Issuing.Card` - Add support for `groups` on `AccountCreateParams`, `AccountUpdateParams`, and `Account` - Add support for `alma_payments`, `kakao_pay_payments`, `kr_card_payments`, `naver_pay_payments`, `payco_payments`, and `samsung_pay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities` - Add support for `disable_stripe_user_authentication` on `AccountSession.components.account_management.features`, `AccountSession.components.account_onboarding.features`, `AccountSession.components.balances.features`, `AccountSession.components.notification_banner.features`, `AccountSession.components.payouts.features`, `AccountSessionCreateParams.components.account_management.features`, `AccountSessionCreateParams.components.account_onboarding.features`, `AccountSessionCreateParams.components.balances.features`, `AccountSessionCreateParams.components.notification_banner.features`, and `AccountSessionCreateParams.components.payouts.features` - Add support for `schedule_at_period_end` on `BillingPortal.Configuration.features.subscription_update`, `BillingPortal.ConfigurationCreateParams.features.subscription_update`, and `BillingPortal.ConfigurationUpdateParams.features.subscription_update` - Change `BillingPortal.ConfigurationCreateParams.business_profile` and `Refund.next_action.display_details` to be optional - Add support for `alma` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `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`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - Add support for `kakao_pay` and `kr_card` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `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`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - Add support for `naver_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `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`, `PaymentMethodCreateParams`, `PaymentMethodUpdateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - Add support for `payco` and `samsung_pay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `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`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data` - Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `Checkout.SessionCreateParams.payment_method_types[]`, `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type` - Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` 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` - Add support for new values `alma`, `kakao_pay`, `kr_card`, `naver_pay`, `payco`, and `samsung_pay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type` - Add support for new value `auto` on enum `CustomerUpdateParams.tax.validate_location` - Add support for new values `by_tin`, `ma_vat`, `md_vat`, `tz_vat`, `uz_tin`, and `uz_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - Add support for `enhanced_evidence` on `Dispute.evidence` and `DisputeUpdateParams.evidence` - Add support for `enhanced_eligibility_types` on `Dispute` - Add support for `enhanced_eligibility` on `Dispute.evidence_details` - Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enum `Event.type` - Add support for `metadata` on `Forwarding.RequestCreateParams` and `Forwarding.Request` - Add support for `automatically_finalizes_at` on `InvoiceCreateParams` and `InvoiceUpdateParams` - Add support for new values `jp_credit_transfer`, `kakao_pay`, `kr_card`, `naver_pay`, and `payco` 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[]` - Add support for new value `retail_delivery_fee` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type` - Add support for new value `alma` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - Add support for `amazon_pay` on `PaymentMethodDomain` - Change type of `Refund.next_action.display_details` from `RefundNextActionDisplayDetails | null` to `RefundNextActionDisplayDetails` - Add support for `flat_amount` and `rate_type` on `Tax.Calculation.tax_breakdown[].tax_rate_details` and `TaxRate` - Add support for `by`, `cr`, `ec`, `ma`, `md`, `rs`, `ru`, `tz`, and `uz` on `Tax.Registration.country_options` and `Tax.RegistrationCreateParams.country_options` - Add support for new value `state_retail_delivery_fee` on enums `Tax.Registration.country_options.us.type` and `Tax.RegistrationCreateParams.country_options.us.type` - Add support for `pln` on `Terminal.Configuration.tipping`, `Terminal.ConfigurationCreateParams.tipping`, and `Terminal.ConfigurationUpdateParams.tipping` - Add support for new values `issuing_transaction.purchase_details_receipt_updated` and `refund.failed` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - Add support for new value `2024-10-28.acacia` on enum `WebhookEndpointCreateParams.api_version` ### [`v17.2.1`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1721---2024-10-18) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v17.2.0...v17.2.1) - [#2210](https://redirect.github.com/stripe/stripe-node/pull/2210) update object tags for meter-related classes - fixes a bug where the `object` property of the `MeterEvent`, `MeterEventAdjustment`, and `MeterEventSession` didn't match the server. - [#2208](https://redirect.github.com/stripe/stripe-node/pull/2208) Update signature verification docs link ### [`v17.2.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1720---2024-10-09) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v17.1.0...v17.2.0) - [#2201](https://redirect.github.com/stripe/stripe-node/pull/2201) Add fetchRelatedObject to V2 Events if needed - `fetchRelatedObject` is added to events retrieved using `stripe.v2.core.events` and can be used to easily fetch the Stripe object related to a retrieved event ### [`v17.1.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1710---2024-10-03) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v17.0.0...v17.1.0) - [#2199](https://redirect.github.com/stripe/stripe-node/pull/2199) Update generated code - Remove the support for resource `Margin` that was accidentally made public in the last release ### [`v17.0.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1700---2024-10-01) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.12.0...v17.0.0) - [#2192](https://redirect.github.com/stripe/stripe-node/pull/2192) Support for APIs in the new API version 2024-09-30.acacia This release changes the pinned API version to `2024-09-30.acacia`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-09-30.acacia) and carefully review the API changes before upgrading. ##### ⚠️ Breaking changes due to changes in the Stripe API - Rename `usage_threshold_config` to `usage_threshold` on `Billing.AlertCreateParams` and `Billing.Alert` - Remove support for `filter` on `Billing.AlertCreateParams` and `Billing.Alert`. Use the filters on the `usage_threshold` instead - Remove support for `customer_consent_collected` on `Terminal.ReaderProcessSetupIntentParams`. ##### ⚠️ Other Breaking changes in the SDK - Adjusted default values around reties for HTTP requests. You can use the old defaults by setting them explicitly. New values are: - max retries: `1` -> `2` - max timeout (seconds): `2` -> `5` ##### Additions - Add support for `custom_unit_amount` on `ProductCreateParams.default_price_data` - Add support for `allow_redisplay` on `Terminal.ReaderProcessPaymentIntentParams.process_config` and `Terminal.ReaderProcessSetupIntentParams` - Add support for new value `international_transaction` on enum `Treasury.ReceivedCredit.failure_code` - Add support for new value `2024-09-30.acacia` on enum `WebhookEndpointCreateParams.api_version` - Add support for new Usage Billing APIs `Billing.MeterEvent`, `Billing.MeterEventAdjustments`, `Billing.MeterEventSession`, `Billing.MeterEventStream` and the new Events API `Core.Events` in the [v2 namespace ](https://docs.corp.stripe.com/api-v2-overview) - Add method `parseThinEvent()` on the `Stripe` class to parse [thin events](https://docs.corp.stripe.com/event-destinations#events-overview). - Add method [rawRequest()](https://redirect.github.com/stripe/stripe-node/tree/master?tab=readme-ov-file#custom-requests) on the `Stripe` class that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK. ##### Changes - Change `BillingPortal.ConfigurationCreateParams.features.subscription_update.default_allowed_updates` and `BillingPortal.ConfigurationCreateParams.features.subscription_update.products` to be optional ### [`v16.12.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#16120---2024-09-18) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.11.0...v16.12.0) - [#2177](https://redirect.github.com/stripe/stripe-node/pull/2177) Update generated code - Add support for new value `international_transaction` on enum `Treasury.ReceivedDebit.failure_code` - [#2175](https://redirect.github.com/stripe/stripe-node/pull/2175) Update generated code - Add support for new value `verification_supportability` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `BankAccount.future_requirements.errors[].code`, and `BankAccount.requirements.errors[].code` - Add support for new value `terminal_reader_invalid_location_for_activation` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - Add support for `payer_details` on `Charge.payment_method_details.klarna` - Add support for `amazon_pay` on `Dispute.payment_method_details` - Add support for new value `amazon_pay` on enum `Dispute.payment_method_details.type` - Add support for `automatically_finalizes_at` on `Invoice` - Add support for `state_sales_tax` on `Tax.Registration.country_options.us` and `Tax.RegistrationCreateParams.country_options.us` ### [`v16.11.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#16110---2024-09-12) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.10.0...v16.11.0) - [#2171](https://redirect.github.com/stripe/stripe-node/pull/2171) Update generated code - Add support for new resource `InvoiceRenderingTemplate` - Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `InvoiceRenderingTemplate` - Add support for `required` on `Checkout.Session.tax_id_collection`, `Checkout.SessionCreateParams.tax_id_collection`, `PaymentLink.tax_id_collection`, `PaymentLinkCreateParams.tax_id_collection`, and `PaymentLinkUpdateParams.tax_id_collection` - Add support for `template` on `Customer.invoice_settings.rendering_options`, `CustomerCreateParams.invoice_settings.rendering_options`, `CustomerUpdateParams.invoice_settings.rendering_options`, `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering` - Add support for `template_version` on `Invoice.rendering`, `InvoiceCreateParams.rendering`, and `InvoiceUpdateParams.rendering` - Add support for new value `submitted` on enum `Issuing.Card.shipping.status` - Change `TestHelpers.TestClock.status_details` to be required - [#2172](https://redirect.github.com/stripe/stripe-node/pull/2172) Null out empty data sent to GET/DELETE APIs ### [`v16.10.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#16100---2024-09-05) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.9.0...v16.10.0) - [#2158](https://redirect.github.com/stripe/stripe-node/pull/2158) Update generated code - Add support for `subscription_item` and `subscription` on `Billing.AlertCreateParams.filter` - Change `Terminal.ReaderProcessSetupIntentParams.customer_consent_collected` to be optional ### [`v16.9.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1690---2024-08-29) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.8.0...v16.9.0) - [#2163](https://redirect.github.com/stripe/stripe-node/pull/2163) Generate SDK for OpenAPI spec version 1230 - Change `AccountLinkCreateParams.collection_options.fields` and `LineItem.description` to be optional - Add support for new value `hr_oib` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - Add support for new value `hr_oib` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - Add support for new value `issuing_regulatory_reporting` on enums `File.purpose` and `FileListParams.purpose` - Add support for new value `issuing_regulatory_reporting` on enum `FileCreateParams.purpose` - Change `Issuing.Card.shipping.address_validation` to be required - Add support for `status_details` on `TestHelpers.TestClock` ### [`v16.8.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1680---2024-08-15) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.7.0...v16.8.0) - [#2155](https://redirect.github.com/stripe/stripe-node/pull/2155) Update generated code - Add support for `authorization_code` on `Charge.payment_method_details.card` - Add support for `wallet` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present` - Add support for `mandate_options` on `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, and `PaymentIntentUpdateParams.payment_method_options.bacs_debit` - Add support for `bacs_debit` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` - Add support for `chips` on `Treasury.OutboundPayment.tracking_details.us_domestic_wire`, `Treasury.OutboundPaymentUpdateParams.testHelpers.tracking_details.us_domestic_wire`, `Treasury.OutboundTransfer.tracking_details.us_domestic_wire`, and `Treasury.OutboundTransferUpdateParams.testHelpers.tracking_details.us_domestic_wire` - Change type of `Treasury.OutboundPayment.tracking_details.us_domestic_wire.imad` and `Treasury.OutboundTransfer.tracking_details.us_domestic_wire.imad` from `string` to `string | null` ### [`v16.7.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1670---2024-08-08) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.6.0...v16.7.0) - [#2147](https://redirect.github.com/stripe/stripe-node/pull/2147) Update generated code - Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Billing.Alert` - Add support for `retrieve` method on resource `Tax.Calculation` - Add support for new value `invalid_mandate_reference_prefix_format` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - Add support for `type` on `Charge.payment_method_details.card_present.offline`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present.offline`, `PaymentMethod.card.generated_from.payment_method_details.card_present.offline`, and `SetupAttempt.payment_method_details.card_present.offline` - Add support for `offline` on `ConfirmationToken.payment_method_preview.card_present` and `PaymentMethod.card_present` - Add support for `related_customer` on `Identity.VerificationSessionCreateParams`, `Identity.VerificationSessionListParams`, and `Identity.VerificationSession` - Change `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceCreateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.count`, `InvoiceUpdateParams.payment_settings.payment_method_options.card.installments.plan.interval`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.count`, `PaymentIntentConfirmParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.count`, `PaymentIntentCreateParams.payment_method_options.card.installments.plan.interval`, `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.count`, and `PaymentIntentUpdateParams.payment_method_options.card.installments.plan.interval` to be optional - Add support for new value `girocard` on enums `PaymentIntent.payment_method_options.card.network`, `PaymentIntentConfirmParams.payment_method_options.card.network`, `PaymentIntentCreateParams.payment_method_options.card.network`, `PaymentIntentUpdateParams.payment_method_options.card.network`, `SetupIntent.payment_method_options.card.network`, `SetupIntentConfirmParams.payment_method_options.card.network`, `SetupIntentCreateParams.payment_method_options.card.network`, `SetupIntentUpdateParams.payment_method_options.card.network`, `Subscription.payment_settings.payment_method_options.card.network`, `SubscriptionCreateParams.payment_settings.payment_method_options.card.network`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.card.network` - Add support for new value `financial_addresses.aba.forwarding` on enums `Treasury.FinancialAccount.active_features[]`, `Treasury.FinancialAccount.pending_features[]`, and `Treasury.FinancialAccount.restricted_features[]` ### [`v16.6.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1660---2024-08-01) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.5.0...v16.6.0) - [#2144](https://redirect.github.com/stripe/stripe-node/pull/2144) Update generated code - Add support for new resources `Billing.AlertTriggered` and `Billing.Alert` - Add support for new value `charge_exceeds_transaction_limit` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - ⚠️ Remove support for `authorization_code` on `Charge.payment_method_details.card`. This was accidentally released last week. - Add support for new value `billing.alert.triggered` on enum `Event.type` - Add support for new value `billing.alert.triggered` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` ### [`v16.5.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1650---2024-07-25) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.4.0...v16.5.0) - [#2143](https://redirect.github.com/stripe/stripe-node/pull/2143) Update generated code - Add support for `tax_registrations` and `tax_settings` on `AccountSession.components` and `AccountSessionCreateParams.components` - [#2140](https://redirect.github.com/stripe/stripe-node/pull/2140) Update generated code - Add support for `update` method on resource `Checkout.Session` - Add support for `transaction_id` on `Charge.payment_method_details.affirm` - Add support for `buyer_id` on `Charge.payment_method_details.blik` - Add support for `authorization_code` on `Charge.payment_method_details.card` - Add support for `brand_product` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present` - Add support for `network_transaction_id` on `Charge.payment_method_details.card_present`, `Charge.payment_method_details.interac_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card.generated_from.payment_method_details.card_present` - Add support for `case_type` on `Dispute.payment_method_details.card` - Add support for new values `invoice.overdue` and `invoice.will_be_due` on enum `Event.type` - Add support for `twint` on `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, and `PaymentMethodConfiguration` - Add support for new values `invoice.overdue` and `invoice.will_be_due` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` ### [`v16.4.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1640---2024-07-18) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.2.0...v16.4.0) - [#2138](https://redirect.github.com/stripe/stripe-node/pull/2138) Update generated code - Add support for `customer` on `ConfirmationToken.payment_method_preview` - Add support for new value `issuing_dispute.funds_rescinded` on enum `Event.type` - Add support for new value `multibanco` 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[]` - Add support for new value `stripe_s700` on enums `Terminal.Reader.device_type` and `Terminal.ReaderListParams.device_type` - Add support for new value `issuing_dispute.funds_rescinded` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]` - [#2136](https://redirect.github.com/stripe/stripe-node/pull/2136) Update changelog ### [`v16.2.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1620---2024-07-05) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.1.0...v16.2.0) - [#2125](https://redirect.github.com/stripe/stripe-node/pull/2125) Update generated code - Add support for `add_lines`, `remove_lines`, and `update_lines` methods on resource `Invoice` - Add support for new value `payment_intent_fx_quote_invalid` on enums `Invoice.last_finalization_error.code`, `PaymentIntent.last_payment_error.code`, `SetupAttempt.setup_error.code`, `SetupIntent.last_setup_error.code`, and `StripeError.code` - Add support for `posted_at` on `Tax.TransactionCreateFromCalculationParams` and `Tax.Transaction` ### [`v16.1.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1610---2024-06-27) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v16.0.0...v16.1.0) - [#2120](https://redirect.github.com/stripe/stripe-node/pull/2120) Update generated code - Add support for `filters` on `Checkout.Session.payment_method_options.us_bank_account.financial_connections`, `Invoice.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `InvoiceUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, `PaymentIntent.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `PaymentIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntent.payment_method_options.us_bank_account.financial_connections`, `SetupIntentConfirmParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentCreateParams.payment_method_options.us_bank_account.financial_connections`, `SetupIntentUpdateParams.payment_method_options.us_bank_account.financial_connections`, `Subscription.payment_settings.payment_method_options.us_bank_account.financial_connections`, `SubscriptionCreateParams.payment_settings.payment_method_options.us_bank_account.financial_connections`, and `SubscriptionUpdateParams.payment_settings.payment_method_options.us_bank_account.financial_connections` - Add support for `email_type` on `CreditNoteCreateParams`, `CreditNotePreviewLinesParams`, and `CreditNotePreviewParams` - Add support for `account_subcategories` on `FinancialConnections.Session.filters` and `FinancialConnections.SessionCreateParams.filters` - Add support for new values `multibanco`, `twint`, and `zip` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - Add support for `reboot_window` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration` ### [`v16.0.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#1600---2024-06-24) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.12.0...v16.0.0) - [#2113](https://redirect.github.com/stripe/stripe-node/pull/2113) This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading. ##### ⚠️ Breaking changes * Remove the unused resource `PlatformTaxFee` * Rename `volume_decimal` to `quantity_decimal` on * `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, * `Issuing.Transaction.purchase_details.fuel`, * `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and * `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel` * `Capabilities.Requirements.disabled_reason` and `Capabilities.Requirements.disabled_reason` are now enums with the below values * `other` * `paused.inactivity` * `pending.onboarding` * `pending.review` * `platform_disabled` * `platform_paused` * `rejected.inactivity` * `rejected.other` * `rejected.unsupported_business` * `requirements.fields_needed` ##### Additions * Add support for new values `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, and `pound` on enums `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel.unit`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel.unit`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel.unit` * Add support for new values `card_canceled`, `card_expired`, `cardholder_blocked`, `insecure_authorization_method`, and `pin_blocked` on enum `Issuing.Authorization.request_history[].reason` - Add support for `finalize_amount` test helper method on resource `Issuing.Authorization` - Add support for new value `ch_uid` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type` - Add support for new value `ch_uid` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type` - Add support for `fleet` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details`, `Issuing.AuthorizationCreateParams.testHelpers`, `Issuing.Authorization`, `Issuing.Transaction.purchase_details`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details` - Add support for `fuel` on `Issuing.AuthorizationCreateParams.testHelpers` and `Issuing.Authorization` - Add support for `industry_product_code` and `quantity_decimal` on `Issuing.AuthorizationCaptureParams.testHelpers.purchase_details.fuel`, `Issuing.Transaction.purchase_details.fuel`, `Issuing.TransactionCreateForceCaptureParams.testHelpers.purchase_details.fuel`, and `Issuing.TransactionCreateUnlinkedRefundParams.testHelpers.purchase_details.fuel` - Add support for new value `2024-06-20` on enum `WebhookEndpointCreateParams.api_version` - [#2118](https://redirect.github.com/stripe/stripe-node/pull/2118) Use worker module in Bun ### [`v15.12.0`](https://redirect.github.com/stripe/stripe-node/blob/HEAD/CHANGELOG.md#15120---2024-06-17) [Compare Source](https://redirect.github.com/stripe/stripe-node/compare/v15.11.0...v15.12.0) - [#2109](https://redirect.github.com/stripe/stripe-node/pull/2109) Update generated code - Add support for new value `mobilepay` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]` - Add support for `tax_id_collection` on `PaymentLinkUpdateParams` - [#2111](https://redirect.github.com/stripe/stripe-node/pull/2111) Where params are union of types, merge the types instead of having numbered suffixes in type names - Change type of `PaymentIntentConfirmParams.mandate_data` from `Stripe.EmptyableConfiguration
📅 Schedule: Branch creation - "every weekday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.