The Central Settlements service is part of the Mojaloop project and deployment.
The central settlements service exposes Settlement API to manage the settlements between FSPs and the Central Hub. The service manages Settlement Windows and Settlements Event Triggers and provides information about FSPs accounts and settlements.
Contents:
TBA
Currently the only configuration, necessary is kept here Example values are as follows:
{
"PORT": 3007,
"HOSTNAME": "http://central-settlements.local",
"DATABASE_URI" : "mysql://central_ledger:password@localhost:3306/central_ledger"
}
Currently all is set into the config.
The Markdown version of API is available here The actual Swagger API documentation can be found here
Logs are sent to standard output by default.
Includes unit tests at the moment. Functional and integration are outstanding.
Running the tests:
npm run test:all
Tests include code coverage via istanbul. See the test/ folder for testing scripts.