KeckTipRecipient class

Ein Trinkgeld-Empfänger: ein Kassen-Benutzer und sein Anteil.

registerUserId ist die ID unter users/{uid}/register_users. Ob der Anteil am Ende Umsatz ist (Inhaber) oder durchlaufender Posten (Mitarbeiter), entscheidet das Backend anhand des inhaber-Flags dieses Benutzers — nicht der Aufrufer. Deshalb gibt es hier keinen Schalter dafür.

Constructors

KeckTipRecipient({required String registerUserId, required int cents})
const
KeckTipRecipient.euro({required String registerUserId, required double amount})
Komfort-Konstruktor mit Anteil in Euro (einmalige Rundung auf Cent).
factory

Properties

cents int
Anteil in Cent (> 0).
final
hashCode int
The hash code for this object.
no setterinherited
registerUserId String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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