module PerformanceExtension
Public Instance Methods
get_performance_availability(ids, sections_ids=nil, options={})
click to toggle source
# File lib/tessitura_rest/txn/performance_extension.rb, line 27 def get_performance_availability(ids, sections_ids=nil, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/Performances/Zones?performanceIds=#{ids}§ionIds=#{sections_ids}"), options) JSON.parse(response.body) end
get_performance_detail(id, options={})
click to toggle source
# File lib/tessitura_rest/txn/performance_extension.rb, line 21 def get_performance_detail(id, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/Performances?performanceIds=#{id}"), options) JSON.parse(response.body) end
get_performance_prices(id, mos, source, options={})
click to toggle source
# File lib/tessitura_rest/txn/performance_extension.rb, line 51 def get_performance_prices(id, mos, source, options={}) options.merge!(basic_auth: @auth, headers: @headers) options.merge!(:headers => {'Content-Type' => 'application/json'}) response = self.class.get(base_api_endpoint("TXN/Performances/Prices?performanceIds=#{id}&modeOfSaleId=#{mos}&sourceId=#{source}"), options) JSON.parse(response.body) end
get_performance_seat_summaries(id, mode_of_sale, constituent_id, price_type_ids, options={})
click to toggle source
# File lib/tessitura_rest/txn/performance_extension.rb, line 45 def get_performance_seat_summaries(id, mode_of_sale, constituent_id, price_type_ids, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats/Summary?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&checkPriceTypeIds=#{price_type_ids}"), options) JSON.parse(response.body) end
get_performance_seats(id, mode_of_sale, constituent_id, section_id, options={})
click to toggle source
# File lib/tessitura_rest/txn/performance_extension.rb, line 39 def get_performance_seats(id, mode_of_sale, constituent_id, section_id, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}§ionIds=#{section_id}"), options) JSON.parse(response.body) end
get_performance_summaries(production_season_id, performance_ids=nil, season_ids=nil, options={})
click to toggle source
# File lib/tessitura_rest/txn/performance_extension.rb, line 15 def get_performance_summaries(production_season_id, performance_ids=nil, season_ids=nil, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("/TXN/Performances/Summary?performanceIds=#{performance_ids}&seasonIds=#{season_ids}&productionSeasonId=#{production_season_id}"), options) JSON.parse(response.body) end
get_performance_zone_availability(ids, mode_of_sale, constituent_id, options={})
click to toggle source
# File lib/tessitura_rest/txn/performance_extension.rb, line 33 def get_performance_zone_availability(ids, mode_of_sale, constituent_id, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/Performances/ZoneAvailabilities?performanceIds=#{ids}&modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}"), options) JSON.parse(response.body) end
get_performances_by_production(ids, mode_of_sale=nil, options={})
click to toggle source
# File lib/tessitura_rest/txn/performance_extension.rb, line 3 def get_performances_by_production(ids, mode_of_sale=nil, options={}) parameters = { 'ProductionSeasonIds': ids, 'BusinessUnitId': 1, 'ModeOfSaleId': mode_of_sale } options.merge!(basic_auth: @auth, headers: @headers) options.merge!(:body => parameters) response = self.class.post(base_api_endpoint('TXN/Performances/Search'), options) end