BUG FIXES
- fileHeader: allow immediate origin to be a 10 digit value (See: #513 by @eduardev)
- Fix JSON omitempty typo in
ADVEntryDetail
- fileHeader: trim padded 0's from ImmediateOriginField() and fixup docs
- batch: only check DNE specifics if the SEC code is DNE
- files: FileHeader validate CheckRoutingNumber
- files: on empty FileCreation dates or times render today's value
ADDITIONS
- batch: add Equal method
- Addenda99: Add
ReturnCodeField()
for detailed information about a returned file - files: support arbitrary merging of ACH files (See #529)
- entryDetail: validate that Amount is non-negative
- batch: create Debit and Credit EntryDetail offset records if needed (via
WithOffset
)
BUILD
- vendor: update dependencies
- Fix
moov/achfuzz
docker image build - api: inline parameters to fix codegen crash
- build: push moov/ach:latest and update docs accordingly
- No changes from v0.6.0
BREAKING CHANGES
file.NotificationOfChange
acceptsBatcher
instead of*BatchCOR
to comply with linter errors
ADDITIONS
- Add const values for
BatchHeader.StandardEntryClassCode
(See #392) - Add const values for
BatchHeader.ServiceClassCode
andBatchControl.ServiceClassCode
. (See #391) - Add const values for
EntryDetail.TransactionCode
(See #363) - server: Record
ach_files_deleted
metric. (See: #408) - server: log x-request-id header if present. (See: #407)
- server: Delete old
ach.File
objects from in-memory repository according toACH_FILE_TTL
env variable. - server: Support
-log.format=json
for JSON formatted logs
BUG FIXES
- Accept File's without an ID specified. Generate a random ID. (See: #405)
- server: Fix nil panics. (See: #406)
- server: Fix type-casting panics. (See: #423)
- server: validate file endpoint returns 400 instead of 500 (See: #488)
- server: set CORS headers on
GET /ping
route
BUILD
megacheck
is deprecated. staticcheck should be used instead. (See #430)- Automate releases with Docker and binary uploads to release page.
- Update dependencies to their latest versions
- Update to Go 1.12
BREAKING CHANGES
TraceNumber
has been changed fromint
to astring
. (See #366)- Previously zero-prefixed ABA routing numbers would have their leading zero truncated.
OriginalTrace
has been changed fromint
to astring
. (See #366)
ADDITIONS
- Support
StandardEntryClassCode
(Batch types): TransactionCode
matchServiceClassCode
(See #56)Addenda02.TerminalState
validation for BatchPOS and BatchSHR (See #375)
REMOVALS
- Remove deprecated functions from
EntryDetail
(See #385)
BREAKING CHANGES
EntryDetail.Addendum
has been broken out intoAddenda02
,Addenda05
,Addenda98
, andAddenda99
fields onEntryDetail
.- IAT
EntryDetail.Addendum
has been broken out into Addenda 10-18, 98 and 99.
ADDITIONS
- Support
StandardEntryClassCode
(Batch types): - Support NOC for IAT Entries (See #328)
- Add
FileFromJson
for readingFile
objects as JSON. - Add
X-Total-Count
response headers onGET /files/:id/batches
(See #280)
IMPROVEMENTS
- Multiple parsing errors are returned in
Reader.Read() error
's error message. - IAT: Validate ISODestinationCountryCode according to ISO 3166
- IAT: Validate ISOOriginatingCurrencyCode and ISODestinationCurrencyCode according to ISO 4217
- build: Run CI tests against Windows
- Verify record lengths in [IAT] BatchHeader, [IAT] BatchControl, FileControl, FileHeader, and [IAT] EntryDetail.
BUG FIXES
cmd/server
: don't expect trailing slash on endpointscmd/server
: Grab write lock on delete requests- Several panics are fixed from fuzzing
- Reject invalid ABA routing numbers
ADDITIONS
- Expose
TypeCode
on Addenda records
IMPROVEMENTS
- Run as unprivileged user in Docker image
cmd/readACH
: add -json to printFile
as JSONcmd/writeACH
: validate file before writingcmd/writeACH
: add -json to outputFile
as JSON
BUG FIXES
- Fix reading batches out from JSON endpoint
- Fix plaintext ACH file rendering endpoint
ADDITIONS
- Handle pre-flight requests and proxy back CORS headers
ADDITIONS
- Add
X-Total-Count
on GET responses - Proxy back CORS headers if sent on the request
BUG FIXES
- Drop requirement for /-suffix on GET /files
- Don't trample content-type in encodeResponse
FEATURES
- Added HTTP Server
- SEC Code CIE (Customer-Initiated Entry) (#209)
- Support IAT (#211)
- IAT Returns (#233)
- Support CTX (#212)
IMPROVEMENTS
- Added admin HTTP service.
- Added
GET /ping
route (unauthed)
BUG FIXES
- Fixes to parsing and validation.