"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""

from __future__ import annotations
from enum import Enum
from polar_sdk.types import BaseModel
from polar_sdk.utils import validate_const
import pydantic
from pydantic.functional_validators import AfterValidator
from typing_extensions import Annotated, TypedDict


class CustomerBenefitGrantDownloadablesUpdateBenefitType(str, Enum):
    DOWNLOADABLES = "downloadables"


class CustomerBenefitGrantDownloadablesUpdateTypedDict(TypedDict):
    benefit_type: CustomerBenefitGrantDownloadablesUpdateBenefitType


class CustomerBenefitGrantDownloadablesUpdate(BaseModel):
    BENEFIT_TYPE: Annotated[
        Annotated[
            CustomerBenefitGrantDownloadablesUpdateBenefitType,
            AfterValidator(
                validate_const(
                    CustomerBenefitGrantDownloadablesUpdateBenefitType.DOWNLOADABLES
                )
            ),
        ],
        pydantic.Field(alias="benefit_type"),
    ] = CustomerBenefitGrantDownloadablesUpdateBenefitType.DOWNLOADABLES
