billing.Class.BillingHistoryService - typedoc2md/typedoc-plugin-markdown-examples GitHub Wiki
github-wiki-example / billing / BillingHistoryService
Class: BillingHistoryService
Defined in: billing.ts:135
Service for managing billing history. Provides functionality to store and retrieve the history of transactions.
Constructors
Constructor
new BillingHistoryService():
BillingHistoryService
Returns
BillingHistoryService
Methods
addTransactionToHistory()
addTransactionToHistory(
transaction
):void
Defined in: billing.ts:144
Adds a transaction to the billing history. This method is typically called after a transaction is completed to maintain a record.
Parameters
Parameter | Type | Description |
---|---|---|
transaction |
BillingTransaction |
The billing transaction to be added to the history. |
Returns
void
getBillingHistory()
getBillingHistory():
BillingTransaction
[]
Defined in: billing.ts:153
Retrieves the complete billing history, providing access to all transactions that have been recorded. This is useful for historical analysis and auditing purposes.
Returns
An array of all billing transactions in the history.