tessitura_rest 1.5.0 → 1.5.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: fccd55ec5ad82fbb2c6265ffe58f50f9b724b00abf82da753ad0b738645f5e40
4
- data.tar.gz: b5f549a8e3b4c5a40bc0ecd3f07b2144e3b6da13777b0b7e178eef73b08ae5cf
3
+ metadata.gz: 3d91dcfa5c4974008ad70475e0dbc83c151d8e185f6134330d62247aed025870
4
+ data.tar.gz: 9a209db49329d2bdd969118b4db61c5739e84095d936d0ddfcedd63d4f4edc73
5
5
  SHA512:
6
- metadata.gz: 9fb08860ab04fb2605ef77db2da31c6f2d7dc56b04bd66f439a34d4d470f236542435b1e7a4c03325e82dd101428d94da9f7c3d4af77874747ed8011ff137198
7
- data.tar.gz: 9f40edbbc7c96b8a423e7ee28224e084924f3f48d8591c42a208937621397b6a826731a4eccf5f563f46c2533a815205f00fe3b4d6a7c912cf977dbc81bc518e
6
+ metadata.gz: b055063f73ea9c673eac29756c9ea2b90b715f8985e1af9f2153f1ff5e9f3e9004b1ee8b54dd457c1c4400b995ab89fd857a70e0912b0cc8a11700435ba293ed
7
+ data.tar.gz: d0133f8a2403766ba5e0266b67839b80ad9702de40e9c3a43560f566d8a85396a0946d2460697a6021943fe493d5156aff02e7bbb58036be3ca19a766294a385
@@ -24,6 +24,12 @@ module PerformanceExtension
24
24
  JSON.parse(response.body)
25
25
  end
26
26
 
27
+ def get_performance_availability_v16(mode_of_sale, performance_ids, options = {})
28
+ options.merge!(basic_auth: @auth, headers: @headers)
29
+ response = self.class.get(base_api_endpoint("TXN/Performances/Availability?modeOfSaleId=#{mode_of_sale}&productionSeasonIds=#{performance_ids}"), options)
30
+ JSON.parse(response.body)
31
+ end
32
+
27
33
  def get_performance_availability(ids, sections_ids = nil, options = {})
28
34
  options.merge!(basic_auth: @auth, headers: @headers)
29
35
  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.0'.freeze
2
+ VERSION = '1.5.2'.freeze
3
3
  end
@@ -115,17 +115,6 @@ module Cart
115
115
  self.class.put(base_api_endpoint("Web/Cart/#{session_key}/Properties"), options)
116
116
  end
117
117
 
118
- def add_order_comment(session_key, notes, solicitor = 'webapi', options = {})
119
- options.merge!(basic_auth: @auth, headers: @headers)
120
- parameters =
121
- {
122
- 'Solicitor': solicitor,
123
- 'Notes': notes,
124
- }
125
- options.merge!(:body => parameters.to_json)
126
- self.class.put(base_api_endpoint("Web/Cart/#{session_key}/Properties"), options)
127
- end
128
-
129
118
  def reserve_tickets(session_key, number_of_seats, perf_id, price_type, zone_id, unseated, requested_seats = nil, special_requests = nil, options = {})
130
119
  parameters =
131
120
  {
@@ -17,7 +17,7 @@ module Login
17
17
  options.merge!(basic_auth: @auth, headers: @headers)
18
18
  options.merge!(:body => parameters.to_json)
19
19
  post = self.class.post(base_api_endpoint("Web/Session/#{session_key}/Login"), options)
20
- post['IsLoggedIn']
20
+ post.success?
21
21
  end
22
22
 
23
23
  def login_using_external(email, login_type_id, promotion, session_key, options = {})
@@ -44,7 +44,7 @@ module Login
44
44
  options.merge!(basic_auth: @auth, headers: @headers)
45
45
  options.merge!(:body => parameters.to_json)
46
46
  post = self.class.post(base_api_endpoint("Web/Session/#{session_key}/Login/Token"), options)
47
- post['IsLoggedIn']
47
+ post.success?
48
48
  end
49
49
 
50
50
  def login_as_guest(email, key, 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.0
4
+ version: 1.5.2
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-05-20 00:00:00.000000000 Z
11
+ date: 2024-06-12 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.0.3.1
194
- signing_key:
193
+ rubygems_version: 3.2.33
194
+ signing_key:
195
195
  specification_version: 4
196
196
  summary: Rest API Endpoint for the Tessitura Rest API (v14+).
197
197
  test_files: []