Skip to content

Releases: stripe/stripe-node

v15.0.0

10 Apr 23:03
Compare
Choose a tag to compare
  • #2057

    • This release changes the pinned API version to 2024-04-10. Please read the API Upgrade Guide and carefully review the API changes before upgrading.

    ⚠️ Breaking changes

    • Rename event type InvoiceitemCreatedEvent to InvoiceItemCreatedEvent
    • Rename event type InvoiceitemDeletedEvent to InvoiceItemDeletedEvent
    • Rename features to marketing_features on ProductCreateOptions, ProductUpdateOptions, and Product.

    ⚠️ Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API

    • Remove subscription_pause from the below as the feature to pause subscription on the portal has been deprecated.
      • BillingPortal.Configuration.Features
      • BillingPortal.ConfigurationCreateParams.Features
      • BillingPortal.ConfigurationUpdateParams.Features
    • Remove the below deprecated values for the type BalanceTransaction.Type
      • obligation_inbound
      • obligation_payout
      • obligation_payout_failure
      • 'obligation_reversal_outbound'
    • Remove deprecated value various for the type Climate.Supplier.RemovalPathway
    • Remove deprecated events
      • invoiceitem.updated
      • order.created
      • recipient.created
      • recipient.deleted
      • recipient.updated
      • sku.created
      • sku.deleted
      • sku.updated
    • Remove types for the deprecated events
      • InvoiceItemUpdatedEvent
      • OrderCreatedEvent
      • RecipientCreatedEvent
      • RecipientDeletedEvent
      • RecipientUpdatedEvent
      • SKUCreatedEvent
      • SKUDeletedEvent
    • Remove the deprecated value include_and_require for the typeInvoiceCreateParams.PendingInvoiceItemsBehavior
    • Remove the deprecated value service_tax for the types TaxRate.TaxType, TaxRateCreateParams.TaxType, TaxRateUpdateParams.TaxType, and InvoiceUpdateLineItemParams.TaxAmount.TaxRateData
    • Remove request_incremental_authorization from PaymentIntentCreateParams.PaymentMethodOptions.CardPresent, PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent and PaymentIntentConfirmParams.PaymentMethodOptions.CardPresent
    • Remove support for id_bank_transfer, multibanco, netbanking, pay_by_bank, and upi on PaymentMethodConfiguration
    • Remove the deprecated value obligation for the type Reporting.ReportRunCreateParams.Parameters.ReportingCategory
    • Remove the deprecated value challenge_only from the type SetupIntent.PaymentMethodOptions.Card.RequestThreeDSecure
    • Remove the legacy field rendering_options in Invoice, InvoiceCreateOptions and InvoiceUpdateOptions. Use rendering instead.

See the changelog for more details.

v14.25.0

09 Apr 21:08
Compare
Choose a tag to compare
  • #2059 Update generated code
    • Add support for new resources Entitlements.ActiveEntitlement and Entitlements.Feature
    • Add support for list and retrieve methods on resource ActiveEntitlement
    • Add support for create, list, retrieve, and update methods on resource Feature
    • Add support for controller on AccountCreateParams
    • Add support for fees, losses, requirement_collection, and stripe_dashboard on Account.controller
    • Add support for new value none on enum Account.type
    • Add support for event_name on Billing.MeterEventAdjustmentCreateParams and Billing.MeterEventAdjustment
    • Add support for cancel and type on Billing.MeterEventAdjustment

See the changelog for more details.

v14.25.0-beta.1

