copyWithWrapped method
WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateAccountRequest
copyWithWrapped({
- Wrapped<
String?> ? accountId, - Wrapped<
String?> ? profile, - Wrapped<
bool?> ? isDefaultAccount, - Wrapped<
bool?> ? profileUpdate, - Wrapped<
bool?> ? cardOnFilePermission, - Wrapped<
bool?> ? accountUpdaterOptOut, - Wrapped<
String?> ? accountType, - Wrapped<
String?> ? account, - Wrapped<
String?> ? bankAba, - Wrapped<
String?> ? expiry, - Wrapped<
String?> ? name, - Wrapped<
String?> ? address, - Wrapped<
String?> ? address2, - Wrapped<
String?> ? city, - Wrapped<
String?> ? region, - Wrapped<
String?> ? countryId, - Wrapped<
String?> ? phone, - Wrapped<
String?> ? postalCode, - Wrapped<
String?> ? company, - Wrapped<
String?> ? email,
Implementation
WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateAccountRequest
copyWithWrapped(
{Wrapped<String?>? accountId,
Wrapped<String?>? profile,
Wrapped<bool?>? isDefaultAccount,
Wrapped<bool?>? profileUpdate,
Wrapped<bool?>? cardOnFilePermission,
Wrapped<bool?>? accountUpdaterOptOut,
Wrapped<String?>? accountType,
Wrapped<String?>? account,
Wrapped<String?>? bankAba,
Wrapped<String?>? expiry,
Wrapped<String?>? name,
Wrapped<String?>? address,
Wrapped<String?>? address2,
Wrapped<String?>? city,
Wrapped<String?>? region,
Wrapped<String?>? countryId,
Wrapped<String?>? phone,
Wrapped<String?>? postalCode,
Wrapped<String?>? company,
Wrapped<String?>? email}) {
return WebApiModulesPluginsCreditCardCreditCardPluginCreateOrUpdateAccountRequest(
accountId: (accountId != null ? accountId.value : this.accountId),
profile: (profile != null ? profile.value : this.profile),
isDefaultAccount: (isDefaultAccount != null
? isDefaultAccount.value
: this.isDefaultAccount),
profileUpdate:
(profileUpdate != null ? profileUpdate.value : this.profileUpdate),
cardOnFilePermission: (cardOnFilePermission != null
? cardOnFilePermission.value
: this.cardOnFilePermission),
accountUpdaterOptOut: (accountUpdaterOptOut != null
? accountUpdaterOptOut.value
: this.accountUpdaterOptOut),
accountType:
(accountType != null ? accountType.value : this.accountType),
account: (account != null ? account.value : this.account),
bankAba: (bankAba != null ? bankAba.value : this.bankAba),
expiry: (expiry != null ? expiry.value : this.expiry),
name: (name != null ? name.value : this.name),
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),
countryId: (countryId != null ? countryId.value : this.countryId),
phone: (phone != null ? phone.value : this.phone),
postalCode: (postalCode != null ? postalCode.value : this.postalCode),
company: (company != null ? company.value : this.company),
email: (email != null ? email.value : this.email));
}