Exemple #1
0
        public Agent(AutoRejectionArguments args)
        {
            this.args = args;
            Output    = new AutoRejectionOutput();

            this.oldWayAgent = new Ezbob.Backend.Strategies.AutoDecisionAutomation.AutoDecisions.Reject.Agent(
                this.args.CustomerID,
                this.args.CashRequestID,
                this.args.NLCashRequestID,
                this.args.Tag,
                this.args.DB,
                this.args.Log
                );

            Trail = new LGRejectionTrail(
                this.args.CustomerID,
                this.args.CashRequestID,
                this.args.NLCashRequestID,
                this.args.Log,
                CurrentValues.Instance.AutomationExplanationMailReciever,
                CurrentValues.Instance.MailSenderEmail,
                CurrentValues.Instance.MailSenderName
                );

            CompareTrailsQuietly = false;
        }         // constructor
Exemple #2
0
 public Approval(
     string outerContextDescription,
     bool avoidAutomaticDecision,
     bool enabled,
     int customerID,
     long cashRequestID,
     long nlCashRequestID,
     string tag,
     bool customerStatusIsEnabled,
     bool customerStatusIsWarning,
     bool autoRejectionEnabled,
     bool autoRerejectionEnabled,
     int proposedAmount,
     MedalResult medal,
     AutoRejectionOutput autoRejectionOutput,
     bool customerIsAlibaba
     ) : base(
         outerContextDescription,
         avoidAutomaticDecision,
         enabled,
         customerID,
         cashRequestID,
         nlCashRequestID,
         tag,
         customerStatusIsEnabled,
         customerStatusIsWarning,
         autoRejectionEnabled,
         autoRerejectionEnabled
         )
 {
     this.proposedAmount      = proposedAmount;
     this.medal               = medal;
     this.autoRejectionOutput = autoRejectionOutput;
     this.customerIsAlibaba   = customerIsAlibaba;
 }         // constructor
        public CalculateOfferIfPossible(
            string outerContextDescription,
            int customerID,
            long cashRequestID,
            long nlCashRequestID,
            string tag,
            AutoRejectionOutput autoRejectionOutput,
            MonthlyRepaymentData requestedLoan,
            int homeOwnerCap,
            int notHomeOwnerCap,
            int smallLoanScenarioLimit,
            bool aspireToMinSetupFee
            ) : base(outerContextDescription)
        {
            this.customerID             = customerID;
            this.cashRequestID          = cashRequestID;
            this.nlCashRequestID        = nlCashRequestID;
            this.autoRejectionOutput    = autoRejectionOutput ?? new AutoRejectionOutput();
            this.requestedLoan          = requestedLoan;
            this.homeOwnerCap           = homeOwnerCap;
            this.notHomeOwnerCap        = notHomeOwnerCap;
            this.smallLoanScenarioLimit = smallLoanScenarioLimit;
            this.aspireToMinSetupFee    = aspireToMinSetupFee;

            OfferResult     = null;
            ProposedAmount  = 0;
            this.loanSource = null;

            this.gradeID    = null;
            this.subGradeID = null;

            this.allLoanSources = ((LoanSourceName[])Enum.GetValues(typeof(LoanSourceName))).Select(x => (int)x).ToArray();

            this.medalAgent = new CalculateMedal(
                this.customerID,
                this.cashRequestID,
                this.nlCashRequestID,
                DateTime.UtcNow,
                false,
                true
                )
            {
                Tag = tag,
            };
        }         // constructor
Exemple #4
0
        public LGAgent(AutoRejectionArguments args)
        {
            this.args = args;

            Trail = new LGRejectionTrail(
                this.args.CustomerID,
                this.args.CashRequestID,
                this.args.NLCashRequestID,
                this.args.Log
                );
            Trail.SetTag(this.args.Tag).UniqueID = this.args.TrailUniqueID;

            this.oldWayAgent = new RejectionAgent(
                DB,
                Log,
                this.args.CustomerID,
                Trail.CashRequestID,
                this.args.NLCashRequestID
                );
            this.oldWayAgent.Trail.SetTag(this.args.Tag).UniqueID = this.args.TrailUniqueID;

            Output = new AutoRejectionOutput();
        }         // constructor