fat_zebra 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWI3NDI2ZTQ2MjAxYWFiMmU4MTQ2Nzk5NjY5ODBmZDg0YmNlM2U4Yw==
4
+ MmJjODg4M2ZiYzMxMTE2ZmJhZjA3MTQ2NzYyNmMzY2VmZGY4YTJhNw==
5
5
  data.tar.gz: !binary |-
6
- YzYyYTVhZjg5NzFkODk3ZjZhZTJlYzY4M2EwNDllYzYxZDNmZWFmZA==
6
+ ODc1OWY1ZmMxNDBhNjA2OTJjMmJiYjI3ODdjMzJlNDE0NGEzY2RlNg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZGYwNTM1OTFhYWY3ZmRjYmRmNGE1NzMyMjJkNWYzOTQ1ZmJhMTEwYzQyYjVl
10
- NTAyNWYxNzg0NzFiNDFlY2M5M2E1MTk5MWE0NGQyYzMyOGVhZTFiMDMxY2E3
11
- YjFhMmM0ZTA4ZDIwNjNlMzVlY2RlMTAwOGYxOTNmNDEyMGJjMzI=
9
+ ZTg5M2IxMmNlZDhkNzkxOWYzY2VkMjVlZThhOGQ5YjYwZGQ0MWVlYjE0NjVk
10
+ NjY0YjRkNTQ2YTFiNDNhYTVjODE5OGVhM2RlNjhkMzc3Mjc4M2Q3NGRjNjIy
11
+ OWM2MmFlMGZhMTkzMmI4MjRlNDA1ZTM5MTA2ZDBiZmRiOTQyY2I=
12
12
  data.tar.gz: !binary |-
13
- OTJjZWY1NGE2ZGVlYmI2ZjViNDY5YTNhYWFhZWZiYzIwYmFjMDlkOTAzNmZi
14
- Y2M1NmIwMjAwNDVhYmE3M2E4MTQxYWViZjc5OTU1NjkzMDU4OWRkYjhjYTFi
15
- NzIxZTM3N2U1YWVkN2M1NTI5YjBlNGNjMTQ2YjE5NmFmZjc3MGE=
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
@@ -1,3 +1,3 @@
1
1
  module FatZebra
2
- VERSION = "2.0.6"
2
+ VERSION = "2.0.7"
3
3
  end
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.6
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-06-17 00:00:00.000000000 Z
11
+ date: 2015-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec