Пример #1
0
 public BillingService(
     IAuthorizationProcessor authorizationProcessor,
     IBillingProcessor billingProcessor,
     IBillingSaveProcessor billingSaveProcessor,
     IBillingSaveForInputProcessor billingSaveForInputProcessor,
     IBillingJournalizingProcessor billingJournalizingProcessor,
     IBillingSearchProcessor billingSearchProcessor,
     IBillingMemoProcessor billingMemoProcessor,
     IBillingDueAtModifyProcessor billingDueAtModifyProcessor,
     IBillingDiscountProcessor billingDiscountProcessor,
     IBillingImporterProcessor billingImporterProcessor,
     IBillingScheduledPaymentProcessor billingScheduledPaymentProcessor,
     IBillingAccountTransferProcessor billingAccountTransferProcessor,
     ILogManager logManager)
 {
     this.authorizationProcessor           = authorizationProcessor;
     this.billingProcessor                 = billingProcessor;
     this.billingSaveProcessor             = billingSaveProcessor;
     this.billingSaveForInputProcessor     = billingSaveForInputProcessor;
     this.billingJournalizingProcessor     = billingJournalizingProcessor;
     this.billingSearchProcessor           = billingSearchProcessor;
     this.billingMemoProcessor             = billingMemoProcessor;
     this.billingDueAtModifyProcessor      = billingDueAtModifyProcessor;
     this.billingDiscountProcessor         = billingDiscountProcessor;
     this.billingImporterProcessor         = billingImporterProcessor;
     this.billingScheduledPaymentProcessor = billingScheduledPaymentProcessor;
     this.billingAccountTransferProcessor  = billingAccountTransferProcessor;
     logger = logManager.GetLogger(typeof(BillingService));
 }
Пример #2
0
        /// <summary>constructor</summary>
        public BillingController(
            IBillingProcessor billingProcessor,
            IBillingSaveProcessor billingSaveProcessor,
            IBillingSaveForInputProcessor billingSaveForInputProcessor,
            IBillingJournalizingProcessor billingJournalizingProcessor,
            IBillingSearchProcessor billingSearchProcessor,
            IBillingMemoProcessor billingMemoProcessor,
            IBillingDueAtModifyProcessor billingDueAtModifyProcessor,
            IBillingDivisionContractProcessor billingDivisionContractProcessor,
            IBillingDiscountProcessor billingDiscountProcessor,
            IBillingScheduledPaymentProcessor billingScheduledPaymentProcessor,
            IBillingAccountTransferProcessor billingAccountTransferProcessor,
            IImporterSettingDetailProcessor importerSettingDetailProcessor,
            ICustomerProcessor customerProcessor,

            IBillingFileImportProcessor billingFileImportProcessor,
            IPaymentScheduleFileImportProcessor paymentScheduleFileImportProcessor,

            IBillingAccountTransferFileImportProcessor billingAccountTransferFileImportProcessor
            )
        {
            this.billingProcessor                 = billingProcessor;
            this.billingSaveProcessor             = billingSaveProcessor;
            this.billingSaveForInputProcessor     = billingSaveForInputProcessor;
            this.billingJournalizingProcessor     = billingJournalizingProcessor;
            this.billingSearchProcessor           = billingSearchProcessor;
            this.billingMemoProcessor             = billingMemoProcessor;
            this.billingDueAtModifyProcessor      = billingDueAtModifyProcessor;
            this.billingDivisionContractProcessor = billingDivisionContractProcessor;
            this.billingDiscountProcessor         = billingDiscountProcessor;
            this.billingScheduledPaymentProcessor = billingScheduledPaymentProcessor;
            this.billingAccountTransferProcessor  = billingAccountTransferProcessor;
            this.importerSettingDetailProcessor   = importerSettingDetailProcessor;
            this.customerProcessor                = customerProcessor;


            this.billingFileImportProcessor         = billingFileImportProcessor;
            this.paymentScheduleFileImportProcessor = paymentScheduleFileImportProcessor;

            this.billingAccountTransferFileImportProcessor = billingAccountTransferFileImportProcessor;
        }
Пример #3
0
        /// <summary>constructor</summary>
        public BillingAccountTransferFileImportProcessor(
            IIdenticalEntityGetByIdsQueryProcessor <Company> companyGetByIdQueryProcessor,
            ICurrencyQueryProcessor currencyQueryProcessor,
            IBillingQueryProcessor billingQueryProcessor,
            ICustomerQueryProcessor customerQueryProcessor,
            IIdenticalEntityGetByIdsQueryProcessor <PaymentAgency> paymentAgencyGetByIdsQueryProcessor,
            IImportDataProcessor importDataProcessor,
            IBillingAccountTransferProcessor billingAccountTransferProcessor
            )
        {
            this.companyGetByIdQueryProcessor        = companyGetByIdQueryProcessor;
            this.currencyQueryProcessor              = currencyQueryProcessor;
            this.billingQueryProcessor               = billingQueryProcessor;
            this.customerQueryProcessor              = customerQueryProcessor;
            this.paymentAgencyGetByIdsQueryProcessor = paymentAgencyGetByIdsQueryProcessor;
            this.importDataProcessor             = importDataProcessor;
            this.billingAccountTransferProcessor = billingAccountTransferProcessor;

            serializer = MessagePackSerializer.Get <AccountTransferSource>(new SerializationContext {
                DefaultDateTimeConversionMethod = DateTimeConversionMethod.Native
            });
        }