revo-loans_api 0.0.43 → 0.0.49
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/revo/loans_api/client.rb +37 -3
- 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: 481298a52c09f011abd89d17cd309b4d41d520b42bdf009f2d6405f45638f7b5
|
4
|
+
data.tar.gz: 2a812f0642007b6d1c6144459d24af6f4e2f82c70664b62adaae96f6ebd051b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f95221f1033f2d4ba839756eb368375ac1832173c882bc979c120546ed4c594128156ac59fe9199151f787979588b37f973ad8655e5e082a8b7e50e02e5fb03
|
7
|
+
data.tar.gz: bcd9312345c8c718ef108b298f53879406b4bbd0fd1c38c41247ec5698eac09268653bf2e06649c4784acf501c0b4fc4a166b8b849eeedd36942e049ac437356
|
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
|
@@ -106,7 +108,8 @@ class Revo::LoansApi::Client
|
|
106
108
|
make_request(
|
107
109
|
:post,
|
108
110
|
"loan_requests/#{token}/confirmation",
|
109
|
-
params: { code: code }
|
111
|
+
params: { code: code },
|
112
|
+
headers: { 'Application-Source': application_source }
|
110
113
|
)
|
111
114
|
end
|
112
115
|
|
@@ -247,6 +250,18 @@ class Revo::LoansApi::Client
|
|
247
250
|
)
|
248
251
|
end
|
249
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
|
+
|
250
265
|
def billing_shift_info(client_id:)
|
251
266
|
make_request(:get, "clients/#{client_id}/billing_shift/info")
|
252
267
|
end
|
@@ -326,6 +341,21 @@ class Revo::LoansApi::Client
|
|
326
341
|
)
|
327
342
|
end
|
328
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
|
329
359
|
|
330
360
|
private
|
331
361
|
|
@@ -334,7 +364,11 @@ class Revo::LoansApi::Client
|
|
334
364
|
attr_reader :base_url, :login, :password, :application_source
|
335
365
|
|
336
366
|
def connection
|
337
|
-
@connection ||=
|
367
|
+
@connection ||= if @timeouts.present?
|
368
|
+
HTTP.timeout(@timeouts).persistent(base_url)
|
369
|
+
else
|
370
|
+
HTTP.persistent(base_url)
|
371
|
+
end
|
338
372
|
end
|
339
373
|
|
340
374
|
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.49
|
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-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|