copyWithWrapped method

WebApiModulesPluginsCreditCardCreditCardPreAuthorizationRequest copyWithWrapped({
  1. Wrapped<WebApiModulesPluginsCreditCardCreditCardPreAuthorizationRequestPaymentTypes>? paymentType,
  2. Wrapped<String>? orderId,
  3. Wrapped<double>? amountToPay,
  4. Wrapped<int?>? creditCardPinPadId,
  5. Wrapped<String>? dealNumber,
  6. Wrapped<String?>? account,
  7. Wrapped<String?>? expirationDate,
  8. Wrapped<String?>? trackData,
  9. Wrapped<String?>? emailFrom,
  10. Wrapped<String?>? emailTo,
  11. Wrapped<String?>? emailSubject,
  12. Wrapped<String?>? emailBody,
})

Implementation

WebApiModulesPluginsCreditCardCreditCardPreAuthorizationRequest copyWithWrapped(
    {Wrapped<
            enums
                .WebApiModulesPluginsCreditCardCreditCardPreAuthorizationRequestPaymentTypes>?
        paymentType,
    Wrapped<String>? orderId,
    Wrapped<double>? amountToPay,
    Wrapped<int?>? creditCardPinPadId,
    Wrapped<String>? dealNumber,
    Wrapped<String?>? account,
    Wrapped<String?>? expirationDate,
    Wrapped<String?>? trackData,
    Wrapped<String?>? emailFrom,
    Wrapped<String?>? emailTo,
    Wrapped<String?>? emailSubject,
    Wrapped<String?>? emailBody}) {
  return WebApiModulesPluginsCreditCardCreditCardPreAuthorizationRequest(
      paymentType:
          (paymentType != null ? paymentType.value : this.paymentType),
      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),
      account: (account != null ? account.value : this.account),
      expirationDate: (expirationDate != null
          ? expirationDate.value
          : this.expirationDate),
      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));
}