[US-9.1] CFDI Domain Model & Infrastructure#67
Merged
dacanetdev merged 2 commits intomainfrom Apr 5, 2026
Merged
Conversation
…passing All 5 product handler test files were already implemented: - CreateProductCommandHandlerTests (9 tests) - UpdateProductCommandHandlerTests (9 tests) - DeleteProductCommandHandlerTests (7 tests) - GetProductsQueryHandlerTests (8 tests) - GetProductByIdQueryHandlerTests (6+ tests) Sprint 8 is now 100% complete (42/42 tasks, 23/23 SP). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Invoice + InvoiceItem entities in Domain/Entities/CFDI/ - Uses existing CfdiStatus/CfdiType/PacProvider enums - Full CFDI 4.0 fields: issuer/receiver snapshots, amounts, stamp data, XML content - TenantConfiguration: added CfdiCertificateData (bytea), IssuerRfc, IssuerName, IssuerTaxRegime, IssuerPostalCode (encrypted DB cert storage, no Azure Key Vault) - EF configs: InvoiceConfiguration (UNIQUE tenant+serie+folio), InvoiceItemConfiguration - ApplicationDbContext: DbSet<Invoice>, DbSet<InvoiceItem>, query filters for both - IInvoiceRepository + InvoiceRepository (GetById, GetBySaleId, GetByUuid, GetPaged) - DependencyInjection: IInvoiceRepository registered in both overloads - Migration AddCfdiInvoiceSchema: cfdi_invoices + cfdi_invoice_items tables - All 150 existing tests still passing Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Invoice+InvoiceItementities inDomain/Entities/CFDI/with full CFDI 4.0 fields (uses existingCfdiStatus/CfdiTypeenums)TenantConfigurationextended withCfdiCertificateData(bytea),IssuerRfc,IssuerName,IssuerTaxRegime,IssuerPostalCodeUNIQUE(tenant_id, serie, folio)constraintIInvoiceRepository+InvoiceRepositorywith paged/filtered queriesAddCfdiInvoiceSchemacreatescfdi_invoices+cfdi_invoice_itemstablesIServiceCollectionandIHostApplicationBuilderoverloadsDesign decisions
Test plan
dotnet build— 0 warnings, 0 errorsdotnet test tests/Corelio.Application.Tests— 150/150 passing🤖 Generated with Claude Code