copyWith method
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,
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,
);
}