public EthereumEventsQueue(AppSettings.RabbitMqSettings config, ILog log,
                            IMatchingEngineClient matchingEngineClient,
                            ICashOperationsRepository cashOperationsRepository,
                            IClientAccountsRepository clientAccountsRepository,
                            ISrvEmailsFacade srvEmailsFacade,
                            IBcnClientCredentialsRepository bcnClientCredentialsRepository,
                            IPaymentTransactionsRepository paymentTransactionsRepository,
                            IWalletCredentialsRepository walletCredentialsRepository,
                            IClientTradesRepository clientTradesRepository,
                            IEthereumTransactionRequestRepository ethereumTransactionRequestRepository,
                            ICachedAssetsService assetsService)
 {
     _log = log;
     _matchingEngineClient                 = matchingEngineClient;
     _cashOperationsRepository             = cashOperationsRepository;
     _clientAccountsRepository             = clientAccountsRepository;
     _srvEmailsFacade                      = srvEmailsFacade;
     _bcnClientCredentialsRepository       = bcnClientCredentialsRepository;
     _paymentTransactionsRepository        = paymentTransactionsRepository;
     _walletCredentialsRepository          = walletCredentialsRepository;
     _clientTradesRepository               = clientTradesRepository;
     _ethereumTransactionRequestRepository = ethereumTransactionRequestRepository;
     _assetsService = assetsService;
     _rabbitConfig  = config;
 }
Beispiel #2
0
 public Link4PayServiceImpl(
     Link4PaySettings link4PaySettings,
     IPaymentTransactionsRepository paymentTransactionsRepository,
     IPaymentTransactionEventsLog paymentTransactionEventsLog,
     IRawLogRepository rawLogRepository,
     ILink4PayApiService link4PayApiService,
     IFeeCalculatorClient feeCalculatorClient,
     IReadOnlyList <string> supportedCountries,
     IReadOnlyList <string> supportedCurrencies,
     ILogFactory logFactory
     )
 {
     _link4PaySettings = link4PaySettings;
     _paymentTransactionsRepository = paymentTransactionsRepository;
     _paymentTransactionEventsLog   = paymentTransactionEventsLog;
     _rawLogRepository    = rawLogRepository;
     _link4PayApiService  = link4PayApiService;
     _feeCalculatorClient = feeCalculatorClient;
     _supportedCountries  = supportedCountries;
     _supportedCurrencies = supportedCurrencies;
     _log        = logFactory.CreateLog(this);
     _successUrl = $"{_link4PaySettings.ExternalUrl}/ok";
     _failUrl    = $"{_link4PaySettings.ExternalUrl}/fail";
     _cancelUrl  = $"{_link4PaySettings.ExternalUrl}/cancel";
 }
Beispiel #3
0
 public PaymentTransactionsResposityTests() : base(new List <PaymentTransaction>() { new PaymentTransaction() { MerchantCnpj = "13705903000110" } })
 {
     this.filters = new PaymentTransactionFilters()
     {
         MerchantCnpjs = "13705903000110,09429293000100"
     };
     this.repository = new PaymentTransactionsRepository(this.Context);
 }
 public SrvPaymentProcessor(SrvBitcoinCommandProducer srvBitcoinCommandProducer,
                            IPaymentTransactionsRepository paymentTransactionsRepository, IPaymentTransactionEventsLog paymentTransactionEventsLog,
                            IPaymentOkNotification[] paymentOkNotifications)
 {
     _srvBitcoinCommandProducer     = srvBitcoinCommandProducer;
     _paymentTransactionsRepository = paymentTransactionsRepository;
     _paymentTransactionEventsLog   = paymentTransactionEventsLog;
     _paymentOkNotifications        = paymentOkNotifications;
 }
