ReceiptCreatedEventData class

Nutzlast von receipt.created (Beleg-Webhooks, seit 11.21): der Beleg wie listReceipts mit view: full (dieselbe Darstellung, auch Fremdgutscheine mit Nummer, eigene maskiert).

receipt bleibt das rohe Belegobjekt vom Draht: diese Bibliothek laeuft ohne Flutter (Server eines Shops), der Belegtyp des Pakets nicht. In einer App liest KasseneckReceipt.fromMetadata(data.receipt, const {}) ihn wie einen Beleg aus listFullReceipts ohne Kopf.

Ist der Beleg fuer eine Zustellung zu gross, fehlen seine Positionen, truncated ist true und hint sagt, ihn mit getReceipt zu holen.

Implementers

Constructors

ReceiptCreatedEventData({required Map<String, dynamic> receipt, bool truncated = false, String? hint})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
hint → String?
Nur bei einer gekuerzten Zustellung: Hinweis (deutsch).
final
receipt → Map<String, dynamic>
Das Belegobjekt (receiptId, items, vouchers, payments …).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
truncated → bool
true nur bei einer gekuerzten Zustellung (die Positionen fehlen).
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