revo-loans_api 0.0.42 → 0.0.47
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/revo/loans_api/client.rb +23 -1
- 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: f618187b7d79691f0185ab12885b921930c2d5cbd872420dfcf51d777d6c5c81
|
4
|
+
data.tar.gz: d62fe6fc16e180e5077b245395c8c02d5c316f3f0cdbd7a2978f326b9cf25754
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c391be3ca281210466995032b16c686a96a1255704960b4a31fd8a99fc9ea4e100af8ec3ae29a8e7285294f3bb982703c7939ae082ada2b9e78baa93502b4c0a
|
7
|
+
data.tar.gz: f02778458190367fbf1a5b2645e338b2b8089c104991835c632ea8a07a030bbea42456d6224468ee5dd9e26c5326bb651adbc133f3ad837d81334ca97ecc9bf8
|
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.47)
|
5
5
|
activesupport
|
6
6
|
http
|
7
7
|
|
@@ -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
|
|
@@ -247,6 +248,18 @@ class Revo::LoansApi::Client
|
|
247
248
|
)
|
248
249
|
end
|
249
250
|
|
251
|
+
def send_billing_shift_confirmation_code(client_id:)
|
252
|
+
make_request(:post, "clients/#{client_id}/billing_shift")
|
253
|
+
end
|
254
|
+
|
255
|
+
def confirm_billing_shift(client_id:, code:, billing_chain:)
|
256
|
+
make_request(
|
257
|
+
:post,
|
258
|
+
"clients/#{client_id}/billing_shift/confirmation",
|
259
|
+
params: { code: code, billing_chain: billing_chain }
|
260
|
+
)
|
261
|
+
end
|
262
|
+
|
250
263
|
def billing_shift_info(client_id:)
|
251
264
|
make_request(:get, "clients/#{client_id}/billing_shift/info")
|
252
265
|
end
|
@@ -318,6 +331,15 @@ class Revo::LoansApi::Client
|
|
318
331
|
)
|
319
332
|
end
|
320
333
|
|
334
|
+
def certificate(loan_application_id:, kind:)
|
335
|
+
make_request(
|
336
|
+
:post,
|
337
|
+
"loan_applications/#{loan_application_id}/certificate",
|
338
|
+
params: { kind: kind }
|
339
|
+
)
|
340
|
+
end
|
341
|
+
|
342
|
+
|
321
343
|
private
|
322
344
|
|
323
345
|
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.47
|
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-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|