@ai-billing/nextjs / server / fetchStripeUsage
Function: fetchStripeUsage()
fetchStripeUsage(Defined in: packages/nextjs/src/stripe/fetchStripeUsage.ts:9 Fetches usage data for a given customer. (Mocked implementation)_request):Promise<StripeUsageData>
Parameters
_request
User identifier — either{ userId } or { stripeCustomerId }.
stripeCustomerId?
string
userId?
string
Returns
Promise<StripeUsageData>