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

import typing

import pydantic
from ..core.pydantic_utilities import IS_PYDANTIC_V2
from ..core.unchecked_base_model import UncheckedBaseModel


class CreateTransferOrderLineData(UncheckedBaseModel):
    """
    Data for creating a new transfer order line item. Each line item specifies a
    [CatalogItemVariation](entity:CatalogItemVariation) and quantity to transfer.
    """

    item_variation_id: str = pydantic.Field()
    """
    ID of the [CatalogItemVariation](entity:CatalogItemVariation) to transfer. Must reference a valid
    item variation in the [Catalog](api:Catalog). The item variation must be:
    - Active and available for sale
    - Enabled for inventory tracking
    - Available at the source location
    """

    quantity_ordered: str = pydantic.Field()
    """
    Total quantity ordered
    """

    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
