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,
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.language = 'de',
this.brandId,
this.brandName,
});