lib/revo/loans_api/client.rb in revo-loans_api-0.0.18 vs lib/revo/loans_api/client.rb in revo-loans_api-0.0.19
- old
+ new
@@ -192,10 +192,10 @@
def loan_request_terms(&block)
result = make_request(:get, "loan_requests/#{loan_request_token}", &block)
return result if result.success?
- Result.new(success?: false, response: { errors: { loan_request_terms: [:cant_fetch] } })
+ Result.new(success?: false, response: { errors: { base: [:cant_fetch_loan_request_terms] } })
end
def make_request(method, endpoint, params = {}, &block)
headers = { Authorization: session_token }.compact
response = connection.public_send(method, url_for(endpoint), json: params, headers: headers)