Module: PricingRules

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

Instance Method Summary collapse

Instance Method Details

#get_pricing_rules(perf_id, order_date, mode_of_sale, options = {}) ⇒ Object



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

def get_pricing_rules(perf_id, order_date, mode_of_sale, options = {})
  options.merge!(basic_auth: @auth, headers: @headers)
  response = self.class.get(base_api_endpoint("TXN/PricingRules?performanceIds=#{perf_id}&orderDate=#{order_date}&modeOfSaleId=#{mode_of_sale}"), options)
  JSON.parse(response.body)
end