15 lines
325 B
Python
15 lines
325 B
Python
from decimal import Decimal
|
|
from typing import Annotated
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
class ActivityPaymentInfo(BaseModel):
|
|
contribution: Annotated[
|
|
Decimal, Field(decimal_places=2, ge=0)
|
|
]
|
|
nnv_contribution: Annotated[
|
|
Decimal | None, Field(None, decimal_places=2, ge=0)
|
|
] = None
|
|
|
|
|