revo-loans_api 0.0.37 → 0.0.42

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: 02fbf747ec565437ca9e39653086cf5c6888bf6092c147322113df2a4729dadb
4
- data.tar.gz: 76bdf80fa6823de47c8dcceac47927c400249aaf1a89f3d6f72fc4c0434a6061
3
+ metadata.gz: 232a5c7194010a4fc77beb6a0b4e72f4b8103cf162268a8c9e95c23bebc66b37
4
+ data.tar.gz: 3b1411102dcac72a65703a975ea4d506f43858b1f80b77bf33e9950beb5dcc9c
5
5
  SHA512:
6
- metadata.gz: aaf36d39c5b5d62bc411d00b481cb6f6e7932302cd2f148493dbc39eba680fefe0a3e2d18aef5068dcb4a051eaaa18855e58c8fa2fc97e25c1fa37cb228a2592
7
- data.tar.gz: 2e4b542fd4a7918286cdf0fac00570f2b21a69348ff1c2cf53bcaceec5ded695da06074acc560c2bd65b89925c6ee3c277e9c5460824e0d27df1575d15102f5f
6
+ metadata.gz: 393db7601c7e9d5ddcc3b7acc8b042a934762afdf0dd800bd0e6d54a31f44134bfe8f7d8f6904cf4019e8707986aa3aee8eb3ff084255d8235961a290fff1ce0
7
+ data.tar.gz: b09e44ed4c5a51c0865693a4a026a213cb2a2d817e57314444b7a6b5037f9da439084479843d9a3a4ebf032641024e1c689f7abc59659399ca1e765c75830a35
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- revo-loans_api (0.0.37)
4
+ revo-loans_api (0.0.42)
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)
@@ -23,7 +23,7 @@ GEM
23
23
  diff-lcs (1.3)
24
24
  domain_name (0.5.20190701)
25
25
  unf (>= 0.0.5, < 1.0.0)
26
- ffi (1.14.2)
26
+ ffi (1.15.0)
27
27
  ffi-compiler (1.0.1)
28
28
  ffi (>= 1.0.0)
29
29
  rake
@@ -40,7 +40,7 @@ GEM
40
40
  ffi-compiler (>= 1.0, < 2.0)
41
41
  i18n (1.8.9)
42
42
  concurrent-ruby (~> 1.0)
43
- minitest (5.14.3)
43
+ minitest (5.14.4)
44
44
  public_suffix (4.0.1)
45
45
  rake (10.5.0)
46
46
  rspec (3.9.0)
@@ -239,20 +239,25 @@ 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")
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
+ )
244
248
  end
245
249
 
246
250
  def billing_shift_info(client_id:)
247
251
  make_request(:get, "clients/#{client_id}/billing_shift/info")
248
252
  end
249
253
 
250
- def confirm_billing_shift(client_id:, code:, billing_chain:)
251
- make_request(
252
- :post,
253
- "clients/#{client_id}/billing_shift/confirmation",
254
- params: { code: code, billing_chain: billing_chain }
255
- )
254
+ def billing_shift_document(client_id:, billing_chain: nil, billing_shift_id: nil)
255
+ if billing_shift_id
256
+ make_request(:get, "clients/#{client_id}/billing_shift/#{billing_shift_id}")
257
+ else
258
+ make_request(:get, "clients/#{client_id}/billing_shift/agreement",
259
+ params: { billing_chain: billing_chain })
260
+ end
256
261
  end
257
262
 
258
263
  def send_restructuring_confirmation_code(client_id:, product:)
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.37'.freeze
3
+ VERSION = '0.0.42'.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.37
4
+ version: 0.0.42
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-02-24 00:00:00.000000000 Z
11
+ date: 2021-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http