Releases: stripe/stripe-node
Releases · stripe/stripe-node
v15.0.0
-
- 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
toInvoiceItemCreatedEvent
- Rename event type
InvoiceitemDeletedEvent
toInvoiceItemDeletedEvent
- Rename
features
tomarketing_features
onProductCreateOptions
,ProductUpdateOptions
, andProduct
.
⚠️ 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 typeClimate.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 typesTaxRate.TaxType
,TaxRateCreateParams.TaxType
,TaxRateUpdateParams.TaxType
, andInvoiceUpdateLineItemParams.TaxAmount.TaxRateData
- Remove
request_incremental_authorization
fromPaymentIntentCreateParams.PaymentMethodOptions.CardPresent
,PaymentIntentUpdateParams.PaymentMethodOptions.CardPresent
andPaymentIntentConfirmParams.PaymentMethodOptions.CardPresent
- Remove support for
id_bank_transfer
,multibanco
,netbanking
,pay_by_bank
, andupi
onPaymentMethodConfiguration
- Remove the deprecated value
obligation
for the typeReporting.ReportRunCreateParams.Parameters.ReportingCategory
- Remove the deprecated value
challenge_only
from the typeSetupIntent.PaymentMethodOptions.Card.RequestThreeDSecure
- Remove the legacy field
rendering_options
inInvoice
,InvoiceCreateOptions
andInvoiceUpdateOptions
. Userendering
instead.
- This release changes the pinned API version to
v14.25.0
- #2059 Update generated code
- Add support for new resources
Entitlements.ActiveEntitlement
andEntitlements.Feature
- Add support for
list
andretrieve
methods on resourceActiveEntitlement
- Add support for
create
,list
,retrieve
, andupdate
methods on resourceFeature
- Add support for
controller
onAccountCreateParams
- Add support for
fees
,losses
,requirement_collection
, andstripe_dashboard
onAccount.controller
- Add support for new value
none
on enumAccount.type
- Add support for
event_name
onBilling.MeterEventAdjustmentCreateParams
andBilling.MeterEventAdjustment
- Add support for
cancel
andtype
onBilling.MeterEventAdjustment
- Add support for new resources
v14.25.0-beta.1
- #2054 Update generated code for beta
- Add support for
update
method on resourceEntitlements.Feature
- Add support for
risk_controls
onAccountCreateParams
,AccountUpdateParams
, andAccount
- 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
, andSubscriptionSchedule.phases[].items[].discounts
to be required - Add support for
promotion_code
onInvoiceAddLinesParams.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
, andQuoteUpdateParams.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
, andSubscriptionSchedule.phases[].items[].discounts
fromarray(DiscountsResourceStackableDiscount) | null
toarray(DiscountsResourceStackableDiscount)
- Change type of
Subscription.discounts
andSubscriptionItem.discounts
fromarray(expandable(Discount)) | null
toarray(expandable(Discount))
- Add support for
v14.24.0
- #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
, andPaymentIntent.payment_method_options.swish.reference
to be required - Change type of
Checkout.SessionCreateParams.payment_method_options.swish.reference
fromemptyable(string)
tostring
- Add support for
subscription_item
onDiscount
- Add support for
email
andphone
onIdentity.VerificationReport
,Identity.VerificationSession.options
,Identity.VerificationSession.verified_outputs
,Identity.VerificationSessionCreateParams.options
, andIdentity.VerificationSessionUpdateParams.options
- Add support for
verification_flow
onIdentity.VerificationReport
,Identity.VerificationSessionCreateParams
, andIdentity.VerificationSession
- Add support for new value
verification_flow
on enumsIdentity.VerificationReport.type
andIdentity.VerificationSession.type
- Add support for
provided_details
onIdentity.VerificationSessionCreateParams
,Identity.VerificationSessionUpdateParams
, andIdentity.VerificationSession
- Change
Identity.VerificationSessionCreateParams.type
to be optional - Add support for new values
email_unverified_other
,email_verification_declined
,phone_unverified_other
, andphone_verification_declined
on enumIdentity.VerificationSession.last_error.code
- Add support for
promotion_code
onInvoiceCreateParams.discounts[]
,InvoiceItemCreateParams.discounts[]
,InvoiceItemUpdateParams.discounts[]
,InvoiceUpdateParams.discounts[]
,QuoteCreateParams.discounts[]
, andQuoteUpdateParams.discounts[]
- Add support for
discounts
onInvoiceUpcomingLinesParams.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
, andSubscription
- Change type of
Invoice.discounts
fromarray(expandable(deletable($Discount))) | null
toarray(expandable(deletable($Discount)))
- Add support for
allowed_merchant_countries
andblocked_merchant_countries
onIssuing.Card.spending_controls
,Issuing.CardCreateParams.spending_controls
,Issuing.CardUpdateParams.spending_controls
,Issuing.Cardholder.spending_controls
,Issuing.CardholderCreateParams.spending_controls
, andIssuing.CardholderUpdateParams.spending_controls
- Add support for
zip
onPaymentMethodConfigurationCreateParams
,PaymentMethodConfigurationUpdateParams
, andPaymentMethodConfiguration
- Add support for
offline
onSetupAttempt.payment_method_details.card_present
- Add support for
card_present
onSetupIntent.payment_method_options
,SetupIntentConfirmParams.payment_method_options
,SetupIntentCreateParams.payment_method_options
, andSetupIntentUpdateParams.payment_method_options
- Add support for new value
mobile_phone_reader
on enumsTerminal.Reader.device_type
andTerminal.ReaderListParams.device_type
- Change
v14.24.0-beta.1
- #2047 Update generated code for beta
- Add support for
financial_account_transactions
,financial_account
,issuing_card
, andissuing_cards_list
onAccountSessionCreateParams.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
, andsubscription_trial_end
onInvoiceCreatePreviewParams
- Add support for
v14.23.0
- #2046 Update generated code
- Add support for new resources
Billing.MeterEventAdjustment
,Billing.MeterEvent
, andBilling.Meter
- Add support for
create
,deactivate
,list
,reactivate
,retrieve
, andupdate
methods on resourceMeter
- Add support for
create
method on resourcesMeterEventAdjustment
andMeterEvent
- Add support for
amazon_pay_payments
onAccount.capabilities
,AccountCreateParams.capabilities
, andAccountUpdateParams.capabilities
- Add support for new value
verification_failed_representative_authority
on enumsAccount.future_requirements.errors[].code
,Account.requirements.errors[].code
,BankAccount.future_requirements.errors[].code
, andBankAccount.requirements.errors[].code
- Add support for
destination_on_behalf_of_charge_management
onAccountSession.components.payment_details.features
,AccountSession.components.payments.features
,AccountSessionCreateParams.components.payment_details.features
, andAccountSessionCreateParams.components.payments.features
- Add support for
mandate
onCharge.payment_method_details.us_bank_account
,Treasury.InboundTransfer.origin_payment_method_details.us_bank_account
,Treasury.OutboundPayment.destination_payment_method_details.us_bank_account
, andTreasury.OutboundTransfer.destination_payment_method_details.us_bank_account
- Add support for
second_line
onIssuing.CardCreateParams
- Add support for
meter
onPlanCreateParams
,Plan
,Price.recurring
,PriceCreateParams.recurring
, andPriceListParams.recurring
- Add support for new resources
- #2045 esbuild test project fixes
v14.23.0-beta.1
- #2039 Update generated code for beta
- Add support for new resources
Entitlements.ActiveEntitlementSummary
andEntitlements.ActiveEntitlement
- Add support for
list
method on resourceActiveEntitlement
- Add support for
mobilepay
onConfirmationToken.payment_method_preview
andConfirmationTokenCreateParams.testHelpers.payment_method_data
- Add support for new value
mobilepay
on enumConfirmationTokenCreateParams.testHelpers.payment_method_data.type
- Add support for
use_stripe_sdk
onConfirmationToken
- Remove support for
payment_method
onConfirmationToken
- Change type of
ConfirmationToken.mandate_data
fromConfirmationTokensResourceMandateData
toConfirmationTokensResourceMandateData | null
- Add support for new value
mobilepay
on enumConfirmationToken.payment_method_preview.type
- Add support for
metadata
onEntitlements.FeatureCreateParams
andEntitlements.Feature
- Add support for
active
onEntitlements.Feature
- Add support for new value
entitlements.active_entitlement_summary.updated
on enumEvent.type
- Remove support for value
customer.entitlement_summary.updated
from enumEvent.type
- Add support for new value
entitlements.active_entitlement_summary.updated
on enumsWebhookEndpointCreateParams.enabled_events[]
andWebhookEndpointUpdateParams.enabled_events[]
- Remove support for value
customer.entitlement_summary.updated
from enumsWebhookEndpointCreateParams.enabled_events[]
andWebhookEndpointUpdateParams.enabled_events[]
- Add support for new resources
v14.22.0
- #2040 Update generated code
- Add support for new resources
ConfirmationToken
andForwarding.Request
- Add support for
retrieve
method on resourceConfirmationToken
- Add support for
create
,list
, andretrieve
methods on resourceRequest
- Add support for
mobilepay_payments
onAccount.capabilities
,AccountCreateParams.capabilities
, andAccountUpdateParams.capabilities
- Add support for new values
forwarding_api_inactive
,forwarding_api_invalid_parameter
,forwarding_api_upstream_connection_error
, andforwarding_api_upstream_connection_timeout
on enumsInvoice.last_finalization_error.code
,PaymentIntent.last_payment_error.code
,SetupAttempt.setup_error.code
,SetupIntent.last_setup_error.code
, andStripeError.code
- Add support for
mobilepay
onCharge.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
, andSetupIntentUpdateParams.payment_method_data
- Add support for
payment_reference
onCharge.payment_method_details.us_bank_account
- Add support for new value
mobilepay
on enumsCustomerListPaymentMethodsParams.type
,PaymentMethodCreateParams.type
, andPaymentMethodListParams.type
- Add support for
confirmation_token
onPaymentIntentConfirmParams
,PaymentIntentCreateParams
,SetupIntentConfirmParams
, andSetupIntentCreateParams
- Add support for new value
mobilepay
on enumsPaymentIntentConfirmParams.payment_method_data.type
,PaymentIntentCreateParams.payment_method_data.type
,PaymentIntentUpdateParams.payment_method_data.type
,SetupIntentConfirmParams.payment_method_data.type
,SetupIntentCreateParams.payment_method_data.type
, andSetupIntentUpdateParams.payment_method_data.type
- Add support for new value
mobilepay
on enumPaymentMethod.type
- Add support for
name
onTerminal.ConfigurationCreateParams
,Terminal.ConfigurationUpdateParams
, andTerminal.Configuration
- Add support for
payout
onTreasury.ReceivedDebit.linked_flows
- Add support for new resources
- #2043 Don't mutate error.type during minification
v14.22.0-beta.1
- #2036 Update generated code for beta
- Add support for new resources
Billing.MeterEventAdjustment
,Billing.MeterEvent
, andBilling.Meter
- Add support for
create
,deactivate
,list
,reactivate
,retrieve
, andupdate
methods on resourceMeter
- Add support for
create
method on resourcesMeterEventAdjustment
andMeterEvent
- Add support for
create
test helper method on resourceConfirmationToken
- Add support for
add_lines
,remove_lines
, andupdate_lines
methods on resourceInvoice
- Add support for
multibanco
payment method throughout the API. - Add support for
second_line
onIssuing.PhysicalBundle.features
- Add support for
multibanco_display_details
onPaymentIntent.next_action
- Add support for
meter
onPlanCreateParams
,Plan
,Price.recurring
,PriceCreateParams.recurring
, andPriceListParams.recurring
- Add support for new resources
v14.21.0
- #2035 Update generated code
- Add support for new resources
Issuing.PersonalizationDesign
andIssuing.PhysicalBundle
- Add support for
create
,list
,retrieve
, andupdate
methods on resourcePersonalizationDesign
- Add support for
list
andretrieve
methods on resourcePhysicalBundle
- Add support for
personalization_design
onIssuing.CardCreateParams
,Issuing.CardListParams
,Issuing.CardUpdateParams
, andIssuing.Card
- Change type of
SubscriptionCreateParams.application_fee_percent
andSubscriptionUpdateParams.application_fee_percent
fromnumber
toemptyStringable(number)
- Add support for
sepa_debit
onSubscription.payment_settings.payment_method_options
,SubscriptionCreateParams.payment_settings.payment_method_options
, andSubscriptionUpdateParams.payment_settings.payment_method_options
- Add support for new resources