from dataclasses import dataclass, field
from typing import Optional, List


@dataclass
class Product:
    """Domain entity representing a merchant product/service."""
    id: int
    merchant_id: int
    name: str
    code: str
    warranty: str
    description: str
    amount: str
    center_id: Optional[int] = None
    linked_offer_ids: List[int] = field(default_factory=list)
