Chore: Frontend moved from Moment to date-fns and from dd-MMM-yyyy to ISO Date format.
19 lines
426 B
Python
19 lines
426 B
Python
import uuid
|
|
|
|
from datetime import date
|
|
from decimal import Decimal
|
|
|
|
from pydantic import BaseModel, ConfigDict
|
|
|
|
from . import to_camel
|
|
from .voucher import Voucher
|
|
|
|
|
|
class SaleDayResponse(BaseModel):
|
|
date_: date
|
|
selected_voucher_id: uuid.UUID | None = None
|
|
total_amount: Decimal
|
|
vouchers: list[Voucher]
|
|
|
|
model_config = ConfigDict(str_strip_whitespace=True, alias_generator=to_camel, populate_by_name=True)
|