Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions pkg/suspicious_activity/activity.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const (
PartyBranch = "46"
PartyITCTCC = "28"
PartyITCTIN = "4"
PartyITCEIN = "1"
PartyITCFIN = "2"
)

Expand Down Expand Up @@ -264,7 +265,7 @@ func (r PartyType) fieldInclusion() error {
if len(r.PartyIdentification) < 1 || len(r.PartyIdentification) > 3 {
return fincen.NewErrValueInvalid("PartyIdentification")
}
if !existed[PartyITCFIN] {
if !existed[PartyITCEIN] && !existed[PartyITCTIN] && !existed[PartyITCFIN] {
return fincen.NewErrValueInvalid("PartyIdentification")
}
case PartyContactOffice:
Expand All @@ -285,7 +286,7 @@ func (r PartyType) fieldInclusion() error {
if len(r.PartyIdentification) < 1 || len(r.PartyIdentification) > 3 {
return fincen.NewErrValueInvalid("PartyIdentification")
}
if !existed[PartyITCFIN] {
if !existed[PartyITCEIN] && !existed[PartyITCTIN] && !existed[PartyITCFIN] {
return fincen.NewErrValueInvalid("PartyIdentification")
}
case PartySubject:
Expand Down