Releases: stripe/stripe-node
Releases · stripe/stripe-node
v17.0.0
-
#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 and carefully review the API changes before upgrading.⚠️ Breaking changes due to changes in the Stripe API- Rename
usage_threshold_config
tousage_threshold
onBilling.AlertCreateParams
andBilling.Alert
- Remove support for
filter
onBilling.AlertCreateParams
andBilling.Alert
. Use the filters on theusage_threshold
instead - Remove support for
customer_consent_collected
onTerminal.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
- max retries:
Additions
- Add support for
custom_unit_amount
onProductCreateParams.default_price_data
- Add support for
allow_redisplay
onTerminal.ReaderProcessPaymentIntentParams.process_config
andTerminal.ReaderProcessSetupIntentParams
- Add support for new value
international_transaction
on enumTreasury.ReceivedCredit.failure_code
- Add support for new value
2024-09-30.acacia
on enumWebhookEndpointCreateParams.api_version
- Add support for new Usage Billing APIs
Billing.MeterEvent
,Billing.MeterEventAdjustments
,Billing.MeterEventSession
,Billing.MeterEventStream
and the new Events APICore.Events
in the v2 namespace - Add method
parseThinEvent()
on theStripe
class to parse thin events. - Add method rawRequest() 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
andBillingPortal.ConfigurationCreateParams.features.subscription_update.products
to be optional
- Rename
v16.13.0-beta.1
- #2178 Update generated code for beta
- Remove support for resource
QuotePhase
- Remove support for
list_line_items
andretrieve
methods on resourceQuotePhase
- Add support for
send_money
andtransfer_balance
onAccountSessionCreateParams.components.financial_account.features
- Add support for new value
rechnung
on enumsPaymentLink.payment_method_types[]
,PaymentLinkCreateParams.payment_method_types[]
, andPaymentLinkUpdateParams.payment_method_types[]
- Change
Quote.subscription_data_overrides[].end_behavior
to be optional
- Remove support for resource
v16.12.0
- #2177 Update generated code
- Add support for new value
international_transaction
on enumTreasury.ReceivedDebit.failure_code
- Add support for new value
- #2175 Update generated code
- Add support for new value
verification_supportability
on enumsAccount.future_requirements.errors[].code
,Account.requirements.errors[].code
,BankAccount.future_requirements.errors[].code
, andBankAccount.requirements.errors[].code
- Add support for new value
terminal_reader_invalid_location_for_activation
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
payer_details
onCharge.payment_method_details.klarna
- Add support for
amazon_pay
onDispute.payment_method_details
- Add support for new value
amazon_pay
on enumDispute.payment_method_details.type
- Add support for
automatically_finalizes_at
onInvoice
- Add support for
state_sales_tax
onTax.Registration.country_options.us
andTax.RegistrationCreateParams.country_options.us
- Add support for new value
v16.12.0-beta.1
- #2170 Update generated code for beta
- Add support for new resources
Issuing.DisputeSettlementDetail
andIssuing.Settlement
- Add support for
list
andretrieve
methods on resourceDisputeSettlementDetail
- Remove support for
list
method on resourceQuotePhase
- Add support for new value
rechnung
on enumCheckout.SessionCreateParams.payment_method_types[]
- Add support for new values
issuing_dispute_settlement_detail.created
,issuing_dispute_settlement_detail.updated
,issuing_settlement.created
, andissuing_settlement.updated
on enumEvent.type
- Add support for
settlement
onIssuing.TransactionListParams
andIssuing.Transaction
- Add support for new values
issuing_dispute_settlement_detail.created
,issuing_dispute_settlement_detail.updated
,issuing_settlement.created
, andissuing_settlement.updated
on enumsWebhookEndpointCreateParams.enabled_events[]
andWebhookEndpointUpdateParams.enabled_events[]
- Add support for new resources
v16.11.0
- #2171 Update generated code
- Add support for new resource
InvoiceRenderingTemplate
- Add support for
archive
,list
,retrieve
, andunarchive
methods on resourceInvoiceRenderingTemplate
- Add support for
required
onCheckout.Session.tax_id_collection
,Checkout.SessionCreateParams.tax_id_collection
,PaymentLink.tax_id_collection
,PaymentLinkCreateParams.tax_id_collection
, andPaymentLinkUpdateParams.tax_id_collection
- Add support for
template
onCustomer.invoice_settings.rendering_options
,CustomerCreateParams.invoice_settings.rendering_options
,CustomerUpdateParams.invoice_settings.rendering_options
,Invoice.rendering
,InvoiceCreateParams.rendering
, andInvoiceUpdateParams.rendering
- Add support for
template_version
onInvoice.rendering
,InvoiceCreateParams.rendering
, andInvoiceUpdateParams.rendering
- Add support for new value
submitted
on enumIssuing.Card.shipping.status
- Change
TestHelpers.TestClock.status_details
to be required
- Add support for new resource
- #2172 Null out empty data sent to GET/DELETE APIs
v16.11.0-beta.1
- #2162 Update generated code for beta
- Add support for new resources
Billing.MeterErrorReport
andTerminal.ReaderCollectedData
- Add support for
retrieve
method on resourceReaderCollectedData
- Add support for
recipients
onAccountSessionCreateParams.components
- Add support for new value
terminal_reader_collected_data_invalid
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 new value
mb_way
on enumCheckout.SessionCreateParams.payment_method_types[]
- Add support for
business_name
,email
,phone
, andtax_ids
onCheckout.Session.collected_information
- Add support for new value
billing.meter_error_report.triggered
on enumEvent.type
- Add support for
regulatory_reporting_file
onIssuing.CreditUnderwritingRecordCorrectParams
,Issuing.CreditUnderwritingRecordCreateFromProactiveReviewParams
,Issuing.CreditUnderwritingRecordReportDecisionParams
, andIssuing.CreditUnderwritingRecord
- Add support for new value
mb_way
on enumsPaymentLink.payment_method_types[]
,PaymentLinkCreateParams.payment_method_types[]
, andPaymentLinkUpdateParams.payment_method_types[]
- Remove support for
rechnung
onPaymentMethodUpdateParams
- Add support for new value
billing.meter_error_report.triggered
on enumsWebhookEndpointCreateParams.enabled_events[]
andWebhookEndpointUpdateParams.enabled_events[]
- Add support for new resources
v16.10.0
- #2158 Update generated code
- Add support for
subscription_item
andsubscription
onBilling.AlertCreateParams.filter
- Change
Terminal.ReaderProcessSetupIntentParams.customer_consent_collected
to be optional
- Add support for
v16.9.0
- #2163 Generate SDK for OpenAPI spec version 1230
- Change
AccountLinkCreateParams.collection_options.fields
andLineItem.description
to be optional - Add support for new value
hr_oib
on enumsCheckout.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
, andTaxId.type
- Add support for new value
hr_oib
on enumsCustomerCreateParams.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
, andTaxIdCreateParams.type
- Add support for new value
issuing_regulatory_reporting
on enumsFile.purpose
andFileListParams.purpose
- Add support for new value
issuing_regulatory_reporting
on enumFileCreateParams.purpose
- Change
Issuing.Card.shipping.address_validation
to be required - Add support for
status_details
onTestHelpers.TestClock
- Change
v16.9.0-beta.2
- #2159 Update generated code for beta
- Add support for
mb_way_payments
onAccount.capabilities
,AccountCreateParams.capabilities
, andAccountUpdateParams.capabilities
- Add support for
mb_way
onCharge.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
, andSetupIntentUpdateParams.payment_method_data
- Add support for new value
mb_way
on enumsConfirmationTokenCreateParams.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
, andSetupIntentUpdateParams.payment_method_data.type
- Add support for new value
mb_way
on enumsConfirmationToken.payment_method_preview.type
andPaymentMethod.type
- Add support for new value
mb_way
on enumsCustomerListPaymentMethodsParams.type
,PaymentMethodCreateParams.type
, andPaymentMethodListParams.type
- Remove support for values
accepted
,partner_rejected
, andsubmitted
from enumDispute.evidence_details.enhanced_eligibility.visa_compelling_evidence_3.status
- Add support for new value
hr_oib
on enumsOrderCreateParams.tax_details.tax_ids[].type
andOrderUpdateParams.tax_details.tax_ids[].type
- Add support for new value
hr_oib
on enumOrder.tax_details.tax_ids[].type
- Remove support for
phases
onQuoteCreateParams
andQuoteUpdateParams
- Remove support for
from_schedule
onQuoteCreateParams.subscription_data
- Add support for
v16.9.0-beta.1
- #2157 Update generated code for beta
- Add support for
capital_financing_application
andcapital_financing
onAccountSessionCreateParams.components
- Add support for
permissions
onCheckout.SessionCreateParams
andCheckout.Session
- Add support for
collected_information
onCheckout.SessionUpdateParams
andCheckout.Session
- Add support for
shipping_options
onCheckout.SessionUpdateParams
- Add support for