15 lines
641 B
C#
15 lines
641 B
C#
using Fitness_core_BE.Models;
|
|
|
|
namespace Fitness_core_BE.Interfaces
|
|
{
|
|
public interface IPaymentRepository
|
|
{
|
|
Task<PaymentTransaction> CreatePaymentAttemptAsync(PaymentTransaction attempt);
|
|
Task<PaymentTransaction?> GetPaymentByIdAsync(Guid attemptId);
|
|
Task<List<PaymentTransaction>> GetPaymentsByCustomerInvoiceIdAsync(Guid customerInvoiceId);
|
|
Task<List<PaymentTransaction>> GetPaymentsByClientInvoiceIdAsync(Guid clientInvoiceId);
|
|
Task<PaymentTransaction> UpdatePaymentAttemptAsync(PaymentTransaction attempt);
|
|
Task<decimal> GetApprovedPaidAmountAsync(Guid customerInvoiceId);
|
|
}
|
|
}
|