04 Apr 22:47
Compare
Choose a tag to compare
v14.25.0-beta.1 Pre-release
Pre-release
  • #2054 Update generated code for beta
    • Add support for update method on resource Entitlements.Feature
    • Add support for risk_controls on AccountCreateParams, AccountUpdateParams, and Account
    • Change Discount.subscription_item, QuoteLine.actions[].add_discount, QuoteLine.actions[].add_item.discounts, QuoteLine.actions[].remove_discount, QuoteLine.actions[].set_discounts, QuoteLine.actions[].set_items[].discounts, Subscription.discounts, SubscriptionItem.discounts, SubscriptionSchedule.phases[].add_invoice_items[].discounts, SubscriptionSchedule.phases[].discounts, and SubscriptionSchedule.phases[].items[].discounts to be required
    • Add support for promotion_code on InvoiceAddLinesParams.lines[].discounts[], InvoiceUpdateLinesParams.lines[].discounts[], QuoteCreateParams.line_items[].discounts[], QuoteCreateParams.lines[].actions[].add_discount, QuoteCreateParams.phases[].line_items[].discounts[], QuoteUpdateParams.line_items[].discounts[], QuoteUpdateParams.lines[].actions[].add_discount, and QuoteUpdateParams.phases[].line_items[].discounts[]
    • Change type of QuoteLine.actions[].add_item.discounts, QuoteLine.actions[].set_items[].discounts, SubscriptionSchedule.phases[].add_invoice_items[].discounts, SubscriptionSchedule.phases[].discounts, and SubscriptionSchedule.phases[].items[].discounts from array(DiscountsResourceStackableDiscount) | null to array(DiscountsResourceStackableDiscount)
    • Change type of Subscription.discounts and SubscriptionItem.discounts from array(expandable(Discount)) | null to array(expandable(Discount))

See the changelog for more details.

v14.24.0

04 Apr 22:22
Compare
Choose a tag to compare
  • #2053 Update generated code
    • Change Charge.payment_method_details.us_bank_account.payment_reference, PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.hosted_instructions_url, PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.mobile_auth_url, PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.data, PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_png, PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code.image_url_svg, PaymentIntent.next_action.swish_handle_redirect_or_display_qr_code.qr_code, and PaymentIntent.payment_method_options.swish.reference to be required
    • Change type of Checkout.SessionCreateParams.payment_method_options.swish.reference from emptyable(string) to string
    • Add support for subscription_item on Discount
    • Add support for email and phone on Identity.VerificationReport, Identity.VerificationSession.options, Identity.VerificationSession.verified_outputs, Identity.VerificationSessionCreateParams.options, and Identity.VerificationSessionUpdateParams.options
    • Add support for verification_flow on Identity.VerificationReport, Identity.VerificationSessionCreateParams, and Identity.VerificationSession
    • Add support for new value verification_flow on enums Identity.VerificationReport.type and Identity.VerificationSession.type
    • Add support for provided_details on Identity.VerificationSessionCreateParams, Identity.VerificationSessionUpdateParams, and Identity.VerificationSession
    • Change Identity.VerificationSessionCreateParams.type to be optional
    • Add support for new values email_unverified_other, email_verification_declined, phone_unverified_other, and phone_verification_declined on enum Identity.VerificationSession.last_error.code
    • Add support for promotion_code on InvoiceCreateParams.discounts[], InvoiceItemCreateParams.discounts[], InvoiceItemUpdateParams.discounts[], InvoiceUpdateParams.discounts[], QuoteCreateParams.discounts[], and QuoteUpdateParams.discounts[]
    • Add support for discounts on InvoiceUpcomingLinesParams.subscription_items[], InvoiceUpcomingParams.subscription_items[], QuoteCreateParams.line_items[], QuoteUpdateParams.line_items[], SubscriptionCreateParams.add_invoice_items[], SubscriptionCreateParams.items[], SubscriptionCreateParams, SubscriptionItemCreateParams, SubscriptionItemUpdateParams, SubscriptionItem, SubscriptionSchedule.phases[].add_invoice_items[], SubscriptionSchedule.phases[].items[], SubscriptionSchedule.phases[], SubscriptionScheduleCreateParams.phases[].add_invoice_items[], SubscriptionScheduleCreateParams.phases[].items[], SubscriptionScheduleCreateParams.phases[], SubscriptionScheduleUpdateParams.phases[].add_invoice_items[], SubscriptionScheduleUpdateParams.phases[].items[], SubscriptionScheduleUpdateParams.phases[], SubscriptionUpdateParams.add_invoice_items[], SubscriptionUpdateParams.items[], SubscriptionUpdateParams, and Subscription
    • Change type of Invoice.discounts from array(expandable(deletable($Discount))) | null to array(expandable(deletable($Discount)))
    • Add support for allowed_merchant_countries and blocked_merchant_countries on Issuing.Card.spending_controls, Issuing.CardCreateParams.spending_controls, Issuing.CardUpdateParams.spending_controls, Issuing.Cardholder.spending_controls, Issuing.CardholderCreateParams.spending_controls, and Issuing.CardholderUpdateParams.spending_controls
    • Add support for zip on PaymentMethodConfigurationCreateParams, PaymentMethodConfigurationUpdateParams, and PaymentMethodConfiguration
    • Add support for offline on SetupAttempt.payment_method_details.card_present
    • Add support for card_present on SetupIntent.payment_method_options, SetupIntentConfirmParams.payment_method_options, SetupIntentCreateParams.payment_method_options, and SetupIntentUpdateParams.payment_method_options
    • Add support for new value mobile_phone_reader on enums Terminal.Reader.device_type and Terminal.ReaderListParams.device_type

