lib/revo/loans_api/client.rb in revo-loans_api-0.0.4 vs lib/revo/loans_api/client.rb in revo-loans_api-0.0.7

- old
+ new

@@ -122,9 +122,21 @@ def create_client(token:, client_params:, provider_data: {}) make_request(:post, "loan_requests/#{token}/client", client: client_params, provider_data: provider_data) end + def update_client(id:, client_params:) + make_request(:patch, "/clients/#{id}", client: client_params) + end + + def create_virtual_card(token:) + make_request(:post, "loan_requests/#{token}/virtual_card") + end + + def create_card_loan(token:, term_id:) + make_request(:post, "loan_requests/#{token}/card_loan", term_id: term_id) + end + private attr_reader :connection, :base_url, :login, :password def connection