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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add back Subscription.delete #753

Merged

Conversation

inooid
Copy link
Contributor

@inooid inooid commented Sep 22, 2022

Description

It seems that with the Stripe API version upgrade we accidentally deleted the way for subscriptions to be cancelled.
The Stripe API docs (and their SDK) still mention the subscription.del(). This PR is just a recovery of the previous version &delete/1, &delete/2 and &delete/3 methods (minus the deprecated params).

Note: I have stripped off the deprecated params as they are also not referenced in the docs anymore 馃憤

Fixes #750

Comment on lines +108 to +110

assert {:ok, %Stripe.SearchResult{data: subscriptions}} =
Stripe.Subscription.search(%{query: query})
Stripe.Subscription.search(%{query: query})
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

鈩癸笍 Seems that these changes were done by mix format on this file 馃か

@snewcomer
Copy link
Collaborator

@inooid Mind bringing in the latest with a CI fix so we can get this PR green?

@inooid
Copy link
Contributor Author

inooid commented Sep 26, 2022

@snewcomer for sure! I am currently feeling a bit under the weather, so if you feel like it needs to be wrapped up asap then please go ahead and make another PR to update it by yourself 馃憤 If you want to wait until I am recovered (hopefully next 1-2 days 馃) I'll wrap it up myself 馃憣

@snewcomer snewcomer merged commit c77a189 into beam-community:master Sep 26, 2022
@inooid inooid deleted the add-delete-back-to-subscription branch October 3, 2022 09:27
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.

Removal of Subscription.delete
2 participants