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 +4 -4
- data/Gemfile.lock +4 -4
- data/lib/revo/loans_api/client.rb +6 -1
- data/lib/revo/loans_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b22a17191cb89626c8154dd07b0107759b63be2332db44d2503e893de6957526
|
4
|
+
data.tar.gz: 6992b4c9fe45d9f0d157c13f2172b43d21c3b31695e1d736e946160eeaf3715f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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.
|
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
|
|
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.
|
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-
|
11
|
+
date: 2020-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|