KeckPaymentInput class
Eine Zahlung, wie der Aufrufer sie an sellReceipt/sell/
cancel schickt – Zwilling von ReceiptPaymentInput. id und
changeCents vergibt der Server.
- method: jede Zahlungsart ausser KeckPaymentMethod.mixed.
- amountCents: ganze Cent, am Verkauf > 0, am Storno < 0.
- tenderedCents: nur bei Barzahlung am Verkauf, hoechstens an einer Zahlung.
- provider/providerPaymentId/providerData: bei Karten Pflicht
(providerPaymentId ausser bei
custom), beionlineoptional, sonst nicht erlaubt; am Storno beschreiben sie die Erstattung und sind optional. - refundOf: nur am Storno.
- tipCents: Trinkgeld dieser Zahlung, ganze Cent > 0, Teil von
amountCents; nur am Verkauf, nie neben
tip.
Hier geprueft wird nur die Form (paymentsError); Summe, Anbieter-Pflicht und Trinkgeld prueft der Server, der den Zahlbetrag kennt.
Constructors
-
KeckPaymentInput({required KeckPaymentMethod method, required int amountCents, int? tenderedCents, CreditCardProvider? provider, String? providerPaymentId, Map<
String, dynamic> ? providerData, String? refundOf, int? tipCents}) -
const
Properties
- amountCents → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → KeckPaymentMethod
-
final
- provider → CreditCardProvider?
-
final
-
providerData
→ Map<
String, dynamic> ? -
final
- providerPaymentId → String?
-
final
- refundOf → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tenderedCents → int?
-
final
- tipCents → int?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Nutzlast; nur gesetzte Felder, der Enum-Name ist das Drahtformat.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited