From dfb0a43f0909866313883bde9905935008aceb85 Mon Sep 17 00:00:00 2001 From: Lucie Date: Thu, 4 Jan 2024 17:16:51 -0500 Subject: [PATCH 1/2] fix: need to add in cash out codes for currency transaction activity detail code type --- pkg/currency_transaction/primitive.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/currency_transaction/primitive.go b/pkg/currency_transaction/primitive.go index d7b32d44..46f46937 100644 --- a/pkg/currency_transaction/primitive.go +++ b/pkg/currency_transaction/primitive.go @@ -80,12 +80,14 @@ func (r ValidatePartyAccountAssociationCodeType) Validate() error { return fincen.NewErrValueInvalid("PartyAccountAssociationCode") } -// May be one of "55", "46", "23", "12", "14", "49", "18", "21", "25", "997", "53", +// May be one of "55", "46", "23", "12", "14", "49", "18", "21", "25", "997", "53", for cash in +// "56", "30", "32", "13", "15", "48", "28", "31", "33", "34", "998", "54", for cash out type ValidateCurrencyTransactionActivityDetailCodeType string func (r ValidateCurrencyTransactionActivityDetailCodeType) Validate() error { for _, vv := range []string{ "55", "46", "23", "12", "14", "49", "18", "21", "25", "997", "53", + "56", "30", "32", "13", "15", "48", "28", "31", "33", "34", "998", "54", } { if reflect.DeepEqual(string(r), vv) { return nil From 006873ab8dfcb9dab6dd193d728ed11b6b238ef6 Mon Sep 17 00:00:00 2001 From: Lucie Date: Thu, 4 Jan 2024 17:21:49 -0500 Subject: [PATCH 2/2] fix: linter --- pkg/currency_transaction/primitive.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/currency_transaction/primitive.go b/pkg/currency_transaction/primitive.go index 46f46937..fa900f48 100644 --- a/pkg/currency_transaction/primitive.go +++ b/pkg/currency_transaction/primitive.go @@ -81,7 +81,8 @@ func (r ValidatePartyAccountAssociationCodeType) Validate() error { } // May be one of "55", "46", "23", "12", "14", "49", "18", "21", "25", "997", "53", for cash in -// "56", "30", "32", "13", "15", "48", "28", "31", "33", "34", "998", "54", for cash out +// +// "56", "30", "32", "13", "15", "48", "28", "31", "33", "34", "998", "54", for cash out type ValidateCurrencyTransactionActivityDetailCodeType string func (r ValidateCurrencyTransactionActivityDetailCodeType) Validate() error {