afrunt / jach

Java library for reading and writing ACH/NACHA documents
Apache License 2.0
44 stars 36 forks source link

Error to validate FirstIATAddendaRecord #30

Open gabrielSpassos opened 1 year ago

gabrielSpassos commented 1 year ago

Hello I'm using the version 0.3.6.1 and got the following error:

com.afrunt.jach.exception.ACHException: mis is wrong value for field FirstIATAddendaRecord->transactionTypeCode[String] . Valid values are ANN,BUS,DEP,LOA,MIS,MOR,PEN,RLS,REM,SAL,TAX,TEL,WEB,ARC,BOC,POP,RCK at com.afrunt.jach.logic.ACHErrorMixIn.error(ACHErrorMixIn.java:32) at com.afrunt.jach.logic.ACHErrorMixIn.throwError(ACHErrorMixIn.java:28) at com.afrunt.jach.logic.ACHReader.validateInputFieldValue(ACHReader.java:133) at com.afrunt.jach.logic.ACHReader.readRecord(ACHReader.java:71) at com.afrunt.jach.logic.ACHReader$StatefulACHReader.readDocument(ACHReader.java:215) at com.afrunt.jach.logic.ACHReader.read(ACHReader.java:52) at com.afrunt.jach.logic.ACHReader.read(ACHReader.java:48) at com.afrunt.jach.ACH.read(ACH.java:122) at com.afrunt.jach.ACH.read(ACH.java:116)

I tried to update the version to the latest 0.3.4.2 but the code on validateInputFieldValue is the same, is possible to uppercase the valueString param on this method?