Payment ToPayment(FinAcct account, SwiftStatementLine s) { Payment p = new Payment(); p.Currency = s.Currency; p.Value = (double)s.DecValue; p.EntryDate = s.EntryDate.ToDateTime(); p.ValueDate = s.ValueDate.ToDateTime(); p.EntryText = s.EntryText; p.Name = new string[] { s.PayeePayerName1, s.PayeePayerName2 }.JoinLines(); p.AcctNo = s.PayeePayerAcctNo; p.BankCode = s.PayeePayerBankCode; p.Purpose = s.PaymtPurpose.JoinLines(); p.OwnAcctNo = account.AcctNo; p.OwnBankCode = account.BankCode; return(p); }
Payment ToPayment(FinAcct account, SwiftStatementLine s) { Payment p = new Payment(); p.Currency = s.Currency; p.Value = (double) s.DecValue; p.EntryDate = s.EntryDate.ToDateTime(); p.ValueDate = s.ValueDate.ToDateTime(); p.EntryText = s.EntryText; p.Name = new string[] { s.PayeePayerName1, s.PayeePayerName2 }.JoinLines(); p.AcctNo = s.PayeePayerAcctNo; p.BankCode = s.PayeePayerBankCode; p.Purpose = s.PaymtPurpose.JoinLines(); p.OwnAcctNo = account.AcctNo; p.OwnBankCode = account.BankCode; return p; }