Skip to content

[ONB-4352] [Compose] [Compose] Add CMF onboarding flags and ui_mode fields - #66

Merged
tlarrain merged 1 commit into
mainfrom
compose/alinear-api-publica-2026-11-12-4294
Nov 12, 2026
Merged

tlarrain merged 1 commit into
mainfrom
compose/alinear-api-publica-2026-11-12-4294

Conversation

@FranciscaOtero

Copy link
Copy Markdown
Collaborator

Contexto

I checked the public API changes in openapi_spec/main-api.json from fintoc-rails (9f54fc2b → 7c92ffab, /v1 and /v2 without internal; pacioli's core-api.json did not change). Almost everything already matches the CLI or needs a fintoc-node release first. Two gaps:

  • POST /v2/entities/{entity_id}/onboardings (Chile) now takes data.plaft.cmf_regulated and data.plaft.cmf_registration_number (fintoc-com/fintoc-rails#20814), with no flags in the CLI.
  • POST /v2/checkout_sessions ui_mode now accepts fields (fintoc-com/fintoc-rails#20837), but --ui-mode help only listed embedded.

Release notes

  • v2 onboardings create: new --plaft-cmf-regulated and --plaft-cmf-registration-number flags to say whether the company is regulated by Chile's Financial Market Commission (CMF) and send its registration number.
  • v2 checkout_sessions create: --ui-mode help now lists fields.

Que hay de nuevo?

  • fintoc v2 onboardings create --plaft-cmf-regulated true --plaft-cmf-registration-number 123 → data.plaft.cmf_regulated, data.plaft.cmf_registration_number
  • --ui-mode help: (embedded, fields)

Tests

  • Unit tests (nested paths of the new onboarding flags), lint, typecheck, build.

Consideraciones

Left out or already matching:

  • Crossborder quotes, beneficiaries and transfers (fintoc-com/fintoc-rails#20605), account certificates (fintoc-com/fintoc-rails#20588) and PATCH /v1/organizations/{id} (fintoc-com/fintoc-rails#20103): left out, fintoc-node 1.31.0 (latest) has none of them. They need an SDK release first.
  • JWS removal on /v1/organizations (fintoc-com/fintoc-rails#20327): needsJws stays on organizations create, since --jws-private-key is already published and removing it breaks compatibility; the API ignores the signature.
  • --card-bins on v2 checkout_sessions create (fintoc-com/fintoc-rails#20751) already exists.
  • New response fields (split_applied[].redirected*, split[].inherited, mx_direct_debit.error_reason) show up in get and --json with no change (fintoc-com/fintoc-rails#20380, fintoc-com/fintoc-rails#20601, fintoc-com/fintoc-rails#20009).
  • invoice.split_redirected (fintoc-com/fintoc-rails#20443): --enabled-events, webhook_endpoints test --type and the events --type filter take any value.
  • New webhook endpoint 422 (limit of 16) and 400 (internal host) responses (fintoc-com/fintoc-rails#20758, fintoc-com/fintoc-rails#20998) surface through the existing API error output.
  • --plaft-cmf-regulated is not required: the spec requires it inside plaft, but plaft itself is optional and --plaft-uaf-obligated isn't required either.
  • Description-only changes, nothing to do: fintoc-com/fintoc-rails#20075, fintoc-com/fintoc-rails#20044, fintoc-com/fintoc-rails#20222, fintoc-com/fintoc-rails#20221, fintoc-com/fintoc-rails#20177, fintoc-com/fintoc-rails#20378, fintoc-com/fintoc-rails#20836, fintoc-com/fintoc-rails#20874, fintoc-com/fintoc-rails#20978.

🤖🐙 Created with Compose · View session

Co-authored-by: fin-compose[bot] <255610621+fin-compose[bot]@users.noreply.github.com>
@FranciscaOtero FranciscaOtero added the agent:compose PR created by Compose AI agent label Nov 12, 2026
@fin-hermes fin-hermes Bot added the size/S label Nov 12, 2026
@FranciscaOtero FranciscaOtero added the release:minor Publica una versión minor al mergear label Nov 12, 2026
@FranciscaOtero FranciscaOtero self-assigned this Nov 12, 2026
@FranciscaOtero

Copy link
Copy Markdown
Collaborator Author

fin review

@fin-hermes fin-hermes Bot added the risk:low label Nov 12, 2026

@fin-review fin-review Bot 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.

LGTM ✅

@FranciscaOtero
FranciscaOtero marked this pull request as ready for review November 12, 2026 12:06

@fin-review fin-review Bot 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.

LGTM ✅

@tlarrain
tlarrain merged commit b876f3f into main Nov 12, 2026
7 checks passed
@tlarrain
tlarrain deleted the compose/alinear-api-publica-2026-11-12-4294 branch November 12, 2026 16:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent:compose PR created by Compose AI agent release:minor Publica una versión minor al mergear risk:low size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants