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

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2, UniversalBaseModel
from .woo_commerce_customer import WooCommerceCustomer
from .woo_commerce_order import WooCommerceOrder
from .woo_commerce_product import WooCommerceProduct


class WooCommerceData(UniversalBaseModel):
    """
    Complete WooCommerce sandbox data structure.

    Products and customers are created first, then orders are created with proper references.
    """

    products: typing.Optional[typing.List[WooCommerceProduct]] = pydantic.Field(default=None)
    """
    List of products to create
    """

    customers: typing.Optional[typing.List[WooCommerceCustomer]] = pydantic.Field(default=None)
    """
    List of customers to create
    """

    orders: typing.Optional[typing.List[WooCommerceOrder]] = pydantic.Field(default=None)
    """
    List of orders to create
    """

    if IS_PYDANTIC_V2:
        model_config: typing.ClassVar[pydantic.ConfigDict] = pydantic.ConfigDict(extra="allow", frozen=True)  # type: ignore # Pydantic v2
    else:

        class Config:
            frozen = True
            smart_union = True
            extra = pydantic.Extra.allow
