Arbeitsnachweis: Abo-Stundenkonto nur bei Kunden mit Wartungs-Abo

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
ClaudeandClaude Sonnet 5.5 committed 2026-09-29 15:29:45 +00:00
1 parent b05f49621c
commit 3b6a821687
5 files changed
+89 -16

No files matched your search

+5
View File
@@ -34,3 +34,8 @@ export async function updateCustomerWithPortalAccess(customerId, payload) {
export async function deleteCustomerWithPortalAccess(customerId) {
return adminFetch(`/api/admin/customers/${customerId}`, { method: 'DELETE' })
}
// Wartungs-/Hosting-Abo des Kunden: { productKey: 'wartung' | 'hosting' | null, active }
export async function getCustomerAbo(customerId) {
return adminFetch(`/api/admin/customers/${encodeURIComponent(customerId)}/abo`, { method: 'GET' })
}