lib/paddle/models/subscription.rb in paddle-2.1.1 vs lib/paddle/models/subscription.rb in paddle-2.1.2
- old
+ new
@@ -49,9 +49,14 @@
def cancel(id:, **params)
response = Client.post_request("subscriptions/#{id}/cancel", body: params)
Subscription.new(response.body["data"])
end
+ def activate(id:)
+ response = Client.post_request("subscriptions/#{id}/activate")
+ Subscription.new(response.body["data"])
+ end
+
end
end
end