Пример #1
0
        public override IDebt CreateDebt(
            long debtId, string subscriberId, string subscriberBId, string productType, string creditType,
            decimal creditAmount, decimal serviceFee, byte status, string serviceFeeUpdateScheme,
            int serviceFeeUpdateDays, ManagerMessageInfo messageInfo, DbTransaction transaction)
        {
            _logger.LogInfo("custom CreateDebt is running");
            IDebt debt = base.CreateDebt(debtId, subscriberId, subscriberBId, productType, creditType, creditAmount, serviceFee, status,
                                         serviceFeeUpdateScheme, serviceFeeUpdateDays, messageInfo, transaction);

            string transactionID = (string)messageInfo.Message.Parameters["transactionID"];

            _logger.LogInfo("TRANSACTION ID is " + transactionID);
            CreateTransaction(debtId, transactionID, transaction);

            return(debt);
        }
Пример #2
0
 public OverdueInterest(IDebt debt) : base(debt)
 {
 }
Пример #3
0
 public DebtDecorator(IDebt debt)
 {
     _debt = debt;
 }
Пример #4
0
 public void addAmount(IDebt debit)
 {
     Transactions.Add(debit);
 }
Пример #5
0
 public Insurance(IDebt debt) : base(debt)
 {
 }