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 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
Add method parseThinEvent() on the Stripe 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 and BillingPortal.ConfigurationCreateParams.features.subscription_update.products to be optional
Changelog
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
usage_threshold_config
tousage_threshold
onBilling.AlertCreateParams
andBilling.Alert
filter
onBilling.AlertCreateParams
andBilling.Alert
. Use the filters on theusage_threshold
insteadcustomer_consent_collected
onTerminal.ReaderProcessSetupIntentParams
.⚠️ Other Breaking changes in the SDK
1
->2
2
->5
Additions
custom_unit_amount
onProductCreateParams.default_price_data
allow_redisplay
onTerminal.ReaderProcessPaymentIntentParams.process_config
andTerminal.ReaderProcessSetupIntentParams
international_transaction
on enumTreasury.ReceivedCredit.failure_code
2024-09-30.acacia
on enumWebhookEndpointCreateParams.api_version
Billing.MeterEvent
,Billing.MeterEventAdjustments
,Billing.MeterEventSession
,Billing.MeterEventStream
and the new Events APICore.Events
in the v2 namespaceparseThinEvent()
on theStripe
class to parse thin events.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
BillingPortal.ConfigurationCreateParams.features.subscription_update.default_allowed_updates
andBillingPortal.ConfigurationCreateParams.features.subscription_update.products
to be optional