tessitura_rest 2.0.2 → 2.0.4

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: 253ffa0dec2d61493a65bd12b1f34d598cf7a687b5126850be8624a26bc7ad6a
4
- data.tar.gz: b3485ccaa71eeab8a06c9628fbb270a16531a6cf91a0d03f29c47052d67bc5f2
3
+ metadata.gz: 2d1d3e21a921fc09feb4e8d7ec264f473cbe66ad5dc10b51ac4c5b50a6209676
4
+ data.tar.gz: 6c8619a26a15a2e6f4b169aad03f57f4669928dadd180181edadf64771bb3db5
5
5
  SHA512:
6
- metadata.gz: 7dbb5af3253cbad78d53b9c941f6a46a9b6610b1c90f4e913f71511334a0cb516a1c973085fc4de267a55d80e64afe3d954623b245a78226984651424855a5d0
7
- data.tar.gz: ec1495fccfe86c90100bdad91d8e28f87eb09fabb8a2feb993a6dedcd10a09270df5ab1c97e39a1fe7ac09536919fde86483eb29b503dc4d2761ae529169a0c9
6
+ metadata.gz: aec7f91f212942110db4b9dd7738fe8eee6cbf66d59d07c89c7533ba20d76778cc02a9dd3f1610457c1ab21d58a70b31f0cbf4b238004a5c26bc43d0247499da
7
+ data.tar.gz: f2ec563c2a94ce2733a53e4175a25f3c69429d4c3d0d7489b4a9b7b852384339468e3bc5f2a923c2cbc6db95d35f6ad9e6f890a5dbe7baf86764edf70121b647
@@ -1,5 +1,5 @@
1
1
  module PaymentGateway
2
- def authorize_payment(amount, store_card, payload, payment_id, return_url, constituent_id, shopper_ip, address, delivery_date, options = {})
2
+ def authorize_payment(amount, store_card, payload, payment_id, return_url, constituent, shopper_ip, address, delivery_date, options = {})
3
3
  parameters = {
4
4
  'Amount': amount,
5
5
  'StoreAccount': store_card,
@@ -7,12 +7,17 @@ module PaymentGateway
7
7
  'TessituraMerchantServicesData': payload,
8
8
  },
9
9
  'PaymentId': payment_id,
10
- 'ConstituentId': constituent_id,
10
+ 'ConstituentId': constituent.customer_no,
11
11
  'TransactionOrigin': 'webapi',
12
12
  'PaymentMethodId': 606,
13
13
  'ReturnUrl': return_url,
14
14
  'IsECommerce': true,
15
15
  'ShopperIp': shopper_ip,
16
+ 'ShopperEmail': constituent.email,
17
+ 'ShopperName': {
18
+ 'FirstName': constituent.first_name,
19
+ 'LastName': constituent.last_name,
20
+ },
16
21
  'BillingAddress': {
17
22
  'PostalCode': address.postal_code,
18
23
  'Street1': address.street1,
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '2.0.2'.freeze
2
+ VERSION = '2.0.4'.freeze
3
3
  end
@@ -68,6 +68,7 @@ module Registration
68
68
  {
69
69
  'PhoneNumber': phone,
70
70
  'PhoneTypeId': 5,
71
+ 'IsMobile': true,
71
72
  },
72
73
  }
73
74
  options.merge!(basic_auth: @auth, headers: @headers)
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: 2.0.2
4
+ version: 2.0.4
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: 2024-06-25 00:00:00.000000000 Z
11
+ date: 2024-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler