SaleResponse class

Sale transaction response

Inheritance

Constructors

SaleResponse({bool isApproved = false, TransactionStatus transactionStatus = TransactionStatus.error, double? approvedAmount, HostResponse? host, CardInfo? card, EmvInfo? emv, String? errorMessage, String? signatureData, String? tpId, Map<String, dynamic>? rawResponse, double? cashbackAmount, double? tipAmount, String? referenceNumber, String? storedTransactionId, bool isStoredTransaction = false})
const
SaleResponse.fromMap(Map<String, dynamic> map)
factory

Properties

approvedAmount double?
Approved amount
finalinherited
card CardInfo?
Card information
finalinherited
cashbackAmount double?
Cashback amount
final
emv EmvInfo?
EMV information
finalinherited
errorMessage String?
Error message if failed
finalinherited
hashCode int
The hash code for this object.
no setterinherited
host HostResponse?
Host response details
finalinherited
isApproved bool
Whether the transaction was approved
finalinherited
isStoredTransaction bool
Whether this was an offline (Store-and-Forward) transaction
final
rawResponse Map<String, dynamic>?
Raw response data
finalinherited
referenceNumber String?
Reference number used for the transaction
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signatureData String?
Signature data (base64 encoded)
finalinherited
storedTransactionId String?
Stored transaction ID (for offline/S&F transactions)
final
tipAmount double?
Tip amount
final
tpId String?
triPOS transaction ID
finalinherited
transactionStatus TransactionStatus
Transaction status
finalinherited

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