Add back removed CTX functions
Add back removed CTX functions to be deprecated in the future
@@ -410,6 +410,42 @@ func (ed *EntryDetail) SetOriginalTraceNumber(s string) {
ed.IdentificationNumber = s
}
+// ToDo: Deprecate and use SetCATXAddendaRecords
+
+// SetCTXAddendaRecords setter for CTX AddendaRecords characters 1-4 of underlying IndividualName
+func (ed *EntryDetail) SetCTXAddendaRecords(i int) {
+ ed.IndividualName = ed.numericField(i, 4)
+}
+
+// ToDo: Deprecate and use SetCATXReceivingCompany
+
+// SetCTXReceivingCompany setter for CTX ReceivingCompany characters 5-20 underlying IndividualName
+// Position 21-22 of underlying Individual Name are reserved blank space for CTX " "
+func (ed *EntryDetail) SetCTXReceivingCompany(s string) {
+ ed.IndividualName = ed.IndividualName + ed.alphaField(s, 16) + " "
+}
+
+// ToDo: Deprecate and use CATXAddendaRecordsField
+
+// CTXAddendaRecordsField is used in CTX files, characters 1-4 of underlying IndividualName field
+func (ed *EntryDetail) CTXAddendaRecordsField() string {
+ return ed.parseStringField(ed.IndividualName[0:4])
+}
+
+// ToDo: Deprecate and use CATXReceivingCompanyField
+
+// CTXReceivingCompanyField is used in CTX files, characters 5-20 of underlying IndividualName field
+func (ed *EntryDetail) CTXReceivingCompanyField() string {
+ return ed.parseStringField(ed.IndividualName[4:20])
+}
+
+// ToDo: Deprecate and use CATXReservedField
+
+// CTXReservedField is used in CTX files, characters 21-22 of underlying IndividualName field
+func (ed *EntryDetail) CTXReservedField() string {
+ return ed.IndividualName[20:22]
+}
+
// SetCATXAddendaRecords setter for CTX and ATX AddendaRecords characters 1-4 of underlying IndividualName
func (ed *EntryDetail) SetCATXAddendaRecords(i int) {
ed.IndividualName = ed.numericField(i, 4)
