Skip to content

Added ofx module, functions to generate ofx file from json data.#1

Draft
ieugen wants to merge 15 commits intomasterfrom
ofx-converter
Draft

Added ofx module, functions to generate ofx file from json data.#1
ieugen wants to merge 15 commits intomasterfrom
ofx-converter

Conversation

@ieugen
Copy link
Copy Markdown
Member

@ieugen ieugen commented Aug 19, 2020

No description provided.

Comment thread package.json Outdated
"@testing-library/user-event": "^7.2.1",
"date-fns": "^2.12.0",
"lodash": "^4.17.15",
"ofx": "^0.5.0",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scoate te rog dependința ofx.

Comment thread src/data/samples/sample.json Outdated
@@ -0,0 +1,63 @@
{
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fișierul JSON era pentru tine.
Nu are nicio valoare in proiect.
Îl poți scoate (git commit --ammend)

Comment thread src/ofx-converter-demo.js Outdated
BANKMSGSRSV1: {
STMTTRNRS: {
STMTRS: {
CURDEF: "RON",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Multe din astea vor trebui să fie ca parametrii.
Eu am conturi in EUR.

Cum ar arăta un API (funcție / funcții) pentru a converti un fișier CSV -> OFX?
Ce date va fi nevoie suplimentar de la utilizator?
Cum vei pasa datele către API (ce semnătură vor avea funcțiile)?

Comment thread src/ofx-converter.js Outdated
@@ -0,0 +1,26 @@
function transactionType(credit, debit) {
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Te rog să adaugi teste pentru metodele de mai jos.

@ieugen
Copy link
Copy Markdown
Member Author

ieugen commented Aug 19, 2020

Înlocuiește xml-js cu https://github.com/Leonidas-from-XIV/node-xml2js .
xml-js folosește o bibliotecă nativă și nu poate fi folosit în browser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant