Sha256: f31239569a83c62598ec46e3e2755d6398cfb539b8ce30751820c8e092404e51
Contents?: true
Size: 1.79 KB
Versions: 9
Compression:
Stored size: 1.79 KB
Contents
module PerformanceExtension def get_performances_by_production(ids, options={}) parameters = { 'ProductionSeasonIds': ids } options.merge!(basic_auth: @auth, headers: @headers) options.merge!(:body => parameters) response = self.class.post(base_api_endpoint('TXN/Performances/Search'), options) end 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 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 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 def get_performance_seats(id, mode_of_sale, constituent_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}"), options) JSON.parse(response.body) end def get_performance_seat_summaries(id, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/Performances/#{id}/Seats/Summary"), options) JSON.parse(response.body) end end
Version data entries
9 entries across 9 versions & 1 rubygems