Skip to content

[ONB-2514] Feat(v2): Add legal representative document upload#27

Merged
tlarrain merged 2 commits into
mainfrom
feat/onboarding-legal-representative-documents
Jul 7, 2026
Merged

[ONB-2514] Feat(v2): Add legal representative document upload#27
tlarrain merged 2 commits into
mainfrom
feat/onboarding-legal-representative-documents

Conversation

@tlarrain

@tlarrain tlarrain commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Contexto

La API pública v2 ahora soporta múltiples representantes legales por onboarding, cada uno con sus propios slots de documentos (identification y power_of_attorney). El SDK necesita exponer la subida de esos documentos.

Qué hay de nuevo?

  • Se expone el nuevo endpoint:
    • PUT /v2/entities/{entity_id}/onboardings/{id}/legal_representatives/{legal_representative_id}/documents/{slot_key}
  • Fintoc::V2::Onboarding ahora expone legal_representatives (la API lo devuelve como array a nivel del onboarding, hermano de shareholders y documents).
  • README: el ejemplo de create usa legal_representatives como array (el shape singular legal_representative ya no existe en la API) y se documenta la subida de documentos del representante legal.

Tests

Unitarios para el manager (path, multipart e idempotency_key) y para el recurso (round-trip de legal_representatives), espejando la cobertura existente de shareholders.

Rollback

¿Es seguro hacer rollback?

¿Cuáles son los pasos para hacer rollback?
Normal

tlarrain added 2 commits July 7, 2026 08:29
Adds upload_legal_representative_document to the onboardings manager,
PUTting a multipart file to the legal representative document slot path,
and exposes the new legal_representatives array on the Onboarding
resource. Create params move to the plural legal_representatives array
the API now expects.
Documents the legal_representatives attribute on the onboarding full
shape and the upload_legal_representative_document usage, and updates
the create example to the plural legal_representatives array the API
now expects.
@tlarrain tlarrain requested a review from JoMarchant July 7, 2026 13:29

@JoMarchant JoMarchant left a comment

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.

lets gooo

@tlarrain tlarrain merged commit 74ed861 into main Jul 7, 2026
4 checks passed
@tlarrain tlarrain deleted the feat/onboarding-legal-representative-documents branch July 7, 2026 14:55
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