Esempio n. 1
0
        public CreateOrderService(ICommandBus commandBus,
                                  IAccountDao accountDao,
                                  IServerSettings serverSettings,
                                  ReferenceDataService referenceDataService,
                                  IIBSServiceProvider ibsServiceProvider,
                                  IRuleCalculator ruleCalculator,
                                  IAccountChargeDao accountChargeDao,
                                  ICreditCardDao creditCardDao,
                                  IOrderDao orderDao,
                                  IPromotionDao promotionDao,
                                  IEventSourcedRepository <Promotion> promoRepository,
                                  ITaxiHailNetworkServiceClient taxiHailNetworkServiceClient,
                                  IPaymentService paymentService,
                                  IPayPalServiceFactory payPalServiceFactory,
                                  IOrderPaymentDao orderPaymentDao,
                                  IFeesDao feesDao,
                                  ILogger logger,
                                  IIbsCreateOrderService ibsCreateOrderService)
            : base(serverSettings, commandBus, accountChargeDao, paymentService, creditCardDao,
                   ibsServiceProvider, promotionDao, promoRepository, orderPaymentDao, accountDao,
                   payPalServiceFactory, logger, taxiHailNetworkServiceClient, ruleCalculator,
                   feesDao, referenceDataService, orderDao)
        {
            _commandBus                   = commandBus;
            _accountDao                   = accountDao;
            _referenceDataService         = referenceDataService;
            _serverSettings               = serverSettings;
            _orderDao                     = orderDao;
            _taxiHailNetworkServiceClient = taxiHailNetworkServiceClient;
            _logger = logger;
            _ibsCreateOrderService = ibsCreateOrderService;
            _resources             = new Resources.Resources(_serverSettings);

            _taxiHailNetworkHelper = new TaxiHailNetworkHelper(_serverSettings, _taxiHailNetworkServiceClient, _commandBus, _logger);
        }
 public SendReceiptService(
     ICommandBus commandBus,
     IIBSServiceProvider ibsServiceProvider,
     IOrderDao orderDao,
     IOrderPaymentDao orderPaymentDao,
     ICreditCardDao creditCardDao,
     IAccountDao accountDao,
     IPromotionDao promotionDao,
     IReportDao reportDao,
     IServerSettings serverSettings,
     IGeocoding geocoding,
     ILogger logger)
 {
     _serverSettings     = serverSettings;
     _logger             = logger;
     _ibsServiceProvider = ibsServiceProvider;
     _orderDao           = orderDao;
     _orderPaymentDao    = orderPaymentDao;
     _accountDao         = accountDao;
     _promotionDao       = promotionDao;
     _reportDao          = reportDao;
     _creditCardDao      = creditCardDao;
     _geocoding          = geocoding;
     _commandBus         = commandBus;
 }
Esempio n. 3
0
 public OrderService(IOrderDao dao, IOrderPaymentDao orderPaymentDao, IPromotionDao promotionDao, IAccountDao accountDao, ICommandBus commandBus, IIBSServiceProvider ibsServiceProvider)
 {
     _orderPaymentDao    = orderPaymentDao;
     _promotionDao       = promotionDao;
     _accountDao         = accountDao;
     _commandBus         = commandBus;
     _ibsServiceProvider = ibsServiceProvider;
     Dao = dao;
 }
Esempio n. 4
0
 public CreateOrderPaymentHelper(
     IServerSettings serverSettings,
     ICommandBus commandBus,
     IPaymentService paymentService,
     IOrderPaymentDao orderPaymentDao,
     IPayPalServiceFactory payPalServiceFactory)
 {
     _serverSettings       = serverSettings;
     _commandBus           = commandBus;
     _paymentService       = paymentService;
     _orderPaymentDao      = orderPaymentDao;
     _payPalServiceFactory = payPalServiceFactory;
 }
 public OrderPaymentManager(IOrderDao dao, IOrderPaymentDao paymentDao, IAccountDao accountDao, IOrderDao orderDao, ICommandBus commandBus,
                            ICreditCardDao creditCardDao, IIbsOrderService ibs, IServerSettings serverSettings, IPaymentService paymentService, IFeeService feeService, ILogger logger)
 {
     _accountDao     = accountDao;
     _orderDao       = orderDao;
     _commandBus     = commandBus;
     _dao            = dao;
     _paymentDao     = paymentDao;
     _creditCardDao  = creditCardDao;
     _ibs            = ibs;
     _serverSettings = serverSettings;
     _paymentService = paymentService;
     _feeService     = feeService;
     _logger         = logger;
 }
Esempio n. 6
0
 public FeeService(IPaymentService paymentService,
                   IAccountDao accountDao,
                   IFeesDao feesDao,
                   IOrderDao orderDao,
                   IOrderPaymentDao paymentDao,
                   ICommandBus commandBus,
                   IServerSettings serverSettings,
                   ILogger logger)
 {
     _paymentService = paymentService;
     _accountDao     = accountDao;
     _feesDao        = feesDao;
     _orderDao       = orderDao;
     _paymentDao     = paymentDao;
     _commandBus     = commandBus;
     _serverSettings = serverSettings;
     _logger         = logger;
 }
