From 0d04085c7af9e885280f4904b16f019bf3aa8be2 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Fri, 31 Mar 2017 14:53:56 -0400 Subject: [PATCH] Status: s/WARNING/WARN/ to comply with the spec --- common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common.go b/common.go index 329a93a..ce47762 100644 --- a/common.go +++ b/common.go @@ -147,11 +147,11 @@ var statusMeanings = map[Int][3]string{ 2025: [3]string{"Branch ID missing", "ERROR", "A value must be provided in the aggregate for this country system, but this field is missing."}, 2026: [3]string{"Bank name doesn’t match bank ID", "ERROR", "The value of in the aggregate is inconsistent with the value of in the aggregate."}, 2027: [3]string{"Invalid date range", "ERROR", "Response for non-overlapping dates, date ranges in the future, et cetera."}, - 2028: [3]string{"Requested element unknown", "WARNING", "One or more elements of the request were not recognized by the server or the server (as noted in the FI Profile) does not support the elements. The server executed the element transactions it understood and supported. For example, the request file included private tags in a but the server was able to execute the rest of the request."}, + 2028: [3]string{"Requested element unknown", "WARN", "One or more elements of the request were not recognized by the server or the server (as noted in the FI Profile) does not support the elements. The server executed the element transactions it understood and supported. For example, the request file included private tags in a but the server was able to execute the rest of the request."}, 3000: [3]string{"MFA Challenge authentication required", "ERROR", "User credentials are correct, but further authentication required. Client should send in next request."}, 3001: [3]string{"MFA Challenge information is invalid", "ERROR", "User or client information sent in MFACHALLENGEA contains invalid information"}, 6500: [3]string{"Y invalid without ", "ERROR", "This error code may appear in the element of an wrapper (in and V2 message set responses) or the contained in any embedded transaction wrappers within a sync response. The corresponding sync request wrapper included Y with Y or Y, which is illegal."}, - 6501: [3]string{"Embedded transactions in request failed to process: Out of date", "WARNING", "Y and embedded transactions appeared in the request sync wrapper and the provided was out of date. This code should be used in the of the response sync wrapper."}, + 6501: [3]string{"Embedded transactions in request failed to process: Out of date", "WARN", "Y and embedded transactions appeared in the request sync wrapper and the provided was out of date. This code should be used in the of the response sync wrapper."}, 6502: [3]string{"Unable to process embedded transaction due to out-of-date ", "ERROR", "Used in response transaction wrapper for embedded transactions when 6501 appears in the surrounding sync wrapper."}, 10000: [3]string{"Stop check in process", "INFO", "Stop check is already in process."}, 10500: [3]string{"Too many checks to process", "ERROR", "The stop-payment request specifies too many checks."}, @@ -223,7 +223,7 @@ type Status struct { func (s *Status) Valid() (bool, error) { switch s.Severity { - case "INFO", "WARN", "WARNING", "ERROR": + case "INFO", "WARN", "ERROR": default: return false, errors.New("Invalid STATUS>SEVERITY") }