dc7e7a70fc
Introduced FlatPaymentController under Distribution.Features.Payment, providing GET and POST endpoints at /api/payments. Supports listing, retrieving, and creating payments with filtering and error handling. Business logic is delegated to PaymentService.
13 lines
419 B
C#
13 lines
419 B
C#
using Distribution.Models;
|
|
|
|
namespace Distribution.Features.Payment;
|
|
|
|
public interface IPaymentRepository
|
|
{
|
|
Task<Models.Payment?> GetByIdAsync(Guid id);
|
|
Task<List<Models.Payment>> GetAllAsync(Guid? storeId, Guid? saleId, int page, int pageSize);
|
|
Task<int> GetCountAsync(Guid? storeId, Guid? saleId);
|
|
Task<List<Models.Payment>> GetBySaleIdAsync(Guid saleId);
|
|
Task AddAsync(Models.Payment payment);
|
|
}
|