24 lines
1.1 KiB
C#
24 lines
1.1 KiB
C#
using General_Ledger_Service.Models;
|
|
|
|
namespace General_Ledger_Service.Interfaces.Repositories
|
|
{
|
|
public interface IBankRepository
|
|
{
|
|
Task<BankAccount?> GetByIdAsync(long bankAccountId);
|
|
Task<BankAccount> AddAsync(BankAccount bankAccount);
|
|
Task<List<BankAccount>> GetAllAsync();
|
|
Task<BankStatementLine?> GetStatementLineByIdAsync(long stmtLineId);
|
|
Task AddStatementLinesAsync(IEnumerable<BankStatementLine> lines);
|
|
|
|
Task<CashAccount> AddCashAccountAsync(CashAccount cashAccount);
|
|
Task<List<CashAccount>> GetAllCashAccountsAsync();
|
|
Task<CashAccount?> GetCashAccountByIdAsync(long cashAccountId);
|
|
Task<bool> AnyDefaultCashAccountAsync();
|
|
void RemoveCashAccount(CashAccount cashAccount);
|
|
Task<bool> CashAccountNumberExistsAsync(string accountNumber);
|
|
Task<CashAccountType?> GetCashAccountTypeByNameAsync(string name);
|
|
Task<CashAccountType> AddCashAccountTypeAsync(CashAccountType cashAccountType);
|
|
Task<List<CashAccountType>> GetAllCashAccountTypesAsync();
|
|
}
|
|
}
|