revo-loans_api 0.0.16 → 0.0.17

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: 44ff136806306e32118efbb9c1fb03a62cd93a2e668ab924b48e885147da0417
4
- data.tar.gz: d999791f60ea685b67465c1126bc293f4c5add249dcfaf0a09b3329ac1b60d53
3
+ metadata.gz: 26a95d545a91f46996d06d7aba9cdb104bcaa8fbb0905cf7f1eb9eb09332ef4c
4
+ data.tar.gz: a1d2a8653019942e5812c8aea87de4625eb2b0138c4f83d7f3e7471a0601f112
5
5
  SHA512:
6
- metadata.gz: 7df4f6d33ff2a4b55898e15c39a28e4f4911895d1e10c936f6bbb65fe67d9de2e6ed38996b0036ffb1c7ce0d3424eeaaf3ec958df61209e84256319008702e9d
7
- data.tar.gz: d26cf76b31097c425e217b595a1ca1c423eac13b64b1524073421935c0baaf01aeec2f0fd7ea1dd5110e72c9d348af09d581aa2309ad30839c77da56b0c7d9be
6
+ metadata.gz: 45d82eb64e011d4a35038c5eabbfff090c758d794586612f7c2fcaf8f71b7ae3343f08f88e626d28c573286dc73200fc3306d879f50c7b2a1cbfa45ab269f636
7
+ data.tar.gz: 119ea069d934f4a08022b93d92c1010277d8bcc83da46f98db40fd3c71d6e7354f7c8f584b6429e73604a01eb8775a9f4754cfad0d9108678cb4e37ac143203b
data/Gemfile.lock CHANGED
@@ -1,44 +1,45 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- revo-loans_api (0.0.15)
4
+ revo-loans_api (0.0.17)
5
5
  activesupport
6
6
  http
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- activesupport (5.2.4.1)
11
+ activesupport (6.0.2.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.2)
16
17
  addressable (2.7.0)
17
18
  public_suffix (>= 2.0.2, < 5.0)
18
- concurrent-ruby (1.1.5)
19
+ concurrent-ruby (1.1.6)
19
20
  crack (0.4.3)
20
21
  safe_yaml (~> 1.0.0)
21
22
  diff-lcs (1.3)
22
23
  domain_name (0.5.20190701)
23
24
  unf (>= 0.0.5, < 1.0.0)
24
- ffi (1.11.3)
25
+ ffi (1.12.2)
25
26
  ffi-compiler (1.0.1)
26
27
  ffi (>= 1.0.0)
27
28
  rake
28
29
  hashdiff (1.0.0)
29
- http (4.2.0)
30
+ http (4.3.0)
30
31
  addressable (~> 2.3)
31
32
  http-cookie (~> 1.0)
32
- http-form_data (~> 2.0)
33
+ http-form_data (~> 2.2)
33
34
  http-parser (~> 1.2.0)
34
35
  http-cookie (1.0.3)
35
36
  domain_name (~> 0.5)
36
- http-form_data (2.1.1)
37
+ http-form_data (2.2.0)
37
38
  http-parser (1.2.1)
38
39
  ffi-compiler (>= 1.0, < 2.0)
39
- i18n (1.7.0)
40
+ i18n (1.8.2)
40
41
  concurrent-ruby (~> 1.0)
41
- minitest (5.13.0)
42
+ minitest (5.14.0)
42
43
  public_suffix (4.0.1)
43
44
  rake (10.5.0)
44
45
  rspec (3.9.0)
@@ -66,6 +67,7 @@ GEM
66
67
  addressable (>= 2.3.6)
67
68
  crack (>= 0.3.2)
68
69
  hashdiff (>= 0.4.0, < 2.0.0)
70
+ zeitwerk (2.2.2)
69
71
 
70
72
  PLATFORMS
71
73
  ruby
@@ -95,6 +95,15 @@ class Revo::LoansApi::Client
95
95
  make_request(:post, "loan_requests/#{token}/loan/finalization", loan: loan_params)
96
96
  end
97
97
 
98
+ def confirm_loan(token:, bill:)
99
+ params = { loan: { bill: bill } }
100
+ response = make_request(:put, "loan_requests/#{token}/loan/bill", params)
101
+
102
+ return response unless response.success?
103
+
104
+ Result.new(success?: true, response: response.response)
105
+ end
106
+
98
107
  # returns
99
108
  def orders(store_id:, filters: {})
100
109
  make_request(:get, 'orders', store_id: store_id, filters: filters)
@@ -1,5 +1,5 @@
1
1
  module Revo
2
2
  module LoansApi
3
- VERSION = '0.0.16'.freeze
3
+ VERSION = '0.0.17'.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.16
4
+ version: 0.0.17
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-02-10 00:00:00.000000000 Z
11
+ date: 2020-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: http