Skip to content

BillingModule.Class.BillingHistoryService

tgreyuk edited this page Apr 25, 2024 · 1 revision

github-wiki-example / BillingModule / BillingHistoryService

Class: BillingHistoryService

Service for managing billing history. Provides functionality to store and retrieve the history of transactions.

Constructors

new BillingHistoryService()

new BillingHistoryService(): BillingHistoryService

Returns

BillingHistoryService

Properties

Property Modifier Type Default value Description
history private BillingTransaction[] [] Holds all transactions that have been added to the billing history.

Methods

addTransactionToHistory()

addTransactionToHistory(transaction): void

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

Source

billing.ts:145


getBillingHistory()

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.

Returns

BillingTransaction[]

An array of all billing transactions in the history.

Source

billing.ts:154

Clone this wiki locally