from pydantic import BaseModel
from typing import Optional, Union
from datetime import datetime


class OrderLine(BaseModel):
    id: Optional[int]
    order_id: Optional[int]
    sale_price: int
    full_sale_price: int
    total_price: int
    full_total_price: int
    discounts_amount: int
    quantity: int
    reserved_quantity: Optional[int]
    weight: Optional[float]
    dimensions: Optional[str]
    variant_id: int
    product_id: int
    sku: Optional[str]
    barcode: Optional[Union[int, str]]
    title: str
    unit: str
    comment: Optional[str]
    updated_at: Optional[datetime]
    created_at: Optional[datetime]
    bundle_id: Optional[int]
    vat: int


class Order(BaseModel):
    order_lines: list[OrderLine]

d91075cd75d74db0d5f78a3f4176b5a319d83d86
<mask token>

<mask token>


class Order(BaseModel):
    order_lines: list[OrderLine]

<mask token>


class OrderLine(BaseModel):
    id: Optional[int]
    order_id: Optional[int]
    sale_price: int
    full_sale_price: int
    total_price: int
    full_total_price: int
    discounts_amount: int
    quantity: int
    reserved_quantity: Optional[int]
    weight: Optional[float]
    dimensions: Optional[str]
    variant_id: int
    product_id: int
    sku: Optional[str]
    barcode: Optional[Union[int, str]]
    title: str
    unit: str
    comment: Optional[str]
    updated_at: Optional[datetime]
    created_at: Optional[datetime]
    bundle_id: Optional[int]
    vat: int


class Order(BaseModel):
    order_lines: list[OrderLine]

from pydantic import BaseModel
from typing import Optional, Union
from datetime import datetime


class OrderLine(BaseModel):
    id: Optional[int]
    order_id: Optional[int]
    sale_price: int
    full_sale_price: int
    total_price: int
    full_total_price: int
    discounts_amount: int
    quantity: int
    reserved_quantity: Optional[int]
    weight: Optional[float]
    dimensions: Optional[str]
    variant_id: int
    product_id: int
    sku: Optional[str]
    barcode: Optional[Union[int, str]]
    title: str
    unit: str
    comment: Optional[str]
    updated_at: Optional[datetime]
    created_at: Optional[datetime]
    bundle_id: Optional[int]
    vat: int


class Order(BaseModel):
    order_lines: list[OrderLine]
