copyWith method

WebApiModulesPluginsCreditCardCreditCardPreAuthorizationRequest copyWith({
  1. WebApiModulesPluginsCreditCardCreditCardPreAuthorizationRequestPaymentTypes? payWith,
  2. String? orderId,
  3. double? amountToPay,
  4. int? creditCardPinPadId,
  5. String? dealNumber,
  6. String? paymentBy,
  7. String? dealId,
  8. String? customerId,
  9. String? accountId,
  10. String? account,
  11. String? expirationDate,
  12. String? cardholderName,
  13. String? creditCardSource,
  14. bool? saveCreditCard,
  15. bool? defaultAccount,
  16. bool? authorizationOnFile,
  17. String? address,
  18. String? address2,
  19. String? city,
  20. String? region,
  21. String? postalCode,
  22. String? countryId,
  23. String? trackData,
  24. String? emailFrom,
  25. String? emailTo,
  26. String? emailSubject,
  27. String? emailBody,
})

Implementation

WebApiModulesPluginsCreditCardCreditCardPreAuthorizationRequest copyWith(
    {enums.WebApiModulesPluginsCreditCardCreditCardPreAuthorizationRequestPaymentTypes?
        payWith,
    String? orderId,
    double? amountToPay,
    int? creditCardPinPadId,
    String? dealNumber,
    String? paymentBy,
    String? dealId,
    String? customerId,
    String? accountId,
    String? account,
    String? expirationDate,
    String? cardholderName,
    String? creditCardSource,
    bool? saveCreditCard,
    bool? defaultAccount,
    bool? authorizationOnFile,
    String? address,
    String? address2,
    String? city,
    String? region,
    String? postalCode,
    String? countryId,
    String? trackData,
    String? emailFrom,
    String? emailTo,
    String? emailSubject,
    String? emailBody}) {
  return WebApiModulesPluginsCreditCardCreditCardPreAuthorizationRequest(
      payWith: payWith ?? this.payWith,
      orderId: orderId ?? this.orderId,
      amountToPay: amountToPay ?? this.amountToPay,
      creditCardPinPadId: creditCardPinPadId ?? this.creditCardPinPadId,
      dealNumber: dealNumber ?? this.dealNumber,
      paymentBy: paymentBy ?? this.paymentBy,
      dealId: dealId ?? this.dealId,
      customerId: customerId ?? this.customerId,
      accountId: accountId ?? this.accountId,
      account: account ?? this.account,
      expirationDate: expirationDate ?? this.expirationDate,
      cardholderName: cardholderName ?? this.cardholderName,
      creditCardSource: creditCardSource ?? this.creditCardSource,
      saveCreditCard: saveCreditCard ?? this.saveCreditCard,
      defaultAccount: defaultAccount ?? this.defaultAccount,
      authorizationOnFile: authorizationOnFile ?? this.authorizationOnFile,
      address: address ?? this.address,
      address2: address2 ?? this.address2,
      city: city ?? this.city,
      region: region ?? this.region,
      postalCode: postalCode ?? this.postalCode,
      countryId: countryId ?? this.countryId,
      trackData: trackData ?? this.trackData,
      emailFrom: emailFrom ?? this.emailFrom,
      emailTo: emailTo ?? this.emailTo,
      emailSubject: emailSubject ?? this.emailSubject,
      emailBody: emailBody ?? this.emailBody);
}