public CreditCardExtreDischargeDomainEntity With(
            decimal dischargeAmount, DateTime createDate,
            CreditCardExtreDomainEntity creditCardExtre, AccountTransactionDomainEntity accountTransaction)
        {
            DischargeAmount    = dischargeAmount;
            CreateDate         = createDate;
            CreditCardExtre    = creditCardExtre ?? throw new CommonException.RequiredParameterMissingException(nameof(creditCardExtre));
            AccountTransaction = accountTransaction ?? throw new CommonException.RequiredParameterMissingException(nameof(accountTransaction));

            return(this);
        }
        public List <CreditCardPaymentDomainEntity> GetListByCreditCardExtre(CreditCardExtreDomainEntity creditCardExtre)
        {
            var fromDate     = creditCardExtre.ExtreDate.AddMonths(-1);
            var transactions = coreContext.Query <IAccountTransactionRepository>()
                               .GetLastOutgoingDateRangeListByTransactionOwner(creditCardExtre.CreditCard, fromDate, creditCardExtre.ExtreDate);

            return(GetOrderedDescListBy(
                       ccp =>
                       transactions.Select(t => t.TransactionId).Contains(ccp.AccountTransactionId),
                       ccp =>
                       ccp.InstalmentDate));
        }
 public CreditCardExtreDischargeDomainEntity GetByCreditCardExtre(CreditCardExtreDomainEntity creditCardExtre)
 {
     return(GetFirstBy(
                cced =>
                cced.CreditCardExtreId == creditCardExtre.CreditCardExtreId));
 }