lib/billimatic/resources/subscription.rb in billimatic-client-0.1.2 vs lib/billimatic/resources/subscription.rb in billimatic-client-0.2.1
- old
+ new
@@ -12,8 +12,12 @@
def cancel(token:)
http.patch("#{resource_base_path}/#{token}/cancel") do |response|
respond_with_entity response
end
end
+
+ def checkout_url(token:)
+ "#{Billimatic.configuration.host}#{resource_base_path}/checkout/#{token}"
+ end
end
end
end