typedoc-vitepress-theme-example / billing / BillingReceiptService
BillingReceiptService
Service for generating billing receipts.
Constructors
new BillingReceiptService()
ts
new BillingReceiptService(): BillingReceiptService
Returns
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
The generated billing receipt.
getAllReceipts()
ts
getAllReceipts(): BillingReceipt[]
Get all billing receipts.
Returns
An array of all billing receipts.