copyWith method

  1. @override
FinishAuthorizeRequest copyWith({
  1. String? cardData,
  2. String? encryptedPaymentData,
  3. int? amount,
  4. Map<String, String>? data,
  5. String? infoEmail,
  6. String? ip,
  7. int? paymentId,
  8. String? phone,
  9. bool? sendEmail,
  10. Route? route,
  11. Source? source,
  12. String? signToken,
})
override

Создает экземпляр с заданными параметрами

Implementation

@override
FinishAuthorizeRequest copyWith({
  String? cardData,
  String? encryptedPaymentData,
  int? amount,
  Map<String, String>? data,
  String? infoEmail,
  String? ip,
  int? paymentId,
  String? phone,
  bool? sendEmail,
  Route? route,
  Source? source,
  String? signToken,
}) {
  return FinishAuthorizeRequest(
    paymentId: paymentId ?? this.paymentId,
    cardData: cardData ?? this.cardData,
    encryptedPaymentData: encryptedPaymentData ?? this.encryptedPaymentData,
    amount: amount ?? this.amount,
    data: data ?? this.data,
    infoEmail: infoEmail ?? this.infoEmail,
    ip: ip ?? this.ip,
    phone: phone ?? this.phone,
    sendEmail: sendEmail ?? this.sendEmail,
    route: route ?? this.route,
    source: source ?? this.source,
    signToken: signToken ?? this.signToken,
  );
}