-
Notifications
You must be signed in to change notification settings - Fork 3
billing.Class.BillingHistoryService
tgreyuk edited this page Mar 23, 2025
·
9 revisions
github-wiki-example / billing / BillingHistoryService
Defined in: billing.ts:135
Service for managing billing history. Provides functionality to store and retrieve the history of transactions.
new BillingHistoryService():
BillingHistoryService
BillingHistoryService
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.
Parameter | Type | Description |
---|---|---|
transaction |
BillingTransaction |
The billing transaction to be added to the history. |
void
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.
An array of all billing transactions in the history.