コード例 #1
0
 public BookingRegistrationService(IAccommodationBookingSettingsService accommodationBookingSettingsService,
                                   IBookingRecordsManager bookingRecordsManager,
                                   IBookingDocumentsService documentsService,
                                   IPaymentNotificationService notificationService,
                                   IBookingMailingService bookingMailingService,
                                   IDateTimeProvider dateTimeProvider,
                                   IAccountPaymentService accountPaymentService,
                                   ISupplierConnectorManager supplierConnectorManager,
                                   IBookingPaymentService paymentService,
                                   IBookingEvaluationStorage bookingEvaluationStorage,
                                   EdoContext context,
                                   IBookingResponseProcessor bookingResponseProcessor,
                                   IBookingPaymentService bookingPaymentService,
                                   ILogger <BookingRegistrationService> logger)
 {
     _accommodationBookingSettingsService = accommodationBookingSettingsService;
     _bookingRecordsManager    = bookingRecordsManager;
     _documentsService         = documentsService;
     _notificationService      = notificationService;
     _bookingMailingService    = bookingMailingService;
     _dateTimeProvider         = dateTimeProvider;
     _accountPaymentService    = accountPaymentService;
     _supplierConnectorManager = supplierConnectorManager;
     _paymentService           = paymentService;
     _bookingEvaluationStorage = bookingEvaluationStorage;
     _context = context;
     _bookingResponseProcessor = bookingResponseProcessor;
     _bookingPaymentService    = bookingPaymentService;
     _logger = logger;
 }
コード例 #2
0
 public PaymentsController(IAccountPaymentService accountPaymentService,
                           IBookingPaymentService bookingPaymentService, IPaymentSettingsService paymentSettingsService,
                           IAgentContextService agentContextService, ICreditCardPaymentProcessingService creditCardPaymentProcessingService)
 {
     _accountPaymentService              = accountPaymentService;
     _bookingPaymentService              = bookingPaymentService;
     _paymentSettingsService             = paymentSettingsService;
     _agentContextService                = agentContextService;
     _creditCardPaymentProcessingService = creditCardPaymentProcessingService;
 }
コード例 #3
0
 public BookingAccountPaymentService(IAccountPaymentService accountPaymentService,
                                     IBookingDocumentsService documentsService,
                                     IBookingPaymentCallbackService paymentCallbackService,
                                     ILogger <BookingAccountPaymentService> logger,
                                     EdoContext context,
                                     IBookingDocumentsMailingService documentsMailingService)
 {
     _accountPaymentService  = accountPaymentService;
     _documentsService       = documentsService;
     _paymentCallbackService = paymentCallbackService;
     _logger  = logger;
     _context = context;
     _documentsMailingService = documentsMailingService;
 }
コード例 #4
0
 public BookingReportsService(IDateTimeProvider dateTimeProvider,
                              INotificationService notificationService,
                              IAgentSettingsManager agentSettingsManager,
                              IAccountPaymentService accountPaymentService,
                              IOptions <BookingMailingOptions> options,
                              EdoContext context)
 {
     _dateTimeProvider      = dateTimeProvider;
     _notificationService   = notificationService;
     _agentSettingsManager  = agentSettingsManager;
     _accountPaymentService = accountPaymentService;
     _context = context;
     _options = options.Value;
 }
コード例 #5
0
 public BookingPaymentService(EdoContext context,
                              IAccountPaymentService accountPaymentService,
                              ICreditCardPaymentProcessingService creditCardPaymentProcessingService,
                              IBookingRecordsManager recordsManager,
                              IBookingDocumentsService documentsService,
                              IPaymentNotificationService notificationService,
                              ILogger <BookingPaymentService> logger,
                              IOfflinePaymentAuditService offlinePaymentAuditService)
 {
     _context = context;
     _accountPaymentService = accountPaymentService;
     _creditCardPaymentProcessingService = creditCardPaymentProcessingService;
     _recordsManager      = recordsManager;
     _documentsService    = documentsService;
     _notificationService = notificationService;
     _logger = logger;
     _offlinePaymentAuditService = offlinePaymentAuditService;
 }
