RegisterRequest constructor
RegisterRequest({
- required String orderNumber,
- required int amount,
- required String returnUrl,
- bool? preAuth = false,
- int? currency,
- 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,
Запрос регистрации заказа
Запрос на регистрацию заказа с предавторизацией, выполняется посредством передачи параметра preAuth
.
Implementation
RegisterRequest({
required this.orderNumber,
required this.amount,
required this.returnUrl,
this.preAuth = false,
this.currency,
this.failUrl,
this.dynamicCallbackUrl,
this.description,
this.language,
this.feeInput,
this.pageView,
this.clientId,
this.merchantLogin,
Map<String, dynamic>? jsonParams,
this.sessionTimeoutSecs,
this.expirationDate,
this.bindingId,
this.features,
this.email,
this.phone,
this.app2app,
this.back2app,
this.autocompletionDate,
this.billingPayerData,
}) : jsonParams = jsonParams ?? <String, dynamic>{} {
final AppToApp? _app2app = app2app;
if (_app2app != null) {
this.jsonParams.addAll(_app2app.toJson());
}
final BackToApp? _back2app = back2app;
if (_back2app != null) {
this.jsonParams.addAll(_back2app.toJson());
}
}