tessitura_rest 1.5.3.1 → 2.0.1

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: 901015c9a70324ea9798a42d4a8ea897bcb93a8b86c2d41c7a60595352f99e23
4
- data.tar.gz: a8cc30a6e5955636cb0389a7ca883ac242afa78e18947165a79dc4b7f90f25f7
3
+ metadata.gz: 98c5160893c0d3d533affd24c59e1d7b7891585aba4e0f8545ad255b34b547bc
4
+ data.tar.gz: 9286db582296fe7b2e4f9aec4cb2799ad3b26a43fbc0a28e6977056dc07ed23f
5
5
  SHA512:
6
- metadata.gz: 0e2d9927db6fc7b744c571dbda4c1cc0893eaf8b4408a4ff44689f63cf6d4b8e9459f3cafb157773bdcec892535a3d844b9fd59e0a875582b1c74ed38df96ca1
7
- data.tar.gz: 06d1ba0ed08031a0d4d37d435d9e3b34d1865665f2e7d73472f1ba9f26946481cfcab69de4b3ad2671f5062492789420b93e042796ce1ab01d61cdb5adb5e21b
6
+ metadata.gz: 7b0bb581bdb2f6fb533853b54913accf143e7bff4cbaff30c981179152794210c38d2926bae9e0024e93c607094211403d214ee29b63e4d620c92eea204e4a92
7
+ data.tar.gz: 8a72185f02f46ab171bbb44b232383d6437eed60f5ec6c6b4e1bbae4426a322f9ac5506f2d85fc7c6a91307e65d0d5d19437064b5d9f485013621244a466aff5
@@ -22,7 +22,6 @@ module Addresses
22
22
  'Id': constituent,
23
23
  },
24
24
  'Inactive': false,
25
- 'Label': true,
26
25
  'Months': 'YYYYYYYYYYYY',
27
26
  'PostalCode': postal_code,
28
27
  'PrimaryIndicator': primary,
@@ -57,7 +56,6 @@ module Addresses
57
56
  'Constituent': {
58
57
  'Id': current['Constituent']['Id'],
59
58
  },
60
- 'Label': true,
61
59
  'Inactive': false,
62
60
  'Months': 'YYYYYYYYYYYY',
63
61
  'PostalCode': postal_code,
@@ -94,7 +92,6 @@ module Addresses
94
92
  'Id': current['Constituent']['Id'],
95
93
  },
96
94
  'Inactive': true,
97
- 'Label': true,
98
95
  'Months': 'YYYYYYYYYYYY',
99
96
  'PostalCode': current['PostalCode'],
100
97
  'State': {
@@ -11,15 +11,12 @@ module Phones
11
11
  'Constituent': {
12
12
  'Id': id,
13
13
  },
14
- 'Inactive': false,
15
14
  'PhoneNumber': phone,
16
15
  'PhoneType': {
17
16
  'Description': 'Cell Phone',
18
17
  'Id': 5,
19
18
  'Inactive': false,
20
19
  },
21
- 'IsMobile': true,
22
- 'PrimaryIndicator': true,
23
20
  }
24
21
  options.merge!(basic_auth: @auth, headers: @headers)
25
22
  options.merge!(:body => parameters.to_json)
@@ -1,5 +1,5 @@
1
1
  module PaymentGateway
2
- def authorize_payment(amount, store_card, payload, payment_id, return_url, constituent, shopper_ip, address, delivery_date, options = {})
2
+ def authorize_payment(amount, store_card, payload, payment_id, return_url, constituent_id, shopper_ip, address, delivery_date, options = {})
3
3
  parameters = {
4
4
  'Amount': amount,
5
5
  'StoreAccount': store_card,
@@ -7,17 +7,12 @@ module PaymentGateway
7
7
  'TessituraMerchantServicesData': payload,
8
8
  },
9
9
  'PaymentId': payment_id,
10
- 'ConstituentId': constituent.customer_no,
10
+ 'ConstituentId': constituent_id,
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
- },
21
16
  'BillingAddress': {
22
17
  'PostalCode': address.postal_code,
23
18
  'Street1': address.street1,
@@ -23,12 +23,6 @@ module PerformanceExtension
23
23
  JSON.parse(response.body)
24
24
  end
25
25
 
26
- def get_performance_availability_v16(mode_of_sale, performance_ids, options = {})
27
- options.merge!(basic_auth: @auth, headers: @headers)
28
- response = self.class.get(base_api_endpoint("TXN/Performances/Availability?modeOfSaleId=#{mode_of_sale}&productionSeasonIds=#{performance_ids}"), options)
29
- JSON.parse(response.body)
30
- end
31
-
32
26
  def get_performance_availability(ids, sections_ids = nil, options = {})
33
27
  options.merge!(basic_auth: @auth, headers: @headers)
34
28
  response = self.class.get(base_api_endpoint("TXN/Performances/Zones?performanceIds=#{ids}&sectionIds=#{sections_ids}"), options)
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '1.5.3.1'.freeze
2
+ VERSION = '2.0.1'.freeze
3
3
  end
@@ -128,7 +128,7 @@ module Cart
128
128
  }
