Skip to main content

EntitlementController

The caller's organization's module access.

Base path— (paths declared per handler)
ModuleBilling & Platform
Endpoints2
OpenAPI tagEntitlements
Sourcebackend/src/main/java/com/motorph/payroll/controller/EntitlementController.java

Endpoints​

MethodPathRequiresHandler
GET/api/entitlements@platformAccess.erpTenantOf(authentication) != null — any authenticated usergetEntitlements()
GET/api/billing/subscription-changessystem.admin.billing.managegetSubscriptionChanges()

Notes​

  • GET /api/billing/subscription-changes — Why module access changed: plan changes, add-ons, access mode.

Call chain​

Dependencies​

Constructor-injected by Lombok's @RequiredArgsConstructor: EntitlementService, EntitlementAdminService.

Tables reached​

None through a Spring Data repository — this controller is stateless, or its work is delegated to a component that reaches storage another way.


Generated page

This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.