revo-loans_api 0.0.54 → 0.0.57
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/lib/revo/loans_api/client.rb +19 -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: 3427d1582cea66853789cf73309c09f413360ed37aed8a90b63b32c47102c5c9
|
4
|
+
data.tar.gz: e997bfa7d0527a07a5d55542bd89b9aafaf6aae6502b04c3c87bff602c8a8daa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eae51903b9bc6c83a15fb7fccdb01a6605a2d38bb067f085b6dfd52c35665c06f38b2be282dca1c20a3a450c4927eb2881fa35fbc045a88bbeb3a953c1c099ce
|
7
|
+
data.tar.gz: 17d7cdb670293991518354f93abbf585c73f3f39239a94761e0fe0ed0f5c8340da426a05dd5554217e6bbad661d058e4b8cad5e2461f51395a197e261de19859
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
revo-loans_api (0.0.
|
4
|
+
revo-loans_api (0.0.57)
|
5
5
|
activesupport
|
6
6
|
http
|
7
7
|
|
@@ -17,13 +17,13 @@ GEM
|
|
17
17
|
addressable (2.7.0)
|
18
18
|
public_suffix (>= 2.0.2, < 5.0)
|
19
19
|
byebug (11.0.1)
|
20
|
-
concurrent-ruby (1.1.
|
20
|
+
concurrent-ruby (1.1.9)
|
21
21
|
crack (0.4.3)
|
22
22
|
safe_yaml (~> 1.0.0)
|
23
23
|
diff-lcs (1.3)
|
24
24
|
domain_name (0.5.20190701)
|
25
25
|
unf (>= 0.0.5, < 1.0.0)
|
26
|
-
ffi (1.15.
|
26
|
+
ffi (1.15.4)
|
27
27
|
ffi-compiler (1.0.1)
|
28
28
|
ffi (>= 1.0.0)
|
29
29
|
rake
|
@@ -67,7 +67,7 @@ GEM
|
|
67
67
|
addressable (>= 2.3.6)
|
68
68
|
crack (>= 0.3.2)
|
69
69
|
hashdiff (>= 0.4.0, < 2.0.0)
|
70
|
-
zeitwerk (2.
|
70
|
+
zeitwerk (2.5.1)
|
71
71
|
|
72
72
|
PLATFORMS
|
73
73
|
ruby
|
@@ -243,6 +243,15 @@ class Revo::LoansApi::Client
|
|
243
243
|
)
|
244
244
|
end
|
245
245
|
|
246
|
+
def update_virtual_card(token:, term_id:)
|
247
|
+
make_request(
|
248
|
+
:patch,
|
249
|
+
"loan_requests/#{token}/virtual_card",
|
250
|
+
params: { term_id: term_id },
|
251
|
+
headers: { 'Application-Source': application_source }
|
252
|
+
)
|
253
|
+
end
|
254
|
+
|
246
255
|
def create_card_loan(token:, term_id:, force_approve: false)
|
247
256
|
make_request(
|
248
257
|
:post,
|
@@ -358,8 +367,8 @@ class Revo::LoansApi::Client
|
|
358
367
|
)
|
359
368
|
end
|
360
369
|
|
361
|
-
def
|
362
|
-
make_request(:post, "clients/#{client_id}/credit_ratings")
|
370
|
+
def buy_credit_report(client_id:, report_id:)
|
371
|
+
make_request(:post, "clients/#{client_id}/credit_ratings/#{report_id}/buy")
|
363
372
|
end
|
364
373
|
|
365
374
|
def credit_reports_list(client_id:)
|
@@ -374,6 +383,10 @@ class Revo::LoansApi::Client
|
|
374
383
|
make_request(:get, "clients/#{client_id}/credit_ratings/#{report_id}/document")
|
375
384
|
end
|
376
385
|
|
386
|
+
def credit_report_set_free(client_id:)
|
387
|
+
make_request(:post, "clients/#{client_id}/credit_ratings/set_free")
|
388
|
+
end
|
389
|
+
|
377
390
|
def update_client_address(id:, address:)
|
378
391
|
make_request(:post, "clients/#{id}/address", params: { address: address })
|
379
392
|
end
|
@@ -390,6 +403,10 @@ class Revo::LoansApi::Client
|
|
390
403
|
make_request(:patch, "credit_facilities/#{id}", params: { fields: fields })
|
391
404
|
end
|
392
405
|
|
406
|
+
def nethone(params: {})
|
407
|
+
make_request(:post, "nethone", params: params)
|
408
|
+
end
|
409
|
+
|
393
410
|
private
|
394
411
|
|
395
412
|
API_CONTENT_TYPE = 'application/json'.freeze
|
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.57
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Revo Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|