Module: Orders
- Included in:
- TessituraRest
- Defined in:
- lib/tessitura_rest/txn/orders.rb
Instance Method Summary collapse
- #get_products_view(id, options = {}) ⇒ Object
- #print_order_ticket_elements(order_id, ticket_design, reprint, new_ticket_no = false, options = {}) ⇒ Object
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, ={}) .merge!(basic_auth: @auth, headers: @headers) response = self.class.get(base_api_endpoint("TXN/Orders/#{id}/ProductsView"), ) JSON.parse(response.body) end |
#print_order_ticket_elements(order_id, ticket_design, reprint, new_ticket_no = false, options = {}) ⇒ Object
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, ={}) parameters = { "IncludeReceipts": false, "ReprintTickets": reprint, "TicketDesignId": ticket_design, "NewTicketNoForReprints": new_ticket_no } .merge!(basic_auth: @auth, headers: @headers) .merge!(:body => parameters) self.class.post(base_api_endpoint("/TXN/Orders/#{order_id}/PrintTicketElements"), ) end |