mirror of
https://github.com/bitwarden/server
synced 2025-12-26 05:03:18 +00:00
* Added invoices and transaction history endpoints. Added cursor paging for each * Removed try/catch since it's handled by middleware. Updated condition to use pattern matching * Added unit tests for PaymentHistoryService * Removed organizationId from account billing controller endpoints
15 lines
645 B
C#
15 lines
645 B
C#
using Bit.Core.Entities;
|
|
using Bit.Core.Enums;
|
|
|
|
#nullable enable
|
|
|
|
namespace Bit.Core.Repositories;
|
|
|
|
public interface ITransactionRepository : IRepository<Transaction, Guid>
|
|
{
|
|
Task<ICollection<Transaction>> GetManyByUserIdAsync(Guid userId, int? limit = null, DateTime? startAfter = null);
|
|
Task<ICollection<Transaction>> GetManyByOrganizationIdAsync(Guid organizationId, int? limit = null, DateTime? startAfter = null);
|
|
Task<ICollection<Transaction>> GetManyByProviderIdAsync(Guid providerId, int? limit = null, DateTime? startAfter = null);
|
|
Task<Transaction?> GetByGatewayIdAsync(GatewayType gatewayType, string gatewayId);
|
|
}
|