17 lines
368 B
Python
17 lines
368 B
Python
from typing import Optional
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
from . import to_camel
|
|
from .printer import PrinterLink
|
|
from .sale_category import SaleCategoryLink
|
|
|
|
|
|
class SectionPrinter(BaseModel):
|
|
sale_category: Optional[SaleCategoryLink]
|
|
printer: Optional[PrinterLink]
|
|
copies: int = Field(ge=0)
|
|
|
|
class Config:
|
|
alias_generator = to_camel
|