feat: add get payments and orders

This commit is contained in:
2026-05-17 15:55:51 +03:00
parent 50bfaa9264
commit e41e89277f
7 changed files with 107 additions and 5 deletions

View File

@@ -29,6 +29,11 @@ class IPaymentRepository(ABC):
raise NotImplementedError
@abstractmethod
async def get_by_id_for_user(self,*,payment_id:str,user_id:str) -> PaymentEntity | None:
raise NotImplementedError
@abstractmethod
async def list_by_user_id(self,*,user_id:str,limit:int,offset:int) -> list[PaymentEntity]:
raise NotImplementedError