Skip to content

Commit

Permalink
all: mention TraceNumberField() in TraceNumber struct members
Browse files Browse the repository at this point in the history
This should point users towards getting the proper value rather than
using the int (which has known bugs).

Issue: moov-io#366
  • Loading branch information
adamdecaf committed Nov 27, 2018
1 parent 2336566 commit c32e496
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions addenda02.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ type Addenda02 struct {
// TerminalState Identifies the state in which the electronic terminal is located
TerminalState string `json:"terminalState"`
// TraceNumber Standard Entry Detail Trace Number
//
// Use TraceNumberField() for a properly formatted string representation.
TraceNumber string `json:"traceNumber,omitempty"`
// validator is composed for data validation
validator
Expand Down
2 changes: 2 additions & 0 deletions addenda98.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ type Addenda98 struct {
// CorrectedData
CorrectedData string `json:"correctedData"`
// TraceNumber matches the Entry Detail Trace Number of the entry being returned.
//
// Use TraceNumberField() for a properly formatted string representation.
TraceNumber string `json:"traceNumber,omitempty"`

// validator is composed for data validation
Expand Down
2 changes: 2 additions & 0 deletions addenda99.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ type Addenda99 struct {
// AddendaInformation
AddendaInformation string `json:"addendaInformation,omitempty"`
// TraceNumber matches the Entry Detail Trace Number of the entry being returned.
//
// Use TraceNumberField() for a properly formatted string representation.
TraceNumber string `json:"traceNumber,omitempty"`

// validator is composed for data validation
Expand Down
2 changes: 2 additions & 0 deletions entryDetail.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ type EntryDetail struct {
// For addenda Records, the Trace Number will be identical to the Trace Number
// in the associated Entry Detail Record, since the Trace Number is associated
// with an entry or item rather than a physical record.
//
// Use TraceNumberField() for a properly formatted string representation.
TraceNumber string `json:"traceNumber,omitempty"`
// Addenda02 for use with StandardEntryClassCode MTE, POS, and SHR
Addenda02 *Addenda02 `json:"addenda02,omitempty"`
Expand Down
2 changes: 2 additions & 0 deletions iatEntryDetail.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ type IATEntryDetail struct {
// For addenda Records, the Trace Number will be identical to the Trace Number
// in the associated Entry Detail Record, since the Trace Number is associated
// with an entry or item rather than a physical record.
//
// Use TraceNumberField() for a properly formatted string representation.
TraceNumber string `json:"traceNumber,omitempty"`
// Addenda10 is mandatory for IAT entries
//
Expand Down

0 comments on commit c32e496

Please sign in to comment.