Class Data
java.lang.Object
de.gmxhome.conrad.jpos.jpos_base.micr.Data
Class holding values for MICR data in data and error events
-
Field Summary
FieldsModifier and TypeFieldDescriptionContents of MICR property AccountNumber.Contents of MICR property Amount.Contents of MICR property BankNumber.int
Contents of MICR property CheckType.int
Contents of MICR property CountryCode.Contents of MICR property EPC.Contents of MICR property RawData.Contents of MICR property SerialNumber.Contents of MICR property TransitNumber. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setDataProperties(MICRProperties props)
Set device instance properties from properties of the device implementation.
-
Field Details
-
AccountNumber
Contents of MICR property AccountNumber. Will be set before data or error event will be fired. See UPOS specification: This account number will not include a check serial number if a check serial number is able to be separately parsed, even if the check serial number is embedded in the account number portion of the 'On Us' field. -
Amount
Contents of MICR property Amount. Will be set before data or error event will be fired. See UPOS specification: The amount field on a check consists of ten digits bordered by Amount symbols. All non space digits will be represented in the test string including leading 0’s. -
BankNumber
Contents of MICR property BankNumber. Will be set before data or error event will be fired. See UPOS specification: The bank number is contained in digits 5 through 8 of the transit field. -
CheckType
public int CheckTypeContents of MICR property CheckType. Will be set before data or error event will be fired. See UPOS specification: Holds the type of check parsed from the most recently read MICR data, one of CT_PERSONAL, CT_BUSINESS or CT_UNKNOWN. -
CountryCode
public int CountryCodeContents of MICR property CountryCode. Will be set before data or error event will be fired. See UPOS specification: Holds the country of origin of the check parsed from the most recently read MICR data. Or, if the country cannot be determined, indicates the check font, legal values are CC_USA, CC_CANADA, CC_MEXICO, CC_UNKNOWN, CC_CMC7 or CC_OTHER. -
EPC
Contents of MICR property EPC. Will be set before data or error event will be fired. See UPOS specification: Holds the Extended Processing Code ("EPC") field parsed from the most recently read MICR data. It will contain a single character 0 though 9 if the field is present -
RawData
Contents of MICR property RawData. Will be set before data or error event will be fired. See UPOS specification: Holds the MICR data from the most recent MICRService read. It contains any of the MICR characters with appropriate substitution to represent non-ASCII characters (see "MICR Character Substitution", in UPOS specification). -
SerialNumber
Contents of MICR property SerialNumber. Will be set before data or error event will be fired. See UPOS specification: Holds the serial number of the check parsed from the most recently read MICR data. -
TransitNumber
Contents of MICR property TransitNumber. Will be set before data or error event will be fired. See UPOS specification: Holds the transit field of the check parsed from the most recently read MICR data. It consists of all the characters read between the 'Transit' symbols on the check. It is a nine character string
-
-
Constructor Details
-
Data
public Data(String account, String amount, String bank, int checktype, int country, String epc, String rawdata, String serial, String transit)Creates a data object that can hold MICR data to be stored before MICRDataEvent or MICRErrorEvent processing starts.- Parameters:
account
- Value for AccountNumber, see UPOS specification.amount
- Value for Amount, see UPOS specification.bank
- Value for BankNumber, see UPOS specification.checktype
- Value for CheckType, see UPOS specification.country
- Value for CountryCode, see UPOS specification.epc
- Value for EPC, see UPOS specification.rawdata
- Value for RawData, see UPOS specification.serial
- Value for SerialNumber, see UPOS specification.transit
- Value for TransitNumber, see UPOS specification.
-
-
Method Details
-
setDataProperties
Set device instance properties from properties of the device implementation.- Parameters:
props
- Property set of claiming device instance.
-