Invoice constructor

Invoice({
  1. int? amountDueCents,
  2. int? amountPaidCents,
  3. String? createdAt,
  4. String? currency,
  5. String? customerEmail,
  6. String? id,
  7. List<InvoiceLine> lines = const [],
  8. String? number,
  9. String? paymentRef,
  10. String? status,
  11. int? subtotalCents,
  12. String? userId,
})

Returns a new Invoice instance.

Implementation

Invoice({
  this.amountDueCents,
  this.amountPaidCents,
  this.createdAt,
  this.currency,
  this.customerEmail,
  this.id,
  this.lines = const [],
  this.number,
  this.paymentRef,
  this.status,
  this.subtotalCents,
  this.userId,
});