centralpos 0.2.3 → 0.2.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/.gitignore +3 -0
- data/centralpos.gemspec +0 -1
- data/lib/centralpos/transaction.rb +1 -1
- data/lib/centralpos/version.rb +1 -1
- metadata +2 -17
- data/update_transaction.rb +0 -30
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 13a9523c0bedd1e3122f76d4ff11b67925fb6360
|
|
4
|
+
data.tar.gz: 6d4235948ac4c997b0443a34549da901f2822cde
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef15fc7046d8589d29544312bd42b696f370e46ad13a10782ed7fe7242f4a60ad6e142a2398739a2cb1be18061f34d24cbc4a3ee635c451f0ce1f5ef689eb522
|
|
7
|
+
data.tar.gz: 849000633bdad10d0056d135435b73f18988231cb30d87e00bf0ff889b5ff5080f41eb7d8c47d398aeb111e1f5f07a20b7be3338cfc4d09c52dae4406716ef98
|
data/.gitignore
CHANGED
data/centralpos.gemspec
CHANGED
|
@@ -23,7 +23,6 @@ Gem::Specification.new do |spec|
|
|
|
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
28
|
spec.add_development_dependency "rake", "~> 10.4"
|
|
@@ -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[:
|
|
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]
|
data/lib/centralpos/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Agustin Cavilliotti
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2020-05-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: savon
|
|
@@ -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
|
|
@@ -164,7 +150,6 @@ files:
|
|
|
164
150
|
- lib/centralpos/transaction.rb
|
|
165
151
|
- lib/centralpos/utils.rb
|
|
166
152
|
- lib/centralpos/version.rb
|
|
167
|
-
- update_transaction.rb
|
|
168
153
|
homepage: https://github.com/donaronline/centralpos
|
|
169
154
|
licenses:
|
|
170
155
|
- MIT
|
data/update_transaction.rb
DELETED
|
@@ -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' }
|