lib/billimatic/resources/subscription.rb in billimatic-client-0.6.0 vs lib/billimatic/resources/subscription.rb in billimatic-client-0.7.0
- old
+ new
@@ -7,9 +7,17 @@
http.get("#{resource_base_path}/token/#{token}") do |response|
respond_with_entity(response)
end
end
+ def checkout(params, token:)
+ http.post(
+ "#{resource_base_path}/checkout/#{token}", body: { subscription: params }
+ ) do |response|
+ respond_with_entity response
+ end
+ end
+
def cancel(token:)
http.patch("#{resource_base_path}/#{token}/cancel") do |response|
respond_with_entity response
end
end