Skip to content

Commit

Permalink
Merge branch 'hotfix/3.0.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
Naugrimm committed Jun 4, 2024
2 parents e61debe + 1761fb6 commit ed0cb5e
Show file tree
Hide file tree
Showing 16 changed files with 57 additions and 54 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"ext-dom": "*",
"ext-libxml": "*",
"jms/serializer": "^3.30.0",
"naugrim/bmecat": "^5.0.0"
"naugrim/bmecat": "^5.0.1"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
* @method \Naugrim\BMEcat\Nodes\Phone[]|array getPhone()
* @method self setFax(\Naugrim\BMEcat\Nodes\Fax[]|array $fax)
* @method \Naugrim\BMEcat\Nodes\Fax[]|array getFax()
* @method self setEmails(string $emails)
* @method string getEmails()
* @method self setEmails(array $emails)
* @method string[] getEmails()
* @method self setPublicKey(\Naugrim\BMEcat\Nodes\Crypto\PublicKey[]|array $publicKey)
* @method \Naugrim\BMEcat\Nodes\Crypto\PublicKey[]|array getPublicKey()
* @method self setUrl(string|null $url)
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Agreement.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
* @method \Naugrim\BMEcat\Nodes\SupplierIdRef getSupplierIdRef()
* @method self setAgreementDescr(\Naugrim\OpenTrans\Nodes\AgreementDescr[]|array $agreementDescr)
* @method \Naugrim\OpenTrans\Nodes\AgreementDescr[]|array getAgreementDescr()
* @method self setMimeInfo(\Naugrim\OpenTrans\Nodes\Mime[]|array $mimeInfo)
* @method \Naugrim\OpenTrans\Nodes\Mime[]|array getMimeInfo()
* @method self setMimeInfo(\Naugrim\OpenTrans\Nodes\Mime|array $mimeInfo)
* @method Naugrim\OpenTrans\Nodes\Mime[] getMimeInfo()
*/
class Agreement implements NodeInterface
{
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Emails.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

/**
* @implements NodeInterface<self>
* @method self setEmail(string $email)
* @method string getEmail()
* @method self setEmail(array $email)
* @method string[] getEmail()
* @method self setPublicKeys(\Naugrim\BMEcat\Nodes\Crypto\PublicKey[]|array $publicKeys)
* @method \Naugrim\BMEcat\Nodes\Crypto\PublicKey[]|array getPublicKeys()
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* @implements NodeInterface<Invoice>
* @method self setHeader(array|\Naugrim\OpenTrans\Nodes\Invoice\Header $header)
* @method \Naugrim\OpenTrans\Nodes\Invoice\Header getHeader()
* @method self setItems(\Naugrim\OpenTrans\Nodes\Invoice\Item[]|array $items)
* @method \Naugrim\OpenTrans\Nodes\Invoice\Item[]|array getItems()
* @method self setItems(\Naugrim\OpenTrans\Nodes\Invoice\Item|array $items)
* @method Naugrim\OpenTrans\Nodes\Invoice\Item[] getItems()
* @method self setSummary(array|\Naugrim\OpenTrans\Nodes\Invoice\Summary $summary)
* @method \Naugrim\OpenTrans\Nodes\Invoice\Summary getSummary()
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Invoice/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
* @method \Naugrim\OpenTrans\Nodes\DeliveryDate getDeliveryDate()
* @method self setLanguage(\Naugrim\BMEcat\Nodes\Language[]|array $language)
* @method \Naugrim\BMEcat\Nodes\Language[]|array getLanguage()
* @method self setParties(\Naugrim\OpenTrans\Nodes\Party[]|array $parties)
* @method \Naugrim\OpenTrans\Nodes\Party[]|array getParties()
* @method self setParties(\Naugrim\OpenTrans\Nodes\Party|array $parties)
* @method Naugrim\OpenTrans\Nodes\Party[] getParties()
* @method self setIssuerIdRef(array|\Naugrim\OpenTrans\Nodes\Invoice\IssuerIdRef $issuerIdRef)
* @method \Naugrim\OpenTrans\Nodes\Invoice\IssuerIdRef getIssuerIdRef()
* @method self setRcptIdRef(array|\Naugrim\OpenTrans\Nodes\InvoiceRcptIdRef $rcptIdRef)
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Invoice/Summary.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
* @implements NodeInterface<Summary>
* @method self setNetValueGoods(float $netValueGoods)
* @method float getNetValueGoods()
* @method self setTotalTax(\Naugrim\OpenTrans\Nodes\Tax\DetailsFix[]|array $totalTax)
* @method \Naugrim\OpenTrans\Nodes\Tax\DetailsFix[]|array getTotalTax()
* @method self setTotalTax(\Naugrim\OpenTrans\Nodes\Tax\DetailsFix|array $totalTax)
* @method Naugrim\OpenTrans\Nodes\Tax\DetailsFix[] getTotalTax()
* @method self setAllowOrChargesFix(array|\Naugrim\OpenTrans\Nodes\AllowOrChargesFix $allowOrChargesFix)
* @method \Naugrim\OpenTrans\Nodes\AllowOrChargesFix getAllowOrChargesFix()
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Mime.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* @method string getType()
* @method self setSource(string $source)
* @method string getSource()
* @method self setFileHashValue(\Naugrim\OpenTrans\Nodes\File\HashValue[]|array $fileHashValue)
* @method \Naugrim\OpenTrans\Nodes\File\HashValue[]|array getFileHashValue()
* @method self setFileHashValue(\Naugrim\OpenTrans\Nodes\File\HashValue|array $fileHashValue)
* @method Naugrim\OpenTrans\Nodes\File\HashValue[] getFileHashValue()
* @method self setEmbedded(\Naugrim\OpenTrans\Nodes\Mime\Embedded[]|array $embedded)
* @method \Naugrim\OpenTrans\Nodes\Mime\Embedded[]|array getEmbedded()
* @method self setDescription(string $description)
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* @method string getType()
* @method self setHeader(array|\Naugrim\OpenTrans\Nodes\Order\Header $header)
* @method \Naugrim\OpenTrans\Nodes\Order\Header getHeader()
* @method self setItems(\Naugrim\OpenTrans\Nodes\Order\Item[]|array $items)
* @method \Naugrim\OpenTrans\Nodes\Order\Item[]|array getItems()
* @method self setItems(\Naugrim\OpenTrans\Nodes\Order\Item|array $items)
* @method Naugrim\OpenTrans\Nodes\Order\Item[] getItems()
* @method self setSummary(array|\Naugrim\OpenTrans\Nodes\Order\Summary $summary)
* @method \Naugrim\OpenTrans\Nodes\Order\Summary getSummary()
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Order/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
* @method \Naugrim\BMEcat\Nodes\Language[]|array getLanguage()
* @method self setDeliveryDate(array|\Naugrim\OpenTrans\Nodes\DeliveryDate $deliveryDate)
* @method \Naugrim\OpenTrans\Nodes\DeliveryDate getDeliveryDate()
* @method self setParties(\Naugrim\OpenTrans\Nodes\Party[]|array $parties)
* @method \Naugrim\OpenTrans\Nodes\Party[]|array getParties()
* @method self setParties(\Naugrim\OpenTrans\Nodes\Party|array $parties)
* @method Naugrim\OpenTrans\Nodes\Party[] getParties()
* @method self setCustomerOrderReference(null|array|\Naugrim\OpenTrans\Nodes\Order\CustomerOrderReference $customerOrderReference)
* @method \Naugrim\OpenTrans\Nodes\Order\CustomerOrderReference|null getCustomerOrderReference()
* @method self setPartiesReference(array|\Naugrim\OpenTrans\Nodes\Order\PartiesReference $partiesReference)
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/OrderChange.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* @implements NodeInterface<OrderChange>
* @method self setHeader(array|\Naugrim\OpenTrans\Nodes\OrderChange\Header $header)
* @method \Naugrim\OpenTrans\Nodes\OrderChange\Header getHeader()
* @method self setItems(\Naugrim\OpenTrans\Nodes\Order\Item[]|array $items)
* @method \Naugrim\OpenTrans\Nodes\Order\Item[]|array getItems()
* @method self setItems(\Naugrim\OpenTrans\Nodes\Order\Item|array $items)
* @method Naugrim\OpenTrans\Nodes\Order\Item[] getItems()
* @method self setSummary(array|\Naugrim\OpenTrans\Nodes\Order\Summary $summary)
* @method \Naugrim\OpenTrans\Nodes\Order\Summary getSummary()
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/OrderChange/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
* @method string getDate()
* @method self setSequenceId(int $sequenceId)
* @method int getSequenceId()
* @method self setParties(\Naugrim\OpenTrans\Nodes\Party[]|array $parties)
* @method \Naugrim\OpenTrans\Nodes\Party[]|array getParties()
* @method self setParties(\Naugrim\OpenTrans\Nodes\Party|array $parties)
* @method Naugrim\OpenTrans\Nodes\Party[] getParties()
* @method self setPartiesReference(array|\Naugrim\OpenTrans\Nodes\Order\PartiesReference $partiesReference)
* @method \Naugrim\OpenTrans\Nodes\Order\PartiesReference getPartiesReference()
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/OrderResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* @implements NodeInterface<OrderResponse>
* @method self setHeader(array|\Naugrim\OpenTrans\Nodes\OrderResponse\Header $header)
* @method \Naugrim\OpenTrans\Nodes\OrderResponse\Header getHeader()
* @method self setItems(\Naugrim\OpenTrans\Nodes\OrderResponse\Item[]|array $items)
* @method \Naugrim\OpenTrans\Nodes\OrderResponse\Item[]|array getItems()
* @method self setItems(\Naugrim\OpenTrans\Nodes\OrderResponse\Item|array $items)
* @method Naugrim\OpenTrans\Nodes\OrderResponse\Item[] getItems()
* @method self setSummary(array|\Naugrim\OpenTrans\Nodes\OrderResponse\Summary $summary)
* @method \Naugrim\OpenTrans\Nodes\OrderResponse\Summary getSummary()
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/OrderResponse/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
* @method \Naugrim\OpenTrans\Nodes\DeliveryDate getDeliveryDate()
* @method self setSequenceId(int $sequenceId)
* @method int getSequenceId()
* @method self setParties(\Naugrim\OpenTrans\Nodes\Party[]|array $parties)
* @method \Naugrim\OpenTrans\Nodes\Party[]|array getParties()
* @method self setParties(\Naugrim\OpenTrans\Nodes\Party|array $parties)
* @method Naugrim\OpenTrans\Nodes\Party[] getParties()
* @method self setPartiesReference(array|\Naugrim\OpenTrans\Nodes\Order\PartiesReference $partiesReference)
* @method \Naugrim\OpenTrans\Nodes\Order\PartiesReference getPartiesReference()
*/
Expand Down
4 changes: 2 additions & 2 deletions src/Nodes/Payment/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
* @implements NodeInterface<Payment>
* @method self setCard(null|array|\Naugrim\OpenTrans\Nodes\Payment\Card $card)
* @method \Naugrim\OpenTrans\Nodes\Payment\Card|null getCard()
* @method self setAccounts(\Naugrim\OpenTrans\Nodes\Account[]|array $accounts)
* @method \Naugrim\OpenTrans\Nodes\Account[]|array getAccounts()
* @method self setAccounts(\Naugrim\OpenTrans\Nodes\Account|array $accounts)
* @method Naugrim\OpenTrans\Nodes\Account[] getAccounts()
* @method self setCash(bool|null $cash)
* @method bool|null getCash()
* @method self setDebit(bool|null $debit)
Expand Down
53 changes: 28 additions & 25 deletions src/Nodes/ProductId.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,28 @@

/**
* @implements NodeInterface<ProductId>
* @method self setSupplierPid(array|\Naugrim\BMEcat\Nodes\SupplierPid $supplierPid)
* @method \Naugrim\BMEcat\Nodes\SupplierPid getSupplierPid()
* @method self setSupplierIdRef(array|\Naugrim\BMEcat\Nodes\SupplierIdRef $supplierIdRef)
* @method \Naugrim\BMEcat\Nodes\SupplierIdRef getSupplierIdRef()
* @method self setConfigCodeFix(string $configCodeFix)
* @method string getConfigCodeFix()
* @method self setLotNumber(string $lotNumber)
* @method string getLotNumber()
* @method self setSerialNumber(string $serialNumber)
* @method string getSerialNumber()
* @method self setSupplierPid(null|array|\Naugrim\BMEcat\Nodes\SupplierPid $supplierPid)
* @method \Naugrim\BMEcat\Nodes\SupplierPid|null getSupplierPid()
* @method self setSupplierIdRef(null|array|\Naugrim\BMEcat\Nodes\SupplierIdRef $supplierIdRef)
* @method \Naugrim\BMEcat\Nodes\SupplierIdRef|null getSupplierIdRef()
* @method self setConfigCodeFix(string|null $configCodeFix)
* @method string|null getConfigCodeFix()
* @method self setLotNumber(array $lotNumber)
* @method string[] getLotNumber()
* @method self setSerialNumber(array $serialNumber)
* @method string[] getSerialNumber()
* @method self setInternationalPid(\Naugrim\BMEcat\Nodes\InternationalPid[]|array $internationalPid)
* @method \Naugrim\BMEcat\Nodes\InternationalPid[]|array getInternationalPid()
* @method self setBuyerPid(\Naugrim\BMEcat\Nodes\BuyerPid[]|array $buyerPid)
* @method \Naugrim\BMEcat\Nodes\BuyerPid[]|array getBuyerPid()
* @method self setDescriptionShort(string $descriptionShort)
* @method string getDescriptionShort()
* @method self setDescriptionLong(string $descriptionLong)
* @method string getDescriptionLong()
* @method self setDescriptionShort(string|null $descriptionShort)
* @method string|null getDescriptionShort()
* @method self setDescriptionLong(string|null $descriptionLong)
* @method string|null getDescriptionLong()
* @method self setManufacturerInfo(null|array|\Naugrim\OpenTrans\Nodes\ManufacturerInfo $manufacturerInfo)
* @method \Naugrim\OpenTrans\Nodes\ManufacturerInfo|null getManufacturerInfo()
* @method self setProductType(string $productType)
* @method string getProductType()
* @method self setProductType(string|null $productType)
* @method string|null getProductType()
*/
class ProductId implements NodeInterface
{
Expand All @@ -44,23 +44,26 @@ class ProductId implements NodeInterface
#[Serializer\Type(SupplierPid::class)]
#[Serializer\SerializedName('SUPPLIER_PID')]
#[\JMS\Serializer\Annotation\XmlElement(namespace: \Naugrim\OpenTrans\OpenTrans::BMECAT_NAMESPACE)]
protected SupplierPid $supplierPid;
protected ?SupplierPid $supplierPid = null;

#[Serializer\Expose]
#[Serializer\Type(SupplierIdRef::class)]
#[Serializer\SerializedName('SUPPLIER_IDREF')]
#[\JMS\Serializer\Annotation\XmlElement(namespace: \Naugrim\OpenTrans\OpenTrans::BMECAT_NAMESPACE)]
protected SupplierIdRef $supplierIdRef;
protected ?SupplierIdRef $supplierIdRef = null;

#[Serializer\Expose]
#[Serializer\Type('string')]
#[Serializer\SerializedName('CONFIG_CODE_FIX')]
protected string $configCodeFix;
protected ?string $configCodeFix = null;

/**
* @var string[]
*/
#[Serializer\Expose]
#[Serializer\Type('string')]
#[Serializer\SerializedName('LOT_NUMBER')]
protected string $lotNumber;
#[Serializer\Type('array<string>')]
#[Serializer\XmlList(entry: 'LOT_NUMBER', inline: true)]
protected array $lotNumber = [];

/**
* @var string[]
Expand Down Expand Up @@ -90,13 +93,13 @@ class ProductId implements NodeInterface
#[Serializer\Type('string')]
#[Serializer\SerializedName('DESCRIPTION_SHORT')]
#[\JMS\Serializer\Annotation\XmlElement(namespace: \Naugrim\OpenTrans\OpenTrans::BMECAT_NAMESPACE)]
protected string $descriptionShort;
protected ?string $descriptionShort = null;

#[Serializer\Expose]
#[Serializer\Type('string')]
#[Serializer\SerializedName('DESCRIPTION_LONG')]
#[\JMS\Serializer\Annotation\XmlElement(namespace: \Naugrim\OpenTrans\OpenTrans::BMECAT_NAMESPACE)]
protected string $descriptionLong;
protected ?string $descriptionLong = null;

#[Serializer\Expose]
#[Serializer\Type(ManufacturerInfo::class)]
Expand All @@ -107,5 +110,5 @@ class ProductId implements NodeInterface
#[Serializer\Type('string')]
#[Serializer\SerializedName('PRODUCT_TYPE')]
#[\JMS\Serializer\Annotation\XmlElement(namespace: \Naugrim\OpenTrans\OpenTrans::BMECAT_NAMESPACE)]
protected string $productType;
protected ?string $productType = null;
}

0 comments on commit ed0cb5e

Please sign in to comment.