ReceiptSummary class

Ein Beleg in der Liste — eine Zusammenfassung, kein vollstaendiger Beleg. Fuer Nachdruck oder Storno gehoert der Beleg ueber RegisterReceiptClient.get einzeln geholt.

Constructors

ReceiptSummary({required String receiptId, required String receiptType, required String timeStamp, required int totalCents, required KeckPaymentMethod paymentMethod, required bool signatureOk, required List<({String name, int quantity})> items, CancellationState? cancellationState, int? counter, ReceiptOperator? operator, String? cancellationOfReceiptId, String? cancellationReason, String? zeroKind, List<KeckPayment>? payments})
const
ReceiptSummary.fromJson(Map<String, dynamic> json)
factory

Properties

cancellationOfReceiptId → String?
Nur am Storno-Beleg: das Original.
final
cancellationReason → String?
final
cancellationState → CancellationState?
null, wenn die Liste den Stand nicht nennt (der Server laesst ihn in manchen Listen weg); das wird nie zu CancellationState.none.
final
counter → int?
Fortlaufender Belegzaehler der Kasse; fehlt bei Alt-Belegen.
final
hashCode → int
The hash code for this object.
no setterinherited
isCancellation → bool
no setter
isSale → bool
no setter
items → List<({String name, int quantity})>
Positionen kurz (Name, Menge) — nur zur Anzeige in der Liste.
final
operator → ReceiptOperator?
final
paymentMethod → KeckPaymentMethod
Einzel-Zahlungsart des Belegs; mixed bei mehreren Zahlarten. Ein unbekannter kuenftiger Wert gilt als Barzahlung.
final
payments → List<KeckPayment>?
Zahlungsliste, nur bei Belegen, die eine tragen. Die Liste liefert nur die oeffentlichen Felder (id, method, amountCents, provider, tenderedCents, changeCents, refundOf, tipCents) -- Anbieter-Interna bleiben im Backend.
final
receiptId → String
final
receiptType → String
Roher Wert des Backends (standard, cancellation, zero, …).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signatureOk → bool
Wurde der Beleg mit funktionierender Signatureinheit ausgestellt?
final
timeStamp → String
Roher Belegzeitstempel (Wiener Wanduhrzeit ohne Offset).
final
totalCents → int
Belegsumme in ganzen Cent. Das Backend liefert Euro; hier wird einmal gerundet, damit sich der Gleitkommafehler nicht bis in die Tagessumme fortpflanzt.
final
zeroKind → String?
Nur am Nullbeleg: Anlass (monthly, annual, outage_end, final, …).
final

Methods

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

Operators

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