Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/Component/Entity/CreditNote.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class CreditNote extends Entity
protected TypeWeightUnlimited $completePackageWeight;
protected ?BillingMethod $billingMethod;
protected BillingAddress $billingAddress;
protected Address $deliveryAddress;
protected ?Address $deliveryAddress;
protected bool $addressesEqual;
protected Price $price;
protected DocumentCustomer $customer;
Expand Down Expand Up @@ -236,12 +236,12 @@ public function setBillingAddress(BillingAddress $billingAddress): static
return $this;
}

public function getDeliveryAddress(): Address
public function getDeliveryAddress(): ?Address
{
return $this->deliveryAddress;
}

public function setDeliveryAddress(Address $deliveryAddress): static
public function setDeliveryAddress(?Address $deliveryAddress): static
{
$this->deliveryAddress = $deliveryAddress;
return $this;
Expand Down
6 changes: 3 additions & 3 deletions src/Component/Entity/DeliveryNote.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class DeliveryNote extends Entity
protected TypeDateTimeNullable $creationTime;
protected TypeDateTimeNullable $changeTime;
protected BillingAddress $billingAddress;
protected Address $deliveryAddress;
protected ?Address $deliveryAddress;
protected bool $addressesEqual;
protected DocumentCustomer $customer;
protected Items $items;
Expand Down Expand Up @@ -85,12 +85,12 @@ public function setBillingAddress(BillingAddress $billingAddress): static
return $this;
}

public function getDeliveryAddress(): Address
public function getDeliveryAddress(): ?Address
{
return $this->deliveryAddress;
}

public function setDeliveryAddress(Address $deliveryAddress): static
public function setDeliveryAddress(?Address $deliveryAddress): static
{
$this->deliveryAddress = $deliveryAddress;
return $this;
Expand Down
6 changes: 3 additions & 3 deletions src/Component/Entity/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Invoice extends Entity
protected TypeWeightUnlimited $completePackageWeight;
protected ?BillingMethod $billingMethod;
protected BillingAddress $billingAddress;
protected Address $deliveryAddress;
protected ?Address $deliveryAddress;
protected bool $addressesEqual;
protected Price $price;
protected DocumentCustomer $customer;
Expand Down Expand Up @@ -200,12 +200,12 @@ public function setBillingAddress(BillingAddress $billingAddress): static
return $this;
}

public function getDeliveryAddress(): Address
public function getDeliveryAddress(): ?Address
{
return $this->deliveryAddress;
}

