copyWith method

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

Implementation

WebApiModulesPluginsCreditCardCreditCardOrderDepositRequest copyWith({
  enums.WebApiModulesPluginsCreditCardCreditCardOrderDepositRequestPayWithTypes?
  payWith,
  String? orderId,
  double? amountToPay,
  double? feePercent,
  double? feeAmount,
  int? creditCardPinPadId,
  String? dealNumber,
  String? paymentTypeId,
  String? emailFrom,
  String? emailTo,
  String? emailSubject,
  String? emailBody,
  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,
}) {
  return WebApiModulesPluginsCreditCardCreditCardOrderDepositRequest(
    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,
    paymentTypeId: paymentTypeId ?? this.paymentTypeId,
    emailFrom: emailFrom ?? this.emailFrom,
    emailTo: emailTo ?? this.emailTo,
    emailSubject: emailSubject ?? this.emailSubject,
    emailBody: emailBody ?? this.emailBody,
    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,
  );
}