revo-loans_api 0.0.39 → 0.0.44

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: 78dece266d18f6e992aa646f988adeb69e12068e8a4a613562db044c612ebdb8
4
- data.tar.gz: d7bde82b800275bd02dfd081f01dcaa8b1bdcb90166225ce11f79362060f687f
3
+ metadata.gz: 7613ac91a7aeddeaca910a0f29d3f608158efbbf6d0b4fbee8b2510d6c157602
4
+ data.tar.gz: 834127cf573e0c91dba5ccd65f7e4cde112353cb8a54cdd4b495057ac849ebe4
5
5
  SHA512:
6
- metadata.gz: ff70de583c39fbf9719f9fc7544b59e246ada880b88a24e6bd14f8ec23c932cc0def3029141ba46984feafe1331f58e6084f65e7480d5034c7e062888ca73a60
7
- data.tar.gz: 6174c1fd64e5264d71a4c1bfec53156515eed9ede487e802fd82a1987b351222c63f47f013e3eb7402eff303a909080a9bba0454248a5c842738fff83e71de33
6
+ metadata.gz: 8ba447d54755697260d6bb7f6ef08ec4f529e2c2c48940b997f7d867e0859ff765d5901156c0c7a6bbe33bd17f97e97a5c61e24e8db0faf571a05f654e4464dc
7
+ data.tar.gz: b3f4c60053742659c03dba14c06bbc295d886cba5dd46f5a0ba0463feabc8901f977f62f34b455abd6ad811cd57a8f9aeebf7ef1294318af18d77306dd3da627
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- revo-loans_api (0.0.39)
4
+ revo-loans_api (0.0.44)
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,6 +256,24 @@ class Revo::LoansApi::Client
255
256
  )
256
257
  end
257
258
 
259
+ # TEMP: method added for backward compatibility with v37
260
+ def send_restructuring_confirmation_code(client_id:, product:)
261
+ make_request(:post, "clients/#{client_id}/restructuring/#{product}")
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
275
+ end
276
+
258
277
  def send_restructuring_confirmation_code(client_id:, product:)
259
278
  make_request(:post, "clients/#{client_id}/restructuring/#{product}")
260
279
  end
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.39'.freeze
3
+ VERSION = '0.0.44'.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.39
4
+ version: 0.0.44
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-09 00:00:00.000000000 Z
11
+ date: 2021-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http