Skip to content

Fix Flux1 data types - #147

Merged
samueld-pdp merged 1 commit into
mainfrom
fix/add-flux1-profile
Oct 27, 2025
Merged

Fix Flux1 data types #147
samueld-pdp merged 1 commit into
mainfrom
fix/add-flux1-profile

Conversation

@samueld-pdp

Copy link
Copy Markdown
Collaborator

No description provided.

@samueld-pdp samueld-pdp self-assigned this Oct 27, 2025
@samueld-pdp
samueld-pdp requested a review from Copilot October 27, 2025 08:40

Copilot AI 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.

Pull Request Overview

This PR refactors the Flux1 data type classes to remove inheritance hierarchies and use direct implementations instead. The changes eliminate dependencies on parent classes (BasicCrossIndustryInvoice, EN16931, and Minimum implementations) in favor of standalone class implementations with promoted constructor properties.

Key Changes:

  • Removes parent class inheritance from Flux1 classes in favor of direct implementation
  • Replaces parent constructor calls and getter overrides with promoted properties
  • Updates namespace imports to use Flux1-specific data types

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
src/Flux1/CrossIndustryInvoice.php Removed BasicCrossIndustryInvoice inheritance; implements interface directly with promoted properties and simplified getters
src/DataType/Flux1/SupplyChainTradeTransaction.php Removed Minimum\SupplyChainTradeTransaction inheritance; standalone implementation with promoted properties
src/DataType/Flux1/ApplicableHeaderTradeDelivery.php Removed unused ShipToTradeParty import
src/DataType/Flux1/ApplicableHeaderTradeAgreement.php Removed Minimum\ApplicableHeaderTradeAgreement inheritance; standalone implementation with promoted properties

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Flux1/CrossIndustryInvoice.php Outdated
Comment thread src/Flux1/CrossIndustryInvoice.php Outdated
Comment thread src/DataType/Flux1/ApplicableHeaderTradeAgreement.php
@samueld-pdp
samueld-pdp force-pushed the fix/add-flux1-profile branch from f317a1a to 9703c7c Compare October 27, 2025 08:52
@samueld-pdp
samueld-pdp force-pushed the fix/add-flux1-profile branch from 9703c7c to 5909955 Compare October 27, 2025 08:58
@samueld-pdp
samueld-pdp merged commit 855e930 into main Oct 27, 2025
3 checks passed
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