RegisterRequest constructor

RegisterRequest({
  1. required String orderNumber,
  2. required int amount,
  3. required String returnUrl,
  4. bool? preAuth = false,
  5. int? currency,
  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,
})

Запрос регистрации заказа

Запрос на регистрацию заказа с предавторизацией, выполняется посредством передачи параметра 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());
  }
}