public PaymentRequestExpiraitonHandler(
     TimeSpan period,
     ILogFactory logFactory,
     IPaymentRequestService paymentRequestService) : base(period, logFactory)
 {
     _paymentRequestService = paymentRequestService;
 }
Esempio n. 2
0
 public TransactionsManager(
     ITransactionsService transactionsService,
     IPaymentRequestService paymentRequestService)
 {
     _transactionsService   = transactionsService;
     _paymentRequestService = paymentRequestService;
 }
Esempio n. 3
0
 public OrdersController(
     IPaymentRequestService paymentRequestService,
     IOrderService orderService,
     ILog log)
 {
     _paymentRequestService = paymentRequestService;
     _orderService          = orderService;
     _log = log;
 }
Esempio n. 4
0
 public SendAssetViewModel(ITransactionService transactionService, IPaymentRequestService paymentRequestService, IAppData appData, IUserData userData, ISecureStorage secureStorage, IConnectivity connectivity)
 {
     this.transactionService    = transactionService;
     this.paymentRequestService = paymentRequestService;
     this.appData       = appData;
     this.userData      = userData;
     this.secureStorage = secureStorage;
     this.connectivity  = connectivity;
 }
Esempio n. 5
0
 public PaymentController(
     IPaymentProcessingService paymentProcessingService,
     IPaymentRequestService paymentRequestService,
     ILogger <PaymentController> log)
 {
     _paymentProcessingService = paymentProcessingService;
     _paymentRequestService    = paymentRequestService;
     _log = log;
 }
Esempio n. 6
0
        //
        // GET: /Procurement/FetchData/

        public FetchDataController(IPaymentRequestService paymentRequestService,
                                   ITransportBidQuotationHeaderService bidQuotationHeader, IBidService bidService, IUserAccountService userAccountService, IBidWinnerService bidWinnerService)
        {
            _paymentRequestService = paymentRequestService;
            _bidService            = bidService;
            _userAccountService    = userAccountService;
            _bidWinnerService      = bidWinnerService;
            _bidQuotationHeader    = bidQuotationHeader;
        }
Esempio n. 7
0
 //
 // GET: /Procurement/FetchData/
 public FetchDataController(IPaymentRequestService paymentRequestService,
     ITransportBidQuotationHeaderService bidQuotationHeader,IBidService bidService, IUserAccountService userAccountService, IBidWinnerService bidWinnerService)
 {
     _paymentRequestService = paymentRequestService;
     _bidService = bidService;
     _userAccountService = userAccountService;
     _bidWinnerService = bidWinnerService;
     _bidQuotationHeader = bidQuotationHeader;
 }
 public OrdersController(
     [NotNull] IPaymentRequestService paymentRequestService,
     [NotNull] IOrderService orderService,
     [NotNull] ILogFactory logFactory)
 {
     _paymentRequestService = paymentRequestService;
     _orderService          = orderService;
     _log = logFactory.CreateLog(this);
 }
Esempio n. 9
0
 public PaymentRequestExpiraitonHandler(
     TimeSpan period,
     ILog log,
     IPaymentRequestService paymentRequestService) : base(
         nameof(PaymentRequestExpiraitonHandler), (int)period.TotalMilliseconds, log)
 {
     _paymentRequestService = paymentRequestService;
     _log = log?.CreateComponentScope(nameof(PaymentRequestExpiraitonHandler)) ??
            throw new ArgumentNullException(nameof(log));
 }
Esempio n. 10
0
        public ReceivePaymentViewModel(IPaymentRequestService paymentRequestService)
        {
            this.paymentRequestService = paymentRequestService;

            ReturnCommand = new XCommand(() =>
            {
                Amount         = "";
                NewPaymentMode = true;
            });
        }
