Skip to content

typedoc-vitepress-theme-example / billing / BillingHistoryService

BillingHistoryService

Service for managing billing history.

Constructors

new BillingHistoryService()

ts
new BillingHistoryService(): BillingHistoryService

Returns

BillingHistoryService

Properties

history

ts
private history: BillingTransaction[] = [];

Methods

addTransactionToHistory()

ts
addTransactionToHistory(transaction): void

Add 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

BillingTransaction[]

An array of all billing transactions in the history.