copyWith method

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

Implementation

WebApiModulesPluginsCreditCardAccount copyWith({
  String? profileId,
  String? accountId,
  String? nickname,
  enums.WebApiModulesPluginsCreditCardProcessCreditCardPaymentCardTypes?
  cardType,
  String? expiration,
  String? last4Digits,
  bool? cardOnFilePermission,
  bool? defaultAccount,
  String? cardholderName,
  String? address,
  String? address2,
  String? city,
  String? region,
  String? postalCode,
  String? country,
  String? token,
  String? chargePaymentTypeId,
  String? chargePaymentType,
  enums.WebApiModulesPluginsCreditCardProcessCreditCardCardUsageTypes?
  cardUseType,
  String? cardUseString,
}) {
  return WebApiModulesPluginsCreditCardAccount(
    profileId: profileId ?? this.profileId,
    accountId: accountId ?? this.accountId,
    nickname: nickname ?? this.nickname,
    cardType: cardType ?? this.cardType,
    expiration: expiration ?? this.expiration,
    last4Digits: last4Digits ?? this.last4Digits,
    cardOnFilePermission: cardOnFilePermission ?? this.cardOnFilePermission,
    defaultAccount: defaultAccount ?? this.defaultAccount,
    cardholderName: cardholderName ?? this.cardholderName,
    address: address ?? this.address,
    address2: address2 ?? this.address2,
    city: city ?? this.city,
    region: region ?? this.region,
    postalCode: postalCode ?? this.postalCode,
    country: country ?? this.country,
    token: token ?? this.token,
    chargePaymentTypeId: chargePaymentTypeId ?? this.chargePaymentTypeId,
    chargePaymentType: chargePaymentType ?? this.chargePaymentType,
    cardUseType: cardUseType ?? this.cardUseType,
    cardUseString: cardUseString ?? this.cardUseString,
  );
}