![JAR search and dependency download from the Maven repository](/logo.png)
nl.hsac.fitnesse.util.iban.GIIbanGenerator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hsac-fitnesse-plugin Show documentation
Show all versions of hsac-fitnesse-plugin Show documentation
Plugin to add features to a FitNesse installation
The newest version!
package nl.hsac.fitnesse.util.iban;
public class GIIbanGenerator extends IbanGenerator {
/**
* Generates random number to create IBAN.
*
* @param bankCode bank code to (blank for random).
* @return random IBAN.
*/
public String generateIban(String bankCode) {
String countryCode = "GI";
int accountLength = 15;
String accountCodeType = "N";
int bankCodeLength = 4;
String bankCodeType = "A";
bankCode = getBankCode(bankCode, BANK_CODE_LIST, bankCodeLength, bankCodeType);
String account = getAccount(accountLength, accountCodeType);
String controlNr = getControlNumber(bankCode, account, countryCode);
return countryCode + controlNr + bankCode + account;
}
//TODO get a list of gibraltar codes
public final static String[] BANK_CODE_LIST = {
"NWBK" //placeholder code
};
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy