moov-io / ach

ACH implements a reader, writer, and validator for Automated Clearing House (ACH) files. The HTTP server is available in a Docker image and the Go package is available.
https://moov-io.github.io/ach/
Apache License 2.0
459 stars 151 forks source link

validation: ARC and CIE batches with Service Class Code Mixed (200) fails #833

Closed vxio closed 2 years ago

vxio commented 3 years ago

Version: v1.6.0

What were you trying to do? Validate ARC and CIE batches with Service Class Code (SCC) Mixed Debits and Credits (200).

What did you expect to see? The validation to succeed since the NACHA spec does not forbid the use of SSC 200 on ARC (debits only) and CIE (credits only) batches.

What did you see? The validation fails since the library prevents the use of SSC 200 on ARC or CIE batches.


Reported by @Deiz in the ACH Slack channel.

Possible solution: On the ValidateOpts struct, add a boolean flag, like IgnoreSCCValidation to ignore the debits/credits only restriction on ARC or CIE batches.

adamdecaf commented 2 years ago

Duplicate of https://github.com/moov-io/ach/issues/1072