tessitura_rest 0.8.6.2 → 0.8.6.7

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: 2264bcb49183e8476126ae4c6280b1024e0031da17678ffb1366d04f486c1119
4
- data.tar.gz: 4578df4190cfe53b4e8aa5924d863f0f1237118c7d18c92177285e0c1adb6795
3
+ metadata.gz: 7d9d1f5932e51775914124de62fa18789726adb588c9356e7876acb2671bd7b9
4
+ data.tar.gz: a27d044848bab4efa5e761e52bc6e0902bd0e453ca6f9993c8c8007cb46201f9
5
5
  SHA512:
6
- metadata.gz: 0c54cce840cf7df4f5a7952bbf9ac51a37f8cc360bb9de067eae2ad410e4f7f58fa5cd8b2106e39b2e3fa239eb015edcda454c1c717100e204ff336bd386d96d
7
- data.tar.gz: f33f8916687d69dc35b0a06d3c1a48fc7aca211aad8eaf88d8dc56aa424bc7a706a6a75d6ad8f5f7261c2f98ade49e7cf5be93349b5ebfd1fc3755d5ce1613b6
6
+ metadata.gz: 8e12b6b485fe74e9280488575929b4f1eafff92705b79bf3da464042ddcab357b5b76b4b959afd481ed47ec0eddb34648fe1de64fa7bc077a63103d6e6d4b18c
7
+ data.tar.gz: fb613ea4e68eddc1ac8e10186e416fec547889e5f7ba5e24426b9664263601086d5af79365658302159926dcae0226b626b46899052942dcf0f2310ed50d2371
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2017 The Pittsburgh Cultural Trust
3
+ Copyright (c) 2021 The Pittsburgh Cultural Trust
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -36,6 +36,12 @@ module Package
36
36
  JSON.parse(response.body)
37
37
  end
38
38
 
39
+ def get_package_seat_summaries(id, mode_of_sale, constituent_id, price_type_ids, options={})
40
+ options.merge!(basic_auth: @auth, headers: @headers)
41
+ response = self.class.get(base_api_endpoint("TXN/Packages/#{id}/Seats/Summary?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&checkPriceTypeIds=#{price_type_ids}"), options)
42
+ JSON.parse(response.body)
43
+ end
44
+
39
45
  def get_package_seats(id, mode_of_sale, constituent_id, section_id, options={})
40
46
  options.merge!(basic_auth: @auth, headers: @headers)
41
47
  response = self.class.get(base_api_endpoint("TXN/Packages/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&sectionIds=#{section_id}"), options)
@@ -30,15 +30,28 @@ module PerformanceExtension
30
30
  JSON.parse(response.body)
31
31
  end
32
32
 
33
+ def get_performance_zone_availability(ids, mode_of_sale, constituent_id, options={})
34
+ options.merge!(basic_auth: @auth, headers: @headers)
35
+ response = self.class.get(base_api_endpoint("TXN/Performances/ZoneAvailabilities?performanceIds=#{ids}&modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}"), options)
36
+ JSON.parse(response.body)
37
+ end
38
+
33
39
  def get_performance_seats(id, mode_of_sale, constituent_id, section_id, options={})
34
40
  options.merge!(basic_auth: @auth, headers: @headers)
35
41
  response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&sectionIds=#{section_id}"), options)
36
42
  JSON.parse(response.body)
37
43
  end
38
44
 
39
- def get_performance_seat_summaries(id, options={})
45
+ def get_performance_seat_summaries(id, mode_of_sale, constituent_id, price_type_ids, options={})
46
+ options.merge!(basic_auth: @auth, headers: @headers)
47
+ response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats/Summary?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&checkPriceTypeIds=#{price_type_ids}"), options)
48
+ JSON.parse(response.body)
49
+ end
50
+
51
+ def get_performance_prices(id, mos, options={})
40
52
  options.merge!(basic_auth: @auth, headers: @headers)
41
- response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats/Summary"), options)
53
+ options.merge!(:headers => {'Content-Type' => 'application/json'})
54
+ response = self.class.get(base_api_endpoint("TXN/Performances/Prices?performanceIds=#{id}&modeOfSaleId=#{mos}"), options)
42
55
  JSON.parse(response.body)
43
56
  end
44
57
 
@@ -6,4 +6,10 @@ module PriceTypes
6
6
  JSON.parse(response.body)
7
7
  end
8
8
 
9
+ def get_price_type_details(id, mode_of_sale, options={})
10
+ options.merge!(basic_auth: @auth, headers: @headers)
11
+ response = self.class.get(base_api_endpoint("TXN/PriceTypes/Details?performanceIds=#{id}&modeOfSaleId=#{mode_of_sale}"), options)
12
+ JSON.parse(response.body)
13
+ end
14
+
9
15
  end
@@ -1,3 +1,3 @@
1
1
  class TessituraRest
2
- VERSION = '0.8.6.2'
2
+ VERSION = '0.8.6.7'
3
3
  end
@@ -150,7 +150,7 @@ module Cart
150
150
  "RequestedSeats": requested_seats
151
151
  }
152
152
  options.merge!(basic_auth: @auth, headers: @headers)
153
- options.merge!(:body => parameters)
153
+ options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
154
154
  self.class.post(base_api_endpoint("/Web/Cart/#{session_key}/Tickets"), options)
155
155
  end
156
156
 
@@ -225,7 +225,7 @@ module Cart
225
225
  "Unseated": unseated
226
226
  }
227
227
  options.merge!(basic_auth: @auth, headers: @headers)
228
- options.merge!(:body => parameters)
228
+ options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
229
229
  self.class.post(base_api_endpoint("Web/Cart/#{session_key}/Packages/Super"), options)
230
230
  end
231
231
 
@@ -100,7 +100,7 @@ module Session
100
100
  'PromotionCode': 0,
101
101
  }
102
102
  options.merge!(basic_auth: @auth, headers: @headers)
103
- options.merge!(:body => parameters)
103
+ options.merge!(:body => parameters.to_json, :headers => {'Content-Type' => 'application/json'})
104
104
  self.class.put(base_api_endpoint("Web/Session/#{key}/WebLogins"), options)
105
105
  end
106
106
 
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: 0.8.6.2
4
+ version: 0.8.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brittany Martin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-02-09 00:00:00.000000000 Z
11
+ date: 2021-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  - !ruby/object:Gem::Version
186
186
  version: '0'
187
187
  requirements: []
188
- rubygems_version: 3.0.3
188
+ rubygems_version: 3.0.9
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: Rest API Endpoint for the Tessitura Rest API (v14+).