-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update for Factur-X 1.0.07 - ZUGFeRD 2.3 (#62)
* Add new XSD files for factur-x 1.0.07 * Add new testcase for Reader * Move position of description of TradeParty up * Add missing property SellerOrderReferencedDocument to HeaderTradeAgreement * Add missing ReceivableSpecifiedTradeAccountingAccount to HeaderTradeSettlement * Add missing DespatchAdviceReferencedDocument to HeaderTradeDelivery * Add missing reason code for TradeAllowanceCharge * Add missing TaxCurrencyCode to HeaderTradeSettlement * Add missing ProductCharacteristic, ProductClassification and TradeCurrencyExchange * Add missing TestIndicator in ExchangedDocumentContext * Add missing TradePaymentDiscountTerms to TradePaymentTerms * Add missing IncludedReferencedProduct to ProductType * Fix TradePrice AppliedTradeAllowanceCharge cardinality
- Loading branch information
Showing
97 changed files
with
128,401 additions
and
81,993 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,30 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Easybill\ZUGFeRD2\Model; | ||
|
||
use JMS\Serializer\Annotation\SerializedName; | ||
use JMS\Serializer\Annotation\Type; | ||
use JMS\Serializer\Annotation\XmlAttribute; | ||
use JMS\Serializer\Annotation\XmlValue; | ||
|
||
class ClassCode | ||
{ | ||
#[Type('string')] | ||
#[XmlAttribute] | ||
#[SerializedName('listID')] | ||
public ?string $listID = null; | ||
|
||
#[Type('string')] | ||
#[XmlValue(cdata: false)] | ||
public string $value; | ||
|
||
public static function create(string $id, ?string $listID = null): self | ||
{ | ||
$self = new self(); | ||
$self->value = $id; | ||
$self->listID = $listID; | ||
return $self; | ||
} | ||
} |
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
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
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,22 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Easybill\ZUGFeRD2\Model; | ||
|
||
use JMS\Serializer\Annotation\SerializedName; | ||
use JMS\Serializer\Annotation\Type; | ||
use JMS\Serializer\Annotation\XmlElement; | ||
|
||
class ProductCharacteristic | ||
{ | ||
#[Type('string')] | ||
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')] | ||
#[SerializedName('Description')] | ||
public string $description; | ||
|
||
#[Type('string')] | ||
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')] | ||
#[SerializedName('Value')] | ||
public 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Easybill\ZUGFeRD2\Model; | ||
|
||
use JMS\Serializer\Annotation\SerializedName; | ||
use JMS\Serializer\Annotation\Type; | ||
use JMS\Serializer\Annotation\XmlElement; | ||
|
||
class ProductClassification | ||
{ | ||
#[Type(ClassCode::class)] | ||
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')] | ||
#[SerializedName('ClassCode')] | ||
public ?ClassCode $classCode = null; | ||
} |
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,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Easybill\ZUGFeRD2\Model; | ||
|
||
use JMS\Serializer\Annotation\SerializedName; | ||
use JMS\Serializer\Annotation\Type; | ||
use JMS\Serializer\Annotation\XmlElement; | ||
|
||
class ProductType | ||
{ | ||
#[Type(Id::class)] | ||
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')] | ||
#[SerializedName('GlobalID')] | ||
public ?Id $id; | ||
|
||
#[Type('string')] | ||
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')] | ||
#[SerializedName('SellerAssignedID')] | ||
public ?string $sellerAssignedID = null; | ||
|
||
#[Type('string')] | ||
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')] | ||
#[SerializedName('Name')] | ||
public ?string $name = null; | ||
|
||
#[Type(Quantity::class)] | ||
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')] | ||
#[SerializedName('UnitQuantity')] | ||
public ?Quantity $unitQuantity = null; | ||
} |
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,32 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Easybill\ZUGFeRD2\Model; | ||
|
||
use JMS\Serializer\Annotation\SerializedName; | ||
use JMS\Serializer\Annotation\Type; | ||
use JMS\Serializer\Annotation\XmlElement; | ||
|
||
class TradeCurrencyExchange | ||
{ | ||
#[Type('string')] | ||
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')] | ||
#[SerializedName('SourceCurrencyCode')] | ||
public string $sourceCurrencyCode; | ||
|
||
#[Type('string')] | ||
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')] | ||
#[SerializedName('TargetCurrencyCode')] | ||
public string $targetCurrencyCode; | ||
|
||
#[Type('float')] | ||
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')] | ||
#[SerializedName('ConversionRate')] | ||
public float $conversionRate; | ||
|
||
#[Type(DateTime::class)] | ||
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')] | ||
#[SerializedName('ConversionRateDateTime')] | ||
public ?DateTime $conversionRateDateTime = null; | ||
} |
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,20 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace Easybill\ZUGFeRD2\Model; | ||
|
||
use JMS\Serializer\Annotation as JMS; | ||
|
||
class TradePaymentDiscountTerms | ||
{ | ||
#[JMS\Type(Quantity::class)] | ||
#[JMS\XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')] | ||
#[JMS\SerializedName('BasisPeriodMeasure')] | ||
public ?Quantity $basisPeriodMeasure = null; | ||
|
||
#[JMS\Type('string')] | ||
#[JMS\XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')] | ||
#[JMS\SerializedName('CalculationPercent')] | ||
public ?string $calculationPercent = null; | ||
} |
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
Oops, something went wrong.