revo-loans_api 0.0.30 → 0.0.35

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: 79b36f3f82a98c51e287a2daac0a4fed523f86af5cb1177a12dd8473b4e9b65d
4
- data.tar.gz: 63ca4a074b9fc763ac33677d1f657fba4cf61f5804910f353e1706be8039cf79
3
+ metadata.gz: 5fb902d0af69e3a698c2122744d5bac3fc013490016f8415440142e45573b49d
4
+ data.tar.gz: 97a5eb6e5ee576f3791084eb4b882bbf962de86e6e41bca0eb26229915f0ddcc
5
5
  SHA512:
6
- metadata.gz: 0ef2000a1b9ca6ef62a21634afd4b678a1aa1914909a3cd0fef1b05e504763f0c6a67e96bbafab0635729ab828580afbdb43efdc3c8035d281ec02a44bca78d3
7
- data.tar.gz: 4899943d3c5ed00191a7072210d3c8422f2c40ee7254d56204552e0d07c4300e72223b3667d805322a8defebdb3bdcac40ac0e9b8891b8c178b41345bea74c9b
6
+ metadata.gz: d657f4d9d6d3069c9fcdbd25e944fa06617d23b1d213a0b15d2515ff359392fb7615b3deaf991bcfb10a66e7d824b7ff14a54443625091ecea102ebc77c62e73
7
+ data.tar.gz: 78c42ea2a9e58407b7290296b784f30ac8d98a24478b330c718926e4c9afc97ddf1639a47b5b50d98be76e3580272e5c45e105cd99c5219c0b761964099eb00f
@@ -1,34 +1,34 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- revo-loans_api (0.0.29)
4
+ revo-loans_api (0.0.35)
5
5
  activesupport
6
6
  http
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (6.0.2.2)
11
+ activesupport (6.0.3.2)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 0.7, < 2)
14
14
  minitest (~> 5.1)
15
15
  tzinfo (~> 1.1)
16
- zeitwerk (~> 2.2)
16
+ zeitwerk (~> 2.2, >= 2.2.2)
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.6)
20
+ concurrent-ruby (1.1.7)
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.12.2)
26
+ ffi (1.13.1)
27
27
  ffi-compiler (1.0.1)
28
28
  ffi (>= 1.0.0)
29
29
  rake
30
30
  hashdiff (1.0.0)
31
- http (4.3.0)
31
+ http (4.4.1)
32
32
  addressable (~> 2.3)
33
33
  http-cookie (~> 1.0)
34
34
  http-form_data (~> 2.2)
@@ -38,9 +38,9 @@ GEM
38
38
  http-form_data (2.3.0)
39
39
  http-parser (1.2.1)
40
40
  ffi-compiler (>= 1.0, < 2.0)
41
- i18n (1.8.2)
41
+ i18n (1.8.5)
42
42
  concurrent-ruby (~> 1.0)
43
- minitest (5.14.0)
43
+ minitest (5.14.2)
44
44
  public_suffix (4.0.1)
45
45
  rake (10.5.0)
46
46
  rspec (3.9.0)
@@ -58,17 +58,17 @@ GEM
58
58
  rspec-support (3.9.0)
59
59
  safe_yaml (1.0.5)
60
60
  thread_safe (0.3.6)
61
- tzinfo (1.2.6)
61
+ tzinfo (1.2.7)
62
62
  thread_safe (~> 0.1)
63
63
  unf (0.1.4)
64
64
  unf_ext
65
- unf_ext (0.0.7.6)
65
+ unf_ext (0.0.7.7)
66
66
  vcr (5.0.0)
67
67
  webmock (3.7.6)
68
68
  addressable (>= 2.3.6)
69
69
  crack (>= 0.3.2)
70
70
  hashdiff (>= 0.4.0, < 2.0.0)
71
- zeitwerk (2.3.0)
71
+ zeitwerk (2.4.0)
72
72
 
73
73
  PLATFORMS
74
74
  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
 
@@ -216,6 +217,10 @@ class Revo::LoansApi::Client
216
217
  make_request(:get, "clients/#{guid}")
217
218
  end
218
219
 
220
+ def get_client_info(guid:)
221
+ make_request(:get, "clients/#{guid}/informers")
222
+ end
223
+
219
224
  def create_virtual_card(token:, term_id:, force_approve: false)
220
225
  make_request(
221
226
  :post,
@@ -228,7 +233,7 @@ class Revo::LoansApi::Client
228
233
  def create_card_loan(token:, term_id:, force_approve: false)
229
234
  make_request(
230
235
  :post,
231
- "loan_requests/#{token}/card_loan",
236
+ "loan_requests/#{token}/virtual_card_loan",
232
237
  params: { term_id: term_id, force_approve: force_approve },
233
238
  headers: { 'Application-Source': application_source }
234
239
  )
@@ -367,7 +372,10 @@ class Revo::LoansApi::Client
367
372
  if response.content_type.mime_type == API_CONTENT_TYPE
368
373
  parse(response)
369
374
  else
370
- { errors: { base: [:unexpected_response] } }
375
+ {
376
+ errors: { base: [:unexpected_response] },
377
+ raw_response: response.to_s.presence
378
+ }
371
379
  end
372
380
  end
373
381
 
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.30'.freeze
3
+ VERSION = '0.0.35'.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.30
4
+ version: 0.0.35
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-06-29 00:00:00.000000000 Z
11
+ date: 2020-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http