AllowanceCharge class

Represents an allowance or charge, typically used in tax-related transactions.

This class models an allowance or charge element, which is used to represent discounts or additional charges in financial transactions, particularly in the context of tax invoices.

It includes the following properties:

  • reason: The reason for the allowance or charge (e.g., discount).
  • amount: The amount of the allowance or charge.
  • tax: A TaxDetails object that provides tax information related to the allowance or charge.

Constructors

AllowanceCharge({required String reason, required double amount, required TaxDetails tax})
Constructs an AllowanceCharge instance with the specified reason, amount, and tax.

Properties

amount double
The amount of the allowance or charge.
final
hashCode int
The hash code for this object.
no setterinherited
reason String
The reason for the allowance or charge (e.g., discount).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tax TaxDetails
The tax details related to this allowance or charge.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toXml(XmlBuilder builder) → void
Converts the AllowanceCharge instance to an XML representation using the XmlBuilder.

Operators

operator ==(Object other) bool
The equality operator.
inherited