tessitura_rest 1.3 → 1.3.2

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: 1a04569767581e4c1fa6e41aa2245220792d3a2ff9ae19a7906509bc33b999cd
4
- data.tar.gz: c1460e19f9914dc471dced8b9aef2443785e3d9a903caefdb554f50f9e96dff8
3
+ metadata.gz: 3061c6a12b547dd995452b956f3e23a0460bd9052b76a6090c8b91e16b7d8147
4
+ data.tar.gz: '04098a87fc60f2312dd4a98b2d0d2a7c41bfcc7877a76243a6e8a50708fcf8c5'
5
5
  SHA512:
6
- metadata.gz: a517fa329a6c6edb500830e0d1cc189390c71753163f6b0bf94437e5c8e70f969dbc92021aee82896d1b687c9a7ed2c9aaf17322e8ff67d4a0b473ebdc06b494
7
- data.tar.gz: eda0abc9317c005b5a0230c12d51877ae767b33a225977ebaf6230cc201ba72c4225e82a79b5def7bc0e5ba7c99a52f19b5f7492e97684700fa19a52b0d643fc
6
+ metadata.gz: f786ac622d9ddf3244a0e910762053b55e8fc174deebcbc705501cef3899e09d357efb0b2d4af37803c0e89cfbb91119ec52652fa4b316b635a5dda6ecd6f694
7
+ data.tar.gz: de37b257d2c9bf6e188beb8c3962f4cee795e63b16e5255cbe5897757f650496abd3eb98d89b5a4c9129f960e4e2d1c37b04df15258369432d4e31915112e514
@@ -1,12 +1,14 @@
1
1
  module PaymentComponent
2
2
  def fetch_payment_component(amount, constituent = 0, options = {})
3
+ card_brands = ['amex', 'mc', 'visa', 'discover']
3
4
  parameters =
4
5
  {
5
6
  'Amount': amount,
6
7
  'ConstituentId': constituent,
8
+ 'CardBrandsToInclude': card_brands,
7
9
  }
8
10
  options.merge!(basic_auth: @auth, headers: @headers)
9
- options.merge!(:body => parameters)
11
+ options.merge!(:body => parameters.to_json, :headers => { 'Content-Type' => 'application/json' })
10
12
  self.class.post(base_api_endpoint('PaymentGateway/PaymentComponent'), options)
11
13
  end
12
14
  end
@@ -1,7 +1,8 @@
1
1
  module PaymentGateway
2
- def authorize_payment(amount, payload, payment_id, return_url, constituent_id, options = {})
2
+ def authorize_payment(amount, store_card, payload, payment_id, return_url, constituent_id, options = {})
3
3
  parameters = {
4
4
  'Amount': amount,
5
+ 'StoreAccount': store_card,
5
6
  'Card': {
6
7
  'TessituraMerchantServicesData': payload,
7
8
  },
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '1.3'.freeze
2
+ VERSION = '1.3.2'.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.3'
4
+ version: 1.3.2
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-27 00:00:00.000000000 Z
11
+ date: 2023-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler