-
Notifications
You must be signed in to change notification settings - Fork 5
update VerificationErrorType and VerificationStatus #310
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -10,9 +10,21 @@ enum: | |
| - MISSING_IDENTITY_DOCUMENT | ||
| - INVALID_DOCUMENT | ||
| - EXPIRED_DOCUMENT | ||
| - POOR_QUALITY_DOCUMENT | ||
| - SUSPECTED_FRAUD_DOCUMENT | ||
| - WRONG_DOCUMENT_TYPE | ||
| - INCOMPLETE_DOCUMENT | ||
| - UNREADABLE_DOCUMENT | ||
| - DOCUMENT_VERIFICATION_FAILED | ||
| - APPLICANT_SANCTIONED | ||
| - APPLICANT_FRAUD | ||
| - APPLICANT_CRIMINAL_RECORD | ||
| - APPLICANT_REJECTED | ||
| - MISSING_BENEFICIAL_OWNER | ||
| description: >- | ||
| Type of verification error. The category-specific MISSING_*_DOCUMENT | ||
| types indicate which document category is needed and determine the | ||
| accepted document types returned in acceptedDocumentTypes. | ||
| Type of verification error. The category-specific MISSING_*_DOCUMENT types | ||
| indicate which document category is needed. Document quality types | ||
| (POOR_QUALITY_DOCUMENT, SUSPECTED_FRAUD_DOCUMENT, etc.) indicate specific | ||
| issues with uploaded documents. APPLICANT_* types indicate issues with the | ||
| applicant themselves (sanctions, fraud, criminal records). | ||
|
Comment on lines
24
to
+29
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The description's parenthetical for Prompt To Fix With AIThis is a comment left during a code review.
Path: openapi/components/schemas/verifications/VerificationErrorType.yaml
Line: 24-29
Comment:
**`APPLICANT_REJECTED` undescribed in description**
The description's parenthetical for `APPLICANT_*` types lists "(sanctions, fraud, criminal records)" but omits `APPLICANT_REJECTED`. It's unclear from the description alone whether `APPLICANT_REJECTED` is a catch-all for when no more specific `APPLICANT_*` reason applies, or if it serves a distinct purpose. API consumers won't know when to expect this value vs the more specific types. Adding a brief note (e.g., "or general rejection") would remove the ambiguity.
How can I resolve this? If you propose a fix, please make it concise. |
||
| example: MISSING_FIELD | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,5 +5,6 @@ enum: | |
| - IN_PROGRESS | ||
| - APPROVED | ||
| - REJECTED | ||
| - READY_FOR_VERIFICATION | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We do not auto-submit on behalf of the customer after they've resolved all the verification errors. This is why we need this intermediary verification status. |
||
| description: Current status of the KYC/KYB verification | ||
| example: RESOLVE_ERRORS | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SUSPECTED_FRAUD_DOCUMENTmislabeled as a "quality" typeThe description groups
SUSPECTED_FRAUD_DOCUMENTunder "Document quality types," but fraud detection is fundamentally different from quality issues like poor resolution or unreadability. API consumers may be confused or implement incorrect handling if they treat fraud detection the same as quality problems. Consider splitting the description into distinct categories.Prompt To Fix With AI