tessitura_rest 0.8.6.3 → 0.8.6.8

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: c8d4948755697e1e8c005d6d52d5f6740f3f975ac6c3ebb55d1e3d28cd250161
4
- data.tar.gz: e8b2251ac807c265a374a4e368a592b668dc2c12957a091e86833628ac7b77e3
3
+ metadata.gz: 441941fe7d23b1b92ce96f2a8af7396189e91a48a1b7a5fb8f4f8ee2a453c23d
4
+ data.tar.gz: c3eed228640d627c59f31e27757857b68398b574785e124fd5f87bb6a7eebcf3
5
5
  SHA512:
6
- metadata.gz: 42b51281d5102ae7bfebede2f8bcc40ca79559abb6e57d2b359ef5c6444d4c4f1d90a34c17f7cd32f2c0de42275bf3638dc265bf537c1b482252274af8154fd5
7
- data.tar.gz: 1d1f88840f37963adcf1f7464cbf6c7051e7f06cfeec17c057706053c3f84b84fdbd3d724e8ab15025bab41b55b24656d4306e62d07cb3b7e6879e2bc699f10a
6
+ metadata.gz: 679f4d268e79a51f1f0f9d32509ca59bb667b2d13b5bd5aff8510f02e682f369559ab19e532049951086c2587093ae7c8672eec77c1afce6840dcafa44e4a2e1
7
+ data.tar.gz: dbbe588fcf8d8ce39682d0e26fba80d82027272fba3c1edcbd333544be3f7f4314be67e39fc27ec1e2d3cc3da7f57b837f82023c01b2aeebbabfac8dd43f64b8
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, source, 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}&sourceId=#{source}"), 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.3'
2
+ VERSION = '0.8.6.8'
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
 
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.3
4
+ version: 0.8.6.8
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-17 00:00:00.000000000 Z
11
+ date: 2021-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler