Skip to content

Commit

Permalink
Merge pull request #87 from mimy2001/master
Browse files Browse the repository at this point in the history
fix: need to add in cash out codes for currency transaction activity …
  • Loading branch information
adamdecaf authored Jan 8, 2024
2 parents adb21d0 + 006873a commit dc269a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/currency_transaction/primitive.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,15 @@ 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
Expand Down

0 comments on commit dc269a6

Please sign in to comment.