Skip to content

Commit

Permalink
V2.0.1 (#61)
Browse files Browse the repository at this point in the history
* Fix types which are nullable
  • Loading branch information
BolZer authored Mar 11, 2024
1 parent 30d4bcd commit c18c19b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/zugferd10/Model/Trade/Settlement.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Settlement
#[Type(TradeParty::class)]
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:12')]
#[SerializedName('InvoiceeTradeParty')]
private TradeParty $invoiceeTradeParty;
private ?TradeParty $invoiceeTradeParty = null;

/**
* @var TradeParty
Expand Down
2 changes: 1 addition & 1 deletion src/zugferd2/Model/ExchangedDocumentContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ExchangedDocumentContext
#[Type(DocumentContextParameter::class)]
#[XmlElement(namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
#[SerializedName('BusinessProcessSpecifiedDocumentContextParameter')]
public DocumentContextParameter $businessProcessSpecifiedDocumentContextParameter;
public ?DocumentContextParameter $businessProcessSpecifiedDocumentContextParameter = null;

#[Type(DocumentContextParameter::class)]
#[XmlElement(namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
Expand Down
4 changes: 2 additions & 2 deletions src/zugferd2/Model/HeaderTradeAgreement.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class HeaderTradeAgreement
#[Type(TradeParty::class)]
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
#[SerializedName('SellerTaxRepresentativeTradeParty')]
public TradeParty $sellerTaxRepresentativeTradeParty;
public ?TradeParty $sellerTaxRepresentativeTradeParty = null;

#[Type(TradeParty::class)]
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
Expand All @@ -46,7 +46,7 @@ class HeaderTradeAgreement
#[Type(TradeParty::class)]
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
#[SerializedName('BuyerTaxRepresentativeTradeParty')]
public TradeParty $buyerTaxRepresentativeTradeParty;
public ?TradeParty $buyerTaxRepresentativeTradeParty = null;

#[Type(ReferencedDocument::class)]
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
Expand Down
2 changes: 1 addition & 1 deletion src/zugferd2/Model/ReferencedDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class ReferencedDocument
#[Type('string')]
#[XmlElement(cdata: false, namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
#[SerializedName('LineID')]
public string $lineId;
public ?string $lineId = null;

public static function create(string $issuerAssignedID): self
{
Expand Down

0 comments on commit c18c19b

Please sign in to comment.