Exemplo n.º 1
0
        /// <summary>
        /// Helper method which creates and fills in a BankAccount with information from the passed account info
        /// </summary>
        /// <param name="account">Populated Types.BankAccount with bank info</param>
        /// <returns>Populated OFX BankAccount</returns>
        protected BankAccount getOFXBankAccount(Types.BankAccount account)
        {
            var bankAccount = new BankAccount
            {
                BANKID = account.RoutingId,
                ACCTID = account.AccountId
            };

            if (account is CheckingAccount)
            {
                bankAccount.ACCTTYPE = AccountEnum.CHECKING;
            }
            else
            {
                bankAccount.ACCTTYPE = AccountEnum.SAVINGS;
            }

            return(bankAccount);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Helper method which creates and fills in a BankAccount with information from the passed account info
        /// </summary>
        /// <param name="account">Populated Types.BankAccount with bank info</param>
        /// <returns>Populated OFX BankAccount</returns>
        protected BankAccount getOFXBankAccount(Types.BankAccount account)
        {
            var bankAccount = new BankAccount
            {
                BANKID = account.RoutingId,
                ACCTID = account.AccountId
            };
            if (account is CheckingAccount)
                bankAccount.ACCTTYPE = AccountEnum.CHECKING;
            else
                bankAccount.ACCTTYPE = AccountEnum.SAVINGS;

            return bankAccount;
        }