revo-loans_api 0.0.26 → 0.0.31

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dceee3703d96939cbc43ca4756bd0ac5041554cc5f911953b09b6bfce674f73b
4
- data.tar.gz: b9e1b1f4b894b355d4b023aa68ff37d6371bc21ecbc4d74bf1bf5b8ce016fefe
3
+ metadata.gz: 34d660036f9aac6c701004fde84f47447aeee90bbdc6e15d5cac909d8160bff6
4
+ data.tar.gz: e8eb1911a30fa22c31d820188202cf60910eaf35ed7ab6c7a6285b69a1356f8e
5
5
  SHA512:
6
- metadata.gz: 2f78b1a6e7b9fad3f6507619e84d70a01318fa220ffb2948ca5b8a72844220cee6de94a470f25f3ee522ad69fca332fa218749c87ceb8efe4f2010ca8d52a687
7
- data.tar.gz: 6b63dd5775f1f301070afd4b12b8be73d2400314637ae52d0634cb9794542f1531773ee86f030c7b7ad21423d16c63003f7429d879efa5653161ae213159ea89
6
+ metadata.gz: e2e9923d61ab00c3819064e953b2c93be92bc80f18af642082dd6cf13b6b779aa6d0f5947d569b16983c8f086023468cf5393c6c6211c07c45980dc03c360c7f
7
+ data.tar.gz: 94b280708bd2474e58c44485a1c27dc3ff3ac366a89b63a6931db7fd95f29eb4e8247553293d7f5c23f3025a67316d5a48e6f126e791863baf45a5ca58244d0d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- revo-loans_api (0.0.26)
4
+ revo-loans_api (0.0.29)
5
5
  activesupport
6
6
  http
7
7
 
@@ -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}/card_loan",
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
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.26'.freeze
3
+ VERSION = '0.0.31'.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.26
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-04-12 00:00:00.000000000 Z
11
+ date: 2020-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http