from culqi2.utils.errors import ErrorMessage, NotAllowedError
from culqi2.utils.urls import URL
from culqi2.resources.base import Resource

__all__ = ["Event"]


class Event(Resource):
    endpoint = URL.EVENT

    def create(self, data, **options):
        raise NotAllowedError(ErrorMessage.NOT_ALLOWED)

    def update(self, id_, data=None, **options):
        raise NotAllowedError(ErrorMessage.NOT_ALLOWED)

    def delete(self, id_, data=None, **options):
        raise NotAllowedError(ErrorMessage.NOT_ALLOWED)
