revo-loans_api 0.0.35 → 0.0.40
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +14 -15
- data/lib/revo/loans_api/client.rb +12 -0
- 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: d43f5bb9793e9720faa97fa222651704f08444d89205d6df1866a50e1c262a53
|
4
|
+
data.tar.gz: be2da2a0de4cd96e04ba3c79a4d54020988468a5b930341372c81fbf222c45aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 393c2b72b6b38c7c1d5f8511d9f3a1148b4c7200e673212360ce28ce9fcac8cacae6fea4b7b57530a385ea70da633541713abb0af5b52f499183d3b50ec60148
|
7
|
+
data.tar.gz: f2e12da53daa6c37cb166b685d536e8fad61a772fe76b21f5455565ee1a34ff9118c62c12841e25a5c68e5ae895232451d9e08ed7ba2cb436d6777194810a06d
|
data/Gemfile.lock
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
revo-loans_api (0.0.
|
4
|
+
revo-loans_api (0.0.40)
|
5
5
|
activesupport
|
6
6
|
http
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (6.
|
11
|
+
activesupport (6.1.3)
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
|
-
i18n (>=
|
14
|
-
minitest (
|
15
|
-
tzinfo (~>
|
16
|
-
zeitwerk (~> 2.
|
13
|
+
i18n (>= 1.6, < 2)
|
14
|
+
minitest (>= 5.1)
|
15
|
+
tzinfo (~> 2.0)
|
16
|
+
zeitwerk (~> 2.3)
|
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.8)
|
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.
|
26
|
+
ffi (1.15.0)
|
27
27
|
ffi-compiler (1.0.1)
|
28
28
|
ffi (>= 1.0.0)
|
29
29
|
rake
|
@@ -36,11 +36,11 @@ GEM
|
|
36
36
|
http-cookie (1.0.3)
|
37
37
|
domain_name (~> 0.5)
|
38
38
|
http-form_data (2.3.0)
|
39
|
-
http-parser (1.2.
|
39
|
+
http-parser (1.2.3)
|
40
40
|
ffi-compiler (>= 1.0, < 2.0)
|
41
|
-
i18n (1.8.
|
41
|
+
i18n (1.8.9)
|
42
42
|
concurrent-ruby (~> 1.0)
|
43
|
-
minitest (5.14.
|
43
|
+
minitest (5.14.4)
|
44
44
|
public_suffix (4.0.1)
|
45
45
|
rake (10.5.0)
|
46
46
|
rspec (3.9.0)
|
@@ -57,9 +57,8 @@ GEM
|
|
57
57
|
rspec-support (~> 3.9.0)
|
58
58
|
rspec-support (3.9.0)
|
59
59
|
safe_yaml (1.0.5)
|
60
|
-
|
61
|
-
|
62
|
-
thread_safe (~> 0.1)
|
60
|
+
tzinfo (2.0.4)
|
61
|
+
concurrent-ruby (~> 1.0)
|
63
62
|
unf (0.1.4)
|
64
63
|
unf_ext
|
65
64
|
unf_ext (0.0.7.7)
|
@@ -68,7 +67,7 @@ GEM
|
|
68
67
|
addressable (>= 2.3.6)
|
69
68
|
crack (>= 0.3.2)
|
70
69
|
hashdiff (>= 0.4.0, < 2.0.0)
|
71
|
-
zeitwerk (2.4.
|
70
|
+
zeitwerk (2.4.2)
|
72
71
|
|
73
72
|
PLATFORMS
|
74
73
|
ruby
|
@@ -255,6 +255,11 @@ class Revo::LoansApi::Client
|
|
255
255
|
)
|
256
256
|
end
|
257
257
|
|
258
|
+
def billing_shift_document(client_id:, billing_chain:)
|
259
|
+
make_request(:get, "clients/#{client_id}/billing_shift/agreement",
|
260
|
+
params: { billing_chain: billing_chain })
|
261
|
+
end
|
262
|
+
|
258
263
|
def send_restructuring_confirmation_code(client_id:, product:)
|
259
264
|
make_request(:post, "clients/#{client_id}/restructuring/#{product}")
|
260
265
|
end
|
@@ -306,6 +311,13 @@ class Revo::LoansApi::Client
|
|
306
311
|
)
|
307
312
|
end
|
308
313
|
|
314
|
+
def store_document(store_id:, kind:, format: :pdf)
|
315
|
+
make_request(
|
316
|
+
:get,
|
317
|
+
"stores/#{store_id}/documents/#{kind}.#{format}"
|
318
|
+
)
|
319
|
+
end
|
320
|
+
|
309
321
|
private
|
310
322
|
|
311
323
|
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.40
|
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: 2021-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|