Skip to content

Fix municipal parameters NBS service-code contract - #87

Merged
vitormattos merged 1 commit into
mainfrom
fix/municipal-parameters-nbs-code
Oct 6, 2026
Merged

vitormattos merged 1 commit into
mainfrom
fix/municipal-parameters-nbs-code

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Closes #86.

The official ADN municipal-parameters API rejects six-digit cTribNac values and requires a nine-digit service code. This change makes the client enforce the real contract and updates its tests to use a valid 9-digit NBS example.

This intentionally does not infer an NBS from cTribNac; callers must resolve/persist NBS explicitly because that relationship may be 1:N.

Observed upstream regression:
HTTP 400: O código do serviço deve ser composto por nove dígitos.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos merged commit bb5e394 into main Oct 6, 2026
11 checks passed
@vitormattos
vitormattos deleted the fix/municipal-parameters-nbs-code branch October 6, 2026 23:15
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.

Fix municipal parameters service-code contract: ADN requires 9-digit NBS

1 participant