revo-loans_api 0.0.36 → 0.0.41

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: e16026f15bee5224a4252550d468c57b9d762f90ee1dfd37d29bc040ad19d3f1
4
- data.tar.gz: 6426f8fb159c5985805730835c55aa210a54579d2d3bce64f84ef55293829305
3
+ metadata.gz: b27b2c705c035679ef8114a747c37d630c69089f727555be1ca5eb499d2a3148
4
+ data.tar.gz: 1dd87c734dc4afae9980b9459320a0ee735cfcd7e77c425aaa1937b0e630a2a9
5
5
  SHA512:
6
- metadata.gz: 8b0781b995f147edf141676bef9eca8f4319fc1eaecf2cb4b218bc4d1ad977c08a3acc37efc1c0dfdd2e17aaec6213c7b834f7db760e3a0439e9582956138503
7
- data.tar.gz: 8931b651a06e46bf05a5ca3407aaec7bcbeadcbbd90464ee82ef8970f26a730543dbec2c73d4ebfd0c27a8c718285fe1544835c60d33ba0c847c62bb531c2bea
6
+ metadata.gz: 3ef738ba615f0d3e526399abe39ab10b50e57e6ff57ee13b7ba13e5500edee9e68749f8aae3bf6845a1c53b100cb6c92ee9d12bd2a7f57413025dd13f833d6eb
7
+ data.tar.gz: cecd824f67e21dcb5626a9a978c56207e170fa7294ddb9f1d343f47713ef29f0a18ed42486f90d46a1e87e2bfde9dd4dd7166efa63aeb7dd636526932a271e9c
data/Gemfile.lock CHANGED
@@ -1,29 +1,29 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- revo-loans_api (0.0.36)
4
+ revo-loans_api (0.0.41)
5
5
  activesupport
6
6
  http
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (6.0.3.2)
11
+ activesupport (6.1.3)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
- i18n (>= 0.7, < 2)
14
- minitest (~> 5.1)
15
- tzinfo (~> 1.1)
16
- zeitwerk (~> 2.2, >= 2.2.2)
13
+ i18n (>= 1.6, < 2)
14
+ minitest (>= 5.1)
15
+ tzinfo (~> 2.0)
16
+ zeitwerk (~> 2.3)
17
17
  addressable (2.7.0)
18
18
  public_suffix (>= 2.0.2, < 5.0)
19
19
  byebug (11.0.1)
20
- concurrent-ruby (1.1.7)
20
+ concurrent-ruby (1.1.8)
21
21
  crack (0.4.3)
22
22
  safe_yaml (~> 1.0.0)
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.13.1)
26
+ ffi (1.15.0)
27
27
  ffi-compiler (1.0.1)
28
28
  ffi (>= 1.0.0)
29
29
  rake
@@ -36,11 +36,11 @@ GEM
36
36
  http-cookie (1.0.3)
37
37
  domain_name (~> 0.5)
38
38
  http-form_data (2.3.0)
39
- http-parser (1.2.1)
39
+ http-parser (1.2.3)
40
40
  ffi-compiler (>= 1.0, < 2.0)
41
- i18n (1.8.5)
41
+ i18n (1.8.9)
42
42
  concurrent-ruby (~> 1.0)
43
- minitest (5.14.2)
43
+ minitest (5.14.4)
44
44
  public_suffix (4.0.1)
45
45
  rake (10.5.0)
46
46
  rspec (3.9.0)
@@ -57,9 +57,8 @@ GEM
57
57
  rspec-support (~> 3.9.0)
58
58
  rspec-support (3.9.0)
59
59
  safe_yaml (1.0.5)
60
- thread_safe (0.3.6)
61
- tzinfo (1.2.7)
62
- thread_safe (~> 0.1)
60
+ tzinfo (2.0.4)
61
+ concurrent-ruby (~> 1.0)
63
62
  unf (0.1.4)
64
63
  unf_ext
65
64
  unf_ext (0.0.7.7)
@@ -68,7 +67,7 @@ GEM
68
67
  addressable (>= 2.3.6)
69
68
  crack (>= 0.3.2)
70
69
  hashdiff (>= 0.4.0, < 2.0.0)
71
- zeitwerk (2.4.0)
70
+ zeitwerk (2.4.2)
72
71
 
73
72
  PLATFORMS
74
73
  ruby
@@ -239,20 +239,21 @@ 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:)
255
+ make_request(:get, "clients/#{client_id}/billing_shift/agreement",
256
+ params: { billing_chain: billing_chain })
256
257
  end
257
258
 
258
259
  def send_restructuring_confirmation_code(client_id:, product:)
@@ -306,6 +307,13 @@ class Revo::LoansApi::Client
306
307
  )
307
308
  end
308
309
 
310
+ def store_document(store_id:, kind:, format: :pdf)
311
+ make_request(
312
+ :get,
313
+ "stores/#{store_id}/documents/#{kind}.#{format}"
314
+ )
315
+ end
316
+
309
317
  private
310
318
 
311
319
  API_CONTENT_TYPE = 'application/json'.freeze
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.36'.freeze
3
+ VERSION = '0.0.41'.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.36
4
+ version: 0.0.41
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-10-23 00:00:00.000000000 Z
11
+ date: 2021-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http