feature/INT-1701 - Representative documents alignment - #387
david-ruiz-cko wants to merge 2 commits into
Conversation
🟡 Risk Classification: MINORApproval route: AI Review + Human Approval Classification reasons
Operational gates
Files analysed: 24 wall-e 2026.06.19-02 · policy |
🔬 Debug — why this classification?Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.
Kinds:
See issue #3 for the proposal to formalise this map as Appendix A of the standards doc. wall-e 2026.06.19-02 · debug |
🟢 Advisory review: Looks good to meThis PR still needs a human approval — wall-e cannot auto-approve it. For what it's worth, I read the diff and found nothing I'd block on. This PR adds new document model classes and enums for the Accounts API onboarding, introduces RepresentativeDocuments to replace the incorrect OnboardSubEntityDocuments on Representative::$documents, and adds comprehensive tests verifying both serialization and wire-level behavior. The implementation matches the stated intent, the type changes are consistent throughout, and the deprecation of Identification::$document is handled correctly. What I checked
This is not an approval. wall-e cannot auto-approve this PR — it is an opinion to help whoever does. Advisory review · us.anthropic.claude-sonnet-4-6 · wall-e 2026.06.19-02 |
🟡 Risk Classification: MINORApproval route: AI Review + Human Approval Classification reasons
Operational gates
Files analysed: 35 wall-e 2026.06.19-02 · policy |
🔬 Debug — why this classification?Each reason code emitted by the classifier, its source clause in the AI in SDLC Control Framework, and what it means.
Kinds:
See issue #3 for the proposal to formalise this map as Appendix A of the standards doc. wall-e 2026.06.19-02 · debug |
|



This pull request introduces several new document classes and updates the structure and documentation of the Accounts API onboarding models to more accurately represent the requirements for different onboarding variants. The changes clarify where different types of documents should be attached (either at the top-level or on representatives), add detailed PHPDoc comments, and introduce new enums for document types. The most important changes are grouped below:
New document models and enums
AdditionalDocument,CertifiedAuthorisedSignatory,FinancialVerification,ProofOfPrincipalAddress,ProofOfLegality,ProofOfRegistration, andProofOfResidentialAddress, each with required fields and detailed documentation. [1] [2] [3] [4] [5] [6] [7]CertifiedAuthorisedSignatoryType,FinancialVerificationType,ProofOfPrincipalAddressType,ProofOfLegalityType,ProofOfRegistrationType, andProofOfResidentialAddressType. [1] [2] [3] [4] [5] [6]Refined document attachment structure
RepresentativeDocumentsclass to strictly define the set of documents allowed on a representative, and updated theRepresentativeclass to use it instead of the generalOnboardSubEntityDocuments. [1] [2]OnboardSubEntityDocumentsto clarify which documents belong at the top level and which on representatives, and updated types for new document classes. [1] [2]Documentation and field clarifications
Inviteeclass and related field inContactDetailsto represent the user responsible for onboarding. [1] [2]These changes improve the clarity, maintainability, and correctness of the onboarding document model in the Accounts API.