billing.Class.BillingReceiptService - typedoc2md/typedoc-plugin-markdown-examples GitHub Wiki
github-wiki-example / billing / BillingReceiptService
Class: BillingReceiptService
Defined in: billing.ts:163
Service for generating billing receipts. Provides functionality to generate and retrieve receipts for transactions.
Constructors
Constructor
new BillingReceiptService():
BillingReceiptService
Returns
BillingReceiptService
Methods
generateReceipt()
generateReceipt(
transaction
):BillingReceipt
Defined in: billing.ts:173
Generates a billing receipt for a transaction and stores it. Each receipt includes a unique ID and timestamp, essential for record-keeping and customer service.
Parameters
Parameter | Type | Description |
---|---|---|
transaction |
BillingTransaction |
The billing transaction for which to generate a receipt. |
Returns
The generated billing receipt.
getAllReceipts()
getAllReceipts():
BillingReceipt
[]
Defined in: billing.ts:188
Retrieves all the billing receipts that have been generated. Useful for providing customers with copies of their receipts or for internal financial tracking.
Returns
An array of all billing receipts.