Esempio n. 7
0
 public CmtPaymentService(ICommandBus commandBus,
                          IOrderDao orderDao,
                          ILogger logger,
                          IAccountDao accountDao,
                          IOrderPaymentDao paymentDao,
                          ServerPaymentSettings serverPaymentSettings,
                          IPairingService pairingService,
                          ICreditCardDao creditCardDao)
 {
     _commandBus            = commandBus;
     _orderDao              = orderDao;
     _logger                = logger;
     _accountDao            = accountDao;
     _paymentDao            = paymentDao;
     _serverPaymentSettings = serverPaymentSettings;
     _pairingService        = pairingService;
     _creditCardDao         = creditCardDao;
 }
Esempio n. 8
0
 public OverduePaymentService(
     ICommandBus commandBus,
     IOverduePaymentDao overduePaymentDao,
     IAccountDao accountDao,
     IOrderDao orderDao,
     IOrderPaymentDao orderPaymentDao,
     IPromotionDao promotionDao,
     IPaymentService paymentService,
     IServerSettings serverSettings)
 {
     _commandBus        = commandBus;
     _overduePaymentDao = overduePaymentDao;
     _accountDao        = accountDao;
     _orderDao          = orderDao;
     _orderPaymentDao   = orderPaymentDao;
     _promotionDao      = promotionDao;
     _paymentService    = paymentService;
     _serverSettings    = serverSettings;
 }
 public MonerisPaymentService(ICommandBus commandBus,
                              ILogger logger,
                              IOrderPaymentDao paymentDao,
                              IServerSettings serverSettings,
                              ServerPaymentSettings serverPaymentSettings,
                              IPairingService pairingService,
                              ICreditCardDao creditCardDao,
                              IOrderDao orderDao)
 {
     _commandBus            = commandBus;
     _logger                = logger;
     _paymentDao            = paymentDao;
     _serverSettings        = serverSettings;
     _serverPaymentSettings = serverPaymentSettings;
     _pairingService        = pairingService;
     _creditCardDao         = creditCardDao;
     _orderDao              = orderDao;
     MonerisHttpRequestWrapper.SetLogger(_logger);
 }
Esempio n. 10
0
        public BraintreePaymentService(ICommandBus commandBus,
                                       ILogger logger,
                                       IOrderPaymentDao paymentDao,
                                       IOrderDao orderDao,
                                       IServerSettings serverSettings,
                                       ServerPaymentSettings serverPaymentSettings,
                                       IPairingService pairingService,
                                       ICreditCardDao creditCardDao)
        {
            _commandBus     = commandBus;
            _logger         = logger;
            _paymentDao     = paymentDao;
            _orderDao       = orderDao;
            _serverSettings = serverSettings;
            _pairingService = pairingService;
            _creditCardDao  = creditCardDao;

            BraintreeGateway = GetBraintreeGateway(serverPaymentSettings.BraintreeServerSettings);
        }
Esempio n. 11
0
        public PayPalService(IServerSettings serverSettings,
                             ServerPaymentSettings serverPaymentSettings,
                             ICommandBus commandBus,
                             IAccountDao accountDao,
                             IOrderDao orderDao,
                             ILogger logger,
                             IPairingService pairingService,
                             IOrderPaymentDao paymentDao) : base(serverPaymentSettings, accountDao)
        {
            _serverSettings        = serverSettings;
            _serverPaymentSettings = serverPaymentSettings;
            _commandBus            = commandBus;
            _accountDao            = accountDao;
            _orderDao       = orderDao;
            _logger         = logger;
            _pairingService = pairingService;
            _paymentDao     = paymentDao;

            _resources = new Resources.Resources(serverSettings);
        }
Esempio n. 12
0
        internal BaseCreateOrderService(IServerSettings serverSettings,
                                        ICommandBus commandBus,
                                        IAccountChargeDao accountChargeDao,
                                        IPaymentService paymentService,
                                        ICreditCardDao creditCardDao,
                                        IIBSServiceProvider ibsServiceProvider,
                                        IPromotionDao promotionDao,
                                        IEventSourcedRepository <Promotion> promoRepository,
                                        IOrderPaymentDao orderPaymentDao,
                                        IAccountDao accountDao,
                                        IPayPalServiceFactory payPalServiceFactory,
                                        ILogger logger,
                                        ITaxiHailNetworkServiceClient taxiHailNetworkServiceClient,
                                        IRuleCalculator ruleCalculator,
                                        IFeesDao feesDao,
                                        ReferenceDataService referenceDataService,
                                        IOrderDao orderDao)
        {
            _serverSettings               = serverSettings;
            _commandBus                   = commandBus;
            _accountChargeDao             = accountChargeDao;
            _paymentService               = paymentService;
            _creditCardDao                = creditCardDao;
            _ibsServiceProvider           = ibsServiceProvider;
            _promotionDao                 = promotionDao;
            _promoRepository              = promoRepository;
            _accountDao                   = accountDao;
            _logger                       = logger;
            _taxiHailNetworkServiceClient = taxiHailNetworkServiceClient;
            _ruleCalculator               = ruleCalculator;
            _feesDao                      = feesDao;
            _referenceDataService         = referenceDataService;
            _orderDao                     = orderDao;

            _resources             = new Resources.Resources(_serverSettings);
            _taxiHailNetworkHelper = new TaxiHailNetworkHelper(_serverSettings, _taxiHailNetworkServiceClient, _commandBus, _logger);

            PaymentHelper = new CreateOrderPaymentHelper(serverSettings, commandBus, paymentService, orderPaymentDao, payPalServiceFactory);
        }