Esempio n. 11
0
 public TransactionsController(
     ITransactionsService transactionsService,
     IPaymentRequestService paymentRequestService,
     ILog log,
     ITransactionsManager transactionsManager)
 {
     _paymentRequestService = paymentRequestService;
     _transactionsService   = transactionsService;
     _log = log;
     _transactionsManager = transactionsManager;
 }
 public TransactionsController(
     ITransactionsService transactionsService,
     IPaymentRequestService paymentRequestService,
     ILogFactory logFactory,
     ITransactionsManager transactionsManager)
 {
     _paymentRequestService = paymentRequestService;
     _transactionsService   = transactionsService;
     _log = logFactory.CreateLog(this);
     _transactionsManager = transactionsManager;
 }
 public PaymentRequestController(
     IPaymentRequestService paymentRequestService,
     IPayCallbackClient payCallbackClient,
     IHeadersHelper headersHelper,
     ILogFactory logFactory)
 {
     _paymentRequestService =
         paymentRequestService ?? throw new ArgumentNullException(nameof(paymentRequestService));
     _payCallbackClient = payCallbackClient ?? throw new ArgumentNullException(nameof(payCallbackClient));
     _headersHelper     = headersHelper ?? throw new ArgumentNullException(nameof(headersHelper));
     _log = logFactory?.CreateLog(this) ?? throw new ArgumentNullException(nameof(logFactory));
 }
        public void Setup()
        {
            _cheapPaymentGateway     = new Mock <ICheapPaymentGateway>();
            _expensivePaymentGateway = new Mock <IExpensivePaymentGateway>();
            _paymentRepository       = new Mock <IPaymentRepository>();
            _paymentStateRepository  = new Mock <IPaymentStateRepository>();

            _paymentRequestService = new PaymentRequestService(_cheapPaymentGateway.Object, _expensivePaymentGateway.Object, _paymentRepository.Object, _paymentStateRepository.Object);

            _paymentRepository.Setup(s => s.Create(It.IsAny <Payment>())).Returns((Payment paymentEntity) => Task.FromResult(paymentEntity));
            _paymentStateRepository.Setup(s => s.Create(It.IsAny <PaymentState>())).Returns((PaymentState paymentStateEntity) => Task.FromResult(paymentStateEntity));
        }
Esempio n. 15
0
 public PaymentRequestController()
 {
     _purchaseOrderService          = new PurchaseOrderService(new PurchaseOrderRepository(), new PurchaseOrderValidator());
     _purchaseOrderDetailService    = new PurchaseOrderDetailService(new PurchaseOrderDetailRepository(), new PurchaseOrderDetailValidator());
     _paymentRequestService         = new PaymentRequestService(new PaymentRequestRepository(), new PaymentRequestValidator());
     _contactService                = new ContactService(new ContactRepository(), new ContactValidator());
     _purchaseReceivalService       = new PurchaseReceivalService(new PurchaseReceivalRepository(), new PurchaseReceivalValidator());
     _purchaseReceivalDetailService = new PurchaseReceivalDetailService(new PurchaseReceivalDetailRepository(), new PurchaseReceivalDetailValidator());
     _paymentVoucherDetailService   = new PaymentVoucherDetailService(new PaymentVoucherDetailRepository(), new PaymentVoucherDetailValidator());
     _payableService                = new PayableService(new PayableRepository(), new PayableValidator());
     _itemService = new ItemService(new ItemRepository(), new ItemValidator());
 }
Esempio n. 16
0
 public PaymentRequestController(IBusinessProcessService _paramBusinessProcessService
                                 , IBusinessProcessStateService _paramBusinessProcessStateService
                                 , IApplicationSettingService _paramApplicationSettingService
                                 , IPaymentRequestService _paramPaymentRequestservice
                                 , ITransportOrderService _paramTransportOrderService
                                 )
 {
     _BusinessProcessService      = _paramBusinessProcessService;
     _BusinessProcessStateService = _paramBusinessProcessStateService;
     _ApplicationSettingService   = _paramApplicationSettingService;
     _PaymentRequestservice       = _paramPaymentRequestservice;
     _TransportOrderService       = _paramTransportOrderService;
 }
Esempio n. 17
0
 public PaymentRequestsController(
     IPaymentRequestService paymentRequestService,
     IRefundService refundService,
     IAssetsAvailabilityService assetsAvailabilityService,
     ILog log,
     IPaymentRequestDetailsBuilder paymentRequestDetailsBuilder)
 {
     _paymentRequestService        = paymentRequestService;
     _refundService                = refundService;
     _assetsAvailabilityService    = assetsAvailabilityService;
     _paymentRequestDetailsBuilder = paymentRequestDetailsBuilder;
     _log = log.CreateComponentScope(nameof(PaymentRequestsController));
 }
