Invoice class

Eine Rechnung oder Gutschrift. Die Felder unter „Detail" liefert nur getInvoice; in Listen und Ausstell-Antworten sind sie null.

Constructors

Invoice({required String id, required String number, required String docType, required String status, required InvoiceTotals totals, String? invoiceDate, String? dueDate, String? customerId, String? statusUrl, String? statusPassword, String? einvoiceLevel, Map<String, String> metadata = const {}, List<InvoiceItem>? items, int? paidCents, int? openCents, bool? overdue, bool? writtenOff, List<CreditNoteSummary>? creditNotes, String? relatedInvoiceId, String? relatedNumber, String language = 'de', String? brandId, String? brandName, EInvoiceStatus? einvoice, String? taxScheme, List<InvoiceDetailPayment>? payments, String? writeOffReasonCode, InvoiceRecipient? customer, String? reverseChargeReason, String? taxCountry, String? priceMode, String? serviceStart, String? serviceEnd, int? paymentTermDays, String? orderReference, String? source, String? createdAt, String? finalizedAt, InvoiceVatIdProof? vatIdProof, InvoiceVatIdRisk? vatIdRisk})
const
Invoice.fromJson(Map<String, dynamic> j)
factory

Properties

brandId → String?
Die eingefrorene Marke; null bei der Ersatzmarke ohne eigene Einrichtung.
final
brandName → String?
final
createdAt → String?
final
creditNotes → List<CreditNoteSummary>?
final
customer → InvoiceRecipient?
Der Empfänger auf der Rechnung.
final
customerId → String?
final
docType → String
invoice oder credit_note (docTypes).
final
dueDate → String?
final
einvoice → EInvoiceStatus?
Wie weit die Rechnung als E-Rechnung taugt, samt der fehlenden Angaben (einvoiceMissingCodes); einvoiceLevel ist davon die Stufe.
final
einvoiceLevel → String?
final
finalizedAt → String?
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
invoiceDate → String?
final
items → List<InvoiceItem>?
final
language → String
Beim Ausstellen eingefroren; ältere Rechnungen de.
final
metadata → Map<String, String>
final
number → String
final
openCents → int?
final
orderReference → String?
final
overdue → bool?
final
paidCents → int?
final
payments → List<InvoiceDetailPayment>?
Die gebuchten Zahlungen.
final
paymentTermDays → int?
final
priceMode → String?
net oder gross (priceModes).
final
relatedInvoiceId → String?
Bei einer Gutschrift: die Rechnung, auf die sie sich bezieht.
final
relatedNumber → String?
final
reverseChargeReason → String?
Nur bei domesticReverseCharge (reverseChargeReasons).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
serviceEnd → String?
final
serviceStart → String?
final
source → String?
Woher die Rechnung kam (z. B. api).
final
status → String
final
statusPassword → String?
final
statusUrl → String?
final
taxCountry → String?
Land, dessen Steuer die Rechnung trägt; Altbestand AT.
final
taxScheme → String?
Der Steuerfall (taxSchemes).
final
totals → InvoiceTotals
final
vatIdProof → InvoiceVatIdProof?
Beim Festschreiben eingefrorener UID-Nachweis des Kunden; sonst null.
final
vatIdRisk → InvoiceVatIdRisk?
Ohne Ergebnis der UID-Pruefung mit IssueInvoiceRequest.acceptVatIdRisk ausgestellt; sonst null.
final
writeOffReasonCode → String?
Warum abgeschrieben wurde (writeOffReasonCodes); null, solange writtenOff nicht true ist.
final
writtenOff → bool?
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

Operators

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

Constants

brandFields → const Set<String>
Die Felder von brand und related.
detailFields → const Set<String>
Die Felder der Detailsicht (getInvoice).
fields → const Set<String>
Die Felder in Listen und Ausstell-Antworten.
relatedFields → const Set<String>