Skip to content

[TRNF-7287] Feat(v2): Add entity onboardings and multipart uploads#127

Merged
JoMarchant merged 6 commits into
masterfrom
feat/entities-onboarding
Jun 22, 2026
Merged

[TRNF-7287] Feat(v2): Add entity onboardings and multipart uploads#127
JoMarchant merged 6 commits into
masterfrom
feat/entities-onboarding

Conversation

@JoMarchant

@JoMarchant JoMarchant commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Contexto

Soporte en el SDK para el nuevo flujo de onboarding de entities de la API pública v2 (/v2/entities/{id}/onboardings).

Qué hay de nuevo?

  • Se exponen los siguientes endpoints para el proceso de onboarding de entities:
    • POST /v2/entities
    • POST /v2/entities/{id}/onboardings
    • PUT /v2/entities/{id}/onboardings/{id}/shareholders/{id}/document
    • PUT /v2/entities/{id}/onboardings/{id}/documents/{slot_key}
    • POST /v2/entities/{id}/onboardings/{id}/submit
  • Se agrega soporte de multipart/form-data en el cliente HTTP.

Tests

Unitarios para el cliente multipart, los recursos y el manager (incluyendo las subidas de documentos). Probado end-to-end localmente contra fintoc-rails + pacioli (crear onboarding → subir documentos → submit).

Consideraciones

Las subidas multipart no se firman con JWS.

Rollback

¿Es seguro hacer rollback?

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

@JoMarchant JoMarchant self-assigned this Jun 22, 2026
@JoMarchant JoMarchant force-pushed the feat/entities-onboarding branch 5 times, most recently from c4c65ee to ccdeb2d Compare June 22, 2026 19:51
Thread a `files` argument through the client and add a `resource_upload` handler so managers can send multipart/form-data via httpx; JWS signing is skipped for multipart bodies.
objetize treated floats as resources and crashed on `**float`; add float to the scalar passthrough list. Surfaced by the onboarding shareholder percentage.
Onboarding, OnboardingShareholder and OnboardingDocument resources, with mappings so nested shareholders/documents objetize to the right classes.
Onboardings nested under entities (entities.onboardings), mirroring account_statements: list, get, create, submit, and slot + shareholder document uploads (via resource_upload). Also enables entities.create.
@JoMarchant JoMarchant force-pushed the feat/entities-onboarding branch from ccdeb2d to 78bb6aa Compare June 22, 2026 20:29
@JoMarchant JoMarchant marked this pull request as ready for review June 22, 2026 20:37
@JoMarchant JoMarchant requested review from tlarrain and vacodoceo June 22, 2026 20:38

@vacodoceo vacodoceo left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

cool

@JoMarchant JoMarchant changed the title Feat(v2): Add entity onboardings and multipart uploads [TRNF-7287] Feat(v2): Add entity onboardings and multipart uploads Jun 22, 2026
@JoMarchant JoMarchant merged commit b3b5e74 into master Jun 22, 2026
5 checks passed
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