tessitura_rest 1.3.1 → 1.3.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: ca0119887a9d92d5ca50c64105f084ab8652273a0c4aa86a77b2724d16b14bd4
4
- data.tar.gz: b215c926c48c66b7df8375254b3212d14f505e42f0a8805fb110b05168277229
3
+ metadata.gz: bc112f2b60cffddedb2bd8ed1cf4612327645bc15a2fa26954d4c213565f0c0a
4
+ data.tar.gz: 9f9f2860a119cda4bf98dba2d9ee22e70e1c784f5447ecf408dc42e53ccdef1c
5
5
  SHA512:
6
- metadata.gz: 5668e2b3427330bc74a81d4d6e92e7b1d5031b8c199464a540e0d4c3288641f34a69a261bd9e1291fcb537793ba125468cf22685121a5a9ecb3914a435e8e23c
7
- data.tar.gz: f8ac7486bbfe1d3fac9288a0a2c5112a09af0d60275e43050686539543e654c2289174bbb01eca1f5628ec6caa9d2e7d34152a27a2d8be69451348825f7905b8
6
+ metadata.gz: 49add3d46e1ec01e9220ed8dc9fbe9aa2ab3219ba9c8914cdd95aff20e633be9f69d2f462a21ef5e772694b9cc054b15a746b04df190733c22f4d15cb6648971
7
+ data.tar.gz: e22360189086cb13093b6a0017a1825a1356f1d6eb0f9f9e65d0c11afbaa17431640215ddac721b6f59cda4fb66ca52e68a35bff06abc0b88f2803dc47140003
@@ -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.3'.freeze
3
3
  end
@@ -297,13 +297,13 @@ module Cart
297
297
  self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Checkout"), options)
298
298
  end
299
299
 
300
- def checkout_with_tms(session_key, order_authorization_code, order_amount, allow_under_payment, payment_method_id, payment_reference, options = {})
300
+ def checkout_with_tms(session_key, order_authorization_code, order_amount, allow_under_payment, payment_method_id, payment_reference, authorize, options = {})
301
301
  parameters =
302
302
  {
303
303
  'CreditCardType': payment_method_id,
304
304
  'Amount': order_amount,
305
305
  'AllowUnderPayment': allow_under_payment,
306
- 'Authorize': false,
306
+ 'Authorize': authorize,
307
307
  'ECommerce': true,
308
308
  'AuthorizationCode': order_authorization_code,
309
309
  'PaymentReference': payment_reference,
@@ -314,7 +314,7 @@ module Cart
314
314
  end
315
315
 
316
316
  def checkout_with_zip(session_key, name_on_card, credit_card_number, cvv_number, credit_card_type, expiration_month, expiration_year, zip_code, is_order_authorized, order_authorization_code, order_amount, allow_under_payment,
317
- options = {})
317
+ options = {})
318
318
  parameters =
319
319
  {
320
320
  'CreditCardOwner': name_on_card,
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.1
4
+ version: 1.3.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-28 00:00:00.000000000 Z
11
+ date: 2023-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler