FEAT: Corporate onboarding implemented with Tax ID validation (HU) and isolated NAS storage
This commit is contained in:
20
backend/app/schemas/organization.py
Normal file
20
backend/app/schemas/organization.py
Normal file
@@ -0,0 +1,20 @@
|
||||
from pydantic import BaseModel, Field
|
||||
from typing import Optional, List
|
||||
|
||||
class ContactCreate(BaseModel):
|
||||
full_name: str
|
||||
email: str
|
||||
phone: Optional[str]
|
||||
contact_type: str = "primary"
|
||||
|
||||
class CorpOnboardIn(BaseModel):
|
||||
name: str
|
||||
tax_number: str
|
||||
country_code: str = "HU"
|
||||
reg_number: Optional[str]
|
||||
headquarters_address: str
|
||||
contacts: Optional[List[ContactCreate]] = []
|
||||
|
||||
class CorpOnboardResponse(BaseModel):
|
||||
organization_id: int
|
||||
status: str = "pending_verification"
|
||||
Reference in New Issue
Block a user