Beispiel #5
0
 public PaymentSaga(
     IPaymentTransactionsRepository paymentTransactionsRepository,
     IPaymentNotifier[] paymentNotifiers,
     string sourceClientId
     )
 {
     _paymentTransactionsRepository = paymentTransactionsRepository;
     _paymentNotifiers = paymentNotifiers;
     _sourceClientId   = sourceClientId;
 }
        public OffchainTransactionFinalizeFunction(
            IBitCoinTransactionsRepository bitCoinTransactionsRepository,
            ILog log,
            ICashOperationsRepository cashOperationsRepository,
            IExchangeOperationsService exchangeOperationsService,
            SrvSlackNotifications srvSlackNotifications,
            ICashOutAttemptRepository cashOutAttemptRepository,
            ISrvEmailsFacade srvEmailsFacade,
            IClientTradesRepository clientTradesRepository,
            IClientAccountsRepository clientAccountsRepository,
            IPersonalDataService personalDataService,
            IOffchainTransferRepository offchainTransferRepository,
            IChronoBankService chronoBankService,
            ISrvSolarCoinHelper srvSolarCoinHelper,
            ITransferEventsRepository transferEventsRepository,
            IQuantaService quantaService,
            IOffchainRequestService offchainRequestService,
            IWalletCredentialsRepository walletCredentialsRepository,
            IBitcoinApiClient bitcoinApiClient,
            IOffchainRequestRepository offchainRequestRepository,
            CachedDataDictionary <string, IAssetSetting> assetSettings,
            IMarginDataServiceResolver marginDataServiceResolver,
            IMarginTradingPaymentLogRepository marginTradingPaymentLog,
            IPaymentTransactionsRepository paymentTransactionsRepository,
            IAppNotifications appNotifications,
            ICachedAssetsService assetsService, IBitcoinTransactionService bitcoinTransactionService)
        {
            _bitCoinTransactionsRepository = bitCoinTransactionsRepository;
            _log = log;
            _cashOperationsRepository   = cashOperationsRepository;
            _exchangeOperationsService  = exchangeOperationsService;
            _srvSlackNotifications      = srvSlackNotifications;
            _cashOutAttemptRepository   = cashOutAttemptRepository;
            _srvEmailsFacade            = srvEmailsFacade;
            _clientTradesRepository     = clientTradesRepository;
            _clientAccountsRepository   = clientAccountsRepository;
            _personalDataService        = personalDataService;
            _offchainTransferRepository = offchainTransferRepository;
            _chronoBankService          = chronoBankService;
            _srvSolarCoinHelper         = srvSolarCoinHelper;
            _transferEventsRepository   = transferEventsRepository;
            _quantaService               = quantaService;
            _offchainRequestService      = offchainRequestService;
            _walletCredentialsRepository = walletCredentialsRepository;
            _bitcoinApiClient            = bitcoinApiClient;
            _offchainRequestRepository   = offchainRequestRepository;
            _assetSettings               = assetSettings;

            _marginDataServiceResolver     = marginDataServiceResolver;
            _marginTradingPaymentLog       = marginTradingPaymentLog;
            _paymentTransactionsRepository = paymentTransactionsRepository;
            _appNotifications          = appNotifications;
            _assetsService             = assetsService;
            _bitcoinTransactionService = bitcoinTransactionService;
        }
Beispiel #7
0
 public PaymentCommandHandler(
     ILink4PayApiService link4PayApiService,
     IPaymentTransactionsRepository paymentTransactionsRepository,
     IPaymentTransactionEventsLog paymentTransactionEventsLog,
     ILogFactory logFactory
     )
 {
     _link4PayApiService            = link4PayApiService;
     _paymentTransactionsRepository = paymentTransactionsRepository;
     _paymentTransactionEventsLog   = paymentTransactionEventsLog;
     _log = logFactory.CreateLog(this);
 }
Beispiel #8
0
 public CashTransferOperationSubscriber(
     IPaymentTransactionsRepository paymentTransactionsRepository,
     ICashOperationsCollector cashOperationsCollector,
     ICashTransfersCollector cashTransfersCollector,
     ILogFactory logFactory,
     string connectionString,
     string exchangeName)
 {
     _paymentTransactionsRepository = paymentTransactionsRepository;
     _cashOperationsCollector       = cashOperationsCollector;
     _cashTransfersCollector        = cashTransfersCollector;
     _logFactory       = logFactory;
     _log              = logFactory.CreateLog(this);
     _connectionString = connectionString;
     _exchangeName     = exchangeName;
 }
