Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for APIs in the new API version 2024-09-30.acacia #2192

Merged
merged 8 commits into from
Oct 1, 2024

Conversation

ramya-stripe
Copy link
Contributor

@ramya-stripe ramya-stripe commented Sep 27, 2024

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

  • 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

stripe-openapi bot and others added 2 commits September 26, 2024 11:36
* Update generated code for v1267

* Update generated code for v1268

* Update generated code for v1268

---------

Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com>
@ramya-stripe ramya-stripe requested a review from a team as a code owner September 27, 2024 21:40
@ramya-stripe ramya-stripe requested review from jar-stripe and removed request for a team September 27, 2024 21:40
@ramya-stripe ramya-stripe changed the title Support for APIs in the new API version 2024-09-30 Support for APIs in the new API version 2024-09-30.acacia Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants