Beispiel #1
0
        public BankSetup _getBankSetup()
        {
            if (_setup == null)
            {
                this._setup = base.loadBankSetup(this._name);
            }

            return(this._setup);
        }
        public static string get(BankSetup _setup, string description)
        {
            description = description.ToUpper();

            if (_setup.Deposit.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.Deposit.ToString());
            }
            else if (_setup.PaymentMade.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.PaymentMade.ToString());
            }
            else if (_setup.PaymentReceived.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.PaymentReceived.ToString());
            }
            else if (_setup.PointOfSale.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.PointOfSale.ToString());
            }
            else if (_setup.Withdrawal.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.Withdrawal.ToString());
            }
            else if (_setup.Purchase.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.OverseePurchase.ToString());
            }
            else if (_setup.Charges.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.TransactionCharges.ToString());
            }
            else if (_setup.PrepaidAirtime.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.PrepaidAirtime.ToString());
            }
            else if (_setup.PrepaidElectricity.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.PrepaidElectricity.ToString());
            }
            else if (_setup.Fee.Any(n => description.IndexOf(n) != -1))
            {
                return(Enumerators.TransactionType.Fee.ToString());
            }
            // Extend transaction type here
            else
            {
                return(Enumerators.TransactionType.Unknown.ToString());
            }
        }
Beispiel #3
0
 public Fnb()
 {
     this._setup = base.loadBankSetup(_name);
 }
Beispiel #4
0
 public Absa()
 {
     this._setup = base.loadBankSetup(_name);
 }