# This file was auto-generated by Fern from our API Definition.

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class CoverageValueUnit(str, enum.Enum):
    PERCENT = "PERCENT"
    CURRENCY = "CURRENCY"
    COUNT = "COUNT"

    def visit(
        self,
        percent: typing.Callable[[], T_Result],
        currency: typing.Callable[[], T_Result],
        count: typing.Callable[[], T_Result],
    ) -> T_Result:
        if self is CoverageValueUnit.PERCENT:
            return percent()
        if self is CoverageValueUnit.CURRENCY:
            return currency()
        if self is CoverageValueUnit.COUNT:
            return count()
