# Generated by ariadne-codegen
# Source: queries.graphql

from typing import Any, List, Optional

from .base_model import BaseModel
from .enums import ProductStatus


class UpdateProduct(BaseModel):
    productUpdate: Optional["UpdateProductProductUpdate"]


class UpdateProductProductUpdate(BaseModel):
    product: Optional["UpdateProductProductUpdateProduct"]
    userErrors: List["UpdateProductProductUpdateUserErrors"]


class UpdateProductProductUpdateProduct(BaseModel):
    id: str
    title: str
    handle: str
    bodyHtml: Optional[str]
    vendor: str
    productType: str
    tags: List[str]
    status: ProductStatus
    createdAt: Any
    updatedAt: Any


class UpdateProductProductUpdateUserErrors(BaseModel):
    field: Optional[List[str]]
    message: str


UpdateProduct.model_rebuild()
UpdateProductProductUpdate.model_rebuild()
