-
Notifications
You must be signed in to change notification settings - Fork 3
BillingModule.Class.BillingHistoryService
tgreyuk edited this page Apr 25, 2024
·
1 revision
github-wiki-example / BillingModule / BillingHistoryService
Service for managing billing history. Provides functionality to store and retrieve the history of transactions.
new BillingHistoryService():
BillingHistoryService
Property | Modifier | Type | Default value | Description |
---|---|---|---|---|
history |
private |
BillingTransaction [] |
[] |
Holds all transactions that have been added to the billing history. |
addTransactionToHistory(
transaction
):void
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
billing.ts:145
getBillingHistory():
BillingTransaction
[]
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.
billing.ts:154