lib/billimatic/resources/subscription.rb in billimatic-client-0.22.1 vs lib/billimatic/resources/subscription.rb in billimatic-client-1.0.0
- old
+ new
@@ -7,30 +7,13 @@
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 change_plan(token:, new_plan_id:)
http.patch(
"#{resource_base_path}/#{token}/change_plan",
body: { subscription: { new_plan_id: new_plan_id } }
- ) do |response|
- respond_with_entity response
- end
- end
-
- def update_payment_information(params, token:)
- http.patch(
- "#{resource_base_path}/#{token}/update_payment_information",
- body: { subscription: params }
) do |response|
respond_with_entity response
end
end