copyWithWrapped method

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

Implementation

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