revo-loans_api 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +7 -7
- data/lib/revo/loans_api/client.rb +8 -2
- 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: 943b0c7dd5e0f413a7ef93c3d55fcb77be5241ef60f8f33185a22ddcd8c99e57
|
4
|
+
data.tar.gz: 168bd39b35bfaed97f502ed4ef2c58fbf49b9e3ecdcd441b7cdba1229913a03c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ba876be94b1e71e467f3581eeb0a1f453e563165ddb7203229755cc2c66c4e74b0cbadcc7707dff8048a7a1acfac8b444a303e8af335a3c878033cb90e32ffb
|
7
|
+
data.tar.gz: f5869f14dcc57c815e73d6bd5c3e0e7384e7ed94ff5aa8b7a3beb58598631a7c8695a0f40264081a4dfca514866b84a2653d59608c1924c2a75425937bee7ee0
|
data/Gemfile.lock
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
revo-loans_api (0.0.
|
4
|
+
revo-loans_api (0.0.3)
|
5
5
|
activesupport
|
6
6
|
http
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (6.0.
|
11
|
+
activesupport (6.0.1)
|
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.
|
16
|
+
zeitwerk (~> 2.2)
|
17
17
|
addressable (2.7.0)
|
18
18
|
public_suffix (>= 2.0.2, < 5.0)
|
19
19
|
concurrent-ruby (1.1.5)
|
@@ -22,7 +22,7 @@ GEM
|
|
22
22
|
diff-lcs (1.3)
|
23
23
|
domain_name (0.5.20190701)
|
24
24
|
unf (>= 0.0.5, < 1.0.0)
|
25
|
-
ffi (1.11.
|
25
|
+
ffi (1.11.2)
|
26
26
|
ffi-compiler (1.0.1)
|
27
27
|
ffi (>= 1.0.0)
|
28
28
|
rake
|
@@ -39,7 +39,7 @@ GEM
|
|
39
39
|
ffi-compiler (>= 1.0, < 2.0)
|
40
40
|
i18n (1.7.0)
|
41
41
|
concurrent-ruby (~> 1.0)
|
42
|
-
minitest (5.
|
42
|
+
minitest (5.13.0)
|
43
43
|
public_suffix (4.0.1)
|
44
44
|
rake (10.5.0)
|
45
45
|
rspec (3.9.0)
|
@@ -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.
|
70
|
+
zeitwerk (2.2.1)
|
71
71
|
|
72
72
|
PLATFORMS
|
73
73
|
ruby
|
@@ -81,4 +81,4 @@ DEPENDENCIES
|
|
81
81
|
webmock
|
82
82
|
|
83
83
|
BUNDLED WITH
|
84
|
-
1.17.
|
84
|
+
1.17.3
|
@@ -71,8 +71,14 @@ class Revo::LoansApi::Client
|
|
71
71
|
make_request(:post, "loan_requests/#{token}/loan", term_id: term_id)
|
72
72
|
end
|
73
73
|
|
74
|
-
def finalize_loan(token:, code:)
|
75
|
-
|
74
|
+
def finalize_loan(token:, code:, sms_info: '0')
|
75
|
+
loan_params = {
|
76
|
+
agree_processing: '1',
|
77
|
+
confirmation_code: code,
|
78
|
+
agree_sms_info: sms_info
|
79
|
+
}
|
80
|
+
|
81
|
+
make_request(:post, "loan_requests/#{token}/loan/finalization", loan: loan_params)
|
76
82
|
end
|
77
83
|
|
78
84
|
# returns
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Revo Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-11-
|
11
|
+
date: 2019-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: http
|