Example #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);
        }
 public void Withdraw(DateTime transactionDate, string subject, string description, decimal amount, string transactionRef)
 => UpsertAndUpdateBalances(SoaRowDTO
                            .Withdrawal(transactionDate, subject, description, amount, transactionRef));