centralpos 0.2.3 → 0.2.7

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
- SHA1:
3
- metadata.gz: 1bfff191300f838b33ec5c08efef58a0ce48dceb
4
- data.tar.gz: 7c96461884777c962483a82453b0cc4b81be55e4
2
+ SHA256:
3
+ metadata.gz: dd631ad605a9c35caaf309e08bf8afb4f46d669211e06000190782db6c7d5db9
4
+ data.tar.gz: f2aed4a5005b528509fdc0c434389a44e3540af8841d729b0521afcb016236eb
5
5
  SHA512:
6
- metadata.gz: 8dca83c316af0bb75d96b6925b416dfface66fc6338e86ed35c587679f4168386a223152f292c47151657d80cf9833fe610589cccf52cf0c738ce4eff0759452
7
- data.tar.gz: d050796b39825caf46179d4f1f49003f3edf800293f378a362ce35be76c4512370dda89693aa477791392826c18542c66c3a3ba85bbca526a3ed8f0e48cba292
6
+ metadata.gz: 0c26ad399545ccbb0b77d90b9fb5033e7d6c3ab2bbe812e47bde43d77c2974b55a5238ec51e4bbec3669bdd8e43c4107461a74451b1796cda97e0ac252548594
7
+ data.tar.gz: be4850b5ed414cdd58f14bb7c9b3d6a0ac390cfe93ae68dbfbc104a843a20a0a3c30102c539e125dbd8d049304b853536cc377e711fd1d576a101d7b0ec26e98
data/.gitignore CHANGED
@@ -7,6 +7,9 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /local/
11
+ **/*/local/*
12
+ *.local.*
10
13
 
11
14
  # OS generated files #
12
15
  ######################
@@ -19,5 +22,8 @@ ehthumbs.db
19
22
  Thumbs.db
20
23
  dump.rdb
21
24
 
25
+ # Ruby version
26
+ /.ruby-version
27
+
22
28
  # GS folder for managing the Gemset
23
29
  .gs/
data/centralpos.gemspec CHANGED
@@ -19,14 +19,13 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency "savon", "~> 2.11"
22
+ spec.add_dependency "savon", "~> 2.12"
23
23
 
24
24
  spec.add_development_dependency "pry"
25
25
  spec.add_development_dependency "httplog"
26
- spec.add_development_dependency "bundler", "~> 1.12"
27
26
  spec.add_development_dependency "minitest", "~> 5.0"
28
27
  spec.add_development_dependency "pry-byebug", "~> 3.2"
29
- spec.add_development_dependency "rake", "~> 10.4"
28
+ spec.add_development_dependency "rake", ">= 12.3.3"
30
29
  spec.add_development_dependency "vcr", "~> 2.9"
31
30
  spec.add_development_dependency "webmock", "~> 1.21"
32
31
  end
@@ -32,7 +32,7 @@ module Centralpos
32
32
  response = @account.gateway.call(:add_registro, batch_params.merge(transaction.to_add_params))
33
33
 
34
34
  if response[:success] && response[:error].nil?
35
- { transaction: transaction.to_hash }
35
+ { transaction: transaction.to_hash, response: response }
36
36
  else
37
37
  response
38
38
  end
@@ -44,7 +44,7 @@ module Centralpos
44
44
  response = @account.gateway.call(:del_registro, batch_params.merge(transaction.to_remove_params))
45
45
 
46
46
  if response[:success] && response[:error].nil?
47
- { transaction: transaction.to_hash }
47
+ { transaction: transaction.to_hash, response: response }
48
48
  else
49
49
  response
50
50
  end
@@ -11,7 +11,7 @@ module Centralpos
11
11
  cc_number:data[:nro_tarjeta],
12
12
  amount: data[:importe],
13
13
  optional_data_1: data[:dato_opcional],
14
- optional_data_2: data[:dato_opcional_2],
14
+ optional_data_2: data[:dato_opcional2],
15
15
  applied: data[:aplicado],
16
16
  message: data[:observaciones],
17
17
  card_error_code: data[:cod_error_tarjeta]
@@ -1,3 +1,3 @@
1
1
  module Centralpos
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: centralpos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agustin Cavilliotti
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-07-26 00:00:00.000000000 Z
11
+ date: 2021-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '2.11'
19
+ version: '2.12'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '2.11'
26
+ version: '2.12'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: pry
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -52,20 +52,6 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: bundler
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '1.12'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '1.12'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: minitest
71
57
  requirement: !ruby/object:Gem::Requirement
@@ -98,16 +84,16 @@ dependencies:
98
84
  name: rake
99
85
  requirement: !ruby/object:Gem::Requirement
100
86
  requirements:
101
- - - "~>"
87
+ - - ">="
102
88
  - !ruby/object:Gem::Version
103
- version: '10.4'
89
+ version: 12.3.3
104
90
  type: :development
105
91
  prerelease: false
106
92
  version_requirements: !ruby/object:Gem::Requirement
107
93
  requirements:
108
- - - "~>"
94
+ - - ">="
109
95
  - !ruby/object:Gem::Version
110
- version: '10.4'
96
+ version: 12.3.3
111
97
  - !ruby/object:Gem::Dependency
112
98
  name: vcr
113
99
  requirement: !ruby/object:Gem::Requirement
@@ -144,7 +130,6 @@ extensions: []
144
130
  extra_rdoc_files: []
145
131
  files:
146
132
  - ".gitignore"
147
- - ".ruby-version"
148
133
  - ".travis.yml"
149
134
  - CODE_OF_CONDUCT.md
150
135
  - Gemfile
@@ -164,7 +149,6 @@ files:
164
149
  - lib/centralpos/transaction.rb
165
150
  - lib/centralpos/utils.rb
166
151
  - lib/centralpos/version.rb
167
- - update_transaction.rb
168
152
  homepage: https://github.com/donaronline/centralpos
169
153
  licenses:
170
154
  - MIT
@@ -184,8 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
184
168
  - !ruby/object:Gem::Version
185
169
  version: '0'
186
170
  requirements: []
187
- rubyforge_project:
188
- rubygems_version: 2.5.2
171
+ rubygems_version: 3.1.4
189
172
  signing_key:
190
173
  specification_version: 4
191
174
  summary: Ruby wrapper for the CentralPos WebService
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 2.3.3
@@ -1,30 +0,0 @@
1
- Centralpos.setup do |config|
2
- config.sandbox_wsdl_endpoint = ''
3
- config.production_wsdl_endpoint = 'http://acceso.centralpos.com:8096/CentralPosDebAutWS.asmx?wsdl'
4
- end
5
-
6
- account = Centralpos::Account.new("maria@reynoldspropiedades.com", "Lichi", :live)
7
- batch = account.batch('84577')
8
-
9
- transaction_params = {
10
- optional_data_1: "41u6vtaxwdy",
11
- owner_id: "",
12
- cc_number: "",
13
- amount: 6000.0,
14
- }
15
- transaction = Centralpos::Transaction.new(transaction_params)
16
- batch.add_transaction(transaction)
17
- batch.update_transaction(transaction)
18
-
19
-
20
- transaction_params = {
21
- owner_id: "79643",
22
- cc_number: "",
23
- amount: 1.0
24
- }
25
- transaction = Centralpos::Transaction.new(transaction_params)
26
- batch.remove_transaction(transaction)
27
-
28
-
29
-
30
- { "KeyDO" => '1e4404983fd3236da010c394e37559a7', "KeyCliente" => '30714740276' }