Git Product home page Git Product logo

fincen's People

Contributors

adamdecaf avatar kris-hansen avatar matiasinsaurralde avatar mfdeveloper508 avatar renovate[bot] avatar wadearnold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

fincen's Issues

error for generating sequence number

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?

docker docs don't work for reformat endpoint

FinCEN Version: 0.3.6

What were you trying to do?

  • learn the repo by running through the docs

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?

  • no text file in data/samples
  • even when i supplied my own dummy data, i still had to change the localhost from 8088 to 8206

How can we reproduce the problem?

  • run the commands in the docs
  • run my python code that seems to get a valid response
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 % 

Unable to check Yes to only initial report indicator and still include fincen direct backfile indicator or corrects amends prior report indicator in CTR generation

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

Screen Shot 2022-11-07 at 6 28 00 PM

Screen Shot 2022-11-07 at 6 29 36 PM

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

Unable to check Yes to only one indication in Currency Transaction Activity

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.

Screen Shot 2022-11-07 at 6 22 17 PM

How can we reproduce the problem?

Create a CTR report and fill out the Currency Transaction Activity.

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Detected empty commit - aborting git push

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • chore(deps): update dependency bulma-clean-theme to v0.13.3
  • chore(deps): update actions/checkout action to v4
  • chore(deps): update actions/setup-go action to v5
  • chore(deps): update dependency github-pages to v231
  • chore(deps): update dependency tzinfo to v2
  • chore(deps): update github artifact actions to v4 (major) (actions/download-artifact, actions/upload-artifact)
  • chore(deps): update github/codeql-action action to v3

Ignored or Blocked

These are blocked by an existing closed PR and will not be recreated unless you click a checkbox below.

Detected dependencies

bundler
docs/Gemfile
  • bulma-clean-theme undefined
  • jekyll-feed "= 0.16.0"
  • github-pages ">= 214"
  • tzinfo "~> 2.0"
dockerfile
Dockerfile
  • golang 1.22-alpine
Dockerfile.openshift
Dockerfile.webui
  • golang 1.22
github-actions
.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
gomod
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

  • Check this box to trigger a request for Renovate to run again on this repository

No fc2 prefix as per XML user guide on fincen for CTR/SAR

FinCEN Version: 0.2.6

What were you trying to do?
Generate a CTR / SAR report

What did you expect to see?
elements should have a prefix of fc2

image

What did you see?
Don't have fc2

image

How can we reproduce the problem?

Here's the user guide where it mentions this:
image

XML Schema

Each report should use specified xsi:schemaLocation attributes
But generating sample schema only

SAR Transmitter Party Identification max occurence

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")
}

How to setup fincen in python?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.