Spaces:
Sleeping
Sleeping
| from pydantic import BaseModel, Field | |
| class AddPaymentRequest(BaseModel): | |
| initiated_uuid: str = Field(..., description="UUID of the initiator") | |
| to_uuid: str = Field(..., description="UUID of the recipient") | |
| amount_raised: float = Field(..., description="Amount raised for the payment") | |
| amount_payed: float = Field(None, description="Amount already paid (optional)") | |
| title: str = Field(..., description="Title of the payment") | |
| description: str = Field(None, description="Description of the payment (optional)") | |
| status: str = Field(..., description="Status of the payment") | |
| # class Config: | |
| # extra = 'ignore' | |