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

Method __init__

app/services/payment_service.py:101–119  ·  view source on GitHub ↗
(
        self,
        *,
        state_service: AccountStateService | None = None,
        captcha_service: CaptchaService | None = None,
        bigmodel_client: BigModelClient | None = None,
        tencent_captcha_client: TencentCaptchaClient | None = None,
        ocr_service: OcrService | None = None,
        tdc_service: TencentTdcService | None = None,
        runtime_log_service: RuntimeLogService | None = None,
    )

Source from the content-addressed store, hash-verified

99 "transport": self.bigmodel_client.transport_name,
100 "ocr": self.ocr_service.status_payload(),
101 "tdc": self.tdc_service.status_payload(),
102 }
103
104 def list_accounts(self):
105 return self.state_service.list_accounts()
106
107 def get_account_detail(self, account_id: str) -> AccountDetailResponse:
108 return self.state_service.get_account_detail(account_id)
109
110 def import_account(self, request):
111 return self.state_service.import_account(request)
112
113 def update_preferences(self, account_id: str, request: AccountPreferencesRequest) -> AccountDetailResponse:
114 return self.state_service.update_preferences(account_id, request)
115
116 def delete_account(self, account_id: str) -> dict[str, Any]:
117 self.state_service.delete_account(account_id)
118 return {"account_id": account_id, "deleted": True}
119
120 def bootstrap_account(
121 self,
122 account_id: str,

Callers

nothing calls this directly

Calls 8

get_captcha_serviceFunction · 0.90
get_bigmodel_clientFunction · 0.90
get_ocr_serviceFunction · 0.90
get_tdc_serviceFunction · 0.90
get_runtime_log_serviceFunction · 0.90
get_settingsFunction · 0.90

Tested by

no test coverage detected