copyWith method
Returns a copy of this Authorization with the specified fields replaced.
Implementation
Authorization copyWith({
String? authorizationCode,
String? bin,
String? last4,
String? expMonth,
String? expYear,
String? channel,
String? cardType,
String? bank,
String? countryCode,
String? brand,
bool? reusable,
String? signature,
String? accountName,
String? mobileMoneyNumber,
}) {
return Authorization(
authorizationCode: authorizationCode ?? this.authorizationCode,
bin: bin ?? this.bin,
last4: last4 ?? this.last4,
expMonth: expMonth ?? this.expMonth,
expYear: expYear ?? this.expYear,
channel: channel ?? this.channel,
cardType: cardType ?? this.cardType,
bank: bank ?? this.bank,
countryCode: countryCode ?? this.countryCode,
brand: brand ?? this.brand,
reusable: reusable ?? this.reusable,
signature: signature ?? this.signature,
accountName: accountName ?? this.accountName,
mobileMoneyNumber: mobileMoneyNumber ?? this.mobileMoneyNumber,
);
}