9 lines
254 B
Python
9 lines
254 B
Python
from abc import ABC, abstractmethod
|
|
|
|
|
|
class BaseInboundHandler(ABC):
|
|
@abstractmethod
|
|
def verify(self, payload: dict, headers: dict, secret: str) -> bool: ...
|
|
|
|
@abstractmethod
|
|
def process(self, event_type: str, payload: dict) -> dict: ...
|