copyWithWrapped method
WebApiModulesPluginsCreditCardCreditCardPreAuthorizationRequest
copyWithWrapped({
- Wrapped<
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,
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));
}