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

Next major release changes #1144

Merged
merged 11 commits into from
Nov 16, 2022
Merged

Next major release changes #1144

merged 11 commits into from
Nov 16, 2022

Conversation

pakrym-stripe
Copy link
Contributor

@pakrym-stripe pakrym-stripe commented Nov 7, 2022

Changelog

8.0.0 - 2022-11-15

Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-11-15.

"⚠️" symbol highlights breaking changes.

Deprecated

  • The save method is deprecated. Prefer the static update method that doesn't require retrieval of the resource to update it.
    # before
    refund = Stripe::Refund.retrieve("re_123")
    refund.description = "Refund description"
    refund.save
    
    # after
    Stripe::Refund.update("re_123", description: "Refund description")

⚠️ Removed

  • Removed deprecated Sku resource.
  • Removed deprecated Orders resource.
  • Removed deprecated delete method on Subscription resource. Please use cancel method instead.
    # before
    Stripe::Subscription::delete("sub_12345")
    
    # after
    Stripe::Subscription::cancel("sub_12345")

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.

3 participants