Skip to content

Commit 16d71ee

Browse files
committed
docs: clarify ID is not part of the Nacha specification
1 parent efa2a32 commit 16d71ee

29 files changed

+35
-30
lines changed

Diff for: addenda02.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
// Code 02 in a machine readable format. It is usually formatted according to ANSI, ASC, X12 Standard.
2727
// It is used for following StandardEntryClassCode: MTE, POS, and SHR.
2828
type Addenda02 struct {
29-
// ID is a client defined string used as a reference to this record.
29+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3030
ID string `json:"id"`
3131
// TypeCode Addenda02 type code '02'
3232
TypeCode string `json:"typeCode"`

Diff for: addenda05.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
// Code 05 in a machine readable format. It is usually formatted according to ANSI, ASC, X12 Standard.
2727
// It is used for the following StandardEntryClassCode: ACK, ATX, CCD, CIE, CTX, DNE, ENR, WEB, PPD, TRX.
2828
type Addenda05 struct {
29-
// ID is a client defined string used as a reference to this record.
29+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3030
ID string `json:"id"`
3131
// TypeCode Addenda05 types code '05'
3232
TypeCode string `json:"typeCode"`

Diff for: addenda10.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
// The Addenda10 Record identifies the Receiver of the transaction and the dollar amount of
3131
// the payment.
3232
type Addenda10 struct {
33-
// ID is a client defined string used as a reference to this record.
33+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3434
ID string `json:"id"`
3535
// TypeCode Addenda10 types code '10'
3636
TypeCode string `json:"typeCode"`

Diff for: addenda11.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
// The Addenda11 record identifies key information related to the Originator of
3131
// the entry.
3232
type Addenda11 struct {
33-
// ID is a client defined string used as a reference to this record.
33+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3434
ID string `json:"id"`
3535
// TypeCode Addenda11 types code '11'
3636
TypeCode string `json:"typeCode"`

Diff for: addenda12.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
// The Addenda12 record identifies key information related to the Originator of
3131
// the entry.
3232
type Addenda12 struct {
33-
// ID is a client defined string used as a reference to this record.
33+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3434
ID string `json:"id"`
3535
// TypeCode Addenda12 types code '12'
3636
TypeCode string `json:"typeCode"`

Diff for: addenda13.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
// For inbound IAT entries, the Fourth Addenda Record must contain information to identify the
3232
// foreign financial institution that is providing the funding and payment instruction for the IAT entry.
3333
type Addenda13 struct {
34-
// ID is a client defined string used as a reference to this record.
34+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3535
ID string `json:"id"`
3636
// TypeCode Addenda13 types code '13'
3737
TypeCode string `json:"typeCode"`

Diff for: addenda14.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
//
3030
// The Addenda14 identifies the Receiving financial institution holding the Receiver's account.
3131
type Addenda14 struct {
32-
// ID is a client defined string used as a reference to this record.
32+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3333
ID string `json:"id"`
3434
// TypeCode Addenda14 types code '14'
3535
TypeCode string `json:"typeCode"`

Diff for: addenda15.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
//
3030
// The Addenda15 record identifies key information related to the Receiver.
3131
type Addenda15 struct {
32-
// ID is a client defined string used as a reference to this record.
32+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3333
ID string `json:"id"`
3434
// TypeCode Addenda15 types code '15'
3535
TypeCode string `json:"typeCode"`

Diff for: addenda16.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
//
3030
// The Addenda16 record identifies key information related to the Receiver.
3131
type Addenda16 struct {
32-
// ID is a client defined string used as a reference to this record.
32+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3333
ID string `json:"id"`
3434
// TypeCode Addenda16 types code '16'
3535
TypeCode string `json:"typeCode"`

Diff for: addenda17.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import (
3030
// The Addenda17 record identifies payment-related data. A maximum of two of these Addenda Records
3131
// may be included with each IAT entry.
3232
type Addenda17 struct {
33-
// ID is a client defined string used as a reference to this record.
33+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3434
ID string `json:"id"`
3535
// TypeCode Addenda17 types code '17'
3636
TypeCode string `json:"typeCode"`

Diff for: addenda18.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
// processing of the IAT entry. If no Foreign Correspondent Bank is involved,t he record should not be
3232
// included. A maximum of five of these Addenda Records may be included with each IAT entry.
3333
type Addenda18 struct {
34-
// ID is a client defined string used as a reference to this record.
34+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3535
ID string `json:"id"`
3636
// TypeCode Addenda18 types code '18'
3737
TypeCode string `json:"typeCode"`

Diff for: addenda98.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
// Addenda98 is a Addendumer addenda record format for Notification OF Change(98)
2828
// The field contents for Notification of Change Entries must match the field contents of the original Entries
2929
type Addenda98 struct {
30-
// ID is a client defined string used as a reference to this record.
30+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3131
ID string `json:"id"`
3232
// TypeCode Addenda types code '98'
3333
TypeCode string `json:"typeCode"`

Diff for: addenda98_refused.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ import (
2323
)
2424

2525
type Addenda98Refused struct {
26-
// ID is a client defined string used as a reference to this record.
26+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
2727
ID string `json:"id"`
2828

2929
// TypeCode Addenda types code '98'

Diff for: addenda99.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func init() {
4242

4343
// Addenda99 utilized for Notification of Change Entry (COR) and Return types.
4444
type Addenda99 struct {
45-
// ID is a client defined string used as a reference to this record.
45+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
4646
ID string `json:"id"`
4747
// TypeCode Addenda types code '99'
4848
TypeCode string `json:"typeCode"`

Diff for: addenda99_contested_return.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
)
2323

2424
type Addenda99Contested struct {
25-
// ID is a client defined string used as a reference to this record.
25+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
2626
ID string `json:"id"`
2727

2828
// TypeCode Addenda types code '99'

Diff for: addenda99_dishonored_return.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222
)
2323

2424
type Addenda99Dishonored struct {
25-
// ID is a client defined string used as a reference to this record.
25+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
2626
ID string `json:"id"`
2727

2828
// TypeCode Addenda types code '99'

Diff for: advBatchControl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ import (
2727
// ADVBatchControl contains entry counts, dollar total and has totals for all
2828
// entries contained in the preceding batch
2929
type ADVBatchControl struct {
30-
// ID is a client defined string used as a reference to this record.
30+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3131
ID string `json:"id"`
3232
// This should be the same as BatchHeader ServiceClassCode for ADV: AutomatedAccountingAdvices.
3333
ServiceClassCode int `json:"serviceClassCode"`

Diff for: advEntryDetail.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import (
2828
// withdrawal (debit), the transit routing number for the entry recipient's financial
2929
// institution, the account number (left justify,no zero fill), name, and dollar amount.
3030
type ADVEntryDetail struct {
31-
// ID is a client defined string used as a reference to this record.
31+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3232
ID string `json:"id"`
3333
// TransactionCode representing Accounting Entries
3434
// Credit for ACH debits originated - 81

Diff for: advFileControl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
// ADVFileControl record contains entry counts, dollar totals and hash
2525
// totals accumulated from each batchADV control record in the file.
2626
type ADVFileControl struct {
27-
// ID is a client defined string used as a reference to this record.
27+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
2828
ID string `json:"id"`
2929

3030
// BatchCount total number of batches (i.e., '5' records) in the file

Diff for: batch.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ import (
2828

2929
// Batch holds the Batch Header and Batch Control and all Entry Records
3030
type Batch struct {
31-
// id is a client defined string used as a reference to this record. accessed via ID/SetID
32-
id string
31+
// id is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
32+
// This field is managed by SetID() and ID().
33+
id string
34+
3335
Header *BatchHeader `json:"batchHeader"`
3436
Entries []*EntryDetail `json:"entryDetails"`
3537
Control *BatchControl `json:"batchControl"`

Diff for: batchControl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import (
2626
// BatchControl contains entry counts, dollar total and has totals for all
2727
// entries contained in the preceding batch
2828
type BatchControl struct {
29-
// ID is a client defined string used as a reference to this record.
29+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3030
ID string `json:"id"`
3131
// ServiceClassCode ACH Mixed Debits and Credits '200'
3232
// ACH Credits Only '220'

Diff for: batchHeader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import (
3131
// settlement date, for all entries contained in this batch. The settlement date
3232
// field is not entered as it is determined by the ACH operator
3333
type BatchHeader struct {
34-
// ID is a client defined string used as a reference to this record.
34+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3535
ID string `json:"id"`
3636

3737
// ServiceClassCode ACH Mixed Debits and Credits '200'

Diff for: entryDetail.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
// withdrawal (debit), the transit routing number for the entry recipient's financial
3030
// institution, the account number (left justify,no zero fill), name, and dollar amount.
3131
type EntryDetail struct {
32-
// ID is a client defined string used as a reference to this record.
32+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3333
ID string `json:"id"`
3434
// TransactionCode if the receivers account is checking, savings, general ledger (GL) or loan.
3535
TransactionCode int `json:"transactionCode"`

Diff for: file.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ func (e FileError) Error() string {
5656

5757
// File contains the structures of a parsed ACH File.
5858
type File struct {
59-
ID string `json:"id"`
59+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a file.
60+
ID string `json:"id"`
61+
6062
Header FileHeader `json:"fileHeader"`
6163
Batches []Batcher `json:"batches"`
6264
IATBatches []IATBatch `json:"IATBatches"`

Diff for: fileControl.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import (
2424
// FileControl record contains entry counts, dollar totals and hash
2525
// totals accumulated from each batch control record in the file.
2626
type FileControl struct {
27-
// ID is a client defined string used as a reference to this record.
27+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
2828
ID string `json:"id"`
2929
// BatchCount total number of batches (i.e., '5' records) in the file
3030
BatchCount int `json:"batchCount"`

Diff for: fileHeader.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ import (
3030
// contained in the file. The file header also includes creation date and time
3131
// fields which can be used to uniquely identify a file.
3232
type FileHeader struct {
33-
// ID is a client defined string used as a reference to this record.
33+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3434
ID string `json:"id"`
35+
3536
// PriorityCode consists of the numerals 01
3637
priorityCode string
3738

Diff for: iatBatch.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import (
3232
// and physical address of the Receiver, Receiver's account number, Receiver's bank identity and
3333
// reason for the payment.
3434
type IATBatch struct {
35-
// ID is a client defined string used as a reference to this record.
35+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3636
ID string `json:"id"`
3737
Header *IATBatchHeader `json:"IATBatchHeader"`
3838
Entries []*IATEntryDetail `json:"IATEntryDetails"`

Diff for: iatBatchHeader.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import (
4242
// the name and physical address of the Originator, name and physical address of the
4343
// Receiver, Receiver's account number, Receiver's bank identity and reason for the payment.
4444
type IATBatchHeader struct {
45-
// ID is a client defined string used as a reference to this record.
45+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
4646
ID string `json:"id"`
4747

4848
// ServiceClassCode ACH Mixed Debits and Credits '200'

Diff for: iatEntryDetail.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
// withdrawal (debit), the transit routing number for the entry recipient's financial
3030
// institution, the account number (left justify,no zero fill), name, and dollar amount.
3131
type IATEntryDetail struct {
32-
// ID is a client defined string used as a reference to this record.
32+
// ID is an identifier only used by the moov-io/ach HTTP server as a way to identify a batch.
3333
ID string `json:"id"`
3434
// TransactionCode if the receivers account is:
3535
// Credit (deposit) to checking account '22'

0 commit comments

Comments
 (0)