revo-loans_api 0.0.40 → 0.0.45

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: d43f5bb9793e9720faa97fa222651704f08444d89205d6df1866a50e1c262a53
4
- data.tar.gz: be2da2a0de4cd96e04ba3c79a4d54020988468a5b930341372c81fbf222c45aa
3
+ metadata.gz: f56c51df718c57fe4a9044a4510ab489e23b149a95e68f9f369bf22c1270b995
4
+ data.tar.gz: eb29a547bcb1a245f59ea6b93558a02ae7039fe5a98df1edd0e0a0ac0e0bb4a8
5
5
  SHA512:
6
- metadata.gz: 393c2b72b6b38c7c1d5f8511d9f3a1148b4c7200e673212360ce28ce9fcac8cacae6fea4b7b57530a385ea70da633541713abb0af5b52f499183d3b50ec60148
7
- data.tar.gz: f2e12da53daa6c37cb166b685d536e8fad61a772fe76b21f5455565ee1a34ff9118c62c12841e25a5c68e5ae895232451d9e08ed7ba2cb436d6777194810a06d
6
+ metadata.gz: 5cbf7cebf96fb502f5f33bc30c0c085ec697c0449bc183044ea4bea2f8085f6bcd99c422bcb4797deee20cceebd5b8326d08dea1b63bc72fa6e13b130e745ebb
7
+ data.tar.gz: 723a569939a3aa0cabc2c34cd7de7005a33504bde7b73a054fa5ccbf8027c07b52cd6cedff51932985e97b2ed36a7d0385ed0c5c1865f7360e96709dd75cc6a8
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- revo-loans_api (0.0.40)
4
+ revo-loans_api (0.0.45)
5
5
  activesupport
6
6
  http
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (6.1.3)
11
+ activesupport (6.1.3.1)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 1.6, < 2)
14
14
  minitest (>= 5.1)
@@ -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.9)
41
+ i18n (1.8.10)
42
42
  concurrent-ruby (~> 1.0)
43
43
  minitest (5.14.4)
44
44
  public_suffix (4.0.1)
@@ -239,14 +239,15 @@ class Revo::LoansApi::Client
239
239
  )
240
240
  end
241
241
 
242
- def send_billing_shift_confirmation_code(client_id:)
243
- make_request(:post, "clients/#{client_id}/billing_shift")
244
- end
245
-
246
- def billing_shift_info(client_id:)
247
- make_request(:get, "clients/#{client_id}/billing_shift/info")
242
+ def send_billing_shift(client_id:, billing_chain:)
243
+ make_request(
244
+ :post,
245
+ "clients/#{client_id}/billing_shift",
246
+ params: { billing_chain: billing_chain }
247
+ )
248
248
  end
249
249
 
250
+ # TEMP: method added for backward compatibility with v37
250
251
  def confirm_billing_shift(client_id:, code:, billing_chain:)
251
252
  make_request(
252
253
  :post,
@@ -255,9 +256,22 @@ class Revo::LoansApi::Client
255
256
  )
256
257
  end
257
258
 
258
- def billing_shift_document(client_id:, billing_chain:)
259
- make_request(:get, "clients/#{client_id}/billing_shift/agreement",
260
- params: { billing_chain: billing_chain })
259
+ # TEMP: method added for backward compatibility with v37
260
+ def send_billing_shift_confirmation_code(client_id:)
261
+ make_request(:post, "clients/#{client_id}/billing_shift")
262
+ end
263
+
264
+ def billing_shift_info(client_id:)
265
+ make_request(:get, "clients/#{client_id}/billing_shift/info")
266
+ end
267
+
268
+ def billing_shift_document(client_id:, billing_chain: nil, billing_shift_id: nil)
269
+ if billing_shift_id
270
+ make_request(:get, "clients/#{client_id}/billing_shift/#{billing_shift_id}")
271
+ else
272
+ make_request(:get, "clients/#{client_id}/billing_shift/agreement",
273
+ params: { billing_chain: billing_chain })
274
+ end
261
275
  end
262
276
 
263
277
  def send_restructuring_confirmation_code(client_id:, product:)
@@ -318,6 +332,15 @@ class Revo::LoansApi::Client
318
332
  )
319
333
  end
320
334
 
335
+ def certificate(loan_application_id:, kind:)
336
+ make_request(
337
+ :post,
338
+ "loan_applications/#{loan_application_id}/certificate",
339
+ params: { kind: kind }
340
+ )
341
+ end
342
+
343
+
321
344
  private
322
345
 
323
346
  API_CONTENT_TYPE = 'application/json'.freeze
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.40'.freeze
3
+ VERSION = '0.0.45'.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.40
4
+ version: 0.0.45
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-03-22 00:00:00.000000000 Z
11
+ date: 2021-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http