Skip to content

basalt / subscriptions/src / overageLine

Function: overageLine() ​

> overageLine(feature, opts): NewLineItem | null

Defined in: subscriptions/src/invoice.ts:353

A metered-overage line: units consumed above the included allowance, billed at unitAmount each. Returns null when usage is within the allowance (no line).

Parameters ​

feature ​

string

opts ​

included ​

number

unitAmount ​

number

used ​

number

Returns ​

NewLineItem | null

Released under the MIT License.