# generated by datamodel-codegen:
#   filename:  use_decimal_for_multiple_of.json
#   timestamp: 2019-07-26T00:00:00+00:00

from __future__ import annotations

from decimal import Decimal

from pydantic import BaseModel, condecimal, confloat


class Model(BaseModel):
    price: (
        condecimal(ge=Decimal('0'), le=Decimal('99999.99'), multiple_of=Decimal('0.01'))
        | None
    ) = None
    quantity: condecimal(multiple_of=Decimal('0.1')) | None = None
    rate: (
        condecimal(multiple_of=Decimal('0.001'), lt=Decimal('1.0'), gt=Decimal('0.0'))
        | None
    ) = None
    simple_float: confloat(ge=0.0, le=100.0) | None = None
