AllowanceCharge constructor

AllowanceCharge({
  1. required String reason,
  2. required double amount,
  3. required TaxDetails tax,
})

Constructs an AllowanceCharge instance with the specified reason, amount, and tax.

reason is a string representing the reason for the allowance or charge (e.g., discount). amount is a numeric value representing the amount of the allowance or charge. tax is a TaxDetails instance that contains tax-related information.

Implementation

AllowanceCharge(
    {required this.reason, required this.amount, required this.tax});