SumupCheckoutResponse class

Ergebnis einer SumUp-Kartenzahlung, wie es an der Zahlung des Belegs (providerData) gespeichert und auf Bon und Vorschau gezeigt wird.

Reines Datenmodell: Das SumUp-Plugin bindet die App selbst ein und übersetzt dessen Antwort mit dem Konstruktor hierher.

Constructors

SumupCheckoutResponse({required bool success, String? transactionCode, double? amount, String? currency, double? vatAmount, double? tipAmount, String? paymentType, String? entryMode, int? installments, String? cardType, String? cardLastDigits, String? foreignTransactionId, String? merchantCode})
SumupCheckoutResponse.fromMap(Map<String, dynamic> response)
Liest jede Form, die das Plugin oder ein gespeicherter Beleg liefert: Zahlen als Zahl oder Zeichenkette, leere Zeichenketten als null (iOS meldet fehlende Felder als ""). Wirft nie; fehlt success, gilt kein Erfolg.
factory

Properties

amount → double?
final
cardLastDigits → String?
final
cardType → String?
final
currency → String?
final
entryMode → String?
final
foreignTransactionId → String?
Eigene Kennung der Zahlung (SumUp foreignTransactionId), mit der sie sich bei SumUp wiederfinden lässt; nur gesetzt, wenn die Kasse eine mitgab.
final
hashCode → int
The hash code for this object.
no setterinherited
installments → int?
final
merchantCode → String?
Händlernummer des SumUp-Kontos, auf das gebucht wurde.
final
paymentType → String?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
success → bool
final
tipAmount → double?
final
transactionCode → String?
final
vatAmount → double?
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