IAT code test coverage
IAT code test coverage
@@ -278,14 +278,6 @@ func (iatBh *IATBatchHeader) Validate() error {
return &FieldError{FieldName: "ISODestinationCountryCode",
Value: iatBh.ISODestinationCountryCode, Msg: "invalid ISO 3166-1-alpha-2 code"}
}
- if err := iatBh.isAlphanumeric(iatBh.ISODestinationCountryCode); err != nil {
- return &FieldError{FieldName: "ISODestinationCountryCode",
- Value: iatBh.ISODestinationCountryCode, Msg: err.Error()}
- }
- if err := iatBh.isAlphanumeric(iatBh.OriginatorIdentification); err != nil {
- return &FieldError{FieldName: "OriginatorIdentification",
- Value: iatBh.OriginatorIdentification, Msg: err.Error()}
- }
if err := iatBh.isSECCode(iatBh.StandardEntryClassCode); err != nil {
return &FieldError{FieldName: "StandardEntryClassCode",
Value: iatBh.StandardEntryClassCode, Msg: err.Error()}
@@ -294,25 +286,14 @@ func (iatBh *IATBatchHeader) Validate() error {
return &FieldError{FieldName: "CompanyEntryDescription",
Value: iatBh.CompanyEntryDescription, Msg: err.Error()}
}
-
if !iso4217.Valid(iatBh.ISOOriginatingCurrencyCode) {
return &FieldError{FieldName: "ISOOriginatingCurrencyCode",
Value: iatBh.ISOOriginatingCurrencyCode, Msg: "invalid ISO 4217 code"}
}
- if err := iatBh.isAlphanumeric(iatBh.ISOOriginatingCurrencyCode); err != nil {
- return &FieldError{FieldName: "ISOOriginatingCurrencyCode",
- Value: iatBh.ISOOriginatingCurrencyCode, Msg: err.Error()}
- }
-
if !iso4217.Valid(iatBh.ISODestinationCurrencyCode) {
return &FieldError{FieldName: "ISODestinationCurrencyCode",
Value: iatBh.ISODestinationCurrencyCode, Msg: "invalid ISO 4217 code"}
}
- if err := iatBh.isAlphanumeric(iatBh.ISODestinationCurrencyCode); err != nil {
- return &FieldError{FieldName: "ISODestinationCurrencyCode",
- Value: iatBh.ISODestinationCurrencyCode, Msg: err.Error()}
- }
-
if err := iatBh.isOriginatorStatusCode(iatBh.OriginatorStatusCode); err != nil {
return &FieldError{FieldName: "OriginatorStatusCode",
Value: strconv.Itoa(iatBh.OriginatorStatusCode), Msg: err.Error()}
