Skip to content

typedoc-vitepress-theme-example / billing / BillingService

BillingService

Service for managing billing transactions.

Constructors

new BillingService()

ts
new BillingService(): BillingService

Returns

BillingService

Properties

transactions

ts
private transactions: BillingTransaction[] = [];

Methods

getAllTransactions()

ts
getAllTransactions(): BillingTransaction[]

Get all billing transactions.

Returns

BillingTransaction[]

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

BillingTransaction

The processed billing transaction.