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

Class ProductOffer

app/models.py:36–57  ·  view source on GitHub ↗

Merged static and dynamic product information.

Source from the content-addressed store, hash-verified

34 raw: dict[str, Any] = Field(default_factory=dict)
35
36
37class PreviewResult(BaseModel):
38 """Normalized preview response payload."""
39
40 model_config = ConfigDict(extra="ignore")
41
42 biz_id: str
43 third_party_amount: str = ""
44 sold_out: bool = False
45 original_amount: str = ""
46 pay_amount: str = ""
47 residual_amount: str = ""
48 give_amount: str = ""
49 cash_amount: str = ""
50 renew_amount: str = ""
51 campaign_discount_details: list[dict[str, Any]] = Field(default_factory=list)
52 last_subscription_summary: dict[str, Any] = Field(default_factory=dict)
53 raw: dict[str, Any] = Field(default_factory=dict)
54
55
56class AccountRecord(BaseModel):
57 """Persisted account credential record."""
58
59 model_config = ConfigDict(extra="ignore")
60

Callers 1

_merge_productsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected