From 1e6069b007300c839b82134038c620d9e744672a Mon Sep 17 00:00:00 2001 From: Markus Thielen Date: Thu, 23 Jan 2025 13:23:19 +0100 Subject: [PATCH] various new Elements in ItemOut --- rector.php | 1 - src/CXml/Model/Accounting.php | 24 ++++++++++++++++++ src/CXml/Model/AccountingSegment.php | 22 ++++++++++++++++ src/CXml/Model/ControlKeys.php | 16 ++++++++++++ src/CXml/Model/Distribution.php | 16 ++++++++++++ src/CXml/Model/InvoiceInstruction.php | 18 ++++++++++++++ src/CXml/Model/ItemOut.php | 36 ++++++++++++++++++++++++--- src/CXml/Model/ScheduleLine.php | 23 +++++++++++++++++ 8 files changed, 151 insertions(+), 5 deletions(-) create mode 100644 src/CXml/Model/Accounting.php create mode 100644 src/CXml/Model/AccountingSegment.php create mode 100644 src/CXml/Model/ControlKeys.php create mode 100644 src/CXml/Model/Distribution.php create mode 100644 src/CXml/Model/InvoiceInstruction.php create mode 100644 src/CXml/Model/ScheduleLine.php diff --git a/rector.php b/rector.php index c441d8d..22b358d 100644 --- a/rector.php +++ b/rector.php @@ -41,7 +41,6 @@ //this makes code unreadable \Rector\Strict\Rector\Ternary\BooleanInTernaryOperatorRuleFixerRector::class, \Rector\Strict\Rector\BooleanNot\BooleanInBooleanNotRuleFixerRector::class, - \Rector\Php81\Rector\Property\ReadOnlyPropertyRector::class, ]) ->withFileExtensions(['php']) ->withCache( diff --git a/src/CXml/Model/Accounting.php b/src/CXml/Model/Accounting.php new file mode 100644 index 0000000..b012e77 --- /dev/null +++ b/src/CXml/Model/Accounting.php @@ -0,0 +1,24 @@ +')] + private array $accountingSegments, + #[Serializer\SerializedName('Charge')] + private MoneyWrapper $charge, + ) { + } +} diff --git a/src/CXml/Model/AccountingSegment.php b/src/CXml/Model/AccountingSegment.php new file mode 100644 index 0000000..b35242b --- /dev/null +++ b/src/CXml/Model/AccountingSegment.php @@ -0,0 +1,22 @@ +parentLineNumber; } + + public function getShipTo(): ?ShipTo + { + return $this->shipTo; + } + + public function getDistribution(): ?Distribution + { + return $this->distribution; + } + + public function getControlKeys(): ?ControlKeys + { + return $this->controlKeys; + } + + public function getScheduleLine(): ?ScheduleLine + { + return $this->scheduleLine; + } } diff --git a/src/CXml/Model/ScheduleLine.php b/src/CXml/Model/ScheduleLine.php new file mode 100644 index 0000000..56e6dd4 --- /dev/null +++ b/src/CXml/Model/ScheduleLine.php @@ -0,0 +1,23 @@ +