Platform-lane billing controls. Lets an operator set or override a tenant's subscription directly, bypassing the provider checkout flow. Requires a platform credential (service account / operator), not a tenant bearer.
import { GatekeeperCore, PlatformBillingService } from '@orkait/sdk';
const platformBilling = new PlatformBillingService(core);Methods#
| Method | Returns | Notes |
|---|---|---|
overrideSubscription(input) | Subscription | force a tenant onto a plan; input: { tenantId, planId, reason, actorId? } |
Example#
const sub = await platformBilling.overrideSubscription({
tenantId: 't1',
planId: 'plan_enterprise',
reason: 'negotiated contract',
});