Exemplo n.º 1
0
        private static SoaRowDTO ToClearedTransaction(RequestedChequeDTO chq, DateTime clearedDate)
        {
            var req = chq.Request;
            var dto = SoaRowDTO.Withdrawal(clearedDate,
                                           req.Payee, req.Purpose, req.Amount.Value,
                                           chq.ChequeNumber.ToString());

            dto.DocRefId   = chq.Id;
            dto.DocRefType = chq.GetType().FullName;
            dto.DocRefJson = chq.ToJson(true);
            return(dto);
        }
Exemplo n.º 2
0
 public void Withdraw(DateTime transactionDate, string subject, string description, decimal amount, string transactionRef)
 => UpsertAndUpdateBalances(SoaRowDTO
                            .Withdrawal(transactionDate, subject, description, amount, transactionRef));