- takes list of transactions' data,
- recalculates its' amounts according to the current exchange rates,
- determines country of the transaction by BIN number,
- adds appropriate commission fee
- returns corrected amounts of transactions.
- Clone the repository
- Run
export USER_ID=$(id -u)
andexport GROUP_ID=$(id -g)
- Run
docker compose -f docker_dev/compose.yml run --rm commission-calc composer install
- Run
docker compose -f docker_dev/compose.yml run --rm commission-calc composer test-functional
- Run
docker compose -f docker_dev/compose.yml run --rm commission-calc composer test-unit
- Run
docker compose -f docker_dev/compose.yml run --rm commission-calc php calc.php <input_filename>