lib/revo/loans_api/client.rb in revo-loans_api-0.0.55 vs lib/revo/loans_api/client.rb in revo-loans_api-0.0.56

- old
+ new

@@ -365,12 +365,12 @@ "loan_applications/#{loan_application_id}/certificate", params: { kind: kind } ) end - def create_credit_report(client_id:) - make_request(:post, "clients/#{client_id}/credit_ratings") + def buy_credit_report(client_id:, report_id:) + make_request(:post, "clients/#{client_id}/credit_ratings/#{report_id}/buy") end def credit_reports_list(client_id:) make_request(:get, "clients/#{client_id}/credit_ratings") end @@ -379,9 +379,13 @@ make_request(:get, "clients/#{client_id}/credit_ratings/#{report_id}") end def credit_report_document(client_id:, report_id:) make_request(:get, "clients/#{client_id}/credit_ratings/#{report_id}/document") + end + + def credit_report_set_free(client_id:) + make_request(:post, "clients/#{client_id}/credit_ratings/set_free") end def update_client_address(id:, address:) make_request(:post, "clients/#{id}/address", params: { address: address }) end