From bef1b5e9d1e72983c8cd2bbb009290c4f496977d Mon Sep 17 00:00:00 2001 From: Richard Marmorstein <52928443+richardm-stripe@users.noreply.github.com> Date: Wed, 9 Nov 2022 13:16:59 -0800 Subject: [PATCH] New API version (#1145) --- lib/stripe/api_version.rb | 2 +- lib/stripe/resources/subscription.rb | 25 ------------------------- 2 files changed, 1 insertion(+), 26 deletions(-) diff --git a/lib/stripe/api_version.rb b/lib/stripe/api_version.rb index 9244d4ee2..b34ad87ba 100644 --- a/lib/stripe/api_version.rb +++ b/lib/stripe/api_version.rb @@ -3,6 +3,6 @@ module Stripe module ApiVersion - CURRENT = "2022-08-01" + CURRENT = "2022-11-09" end end diff --git a/lib/stripe/resources/subscription.rb b/lib/stripe/resources/subscription.rb index 7c9cbb1e8..ee14a68f0 100644 --- a/lib/stripe/resources/subscription.rb +++ b/lib/stripe/resources/subscription.rb @@ -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/%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/%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)