Module: SubLineItems

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

Instance Method Summary collapse

Instance Method Details

#get_return_tickets(constituent_id, status_id, performance_start_date, performance_end_date, order_id, options = {}) ⇒ Object



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

def get_return_tickets(constituent_id, status_id, performance_start_date, performance_end_date, order_id, options = {})
  options.merge!(basic_auth: @auth, headers: @headers)
  response = self.class.get(
    base_api_endpoint("TXN/SubLineItems?constituentId=#{constituent_id}&orderId=#{order_id}&subLineItemStatusIds=#{status_id}&performanceStartDate=#{performance_start_date}&performanceEndDate=#{performance_end_date}"), options
  )
  JSON.parse(response.body)
end