lib/revo/loans_api/client.rb in revo-loans_api-0.0.14 vs lib/revo/loans_api/client.rb in revo-loans_api-0.0.15

- old
+ new

@@ -148,15 +148,20 @@ def create_card_loan(token:, term_id:) make_request(:post, "loan_requests/#{token}/card_loan", term_id: term_id) end - def send_billing_shift_confirmation_code(mobile_phone:) - make_request(:post, 'clients/billing_shift', mobile_phone: mobile_phone) + def send_billing_shift_confirmation_code(client_id:) + make_request(:post, "clients/#{client_id}/billing_shift") end - def billing_shift_info(mobile_phone:) - make_request(:get, "clients/billing_shift/info?mobile_phone=#{mobile_phone}") + def billing_shift_info(client_id:) + make_request(:get, "clients/#{client_id}/billing_shift/info") + end + + def confirm_billing_shift(client_id:, code:, billing_chain:) + make_request(:post, "clients/#{client_id}/billing_shift/confirmation", + code: code, billing_chain: billing_chain) end def increase_client_limit(client_id:, amount:) make_request(:patch, "clients/#{client_id}/limit", amount: amount) end