copyWithWrapped method

WebApiModulesPluginsCreditCardAccount copyWithWrapped({
  1. Wrapped<String?>? profileId,
  2. Wrapped<String?>? accountId,
  3. Wrapped<String?>? nickname,
  4. Wrapped<WebApiModulesPluginsCreditCardProcessCreditCardPaymentCardTypes?>? cardType,
  5. Wrapped<String?>? expiration,
  6. Wrapped<String?>? last4Digits,
  7. Wrapped<bool?>? cardOnFilePermission,
  8. Wrapped<bool?>? defaultAccount,
  9. Wrapped<String?>? cardholderName,
  10. Wrapped<String?>? address,
  11. Wrapped<String?>? address2,
  12. Wrapped<String?>? city,
  13. Wrapped<String?>? region,
  14. Wrapped<String?>? postalCode,
  15. Wrapped<String?>? country,
  16. Wrapped<String?>? token,
  17. Wrapped<String?>? chargePaymentTypeId,
  18. Wrapped<String?>? chargePaymentType,
  19. Wrapped<WebApiModulesPluginsCreditCardProcessCreditCardCardUsageTypes?>? cardUseType,
  20. Wrapped<String?>? cardUseString,
})

Implementation

WebApiModulesPluginsCreditCardAccount copyWithWrapped({
  Wrapped<String?>? profileId,
  Wrapped<String?>? accountId,
  Wrapped<String?>? nickname,
  Wrapped<
    enums.WebApiModulesPluginsCreditCardProcessCreditCardPaymentCardTypes?
  >?
  cardType,
  Wrapped<String?>? expiration,
  Wrapped<String?>? last4Digits,
  Wrapped<bool?>? cardOnFilePermission,
  Wrapped<bool?>? defaultAccount,
  Wrapped<String?>? cardholderName,
  Wrapped<String?>? address,
  Wrapped<String?>? address2,
  Wrapped<String?>? city,
  Wrapped<String?>? region,
  Wrapped<String?>? postalCode,
  Wrapped<String?>? country,
  Wrapped<String?>? token,
  Wrapped<String?>? chargePaymentTypeId,
  Wrapped<String?>? chargePaymentType,
  Wrapped<
    enums.WebApiModulesPluginsCreditCardProcessCreditCardCardUsageTypes?
  >?
  cardUseType,
  Wrapped<String?>? cardUseString,
}) {
  return WebApiModulesPluginsCreditCardAccount(
    profileId: (profileId != null ? profileId.value : this.profileId),
    accountId: (accountId != null ? accountId.value : this.accountId),
    nickname: (nickname != null ? nickname.value : this.nickname),
    cardType: (cardType != null ? cardType.value : this.cardType),
    expiration: (expiration != null ? expiration.value : this.expiration),
    last4Digits: (last4Digits != null ? last4Digits.value : this.last4Digits),
    cardOnFilePermission: (cardOnFilePermission != null
        ? cardOnFilePermission.value
        : this.cardOnFilePermission),
    defaultAccount: (defaultAccount != null
        ? defaultAccount.value
        : this.defaultAccount),
    cardholderName: (cardholderName != null
        ? cardholderName.value
        : this.cardholderName),
    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),
    country: (country != null ? country.value : this.country),
    token: (token != null ? token.value : this.token),
    chargePaymentTypeId: (chargePaymentTypeId != null
        ? chargePaymentTypeId.value
        : this.chargePaymentTypeId),
    chargePaymentType: (chargePaymentType != null
        ? chargePaymentType.value
        : this.chargePaymentType),
    cardUseType: (cardUseType != null ? cardUseType.value : this.cardUseType),
    cardUseString: (cardUseString != null
        ? cardUseString.value
        : this.cardUseString),
  );
}