Skip to content

simplify identification type enums#341

Merged
wuvictor-95 merged 1 commit intomainfrom
04-14-simplify_identification_type_enums
Apr 14, 2026
Merged

simplify identification type enums#341
wuvictor-95 merged 1 commit intomainfrom
04-14-simplify_identification_type_enums

Conversation

@wuvictor-95
Copy link
Copy Markdown
Contributor

@wuvictor-95 wuvictor-95 commented Apr 14, 2026

We already collect passport/DL in document upload. We can simplify this text input to be focused on tax identifiers instead

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 14, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
grid-flow-builder Ready Ready Preview, Comment Apr 14, 2026 10:06pm

Request Review

@wuvictor-95 wuvictor-95 marked this pull request as ready for review April 14, 2026 22:06
Copy link
Copy Markdown
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Apr 14, 2026

✱ Stainless preview builds

This PR will update the grid SDKs with the following commit messages.

kotlin

feat: simplify identification type enums

openapi

feat: simplify identification type enums

python

feat: simplify identification type enums

typescript

feat: simplify identification type enums
grid-openapi studio
grid-typescript studio
grid-python studio
grid-kotlin studio

⏳ These are partial results; builds are still running.


This comment is auto-generated by GitHub Actions and is automatically kept up to date as you push.
If you push custom code to the preview branch, re-run this workflow to update the comment.
Last updated: 2026-04-14 22:25:09 UTC

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented Apr 14, 2026

Greptile Summary

  /\\_/\\  
 ( ^.^ ) ~  nice simplification!
  > ^ <

The IdentificationType enum is simplified from 7 values (SSN, PASSPORT, NATIONAL_ID, DRIVERS_LICENSE, TAX_ID, ITIN, CPF) down to 4 (SSN, ITIN, EIN, NON_TAX_ID), focusing the type on tax identification numbers rather than general identity documents. All three files (openapi/components/schemas/customers/IdentificationType.yaml, plus both generated bundles) are updated consistently, confirming make build was run correctly.

Confidence Score: 5/5

Safe to merge — one minor P2 description staleness, no logic or data issues.

The only finding is a P2 description update (the word "document" is no longer accurate now that EIN and NON_TAX_ID are included). All three files are consistently updated and the generated bundles match the source. No correctness or data-integrity issues.

openapi/components/schemas/customers/IdentificationType.yaml — description field should be updated to reflect tax-ID framing

Important Files Changed

Filename Overview
openapi/components/schemas/customers/IdentificationType.yaml Removes PASSPORT, NATIONAL_ID, DRIVERS_LICENSE, TAX_ID, CPF and adds EIN, NON_TAX_ID; description "Type of personal identification document" is now stale since EIN is a business tax ID
openapi.yaml Generated bundle correctly reflects the source IdentificationType.yaml changes
mintlify/openapi.yaml Mintlify bundle correctly reflects the source IdentificationType.yaml changes

Sequence Diagram

sequenceDiagram
    participant Client
    participant GridAPI as Grid API
    participant KYC as KYC Engine

    Note over Client,KYC: Create/Update Beneficial Owner with IdentificationType
    Client->>GridAPI: POST /customers/{id}/beneficial_owners { idType: SSN|ITIN|EIN|NON_TAX_ID }
    GridAPI->>KYC: Validate identification
    KYC-->>GridAPI: Validation result
    GridAPI-->>Client: 200 OK / 422 Unprocessable Entity

    Note over Client: Previously accepted (now removed)
    Note over Client: PASSPORT, NATIONAL_ID, DRIVERS_LICENSE, TAX_ID, CPF
    Note over Client: Now accepted: SSN, ITIN, EIN, NON_TAX_ID
Loading

Fix All in Claude Code

Prompt To Fix All With AI
This is a comment left during a code review.
Path: openapi/components/schemas/customers/IdentificationType.yaml
Line: 7

Comment:
**Description no longer matches the enum values**

The description says "Type of personal identification document," but the new enum values don't fit that framing: `EIN` (Employer Identification Number) is a business/entity tax ID, not a personal document, and `NON_TAX_ID` is a generic catch-all. The enum is now tax-ID-centric rather than document-centric, so the description should be updated.

```suggestion
description: Type of tax identification number
```

How can I resolve this? If you propose a fix, please make it concise.

Reviews (1): Last reviewed commit: "simplify identification type enums" | Re-trigger Greptile

- CPF
- EIN
- NON_TAX_ID
description: Type of personal identification document
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Description no longer matches the enum values

The description says "Type of personal identification document," but the new enum values don't fit that framing: EIN (Employer Identification Number) is a business/entity tax ID, not a personal document, and NON_TAX_ID is a generic catch-all. The enum is now tax-ID-centric rather than document-centric, so the description should be updated.

Suggested change
description: Type of personal identification document
description: Type of tax identification number
Prompt To Fix With AI
This is a comment left during a code review.
Path: openapi/components/schemas/customers/IdentificationType.yaml
Line: 7

Comment:
**Description no longer matches the enum values**

The description says "Type of personal identification document," but the new enum values don't fit that framing: `EIN` (Employer Identification Number) is a business/entity tax ID, not a personal document, and `NON_TAX_ID` is a generic catch-all. The enum is now tax-ID-centric rather than document-centric, so the description should be updated.

```suggestion
description: Type of tax identification number
```

How can I resolve this? If you propose a fix, please make it concise.

Fix in Claude Code

@wuvictor-95 wuvictor-95 merged commit 64a7332 into main Apr 14, 2026
8 of 9 checks passed
@wuvictor-95 wuvictor-95 deleted the 04-14-simplify_identification_type_enums branch April 14, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants