InvoiceItemInput class

Constructors

InvoiceItemInput({required String description, required num quantity, required num unitPriceCents, required int vatRate, String? subtitle, String? unit, num? discountPct})
const
InvoiceItemInput.fromJson(Map<String, dynamic> j)
factory

Properties

description String
final
discountPct num?
Zeilenrabatt in Prozent, höchstens zwei Nachkommastellen.
final
hashCode int
The hash code for this object.
no setterinherited
quantity num
Höchstens drei Nachkommastellen.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtitle String?
final
unit String?
Schlüssel aus invoiceUnits (piece, hour, …); ohne Angabe piece. Als String, damit ein unbekannter Wert als validation mit Feldpfad vom Server zurückkommt statt hier still zu verschwinden.
final
unitPriceCents num
Einzelpreis in ganzen Cent im priceMode der Rechnung. Als num, damit ein fehlerhafter Wert unverändert beim Server ankommt und dort als validation mit Feldpfad zurückkommt — nicht still gerundet.
final
vatRate int
0, 10, 13 oder 20.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

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