87c807c16c
- Implemented ChequeBooksPage for viewing and filtering cheque books. - Added NewReceivedChequePage for recording received cheques. - Created ReceivedChequesPage for listing and managing received cheques. - Introduced API endpoints for bank accounts, cheque books, and received cheques. - Defined types for payments including bank accounts, cheque books, and received cheques.
15 lines
540 B
C#
15 lines
540 B
C#
using Distribution.Models;
|
|
|
|
namespace Distribution.Features.BankAccount;
|
|
|
|
public interface IBankAccountRepository
|
|
{
|
|
Task<Models.BankAccount?> GetByIdAsync(Guid id);
|
|
Task<List<Models.BankAccount>> ListAsync(BankAccountType? accountType);
|
|
Task<List<string>> ListCashAccountTypeNamesAsync();
|
|
Task<bool> ExistsByNameAsync(BankAccountType type, string accountName, Guid? excludeId = null);
|
|
Task AddAsync(Models.BankAccount account);
|
|
void Update(Models.BankAccount account);
|
|
void Remove(Models.BankAccount account);
|
|
}
|