Перейти к содержанию

Kyc statuses

Справочник статусов KycVerification.status.

Таблица статусов

Статус Кто устанавливает Следующий возможный статус
pending submitKycDocuments() (user) in_review
in_review submitKycDocuments() / retryKycProcessing() ocr_complete, ocr_failed
ocr_complete KYC-сервис (OCR worker) auto_approved, manual_review
ocr_failed KYC-сервис (OCR worker) in_review (через retryKycProcessing())
auto_approved confirmKycData() — автопуть при score ≥ порога pending_operator_review
manual_review confirmKycData() — ручной путь при низком score pending_operator_review
pending_operator_review confirmKycData() (финальный шаг пользователя) approved (после approveKyc()); pending (после rejectKyc())
approved approveKyc() (operator/admin) fully_verified
fully_verified finalizeVerification() (system) — (финальный)

Диаграмма

stateDiagram-v2
    [*] --> pending : submitKycDocuments()
    pending --> in_review : submitKycDocuments()
    in_review --> ocr_complete : OCR worker (success)
    in_review --> ocr_failed : OCR worker (failure)
    ocr_failed --> in_review : retryKycProcessing()
    ocr_complete --> auto_approved : confirmKycData() high score
    ocr_complete --> manual_review : confirmKycData() low score
    auto_approved --> pending_operator_review : confirmKycData()
    manual_review --> pending_operator_review : confirmKycData()
    pending_operator_review --> approved : approveKyc()
    pending_operator_review --> pending : rejectKyc()
    approved --> fully_verified : finalizeVerification()
    fully_verified --> [*]