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, double? cashbackAmount, double? tipAmount, String? storedTransactionId, bool isStoredTransaction = false})
const
SaleResponse.fromMap(Map<String, dynamic> map)
factory

Properties

approvedAmount double?
批准金额
finalinherited
card CardInfo?
卡信息
finalinherited
cashbackAmount double?
返现金额
final
emv EmvInfo?
EMV 信息
finalinherited
errorMessage String?
失败时的错误消息
finalinherited
hashCode int
The hash code for this object.
no setterinherited
host HostResponse?
主机响应详情
finalinherited
isApproved bool
交易是否被批准
finalinherited
isStoredTransaction bool
是否为离线 (Store-and-Forward) 交易
final
referenceNumber String?
交易参考号 (来自 HostResponse)
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
signatureData String?
签名数据 (Base64 编码)
finalinherited
storedTransactionId String?
存储交易 ID (用于离线/S&F 交易)
final
tipAmount double?
小费金额
final
tpId String?
triPOS 交易 ID
finalinherited
transactionStatus TransactionStatus
交易状态
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Convert to JSON map
toStoredTransactionRecord() StoredTransactionRecord
Convert to StoredTransactionRecord for display
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited