tessitura_rest 1.3.8 → 1.4.0

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: ee751d94feccf319e2fb58fe9c89e3886ff8bef25e69c8610ca794b311bd7eae
4
- data.tar.gz: fc995be460714a2e19159e983bb1fc9f256b1d2d1c78a0d7cee91899c2610901
3
+ metadata.gz: 84dc8bafe15158644f375a818d6c49a6494ac11ee29525bff8c2af9f15c46c73
4
+ data.tar.gz: f37aa5e7243ba4429375a24e2e63c5358f8ea7803e4701ae8e439060d5fb9977
5
5
  SHA512:
6
- metadata.gz: f4702d0b7eae978558fdce4c842cef8cdd5f207cedad4c01b071d69920624f6878d942c77ea5374816efe99b3ff2d98f3f634e6a686675964b1586047b1fa9ba
7
- data.tar.gz: 12dba5e228fa5fcfdbaf049f001d445e7557e51c3859db894b3169c8c70b616fcb692f9439a428981265b9f0ec9d7e65f0832ad4bfded52ab9bbb11ad8226eeb
6
+ metadata.gz: a880401729bb24fbcf78b8fcdd8df0aa204c174082eb657fef2875d2a6d0101d9623342ea479224ce4e511886dce5a78648fd9ebb129b94e67512def138d9926
7
+ data.tar.gz: bc0c83ad25ad735185c10d923828f54ce562e14cc8ac21be7770db5c70cedddde74d7a4446113447140030a19ba25bf734fd7091d9bbe4f8af401b2769d2cff7
@@ -1,6 +1,5 @@
1
1
  module PaymentComponent
2
- def fetch_payment_component(amount, constituent = nil, options = {})
3
- card_brands = ['amex', 'mc', 'visa', 'discover']
2
+ def fetch_payment_component(amount, card_brands, constituent = nil, options = {})
4
3
  parameters =
5
4
  {
6
5
  'Amount': amount,
@@ -1,5 +1,5 @@
1
1
  module PaymentGateway
2
- def authorize_payment(amount, store_card, payload, payment_id, return_url, constituent_id, options = {})
2
+ def authorize_payment(amount, store_card, payload, payment_id, return_url, constituent_id, shopper_ip, options = {})
3
3
  parameters = {
4
4
  'Amount': amount,
5
5
  'StoreAccount': store_card,
@@ -12,6 +12,7 @@ module PaymentGateway
12
12
  'PaymentMethodId': 606,
13
13
  'ReturnUrl': return_url,
14
14
  'IsECommerce': true,
15
+ 'ShopperIp': shopper_ip
15
16
  }
16
17
  options.merge!(basic_auth: @auth, headers: @headers)
17
18
  options.merge!(:body => parameters)
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '1.3.8'.freeze
2
+ VERSION = '1.4.0'.freeze
3
3
  end
@@ -297,7 +297,7 @@ 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, authorize, shopper_ip, 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,
@@ -306,8 +306,7 @@ module Cart
306
306
  'Authorize': authorize,
307
307
  'ECommerce': true,
308
308
  'AuthorizationCode': order_authorization_code,
309
- 'PaymentReference': payment_reference,
310
- 'ShopperIp': shopper_ip,
309
+ 'PaymentReference': payment_reference
311
310
  }
312
311
  options.merge!(basic_auth: @auth, headers: @headers)
313
312
  options.merge!(:body => parameters.to_json, :headers => { 'Content-Type' => 'application/json' })
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.8
4
+ version: 1.4.0
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-06-28 00:00:00.000000000 Z
11
+ date: 2023-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler