Git Product home page Git Product logo

transaction-manager's Introduction

transaction-manager is a simple utility to read a list of transactions and output the state of client accounts after all transactions are applied.

Example Usage

Will output account list to stdout:

cargo run resources/transaction-list.csv

Will output account list to csv file:

cargo run resources/transaction-list.csv > resources/account-list.csv

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Notes

  • The logic in the client module regarding Dispute, Resolve, and Chargeback transactions assumes that the previous transaction being referenced is only of type "Deposit". There may be unexpected behaviour if a "Withdrawal" transaction is referenced instead.
  • Other assumptions I'm making about transaction "rules" are specified in the transaction_error module and enforced in the client module.
  • Because the csv reader processes one transaction at a time, transaction_manager could be modified to accept, verify, and merge concurrent streams of input data.
  • The tests currently written are meant to cover only the most important functionality, and do not represent complete unit test coverage. If this were a real project, I would add tests to cover all possible results from all functions, including errors.

transaction-manager's People

Contributors

tjhaskel avatar

Watchers

 avatar

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.