Code Monkey home page Code Monkey logo

ofex's Introduction

ofex

Build Status Hex version API docs

A simple parser for Open Financial Exchange (OFX) data in elixir

Installation

def deps do
  [{:ofex, "~> 0.1"}]
end

Documentation

ofex's People

Contributors

film42 avatar jjcarstens avatar nikhilmore54 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ofex's Issues

The parser creates a single account map for multiple accounts

Hello Developer,
I have found a bug where multiple accounts are stored in a single map. A sample file is attached along with its output. Kindly notice how the account number of multiple accounts is concatenated into a long string.
usaa_quicken_1.zip

the solution from my side is attached as a code by replacing the code for parse_message_set in ofex.ex with
defp parse_message_set("BANKMSGSRSV1", message_set) do message_set |> xpath(~x"//BANKMSGSRSV1/*[contains(name(), 'STMTTRNRS')]"l) |> Enum.map(&BankAccount.create(&1)) end defp parse_message_set("CREDITCARDMSGSRSV1", message_set) do message_set |> xpath(~x"//BANKMSGSRSV1/*[contains(name(), 'STMTTRNRS')]"l) |> Enum.map(&CreditCardAccount.create(&1)) end

Return nil values instead of empty strings ("")

I think the expected behavior should be to return nil when something is not matched. Was previously relying on a sweet_xml parsing to handle that for other types of values (float, int, etc), but strings would return "" if path not found.

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.