lib/revo/loans_api/client.rb in revo-loans_api-0.0.49 vs lib/revo/loans_api/client.rb in revo-loans_api-0.0.50
- old
+ new
@@ -355,9 +355,17 @@
def credit_report_document(client_id:, report_id:)
make_request(:get, "clients/#{client_id}/credit_ratings/#{report_id}/document")
end
+ def update_client_address(id:, address:)
+ make_request(:post, "clients/#{id}/address", params: { address: address })
+ end
+
+ def suggest_address(id:, address:)
+ make_request(:get, "clients/#{id}/address", params: { address: address })
+ end
+
private
API_CONTENT_TYPE = 'application/json'.freeze
attr_reader :base_url, :login, :password, :application_source