public UnallocatedBalancesJournalViewModel( IUnitOfWorkFactory unitOfWorkFactory, IInteractiveService interactiveService, IPaymentsRepository paymentsRepository, INavigationManager navigationManager, ICurrentPermissionService currentPermissionService, IDeliveryScheduleParametersProvider deliveryScheduleParametersProvider, ILifetimeScope scope, IDeleteEntityService deleteEntityService = null, params Action <UnallocatedBalancesJournalFilterViewModel>[] filterParams) : base(unitOfWorkFactory, interactiveService, navigationManager, deleteEntityService, currentPermissionService) { if (navigationManager == null) { throw new ArgumentNullException(nameof(navigationManager)); } if (currentPermissionService == null) { throw new ArgumentNullException(nameof(currentPermissionService)); } _paymentsRepository = paymentsRepository ?? throw new ArgumentNullException(nameof(paymentsRepository)); _closingDocumentDeliveryScheduleId = (deliveryScheduleParametersProvider ?? throw new ArgumentNullException(nameof(deliveryScheduleParametersProvider))) .ClosingDocumentDeliveryScheduleId; _scope = scope ?? throw new ArgumentNullException(nameof(scope)); TabName = "Журнал нераспределенных балансов"; CreateFilter(filterParams); CreateAutomaticallyAllocationAction(); }
public PaymentsController(IPaymentsRepository p, ICurrencyRepository c, IPaymentMethodsRepository m) { payments = p; currencyes = c; paymentMethods = m; }
public PaymentsJournalViewModel( PaymentsJournalFilterViewModel filterViewModel, IUnitOfWorkFactory unitOfWorkFactory, ICommonServices commonServices, INavigationManager navigationManager, IOrderRepository orderRepository, IOrganizationParametersProvider organizationParametersProvider, IProfitCategoryProvider profitCategoryProvider, IPaymentsRepository paymentsRepository) : base(filterViewModel, unitOfWorkFactory, commonServices) { _unitOfWorkFactory = unitOfWorkFactory ?? throw new ArgumentNullException(nameof(unitOfWorkFactory)); _commonServices = commonServices ?? throw new ArgumentNullException(nameof(commonServices)); _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); _organizationParametersProvider = organizationParametersProvider ?? throw new ArgumentNullException(nameof(organizationParametersProvider)); _profitCategoryProvider = profitCategoryProvider ?? throw new ArgumentNullException(nameof(profitCategoryProvider)); _paymentsRepository = paymentsRepository ?? throw new ArgumentNullException(nameof(paymentsRepository)); _navigationManager = navigationManager; TabName = "Журнал платежей из банк-клиента"; RegisterPayments(); FinishJournalConfiguration(); UpdateOnChanges( typeof(Payment), typeof(PaymentItem), typeof(VodOrder) ); }
public CreatePaymentService(IBankRepository bankRepository, IPaymentsRepository paymentsRepository, IAppLogger logger) { _bankRepository = bankRepository; _paymentsRepository = paymentsRepository; _logger = logger; }
public PaymentsJournalViewModel( IUnitOfWorkFactory unitOfWorkFactory, ICommonServices commonServices, INavigationManager navigationManager, IPaymentsRepository paymentsRepository, IDeleteEntityService deleteEntityService, ILifetimeScope scope, params Action <PaymentsJournalFilterViewModel>[] filterParams) : base(unitOfWorkFactory, commonServices?.InteractiveService, navigationManager, deleteEntityService, commonServices?.CurrentPermissionService) { _commonServices = commonServices ?? throw new ArgumentNullException(nameof(commonServices)); _navigationManager = navigationManager ?? throw new ArgumentNullException(nameof(navigationManager)); _paymentsRepository = paymentsRepository ?? throw new ArgumentNullException(nameof(paymentsRepository)); _scope = scope ?? throw new ArgumentNullException(nameof(scope)); TabName = "Журнал платежей из банк-клиента"; CreateFilter(filterParams); SetPermissions(); CreateDeleteAction(); UpdateOnChanges(typeof(PaymentItem), typeof(VodOrder)); }
public CreateManualPaymentFromBankClientViewModel( IEntityUoWBuilder uowBuilder, IUnitOfWorkFactory uowFactory, ICommonServices commonServices, INavigationManager navigationManager, IPaymentsRepository paymentsRepository, IProfitCategoryRepository profitCategoryRepository, IProfitCategoryProvider profitCategoryProvider, IOrganizationRepository organizationRepository, IOrganizationParametersProvider organizationParametersProvider, ILifetimeScope scope) : base(uowBuilder, uowFactory, commonServices, navigationManager) { if (profitCategoryRepository == null) { throw new ArgumentNullException(nameof(profitCategoryRepository)); } if (profitCategoryProvider == null) { throw new ArgumentNullException(nameof(profitCategoryProvider)); } _paymentsRepository = paymentsRepository ?? throw new ArgumentNullException(nameof(paymentsRepository)); _organizationRepository = organizationRepository ?? throw new ArgumentNullException(nameof(organizationRepository)); _organizationParametersProvider = organizationParametersProvider ?? throw new ArgumentNullException(nameof(organizationParametersProvider)); Scope = scope ?? throw new ArgumentNullException(nameof(scope)); Configure(profitCategoryRepository, profitCategoryProvider); Entity.PropertyChanged += OnEntityPropertyChanged; }
public AutomaticallyAllocationBalanceWindowViewModel( IInteractiveService interactiveService, INavigationManager navigationManager, IPaymentsRepository paymentsRepository, IOrderRepository orderRepository, IUnitOfWorkFactory uowFactory, UnallocatedBalancesJournalNode selectedUnallocatedBalancesNode, IList <UnallocatedBalancesJournalNode> loadedNodes, int closingDocumentDeliveryScheduleId) : base(navigationManager) { if (navigationManager == null) { throw new ArgumentNullException(nameof(navigationManager)); } _interactiveService = interactiveService ?? throw new ArgumentNullException(nameof(interactiveService)); _paymentsRepository = paymentsRepository ?? throw new ArgumentNullException(nameof(paymentsRepository)); _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); _uow = (uowFactory ?? throw new ArgumentNullException(nameof(uowFactory))).CreateWithoutRoot(); _selectedUnallocatedBalancesNode = selectedUnallocatedBalancesNode ?? throw new ArgumentNullException(nameof(selectedUnallocatedBalancesNode)); _loadedNodes = loadedNodes ?? throw new ArgumentNullException(nameof(loadedNodes)); _closingDocumentDeliveryScheduleId = closingDocumentDeliveryScheduleId; Resizable = false; Deletable = false; WindowPosition = WindowGravity.None; }
internal PaymentServiceFactory(IPaymentsRepository paymentsRepository, IInvoiceTransactionRepository invoiceTransactionRepository, IAgencyRepository agencyRepository, ICandidateRepository candidateRepository, IApplicationSettingsWrapper applicationWrapper) { _paymentsRepository = paymentsRepository; _invoiceTransactionRepository = invoiceTransactionRepository; _agencyRepository = agencyRepository; _candidateRepository = candidateRepository; _applicationWrapper = applicationWrapper; }
public PaymentProcessor(IPaymentsRepository paymentsRepository, IAcquiringBank acquiringBank, ILogger <PaymentProcessor> logger, IPaymentsService paymentsService) { _paymentsRepository = paymentsRepository; _acquiringBank = acquiringBank; _logger = logger; _paymentsService = paymentsService; }
/// <summary> /// /// </summary> /// <param name="paymentsRepo"></param> /// <param name="mockBankRepo"></param> /// <param name="logger"></param> public PaymentsController(IPaymentsRepository paymentsRepo, IMockBankRepository mockBankRepo, ILogger <PaymentsController> logger) { _paymentRepo = paymentsRepo ?? throw new ArgumentNullException(nameof(paymentsRepo)); _mockBankRepo = mockBankRepo ?? throw new ArgumentNullException(nameof(mockBankRepo)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public PaymentsFromTinkoffReport(IPaymentsRepository paymentsRepository) { _paymentsRepository = paymentsRepository ?? throw new ArgumentNullException(nameof(paymentsRepository)); Build(); UoW = UnitOfWorkFactory.CreateWithoutRoot(); ConfigureDlg(); }
public PaymentsService(IPaymentsRepository paymentsRepository) { _paymentsRepository = paymentsRepository; //TODO: Read from appsettings _maxTransactionValue = 5000; }
public CardPaymentServiceTests() { _paymentResultComparer = new PaymentResultComparer(); _foobarBankClient = Substitute.For <IFoobarBankClient>(); _paymentsRepository = Substitute.For <IPaymentsRepository>(); _logger = Substitute.For <ILogger <CardPaymentService> >(); _cardPaymentService = new CardPaymentService(_logger, _foobarBankClient, _paymentsRepository); }
public UnitOfWork(OrdersDBContext context) { Context = context; Orders = new OrdersRepository(context); Statuses = new StatusesRepository(context); Adresses = new AdressesRepository(context); Articles = new ArticlesRepository(context); Payments = new PaymentsRepository(context); }
public PaymentFromBankClientController( IPaymentItemsRepository paymentItemsRepository, IOrderRepository orderRepository, IPaymentsRepository paymentsRepository) { _paymentItemsRepository = paymentItemsRepository ?? throw new ArgumentNullException(nameof(paymentItemsRepository)); _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); _paymentsRepository = paymentsRepository ?? throw new ArgumentNullException(nameof(paymentsRepository)); }
public void Setup() { this.MockBankRepository = new Mock <IMockBankRepository>(); this.MockPaymentsDataAccess = new Mock <IPaymentsDataAccess>(); this.MockLogger = new Mock <ILogger <PaymentsRepository> >(); this.PaymentsRepository = new PaymentsRepository(MockPaymentsDataAccess.Object, MockBankRepository.Object, MockLogger.Object); }
public DefaultUserRepository( IPaymentsRepository paymentsRepo, int count, ISoftUniRepository softUniRepo) { this.paymentsRepo = paymentsRepo; this.softUniRepo = softUniRepo; this.count = count; }
public ManualPaymentMatchingViewModel( IEntityUoWBuilder uowBuilder, IUnitOfWorkFactory uowFactory, ICommonServices commonServices, IOrderRepository orderRepository, IPaymentItemsRepository paymentItemsRepository, IPaymentsRepository paymentsRepository, IDialogsFactory dialogsFactory) : base(uowBuilder, uowFactory, commonServices) { _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); _paymentItemsRepository = paymentItemsRepository ?? throw new ArgumentNullException(nameof(paymentItemsRepository)); _paymentsRepository = paymentsRepository ?? throw new ArgumentNullException(nameof(paymentsRepository)); _dialogsFactory = dialogsFactory ?? throw new ArgumentNullException(nameof(dialogsFactory)); if (uowBuilder.IsNewEntity) { throw new AbortCreatingPageException( "Невозможно создать новую загрузку выписки из текущего диалога, необходимо использовать диалоги создания", _error); } var curEditor = Entity.CurrentEditorUser; if (curEditor != null) { throw new AbortCreatingPageException( $"Невозможно открыть диалог ручного распределения платежа №{Entity.PaymentNum}," + $" т.к. он уже открыт пользователем: {curEditor.Name}", _error); } UpdateCurrentEditor(); TabName = "Ручное распределение платежей"; //Поиск Search = new SearchViewModel(); _searchHelper = new SearchHelper(Search); Search.OnSearch += (sender, args) => UpdateNodes(); CanRevertPayFromOrderPermission = CommonServices.CurrentPermissionService.ValidatePresetPermission("can_revert_pay_from_order"); GetLastBalance(); UpdateSumToAllocate(); UpdateCurrentBalance(); CreateCommands(); GetCounterpartyDebt(); ConfigureEntityChangingRelations(); UpdateNodes(); if (HasPaymentItems) { UpdateAllocatedNodes(); } TabClosed += OnTabClosed; }
public PaymentService( IPaymentsRepository paymentsRepository, ISymmetricEncryption symmetricEncryption, ICardsRepository cardsRepository, IBankGateway bankGateway) { _paymentsRepository = paymentsRepository; _symmetricEncryption = symmetricEncryption; _cardsRepository = cardsRepository; _bankGateway = bankGateway; }
public TransactionFailedEventHandler( IPaymentRequestBlockchainRepository paymentRequestBlockchainRepository, IPaymentsRepository paymentsRepository, IPaymentsStatusUpdater paymentsStatusUpdater, ILogFactory logFactory) { _paymentRequestBlockchainRepository = paymentRequestBlockchainRepository; _paymentsRepository = paymentsRepository; _paymentsStatusUpdater = paymentsStatusUpdater; _log = logFactory.CreateLog(this); }
public PaymentProcessor( ILogger <PaymentProcessor> logger, IPaymentsRepository repository, ICurrencyConversionService currencyConversionService, IVerificationService verificationService) { _logger = logger; _repository = repository; _currencyConversionService = currencyConversionService; _verificationService = verificationService; }
public RefreshPaymentDataCommandHandler( IValidator <RefreshPaymentDataCommand> validator, IPaymentService paymentService, IPaymentsRepository paymentsRepository, IMediator mediator, ILog logger) { _validator = validator; _paymentService = paymentService; _paymentsRepository = paymentsRepository; _mediator = mediator; _logger = logger; }
public CreateOrderCommandHandler(IUserQueryService userQueryService, IShipmentQueryService shipmentQueryService, IOrderDiscountQueryService orderDiscountQueryService, IProductOrderQueryService productOrderQueryService, IAddressQueryService addressQueryService, IOrderFactory orderFactory, IEmailService emailService, IPaymentsRepository paymentsRepository) { this.userQueryService = userQueryService; this.shipmentQueryService = shipmentQueryService; this.orderDiscountQueryService = orderDiscountQueryService; this.productOrderQueryService = productOrderQueryService; this.orderFactory = orderFactory; this.addressQueryService = addressQueryService; this.emailService = emailService; this.paymentsRepository = paymentsRepository; }
public PaymentService( IPaymentsRepository repository, IUnitOfWork unitOfWork, IMapper mapper, IBus bus, PaymentRequestValidator validator, ClaimsPrincipal currentUser) { _repository = repository; _unitOfWork = unitOfWork; _mapper = mapper; _bus = bus; _validator = validator; _currentUser = currentUser; }
public ImportOrdersService ( IHostingEnvironment env, IOptions <Settings> option, IOrderRepository orderRepository, IBillingAddressesRepository billingAddressesRepository, IPaymentsRepository paymentsRepository, IArticlesRepository articlesRepository ) { _env = env; _settings = option.Value; _orderRepository = orderRepository; _billingAddressesRepository = billingAddressesRepository; _paymentsRepository = paymentsRepository; _articlesRepository = articlesRepository; }
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); }
public ImportPaymentsFromAvangardSbpViewModel( IUnitOfWorkFactory unitOfWorkFactory, INavigationManager navigation, IInteractiveService interactiveService, IFileDialogService fileDialogService, IPaymentFromAvangardFactory paymentFromAvangardFactory, IPaymentsRepository paymentsRepository ) : base(unitOfWorkFactory, navigation) { _interactiveService = interactiveService ?? throw new ArgumentNullException(nameof(interactiveService)); _fileDialogService = fileDialogService ?? throw new ArgumentNullException(nameof(fileDialogService)); _paymentFromAvangardFactory = paymentFromAvangardFactory ?? throw new ArgumentNullException(nameof(paymentFromAvangardFactory)); _paymentsRepository = paymentsRepository ?? throw new ArgumentNullException(nameof(paymentsRepository)); _loadDialogSettings = CreateLoadDialogSettings(); Title = "Загрузка реестра оплат из Авангарда"; }
public ManualPaymentMatchingViewModel( IEntityUoWBuilder uowBuilder, IUnitOfWorkFactory uowFactory, ICommonServices commonServices, IOrderRepository orderRepository, IPaymentsRepository paymentsRepository) : base(uowBuilder, uowFactory, commonServices) { _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); _paymentsRepository = paymentsRepository ?? throw new ArgumentNullException(nameof(paymentsRepository)); if (uowBuilder.IsNewEntity) { AbortOpening("Невозможно создать новую загрузку выписки из текущего диалога, необходимо использовать диалоги создания"); } TabName = "Ручное распределение платежей"; //Поиск Search = new SearchViewModel(); _searchHelper = new SearchHelper(Search); Search.OnSearch += (sender, args) => UpdateNodes(); CanRevertPayFromOrder = CommonServices.PermissionService.ValidateUserPresetPermission("can_revert_pay_from_order", CurrentUser.Id); GetLastBalance(); FillSumToAllocate(); CurrentBalance = SumToAllocate - AllocatedSum; CreateCommands(); GetCounterpatyDebt(); HasPaymentItems = Entity.PaymentItems.Any(); Entity.ObservableItems.ElementRemoved += (list, idx, aObject) => HasPaymentItems = Entity.PaymentItems.Any(); if (HasPaymentItems) { UpdateAllocatedNodes(); } }
public PaymentLoaderViewModel( IUnitOfWorkFactory unitOfWorkFactory, ICommonServices commonServices, INavigationManager navigationManager, IOrganizationParametersProvider organizationParametersProvider, IProfitCategoryProvider profitCategoryProvider, IPaymentsRepository paymentsRepository, ICounterpartyRepository counterpartyRepository, IOrderRepository orderRepository) : base(unitOfWorkFactory, commonServices?.InteractiveService, navigationManager) { if (commonServices == null) { throw new ArgumentNullException(nameof(commonServices)); } _profitCategoryProvider = profitCategoryProvider ?? throw new ArgumentNullException(nameof(profitCategoryProvider)); _paymentsRepository = paymentsRepository ?? throw new ArgumentNullException(nameof(paymentsRepository)); _counterpartyRepository = counterpartyRepository ?? throw new ArgumentNullException(nameof(counterpartyRepository)); _orderRepository = orderRepository ?? throw new ArgumentNullException(nameof(orderRepository)); if (organizationParametersProvider == null) { throw new ArgumentNullException(nameof(organizationParametersProvider)); } InteractiveService = commonServices.InteractiveService; _vodovozId = organizationParametersProvider.VodovozOrganizationId; _vodovozSouthId = organizationParametersProvider.VodovozSouthOrganizationId; UoW = unitOfWorkFactory.CreateWithoutRoot(); TabName = "Выгрузка выписки из банк-клиента"; GetOrganisations(); CreateCommands(); GetProfitCategories(); }
public PaymentsStatusUpdater( IPaymentsRepository paymentsRepository, IPrivateBlockchainFacadeClient pbfClient, IWalletManagementClient walletManagementClient, IBlockchainEncodingService blockchainEncodingService, ITransactionScopeHandler transactionScopeHandler, IPaymentRequestBlockchainRepository paymentRequestBlockchainRepository, ISettingsService settingsService, IRabbitPublisher <PartnersPaymentStatusUpdatedEvent> statusUpdatePublisher, IEligibilityEngineClient eligibilityEngineClient, string tokenSymbol) { _paymentsRepository = paymentsRepository; _pbfClient = pbfClient; _walletManagementClient = walletManagementClient; _blockchainEncodingService = blockchainEncodingService; _transactionScopeHandler = transactionScopeHandler; _paymentRequestBlockchainRepository = paymentRequestBlockchainRepository; _settingsService = settingsService; _statusUpdatePublisher = statusUpdatePublisher; _eligibilityEngineClient = eligibilityEngineClient; _tokenSymbol = tokenSymbol; }
public IPaymentsRepository GetPaymentsRepository() { return s_paymentsRepository ?? (s_paymentsRepository = new PaymentsRepository(this)); }
public Controller(IPaymentsRepository paymentsRepository, IPaymentsMapper paymentsMapper) { this.paymentsRepository = paymentsRepository; this.paymentsMapper = paymentsMapper; }