Esempio n. 18
0
 public PaymentRequestsController(
     [NotNull] IPaymentRequestService paymentRequestService,
     [NotNull] IRefundService refundService,
     [NotNull] IAssetSettingsService assetSettingsService,
     [NotNull] ILogFactory logFactory,
     [NotNull] IPaymentRequestDetailsBuilder paymentRequestDetailsBuilder)
 {
     _paymentRequestService        = paymentRequestService ?? throw new ArgumentNullException(nameof(paymentRequestService));
     _refundService                = refundService ?? throw new ArgumentNullException(nameof(refundService));
     _assetSettingsService         = assetSettingsService ?? throw new ArgumentNullException(nameof(assetSettingsService));
     _paymentRequestDetailsBuilder = paymentRequestDetailsBuilder ?? throw new ArgumentNullException(nameof(paymentRequestDetailsBuilder));
     _log = logFactory.CreateLog(this);
 }
 public PaymentRequestController(IBusinessProcessService _paramBusinessProcessService
                                 , IBusinessProcessStateService _paramBusinessProcessStateService
                                 , IApplicationSettingService _paramApplicationSettingService
                                 , IPaymentRequestService _paramPaymentRequestservice
                                 , ITransportOrderService _paramTransportOrderService
                                 )
 {
     _BusinessProcessService=_paramBusinessProcessService;
         _BusinessProcessStateService=_paramBusinessProcessStateService;
         _ApplicationSettingService=_paramApplicationSettingService;
         _PaymentRequestservice =_paramPaymentRequestservice;
         _TransportOrderService = _paramTransportOrderService;
 }
Esempio n. 20
0
 public ContractAdministrationController(IPaymentRequestService paymentRequestService, ITransporterService transporterService,
                                         ITransportOrderService transportOrderService, IUserAccountService userAccountService, IDispatchAllocationService dispatchAllocationService,
                                         IWorkflowStatusService workflowStatusService, IDeliveryService distributionService, IBidWinnerService bidWinnerService,
                                         Cats.Services.EarlyWarning.IAdminUnitService adminUnitService)
 {
     _adminUnitService          = adminUnitService;
     _paymentRequestService     = paymentRequestService;
     _transporterService        = transporterService;
     _transportOrderService     = transportOrderService;
     _userAccountService        = userAccountService;
     _dispatchAllocationService = dispatchAllocationService;
     _workflowStatusService     = workflowStatusService;
     _distributionService       = distributionService;
     _bidWinnerService          = bidWinnerService;
 }
 public ContractAdministrationController(IPaymentRequestService paymentRequestService, ITransporterService transporterService,
     ITransportOrderService transportOrderService, IUserAccountService userAccountService, IDispatchAllocationService dispatchAllocationService, 
     IWorkflowStatusService workflowStatusService, IDeliveryService distributionService, IBidWinnerService bidWinnerService,
     Cats.Services.EarlyWarning.IAdminUnitService adminUnitService)
 {
     _adminUnitService = adminUnitService;
     _paymentRequestService = paymentRequestService;
     _transporterService = transporterService;
     _transportOrderService = transportOrderService;
     _userAccountService = userAccountService;
     _dispatchAllocationService = dispatchAllocationService;
     _workflowStatusService = workflowStatusService;
     _distributionService = distributionService;
     _bidWinnerService = bidWinnerService;
 }
Esempio n. 22
0
 public TransactionsManager(
     [NotNull] ITransactionsService transactionsService,
     [NotNull] IPaymentRequestService paymentRequestService,
     [NotNull] ILogFactory logFactory,
     [NotNull] IWalletHistoryService walletHistoryService,
     int transactionConfirmationCount,
     [NotNull] IConfirmationsService confirmationsService,
     [NotNull] IBcnWalletUsageService bcnWalletUsageService)
 {
     _transactionsService          = transactionsService ?? throw new ArgumentNullException(nameof(transactionsService));
     _paymentRequestService        = paymentRequestService ?? throw new ArgumentNullException(nameof(paymentRequestService));
     _walletHistoryService         = walletHistoryService ?? throw new ArgumentNullException(nameof(walletHistoryService));
     _transactionConfirmationCount = transactionConfirmationCount;
     _confirmationsService         = confirmationsService ?? throw new ArgumentNullException(nameof(confirmationsService));
     _bcnWalletUsageService        = bcnWalletUsageService ?? throw new ArgumentNullException(nameof(bcnWalletUsageService));
     _log = logFactory.CreateLog(this);
 }
