Payout service is responsible for creating payout information in the database. Payouts are created after booking is made and tenant paid the amount to advertiser. Several payouts for the same booking could be created, for example the booking price, deposit and utilities.
The code is written on Go. If you prefer other language, you can rewrite it on the language of your own.
The repository utilizes SQLite, if you decide to create your own implementation, use it as well.
You can use the SQL queries from repo.go
.
This is a simple repository that reads the data from the file and write it to the local database. You will be asked to do some modifications for this code during the interview. Please have it (or your version) prepared on your machine before the interview.
- Clone repository
- Install Golang on your machine
- Run
go get ./...
to load the dependencies - Run
go run .