Ejemplo n.º 1
0
        /// <summary>
        /// Create Ticket of Dinerware customer in the Dinerware system
        /// </summary>
        /// <param name="userId">UserId</param>
        /// <param name="objwsTrialTicket">TrialTicket Details</param>
        public void CreateTickets(int userId, wsTrialTicket objwsTrialTicket)
        {
            var createTicketsResponse = virtualDinerwareClient.TrialCommit(userId, objwsTrialTicket);
            int pendingTicketId       = createTicketsResponse.PendingID;
            var committedTicket       = virtualDinerwareClient.CommitPendingTicketWithNoTransaction(pendingTicketId);

            //decimal TaxTotal = createTicketsResponse.TaxTotal;
            //decimal TicketTotal = createTicketsResponse.TicketTotal;
            //wsTransaction objwsTransaction = new wsTransaction();
            //objwsTransaction.ExchangeAmount = 0;
            //objwsTransaction.ExchangeRate = 0;
            //objwsTransaction.RefNumber = pendingTicketId.ToString();

            //virtualDinerwareClient.addTransactionToTicket(userId, committedTicket, objwsTransaction);

            //virtualDinerwareClient.CommitPendingTicket(pendingTicketId, objwsTransaction);
        }