copyWith method
WebApiModulesPluginsCreditCardAccount
copyWith({
- String? profileId,
- String? accountId,
- String? nickname,
- 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,
- WebApiModulesPluginsCreditCardProcessCreditCardCardUsageTypes? cardUseType,
- 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,
);
}