Modify NewBatch to utilize batchheader.BatchParam
@@ -195,8 +195,7 @@ func (r *Reader) parseBatchHeader() error {
}
// Passing SEC type into NewBatch creates a Batcher of SEC code type.
- batch, err := NewBatch(BatchParam{
- StandardEntryClass: bh.StandardEntryClassCode})
+ batch, err := NewBatch(bh.BatchParam())
if err != nil {
return r.error(err)
}
