Billing core client API consistency: id, flat records, list_clients (#16) #19

Merged
pbwraith merged 1 commits from issue-16 into main 2026-08-25 17:12:32 +02:00

1 Commits

Author SHA1 Message Date
Claude
84e44ee4e8 gitea-saas-core#16: billing core client API consistency (id, flat records, list_clients)
create_client now returns 'id' (was 'client_id'), get_client returns a flat
record with balance as a field (was nested under 'client'), and list_clients
is implemented returning {'clients': [...]} with the same flat shape. A
cross-method shape-consistency test (create/get/list key-set agreement)
plus a wire-shape test mirroring the server's _client_out allow-list guard
against future drift. server.py/test_server.py untouched (issue #2/!13).
2026-08-25 06:09:46 -05:00