revo-loans_api 0.0.46 → 0.0.51
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 +47 -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: 07d3724a4ce9bc363e1f4cc40bbe0b37cae80ef9f20e547b2cc9902004dc2af8
|
4
|
+
data.tar.gz: fdd4fa41002ad7758effd685a2703e65117bbdc7d23b0e1cbb21826fb9b98156
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93cc0edbeb96840629367a617532ea66524704ffb32de4049e02a0b034702ee49f28b0e09c50cd1d25bfd2e43b8d27330710354db96ddfe7ee33dade51a11212
|
7
|
+
data.tar.gz: 5e172c3c91e0e6c80d741c9e7097dab76e84fc081fd36e0a1f67b61b38220eb787cc4c1e487697af3433a5b3cc17605c7bd0e550f4ef4ad20f948cab8cb0aa27
|
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
|
@@ -248,6 +250,18 @@ class Revo::LoansApi::Client
|
|
248
250
|
)
|
249
251
|
end
|
250
252
|
|
253
|
+
def send_billing_shift_confirmation_code(client_id:)
|
254
|
+
make_request(:post, "clients/#{client_id}/billing_shift")
|
255
|
+
end
|
256
|
+
|
257
|
+
def confirm_billing_shift(client_id:, code:, billing_chain:)
|
258
|
+
make_request(
|
259
|
+
:post,
|
260
|
+
"clients/#{client_id}/billing_shift/confirmation",
|
261
|
+
params: { code: code, billing_chain: billing_chain }
|
262
|
+
)
|
263
|
+
end
|
264
|
+
|
251
265
|
def billing_shift_info(client_id:)
|
252
266
|
make_request(:get, "clients/#{client_id}/billing_shift/info")
|
253
267
|
end
|
@@ -327,6 +341,33 @@ class Revo::LoansApi::Client
|
|
327
341
|
)
|
328
342
|
end
|
329
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
|
330
371
|
|
331
372
|
private
|
332
373
|
|
@@ -335,7 +376,11 @@ class Revo::LoansApi::Client
|
|
335
376
|
attr_reader :base_url, :login, :password, :application_source
|
336
377
|
|
337
378
|
def connection
|
338
|
-
@connection ||=
|
379
|
+
@connection ||= if @timeouts.present?
|
380
|
+
HTTP.timeout(@timeouts).persistent(base_url)
|
381
|
+
else
|
382
|
+
HTTP.persistent(base_url)
|
383
|
+
end
|
339
384
|
end
|
340
385
|
|
341
386
|
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.51
|
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-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|