copyWith method

  1. @override
RegisterRequest copyWith({
  1. bool? preAuth,
  2. String? orderNumber,
  3. int? amount,
  4. int? currency,
  5. String? returnUrl,
  6. String? failUrl,
  7. String? dynamicCallbackUrl,
  8. String? description,
  9. String? language,
  10. int? feeInput,
  11. String? pageView,
  12. String? clientId,
  13. String? merchantLogin,
  14. Map<String, dynamic>? jsonParams,
  15. int? sessionTimeoutSecs,
  16. String? expirationDate,
  17. String? bindingId,
  18. Features? features,
  19. String? email,
  20. int? phone,
  21. AppToApp? app2app,
  22. BackToApp? back2app,
  23. String? autocompletionDate,
  24. BillingPayerData? billingPayerData,
})

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

Implementation

@override
RegisterRequest copyWith({
  bool? preAuth,
  String? orderNumber,
  int? amount,
  int? currency,
  String? returnUrl,
  String? failUrl,
  String? dynamicCallbackUrl,
  String? description,
  String? language,
  int? feeInput,
  String? pageView,
  String? clientId,
  String? merchantLogin,
  Map<String, dynamic>? jsonParams,
  int? sessionTimeoutSecs,
  String? expirationDate,
  String? bindingId,
  Features? features,
  String? email,
  int? phone,
  AppToApp? app2app,
  BackToApp? back2app,
  String? autocompletionDate,
  BillingPayerData? billingPayerData,
}) {
  return RegisterRequest(
    preAuth: preAuth ?? this.preAuth,
    orderNumber: orderNumber ?? this.orderNumber,
    amount: amount ?? this.amount,
    currency: currency ?? this.currency,
    returnUrl: returnUrl ?? this.returnUrl,
    failUrl: failUrl ?? this.failUrl,
    dynamicCallbackUrl: dynamicCallbackUrl ?? this.dynamicCallbackUrl,
    description: description ?? this.description,
    language: language ?? this.language,
    feeInput: feeInput ?? this.feeInput,
    pageView: pageView ?? this.pageView,
    clientId: clientId ?? this.clientId,
    merchantLogin: merchantLogin ?? this.merchantLogin,
    jsonParams: jsonParams ?? this.jsonParams,
    sessionTimeoutSecs: sessionTimeoutSecs ?? this.sessionTimeoutSecs,
    expirationDate: expirationDate ?? this.expirationDate,
    bindingId: bindingId ?? this.bindingId,
    features: features ?? this.features,
    email: email ?? this.email,
    phone: phone ?? this.phone,
    app2app: app2app ?? this.app2app,
    back2app: back2app ?? this.back2app,
    autocompletionDate: autocompletionDate ?? this.autocompletionDate,
    billingPayerData: billingPayerData ?? this.billingPayerData,
  );
}