revo-loans_api 0.0.33 → 0.0.38

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: e8ddc81c75a39ce5e816c1d35a6d6d1f76501dc51afe21327fe965f5b3ec5df5
4
- data.tar.gz: 201ccaa12db01d9b59f75d58450323899327092044f3937bbeb8aaec1c90be43
3
+ metadata.gz: a86ee33e319c0ad8a896d32be12ffabf41a4748c11da4a20161915453dc04c8b
4
+ data.tar.gz: e1e9b141bd0eb57fc6ac94e62cbbbb4d8589fffc25686b424981ef1421edf4e2
5
5
  SHA512:
6
- metadata.gz: '0268f616707aee95061b1d22af70fbff44bbec87cc920222b7bf9c3f6ec6db2344540e9c59ca46820a5e7853e72696a9ac47e58674cc160da585740bc7c542c0'
7
- data.tar.gz: a2f6ab18d01153338c7806a3904e930ca19ae235e03338f8a5aa59091ee426081153d3cc65401db5ccd7fe48242903b5d80a2a3aab43dc5624f99ca64adc72d7
6
+ metadata.gz: 2857277467c17b8b9d6aa03140d6a49c3c2756f1cbfe636844ae25f0d6e35645141f7c65827f46464b494909324c33fc55f065d9d8b0e6888d94f9609855ea50
7
+ data.tar.gz: 93fc72674ee8914531d2cfafa0f9f7f1a57a6e2615e79581d98b196f25012714ddf9ba1972ef1c994812edc3a28c50a4d25170807a7f330956d5fe15f7c719f1
data/Gemfile.lock CHANGED
@@ -1,29 +1,29 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- revo-loans_api (0.0.33)
4
+ revo-loans_api (0.0.38)
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
@@ -183,11 +183,11 @@ class Revo::LoansApi::Client
183
183
  make_request(:post, "returns/#{return_id}/cancel")
184
184
  end
185
185
 
186
- def start_self_registration(token:, mobile_phone:, skip_message: false)
186
+ def start_self_registration(token:, mobile_phone:, skip_message: false, mobile_meta_info: {})
187
187
  make_request(
188
188
  :post,
189
189
  "loan_requests/#{token}/client/self_registration",
190
- params: { mobile_phone: mobile_phone, skip_message: skip_message }
190
+ params: { mobile_phone: mobile_phone, skip_message: skip_message, mobile_meta_info: mobile_meta_info }
191
191
  )
192
192
  end
193
193
 
@@ -204,7 +204,8 @@ class Revo::LoansApi::Client
204
204
  :post,
205
205
  "loan_requests/#{token}/client",
206
206
  params: { client: client_params, provider_data: provider_data,
207
- skip_email_confirmation: skip_email_confirmation }
207
+ skip_email_confirmation: skip_email_confirmation },
208
+ headers: { 'Application-Source': application_source }
208
209
  )
209
210
  end
210
211
 
@@ -305,6 +306,22 @@ class Revo::LoansApi::Client
305
306
  )
306
307
  end
307
308
 
309
+ def store_document(store_id:, kind:, format: :pdf)
310
+ make_request(
311
+ :get,
312
+ "stores/#{store_id}/documents/#{kind}.#{format}"
313
+ )
314
+ end
315
+
316
+ def get_loan_application_certificate(loan_application_id:, kind:)
317
+ make_request(
318
+ :get,
319
+ "loan_applications/#{loan_application_id}/certificate",
320
+ params: { kind: kind }
321
+ )
322
+ end
323
+
324
+
308
325
  private
309
326
 
310
327
  API_CONTENT_TYPE = 'application/json'.freeze
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.33'.freeze
3
+ VERSION = '0.0.38'.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.33
4
+ version: 0.0.38
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-09-01 00:00:00.000000000 Z
11
+ date: 2021-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http