Esempio n. 23
0
 public PaymentRequestCommandsHandler(
     ILogger <PaymentRequestCommandsHandler> logger,
     IUnitOfWork unitOfWork,
     IPaymentRequestRepository paymentRequestRepository,
     IPaymentRequestService paymentRequestService,
     IProcessMessageService processMessageService,
     ISystemDateTimeService systemDateTimeService,
     IInterfaceEventLogService interfaceEventLogService)
 {
     _logger = logger ?? throw new ArgumentNullException(nameof(logger));
     _paymentRequestRepository = paymentRequestRepository ?? throw new ArgumentNullException(nameof(paymentRequestRepository));
     _unitOfWork               = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork));
     _paymentRequestService    = paymentRequestService ?? throw new ArgumentNullException(nameof(paymentRequestService));
     _processMessageService    = processMessageService ?? throw new ArgumentNullException(nameof(processMessageService));
     _systemDateTimeService    = systemDateTimeService ?? throw new ArgumentNullException(nameof(systemDateTimeService));
     _interfaceEventLogService = interfaceEventLogService ?? throw new ArgumentNullException(nameof(interfaceEventLogService));
 }
        public void Setup()
        {
            cheapPayGateway     = new Mock <ICheapPaymentGateway>();
            expensivePayGateway = new Mock <IExpensivePaymentGateway>();
            mapper             = new Mock <IMapper>();
            payRepository      = new Mock <IPaymentRepository>();
            PayStateRepository = new Mock <IPaymentStateRepository>();

            PayReqService = new PaymentRequestService(cheapPayGateway.Object, expensivePayGateway.Object, payRepository.Object, PayStateRepository.Object);
            mapper.Setup(c => c.Map <PayRequestDto, Payment>(It.IsAny <PayRequestDto>())).Returns((PayRequestDto pr) => new Payment()
            {
                Amount = pr.Amount, CardHolder = pr.CardHolder, CreditCardNumber = pr.CreditCardNumber, ExpirationDate = pr.ExpirationDate, SecurityCode = pr.SecurityCode
            });

            payRepository.Setup(c => c.Create(It.IsAny <Payment>())).Returns((Payment payEntity) => payEntity);
            PayStateRepository.Setup(c => c.Create(It.IsAny <PaymentState>())).Returns((PaymentState payStateEntity) => payStateEntity);
        }
Esempio n. 25
0
        public void Setup()
        {
            _cheapPaymentGateway     = new Mock <ICheapPaymentGateway>();
            _expensivePaymentGateway = new Mock <IExpensivePaymentGateway>();
            _mapper                 = new Mock <IMapper>();
            _paymentRepository      = new Mock <IPaymentRepository>();
            _paymentStateRepository = new Mock <IPaymentStateRepository>();

            _paymentRequestService = new PaymentRequestService(_cheapPaymentGateway.Object, _expensivePaymentGateway.Object, _mapper.Object, _paymentRepository.Object, _paymentStateRepository.Object);

            _mapper.Setup(s => s.Map <PaymentRequestDto, Payment>(It.IsAny <PaymentRequestDto>())).Returns((PaymentRequestDto pr) => new Payment()
            {
                Amount = pr.Amount, CardHolder = pr.CardHolder, CreditCardNumber = pr.CreditCardNumber, ExpirationDate = pr.ExpirationDate, SecurityCode = pr.SecurityCode
            });
            _paymentRepository.Setup(s => s.Create(It.IsAny <Payment>())).Returns((Payment paymentEntity) => Task.FromResult(paymentEntity));
            _paymentStateRepository.Setup(s => s.Create(It.IsAny <PaymentState>())).Returns((PaymentState paymentStateEntity) => Task.FromResult(paymentStateEntity));
        }
 public ValidatedPaymentRequestController(IBusinessProcessService paramBusinessProcessService
                                 , IBusinessProcessStateService paramBusinessProcessStateService
                                 , IApplicationSettingService paramApplicationSettingService
                                 , IPaymentRequestService paramPaymentRequestservice
                                 , ITransportOrderService paramTransportOrderService
                                 , ITransporterAgreementVersionService transporterAgreementVersionService
                                 , IWorkflowStatusService workflowStatusService, ITransporterService transporterService
                                 , ITransporterChequeService transporterChequeService, IUserProfileService userProfileService)
 {
     _businessProcessService = paramBusinessProcessService;
         _businessProcessStateService = paramBusinessProcessStateService;
         _applicationSettingService = paramApplicationSettingService;
         _paymentRequestservice = paramPaymentRequestservice;
         _transportOrderService = paramTransportOrderService;
         _transporterAgreementVersionService = transporterAgreementVersionService;
         _workflowStatusService = workflowStatusService;
         _transporterService = transporterService;
         _transporterChequeService = transporterChequeService;
          _userProfileService = userProfileService;
 }
