The "Immediate Origin", is a 9-digit number usually the company’s EIN (enter without any dashes) or A 10-digit number assigned to by the ODFI once they approve them to originate ACH files through them. If 10-digit number there is typically a number assigned to be input prior to the company’s EIN (ex. 5xxxxxxxxx).
Proposal
As the ACH sub module already as validation bypassing options (https://pkg.go.dev/github.com/moov-io/ach#ValidateOpts), I propose to leverage ValidateOpts and make it available as a new object in the config.
Background Got a validation error when trying to produce an ACH return from an ACH file containing a 10 digits
ImmediateOrigin
:As stated here https://help.imscre.net/hc/en-us/articles/360000402343-NACHA-Setup
ImmediateOrigin
can be 10 digits in some cases.Proposal As the ACH sub module already as validation bypassing options (https://pkg.go.dev/github.com/moov-io/ach#ValidateOpts), I propose to leverage
ValidateOpts
and make it available as a new object in the config.I will open a PR with my proposed changes.
@adamdecaf Super useful project by the way ! 👏