tessitura_rest 2.1.4 → 2.1.6

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: a68b5441736a39621d4bb5f66e7fe1fb07dc635cf3c0bcc79a96847651a560d4
4
- data.tar.gz: 2c429a6aa7f2325540271541616b420aeda715e4456b7f8299c7160f726332cd
3
+ metadata.gz: 1e1eed0759e5cce9ff1ff87604281aac20b6c03240267079da3968ccc112c756
4
+ data.tar.gz: 26c2f01d1066162c2fb5ac6722483b48b0b1490f73e531540a73f00e83126602
5
5
  SHA512:
6
- metadata.gz: d5ff7f2dac5c5be8d31a3eaa184f502c0de650d03498187157fa5b781a2c8751318d8cc6a3503db8deba23801ad3ca42dcd8c961abb4f76a552d70cd595e0b54
7
- data.tar.gz: bc6ebcb190f141913adaf8295a420248216c396ba9fc6d74dc30752e4e58f8a1137a952ff5706705610d621e3c0666c1f1729fd57bd613cbfef144b90facf6f7
6
+ metadata.gz: '09a49ac55281ab5ce70a63e36affb3ce7526e9996b60703d85fa966bb2e317f76787bec15a4822961745e87b8c0ff3b428e14138f70ba59a232dab4f0114e796'
7
+ data.tar.gz: ce6adca89722d7c9c52d0e8a7ec47e0c1a49db1a4ce7b27c91424ec5046200e9aaa194a49d382693821b7cd7a3bf95240b912e85535d33bde5c906dd5bbb1fe6
data/.rubocop.yml CHANGED
@@ -3,7 +3,6 @@ AllCops:
3
3
  NewCops: enable
4
4
  Exclude:
5
5
  - spec/**/*
6
- TargetRubyVersion: 3.0.1
7
6
 
8
7
  Naming/AccessorMethodName:
9
8
  Description: Check the naming of accessor methods for get_/set_.
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.1
@@ -31,6 +31,25 @@ module PaymentGateway
31
31
  self.class.post(base_api_endpoint('PaymentGateway/Authorization/Authorize'), options)
32
32
  end
33
33
 
34
+ def store_card(amount, payment_id, constituent_id, payload, return_url, options = {})
35
+ parameters = {
36
+ 'Amount': amount,
37
+ 'PaymentId': payment_id,
38
+ 'ConstituentId': constituent_id,
39
+ 'Card': {
40
+ 'TessituraMerchantServicesData': payload,
41
+ },
42
+ 'TransactionOrigin': 'webapi',
43
+ 'PaymentMethodId': 606,
44
+ 'IsECommerce': true,
45
+ 'StoreAccount': true,
46
+ 'ReturnUrl': return_url,
47
+ }
48
+ options.merge!(basic_auth: @auth, headers: @headers)
49
+ options.merge!(:body => parameters.to_json)
50
+ self.class.post(base_api_endpoint('PaymentGateway/Authorization/Authorize'), options)
51
+ end
52
+
34
53
  def finalize_payment(payload, payment_id, store_account, options = {})
35
54
  parameters = {
36
55
  'PaymentId': payment_id,
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '2.1.4'.freeze
2
+ VERSION = '2.1.6'.freeze
3
3
  end
@@ -39,7 +39,6 @@ class TessituraRest
39
39
  include Registration
40
40
  include Sections
41
41
  include Session
42
- include SecurityUserGroups
43
42
  include States
44
43
  include TicketProtectionPerformances
45
44
  include SubLineItems
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.1.4
4
+ version: 2.1.6
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-10-28 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -123,6 +123,7 @@ files:
123
123
  - ".gitignore"
124
124
  - ".rspec"
125
125
  - ".rubocop.yml"
126
+ - ".ruby-version"
126
127
  - CODE_OF_CONDUCT.md
127
128
  - Gemfile
128
129
  - LICENSE.txt
@@ -151,7 +152,6 @@ files:
151
152
  - lib/tessitura_rest/reference_data/countries.rb
152
153
  - lib/tessitura_rest/reference_data/sections.rb
153
154
  - lib/tessitura_rest/reference_data/states.rb
154
- - lib/tessitura_rest/security/security_user_groups.rb
155
155
  - lib/tessitura_rest/txn/orders.rb
156
156
  - lib/tessitura_rest/txn/package.rb
157
157
  - lib/tessitura_rest/txn/payments.rb
@@ -1,7 +0,0 @@
1
- module SecurityUserGroups
2
- def security_user_groups(login, options = {})
3
- options.merge!(basic_auth: @auth, headers: @headers)
4
- response = self.class.get(base_api_endpoint("Security/UserGroups/Default?userName=#{login}"), options)
5
- JSON.parse(response.body)['UserGroup']
6
- end
7
- end