vpos 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +14 -16
- data/lib/vpos/version.rb +1 -1
- data/lib/vpos.rb +0 -2
- data/lib/vpos_module.rb +6 -1
- data/vpos.gemspec +3 -4
- metadata +6 -20
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4afd795dda51f97e50f6cd03781acca39a4f5d36619bddfe55d4515ad8506f5f
|
4
|
+
data.tar.gz: 3f7553fc7b5705c86c074c0e76fce57528683cb81ca1c3ec1192e6ef6f00e9c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1d4d000a8aa386223660b120a015dd0bb45a7092355d22d7ad097a4add8bd31314891f976faca280c07c88bc2f8b234d0ce07db68265bb244331ca926ba10f2
|
7
|
+
data.tar.gz: 817be562e7dfcacaf0bbad89a71bbd6a2e9f5c0b2385b360803795cb0d1293f3d0dcfb01ac3a55b11d4052af74dea307fa58ef56841426dbbd3377c6eb8be5ba
|
data/Gemfile.lock
CHANGED
@@ -1,37 +1,35 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
vpos (1.0.
|
5
|
-
concurrent-ruby
|
4
|
+
vpos (1.0.3)
|
6
5
|
httparty (~> 0.18.1)
|
7
6
|
rspec (~> 3.9, >= 3.9.0)
|
8
7
|
|
9
8
|
GEM
|
10
9
|
remote: https://rubygems.org/
|
11
10
|
specs:
|
12
|
-
concurrent-ruby (1.1.9)
|
13
11
|
diff-lcs (1.4.4)
|
14
12
|
httparty (0.18.1)
|
15
13
|
mime-types (~> 3.0)
|
16
14
|
multi_xml (>= 0.5.2)
|
17
15
|
mime-types (3.3.1)
|
18
16
|
mime-types-data (~> 3.2015)
|
19
|
-
mime-types-data (3.2021.
|
17
|
+
mime-types-data (3.2021.0225)
|
20
18
|
multi_xml (0.6.0)
|
21
19
|
rake (12.3.3)
|
22
|
-
rspec (3.
|
23
|
-
rspec-core (~> 3.
|
24
|
-
rspec-expectations (~> 3.
|
25
|
-
rspec-mocks (~> 3.
|
26
|
-
rspec-core (3.
|
27
|
-
rspec-support (~> 3.
|
28
|
-
rspec-expectations (3.
|
20
|
+
rspec (3.9.0)
|
21
|
+
rspec-core (~> 3.9.0)
|
22
|
+
rspec-expectations (~> 3.9.0)
|
23
|
+
rspec-mocks (~> 3.9.0)
|
24
|
+
rspec-core (3.9.3)
|
25
|
+
rspec-support (~> 3.9.3)
|
26
|
+
rspec-expectations (3.9.4)
|
29
27
|
diff-lcs (>= 1.2.0, < 2.0)
|
30
|
-
rspec-support (~> 3.
|
31
|
-
rspec-mocks (3.
|
28
|
+
rspec-support (~> 3.9.0)
|
29
|
+
rspec-mocks (3.9.1)
|
32
30
|
diff-lcs (>= 1.2.0, < 2.0)
|
33
|
-
rspec-support (~> 3.
|
34
|
-
rspec-support (3.
|
31
|
+
rspec-support (~> 3.9.0)
|
32
|
+
rspec-support (3.9.4)
|
35
33
|
|
36
34
|
PLATFORMS
|
37
35
|
ruby
|
@@ -42,4 +40,4 @@ DEPENDENCIES
|
|
42
40
|
vpos!
|
43
41
|
|
44
42
|
BUNDLED WITH
|
45
|
-
2.2.
|
43
|
+
2.2.6
|
data/lib/vpos/version.rb
CHANGED
data/lib/vpos.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
require_relative "vpos_module"
|
2
|
-
require "concurrent"
|
3
2
|
|
4
3
|
class Vpos
|
5
4
|
include VposModule
|
6
|
-
include Concurrent::Async
|
7
5
|
|
8
6
|
def initialize(token: set_token, pos_id: default_pos_id, supervisor_card: default_supervisor_card, payment_callback_url: default_payment_callback_url, refund_callback_url: default_refund_callback_url)
|
9
7
|
@token = token
|
data/lib/vpos_module.rb
CHANGED
@@ -26,6 +26,11 @@ module VposModule
|
|
26
26
|
return_vpos_object(request)
|
27
27
|
end
|
28
28
|
|
29
|
+
def get_transactions
|
30
|
+
request = HTTParty.get("#{host}/transactions", set_headers)
|
31
|
+
return_vpos_object(request)
|
32
|
+
end
|
33
|
+
|
29
34
|
def get_request_id(response)
|
30
35
|
if response[:location].nil?
|
31
36
|
HTTParty.get("#{host}/references/invalid", set_headers)
|
@@ -63,6 +68,6 @@ module VposModule
|
|
63
68
|
end
|
64
69
|
|
65
70
|
def host
|
66
|
-
"https://
|
71
|
+
"https://vpos.ao/api/v1"
|
67
72
|
end
|
68
73
|
end
|
data/vpos.gemspec
CHANGED
@@ -22,9 +22,8 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
23
|
spec.require_paths = ["lib"]
|
24
24
|
|
25
|
-
spec.add_development_dependency
|
25
|
+
spec.add_development_dependency "bundler", '~> 2.2', '>= 2.2.3'
|
26
26
|
spec.add_development_dependency 'rake', '~> 12.3', '>= 12.3.3'
|
27
|
-
spec.add_dependency
|
28
|
-
spec.add_dependency '
|
29
|
-
spec.add_dependency 'rspec', '~> 3.9', ">= 3.9.0"
|
27
|
+
spec.add_dependency "httparty", "~> 0.18.1"
|
28
|
+
spec.add_dependency "rspec", '~> 3.9', ">= 3.9.0"
|
30
29
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vpos
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Maziano
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -64,20 +64,6 @@ dependencies:
|
|
64
64
|
- - "~>"
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: 0.18.1
|
67
|
-
- !ruby/object:Gem::Dependency
|
68
|
-
name: concurrent-ruby
|
69
|
-
requirement: !ruby/object:Gem::Requirement
|
70
|
-
requirements:
|
71
|
-
- - ">="
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
version: '0'
|
74
|
-
type: :runtime
|
75
|
-
prerelease: false
|
76
|
-
version_requirements: !ruby/object:Gem::Requirement
|
77
|
-
requirements:
|
78
|
-
- - ">="
|
79
|
-
- !ruby/object:Gem::Version
|
80
|
-
version: '0'
|
81
67
|
- !ruby/object:Gem::Dependency
|
82
68
|
name: rspec
|
83
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -125,7 +111,7 @@ homepage: https://github.com/v-pos/vpos-ruby
|
|
125
111
|
licenses:
|
126
112
|
- MIT
|
127
113
|
metadata: {}
|
128
|
-
post_install_message:
|
114
|
+
post_install_message:
|
129
115
|
rdoc_options: []
|
130
116
|
require_paths:
|
131
117
|
- lib
|
@@ -140,9 +126,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
126
|
- !ruby/object:Gem::Version
|
141
127
|
version: '0'
|
142
128
|
requirements: []
|
143
|
-
rubyforge_project:
|
129
|
+
rubyforge_project:
|
144
130
|
rubygems_version: 2.7.6.2
|
145
|
-
signing_key:
|
131
|
+
signing_key:
|
146
132
|
specification_version: 4
|
147
133
|
summary: The one stop shop for online payments in Angola.
|
148
134
|
test_files: []
|