|
@@ -6,14 +6,6 @@ from pydantic import BaseModel, EmailStr, HttpUrl
|
|
|
class SimplePayBase(BaseModel):
|
|
|
email: Optional[EmailStr] = None
|
|
|
name : Optional[str] = None
|
|
|
- phone : Optional[str] = None
|
|
|
- company: Optional[str] = None
|
|
|
- url: Optional[HttpUrl] = None
|
|
|
- area: Optional[str] = None
|
|
|
- language: Optional[str] = None
|
|
|
- ages: Optional[str] = None
|
|
|
- target: Optional[str] = None
|
|
|
- theme: Optional[str] = None
|
|
|
taxID: Optional[str] = None
|
|
|
tradeDesc: Optional[str] = None
|
|
|
item: Optional[str] = None
|
|
@@ -23,13 +15,6 @@ class SimplePayBase(BaseModel):
|
|
|
class SimplePayCreate(SimplePayBase):
|
|
|
email: EmailStr
|
|
|
name : str
|
|
|
- phone : str
|
|
|
- url: HttpUrl
|
|
|
- area: str
|
|
|
- language: str
|
|
|
- ages: str
|
|
|
- target: str
|
|
|
- theme: str
|
|
|
tradeDesc: Optional[str] = None
|
|
|
item: Optional[str] = None
|
|
|
amount: Optional[str] = None
|
|
@@ -43,16 +28,9 @@ class SimplePayInDBBase(SimplePayBase):
|
|
|
id: int
|
|
|
email: EmailStr
|
|
|
name : str
|
|
|
- company: str
|
|
|
- url: HttpUrl
|
|
|
- area: str
|
|
|
- language: str
|
|
|
- ages: str
|
|
|
- target: str
|
|
|
- theme: str
|
|
|
taxID: str
|
|
|
- item: str
|
|
|
tradeDesc: str
|
|
|
+ item: str
|
|
|
amount: str
|
|
|
payment_state: str
|
|
|
|