Skip to content

typedoc-vitepress-theme-example / billing / BillingReceiptService

BillingReceiptService

Service for generating billing receipts.

Constructors

new BillingReceiptService()

ts
new BillingReceiptService(): BillingReceiptService

Returns

BillingReceiptService

Properties

receipts

ts
private receipts: BillingReceipt[] = [];

Methods

generateReceipt()

ts
generateReceipt(transaction): BillingReceipt

Generate a billing receipt for a transaction.

Parameters

transaction: BillingTransaction

The billing transaction for which to generate a receipt.

Returns

BillingReceipt

The generated billing receipt.


getAllReceipts()

ts
getAllReceipts(): BillingReceipt[]

Get all billing receipts.

Returns

BillingReceipt[]

An array of all billing receipts.