See the changelog for more details.

v14.24.0-beta.1

28 Mar 19:38
Compare
Choose a tag to compare
v14.24.0-beta.1 Pre-release
Pre-release
  • #2047 Update generated code for beta
    • Add support for financial_account_transactions, financial_account, issuing_card, and issuing_cards_list on AccountSessionCreateParams.components
    • Remove support for subscription_billing_cycle_anchor, subscription_cancel_at_period_end, subscription_cancel_at, subscription_cancel_now, subscription_default_tax_rates, subscription_items, subscription_prebilling, subscription_proration_behavior, subscription_proration_date, subscription_resume_at, subscription_start_date, and subscription_trial_end on InvoiceCreatePreviewParams

See the changelog for more details.

v14.23.0

28 Mar 19:16
Compare
Choose a tag to compare
  • #2046 Update generated code
    • Add support for new resources Billing.MeterEventAdjustment, Billing.MeterEvent, and Billing.Meter
    • Add support for create, deactivate, list, reactivate, retrieve, and update methods on resource Meter
    • Add support for create method on resources MeterEventAdjustment and MeterEvent
    • Add support for amazon_pay_payments on Account.capabilities, AccountCreateParams.capabilities, and AccountUpdateParams.capabilities
    • Add support for new value verification_failed_representative_authority on enums Account.future_requirements.errors[].code, Account.requirements.errors[].code, BankAccount.future_requirements.errors[].code, and BankAccount.requirements.errors[].code
    • Add support for destination_on_behalf_of_charge_management on AccountSession.components.payment_details.features, AccountSession.components.payments.features, AccountSessionCreateParams.components.payment_details.features, and AccountSessionCreateParams.components.payments.features
    • Add support for mandate on Charge.payment_method_details.us_bank_account, Treasury.InboundTransfer.origin_payment_method_details.us_bank_account, Treasury.OutboundPayment.destination_payment_method_details.us_bank_account, and Treasury.OutboundTransfer.destination_payment_method_details.us_bank_account
    • Add support for second_line on Issuing.CardCreateParams
    • Add support for meter on PlanCreateParams, Plan, Price.recurring, PriceCreateParams.recurring, and PriceListParams.recurring
  • #2045 esbuild test project fixes

See the changelog for more details.

v14.23.0-beta.1

21 Mar 22:23
Compare
Choose a tag to compare
v14.23.0-beta.1 Pre-release
Pre-release
  • #2039 Update generated code for beta
    • Add support for new resources Entitlements.ActiveEntitlementSummary and Entitlements.ActiveEntitlement
    • Add support for list method on resource ActiveEntitlement
    • Add support for mobilepay on ConfirmationToken.payment_method_preview and ConfirmationTokenCreateParams.testHelpers.payment_method_data
    • Add support for new value mobilepay on enum ConfirmationTokenCreateParams.testHelpers.payment_method_data.type
    • Add support for use_stripe_sdk on ConfirmationToken
    • Remove support for payment_method on ConfirmationToken
    • Change type of ConfirmationToken.mandate_data from ConfirmationTokensResourceMandateData to ConfirmationTokensResourceMandateData | null
    • Add support for new value mobilepay on enum ConfirmationToken.payment_method_preview.type
    • Add support for metadata on Entitlements.FeatureCreateParams and Entitlements.Feature
    • Add support for active on Entitlements.Feature
    • Add support for new value entitlements.active_entitlement_summary.updated on enum Event.type
    • Remove support for value customer.entitlement_summary.updated from enum Event.type
    • Add support for new value entitlements.active_entitlement_summary.updated on enums WebhookEndpointCreateParams.enabled_events[] and WebhookEndpointUpdateParams.enabled_events[]
    • Remove support for value customer.entitlement_summary.updated from enums WebhookEndpointCreateParams.enabled_events[] and WebhookEndpointUpdateParams.enabled_events[]

