revo-loans_api 0.0.25 → 0.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/revo/loans_api/client.rb +32 -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: 79b36f3f82a98c51e287a2daac0a4fed523f86af5cb1177a12dd8473b4e9b65d
|
|
4
|
+
data.tar.gz: 63ca4a074b9fc763ac33677d1f657fba4cf61f5804910f353e1706be8039cf79
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ef2000a1b9ca6ef62a21634afd4b678a1aa1914909a3cd0fef1b05e504763f0c6a67e96bbafab0635729ab828580afbdb43efdc3c8035d281ec02a44bca78d3
|
|
7
|
+
data.tar.gz: 4899943d3c5ed00191a7072210d3c8422f2c40ee7254d56204552e0d07c4300e72223b3667d805322a8defebdb3bdcac40ac0e9b8891b8c178b41345bea74c9b
|
data/Gemfile.lock
CHANGED
|
@@ -199,11 +199,12 @@ class Revo::LoansApi::Client
|
|
|
199
199
|
)
|
|
200
200
|
end
|
|
201
201
|
|
|
202
|
-
def create_client(token:, client_params:, provider_data: {})
|
|
202
|
+
def create_client(token:, client_params:, provider_data: {}, skip_email_confirmation: false)
|
|
203
203
|
make_request(
|
|
204
204
|
:post,
|
|
205
205
|
"loan_requests/#{token}/client",
|
|
206
|
-
params: { client: client_params, provider_data: provider_data
|
|
206
|
+
params: { client: client_params, provider_data: provider_data,
|
|
207
|
+
skip_email_confirmation: skip_email_confirmation }
|
|
207
208
|
)
|
|
208
209
|
end
|
|
209
210
|
|
|
@@ -224,11 +225,11 @@ class Revo::LoansApi::Client
|
|
|
224
225
|
)
|
|
225
226
|
end
|
|
226
227
|
|
|
227
|
-
def create_card_loan(token:, term_id:)
|
|
228
|
+
def create_card_loan(token:, term_id:, force_approve: false)
|
|
228
229
|
make_request(
|
|
229
230
|
:post,
|
|
230
231
|
"loan_requests/#{token}/card_loan",
|
|
231
|
-
params: { term_id: term_id },
|
|
232
|
+
params: { term_id: term_id, force_approve: force_approve },
|
|
232
233
|
headers: { 'Application-Source': application_source }
|
|
233
234
|
)
|
|
234
235
|
end
|
|
@@ -249,6 +250,29 @@ class Revo::LoansApi::Client
|
|
|
249
250
|
)
|
|
250
251
|
end
|
|
251
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
|
+
|
|
252
276
|
def increase_client_limit(client_id:, amount:)
|
|
253
277
|
make_request(
|
|
254
278
|
:patch,
|
|
@@ -257,6 +281,10 @@ class Revo::LoansApi::Client
|
|
|
257
281
|
)
|
|
258
282
|
end
|
|
259
283
|
|
|
284
|
+
def get_client_limit(client_id:)
|
|
285
|
+
make_request(:get, "clients/#{client_id}/limit")
|
|
286
|
+
end
|
|
287
|
+
|
|
260
288
|
def client_loan_documents(client_id:, loan_application_id:)
|
|
261
289
|
make_request(:get, "clients/#{client_id}/loans/#{loan_application_id}")
|
|
262
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.30
|
|
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-06-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: http
|