copyWith method
PurchaseRequest
copyWith({
- String? pan,
- num? amount,
- String? track2Data,
- int? terminalId,
- int? merchantId,
- String? isCardSystemRelatedData,
- String? cardHolderName,
- String? cvV2,
- String? batchId,
- String? merchantReference,
- String? dateExpiration,
- String? refundReason,
- String? requestDateTime,
- int? requestSource,
- String? orderCustomerEmail,
- String? otp,
- String? orderKey,
- String? clientMail,
- int? transactionIdentifierType,
- String? currencyCode,
- int? currencyId,
- String? currencyCodeName,
- String? transactionId,
- int? paymentViewType,
- String? referenceId,
- String? deviceInformation,
- bool? isTokenized,
- String? customerId,
- String? customerTokenId,
- bool? isApplyRequest,
- Map<
String, dynamic> ? applePayPaymentData, - bool? isSamsungPayRequest,
- Map<
String, dynamic> ? samsungPayData, - String? sessionToken,
Implementation
PurchaseRequest copyWith({
String? pan,
num? amount,
String? track2Data,
int? terminalId,
int? merchantId,
String? isCardSystemRelatedData,
String? cardHolderName,
String? cvV2,
String? batchId,
String? merchantReference,
String? dateExpiration,
String? refundReason,
String? requestDateTime,
int? requestSource,
String? orderCustomerEmail,
String? otp,
String? orderKey,
String? clientMail,
int? transactionIdentifierType,
String? currencyCode,
int? currencyId,
String? currencyCodeName,
String? transactionId,
int? paymentViewType,
String? referenceId,
String? deviceInformation,
bool? isTokenized,
String? customerId,
String? customerTokenId,
bool? isApplyRequest,
Map<String, dynamic>? applePayPaymentData,
bool? isSamsungPayRequest,
Map<String, dynamic>? samsungPayData,
String? sessionToken,
}) {
return PurchaseRequest(
pan: pan ?? this.pan,
amount: amount ?? this.amount,
terminalId: terminalId ?? this.terminalId,
merchantId: merchantId ?? this.merchantId,
cardHolderName: cardHolderName ?? this.cardHolderName,
cvV2: cvV2 ?? this.cvV2,
merchantReference: merchantReference ?? this.merchantReference,
dateExpiration: dateExpiration ?? this.dateExpiration,
refundReason: refundReason ?? this.refundReason,
requestDateTime: requestDateTime ?? this.requestDateTime,
requestSource: requestSource ?? this.requestSource,
orderCustomerEmail: orderCustomerEmail ?? this.orderCustomerEmail,
otp: otp ?? this.otp,
orderKey: orderKey ?? this.orderKey,
clientMail: clientMail ?? this.clientMail,
transactionIdentifierType:
transactionIdentifierType ?? this.transactionIdentifierType,
currencyCode: currencyCode ?? this.currencyCode,
currencyId: currencyId ?? this.currencyId,
currencyCodeName: currencyCodeName ?? this.currencyCodeName,
transactionId: transactionId ?? this.transactionId,
paymentViewType: paymentViewType ?? this.paymentViewType,
referenceId: referenceId ?? this.referenceId,
deviceInformation: deviceInformation ?? this.deviceInformation,
isTokenized: isTokenized ?? this.isTokenized,
customerId: customerId ?? this.customerId,
customerTokenId: customerTokenId ?? this.customerTokenId,
isApplyRequest: isApplyRequest ?? this.isApplyRequest,
applePayPaymentData: applePayPaymentData ?? this.applePayPaymentData,
isSamsungPayRequest: isSamsungPayRequest ?? this.isSamsungPayRequest,
samsungPayData: samsungPayData ?? this.samsungPayData,
sessionToken: sessionToken ?? this.sessionToken,
);
}