Skip to content

Add UBL parser for Invoice and CreditNote documents#3

Merged
SimonLoir merged 8 commits intomainfrom
copilot/add-ubl-parser
Mar 10, 2026
Merged

Add UBL parser for Invoice and CreditNote documents#3
SimonLoir merged 8 commits intomainfrom
copilot/add-ubl-parser

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 10, 2026

  • Explore repository structure and understand existing code
  • Create src/parser/parserOptions.ts – XMLParser options (mirroring builder options)
  • Create src/parser/DocumentParser.ts – parser class with parseInvoice() and parseCreditNote() methods
  • Create src/parser/index.ts – barrel export for parser module
  • Update src/index.ts – add peppolUBLToInvoice() and peppolUBLToCreditNote() to PeppolToolkit
  • Create tests/parser-invoice.test.ts – 19 round-trip tests for Invoice parsing
  • Create tests/parser-creditnote.test.ts – 18 round-trip tests for CreditNote parsing
  • Merge main into branch
  • Bump package version to 1.0.0

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

Copilot AI and others added 2 commits March 10, 2026 16:17
Co-authored-by: SimonLoir <17649337+SimonLoir@users.noreply.github.com>
Co-authored-by: SimonLoir <17649337+SimonLoir@users.noreply.github.com>
Copilot AI changed the title [WIP] Add UBL parser for current documents Add UBL parser for Invoice and CreditNote documents Mar 10, 2026
@SimonLoir SimonLoir marked this pull request as ready for review March 10, 2026 16:26
@SimonLoir
Copy link
Copy Markdown
Member

@copilot merge main

Copilot AI and others added 2 commits March 10, 2026 16:40
Co-authored-by: SimonLoir <17649337+SimonLoir@users.noreply.github.com>
@SimonLoir SimonLoir merged commit 0615e4d into main Mar 10, 2026
2 checks passed
@SimonLoir SimonLoir deleted the copilot/add-ubl-parser branch March 10, 2026 20:11
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.

2 participants