typedoc-vitepress-theme-example / billing / BillingService
BillingService
Service for managing billing transactions.
Constructors
new BillingService()
ts
new BillingService(): BillingService
Returns
Properties
transactions
ts
private transactions: BillingTransaction[] = [];
Methods
getAllTransactions()
ts
getAllTransactions(): BillingTransaction[]
Get all billing transactions.
Returns
An array of all billing transactions.
processTransaction()
ts
processTransaction(transaction): BillingTransaction
Process a billing transaction.
Parameters
• transaction: BillingTransaction
The billing transaction to be processed.
Returns
The processed billing transaction.