typedoc-vitepress-theme-example / billing / BillingHistoryService
BillingHistoryService
Service for managing billing history.
Constructors
new BillingHistoryService()
ts
new BillingHistoryService(): BillingHistoryServiceReturns
Properties
history
ts
private history: BillingTransaction[] = [];Methods
addTransactionToHistory()
ts
addTransactionToHistory(transaction): voidAdd a transaction to the billing history.
Parameters
• transaction: BillingTransaction
The billing transaction to be added to the history.
Returns
void
getBillingHistory()
ts
getBillingHistory(): BillingTransaction[]Get the entire billing history.
Returns
An array of all billing transactions in the history.