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

from typing import Optional
from typing_extensions import Literal

from pydantic import Field as FieldInfo

from ...._models import BaseModel

__all__ = ["Barcode"]


class Barcode(BaseModel):
    api_type: Optional[str] = FieldInfo(alias="_type", default=None)

    assigned_customer: Optional[object] = FieldInfo(alias="assignedCustomer", default=None)
    """Customer map to which this ticket is assigned."""

    code: Optional[str] = None
    """The barcode code itself"""

    image_url: Optional[str] = FieldInfo(alias="imageUrl", default=None)
    """A link points to an external resource. For images we using IMGX.

    To get the right size see link "https://docs.imgix.com/apis/url/size"
    """

    type: Optional[Literal["CODE39", "CODE128", "EAN13", "INTERLEAVED2OF5", "PDF417", "QR"]] = None
    """Type of barcode"""

    url: Optional[str] = None
    """A link points to an external resource. For images we using IMGX.

    To get the right size see link "https://docs.imgix.com/apis/url/size"
    """
