コード例 #1
0
 public PaymentsController(
     IPaymentsService paymentsService,
     IPaymentsStatusUpdater paymentsStatusUpdater,
     IMapper mapper)
 {
     _paymentsService       = paymentsService;
     _paymentsStatusUpdater = paymentsStatusUpdater;
     _mapper = mapper;
 }
コード例 #2
0
 public TransactionFailedEventHandler(
     IPaymentRequestBlockchainRepository paymentRequestBlockchainRepository,
     IPaymentsRepository paymentsRepository,
     IPaymentsStatusUpdater paymentsStatusUpdater,
     ILogFactory logFactory)
 {
     _paymentRequestBlockchainRepository = paymentRequestBlockchainRepository;
     _paymentsRepository    = paymentsRepository;
     _paymentsStatusUpdater = paymentsStatusUpdater;
     _log = logFactory.CreateLog(this);
 }
コード例 #3
0
 public UndecodedEventHandler(
     IRabbitPublisher <PartnersPaymentTokensReservedEvent> paymentTokensReservedPublisher,
     IRabbitPublisher <PartnersPaymentProcessedEvent> paymentProcessedPublisher,
     IPaymentsRepository paymentsRepository,
     IBlockchainEventDecoder eventDecoder,
     IPaymentsStatusUpdater paymentsStatusUpdater,
     ISettingsService settingsService,
     ILogFactory logFactory)
 {
     _paymentTokensReservedPublisher = paymentTokensReservedPublisher;
     _paymentProcessedPublisher      = paymentProcessedPublisher;
     _paymentsRepository             = paymentsRepository;
     _eventDecoder          = eventDecoder;
     _paymentsStatusUpdater = paymentsStatusUpdater;
     _settingsService       = settingsService;
     _log = logFactory.CreateLog(this);
 }
コード例 #4
0
 public PaymentsService(
     ICustomerProfileClient customerProfileClient,
     IWalletManagementClient walletManagementClient,
     IPaymentsRepository paymentsRepository,
     ISettingsService settingsService,
     IRabbitPublisher <PartnerPaymentRequestCreatedEvent> paymentRequestCreatedPublisher,
     IPartnerManagementClient partnerManagementClient,
     IEligibilityEngineClient eligibilityEngineClient,
     IPaymentsStatusUpdater paymentsStatusUpdater,
     string tokenSymbol,
     ILogFactory logFactory)
 {
     _customerProfileClient          = customerProfileClient;
     _walletManagementClient         = walletManagementClient;
     _paymentsRepository             = paymentsRepository;
     _settingsService                = settingsService;
     _paymentRequestCreatedPublisher = paymentRequestCreatedPublisher;
     _partnerManagementClient        = partnerManagementClient;
     _paymentsStatusUpdater          = paymentsStatusUpdater;
     _tokenSymbol             = tokenSymbol;
     _eligibilityEngineClient = eligibilityEngineClient ??
                                throw new ArgumentNullException(nameof(eligibilityEngineClient));
     _log = logFactory.CreateLog(this);
 }