Skip to content

[ONB-4351] [Compose] [Compose] Add account certificates to v2 accounts and account numbers - #53

Merged
fin-compose[bot] merged 2 commits into
mainfrom
compose/account-certificates-f864
Nov 12, 2026
Merged

fin-compose[bot] merged 2 commits into
mainfrom
compose/account-certificates-f864

Conversation

@FranciscaOtero

Copy link
Copy Markdown
Contributor

Contexto

The public API now returns an account certificate (a signed download URL for the account's PDF certificate) via GET /v2/accounts/{id}/certificate and GET /v2/account_numbers/{id}/certificate (fintoc-com/fintoc-rails#20588). The SDK had no way to call them.

¿Qué hay de nuevo?

  • client.v2.accounts.certificate(account_id) and client.v2.account_numbers.certificate(account_number_id)
  • Account#certificate and AccountNumber#certificate shortcuts
  • New Fintoc::V2::AccountCertificate resource (account_id, account_number_id, download_url, expires_at)
  • README examples

Tests

  • Unit tests with WebMock and a synthetic fixture built from the contract example (no cassettes)

Release notes

  • Added client.v2.accounts.certificate and client.v2.account_numbers.certificate (plus Account#certificate and AccountNumber#certificate), which return a new Fintoc::V2::AccountCertificate with a signed download_url and its expires_at.

Safety Checks

  • Versión y CHANGELOG actualizados (si corresponde)

Consideraciones

Reviewed against openapi_spec/main-api.json in fintoc-rails (9f54fc2b..7c92ffab); pacioli's core-api.json didn't change. Left out:

  • Crossborder quotes, beneficiaries and transfers (fintoc-com/fintoc-rails#20605): every /v2/crossborder/* operation is marked x-hidden until GA, so not exposed yet.
  • PATCH /v1/organizations/{id} and organizations without JWS (#20103, #20327): already shipped.
  • 422 limit_exceeded on webhook endpoints (#20758): LimitExceededError already exists; the internal-host 400 (#20998) uses the generic error handling.
  • Split redirection fields, split[].inherited on v2 invoices, mx_direct_debit.error_reason (#20380, #20601, #20009): nested hashes, returned as-is.
  • invoice.split_redirected event (#20443): the SDK doesn't validate event types.
  • Checkout sessions ui_mode: fields and payment_method_options.card.bins (#20837, #20751), Chile onboarding plaft.cmf_* (#20814): passed through **params.
  • Description-only changes (#20075, #20044, #20222, #20221, #20177, #20378, #20836, #20874, #20978): nothing to do.

Rollback

Safe to revert; only adds new methods.

🤖🐙 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
@FranciscaOtero FranciscaOtero self-assigned this Nov 12, 2026
@fin-hermes fin-hermes Bot added the size/M label Nov 12, 2026
@FranciscaOtero FranciscaOtero added the release:minor Publica una versión minor al mergear label Nov 12, 2026
@fin-hermes fin-hermes Bot added the risk:low label Nov 12, 2026
@FranciscaOtero

Copy link
Copy Markdown
Contributor Author

fin review

Co-authored-by: fin-compose[bot] <255610621+fin-compose[bot]@users.noreply.github.com>
@FranciscaOtero

Copy link
Copy Markdown
Contributor Author

fin review

@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:31

@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 ✅

@fin-compose
fin-compose Bot merged commit cae9505 into main Nov 12, 2026
9 checks passed
@fin-compose
fin-compose Bot deleted the compose/account-certificates-f864 branch November 12, 2026 12:32
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/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant