Invoice constructor
const
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 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,
Implementation
const Invoice({
required this.id,
required this.number,
required this.docType,
required this.status,
required this.totals,
this.invoiceDate,
this.dueDate,
this.customerId,
this.statusUrl,
this.statusPassword,
this.einvoiceLevel,
this.metadata = const {},
this.items,
this.paidCents,
this.openCents,
this.overdue,
this.writtenOff,
this.creditNotes,
this.relatedInvoiceId,
this.relatedNumber,
this.language = 'de',
this.brandId,
this.brandName,
this.einvoice,
this.taxScheme,
this.payments,
this.writeOffReasonCode,
this.customer,
this.reverseChargeReason,
this.taxCountry,
this.priceMode,
this.serviceStart,
this.serviceEnd,
this.paymentTermDays,
this.orderReference,
this.source,
this.createdAt,
this.finalizedAt,
this.vatIdProof,
this.vatIdRisk,
});