SimplifiedDebitNote class
A class representing a simplified debit note used in transactions.
The SimplifiedDebitNote class holds the necessary data for a debit note, including information about the supplier, customer, tax, items, and payment methods. It can also generate an XML representation of the debit note that can be used for reporting or invoicing.
Constructors
-
SimplifiedDebitNote.new({required int icv, required String id, required String uuid, required DateTime issueDate, required DateTime issueTime, required String currency, required IndividualParty customer, required List<
InvoiceLine> lines, required TaxDetails tax, required LegalMonetaryTotal monetaryTotal, required String pih, required BillingReference billingReference, required PaymentMeans paymentMeans, Delivery? delivery, AllowanceCharge? allowanceCharge}) - Constructor to initialize the SimplifiedDebitNote object with necessary values.
Properties
- allowanceCharge → AllowanceCharge?
-
Allowance or charge details, if applicable to the debit note.
final
- billingReference → BillingReference
-
The billing reference details associated with the debit note.
final
- currency → String
-
Currency used in the debit note (e.g., SAR for Saudi Riyals).
final
- customer → IndividualParty
-
The customer to whom the debit note is addressed.
final
- delivery → Delivery?
-
Delivery information, if applicable to the debit note.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- icv → int
-
Internal control number (ICV) for the debit note.
final
- id → String
-
Unique identifier for the debit note.
final
- issueDate → DateTime
-
The date the debit note was issued.
final
- issueTime → DateTime
-
The time the debit note was issued.
final
-
lines
→ List<
InvoiceLine> -
The list of items (invoice lines) associated with the debit note.
final
- monetaryTotal → LegalMonetaryTotal
-
The legal monetary total of the debit note (e.g., subtotal, taxes, total).
final
- paymentMeans → PaymentMeans
-
Payment means details specifying how the debit note will be paid.
final
- pih → String
-
The PIH (Payment Instructions Header) or additional reference for the debit note.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- supplier → MyBusinessInfo?
-
The supplier information, fetched from local storage.
no setter
- tax → TaxDetails
-
The tax details related to the debit note.
final
- uuid → String
-
Universal Unique Identifier (UUID) for the debit note.
final
Methods
-
generateAndSaveXml(
String fileName) → Future< void> - Generates the XML file for the debit note and saves it to a file.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toXml(
) → String - Generates the XML representation of the debit note in a format required for reporting.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited