copyWith method
TransactionDetails
copyWith({
- String? orderId,
- String? terminalId,
- String? transactionId,
- String? merchantId,
- OrderType? type,
- String? method,
- String? amount,
- Currency? currency,
- String? timestamp,
- String? truncatedPan,
- String? cardLabel,
- String? posEntryMode,
- String? issuerApplication,
- String? terminalVerificationResult,
- String? aid,
- String? customerResponseCode,
- String? cvmMethod,
- String? authMode,
Implementation
TransactionDetails copyWith({
String? orderId,
String? terminalId,
String? transactionId,
String? merchantId,
OrderType? type,
String? method,
String? amount,
Currency? currency,
String? timestamp,
String? truncatedPan,
String? cardLabel,
String? posEntryMode,
String? issuerApplication,
String? terminalVerificationResult,
String? aid,
String? customerResponseCode,
String? cvmMethod,
String? authMode,
}) {
return TransactionDetails(
orderId: orderId ?? this.orderId,
terminalId: terminalId ?? this.terminalId,
transactionId: transactionId ?? this.transactionId,
merchantId: merchantId ?? this.merchantId,
type: type ?? this.type,
method: method ?? this.method,
amount: amount ?? this.amount,
currency: currency ?? this.currency,
timestamp: timestamp ?? this.timestamp,
truncatedPan: truncatedPan ?? this.truncatedPan,
cardLabel: cardLabel ?? this.cardLabel,
posEntryMode: posEntryMode ?? this.posEntryMode,
terminalVerificationResult:
terminalVerificationResult ?? this.terminalVerificationResult,
aid: aid ?? this.aid,
customerResponseCode: customerResponseCode ?? this.customerResponseCode,
);
}