Module: Orders

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

Instance Method Summary collapse

Instance Method Details

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



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

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


11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/tessitura_rest/txn/orders.rb', line 11

def print_order_ticket_elements(order_id, ticket_design, reprint, new_ticket_no=false, options={})
  parameters =
  {
    "IncludeReceipts": false,
    "ReprintTickets": reprint,
    "TicketDesignId": ticket_design,
    "NewTicketNoForReprints": new_ticket_no
  }
  options.merge!(basic_auth: @auth, headers: @headers)
  options.merge!(:body => parameters)
  self.class.post(base_api_endpoint("/TXN/Orders/#{order_id}/PrintTicketElements"), options)
end