Example #1
0
 public void PopulateModel(Transaction transaction)
 {
     TransactionSourceIdentifier = transaction.DonorTransactionSource.TransactionSourceIdentifier;
     TransactionIdentifier = transaction.TransactionIdentifier;
     TransactionDateTimeUtc = transaction.TransactionDateTimeUtc;
     ReceivedDateTimeUtc = transaction.ReceivedDateTimeUtc;
     MerchantName = transaction.Merchant.MerchantName;
     FinancialInstitution = transaction.DonorTransactionSource.FinancialInstitution;
     Amount = transaction.Amount;
     Currency = transaction.Currency;
 }
Example #2
0
 public static DonorTransactionModel FromEntity(Transaction arg)
 {
     var model = new DonorTransactionModel();
     model.PopulateModel(arg);
     return model;
 }