copyWith method

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

Implementation

WebApiModulesPluginsCreditCardCreditCardPreAuthorizationRequest copyWith({
  enums.WebApiModulesPluginsCreditCardCreditCardPreAuthorizationRequestPaymentTypes?
  payWith,
  String? orderId,
  double? amountToPay,
  double? feePercent,
  double? feeAmount,
  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,
    feePercent: feePercent ?? this.feePercent,
    feeAmount: feeAmount ?? this.feeAmount,
    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,
  );
}