org.bitbucket.openisoj.ProcessingCode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openisoj-core Show documentation
Show all versions of openisoj-core Show documentation
An extensible framework for creating ISO 8583 messages.
Ported from OpenIso.Net http://code.google.com/p/openiso8583net/
package org.bitbucket.openisoj;
public class ProcessingCode {
private String tranType;
private String fromAccountType;
private String toAccountType;
public ProcessingCode() {
}
public ProcessingCode(String data) throws Exception {
if (data.length() != 6)
throw new Exception("Incorrect legth for Processing Code!");
setTranType(data.substring(0, 2));
setFromAccountType(data.substring(2, 4));
setToAccountType(data.substring(4, 6));
}
public String getFromAccountType() {
return fromAccountType;
}
public String getToAccountType() {
return toAccountType;
}
public String getTranType() {
return tranType;
}
public void setFromAccountType(String fromAccountType) {
this.fromAccountType = fromAccountType;
}
public void setToAccountType(String toAccountType) {
this.toAccountType = toAccountType;
}
public void setTranType(String tranType) {
this.tranType = tranType;
}
@Override
public String toString() {
return tranType + fromAccountType + toAccountType;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy