revo-loans_api 0.0.41 → 0.0.46
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/lib/revo/loans_api/client.rb +18 -4
- 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: b13b7c9dd8576cb5d46192c7af6d7b028ca677095fb960326db9c1a08be70989
|
4
|
+
data.tar.gz: 3d7c19de2361f080b31844ae4ff6da97e3173154fd1853b7ecedbbf8ed1a3afe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af6aece0a331331af494291077b69c2ce10e014ec6249e8010874cd598c57e210eedba571eb640f49cc2186a260f87c2a14821c4698b6f96b2bcb24eeb9c3b9a
|
7
|
+
data.tar.gz: cd482417dd0cd2dedd049ec7b244eb43d15787f9c40fffd495035e1d09ead289e1b17739843a0b1f9b0d2c65a028da09933e257e3003c325e026b10d88a5d02b
|
data/Gemfile.lock
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
revo-loans_api (0.0.
|
4
|
+
revo-loans_api (0.0.46)
|
5
5
|
activesupport
|
6
6
|
http
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (6.1.3)
|
11
|
+
activesupport (6.1.3.1)
|
12
12
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
13
13
|
i18n (>= 1.6, < 2)
|
14
14
|
minitest (>= 5.1)
|
@@ -38,7 +38,7 @@ GEM
|
|
38
38
|
http-form_data (2.3.0)
|
39
39
|
http-parser (1.2.3)
|
40
40
|
ffi-compiler (>= 1.0, < 2.0)
|
41
|
-
i18n (1.8.
|
41
|
+
i18n (1.8.10)
|
42
42
|
concurrent-ruby (~> 1.0)
|
43
43
|
minitest (5.14.4)
|
44
44
|
public_suffix (4.0.1)
|
@@ -106,7 +106,8 @@ class Revo::LoansApi::Client
|
|
106
106
|
make_request(
|
107
107
|
:post,
|
108
108
|
"loan_requests/#{token}/confirmation",
|
109
|
-
params: { code: code }
|
109
|
+
params: { code: code },
|
110
|
+
headers: { 'Application-Source': application_source }
|
110
111
|
)
|
111
112
|
end
|
112
113
|
|
@@ -251,9 +252,13 @@ class Revo::LoansApi::Client
|
|
251
252
|
make_request(:get, "clients/#{client_id}/billing_shift/info")
|
252
253
|
end
|
253
254
|
|
254
|
-
def billing_shift_document(client_id:, billing_chain:)
|
255
|
-
|
256
|
-
|
255
|
+
def billing_shift_document(client_id:, billing_chain: nil, billing_shift_id: nil)
|
256
|
+
if billing_shift_id
|
257
|
+
make_request(:get, "clients/#{client_id}/billing_shift/#{billing_shift_id}")
|
258
|
+
else
|
259
|
+
make_request(:get, "clients/#{client_id}/billing_shift/agreement",
|
260
|
+
params: { billing_chain: billing_chain })
|
261
|
+
end
|
257
262
|
end
|
258
263
|
|
259
264
|
def send_restructuring_confirmation_code(client_id:, product:)
|
@@ -314,6 +319,15 @@ class Revo::LoansApi::Client
|
|
314
319
|
)
|
315
320
|
end
|
316
321
|
|
322
|
+
def certificate(loan_application_id:, kind:)
|
323
|
+
make_request(
|
324
|
+
:post,
|
325
|
+
"loan_applications/#{loan_application_id}/certificate",
|
326
|
+
params: { kind: kind }
|
327
|
+
)
|
328
|
+
end
|
329
|
+
|
330
|
+
|
317
331
|
private
|
318
332
|
|
319
333
|
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.46
|
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-04-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|