lib/billimatic/resources/subscription.rb in billimatic-client-0.8.0 vs lib/billimatic/resources/subscription.rb in billimatic-client-0.9.0

- old
+ new

@@ -24,9 +24,27 @@ ) do |response| respond_with_entity response end end + def retry_charge(params, token:, invoice_id:) + http.patch( + "#{resource_base_path}/#{token}/#{invoice_id}/retry", + body: { subscription: params } + ) 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 + def cancel(token:) http.patch("#{resource_base_path}/#{token}/cancel") do |response| respond_with_entity response end end