copyWith method

TransactionDetails copyWith({
  1. String? orderId,
  2. String? terminalId,
  3. String? transactionId,
  4. String? merchantId,
  5. OrderType? type,
  6. String? method,
  7. String? amount,
  8. Currency? currency,
  9. String? timestamp,
  10. String? truncatedPan,
  11. String? cardLabel,
  12. String? posEntryMode,
  13. String? issuerApplication,
  14. String? terminalVerificationResult,
  15. String? aid,
  16. String? customerResponseCode,
  17. String? cvmMethod,
  18. 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,
  );
}