예제 #1
0
        }         // DoZooplaCheck

        private void UpdateLogicalGlue(PreliminaryData preData)
        {
            if (!this.logicalGlueEnabled)
            {
                Log.Debug("Not updating Logical Glue data for {0}: updating disabled.", OuterContextDescription);
                return;
            }             // if

            if (preData.TypeOfBusiness.IsRegulated())
            {
                Log.Debug("Not updating Logical Glue data for {0}: regulated company.", OuterContextDescription);
                return;
            }             // if

            Log.Debug("Updating Logical Glue data for {0}: non-regulated company.", OuterContextDescription);

            try {
                InjectorStub.GetEngine().GetInference(
                    this.customerID,
                    this.monthlyPayment,
                    false,
                    GetInferenceMode.DownloadIfOld
                    );
                Log.Debug("Updated Logical Glue data for customer {0}.", this.customerID);
            } catch (Exception e) {
                Log.Warn(e, "Logical Glue data was not updated for customer {0}.", this.customerID);
            }     // try
        }         // UpdateLogicalGlue
예제 #2
0
        }         // DoCompanyCheck

        private void DoAmlCheck(PreliminaryData preData)
        {
            if (preData.LastStartedMainStrategyEndTime.HasValue)
            {
                new AmlChecker(this.customerID).PreventSilentAutomation().Execute();
            }
        }         // DoAmlCheck
예제 #3
0
        }         // DoConsumerCheck

        private void DoCompanyCheck(PreliminaryData preData)
        {
            if (preData.LastStartedMainStrategyEndTime.HasValue)
            {
                new ExperianCompanyCheck(this.customerID, false).PreventSilentAutomation().Execute();
            }
        }         // DoCompanyCheck
예제 #4
0
        }         // UpdateMarketplaces

        private void DoConsumerCheck(PreliminaryData preData)
        {
            new ExperianConsumerCheck(this.customerID, null, false).PreventSilentAutomation().Execute();

            if (preData.TypeOfBusiness != TypeOfBusiness.Entrepreneur)
            {
                Strategies.Library.Instance.DB.ForEachRowSafe(
                    sr => {
                    int appDirId         = sr["DirId"];
                    string appDirName    = sr["DirName"];
                    string appDirSurname = sr["DirSurname"];

                    if (string.IsNullOrEmpty(appDirName) || string.IsNullOrEmpty(appDirSurname))
                    {
                        return;
                    }

                    var directorExperianConsumerCheck = new ExperianConsumerCheck(this.customerID, appDirId, false);
                    directorExperianConsumerCheck.Execute();
                },
                    "GetCustomerDirectorsForConsumerCheck",
                    CommandSpecies.StoredProcedure,
                    new QueryParameter("CustomerId", this.customerID)
                    );
            }     // if
        }         // DoConsumerCheck
예제 #5
0
        }         // UpdateLogicalGlue

        private void ExecuteAdditionalStrategies()
        {
            var preData = new PreliminaryData(this.customerID);

            DoConsumerCheck(preData);
            DoCompanyCheck(preData);
            DoAmlCheck(preData);
            DoBwaCheck(preData);
            DoZooplaCheck();
            UpdateLogicalGlue(preData); // Must be after DoCompanyCheck because uses ExperianRefNum.
        }                               // ExecuteAdditionalStrategies
예제 #6
0
        }         // DoAmlCheck

        private void DoBwaCheck(PreliminaryData preData)
        {
            bool shouldRunBwa =
                preData.AppBankAccountType == "Personal" &&
                preData.BwaBusinessCheck == "1" &&
                preData.AppSortCode != null &&
                preData.AppAccountNumber != null;

            if (shouldRunBwa)
            {
                new BwaChecker(this.customerID).Execute();
            }
        }         // DoBwaCheck