copyWithWrapped method

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

Implementation

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