Invoice constructor

const Invoice({
  1. required String id,
  2. required String number,
  3. required String docType,
  4. required String status,
  5. required InvoiceTotals totals,
  6. String? invoiceDate,
  7. String? dueDate,
  8. String? customerId,
  9. String? statusUrl,
  10. String? statusPassword,
  11. String? einvoiceLevel,
  12. Map<String, String> metadata = const {},
  13. List<InvoiceItem>? items,
  14. int? paidCents,
  15. int? openCents,
  16. bool? overdue,
  17. bool? writtenOff,
  18. List<CreditNoteSummary>? creditNotes,
  19. String? relatedInvoiceId,
  20. String language = 'de',
  21. String? brandId,
  22. 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,
});