centralpos 0.2.3 → 0.2.4

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
  SHA1:
3
- metadata.gz: 1bfff191300f838b33ec5c08efef58a0ce48dceb
4
- data.tar.gz: 7c96461884777c962483a82453b0cc4b81be55e4
3
+ metadata.gz: 13a9523c0bedd1e3122f76d4ff11b67925fb6360
4
+ data.tar.gz: 6d4235948ac4c997b0443a34549da901f2822cde
5
5
  SHA512:
6
- metadata.gz: 8dca83c316af0bb75d96b6925b416dfface66fc6338e86ed35c587679f4168386a223152f292c47151657d80cf9833fe610589cccf52cf0c738ce4eff0759452
7
- data.tar.gz: d050796b39825caf46179d4f1f49003f3edf800293f378a362ce35be76c4512370dda89693aa477791392826c18542c66c3a3ba85bbca526a3ed8f0e48cba292
6
+ metadata.gz: ef15fc7046d8589d29544312bd42b696f370e46ad13a10782ed7fe7242f4a60ad6e142a2398739a2cb1be18061f34d24cbc4a3ee635c451f0ce1f5ef689eb522
7
+ data.tar.gz: 849000633bdad10d0056d135435b73f18988231cb30d87e00bf0ff889b5ff5080f41eb7d8c47d398aeb111e1f5f07a20b7be3338cfc4d09c52dae4406716ef98
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
  ######################
@@ -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[: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.4"
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.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: 2018-07-26 00:00:00.000000000 Z
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
@@ -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' }