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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f5070f52d54fc1a7111d08c5f4c8aa8204db21d2e35a4fd3d84f4fedb1309edc
4
- data.tar.gz: 41464a8d4550797d1c09ee80185fdff53ad321ded981401ccefc7f49707b3387
3
+ metadata.gz: 943b0c7dd5e0f413a7ef93c3d55fcb77be5241ef60f8f33185a22ddcd8c99e57
4
+ data.tar.gz: 168bd39b35bfaed97f502ed4ef2c58fbf49b9e3ecdcd441b7cdba1229913a03c
5
5
  SHA512:
6
- metadata.gz: c40eb000057dec38f88b905b6c13dcd5f5250f0d59370cbc22691b71806aca5c0345b7ab84d9d3cfefefe4b84d2698e1422d5e4030bfe9e6db1448968c71c36e
7
- data.tar.gz: 564bbbd727464169ce930e137a3777e54b6cd43342622c6b1b374c5deed16fe0a3e2b15b16d1e866ad37bbfa36f6c182bf762891bf8614def14d78531263f3eb
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.1)
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.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.1, >= 2.1.8)
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.1)
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.12.2)
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.0)
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.2
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
- make_request(:post, "loan_requests/#{token}/loan/finalization", loan: { agree_processing: '1', confirmation_code: code })
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
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.2'
3
+ VERSION = '0.0.3'
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.2
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 00:00:00.000000000 Z
11
+ date: 2019-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http