-
Notifications
You must be signed in to change notification settings - Fork 3
BillingModule.Class.BillingReceiptService
tgreyuk edited this page Apr 25, 2024
·
1 revision
github-wiki-example / BillingModule / BillingReceiptService
Service for generating billing receipts. Provides functionality to generate and retrieve receipts for transactions.
new BillingReceiptService():
BillingReceiptService
Property | Modifier | Type | Default value | Description |
---|---|---|---|---|
receipts |
private |
BillingReceipt [] |
[] |
Stores all receipts generated for transactions. |
generateReceipt(
transaction
):BillingReceipt
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.
billing.ts:174
getAllReceipts():
BillingReceipt
[]
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.
billing.ts:189