module Package
Public Instance Methods
get_package_by_id(id, options={})
click to toggle source
# File lib/tessitura_rest/txn/package.rb, line 3 def get_package_by_id(id, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/Packages/#{id}"), options) JSON.parse(response.body) end
get_package_detail(id, mode_of_sale, options={})
click to toggle source
# File lib/tessitura_rest/txn/package.rb, line 21 def get_package_detail(id, mode_of_sale, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/Packages/#{id}/Details?modeOfSaleId=#{mode_of_sale}"), options) JSON.parse(response.body) end
get_package_performance_groups(id, mode_of_sale=nil, options={})
click to toggle source
# File lib/tessitura_rest/txn/package.rb, line 33 def get_package_performance_groups(id, mode_of_sale=nil, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/Packages/#{id}/PerformanceGroups?modeOfSaleId=#{mode_of_sale}"), options) JSON.parse(response.body) end
get_package_prices(id, mode_of_sale, options={})
click to toggle source
# File lib/tessitura_rest/txn/package.rb, line 27 def get_package_prices(id, mode_of_sale, options={}) options.merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/Packages/#{id}/Prices?modeOfSaleId=#{mode_of_sale}"), options) JSON.parse(response.body) end
get_package_seat_summaries(id, mode_of_sale, constituent_id, price_type_ids, options={})
click to toggle source
# File lib/tessitura_rest/txn/package.rb, line 39 def get_package_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/Packages/#{id}/Seats/Summary?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}&checkPriceTypeIds=#{price_type_ids}"), options) JSON.parse(response.body) end
get_package_seats(id, mode_of_sale, constituent_id, section_id, options={})
click to toggle source
# File lib/tessitura_rest/txn/package.rb, line 45 def get_package_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/Packages/#{id}/Seats?modeOfSaleId=#{mode_of_sale}&constituentId=#{constituent_id}§ionIds=#{section_id}"), options) JSON.parse(response.body) end
packages_by_performance_date(start_date=nil, end_date=nil, options={})
click to toggle source
# File lib/tessitura_rest/txn/package.rb, line 9 def packages_by_performance_date(start_date=nil, end_date=nil, options={}) parameters = { 'PerformanceStartDate': start_date, 'PerformanceEndDate': end_date } options.merge!(basic_auth: @auth, headers: @headers) options.merge!(:body => parameters) response = self.class.post(base_api_endpoint('TXN/Packages/Search'), options) end