Skip to content

feat: map customer optional tomador address and contact - #89

Merged
vitormattos merged 3 commits into
mainfrom
feat/tomador-address-optional-fields
Apr 1, 2026
Merged

feat: map customer optional tomador address and contact#89
vitormattos merged 3 commits into
mainfrom
feat/tomador-address-optional-fields

Conversation

@vitormattos

@vitormattos vitormattos commented Apr 1, 2026

Copy link
Copy Markdown
Member

Summary

  • map optional tomador address/contact fields from invoice contact into DPS payload
  • add normalization and safety guards (only send address when IBGE+CEP are valid)
  • keep compatibility with older nfse-php constructor signatures
  • extend support factory and controller tests for tomador optional payload normalization

Validation

  • ./vendor/bin/phpunit tests/Unit/Http/Controllers/InvoiceControllerTest.php
  • composer cs:fix
  • composer psalm

Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
Signed-off-by: Vitor Mattos <vitor@php.rio>
@vitormattos
vitormattos merged commit 03c3a68 into main Apr 1, 2026
10 checks passed
@vitormattos
vitormattos deleted the feat/tomador-address-optional-fields branch April 1, 2026 22:34
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.

1 participant