public void CreatePurchaseTransaction(PurchaseTransaction purchaseTransaction)
        {
            var command = new CreatePurchaseTransactionCommand
            {
                PurchaseTransaction = purchaseTransaction
            };

            processXml.Process(command.ToXml());
        }
        public PurchaseTransaction ReadPurchaseTransaction(
            string purchaseTransactionNumber)
        {
            var command = new ReadPurchaseTransactionCommand
            {
                Office = session.Office,
                PurchaseTransactionNumber = purchaseTransactionNumber
            };
            var response = processXml.Process(command.ToXml());

            return(PurchaseTransaction.FromXml(response));
        }
        public bool WritePurchaseTransaction(PurchaseTransaction purchaseTransaction)
        {
            var response = processXml.Process(purchaseTransaction.ToXml());

            return(response.IsSuccess());
        }