tessitura_rest 1.3.1 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca0119887a9d92d5ca50c64105f084ab8652273a0c4aa86a77b2724d16b14bd4
4
- data.tar.gz: b215c926c48c66b7df8375254b3212d14f505e42f0a8805fb110b05168277229
3
+ metadata.gz: 3061c6a12b547dd995452b956f3e23a0460bd9052b76a6090c8b91e16b7d8147
4
+ data.tar.gz: '04098a87fc60f2312dd4a98b2d0d2a7c41bfcc7877a76243a6e8a50708fcf8c5'
5
5
  SHA512:
6
- metadata.gz: 5668e2b3427330bc74a81d4d6e92e7b1d5031b8c199464a540e0d4c3288641f34a69a261bd9e1291fcb537793ba125468cf22685121a5a9ecb3914a435e8e23c
7
- data.tar.gz: f8ac7486bbfe1d3fac9288a0a2c5112a09af0d60275e43050686539543e654c2289174bbb01eca1f5628ec6caa9d2e7d34152a27a2d8be69451348825f7905b8
6
+ metadata.gz: f786ac622d9ddf3244a0e910762053b55e8fc174deebcbc705501cef3899e09d357efb0b2d4af37803c0e89cfbb91119ec52652fa4b316b635a5dda6ecd6f694
7
+ data.tar.gz: de37b257d2c9bf6e188beb8c3962f4cee795e63b16e5255cbe5897757f650496abd3eb98d89b5a4c9129f960e4e2d1c37b04df15258369432d4e31915112e514
@@ -1,13 +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,
7
- 'CardBrandsToInclude': ['amex', 'mc', 'visa', 'discover'],
8
+ 'CardBrandsToInclude': card_brands,
8
9
  }
9
10
  options.merge!(basic_auth: @auth, headers: @headers)
10
- options.merge!(:body => parameters)
11
+ options.merge!(:body => parameters.to_json, :headers => { 'Content-Type' => 'application/json' })
11
12
  self.class.post(base_api_endpoint('PaymentGateway/PaymentComponent'), options)
12
13
  end
13
14
  end
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '1.3.1'.freeze
2
+ VERSION = '1.3.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tessitura_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald