Spaces:
Runtime error
Runtime error
vanitha commited on
Commit ·
e343d7e
1
Parent(s): db0eb54
(merchant)- cahnged merchant_id,store_type,can_transact_with fields as optional
Browse files
app/merchants/schemas/schema.py
CHANGED
|
@@ -160,8 +160,8 @@ class KYCModel(BaseModel):
|
|
| 160 |
class MerchantCreate(BaseModel):
|
| 161 |
"""Schema for creating a new merchant"""
|
| 162 |
|
| 163 |
-
merchant_id: constr(pattern=MERCHANT_ID_REGEX.pattern) = Field(
|
| 164 |
-
|
| 165 |
description="Unique merchant ID (UUID format)."
|
| 166 |
)
|
| 167 |
|
|
@@ -170,8 +170,8 @@ class MerchantCreate(BaseModel):
|
|
| 170 |
description="Type of merchant organization"
|
| 171 |
)
|
| 172 |
|
| 173 |
-
can_transact_with: List[str]
|
| 174 |
-
|
| 175 |
description="List of merchant IDs this merchant can transact with"
|
| 176 |
)
|
| 177 |
|
|
@@ -190,8 +190,8 @@ class MerchantCreate(BaseModel):
|
|
| 190 |
description="Merchant business name"
|
| 191 |
)
|
| 192 |
|
| 193 |
-
store_type: str = Field(
|
| 194 |
-
|
| 195 |
description="Type of store (e.g., Retail, Wholesale, Online, Hybrid)"
|
| 196 |
)
|
| 197 |
|
|
|
|
| 160 |
class MerchantCreate(BaseModel):
|
| 161 |
"""Schema for creating a new merchant"""
|
| 162 |
|
| 163 |
+
merchant_id: Optional[constr(pattern=MERCHANT_ID_REGEX.pattern)] = Field(
|
| 164 |
+
None,
|
| 165 |
description="Unique merchant ID (UUID format)."
|
| 166 |
)
|
| 167 |
|
|
|
|
| 170 |
description="Type of merchant organization"
|
| 171 |
)
|
| 172 |
|
| 173 |
+
can_transact_with: Optional[List[str]]= Field(
|
| 174 |
+
None,
|
| 175 |
description="List of merchant IDs this merchant can transact with"
|
| 176 |
)
|
| 177 |
|
|
|
|
| 190 |
description="Merchant business name"
|
| 191 |
)
|
| 192 |
|
| 193 |
+
store_type: Optional[str] = Field(
|
| 194 |
+
None,
|
| 195 |
description="Type of store (e.g., Retail, Wholesale, Online, Hybrid)"
|
| 196 |
)
|
| 197 |
|