tessitura_rest 1.2.9 → 1.3

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
  SHA256:
3
- metadata.gz: 8da9ed5173c89e239581ef057a0d2cb042245b08be820b7c0e217467f851cf06
4
- data.tar.gz: b7705160c0872f2b847190bff1636bc582aa02f184ac2edd309b0d738f94232b
3
+ metadata.gz: 1a04569767581e4c1fa6e41aa2245220792d3a2ff9ae19a7906509bc33b999cd
4
+ data.tar.gz: c1460e19f9914dc471dced8b9aef2443785e3d9a903caefdb554f50f9e96dff8
5
5
  SHA512:
6
- metadata.gz: 4de6e8bdb8a20f53fceccfc250f8c8888b4d781e0a11b539576d84c3d0df67aedeb0336a30245879e8e1c196f559873e0ded5321b367a19b1077bc172ef20b15
7
- data.tar.gz: 03ef032d515ca051a0eccfdd7480380dab6fa685304ea0e7d96dd9a12f76c1b646a85551bf0151de7f55a0b92119bfb3146f798bd7ea811fc0306c594e0cd696
6
+ metadata.gz: a517fa329a6c6edb500830e0d1cc189390c71753163f6b0bf94437e5c8e70f969dbc92021aee82896d1b687c9a7ed2c9aaf17322e8ff67d4a0b473ebdc06b494
7
+ data.tar.gz: eda0abc9317c005b5a0230c12d51877ae767b33a225977ebaf6230cc201ba72c4225e82a79b5def7bc0e5ba7c99a52f19b5f7492e97684700fa19a52b0d643fc
@@ -25,4 +25,16 @@ module PaymentGateway
25
25
  options.merge!(:body => parameters)
26
26
  self.class.post(base_api_endpoint('PaymentGateway/Authorization/Finalize'), options)
27
27
  end
28
- end
28
+
29
+ def reversal_request(amount, reference_number, payment_id, options = {})
30
+ parameters = {
31
+ 'Amount': amount,
32
+ 'PaymentId': payment_id,
33
+ 'TransactionOrigin': 'webapi',
34
+ 'PaymentMethodId': 606,
35
+ }
36
+ options.merge!(basic_auth: @auth, headers: @headers)
37
+ options.merge!(:body => parameters)
38
+ self.class.post(base_api_endpoint("PaymentGateway/Authorization/#{reference_number}/Reverse"), options)
39
+ end
40
+ end
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '1.2.9'.freeze
2
+ VERSION = '1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tessitura_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.9
4
+ version: '1.3'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-20 00:00:00.000000000 Z
11
+ date: 2023-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler