copyWith method

PurchaseRequest copyWith({
  1. String? pan,
  2. num? amount,
  3. String? track2Data,
  4. int? terminalId,
  5. int? merchantId,
  6. String? isCardSystemRelatedData,
  7. String? cardHolderName,
  8. String? cvV2,
  9. String? batchId,
  10. String? merchantReference,
  11. String? dateExpiration,
  12. String? refundReason,
  13. String? requestDateTime,
  14. int? requestSource,
  15. String? orderCustomerEmail,
  16. String? otp,
  17. String? orderKey,
  18. String? clientMail,
  19. int? transactionIdentifierType,
  20. String? currencyCode,
  21. int? currencyId,
  22. String? currencyCodeName,
  23. String? transactionId,
  24. int? paymentViewType,
  25. String? referenceId,
  26. String? deviceInformation,
  27. bool? isTokenized,
  28. String? customerId,
  29. String? customerTokenId,
  30. bool? isApplyRequest,
  31. Map<String, dynamic>? applePayPaymentData,
  32. bool? isSamsungPayRequest,
  33. Map<String, dynamic>? samsungPayData,
  34. 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,
  );
}