You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that Addendumer is an interface and so encoding/json can't read that into a concrete type. We need to do something similar for addenda records as we did in #292.
Also, the json encoding for addenda records often overlaps. We need to find a unique key to unmarshal into the correct addenda records. Export typeCode?
The text was updated successfully, but these errors were encountered:
I don't exactly what you are trying to do but the typeCode has a default value
// NewAddenda02 returns a new Addenda02 with default values for none exported fields
func NewAddenda02() *Addenda02 {
addenda02 := new(Addenda02)
addenda02.recordType = "7"
addenda02.typeCode = "02"
return addenda02
}
How do you handle recordType? Can you do the same?
Dis-regard I modified typeCode to to be exportable.
#291 was a discovery (and fix) for being unable to read batches in the JSON structure for an
ach.File
, but we're also unable to read addenda records.The problem is that
Addendumer
is an interface and soencoding/json
can't read that into a concrete type. We need to do something similar for addenda records as we did in #292.Also, the json encoding for addenda records often overlaps. We need to find a unique key to unmarshal into the correct addenda records. Export
typeCode
?The text was updated successfully, but these errors were encountered: