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