コード例 #6
0
 public BookingMailingService(MailSenderWithCompanyInfo mailSender,
                              IBookingDocumentsService bookingDocumentsService,
                              IBookingRecordsManager bookingRecordsManager,
                              IOptions <BookingMailingOptions> options,
                              IDateTimeProvider dateTimeProvider,
                              IAgentSettingsManager agentSettingsManager,
                              IAccountPaymentService accountPaymentService,
                              EdoContext context)
 {
     _bookingDocumentsService = bookingDocumentsService;
     _bookingRecordsManager   = bookingRecordsManager;
     _mailSender            = mailSender;
     _options               = options.Value;
     _dateTimeProvider      = dateTimeProvider;
     _agentSettingsManager  = agentSettingsManager;
     _accountPaymentService = accountPaymentService;
     _context               = context;
 }
コード例 #7
0
        public OrderWorkflowService(ILocationService locationService,
                                    IAccountService accountService,
                                    IGeolocService geolocService,
                                    IAppSettings configurationManager,
                                    ILocalization localize,
                                    IBookingService bookingService,
                                    ICacheService cacheService,
                                    IAccountPaymentService accountPaymentService,
                                    INetworkRoamingService networkRoamingService,
                                    IPaymentService paymentService,
                                    ILogger logger,
                                    IPOIProvider poiProvider,
                                    IVehicleTypeService vehicleTypeService,
                                    IDeviceCollectorService deviceCollectorService)
        {
            _cacheService           = cacheService;
            _appSettings            = configurationManager;
            _geolocService          = geolocService;
            _accountService         = accountService;
            _vehicleTypeService     = vehicleTypeService;
            _locationService        = locationService;
            _deviceCollectorService = deviceCollectorService;

            _bookingSettingsSubject = new BehaviorSubject <BookingSettings>(accountService.CurrentAccount.Settings);

            _vehicleTypeSubject = new BehaviorSubject <int?>(
                _appSettings.Data.VehicleTypeSelectionEnabled
                ? accountService.CurrentAccount.Settings.VehicleTypeId
                : null);

            _localize              = localize;
            _bookingService        = bookingService;
            _accountPaymentService = accountPaymentService;
            _networkRoamingService = networkRoamingService;
            _paymentService        = paymentService;
            _logger      = logger;
            _poiProvider = poiProvider;

            _estimatedFareDisplaySubject = new BehaviorSubject <string>(_localize[_appSettings.Data.DestinationIsRequired ? "NoFareTextIfDestinationIsRequired" : "NoFareText"]);

            Observe(_networkRoamingService.GetAndObserveMarketSettings(), marketSettings => MarketChanged(marketSettings).FireAndForget());
            Observe(_vehicleTypeService.GetAndObserveVehiclesList(), vehiclesList => PreselectDefaultVehicleType(vehiclesList));
        }
コード例 #8
0
        public RideSettingsViewModel(IAccountService accountService,
                                     IVehicleTypeService vehicleTypeService,
                                     IPaymentService paymentService,
                                     IAccountPaymentService accountPaymentService,
                                     IOrderWorkflowService orderWorkflowService,
                                     INetworkRoamingService networkRoamingService)
        {
            _vehicleTypeService    = vehicleTypeService;
            _orderWorkflowService  = orderWorkflowService;
            _paymentService        = paymentService;
            _accountPaymentService = accountPaymentService;
            _accountService        = accountService;
            _networkRoamingService = networkRoamingService;

            _payments = new ListItem[0];

            PhoneNumber = new PhoneNumberModel();

            Observe(_accountService.GetAndObservePaymentsList(), paymentTypes => PaymentTypesChanged(paymentTypes).FireAndForget());
        }
コード例 #9
0
 public AgencyAccountsController(IAccountPaymentService accountPaymentService,
                                 IAgentContextService agentContextService)
 {
     _accountPaymentService = accountPaymentService;
     _agentContextService   = agentContextService;
 }