cp env.example .env
docker-compose up
go test ./...
curl -X POST "http://localhost:8080/webhooks/transaction" -d '{"transactionId":"tqZi6QapS41zcEHy", "orderId":"c66oxMaisTwJQXjD", "transactionType":"SALE", "amount": "20.00", "currency":"EUR", "description":"Test transaction", "accountId":"001"}'
curl -X POST "http://localhost:8080/webhooks/transaction" -d '{"transactionId":"tqZi6QapS41zcEHy2", "orderId":"c66oxMaisTwJQXjD", "transactionType":"SALE", "amount": "20.00", "currency":"EUR", "description":"Test transaction", "accountId":"001"}'
curl -X POST "http://localhost:8080/webhooks/transaction" -d '{"transactionId":"tqZi6QapS41zcEHy3", "orderId":"c66oxMaisTwJQXjD", "transactionType":"CREDIT", "amount": "10.00", "currency":"EUR", "description":"Test transaction", "accountId":"001"}'
curl -X GET "http://localhost:8080/account/001"
{"balance":"30.00"}
ab -c 100 -n 2000 -p test.json -T application/json http://127.0.0.1:8080/webhooks/transaction
curl -X GET "http://localhost:8080/all"