revo-loans_api 0.0.25 → 0.0.30

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 265c7e09a0abebc6d432aa0de2b1b2af5b84ad02c20d1098ad0bc723764fb880
4
- data.tar.gz: 28149af396c53c09080cfd68eaa0d94449691951491df9b8998e60a8047ef3c4
3
+ metadata.gz: 79b36f3f82a98c51e287a2daac0a4fed523f86af5cb1177a12dd8473b4e9b65d
4
+ data.tar.gz: 63ca4a074b9fc763ac33677d1f657fba4cf61f5804910f353e1706be8039cf79
5
5
  SHA512:
6
- metadata.gz: 9526e00d1ce1f535acd4aaa098a0fb5463013a786adcc94f5f1b11242b75c27e0ecabcbfe9c6d30114c23bee692377db33d9c5c750fcefdb9c828be132427d46
7
- data.tar.gz: 284bf02a2a71b402432350acb25142164a00b0ca82a8001ded58d002f1dd3697dd5af58d1f7f8a48a11e07b2bbc3f24e712ff3c3282fe7288a99dff9a06fd8b1
6
+ metadata.gz: 0ef2000a1b9ca6ef62a21634afd4b678a1aa1914909a3cd0fef1b05e504763f0c6a67e96bbafab0635729ab828580afbdb43efdc3c8035d281ec02a44bca78d3
7
+ data.tar.gz: 4899943d3c5ed00191a7072210d3c8422f2c40ee7254d56204552e0d07c4300e72223b3667d805322a8defebdb3bdcac40ac0e9b8891b8c178b41345bea74c9b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- revo-loans_api (0.0.25)
4
+ revo-loans_api (0.0.29)
5
5
  activesupport
6
6
  http
7
7
 
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.25'.freeze
3
+ VERSION = '0.0.30'.freeze
4
4
  end
5
5
  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.25
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-04-08 00:00:00.000000000 Z
11
+ date: 2020-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http