-
Notifications
You must be signed in to change notification settings - Fork 3
billing.Class.BillingReceiptService
github-wiki-example / billing / BillingReceiptService
Defined in: billing.ts:163
Service for generating billing receipts. Provides functionality to generate and retrieve receipts for transactions.
new BillingReceiptService():
BillingReceiptService
BillingReceiptService
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.
Parameter | Type | Description |
---|---|---|
transaction |
BillingTransaction |
The billing transaction for which to generate a receipt. |
The generated billing receipt.
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.
An array of all billing receipts.