-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
151 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace CXml\Model; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
readonly class Accounting | ||
{ | ||
private function __construct( | ||
#[Serializer\XmlAttribute] | ||
private string $name, | ||
/** | ||
* @var AccountingSegment[] | ||
*/ | ||
#[Serializer\XmlList(entry: 'AccountingSegment', inline: true)] | ||
#[Serializer\Type('array<CXml\Model\AccountingSegment>')] | ||
private array $accountingSegments, | ||
#[Serializer\SerializedName('Charge')] | ||
private MoneyWrapper $charge, | ||
) { | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace CXml\Model; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
readonly class AccountingSegment | ||
{ | ||
private function __construct( | ||
#[Serializer\XmlAttribute] | ||
private int $id, | ||
#[Serializer\SerializedName('Name')] | ||
#[Serializer\XmlElement(cdata: false)] | ||
private MultilanguageString $name, | ||
#[Serializer\SerializedName('Description')] | ||
#[Serializer\XmlElement(cdata: false)] | ||
private MultilanguageString $description, | ||
) { | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace CXml\Model; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
readonly class ControlKeys | ||
{ | ||
private function __construct( | ||
#[Serializer\SerializedName('InvoiceInstruction')] | ||
private InvoiceInstruction $invoiceInstruction, | ||
) { | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace CXml\Model; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
readonly class Distribution | ||
{ | ||
private function __construct( | ||
#[Serializer\SerializedName('Accounting')] | ||
private Accounting $accounting, | ||
) { | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace CXml\Model; | ||
|
||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
readonly class InvoiceInstruction | ||
{ | ||
private function __construct( | ||
#[Serializer\XmlAttribute] | ||
private string $verificationType, | ||
#[Serializer\XmlAttribute] | ||
private string $value, | ||
) { | ||
} | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace CXml\Model; | ||
|
||
use DateTimeInterface; | ||
use JMS\Serializer\Annotation as Serializer; | ||
|
||
readonly class ScheduleLine | ||
{ | ||
private function __construct( | ||
#[Serializer\SerializedName('UnitOfMeasure')] | ||
private UnitOfMeasure $unitOfMeasure, | ||
#[Serializer\XmlAttribute] | ||
private int $quantity, | ||
#[Serializer\XmlAttribute] | ||
private DateTimeInterface $requestedDeliveryDate, | ||
#[Serializer\XmlAttribute] | ||
private ?int $lineNumber = null, | ||
) { | ||
} | ||
} |