This story adds the ability to schedule batch voucher exports on a recurring basis (daily/weekly/etc.)
The first part of this is implementing the "scheduled" endpoint which can be described via the following pseudocode:
NOTE: down the road we might choose to calculate and store the "next" trigger time as well as start/end params so that we're not constantly doing all this work. That would allow us to just query the db each time this API is invoked and get back the list of batch groups (and related params) we need to trigger exports for. That said, for now let's keep it simple.
The second part is adding an entry to the module descriptor for the _timer interface which calls the "scheduled" endpoint every 5 minutes
Writing tests for this work may present some challenges. Keep that in mind during estimation.
- the _timer interface is implemented as described above
- the "scheduled" API is implemented as described above
- unit tests are implemented
- api tests are implemented