revo-loans_api 0.0.47 → 0.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/revo/loans_api/client.rb +39 -2
- data/lib/revo/loans_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7271f954153532e2de3ab9d4f114bf0287f56c2a6a6c98050a13462e0805caf
|
|
4
|
+
data.tar.gz: e9eccc1d9ba364273d23b424499bb511ea6099ad9110130602e9f3529ac19be9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d5daf3f4521c8274dc363a7a4e631128220734694a371432309e183278cf899f51607917056df142ba0034c765a55b29126d6826d7fd378bea3726902cd7fac1
|
|
7
|
+
data.tar.gz: 759b6825029af8b5da61593084f265245d99ce59ff34586e350567d662997345f37e8cbfd7be34d07e0efc76e323ed2696a4456b44a030b275f93a03303ea56c
|
data/Gemfile.lock
CHANGED
|
@@ -17,13 +17,15 @@ class Revo::LoansApi::Client
|
|
|
17
17
|
login: nil,
|
|
18
18
|
password: nil,
|
|
19
19
|
session_token: nil,
|
|
20
|
-
application_source: nil
|
|
20
|
+
application_source: nil,
|
|
21
|
+
timeouts: nil
|
|
21
22
|
)
|
|
22
23
|
@base_url = base_url
|
|
23
24
|
@login = login
|
|
24
25
|
@password = password
|
|
25
26
|
@session_token = session_token
|
|
26
27
|
@application_source = application_source
|
|
28
|
+
@timeouts = timeouts
|
|
27
29
|
end
|
|
28
30
|
|
|
29
31
|
def create_session
|
|
@@ -339,6 +341,37 @@ class Revo::LoansApi::Client
|
|
|
339
341
|
)
|
|
340
342
|
end
|
|
341
343
|
|
|
344
|
+
def create_credit_report(client_id:)
|
|
345
|
+
make_request(:post, "clients/#{client_id}/credit_ratings")
|
|
346
|
+
end
|
|
347
|
+
|
|
348
|
+
def credit_reports_list(client_id:)
|
|
349
|
+
make_request(:get, "clients/#{client_id}/credit_ratings")
|
|
350
|
+
end
|
|
351
|
+
|
|
352
|
+
def credit_report(client_id:, report_id:)
|
|
353
|
+
make_request(:get, "clients/#{client_id}/credit_ratings/#{report_id}")
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
def credit_report_document(client_id:, report_id:)
|
|
357
|
+
make_request(:get, "clients/#{client_id}/credit_ratings/#{report_id}/document")
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
def update_client_address(id:, address:)
|
|
361
|
+
make_request(:post, "clients/#{id}/address", params: { address: address })
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
def suggest_address(id:, address:)
|
|
365
|
+
make_request(:get, "clients/#{id}/address", params: { address: address })
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
def create_stretch_document(id:, payload:)
|
|
369
|
+
make_request(:post, "offer/stretch/#{id}", params: { payload: payload })
|
|
370
|
+
end
|
|
371
|
+
|
|
372
|
+
def update_credit_facility(id:, fields:)
|
|
373
|
+
make_request(:post, "api/billing/v1/credit_facilities/#{id}", params: { fields: fields })
|
|
374
|
+
end
|
|
342
375
|
|
|
343
376
|
private
|
|
344
377
|
|
|
@@ -347,7 +380,11 @@ class Revo::LoansApi::Client
|
|
|
347
380
|
attr_reader :base_url, :login, :password, :application_source
|
|
348
381
|
|
|
349
382
|
def connection
|
|
350
|
-
@connection ||=
|
|
383
|
+
@connection ||= if @timeouts.present?
|
|
384
|
+
HTTP.timeout(@timeouts).persistent(base_url)
|
|
385
|
+
else
|
|
386
|
+
HTTP.persistent(base_url)
|
|
387
|
+
end
|
|
351
388
|
end
|
|
352
389
|
|
|
353
390
|
def loan_request_terms(&block)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: revo-loans_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.52
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Revo Developers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-
|
|
11
|
+
date: 2021-09-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: http
|