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()); } }
public Fnb() { this._setup = base.loadBankSetup(_name); }
public Absa() { this._setup = base.loadBankSetup(_name); }