public StatusProcessor(IMerchantPayRequestRepository merchantRepo, ILog log, AppSettings.StatusBroadcastSettings settings, HttpClient httpClient, IBitcoinAggRepository bitcoinRepo, IMerchantOrderRequestRepository merchantOrderRepo) { _log = log; _merchantRepo = merchantRepo; _settings = settings; _httpClient = httpClient; _bitcoinRepo = bitcoinRepo; _merchantOrderRepo = merchantOrderRepo; }
public OrderRequestHandler(MerchantOrderAddress address, AppSettings.ProcessRequestSettings settings, IMerchantOrderRequestRepository merchantOrderRequestRepository, ILykkePayServiceGenerateAddressMicroService generateAddressMicroService, ILog log, IBitcoinAggRepository bitcoinAggRepository, RPCClient rpcClient, NinjaServiceClient ninjaSettings) { _address = address; _settings = settings; _ninjaSettings = ninjaSettings; _merchantOrderRequestRepository = merchantOrderRequestRepository; _generateAddressMicroService = generateAddressMicroService; _log = log; _bitcoinAggRepository = bitcoinAggRepository; _rpcClient = rpcClient; }
public static IRequestHandler Create(IMerchantPayRequest payRequest, AppSettings.ProcessRequestSettings settings, IBitcoinAggRepository bitcoinRepo, IMerchantPayRequestRepository merchantPayRequestRepository, IBitcoinApi bitcoinApi) { switch (payRequest.MerchantPayRequestType) { case MerchantPayRequestType.Purchase: // return new PurchaseRequestHandler(payRequest, settings); case MerchantPayRequestType.ExchangeTransfer: case MerchantPayRequestType.Transfer: return(new TransferRequestHandler(payRequest, settings, bitcoinRepo, merchantPayRequestRepository, bitcoinApi)); } return(null); }
public ProcessRequest(AppSettings.ProcessRequestSettings settings, ILog log, ILykkePayServiceStoreRequestMicroService storeClient, IBitcoinAggRepository bitcoinRepo, IMerchantPayRequestRepository merchantPayRequestRepository, IBitcoinApi bitcoinApi, IMerchantOrderRequestRepository merchantOrderRequestRepository, ILykkePayServiceGenerateAddressMicroService generateAddressMicroService, IBitcoinAggRepository bitcoinAggRepository, RPCClient rpcClient, NinjaServiceClient ninjaSettings) { _log = log; _storeClient = storeClient; _settings = settings; _bitcoinRepo = bitcoinRepo; _merchantPayRequestRepository = merchantPayRequestRepository; _bitcoinApi = bitcoinApi; _merchantOrderRequestRepository = merchantOrderRequestRepository; _generateAddressMicroService = generateAddressMicroService; _bitcoinAggRepository = bitcoinAggRepository; _rpcClient = rpcClient; _ninjaSettings = ninjaSettings; }
public TransferRequestHandler(IMerchantPayRequest payRequest, AppSettings.ProcessRequestSettings settings, IBitcoinAggRepository bitcoinRepo, IMerchantPayRequestRepository merchantPayRequestRepository, IBitcoinApi bitcoinApi) : base(payRequest, settings) { _bitcoinRepo = bitcoinRepo; _merchantPayRequestRepository = merchantPayRequestRepository; _bitcoinApi = bitcoinApi; //_bitcoinRepo = // new BitcoinAggRepository( // new AzureTableStorage<BitcoinAggEntity>( // settings.Db.MerchantWalletConnectionString, "BitcoinAgg", // null), // new AzureTableStorage<BitcoinHeightEntity>( // settings.Db.MerchantWalletConnectionString, "BitcoinHeight", // null)); //_merchantPayRequestRepository = // new MerchantPayRequestRepository( // new AzureTableStorage<MerchantPayRequest>(settings.Db.MerchantWalletConnectionString, "MerchantPayRequest", null)); //_bitcoinApi = new BitcoinApi(new Uri("http://52.164.252.39/")); }
internal static IRequestHandler Create(MerchantOrderAddress address, AppSettings.ProcessRequestSettings settings, IMerchantOrderRequestRepository merchantOrderRequestRepository, ILykkePayServiceGenerateAddressMicroService generateAddressMicroService, ILog log, IBitcoinAggRepository bitcoinAggRepository, RPCClient rpcClient, NinjaServiceClient ninjaSettings) { return(new OrderRequestHandler(address, settings, merchantOrderRequestRepository, generateAddressMicroService, log, bitcoinAggRepository, rpcClient, ninjaSettings)); }