Skip to content

Commit

Permalink
Merge branch 'hotfix/3.0.3'
Browse files Browse the repository at this point in the history
  • Loading branch information
Naugrimm committed Jun 4, 2024
2 parents 15d48de + cec29f7 commit 1b50aba
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/Nodes/Order/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
* @method float getQuantity()
* @method self setOrderUnit(string $orderUnit)
* @method string getOrderUnit()
* @method self setPriceFix(array|\Naugrim\OpenTrans\Nodes\Product\PriceFix $priceFix)
* @method \Naugrim\OpenTrans\Nodes\Product\PriceFix getPriceFix()
* @method self setPriceLineAmount(float $priceLineAmount)
* @method float getPriceLineAmount()
* @method self setPartialShipmentAllowed(bool $partialShipmentAllowed)
* @method bool getPartialShipmentAllowed()
* @method self setDeliveryDate(array|\Naugrim\OpenTrans\Nodes\DeliveryDate $deliveryDate)
* @method \Naugrim\OpenTrans\Nodes\DeliveryDate getDeliveryDate()
* @method self setPriceFix(null|array|\Naugrim\OpenTrans\Nodes\Product\PriceFix $priceFix)
* @method \Naugrim\OpenTrans\Nodes\Product\PriceFix|null getPriceFix()
* @method self setPriceLineAmount(float|null $priceLineAmount)
* @method float|null getPriceLineAmount()
* @method self setPartialShipmentAllowed(bool|null $partialShipmentAllowed)
* @method bool|null getPartialShipmentAllowed()
* @method self setDeliveryDate(null|array|\Naugrim\OpenTrans\Nodes\DeliveryDate $deliveryDate)
* @method \Naugrim\OpenTrans\Nodes\DeliveryDate|null getDeliveryDate()
* @method self setRemarks(\Naugrim\OpenTrans\Nodes\Remarks[]|array $remarks)
* @method \Naugrim\OpenTrans\Nodes\Remarks[]|array getRemarks()
* @method self setItemUdx(array $itemUdx)
Expand Down Expand Up @@ -80,12 +80,12 @@ class Item implements NodeInterface
#[Serializer\Expose]
#[Serializer\Type(PriceFix::class)]
#[Serializer\SerializedName('PRODUCT_PRICE_FIX')]
protected PriceFix $priceFix;
protected ?PriceFix $priceFix = null;

#[Serializer\Expose]
#[Serializer\Type('float')]
#[Serializer\SerializedName('PRICE_LINE_AMOUNT')]
protected float $priceLineAmount;
protected ?float $priceLineAmount = null;

/**
*
Expand All @@ -94,12 +94,12 @@ class Item implements NodeInterface
#[Serializer\Expose]
#[Serializer\Type('bool')]
#[Serializer\SerializedName('PARTIAL_SHIPMENT_ALLOWED')]
protected bool $partialShipmentAllowed;
protected ?bool $partialShipmentAllowed = null;

#[Serializer\Expose]
#[Serializer\Type(DeliveryDate::class)]
#[Serializer\SerializedName('DELIVERY_DATE')]
protected DeliveryDate $deliveryDate;
protected ?DeliveryDate $deliveryDate = null;

/**
* @var Remarks[]
Expand Down Expand Up @@ -139,6 +139,6 @@ public function setItemUdx(array $udxItems): self

public function isPartialShipmentAllowed(): bool
{
return $this->partialShipmentAllowed;
return $this->partialShipmentAllowed ?? false;
}
}

0 comments on commit 1b50aba

Please sign in to comment.