tessitura_rest 2.0.0 → 2.0.2

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: 7f7d53c0e30ab24ecb1292529c3e77f9e0ca53d1247d9434ab73e396b9ef8291
4
- data.tar.gz: 76f6b654bd47108357ee2edd2cfd4bdf40247763fa1f688dbdc05b2b5b3cd27c
3
+ metadata.gz: 253ffa0dec2d61493a65bd12b1f34d598cf7a687b5126850be8624a26bc7ad6a
4
+ data.tar.gz: b3485ccaa71eeab8a06c9628fbb270a16531a6cf91a0d03f29c47052d67bc5f2
5
5
  SHA512:
6
- metadata.gz: 3faf1d15c3bf233d61dc94a5a990f840df4978b5912cd7e928c08524b98783669bf3c2a27162ae13e748d877f3816be13f3a715d25e584309c02a693291ab7ff
7
- data.tar.gz: afdca0d765b27d307271574880baef930e1e0b49f7fa95df9923ada1f2edf2802232218ffc05c047db98c83ca87c4b279303e324f7b7ff9ad21c4fa140c98935
6
+ metadata.gz: 7dbb5af3253cbad78d53b9c941f6a46a9b6610b1c90f4e913f71511334a0cb516a1c973085fc4de267a55d80e64afe3d954623b245a78226984651424855a5d0
7
+ data.tar.gz: ec1495fccfe86c90100bdad91d8e28f87eb09fabb8a2feb993a6dedcd10a09270df5ab1c97e39a1fe7ac09536919fde86483eb29b503dc4d2761ae529169a0c9
@@ -11,12 +11,15 @@ module Phones
11
11
  'Constituent': {
12
12
  'Id': id,
13
13
  },
14
+ 'Inactive': false,
14
15
  'PhoneNumber': phone,
15
16
  'PhoneType': {
16
17
  'Description': 'Cell Phone',
17
18
  'Id': 5,
18
19
  'Inactive': false,
19
20
  },
21
+ 'IsMobile': true,
22
+ 'PrimaryIndicator': true,
20
23
  }
21
24
  options.merge!(basic_auth: @auth, headers: @headers)
22
25
  options.merge!(:body => parameters.to_json)
@@ -23,6 +23,12 @@ 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
+
26
32
  def get_performance_availability(ids, sections_ids = nil, options = {})
27
33
  options.merge!(basic_auth: @auth, headers: @headers)
28
34
  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 = '2.0.0'.freeze
2
+ VERSION = '2.0.2'.freeze
3
3
  end
@@ -116,6 +116,7 @@ module Cart
116
116
  end
117
117
 
118
118
  def reserve_tickets(session_key, number_of_seats, perf_id, price_type, zone_id, unseated, requested_seats = nil, special_requests = nil, options = {})
119
+ zone_id = 0 if requested_seats.present? || zone_id.nil?
119
120
  parameters =
120
121
  {
121
122
  'PriceType': price_type,
@@ -128,7 +129,7 @@ module Cart
128
129
  }
129
130
  options.merge!(basic_auth: @auth, headers: @headers)
130
131
  options.merge!(:body => parameters.to_json)
131
- self.class.post(base_api_endpoint("/Web/Cart/#{session_key}/Tickets"), options)
132
+ self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Tickets"), options)
132
133
  end
133
134
 
134
135
  def return_tickets(session_key, return_or_donate, id, options = {})
@@ -139,10 +140,12 @@ module Cart
139
140
  }
140
141
  options.merge!(basic_auth: @auth, headers: @headers)
141
142
  options.merge!(:body => parameters.to_json)
142
- self.class.post(base_api_endpoint("/Web/Cart/#{session_key}/Tickets/Return"), options)
143
+ self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Tickets/Return"), options)
143
144
  end
144
145
 
145
146
  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 = {})
147
+ zone_id = 0 if requested_seats.present? || zone_id.nil?
148
+ parent_package_line_item_id = 0 if parent_package_line_item_id.nil?
146
149
  parameters =
147
150
  {
148
151
  'PriceType': price_type,
@@ -221,12 +224,12 @@ module Cart
221
224
  }
222
225
  options.merge!(basic_auth: @auth, headers: @headers)
223
226
  options.merge!(:body => parameters.to_json)
224
- self.class.post(base_api_endpoint("/Web/Cart/#{session_key}/Print/TicketElements"), options)
227
+ self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Print/TicketElements"), options)
225
228
  end
226
229
 
227
230
  def remove_tickets(session_key, performance_id, line_item_id, options = {})
228
231
  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)
232
+ self.class.delete(base_api_endpoint("Web/Cart/#{session_key}/Tickets/#{performance_id}/#{line_item_id}"), options)
230
233
  end
231
234
 
232
235
  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: 2.0.0
4
+ version: 2.0.2
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-03 00:00:00.000000000 Z
11
+ date: 2024-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler