TaxDetails class

A class representing the tax details associated with an invoice.

The TaxDetails class holds information about the tax calculation for the invoice, including the tax amount, percentage, taxable amount, and the associated tax category and tax scheme.

Constructors

TaxDetails({required String amount, required String percent, required String currency, required String taxableAmount, TaxCategoryCode? code, TaxSchemeCode? taxSchemeCode})
Constructor to initialize the TaxDetails object with required tax information.

Properties

amount String
The tax amount calculated for the invoice (in the specified currency).
final
code TaxCategoryCode?
The tax category code associated with the tax (e.g., standard, reduced, exempt).
final
currency String
The currency in which the tax amount is denominated (e.g., SAR for Saudi Riyals).
final
hashCode int
The hash code for this object.
no setterinherited
percent String
The tax percentage applied to the taxable amount.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taxableAmount String
The taxable amount on which the tax is applied.
final
taxSchemeCode TaxSchemeCode?
The tax scheme code that specifies the type of tax applied (e.g., VAT).
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
Converts the tax details to a JSON format.
toString() String
A string representation of this object.
inherited
toXml(XmlBuilder builder) → void
Converts the tax details to XML format.

Operators

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