Skip to content

Commit

Permalink
New API version (#1145)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardm-stripe authored Nov 9, 2022
1 parent 8c4c4d7 commit bef1b5e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 26 deletions.
2 changes: 1 addition & 1 deletion lib/stripe/api_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

module Stripe
module ApiVersion
CURRENT = "2022-08-01"
CURRENT = "2022-11-09"
end
end
25 changes: 0 additions & 25 deletions lib/stripe/resources/subscription.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,31 +50,6 @@ def self.delete_discount(subscription_exposed_id, params = {}, opts = {})
end

save_nested_resource :source
def delete(params = {}, opts = {})
request_stripe_object(
method: :delete,
path: format("/v1/subscriptions/%<subscription_exposed_id>s", { subscription_exposed_id: CGI.escape(self["id"]) }),
params: params,
opts: opts
)
end

def self.delete(subscription_exposed_id, params = {}, opts = {})
request_stripe_object(
method: :delete,
path: format("/v1/subscriptions/%<subscription_exposed_id>s", { subscription_exposed_id: CGI.escape(subscription_exposed_id) }),
params: params,
opts: opts
)
end

extend Gem::Deprecate
deprecate :delete, "Stripe::Subscription.cancel", 2022, 7

class << self
extend Gem::Deprecate
deprecate :delete, "Stripe::Subscription#cancel", 2022, 7
end

def self.search(params = {}, opts = {})
_search("/v1/subscriptions/search", params, opts)
Expand Down

0 comments on commit bef1b5e

Please sign in to comment.