moov-io / fincen Goto Github PK
View Code? Open in Web Editor NEWFincen BSA E-Filing forms
Home Page: https://moov-io.github.io/fincen/
License: Apache License 2.0
Fincen BSA E-Filing forms
Home Page: https://moov-io.github.io/fincen/
License: Apache License 2.0
The sample SAR and CTR XML files batch files (https://github.com/moov-io/fincen/tree/master/data/samples) do not validate on the BSA test site when uploaded. They become rejected with multiple errors including invalid schema validation, and many instances of "The namespace prefix for the element is invalid."
Let's setup a basic web page for this new project.
On our docs site let's have a page showing an example SAR report. It can include sample values and code. A full Go example would be ideal.
https://github.com/moov-io/fincen/blob/main/suspicious_activity/activity.go
FinCEN Version: ``
What were you trying to do?
want to get unique sequence numbers
What did you expect to see?
generate unique sequence number
What did you see?
don't run correctly
How can we reproduce the problem?
On our WASM site let's have a demo for filling out a FBAR report. It will help us prove out the library and be a handy tool.
https://github.com/moov-io/fincen/blob/main/financial_accounts/activity.go
On our WASM site let's have a page that can generate a DOEP form. It will help us prove out the library and be a handy tool.
https://github.com/moov-io/fincen/blob/main/exempt_designation/activity.go
FinCEN Version: 0.3.6
What were you trying to do?
What did you expect to see?
from the docs:
Reformat the file with generated attributes:
curl -X POST --data-binary "@./data/samples/ctr_batch.txt" http://localhost:8088/reformat
<EFilingBatchXML ActivityCount="1" TotalAmount="47000" PartyCount="6" SeqNum="1"
xsi:schemaLocation="www.fincen.gov/base https://www.fincen.gov/base https://www.fincen.gov/base/EFL_8300XBatchSchema.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:fc2="www.fincen.gov/base">
<Activity SeqNum="1">
What did you see?
8088
to 8206
How can we reproduce the problem?
import requests
import json
import io
url = "http://localhost:8206/reformat"
data = {
"SeqNum": 123,
"StatusCode": "OK",
"TotalAmount": 100.0,
"PartyCount": 1,
"ActivityCount": 1,
"AccountCount": 1,
"ActivityAttachmentCount": 1,
"AttachmentCount": 1,
"JointlyOwnedOwnerCount": 1,
"NoFIOwnerCount": 1,
"ConsolidatedOwnerCount": 1,
"FormTypeCode": "FTC",
"Activity": [],
"EFilingSubmissionXML": {"SubmissionType": "ST", "SubmissionDate": "2022-01-01"}
}
data_json = json.dumps(data)
data_file = io.StringIO(data_json)
files = { 'input': ('data.json', data_file, 'application/json') }
response = requests.post(url, files=files)
print(response.text)
<EFilingBatchXML SeqNum="123" StatusCode="OK" TotalAmount="100" PartyCount="1" ActivityCount="1" AccountCount="1" ActivityAttachmentCount="1" AttachmentCount="1" JointlyOwnedOwnerCount="1" NoFIOwnerCount="1" ConsolidatedOwnerCount="1"><fc2:FormTypeCode>FTC</fc2:FormTypeCode><EFilingSubmissionXML SeqNum="0"></EFilingSubmissionXML></EFilingBatchXML>
(fincen-py3.10) honey@honeyair fincen-python %
Let's standup a basic app for hosting forms and tooling using this library.
Let's have a page on our docs site for filling our a FBAR report. Include sample values and code. A full Go example would be ideal.
https://github.com/moov-io/fincen/blob/main/financial_accounts/activity.go
FinCEN Version: 0.2.6
What were you trying to do?
Generate the CTR report with Activity Association with just Y in initial report indicator but still include the other two elements as empty (CorrectsAmendsPriorReportIndicator and FinCENDirectBackFileIndicator) as show in the user guide
What did you expect to see?
I expected to see the following, where I can check yes to 1 of the indicators and then provide empty to the rest
What did you see?
If i don't include the other two it's ok, but the userguide has them in but just no value (ie not Y but empty indicator)
How can we reproduce the problem?
Create a CTR report with this code :
aat := currency_transaction.ActivityAssociationType{
SeqNum: fincen.SeqNumber(seqNumber),
// CorrectsAmendsPriorReportIndicator: &EmptyIndicator, // TODO how to do this since it fails validation, must be recorded even if it's nil as per CTR XSD
// FinCENDirectBackFileIndicator: &EmptyIndicator,
InitialReportIndicator: &YesIndicator,
}
activity.ActivityAssociation = &aat
On our docs site we should have a page for generating a CTR. It can include sample data and example code. A full Go example would be ideal.
https://github.com/moov-io/fincen/blob/main/currency_transaction/activity.go
FinCEN Version: 0.2.6
What were you trying to do?
Create a CTR report with a Currency Transaction Activity section
What did you expect to see?
Only check ArmoredCarServiceIndicator as Y and leave the rest as there but empty
What did you see?
I can only put yes or nothing (which means the other options are not there) which is against the user guide
The user guide says it must be Y or null and I tried to use the empty indicator in here but it doesn't accept it.
But in the section it says min instance is 1 but the validation also only lets me put in Yes, so now I have Y for a lot of sections.
How can we reproduce the problem?
Create a CTR report and fill out the Currency Transaction Activity.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These problems occurred while renovating this repository. View logs.
These updates are pending. To force PRs open, click the checkbox below.
actions/download-artifact
, actions/upload-artifact
)These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.
docs/Gemfile
bulma-clean-theme undefined
jekyll-feed "= 0.16.0"
github-pages ">= 214"
tzinfo "~> 2.0"
Dockerfile
golang 1.22-alpine
Dockerfile.openshift
Dockerfile.webui
golang 1.22
.github/workflows/codeql.yaml
actions/checkout v2
github/codeql-action v2
github/codeql-action v2
.github/workflows/go.yml
actions/setup-go v4
actions/checkout v2
.github/workflows/release.yml
actions/setup-go v4
actions/checkout v2
actions/create-release v1
actions/upload-artifact v1
actions/setup-go v4
actions/checkout v2
actions/download-artifact v1
actions/upload-release-asset v1
actions/upload-release-asset v1
actions/upload-release-asset v1
actions/setup-go v4
actions/checkout v2
go.mod
go 1.20
github.com/google/uuid v1.6.0
github.com/gorilla/mux v1.8.1
github.com/moov-io/base v0.48.5
github.com/stretchr/testify v1.9.0
On our docs site let's have a page showing how to generate a DOEP report. It can include sample code and values. A full Go example would be ideal.
https://github.com/moov-io/fincen/blob/main/exempt_designation/activity.go
Each report should use specified xsi:schemaLocation attributes
But generating sample schema only
On our WASM demo site let's have a page for creating cash_payments forms in the browser. It would show off our library and help users out to learn the library (and generate forms).
https://github.com/moov-io/fincen/blob/main/cash_payments/activity.go
FinCEN Version: 0.2.6
What were you trying to do?
We were trying to use the moov library to generate a SAR report and filling out the transmitter section. The samples (from our bank) /XML user guide we got off of fincen indicates that there's two party identification under the Transmitter Party with code 35 but the moov library validation for this section says len(r.PartyIdentity) > 1 will throw an error
What did you expect to see?
We expected this party section to be validated properly with two party identification types
What did you see?
We got a validation error saying that partyidentity length > 1 (ie min/max range failed) in the fieldInclusion method
How can we reproduce the problem?
Try to make an Activity with a Party for transmitter code 35 and add two party identity.
Here is the lines of code that's failing in suspicious_activity/activity.go
case "35":
if len(r.PartyName) != 1 || len(r.Address) != 1 || len(r.PhoneNumber) != 1 || len(r.PartyIdentification) != 1 {
return fincen.NewErrValueInvalid("Party")
}
FinCEN Version: ``
What were you trying to do?
I am trying to setup FinCEN on python to submit a case file. or how can i set up FinCEN on server to transfer XML case file.
On our WASM site let's have a page generating a SAR report. It will help us prove out our library and be a handy tool.
https://github.com/moov-io/fincen/blob/main/suspicious_activity/activity.go
We should create an example showing how to populate and generate a cash_payments form. It can include sample values and a documentation page. A full Go example would be ideal.
https://github.com/moov-io/fincen/blob/main/cash_payments/activity.go
On our WASM demo site let's have a page that can generate a CTR report. It will be helpful to prove out the library and be a handy tool.
https://github.com/moov-io/fincen/blob/main/currency_transaction/activity.go
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.