centralpos 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/centralpos/transaction.rb +4 -4
- data/lib/centralpos/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 40af39ab5057cc4abe373ff5e1b2edb1ec7ec681
|
4
|
+
data.tar.gz: d8833a9f045ddc5aeea390b832db211f317c974f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 514549d351970e5c83629ea166fb8dea54c81224c3fa4a1677454ddcb6dad636244daf47e8e2bb730c7b3f4e6a3bb38d69eb2f4a45d155a24af8fc0dc7fe84a4
|
7
|
+
data.tar.gz: 6e1693740b07fa466ad69f50b98472df43abd92f5ff3ad2b0b0db98a4ca9dfdc148fe1e076fa0fa48787044218902be3c79be358ee403f5534d300e89977d96a
|
@@ -19,17 +19,17 @@ module Centralpos
|
|
19
19
|
new(data)
|
20
20
|
end
|
21
21
|
|
22
|
-
def initialize(owner_id:, cc_number:, amount:, optional_data_1: "", optional_data_2: "",
|
22
|
+
def initialize(owner_id:, cc_number:, amount:, optional_data_1: "", optional_data_2: "", **extras)
|
23
23
|
@id = md5("#{owner_id}-#{cc_number}")
|
24
24
|
@owner_id = owner_id.to_i
|
25
25
|
@cc_number = cc_number
|
26
26
|
@amount = amount.to_s
|
27
27
|
@optional_data_1 = optional_data_1
|
28
28
|
@optional_data_2 = optional_data_2
|
29
|
-
@applied = applied
|
30
|
-
@message = message
|
31
|
-
@card_error_code = card_error_code
|
32
29
|
@extras = extras
|
30
|
+
@applied = @extras[:applied]
|
31
|
+
@message = @extras[:message]
|
32
|
+
@card_error_code = @extras[:card_error_code]
|
33
33
|
end
|
34
34
|
UPDATABLE_VALUES.each do |key|
|
35
35
|
define_method("#{key}=") do |value|
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Agustin Cavilliotti
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|