Skip to content

A simple toy payments engine that reads a series of transactions from a CSV, updates client accounts, handles disputes and chargebacks, and then outputs the state of clients accounts to stdout in CSV format.

Notifications You must be signed in to change notification settings

grantkee/payments-engine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

payments engine

A simple toy payments engine that reads a series of transactions from a CSV, updates client accounts, handles disputes and chargebacks, and then outputs the state of clients accounts to stdout in CSV format.

Usage

$ cargo run -- transactions.csv > accounts.csv

Testing

Unit tests in src/client.rs for transaction methods (withdrawal, deposit, dispute, resolve, and chargeback).

Manual testing was conducted using CSV files located in tests/CSVs for a variety of scenarios.

About

A simple toy payments engine that reads a series of transactions from a CSV, updates client accounts, handles disputes and chargebacks, and then outputs the state of clients accounts to stdout in CSV format.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages