public IBANNumberDesignator(string originalNumber) : base(makeNumberNRB(originalNumber)) { this.originalNumber = originalNumber; accountNumberValidator = new AccountNumberValidator.AccountNumberValidator(originalNumber); designateValuesIfNumberIsCorrect(); }
static string makeNumberIBAN(string number) { AccountNumberValidator.AccountNumberValidator validator = new AccountNumberValidator.AccountNumberValidator(number); if (validator.isNRBAccountNumber()) { number = "PL" + number; } return(number); }
static string makeNumberNRB(string number) { AccountNumberValidator.AccountNumberValidator validator = new AccountNumberValidator.AccountNumberValidator(number); if (validator.isIBANAccountNumber()) { number = number.Substring(2); } return(number); }
static string makeNumberNRB(string number) { AccountNumberValidator.AccountNumberValidator validator = new AccountNumberValidator.AccountNumberValidator(number); if (validator.isIBANAccountNumber()) { number = number.Substring(2); } return number; }
static string makeNumberIBAN(string number) { AccountNumberValidator.AccountNumberValidator validator = new AccountNumberValidator.AccountNumberValidator(number); if(validator.isNRBAccountNumber()) { number = "PL" + number; } return number; }
public NRBNumberDesignator(string originalNumber) { this.originalNumber = originalNumber; accountNumberValidator = new AccountNumberValidator.AccountNumberValidator(originalNumber); designateValuesIfNumberIsCorrect(); }