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

Class PublicAccountRecord

app/models.py:122–156  ·  view source on GitHub ↗

Safe account summary exposed to the local UI.

Source from the content-addressed store, hash-verified

120 org_id: str = ""
121 project_id: str = ""
122 customer_number: str = ""
123 customer_name: str = ""
124 organizations: list[dict[str, Any]] = Field(default_factory=list)
125 user_info: dict[str, Any] = Field(default_factory=dict)
126 products: list[ProductOffer] = Field(default_factory=list)
127 is_subscribed: bool = False
128 purchase_mode: PurchaseMode = "new_purchase"
129 selected_product_id: str = ""
130 captcha_ticket: str = ""
131 captcha_randstr: str = ""
132 captcha_updated_at: str | None = None
133 captcha_challenge_sess: str = ""
134 captcha_challenge_sid: str = ""
135 captcha_challenge_instruction: str = ""
136 captcha_challenge_raw: dict[str, Any] = Field(default_factory=dict)
137 captcha_challenge_ocr: dict[str, Any] = Field(default_factory=dict)
138 captcha_challenge_updated_at: str | None = None
139 preview: PreviewResult | None = None
140 last_sign: str = ""
141 last_order_id: str = ""
142 updated_at: str
143
144
145class PaymentTaskRecord(BaseModel):
146 """Persisted QR-code payment task."""
147
148 model_config = ConfigDict(extra="ignore")
149
150 id: str
151 account_id: str
152 product_id: str
153 product_name: str = ""
154 pay_type: PayType
155 biz_id: str
156 amount: str = ""
157 sign: str = ""
158 qr_base64: str = ""
159 status: str = "PENDING"

Callers 1

to_public_accountMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected