Sobes.tech
Middle+

klasa PayoutService: def __init__(self): # ... pass def create_payout(self, idempotency_key: str, terminal_id: int, amount: float) -> dict: """ Treba da vrati rečnik u formatu: {"payout_id": <int>, "terminal_id": <int>, "amount": <float>, "status": "success"} Garancije: - pri prvom pozivu sa novim idempotency_key — se kreira nova isplata - pri narednim pozivima sa već korišćenim idempotency_key — se vraća rezultat prvog poziva, NOVA isplata SE NE kreira - suma mora biti > 0, u suprotnom — baca se ValueError """ raise NotImplementedError