Beispiel #9
0
 public EthereumCoreCommandHandler(
     ILogFactory logFactory,
     IMatchingEngineClient matchingEngineClient,
     ICashOperationsRepositoryClient cashOperationsRepositoryClient,
     IClientAccountClient clientAccountClient,
     ISrvEmailsFacade srvEmailsFacade,
     IBcnClientCredentialsRepository bcnClientCredentialsRepository,
     IPaymentTransactionsRepository paymentTransactionsRepository,
     ITradeOperationsRepositoryClient clientTradesRepositoryClient,
     IEthereumTransactionRequestRepository ethereumTransactionRequestRepository,
     ITransferOperationsRepositoryClient transferEventsRepositoryClient,
     IAssetsServiceWithCache assetsServiceWithCache,
     ITransactionService transactionService,
     IAssetsService assetsService,
     IEthererumPendingActionsRepository ethererumPendingActionsRepository,
     IExchangeOperationsServiceClient exchangeOperationsServiceClient,
     IClientCommentsRepository clientCommentsRepository,
     IPersonalDataService personalDataService)
 {
     _log = logFactory.CreateLog(this);
     _matchingEngineClient           = matchingEngineClient;
     _cashOperationsRepositoryClient = cashOperationsRepositoryClient;
     _clientAccountClient            = clientAccountClient;
     _srvEmailsFacade = srvEmailsFacade;
     _bcnClientCredentialsRepository       = bcnClientCredentialsRepository;
     _paymentTransactionsRepository        = paymentTransactionsRepository;
     _clientTradesRepositoryClient         = clientTradesRepositoryClient;
     _ethereumTransactionRequestRepository = ethereumTransactionRequestRepository;
     _assetsServiceWithCache         = assetsServiceWithCache;
     _transferEventsRepositoryClient = transferEventsRepositoryClient;
     _transactionService             = transactionService;
     _assetsService = assetsService;
     _ethererumPendingActionsRepository = ethererumPendingActionsRepository;
     _exchangeOperationsServiceClient   = exchangeOperationsServiceClient;
     _clientCommentsRepository          = clientCommentsRepository;
     _personalDataService = personalDataService;
 }
Beispiel #10
0
 public AntiFraudChecker(
     IPaymentTransactionsRepository paymentTransactionsRepository,
     IClientAccountClient clientAccountClient,
     DateTime registrationDateSince,
     TimeSpan paymentPeriod,
     ICreditCardsService creditCardsService,
     IEmailSender emailSender,
     string notificationEmail,
     string chatId,
     ITelegramBotClient telegramBot,
     ILogFactory logFactory
     )
 {
     _paymentTransactionsRepository = paymentTransactionsRepository;
     _clientAccountClient           = clientAccountClient;
     _registrationDateSince         = registrationDateSince;
     _paymentPeriod              = paymentPeriod;
     _creditCardsService         = creditCardsService;
     _emailSender                = emailSender;
     _antifraudNotificationEmail = notificationEmail;
     _chatId      = chatId;
     _telegramBot = telegramBot;
     _log         = logFactory.CreateLog(this);
 }
 public PaymentTransactionsService(IPaymentTransactionsRepository paymentTransactionsRepository)
 {
     _paymentTransactionsRepository = paymentTransactionsRepository;
 }
 public TransactionsController([FromServices] IPaymentTransactionsRepository repository) =>
 this.repository = repository;
Beispiel #13
0
 public TransferHandler([NotNull] IPaymentTransactionsRepository paymentTransactionsRepository)
 {
     _paymentTransactionsRepository = paymentTransactionsRepository ?? throw new ArgumentNullException(nameof(paymentTransactionsRepository));
 }