Esempio n. 27
0
 public RefundService(
     IPaymentRequestService paymentRequestService,
     ITransactionsService transactionsService,
     ITransferService transferService,
     TimeSpan refundExpirationPeriod,
     ITransactionPublisher transactionPublisher,
     ILog log,
     IBlockchainAddressValidator blockchainAddressValidator)
 {
     _paymentRequestService =
         paymentRequestService ?? throw new ArgumentNullException(nameof(paymentRequestService));
     _transactionsService    = transactionsService ?? throw new ArgumentNullException(nameof(transactionsService));
     _transferService        = transferService ?? throw new ArgumentNullException(nameof(transferService));
     _refundExpirationPeriod = refundExpirationPeriod;
     _transactionPublisher   =
         transactionPublisher ?? throw new ArgumentNullException(nameof(transactionPublisher));
     _log = log ?? throw new ArgumentNullException(nameof(log));
     _blockchainAddressValidator = blockchainAddressValidator ??
                                   throw new ArgumentNullException(nameof(blockchainAddressValidator));
 }
 public RefundService(
     [NotNull] IPaymentRequestService paymentRequestService,
     [NotNull] ITransactionsService transactionsService,
     [NotNull] ITransferService transferService,
     TimeSpan refundExpirationPeriod,
     [NotNull] ITransactionPublisher transactionPublisher,
     [NotNull] ILogFactory logFactory,
     [NotNull] IBlockchainAddressValidator blockchainAddressValidator)
 {
     _paymentRequestService =
         paymentRequestService ?? throw new ArgumentNullException(nameof(paymentRequestService));
     _transactionsService    = transactionsService ?? throw new ArgumentNullException(nameof(transactionsService));
     _transferService        = transferService ?? throw new ArgumentNullException(nameof(transferService));
     _refundExpirationPeriod = refundExpirationPeriod;
     _transactionPublisher   =
         transactionPublisher ?? throw new ArgumentNullException(nameof(transactionPublisher));
     _log = logFactory.CreateLog(this);
     _blockchainAddressValidator = blockchainAddressValidator ??
                                   throw new ArgumentNullException(nameof(blockchainAddressValidator));
 }
 public PaymentController(IPaymentRequestService paymentRequestService, ILogger <PaymentController> logger)
 {
     _logger = logger;
     _paymentRequestService = paymentRequestService;
 }
Esempio n. 30
0
 //
 // GET: /Procurement/FetchData/
 public FetchDataController(IPaymentRequestService paymentRequestService, IBidService bidService)
 {
     _paymentRequestService = paymentRequestService;
     _bidService = bidService;
 }
Esempio n. 31
0
 public ValuesController(IPaymentRequestService paymentRequestService)
 {
     this.ipay = paymentRequestService;
 }
Esempio n. 32
0
 public HomeController(ITransporterChequeService transporterChequeService, IPaymentRequestService paymentRequestServvice, IUserProfileService userProfileService)
 {
     _transporterChequeService = transporterChequeService;
     _paymentRequestServvice = paymentRequestServvice;
     _userProfileService = userProfileService;
 }
Esempio n. 33
0
 public SettlementProjection(IPaymentRequestService paymentRequestService)
 {
     _paymentRequestService = paymentRequestService;
 }