revo-loans_api 0.0.26 → 0.0.31
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 +30 -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: 34d660036f9aac6c701004fde84f47447aeee90bbdc6e15d5cac909d8160bff6
|
4
|
+
data.tar.gz: e8eb1911a30fa22c31d820188202cf60910eaf35ed7ab6c7a6285b69a1356f8e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2e9923d61ab00c3819064e953b2c93be92bc80f18af642082dd6cf13b6b779aa6d0f5947d569b16983c8f086023468cf5393c6c6211c07c45980dc03c360c7f
|
7
|
+
data.tar.gz: 94b280708bd2474e58c44485a1c27dc3ff3ac366a89b63a6931db7fd95f29eb4e8247553293d7f5c23f3025a67316d5a48e6f126e791863baf45a5ca58244d0d
|
data/Gemfile.lock
CHANGED
@@ -225,11 +225,11 @@ class Revo::LoansApi::Client
|
|
225
225
|
)
|
226
226
|
end
|
227
227
|
|
228
|
-
def create_card_loan(token:, term_id:)
|
228
|
+
def create_card_loan(token:, term_id:, force_approve: false)
|
229
229
|
make_request(
|
230
230
|
:post,
|
231
|
-
"loan_requests/#{token}/
|
232
|
-
params: { term_id: term_id },
|
231
|
+
"loan_requests/#{token}/virtual_card_loan",
|
232
|
+
params: { term_id: term_id, force_approve: force_approve },
|
233
233
|
headers: { 'Application-Source': application_source }
|
234
234
|
)
|
235
235
|
end
|
@@ -250,6 +250,29 @@ class Revo::LoansApi::Client
|
|
250
250
|
)
|
251
251
|
end
|
252
252
|
|
253
|
+
def send_restructuring_confirmation_code(client_id:, product:)
|
254
|
+
make_request(:post, "clients/#{client_id}/restructuring/#{product}")
|
255
|
+
end
|
256
|
+
|
257
|
+
def restructuring_info(client_id:, product:)
|
258
|
+
make_request(:get, "clients/#{client_id}/restructuring/#{product}/info")
|
259
|
+
end
|
260
|
+
|
261
|
+
def confirm_restructuring(client_id:, code:, product:)
|
262
|
+
make_request(
|
263
|
+
:post,
|
264
|
+
"clients/#{client_id}/restructuring/#{product}/confirmation",
|
265
|
+
params: { code: code }
|
266
|
+
)
|
267
|
+
end
|
268
|
+
|
269
|
+
def restructuring_document(client_id:, product:, format: 'pdf')
|
270
|
+
make_request(
|
271
|
+
:get,
|
272
|
+
"clients/#{client_id}/restructuring/#{product}/document.#{format}"
|
273
|
+
)
|
274
|
+
end
|
275
|
+
|
253
276
|
def increase_client_limit(client_id:, amount:)
|
254
277
|
make_request(
|
255
278
|
:patch,
|
@@ -258,6 +281,10 @@ class Revo::LoansApi::Client
|
|
258
281
|
)
|
259
282
|
end
|
260
283
|
|
284
|
+
def get_client_limit(client_id:)
|
285
|
+
make_request(:get, "clients/#{client_id}/limit")
|
286
|
+
end
|
287
|
+
|
261
288
|
def client_loan_documents(client_id:, loan_application_id:)
|
262
289
|
make_request(:get, "clients/#{client_id}/loans/#{loan_application_id}")
|
263
290
|
end
|
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.31
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Revo Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|