agms 0.1.1 → 0.1.2
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 +8 -8
- data/.travis.yml +8 -0
- data/example/hpp.rb +1 -1
- data/example/invoicing.rb +1 -1
- data/example/recurring.rb +1 -1
- data/example/report.rb +1 -1
- data/example/safe.rb +1 -1
- data/example/transaction.rb +1 -1
- data/lib/agms/transaction.rb +8 -9
- data/lib/agms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZmFmZWIwODMwYjBjOTQ5MzFlOGI0ZmIwMzBiOGQ3YmZjN2M2YjYxNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTgxYzkyZWExZDU2Y2U1NDI0OTA1Njg0OTcyYTEyOWViMjNmOTk0OA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGNmMWRlNTU1MmZmYjFhOTQ3YjIzM2M1M2RiNDYxN2I4MTFlZjI0NGMxMTdj
|
10
|
+
MWQ2NGNlYzUwNDc5OTZjNmUyMzA4ODYyYWE2Mjc3Zjg1NWFkM2FjYmZiOTI3
|
11
|
+
YmFkNzE5MDMwZGIzZWQ4MmRhYjc0NzIzNThkMmVhOTQyMDdjMGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MjU2NWYxMmYwYjEyZDBhYzE1YjNlNWJhNmY1YjVmZDIzNjE4MzllNTExOTlj
|
14
|
+
M2RiZDE4MzgwNTU3MzZhZGU0YWQ0ZmMzMDY4MGY0YTc3YWExNTdiZDZlNWMw
|
15
|
+
MGViMmQxNGYyNTY0ZTk0ODFhZDczYTJjMjMxMzE1OGRhMTg0MGY=
|
data/.travis.yml
CHANGED
data/example/hpp.rb
CHANGED
data/example/invoicing.rb
CHANGED
data/example/recurring.rb
CHANGED
data/example/report.rb
CHANGED
data/example/safe.rb
CHANGED
data/example/transaction.rb
CHANGED
data/lib/agms/transaction.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Agms
|
2
|
-
|
2
|
+
class Transaction < Agms
|
3
3
|
# A class representing AGMS Transaction objects.
|
4
4
|
|
5
5
|
alias AgmsResetParameters resetParameters
|
@@ -13,7 +13,6 @@ module Agms
|
|
13
13
|
@responseObject = 'TransactionResponse'
|
14
14
|
end
|
15
15
|
|
16
|
-
# @return [Object]
|
17
16
|
def process(params)
|
18
17
|
@op = 'ProcessTransaction'
|
19
18
|
AgmsResetParameters()
|
@@ -25,13 +24,13 @@ module Agms
|
|
25
24
|
end
|
26
25
|
|
27
26
|
protected
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
27
|
+
def execute
|
28
|
+
if @op == 'ProcessTransaction'
|
29
|
+
AgmsDoConnect('ProcessTransaction', @responseObject)
|
30
|
+
else
|
31
|
+
raise InvalidRequestError, "Invalid request to Transaction API #{@op}"
|
32
|
+
end
|
33
|
+
end
|
35
34
|
|
36
35
|
end
|
37
36
|
end
|
data/lib/agms/version.rb
CHANGED