Enhance billing logic: add REST support for manual and automated transactions, refine billing routes, adapt frontend API integration, and implement transaction type validation.

This commit is contained in:
2026-04-12 18:35:49 +02:00
parent 03950f8b0c
commit 9754f3e36b
10 changed files with 162 additions and 27 deletions
@@ -44,7 +44,10 @@ object ApiRoutes {
object Billing {
const val ROOT = "/api/v1/billing"
const val KONTEN = "$ROOT/konten"
fun buchungen(kontoId: String) = "$KONTEN/$kontoId/buchungen"
fun konto(kontoId: String) = "$ROOT/konten/$kontoId"
fun historie(kontoId: String) = "$ROOT/konten/$kontoId/historie"
fun buche(kontoId: String) = "$ROOT/konten/$kontoId/buche"
fun veranstaltungKonten(veranstaltungId: String) = "$ROOT/veranstaltungen/$veranstaltungId/konten"
fun personKonto(veranstaltungId: String, personId: String) = "$ROOT/veranstaltungen/$veranstaltungId/personen/$personId"
}
}