public function setDeliveryAddress(Address $deliveryAddress): static
public function setDeliveryAddress(?Address $deliveryAddress): static
{
$this->deliveryAddress = $deliveryAddress;
return $this;
Expand Down
6 changes: 3 additions & 3 deletions src/Component/Entity/InvoiceItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class InvoiceItem extends Entity
protected ?RecyclingFee $recyclingFee;
protected ?ItemSurchargeParameters $surchargeParameters;
protected ?ItemSpecificSurchargeParameters $specificSurchargeParameters;
protected DocumentConsumptionTax $consumptionTax;
protected ?DocumentConsumptionTax $consumptionTax;
protected ?ItemPriceVatBreakdown $itemPriceVatBreakdown;

public function getProductGuid(): ?TypeGuidUnlimited
Expand Down Expand Up @@ -275,12 +275,12 @@ public function setSpecificSurchargeParameters(
return $this;
}

public function getConsumptionTax(): DocumentConsumptionTax
public function getConsumptionTax(): ?DocumentConsumptionTax
{
return $this->consumptionTax;
}

public function setConsumptionTax(DocumentConsumptionTax $consumptionTax): static
public function setConsumptionTax(?DocumentConsumptionTax $consumptionTax): static
{
$this->consumptionTax = $consumptionTax;
return $this;
Expand Down
12 changes: 6 additions & 6 deletions src/Component/Entity/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Order extends Entity
protected ?string $vatMode;
protected ?BillingMethod $billingMethod;
protected ?PaymentMethod $paymentMethod;
protected Shipping $shipping;
protected ?Shipping $shipping;
protected ?ShippingDetails $shippingDetails;
protected string $adminUrl;
protected ?Status $status;
Expand All @@ -43,7 +43,7 @@ class Order extends Entity
protected Price $price;
protected ?bool $paid;
protected BillingAddress $billingAddress;
protected Address $deliveryAddress;
protected ?Address $deliveryAddress;
protected ?string $onlinePaymentLink;
protected ?string $language;
protected ?string $referer;
Expand Down Expand Up @@ -242,12 +242,12 @@ public function setPaymentMethod(?PaymentMethod $paymentMethod): static
return $this;
}

public function getShipping(): Shipping
public function getShipping(): ?Shipping
{
return $this->shipping;
}

public function setShipping(Shipping $shipping): static
public function setShipping(?Shipping $shipping): static
{
$this->shipping = $shipping;
return $this;
Expand Down Expand Up @@ -341,12 +341,12 @@ public function setBillingAddress(BillingAddress $billingAddress): static
return $this;
}

public function getDeliveryAddress(): Address
public function getDeliveryAddress(): ?Address
{
return $this->deliveryAddress;
}

public function setDeliveryAddress(Address $deliveryAddress): static
public function setDeliveryAddress(?Address $deliveryAddress): static
{
$this->deliveryAddress = $deliveryAddress;
return $this;
Expand Down
6 changes: 3 additions & 3 deletions src/Component/Entity/OrderItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class OrderItem extends Entity
/** @deprecated */
protected ?ItemPrice $buyPrice;
protected ?ItemPrice $purchasePrice;
protected RecyclingFee $recyclingFee;
protected ?RecyclingFee $recyclingFee;
protected ?MainImage $mainImage;
protected ?string $stockLocation;
protected ?string $supplierName;
Expand Down Expand Up @@ -281,12 +281,12 @@ public function setPurchasePrice(?ItemPrice $purchasePrice): static
return $this;
}

public function getRecyclingFee(): RecyclingFee
public function getRecyclingFee(): ?RecyclingFee
{
return $this->recyclingFee;
}

public function setRecyclingFee(RecyclingFee $recyclingFee): static
public function setRecyclingFee(?RecyclingFee $recyclingFee): static
{
$this->recyclingFee = $recyclingFee;
return $this;
Expand Down
6 changes: 3 additions & 3 deletions src/Component/Entity/Product/FilteringParameters/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Item extends Entity
protected ?string $displayName;
protected ?string $description;
protected ?int $priority;
protected GoogleMappingType $googleMapping;
protected ?GoogleMappingType $googleMapping;
protected Values $values;

public function getCode(): string
Expand Down Expand Up @@ -71,12 +71,12 @@ public function setPriority(?int $priority): static
return $this;
}

public function getGoogleMapping(): GoogleMappingType
public function getGoogleMapping(): ?GoogleMappingType
{
return $this->googleMapping;
}

public function setGoogleMapping(GoogleMappingType $googleMapping): static
public function setGoogleMapping(?GoogleMappingType $googleMapping): static
{
$this->googleMapping = $googleMapping;
return $this;
Expand Down
6 changes: 3 additions & 3 deletions src/Component/Entity/Product/Variants/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Item extends Entity
protected string $vatRate;
protected string $currencyCode;
protected TypeAmountNullable $minStockSupply;
protected ActionPrice $actionPrice;
protected ?ActionPrice $actionPrice;
protected ?string $image;
protected ?bool $isProductDefaultImage;
protected ?string $name;
Expand Down Expand Up @@ -284,12 +284,12 @@ public function setMinStockSupply(TypeAmountNullable $minStockSupply): static
return $this;
}

public function getActionPrice(): ActionPrice
public function getActionPrice(): ?ActionPrice
{
return $this->actionPrice;
}

public function setActionPrice(ActionPrice $actionPrice): static
public function setActionPrice(?ActionPrice $actionPrice): static
{
$this->actionPrice = $actionPrice;
return $this;
Expand Down
6 changes: 3 additions & 3 deletions src/Component/Entity/ProformaInvoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class ProformaInvoice extends Entity
protected TypeWeightUnlimited $completePackageWeight;
protected ?BillingMethod $billingMethod;
protected BillingAddress $billingAddress;
protected Address $deliveryAddress;
protected ?Address $deliveryAddress;
protected bool $addressesEqual;
protected Price $price;
protected DocumentCustomer $customer;
Expand Down Expand Up @@ -187,12 +187,12 @@ public function setBillingAddress(BillingAddress $billingAddress): static
return $this;
}

public function getDeliveryAddress(): Address
public function getDeliveryAddress(): ?Address
{
return $this->deliveryAddress;
}

public function setDeliveryAddress(Address $deliveryAddress): static
public function setDeliveryAddress(?Address $deliveryAddress): static
{
$this->deliveryAddress = $deliveryAddress;
return $this;
Expand Down
6 changes: 3 additions & 3 deletions src/Component/Entity/ProofPaymentDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class ProofPaymentDetail extends Entity
protected ?string $bic;
protected ?string $documentRemark;
protected ?string $invoiceCode;
protected ProofPaymentVatBreakdown $vatBreakdown;
protected ?ProofPaymentVatBreakdown $vatBreakdown;
protected ?string $vatMode;
protected TypeExchangeRate $invoicingExchangeRate;

Expand Down Expand Up @@ -575,12 +575,12 @@ public function setInvoiceCode(?string $invoiceCode): static
return $this;
}

public function getVatBreakdown(): ProofPaymentVatBreakdown
public function getVatBreakdown(): ?ProofPaymentVatBreakdown
{
return $this->vatBreakdown;
}

public function setVatBreakdown(ProofPaymentVatBreakdown $vatBreakdown): static
public function setVatBreakdown(?ProofPaymentVatBreakdown $vatBreakdown): static
{
$this->vatBreakdown = $vatBreakdown;
return $this;
Expand Down
6 changes: 3 additions & 3 deletions src/Component/Entity/ProofPaymentsForInvoice/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
class Item extends Entity
{
protected string $code;
protected ProofPaymentVatBreakdown $vatBreakdown;
protected ?ProofPaymentVatBreakdown $vatBreakdown;

public function getCode(): string
{
Expand All @@ -21,12 +21,12 @@ public function setCode(string $code): static
return $this;
}

public function getVatBreakdown(): ProofPaymentVatBreakdown
public function getVatBreakdown(): ?ProofPaymentVatBreakdown
{
return $this->vatBreakdown;
}

public function setVatBreakdown(ProofPaymentVatBreakdown $vatBreakdown): static
public function setVatBreakdown(?ProofPaymentVatBreakdown $vatBreakdown): static
{
$this->vatBreakdown = $vatBreakdown;
return $this;
Expand Down
6 changes: 3 additions & 3 deletions src/Component/Entity/QuantityDiscount.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class QuantityDiscount extends Entity
protected bool $isActive;
protected string $status;
protected string $targetingLevel;
protected QuantityDiscountTargetingResponse $targeting;
protected ?QuantityDiscountTargetingResponse $targeting;
protected bool $includeUnregisteredCustomers;
protected QuantityDiscountSettingsResponse $settings;

Expand Down Expand Up @@ -156,12 +156,12 @@ public function setTargetingLevel(string $targetingLevel): static
return $this;
}

public function getTargeting(): QuantityDiscountTargetingResponse
public function getTargeting(): ?QuantityDiscountTargetingResponse
{
return $this->targeting;
}

public function setTargeting(QuantityDiscountTargetingResponse $targeting): static
public function setTargeting(?QuantityDiscountTargetingResponse $targeting): static
{
$this->targeting = $targeting;
return $this;
Expand Down
6 changes: 3 additions & 3 deletions src/Component/Entity/VariantPrice.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class VariantPrice extends Entity
protected TypePriceNullable $commonPrice;
protected TypePriceNullable $buyPrice;
protected TypeProductPriceRatio $priceRatio;
protected ActionPrice $actionPrice;
protected ?ActionPrice $actionPrice;

public function getPrice(): TypePriceNullable
{
Expand Down Expand Up @@ -57,12 +57,12 @@ public function setPriceRatio(TypeProductPriceRatio $priceRatio): static
return $this;
}

public function getActionPrice(): ActionPrice
public function getActionPrice(): ?ActionPrice
{
return $this->actionPrice;
}

public function setActionPrice(ActionPrice $actionPrice): static
public function setActionPrice(?ActionPrice $actionPrice): static
{
$this->actionPrice = $actionPrice;
return $this;
Expand Down
12 changes: 6 additions & 6 deletions src/Component/Entity/XyDiscount.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class XyDiscount extends Entity
protected TypeColor $bannerColor;
protected ?int $priority;
protected ?int $usageCount;
protected XyDiscountTargetingResponse $xTargeting;
protected XyDiscountTargetingResponse $yTargeting;
protected ?XyDiscountTargetingResponse $xTargeting;
protected ?XyDiscountTargetingResponse $yTargeting;
protected bool $includeUnregisteredCustomers;

public function getId(): int
Expand Down Expand Up @@ -193,23 +193,23 @@ public function setUsageCount(?int $usageCount): static
return $this;
}

public function getXTargeting(): XyDiscountTargetingResponse
public function getXTargeting(): ?XyDiscountTargetingResponse
{
return $this->xTargeting;
}

public function setXTargeting(XyDiscountTargetingResponse $xTargeting): static
public function setXTargeting(?XyDiscountTargetingResponse $xTargeting): static
{
$this->xTargeting = $xTargeting;
return $this;
}

public function getYTargeting(): XyDiscountTargetingResponse
public function getYTargeting(): ?XyDiscountTargetingResponse
{
return $this->yTargeting;
}

public function setYTargeting(XyDiscountTargetingResponse $yTargeting): static
public function setYTargeting(?XyDiscountTargetingResponse $yTargeting): static
{
$this->yTargeting = $yTargeting;
return $this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Data extends Entity
protected ?string $displayName;
protected ?string $description;
protected ?int $priority;
protected GoogleMappingType $googleMapping;
protected ?GoogleMappingType $googleMapping;
protected ?Values $values;

public function getId(): int
Expand Down Expand Up @@ -83,12 +83,12 @@ public function setPriority(?int $priority): static
return $this;
}

public function getGoogleMapping(): GoogleMappingType
public function getGoogleMapping(): ?GoogleMappingType
{
return $this->googleMapping;
}

public function setGoogleMapping(GoogleMappingType $googleMapping): static
public function setGoogleMapping(?GoogleMappingType $googleMapping): static
{
$this->googleMapping = $googleMapping;
return $this;
Expand Down
Loading
Loading