See the changelog for more details.

v14.22.0

21 Mar 21:11
Compare
Choose a tag to compare
  • #2040 Update generated code
    • Add support for new resources ConfirmationToken and Forwarding.Request
    • Add support for retrieve method on resource ConfirmationToken
    • Add support for create, list, and retrieve methods on resource Request
    • Add support for mobilepay_payments on Account.capabilities, AccountCreateParams.capabilities, and AccountUpdateParams.capabilities
    • Add support for new values forwarding_api_inactive, forwarding_api_invalid_parameter, forwarding_api_upstream_connection_error, and forwarding_api_upstream_connection_timeout 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 mobilepay on Charge.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, SetupIntentConfirmParams.payment_method_data, SetupIntentCreateParams.payment_method_data, and SetupIntentUpdateParams.payment_method_data
    • Add support for payment_reference on Charge.payment_method_details.us_bank_account
    • Add support for new value mobilepay on enums CustomerListPaymentMethodsParams.type, PaymentMethodCreateParams.type, and PaymentMethodListParams.type
    • Add support for confirmation_token on PaymentIntentConfirmParams, PaymentIntentCreateParams, SetupIntentConfirmParams, and SetupIntentCreateParams
    • Add support for new value mobilepay on enums 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 value mobilepay on enum PaymentMethod.type
    • Add support for name on Terminal.ConfigurationCreateParams, Terminal.ConfigurationUpdateParams, and Terminal.Configuration
    • Add support for payout on Treasury.ReceivedDebit.linked_flows
  • #2043 Don't mutate error.type during minification

See the changelog for more details.

v14.22.0-beta.1

14 Mar 23:00
Compare
Choose a tag to compare
v14.22.0-beta.1 Pre-release
Pre-release
  • #2036 Update generated code for beta
    • Add support for new resources Billing.MeterEventAdjustment, Billing.MeterEvent, and Billing.Meter
    • Add support for create, deactivate, list, reactivate, retrieve, and update methods on resource Meter
    • Add support for create method on resources MeterEventAdjustment and MeterEvent
    • Add support for create test helper method on resource ConfirmationToken
    • Add support for add_lines, remove_lines, and update_lines methods on resource Invoice
    • Add support for multibanco payment method throughout the API.
    • Add support for second_line on Issuing.PhysicalBundle.features
    • Add support for multibanco_display_details on PaymentIntent.next_action
    • Add support for meter on PlanCreateParams, Plan, Price.recurring, PriceCreateParams.recurring, and PriceListParams.recurring

See the changelog for more details.

v14.21.0

14 Mar 21:12
Compare
Choose a tag to compare
  • #2035 Update generated code
    • Add support for new resources Issuing.PersonalizationDesign and Issuing.PhysicalBundle
    • Add support for create, list, retrieve, and update methods on resource PersonalizationDesign
    • Add support for list and retrieve methods on resource PhysicalBundle
    • Add support for personalization_design on Issuing.CardCreateParams, Issuing.CardListParams, Issuing.CardUpdateParams, and Issuing.Card
    • Change type of SubscriptionCreateParams.application_fee_percent and SubscriptionUpdateParams.application_fee_percent from number to emptyStringable(number)
    • Add support for sepa_debit on Subscription.payment_settings.payment_method_options, SubscriptionCreateParams.payment_settings.payment_method_options, and SubscriptionUpdateParams.payment_settings.payment_method_options

See the changelog for more details.