copyWith method

PurchaseData copyWith({
  1. String? transactionNo,
  2. String? approvalCode,
  3. String? actionCode,
  4. String? message,
  5. String? authCode,
  6. String? transactionId,
  7. bool? signatureRequired,
  8. String? mwActionCode,
  9. String? mwMessage,
  10. String? threeDSecureUrl,
  11. HostResponseData? hostResponseData,
  12. int? terminalId,
  13. String? transactionDate,
  14. String? gatewayTransactionReference,
  15. String? merchantName,
})

Implementation

PurchaseData copyWith({
  String? transactionNo,
  String? approvalCode,
  String? actionCode,
  String? message,
  String? authCode,
  String? transactionId,
  bool? signatureRequired,
  String? mwActionCode,
  String? mwMessage,
  String? threeDSecureUrl,
  HostResponseData? hostResponseData,
  int? terminalId,
  String? transactionDate,
  String? gatewayTransactionReference,
  String? merchantName,
}) {
  return PurchaseData(
    terminalId: terminalId ?? this.terminalId,
    message: message ?? this.message,
    transactionId: transactionId ?? this.transactionId,
    hostResponseData: hostResponseData ?? this.hostResponseData,
    isOtpRequired: isOtpRequired,
    transactionTypeId: transactionTypeId,
    transactionTypeDisplayName: transactionTypeDisplayName,
    merchantId: merchantId,
    currency: currency,
    amount: amount,
    currencyId: currencyId,
    customerId: customerId,
    customerTokenId: customerTokenId,
    gatewayTransactionReference: gatewayTransactionReference,
  );
}