KamoCRM

Adăugați platformaAdmin controler + serviciu pentru granturile de plan comp

FeatureBillingService
Shipped
20 aprilie 2026 la 19:43 UTC
Author
Kamo
Commit
620164f

- PlatformAdminController la /api/billing/platform (class-level @PlatformAdminOnly) - GET /orgs, GET /orgs / {orgid} - POST /orgs/{orgId}/grants, PATCH - GET / Plans (include isPublic=fals) - GET / evenimente - PlatformAdminService: grant creeaza COMP AbonamentRecord, anuleaza activa anterioara sub, emite AbonamentEvent Nu-ţi face griji. idempotență 5s - @PlatformAdminOnly + HandlerInterceptor: permite God-mode-active OR (TeamMember.isOrganizationOwner and Organization.isTopLevel, re-read from DB) - AbonamentReînnoireScheduler: sucursala COMP anulează la expirare (COMP EXPIRED) şi niciodată nu-l cheamă pe Stripe. - BillingAdminService: Agregarea MRR/ARR exclude metoda de plată=COMP - Id-uri lungi expuse ca string (CockroachDB unic rowid precizie)

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing