fat_zebra 2.0.6 → 2.0.7
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/lib/fat_zebra/models/refund.rb +4 -1
- data/lib/fat_zebra/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MmJjODg4M2ZiYzMxMTE2ZmJhZjA3MTQ2NzYyNmMzY2VmZGY4YTJhNw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODc1OWY1ZmMxNDBhNjA2OTJjMmJiYjI3ODdjMzJlNDE0NGEzY2RlNg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTg5M2IxMmNlZDhkNzkxOWYzY2VkMjVlZThhOGQ5YjYwZGQ0MWVlYjE0NjVk
|
10
|
+
NjY0YjRkNTQ2YTFiNDNhYTVjODE5OGVhM2RlNjhkMzc3Mjc4M2Q3NGRjNjIy
|
11
|
+
OWM2MmFlMGZhMTkzMmI4MjRlNDA1ZTM5MTA2ZDBiZmRiOTQyY2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ODk4ODY4YTU3OGQzNmUxNjM3MjNkZmZiNmU2YzYwYzFjNGM1YTFhMWM3NDAy
|
14
|
+
M2YwMDk4NDE5MWFlMmYzOTRlMTgyYzdiOGZjNDFmODljMDY5N2U0ODc3ZDRm
|
15
|
+
NDA5MzlmYWJhNjA1MTk3ZDU4ZjE4ZDg3N2JmNmQwMDFhYTg5MDA=
|
@@ -24,15 +24,18 @@ module FatZebra
|
|
24
24
|
# @param [String] the ID of the original transaction to be refunded
|
25
25
|
# @param [Integer] the amount to be refunded, as an integer
|
26
26
|
# @param [String] the reference for the refund
|
27
|
+
# @param [Hash] optional optional parameters to be included in the request
|
27
28
|
#
|
28
29
|
# @return [Refund] refund result object
|
29
|
-
def create(transaction_id, amount, reference)
|
30
|
+
def create(transaction_id, amount, reference, optional = {})
|
30
31
|
params = {
|
31
32
|
:transaction_id => transaction_id,
|
32
33
|
:amount => amount,
|
33
34
|
:reference => reference
|
34
35
|
}
|
35
36
|
|
37
|
+
params.merge!(optional)
|
38
|
+
|
36
39
|
response = FatZebra.gateway.make_request(:post, "refunds", params)
|
37
40
|
Response.new(response, :refund)
|
38
41
|
end
|
data/lib/fat_zebra/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fat_zebra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthew Savage
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|