Skip to main content
Version: 2.x

Interface: BillingProvisioningPort

Defined in: javascript/src/billing/service-types.ts:20

The narrow credit capability billing may request during subscription provisioning. Billing does not depend on the full credit service.

Methods

getUserPlan()

getUserPlan(userId): Promise<{ planAssignedAt?: string | Date | null; } | null>

Defined in: javascript/src/billing/service-types.ts:21

Parameters

userId

string

Returns

Promise<{ planAssignedAt?: string | Date | null; } | null>


setUserPlan()

setUserPlan(userId, planKey, planAssignedAt?): Promise<SetUserPlanResult>

Defined in: javascript/src/billing/service-types.ts:22

Parameters

userId

string

planKey

string

planAssignedAt?

Date | null

Returns

Promise<SetUserPlanResult>


unsetUserPlan()

unsetUserPlan(userId): Promise<UnsetUserPlanResult>

Defined in: javascript/src/billing/service-types.ts:27

Parameters

userId

string

Returns

Promise<UnsetUserPlanResult>