copyWith method
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,
Создает экземпляр с заданными параметрами
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,
);
}