Sha256: bd6d75122aed1c8e43672365582357a89c32eba50be11ac04e86a8bb2252e333

Contents?: true

Size: 726 Bytes

Versions: 71

Compression:

Stored size: 726 Bytes

Contents

module Orders

  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


  
  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
end

Version data entries

71 entries across 71 versions & 1 rubygems

Version Path
tessitura_rest-1.1.6 lib/tessitura_rest/txn/orders.rb
tessitura_rest-1.1.5 lib/tessitura_rest/txn/orders.rb
tessitura_rest-1.1.4 lib/tessitura_rest/txn/orders.rb
tessitura_rest-1.1.3 lib/tessitura_rest/txn/orders.rb
tessitura_rest-1.1.2 lib/tessitura_rest/txn/orders.rb
tessitura_rest-1.1.1 lib/tessitura_rest/txn/orders.rb
tessitura_rest-1.1.0 lib/tessitura_rest/txn/orders.rb
tessitura_rest-1.0.0 lib/tessitura_rest/txn/orders.rb
tessitura_rest-0.9.1.3 lib/tessitura_rest/txn/orders.rb
tessitura_rest-0.9.1.2 lib/tessitura_rest/txn/orders.rb
tessitura_rest-0.9.1.1 lib/tessitura_rest/txn/orders.rb
tessitura_rest-0.9.1 lib/tessitura_rest/txn/orders.rb
tessitura_rest-0.9.0 lib/tessitura_rest/txn/orders.rb
tessitura_rest-0.8.9 lib/tessitura_rest/txn/orders.rb
tessitura_rest-0.8.8 lib/tessitura_rest/txn/orders.rb
tessitura_rest-0.8.7 lib/tessitura_rest/txn/orders.rb
tessitura_rest-0.8.6.9 lib/tessitura_rest/txn/orders.rb
tessitura_rest-0.8.6.8 lib/tessitura_rest/txn/orders.rb
tessitura_rest-0.8.6.7 lib/tessitura_rest/txn/orders.rb
tessitura_rest-0.8.6.6 lib/tessitura_rest/txn/orders.rb