129
129
  options.merge!(basic_auth: @auth, headers: @headers)
130
130
  options.merge!(:body => parameters.to_json)
131
- self.class.post(base_api_endpoint("/Web/Cart/#{session_key}/Tickets"), options)
131
+ self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Tickets"), options)
132
132
  end
133
133
 
134
134
  def return_tickets(session_key, return_or_donate, id, options = {})
@@ -139,7 +139,7 @@ module Cart
139
139
  }
140
140
  options.merge!(basic_auth: @auth, headers: @headers)
141
141
  options.merge!(:body => parameters.to_json)
142
- self.class.post(base_api_endpoint("/Web/Cart/#{session_key}/Tickets/Return"), options)
142
+ self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Tickets/Return"), options)
143
143
  end
144
144
 
145
145
  def add_package_item(session_key, price_type, package_id, number_of_seats, zone_id, leave_single_seats, parent_package_line_item_id, unseated, requested_seats = nil, options = {})
@@ -221,12 +221,12 @@ module Cart
221
221
  }
222
222
  options.merge!(basic_auth: @auth, headers: @headers)
223
223
  options.merge!(:body => parameters.to_json)
224
- self.class.post(base_api_endpoint("/Web/Cart/#{session_key}/Print/TicketElements"), options)
224
+ self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Print/TicketElements"), options)
225
225
  end
226
226
 
227
227
  def remove_tickets(session_key, performance_id, line_item_id, options = {})
228
228
  options.merge!(basic_auth: @auth, headers: @headers)
229
- self.class.delete(base_api_endpoint("/Web/Cart/#{session_key}/Tickets/#{performance_id}/#{line_item_id}"), options)
229
+ self.class.delete(base_api_endpoint("Web/Cart/#{session_key}/Tickets/#{performance_id}/#{line_item_id}"), options)
230
230
  end
231
231
 
232
232
  def add_or_update_fee(session_key, action, fee_id, item_fee_id = nil, amount = nil, options = {})
@@ -95,7 +95,7 @@ module Session
95
95
  }
96
96
  options.merge!(basic_auth: @auth, headers: @headers)
97
97
  options.merge!(:body => parameters.to_json)
98
- self.class.post(base_api_endpoint("/Web/Session/#{key}/Login/SendCredentials"), options)
98
+ self.class.post(base_api_endpoint("Web/Session/#{key}/Login/SendCredentials"), options)
99
99
  end
100
100
 
101
101
  def send_credentials_v16(key, email, login_type, template_id, options = {})
@@ -108,7 +108,7 @@ module Session
108
108
  }
109
109
  options.merge!(basic_auth: @auth, headers: @headers)
110
110
  options.merge!(:body => parameters.to_json)
111
- self.class.post(base_api_endpoint("/Web/Session/#{key}/Login/SendCredentials"), options)
111
+ self.class.post(base_api_endpoint("Web/Session/#{key}/Login/SendCredentials"), options)
112
112
  end
113
113
 
114
114
  def update_login(key, user_name, old_password, new_password, email, new_email, options = {})
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.5.3.1
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin, Danielle Greaves, Craig Donavin, Patrick FitzGerald
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-06-12 00:00:00.000000000 Z
11
+ date: 2024-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -175,7 +175,7 @@ homepage: https://github.com/pgharts/tessitura
175
175
  licenses:
176
176
  - MIT
177
177
  metadata: {}
178
- post_install_message:
178
+ post_install_message:
179
179
  rdoc_options: []
180
180
  require_paths:
181
181
  - lib
@@ -190,8 +190,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  - !ruby/object:Gem::Version
191
191
  version: '0'
192
192
  requirements: []
193
- rubygems_version: 3.5.8
194
- signing_key:
193
+ rubygems_version: 3.0.3.1
194
+ signing_key:
195
195
  specification_version: 4
196
196
  summary: Rest API Endpoint for the Tessitura Rest API (v14+).
197
197
  test_files: []