Module: TicketProtectionPerformances

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

Instance Method Summary collapse

Instance Method Details

#get_ticket_protection_performances(mos, options = {}) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
# File 'lib/tessitura_rest/txn/ticket_protection_performances.rb', line 2

def get_ticket_protection_performances(mos, options = {})
  parameters = {
    'ModeOfSaleId': mos,
    'BusinessUnitId': 1,
    'PerformanceTypeIds': 27,
  }
  options.merge!(basic_auth: @auth, headers: @headers)
  options.merge!(:body => parameters.to_json)
  response = self.class.post(base_api_endpoint('TXN/Performances/Search'), options)
  JSON.parse(response.body)
end