# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import List, Optional

from pydantic import Field as FieldInfo

from ...._models import BaseModel

__all__ = ["RewardsTierMap"]


class RewardsTierMap(BaseModel):
    id: Optional[int] = None
    """The ID of the rewards tier"""

    color: Optional[str] = None
    """Color in hex "FFFFFF" | "FFF" (nullable, valid hex color)"""

    gradient_colors: Optional[List[str]] = FieldInfo(alias="gradientColors", default=None)

    max_tickets_purchased: Optional[int] = FieldInfo(alias="maxTicketsPurchased", default=None)
    """The maximum number of tickets a user purchases to stay in this tier"""

    min_tickets_purchased: Optional[int] = FieldInfo(alias="minTicketsPurchased", default=None)
    """The minimum number of tickets required to reach this tier"""

    name: Optional[str] = None
    """The name of the rewards tier"""
