MCPcopy Create free account
hub / github.com/VitoHowe/glm-coding / AccountPreferencesRequest

Class AccountPreferencesRequest

app/models.py:285–327  ·  view source on GitHub ↗

Editable account/session preferences for list management UI.

Source from the content-addressed store, hash-verified

283 sess: str | None = None
284 points: list[CaptchaPoint] = Field(default_factory=list)
285 collect: str | None = None
286 eks: str | None = None
287 pow_answer: str | None = None
288 pow_calc_time: int | None = None
289 vdata: str | None = Field(default=None, alias="vData")
290
291
292class CreateQrRequest(BaseModel):
293 """Create payment QR request payload."""
294
295 model_config = ConfigDict(extra="ignore")
296
297 product_id: str
298 pay_type: PayType | Literal["alipay", "wechat"] = "ALI"
299 biz_id: str | None = None
300 invitation_code: str | None = None
301
302 @field_validator("pay_type", mode="before")
303 @classmethod
304 def normalize_pay_type(cls, value: Any) -> PayType:
305 raw = str(value or "").strip().upper()
306 if raw in {"ALI", "ALIPAY"}:
307 return "ALI"
308 if raw in {"WE_CHAT", "WECHAT", "WECHATPAY", "WECHAT_PAY"}:
309 return "WE_CHAT"
310 if raw == "WECHAT":
311 return "WE_CHAT"
312 raise ValueError("pay_type 只支持 ALI / WE_CHAT / alipay / wechat")
313
314
315class PaymentCheckResult(BaseModel):
316 """Current upstream payment status."""
317
318 model_config = ConfigDict(extra="ignore")
319
320 biz_id: str
321 status: str
322 raw: dict[str, Any] = Field(default_factory=dict)
323
324
325class AccountDetailResponse(BaseModel):
326 """Account detail payload used by the UI."""
327
328 model_config = ConfigDict(extra="ignore")
329
330 account: PublicAccountRecord

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected