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

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class Currency(str, enum.Enum):
    USD = "usd"
    EUR = "eur"

    def visit(self, usd: typing.Callable[[], T_Result], eur: typing.Callable[[], T_Result]) -> T_Result:
        if self is Currency.USD:
            return usd()
        if self is Currency.EUR:
            return eur()
