revo-loans_api 0.0.21 → 0.0.22

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: d91cb6e757a1f77b809cb2c07b5c32d2ffde6625f40494b70fdcd61cdd322646
4
- data.tar.gz: e0ec71f3332a44be8bbbefe6fc3970cafc1b3e5542884555c1f844b9b7361420
3
+ metadata.gz: b22a17191cb89626c8154dd07b0107759b63be2332db44d2503e893de6957526
4
+ data.tar.gz: 6992b4c9fe45d9f0d157c13f2172b43d21c3b31695e1d736e946160eeaf3715f
5
5
  SHA512:
6
- metadata.gz: cc82cf50b5cbd5cc460bd1ba94a66b2ef5e091b58b2b5dbd8e9d1629a6978844b784b439997fc93a3da8542e20758827a7ca72688264379ff855384442d697e7
7
- data.tar.gz: e64d9ccfdd51e2dd6f104fd71a7e36a400c1128616f8433151aa0ee6871bf3411c3b601f7920f8be19a503c7243857e9a9166f1ed91142c2e04ebfd761281a09
6
+ metadata.gz: 1d708089a15e9ba53930ca4c2299032e1101a2b41f9395719ccc98931d347f1b2023d086525eee737b31c5b348fa6a73848efb590024e81d06e38d19870d3622
7
+ data.tar.gz: 8d93f4a6e86ef69612d12a8e34723c8b8674f78220209fa0f7bbf6512e8883b5b3dc39371c3ea60c9db5078173559ef5ffa6103b8a34911275e2568a6a2bd10d
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- revo-loans_api (0.0.21)
4
+ revo-loans_api (0.0.22)
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.1)
11
+ activesupport (6.0.2.2)
12
12
  concurrent-ruby (~> 1.0, >= 1.0.2)
13
13
  i18n (>= 0.7, < 2)
14
14
  minitest (~> 5.1)
@@ -34,7 +34,7 @@ GEM
34
34
  http-parser (~> 1.2.0)
35
35
  http-cookie (1.0.3)
36
36
  domain_name (~> 0.5)
37
- http-form_data (2.2.0)
37
+ http-form_data (2.3.0)
38
38
  http-parser (1.2.1)
39
39
  ffi-compiler (>= 1.0, < 2.0)
40
40
  i18n (1.8.2)
@@ -67,7 +67,7 @@ GEM
67
67
  addressable (>= 2.3.6)
68
68
  crack (>= 0.3.2)
69
69
  hashdiff (>= 0.4.0, < 2.0.0)
70
- zeitwerk (2.2.2)
70
+ zeitwerk (2.3.0)
71
71
 
72
72
  PLATFORMS
73
73
  ruby
@@ -85,13 +85,18 @@ class Revo::LoansApi::Client
85
85
  make_request(:post, "loan_requests/#{token}/loan", term_id: term_id)
86
86
  end
87
87
 
88
- def finalize_loan(token:, code:, sms_info: '0')
88
+ def finalize_loan(token:, code:, sms_info: '0', skip_confirmation: false)
89
89
  loan_params = {
90
90
  agree_processing: '1',
91
91
  confirmation_code: code,
92
92
  agree_sms_info: sms_info
93
93
  }
94
94
 
95
+ if skip_confirmation
96
+ loan_params[:skip_confirmation] = true
97
+ loan_params.delete(:confirmation_code)
98
+ end
99
+
95
100
  make_request(:post, "loan_requests/#{token}/loan/finalization", loan: loan_params)
96
101
  end
97
102
 
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.21'.freeze
3
+ VERSION = '0.0.22'.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.21
4
+ version: 0.0.22
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-03-19 00:00:00.000000000 Z
11
+ date: 2020-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http