ODFI Batch Header/Control Validation
Closes
@@ -17,6 +17,8 @@ func TestParseBatchControl(t *testing.T) {
r.currentBatch.Header.BatchNumber = 1
r.currentBatch.Header.ServiceClassCode = 225
r.currentBatch.Header.CompanyIdentification = "origid"
+ r.currentBatch.Header.ODFIIdentification = 7640125
+
r.currentBatch.addEntryDetail(EntryDetail{TransactionCode: 27, Amount: 10500, RDFIIdentification: 5320001})
err := r.parseBatchControl()
if err != nil {
@@ -67,6 +69,7 @@ func TestBCString(t *testing.T) {
r.currentBatch.Header.BatchNumber = 1
r.currentBatch.Header.ServiceClassCode = 225
r.currentBatch.Header.CompanyIdentification = "origid"
+ r.currentBatch.Header.ODFIIdentification = 7640125
r.currentBatch.addEntryDetail(EntryDetail{TransactionCode: 27, Amount: 10500, RDFIIdentification: 5320001})
err := r.parseBatchControl()
if err != nil {
