private Trip GetTripInfo(string pairingToken) { var cmtMobileServiceClient = new CmtMobileServiceClient(_serverSettings.GetPaymentSettings().CmtPaymentSettings, null, null, null); var cmtTripInfoServiceHelper = new CmtTripInfoServiceHelper(cmtMobileServiceClient, _logger); return(cmtTripInfoServiceHelper.GetTripInfo(pairingToken)); }
public ManualRidelinqOrderService( ICommandBus commandBus, IOrderDao orderDao, IAccountDao accountDao, ICreditCardDao creditCardDao, IServerSettings serverSettings, ILogger logger, INotificationService notificationService) { _commandBus = commandBus; _orderDao = orderDao; _accountDao = accountDao; _creditCardDao = creditCardDao; _serverSettings = serverSettings; _logger = logger; _notificationService = notificationService; // Since CMT will handle the payment on their ends. We do not need to know the actual company of the cab from wich we do the manual pairing. _cmtMobileServiceClient = new CmtMobileServiceClient(_serverSettings.GetPaymentSettings().CmtPaymentSettings, null, null, null); _cmtTripInfoServiceHelper = new CmtTripInfoServiceHelper(_cmtMobileServiceClient, logger); _resources = new Resources.Resources(_serverSettings); }
private void InitializeServiceClient() { _cmtPaymentServiceClient = new CmtPaymentServiceClient(_serverPaymentSettings.CmtPaymentSettings, null, null, _logger, null); _cmtMobileServiceClient = new CmtMobileServiceClient(_serverPaymentSettings.CmtPaymentSettings, null, null, null); _cmtTripInfoServiceHelper = new CmtTripInfoServiceHelper(_cmtMobileServiceClient, _logger); }
private void InitializeCmtServiceClient() { var cmtMobileServiceClient = new CmtMobileServiceClient(_serverSettings.GetPaymentSettings().CmtPaymentSettings, null, null, null); _cmtTripInfoServiceHelper = new CmtTripInfoServiceHelper(cmtMobileServiceClient, _logger); }