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

Method preview_payment

app/clients/bigmodel_client.py:52–75  ·  view source on GitHub ↗
(
        self,
        account: AccountRecord,
        session: AccountSessionState,
        request: PreviewPaymentRequest,
        *,
        invitation_code: str,
        ticket: str,
        randstr: str,
        allow_fallback_proxy: bool = False,
    )

Source from the content-addressed store, hash-verified

50 )
51
52 def preview_payment(
53 self,
54 account: AccountRecord,
55 session: AccountSessionState,
56 request: PreviewPaymentRequest,
57 *,
58 invitation_code: str,
59 ticket: str,
60 randstr: str,
61 ) -> ApiCallResult:
62 return self._request(
63 account,
64 session,
65 "POST",
66 "/biz/pay/preview",
67 json_body={
68 "productId": request.product_id,
69 "invitationCode": invitation_code,
70 "ticket": ticket,
71 "randstr": randstr,
72 },
73 )
74
75 def create_sign(
76 self,
77 account: AccountRecord,
78 session: AccountSessionState,

Callers 1

preview_paymentFunction · 0.45

Calls 1

_requestMethod · 0.95

Tested by

no test coverage detected