Repository: moov-io/ach
Pull request #1099 (2022-10-10 18:01:35)

docs: rename 'payment code' to transaction code


Patch:
diff --git a/addenda98.go b/addenda98.go
index f7d309c7..25f5d0a5 100644
--- a/addenda98.go
+++ b/addenda98.go
@@ -186,9 +186,9 @@ func makeChangeCodeDict() map[string]*ChangeCode {
 		{"C02", "Incorrect transit/routing number", "Once valid transit/routing number must be changed"},
 		{"C03", "Incorrect transit/routing number and bank account number", "Once valid transit/routing number must be changed and causes a change to bank account number structure"},
 		{"C04", "Bank account name change", "Customer has changed name or ODFI submitted name incorrectly"},
-		{"C05", "Incorrect payment code", "Entry posted to demand account should contain savings payment codes or vice versa"},
-		{"C06", "Incorrect bank account number and transit code", "Bank account number must be changed and payment code should indicate posting to another account type (demand/savings)"},
-		{"C07", "Incorrect transit/routing number, bank account number and payment code", "Changes required in three fields indicated"},
+		{"C05", "Incorrect transaction code", "Entry posted to demand account should contain savings transaction codes or vice versa"},
+		{"C06", "Incorrect bank account number and transit code", "Bank account number must be changed and transaction code should indicate posting to another account type (demand/savings)"},
+		{"C07", "Incorrect transit/routing number, bank account number and transaction code", "Changes required in three fields indicated"},
 		{"C09", "Incorrect individual ID number", "Individual's ID number is incorrect"},
 		{"C10", "Incorrect company name", "Company name is no longer valid and should be changed."},
 		{"C11", "Incorrect company identification", "Company ID is no longer valid and should be changed"},
diff --git a/docs/changes.md b/docs/changes.md
index 3c5ffcd0..2a4df8d4 100644
--- a/docs/changes.md
+++ b/docs/changes.md
@@ -58,9 +58,9 @@ addenda98.TraceNumber = "91012980000088"
 | `C02` | Incorrect transit/routing number | Once valid transit/routing number must be changed |
 | `C03` | Incorrect transit/routing number and bank account number | Once valid transit/routing number must be changed and causes a change to bank account number structure |
 | `C04` | Bank account name change | Customer has changed name or ODFI submitted name incorrectly |
-| `C05` | Incorrect payment code | Entry posted to demand account should contain savings payment codes or vice versa |
-| `C06` | Incorrect bank account number and transit code | Bank account number must be changed and payment code should indicate posting to another account type (demand/savings) |
-| `C07` | Incorrect transit/routing number, bank account number and payment code | Changes required in three fields indicated |
+| `C05` | Incorrect transaction code | Entry posted to demand account should contain savings transaction codes or vice versa |
+| `C06` | Incorrect bank account number and transit code | Bank account number must be changed and transaction code should indicate posting to another account type (demand/savings) |
+| `C07` | Incorrect transit/routing number, bank account number and transaction code | Changes required in three fields indicated |
 | `C09` | Incorrect individual ID number | Individual's ID number is incorrect |
 | `C10` | Incorrect company name | Company name is no longer valid and should be changed |
 | `C11` | Incorrect company identification | Company ID is no longer valid and should be changed |
diff --git a/go.mod b/go.mod
index 8cdd5a57..ce1c0dbc 100644
--- a/go.mod
+++ b/go.mod
@@ -13,7 +13,7 @@ require (
 	github.com/moov-io/base v0.35.0
 	github.com/prometheus/client_golang v1.13.0
 	github.com/stretchr/testify v1.8.0
-	golang.org/x/oauth2 v0.0.0-20221006150949-b44042a4b9c1
+	golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1
 )
 
 require (
diff --git a/go.sum b/go.sum
index 455d4e1d..c860c636 100644
--- a/go.sum
+++ b/go.sum
@@ -317,7 +317,6 @@ golang.org/x/oauth2 v0.0.0-20220223155221-ee480838109b/go.mod h1:DAh4E804XQdzx2j
 golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094 h1:2o1E+E8TpNLklK9nHiPiK1uzIYrIHt+cQx3ynCwq9V8=
 golang.org/x/oauth2 v0.0.0-20220822191816-0ebed06d0094/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
 golang.org/x/oauth2 v0.0.0-20220909003341-f21342109be1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
-golang.org/x/oauth2 v0.0.0-20221006150949-b44042a4b9c1/go.mod h1:h4gKUeWbJ4rQPri7E0u6Gs4e9Ri2zaLxzw5DI5XGrYg=
 golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
 golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=


Test patch:
diff --git a/addenda98_test.go b/addenda98_test.go
index 2f13fb84..9055edea 100644
--- a/addenda98_test.go
+++ b/addenda98_test.go
@@ -44,7 +44,7 @@ func TestAddenda98_LookupChangecode(t *testing.T) {
 		if code.Code != "C05" {
 			t.Errorf("code.Code=%s", code.Code)
 		}
-		if code.Reason != "Incorrect payment code" {
+		if code.Reason != "Incorrect transaction code" {
 			t.Errorf("code.Reason=%s", code.Reason)
 		}
 	}