Module: PriceTypes

Included in:
TessituraRest
Defined in:
lib/tessitura_rest/txn/price_types.rb

Instance Method Summary collapse

Instance Method Details

#get_price_type(id, options = {}) ⇒ Object



2
3
4
5
6
# File 'lib/tessitura_rest/txn/price_types.rb', line 2

def get_price_type(id, options = {})
  options.merge!(basic_auth: @auth, headers: @headers)
  response = self.class.get(base_api_endpoint("TXN/PriceTypes/#{id}"), options)
  JSON.parse(response.body)
end

#get_price_type_details(performance_id, mode_of_sale, source, package_id = '', options = {}) ⇒ Object



8
9
10
11
12
13
14
15
16
17
# File 'lib/tessitura_rest/txn/price_types.rb', line 8

def get_price_type_details(performance_id, mode_of_sale, source, package_id = '', options = {})
  options.merge!(basic_auth: @auth, headers: @headers)
  response = self.class.get(
    base_api_endpoint(
      "TXN/PriceTypes/Details?performanceIds=#{performance_id}&modeOfSaleId=#{mode_of_sale}&sourceId=#{source}&packageId=#{package_id}"
    ),
    options,
  )
  JSON.parse(response.body)
end