From 29b3150d3e935ea5cfee17f88d82b0cdf63ac532 Mon Sep 17 00:00:00 2001 From: drlikm <4454449+drlikm@users.noreply.github.com> Date: Wed, 13 May 2026 10:29:01 +0200 Subject: [PATCH] [create-pull-request] automated change --- init.php | 4 +++ src/Component/Entity/CreditNote.php | 14 +++++---- src/Component/Entity/Invoice.php | 21 ++++++++------ src/Component/Entity/ProformaInvoice.php | 21 ++++++++------ src/Component/Entity/ProofPaymentDetail.php | 21 ++++++++------ src/Component/ValueObject/TypeSpecSymbol.php | 26 +++++++++++++++++ .../ValueObject/TypeSpecSymbolNullable.php | 29 +++++++++++++++++++ src/Component/ValueObject/TypeVarSymbol.php | 26 +++++++++++++++++ .../ValueObject/TypeVarSymbolNullable.php | 29 +++++++++++++++++++ .../Data.php | 14 +++++---- .../Data.php | 14 +++++---- .../Data/CreditNotes/Item.php | 7 +++-- .../UpdateCreditNoteRequest/Data.php | 14 +++++---- .../Data/DefaultSettings.php | 7 +++-- .../CreateInvoiceFromOrderRequest/Data.php | 14 +++++---- .../Data.php | 14 +++++---- .../Data/Invoices/Item.php | 7 +++-- .../Data.php | 14 +++++---- .../Data/ProformaInvoices/Item.php | 7 +++-- .../CreateProofPaymentRequest/Data.php | 21 ++++++++------ .../UpdateProofPaymentRequest/Data.php | 21 ++++++++------ 21 files changed, 246 insertions(+), 99 deletions(-) create mode 100644 src/Component/ValueObject/TypeSpecSymbol.php create mode 100644 src/Component/ValueObject/TypeSpecSymbolNullable.php create mode 100644 src/Component/ValueObject/TypeVarSymbol.php create mode 100644 src/Component/ValueObject/TypeVarSymbolNullable.php diff --git a/init.php b/init.php index 53f19e90..dc356b29 100644 --- a/init.php +++ b/init.php @@ -354,7 +354,11 @@ require_once __DIR__ . '/src/Component/ValueObject/TypePriceNullable.php'; require_once __DIR__ . '/src/Component/ValueObject/TypePriceRatio.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeProductPriceRatio.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypeSpecSymbol.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypeSpecSymbolNullable.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeUnitRatio.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypeVarSymbol.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypeVarSymbolNullable.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeVariantCodeRequest.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeVatRate.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeVatRateNullable.php'; diff --git a/src/Component/Entity/CreditNote.php b/src/Component/Entity/CreditNote.php index ce3e696e..3384b79e 100644 --- a/src/Component/Entity/CreditNote.php +++ b/src/Component/Entity/CreditNote.php @@ -5,6 +5,8 @@ use Shoptet\Api\Sdk\Php\Component\Entity\CreditNote\Items; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeSpecSymbolNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbol; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeightUnlimited; class CreditNote extends Entity @@ -18,9 +20,9 @@ class CreditNote extends Entity protected TypeDateTimeNullable $changeTime; protected TypeDateNullable $dueDate; protected TypeDateNullable $taxDate; - protected float $varSymbol; + protected TypeVarSymbol $varSymbol; protected ?int $constSymbol; - protected ?float $specSymbol; + protected TypeSpecSymbolNullable $specSymbol; protected ?bool $restocked; protected ?string $stockAmountChangeType; protected TypeWeightUnlimited $weight; @@ -137,12 +139,12 @@ public function setTaxDate(TypeDateNullable $taxDate): static return $this; } - public function getVarSymbol(): float + public function getVarSymbol(): TypeVarSymbol { return $this->varSymbol; } - public function setVarSymbol(float $varSymbol): static + public function setVarSymbol(TypeVarSymbol $varSymbol): static { $this->varSymbol = $varSymbol; return $this; @@ -159,12 +161,12 @@ public function setConstSymbol(?int $constSymbol): static return $this; } - public function getSpecSymbol(): ?float + public function getSpecSymbol(): TypeSpecSymbolNullable { return $this->specSymbol; } - public function setSpecSymbol(?float $specSymbol): static + public function setSpecSymbol(TypeSpecSymbolNullable $specSymbol): static { $this->specSymbol = $specSymbol; return $this; diff --git a/src/Component/Entity/Invoice.php b/src/Component/Entity/Invoice.php index 9fd20935..c9821158 100644 --- a/src/Component/Entity/Invoice.php +++ b/src/Component/Entity/Invoice.php @@ -3,8 +3,11 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Invoice\Items; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbolNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeSpecSymbolNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbol; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeightUnlimited; class Invoice extends Entity @@ -17,9 +20,9 @@ class Invoice extends Entity protected TypeDateTimeNullable $changeTime; protected TypeDateNullable $dueDate; protected TypeDateNullable $taxDate; - protected float $varSymbol; - protected ?string $constSymbol; - protected ?float $specSymbol; + protected TypeVarSymbol $varSymbol; + protected TypeConstSymbolNullable $constSymbol; + protected TypeSpecSymbolNullable $specSymbol; protected TypeWeightUnlimited $weight; protected TypeWeightUnlimited $completePackageWeight; protected ?BillingMethod $billingMethod; @@ -123,34 +126,34 @@ public function setTaxDate(TypeDateNullable $taxDate): static return $this; } - public function getVarSymbol(): float + public function getVarSymbol(): TypeVarSymbol { return $this->varSymbol; } - public function setVarSymbol(float $varSymbol): static + public function setVarSymbol(TypeVarSymbol $varSymbol): static { $this->varSymbol = $varSymbol; return $this; } - public function getConstSymbol(): ?string + public function getConstSymbol(): TypeConstSymbolNullable { return $this->constSymbol; } - public function setConstSymbol(?string $constSymbol): static + public function setConstSymbol(TypeConstSymbolNullable $constSymbol): static { $this->constSymbol = $constSymbol; return $this; } - public function getSpecSymbol(): ?float + public function getSpecSymbol(): TypeSpecSymbolNullable { return $this->specSymbol; } - public function setSpecSymbol(?float $specSymbol): static + public function setSpecSymbol(TypeSpecSymbolNullable $specSymbol): static { $this->specSymbol = $specSymbol; return $this; diff --git a/src/Component/Entity/ProformaInvoice.php b/src/Component/Entity/ProformaInvoice.php index fef77f76..8be286fa 100644 --- a/src/Component/Entity/ProformaInvoice.php +++ b/src/Component/Entity/ProformaInvoice.php @@ -3,8 +3,11 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\ProformaInvoice\Items; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbolNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeSpecSymbolNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbol; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeightUnlimited; class ProformaInvoice extends Entity @@ -16,9 +19,9 @@ class ProformaInvoice extends Entity protected TypeDateTimeNullable $creationTime; protected TypeDateTimeNullable $changeTime; protected TypeDateNullable $dueDate; - protected float $varSymbol; - protected ?string $constSymbol; - protected ?float $specSymbol; + protected TypeVarSymbol $varSymbol; + protected TypeConstSymbolNullable $constSymbol; + protected TypeSpecSymbolNullable $specSymbol; protected TypeWeightUnlimited $weight; protected TypeWeightUnlimited $completePackageWeight; protected ?BillingMethod $billingMethod; @@ -110,34 +113,34 @@ public function setDueDate(TypeDateNullable $dueDate): static return $this; } - public function getVarSymbol(): float + public function getVarSymbol(): TypeVarSymbol { return $this->varSymbol; } - public function setVarSymbol(float $varSymbol): static + public function setVarSymbol(TypeVarSymbol $varSymbol): static { $this->varSymbol = $varSymbol; return $this; } - public function getConstSymbol(): ?string + public function getConstSymbol(): TypeConstSymbolNullable { return $this->constSymbol; } - public function setConstSymbol(?string $constSymbol): static + public function setConstSymbol(TypeConstSymbolNullable $constSymbol): static { $this->constSymbol = $constSymbol; return $this; } - public function getSpecSymbol(): ?float + public function getSpecSymbol(): TypeSpecSymbolNullable { return $this->specSymbol; } - public function setSpecSymbol(?float $specSymbol): static + public function setSpecSymbol(TypeSpecSymbolNullable $specSymbol): static { $this->specSymbol = $specSymbol; return $this; diff --git a/src/Component/Entity/ProofPaymentDetail.php b/src/Component/Entity/ProofPaymentDetail.php index c9bba7d6..ef7c12de 100644 --- a/src/Component/Entity/ProofPaymentDetail.php +++ b/src/Component/Entity/ProofPaymentDetail.php @@ -3,11 +3,14 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\ProofPaymentDetail\Source; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbolNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeExchangeRate; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeSpecSymbolNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbol; class ProofPaymentDetail extends Entity { @@ -47,9 +50,9 @@ class ProofPaymentDetail extends Entity /** @deprecated */ protected ?string $identificationNumber; protected ?string $remark; - protected float $varSymbol; - protected ?string $constSymbol; - protected ?float $specSymbol; + protected TypeVarSymbol $varSymbol; + protected TypeConstSymbolNullable $constSymbol; + protected TypeSpecSymbolNullable $specSymbol; protected ?BillingMethod $billingMethod; protected ?string $billBankAccount; protected ?string $billIban; @@ -443,34 +446,34 @@ public function setRemark(?string $remark): static return $this; } - public function getVarSymbol(): float + public function getVarSymbol(): TypeVarSymbol { return $this->varSymbol; } - public function setVarSymbol(float $varSymbol): static + public function setVarSymbol(TypeVarSymbol $varSymbol): static { $this->varSymbol = $varSymbol; return $this; } - public function getConstSymbol(): ?string + public function getConstSymbol(): TypeConstSymbolNullable { return $this->constSymbol; } - public function setConstSymbol(?string $constSymbol): static + public function setConstSymbol(TypeConstSymbolNullable $constSymbol): static { $this->constSymbol = $constSymbol; return $this; } - public function getSpecSymbol(): ?float + public function getSpecSymbol(): TypeSpecSymbolNullable { return $this->specSymbol; } - public function setSpecSymbol(?float $specSymbol): static + public function setSpecSymbol(TypeSpecSymbolNullable $specSymbol): static { $this->specSymbol = $specSymbol; return $this; diff --git a/src/Component/ValueObject/TypeSpecSymbol.php b/src/Component/ValueObject/TypeSpecSymbol.php new file mode 100644 index 00000000..c540c548 --- /dev/null +++ b/src/Component/ValueObject/TypeSpecSymbol.php @@ -0,0 +1,26 @@ +typeSpecSymbol === $this->typeSpecSymbol; + } + + public function __toString(): string + { + return (string) $this->typeSpecSymbol; + } + + public function jsonSerialize(): string + { + return $this->__toString(); + } +} diff --git a/src/Component/ValueObject/TypeSpecSymbolNullable.php b/src/Component/ValueObject/TypeSpecSymbolNullable.php new file mode 100644 index 00000000..b1e21fd4 --- /dev/null +++ b/src/Component/ValueObject/TypeSpecSymbolNullable.php @@ -0,0 +1,29 @@ +typeSpecSymbolNullable === null) { + return; + } + } + + public function equals(self $typeSpecSymbolNullable): bool + { + return $typeSpecSymbolNullable->typeSpecSymbolNullable === $this->typeSpecSymbolNullable; + } + + public function __toString(): string + { + return (string) $this->typeSpecSymbolNullable; + } + + public function jsonSerialize(): string + { + return $this->__toString(); + } +} diff --git a/src/Component/ValueObject/TypeVarSymbol.php b/src/Component/ValueObject/TypeVarSymbol.php new file mode 100644 index 00000000..9856624f --- /dev/null +++ b/src/Component/ValueObject/TypeVarSymbol.php @@ -0,0 +1,26 @@ +typeVarSymbol === $this->typeVarSymbol; + } + + public function __toString(): string + { + return (string) $this->typeVarSymbol; + } + + public function jsonSerialize(): string + { + return $this->__toString(); + } +} diff --git a/src/Component/ValueObject/TypeVarSymbolNullable.php b/src/Component/ValueObject/TypeVarSymbolNullable.php new file mode 100644 index 00000000..7add388c --- /dev/null +++ b/src/Component/ValueObject/TypeVarSymbolNullable.php @@ -0,0 +1,29 @@ +typeVarSymbolNullable === null) { + return; + } + } + + public function equals(self $typeVarSymbolNullable): bool + { + return $typeVarSymbolNullable->typeVarSymbolNullable === $this->typeVarSymbolNullable; + } + + public function __toString(): string + { + return (string) $this->typeVarSymbolNullable; + } + + public function jsonSerialize(): string + { + return $this->__toString(); + } +} diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest/Data.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest/Data.php index 545ddb1e..ae9ac47b 100644 --- a/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest/Data.php +++ b/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest/Data.php @@ -5,17 +5,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbol; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeSpecSymbol; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbol; use Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\CreateCreditNoteFromInvoiceRequest\CreateCreditNoteFromInvoiceRequest\Data\Items; use Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\CreateCreditNoteFromInvoiceRequest\CreateCreditNoteFromInvoiceRequest\Data\UseItemIds; class Data extends Entity { protected ?string $creditNoteCode; - protected ?float $varSymbol; + protected ?TypeVarSymbol $varSymbol; protected ?TypeDateNullable $dueDate; protected ?TypeDateNullable $taxDate; protected ?TypeConstSymbol $constSymbol; - protected ?float $specSymbol; + protected ?TypeSpecSymbol $specSymbol; protected ?int $billingMethodId; protected ?string $orderCode; @@ -35,12 +37,12 @@ public function setCreditNoteCode(?string $creditNoteCode): static return $this; } - public function getVarSymbol(): ?float + public function getVarSymbol(): ?TypeVarSymbol { return $this->varSymbol; } - public function setVarSymbol(?float $varSymbol): static + public function setVarSymbol(?TypeVarSymbol $varSymbol): static { $this->varSymbol = $varSymbol; return $this; @@ -79,12 +81,12 @@ public function setConstSymbol(?TypeConstSymbol $constSymbol): static return $this; } - public function getSpecSymbol(): ?float + public function getSpecSymbol(): ?TypeSpecSymbol { return $this->specSymbol; } - public function setSpecSymbol(?float $specSymbol): static + public function setSpecSymbol(?TypeSpecSymbol $specSymbol): static { $this->specSymbol = $specSymbol; return $this; diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentRequest/CreateCreditNoteFromProofOfPaymentRequest/Data.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentRequest/CreateCreditNoteFromProofOfPaymentRequest/Data.php index a277c6f3..957c6b78 100644 --- a/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentRequest/CreateCreditNoteFromProofOfPaymentRequest/Data.php +++ b/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentRequest/CreateCreditNoteFromProofOfPaymentRequest/Data.php @@ -5,15 +5,17 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbol; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeSpecSymbol; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbol; class Data extends Entity { protected ?string $creditNoteCode; - protected ?float $varSymbol; + protected ?TypeVarSymbol $varSymbol; protected ?TypeDateNullable $dueDate; protected ?TypeDateNullable $taxDate; protected ?TypeConstSymbol $constSymbol; - protected ?float $specSymbol; + protected ?TypeSpecSymbol $specSymbol; protected ?int $billingMethodId; protected ?string $orderCode; protected ?string $reasonRemark; @@ -29,12 +31,12 @@ public function setCreditNoteCode(?string $creditNoteCode): static return $this; } - public function getVarSymbol(): ?float + public function getVarSymbol(): ?TypeVarSymbol { return $this->varSymbol; } - public function setVarSymbol(?float $varSymbol): static + public function setVarSymbol(?TypeVarSymbol $varSymbol): static { $this->varSymbol = $varSymbol; return $this; @@ -73,12 +75,12 @@ public function setConstSymbol(?TypeConstSymbol $constSymbol): static return $this; } - public function getSpecSymbol(): ?float + public function getSpecSymbol(): ?TypeSpecSymbol { return $this->specSymbol; } - public function setSpecSymbol(?float $specSymbol): static + public function setSpecSymbol(?TypeSpecSymbol $specSymbol): static { $this->specSymbol = $specSymbol; return $this; diff --git a/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse/Data/CreditNotes/Item.php b/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse/Data/CreditNotes/Item.php index 15a4d322..e67c8a37 100644 --- a/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse/Data/CreditNotes/Item.php +++ b/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse/Data/CreditNotes/Item.php @@ -5,11 +5,12 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Price; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbolNullable; class Item extends Entity { protected string $code; - protected ?float $varSymbol; + protected TypeVarSymbolNullable $varSymbol; protected bool $isValid; protected ?string $invoiceCode; protected ?string $proofPaymentCode; @@ -32,12 +33,12 @@ public function setCode(string $code): static return $this; } - public function getVarSymbol(): ?float + public function getVarSymbol(): TypeVarSymbolNullable { return $this->varSymbol; } - public function setVarSymbol(?float $varSymbol): static + public function setVarSymbol(TypeVarSymbolNullable $varSymbol): static { $this->varSymbol = $varSymbol; return $this; diff --git a/src/Endpoint/CreditNotes/UpdateCreditNoteRequest/UpdateCreditNoteRequest/Data.php b/src/Endpoint/CreditNotes/UpdateCreditNoteRequest/UpdateCreditNoteRequest/Data.php index 39814360..4fcf55f3 100644 --- a/src/Endpoint/CreditNotes/UpdateCreditNoteRequest/UpdateCreditNoteRequest/Data.php +++ b/src/Endpoint/CreditNotes/UpdateCreditNoteRequest/UpdateCreditNoteRequest/Data.php @@ -5,24 +5,26 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbolNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeSpecSymbolNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbol; class Data extends Entity { - protected ?float $varSymbol; + protected ?TypeVarSymbol $varSymbol; protected ?TypeDateNullable $dueDate; protected ?TypeDateNullable $taxDate; protected ?TypeConstSymbolNullable $constSymbol; - protected ?float $specSymbol; + protected ?TypeSpecSymbolNullable $specSymbol; protected ?int $billingMethodId; protected ?string $orderCode; protected ?string $reasonRemark; - public function getVarSymbol(): ?float + public function getVarSymbol(): ?TypeVarSymbol { return $this->varSymbol; } - public function setVarSymbol(?float $varSymbol): static + public function setVarSymbol(?TypeVarSymbol $varSymbol): static { $this->varSymbol = $varSymbol; return $this; @@ -61,12 +63,12 @@ public function setConstSymbol(?TypeConstSymbolNullable $constSymbol): static return $this; } - public function getSpecSymbol(): ?float + public function getSpecSymbol(): ?TypeSpecSymbolNullable { return $this->specSymbol; } - public function setSpecSymbol(?float $specSymbol): static + public function setSpecSymbol(?TypeSpecSymbolNullable $specSymbol): static { $this->specSymbol = $specSymbol; return $this; diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/DefaultSettings.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/DefaultSettings.php index ff90a7ab..03f6a0c8 100644 --- a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/DefaultSettings.php +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/DefaultSettings.php @@ -3,11 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Eshop\GetEshopDocumentSettingsResponse\GetEshopDocumentSettingsResponse\Data; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbolNullable; class DefaultSettings extends Entity { protected ?int $billingMethodId; - protected ?string $constSymbol; + protected ?TypeConstSymbolNullable $constSymbol; protected ?string $specSymbol; protected ?int $maturity; protected ?string $invoiceRemark; @@ -29,12 +30,12 @@ public function setBillingMethodId(?int $billingMethodId): static return $this; } - public function getConstSymbol(): ?string + public function getConstSymbol(): ?TypeConstSymbolNullable { return $this->constSymbol; } - public function setConstSymbol(?string $constSymbol): static + public function setConstSymbol(?TypeConstSymbolNullable $constSymbol): static { $this->constSymbol = $constSymbol; return $this; diff --git a/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest/Data.php b/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest/Data.php index aa41085a..18210927 100644 --- a/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest/Data.php +++ b/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest/Data.php @@ -5,16 +5,18 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbol; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeSpecSymbol; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbol; use Shoptet\Api\Sdk\Php\Endpoint\Invoices\CreateInvoiceFromOrderRequest\CreateInvoiceFromOrderRequest\Data\ProofPaymentCodes; class Data extends Entity { protected ?string $invoiceCode; - protected ?float $varSymbol; + protected ?TypeVarSymbol $varSymbol; protected ?TypeDateNullable $dueDate; protected ?TypeDateNullable $taxDate; protected ?TypeConstSymbol $constSymbol; - protected ?float $specSymbol; + protected ?TypeSpecSymbol $specSymbol; protected ?int $billingMethodId; protected ?string $proformaInvoiceCode; protected ?ProofPaymentCodes $proofPaymentCodes; @@ -30,12 +32,12 @@ public function setInvoiceCode(?string $invoiceCode): static return $this; } - public function getVarSymbol(): ?float + public function getVarSymbol(): ?TypeVarSymbol { return $this->varSymbol; } - public function setVarSymbol(?float $varSymbol): static + public function setVarSymbol(?TypeVarSymbol $varSymbol): static { $this->varSymbol = $varSymbol; return $this; @@ -74,12 +76,12 @@ public function setConstSymbol(?TypeConstSymbol $constSymbol): static return $this; } - public function getSpecSymbol(): ?float + public function getSpecSymbol(): ?TypeSpecSymbol { return $this->specSymbol; } - public function setSpecSymbol(?float $specSymbol): static + public function setSpecSymbol(?TypeSpecSymbol $specSymbol): static { $this->specSymbol = $specSymbol; return $this; diff --git a/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceRequest/CreateInvoiceFromProformaInvoiceRequest/Data.php b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceRequest/CreateInvoiceFromProformaInvoiceRequest/Data.php index 54407a9d..96c55cab 100644 --- a/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceRequest/CreateInvoiceFromProformaInvoiceRequest/Data.php +++ b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceRequest/CreateInvoiceFromProformaInvoiceRequest/Data.php @@ -5,15 +5,17 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbol; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeSpecSymbol; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbol; class Data extends Entity { protected ?string $invoiceCode; - protected ?float $varSymbol; + protected ?TypeVarSymbol $varSymbol; protected ?TypeDate $dueDate; protected ?TypeDate $taxDate; protected ?TypeConstSymbol $constSymbol; - protected ?float $specSymbol; + protected ?TypeSpecSymbol $specSymbol; protected ?int $billingMethodId; public function getInvoiceCode(): ?string @@ -27,12 +29,12 @@ public function setInvoiceCode(?string $invoiceCode): static return $this; } - public function getVarSymbol(): ?float + public function getVarSymbol(): ?TypeVarSymbol { return $this->varSymbol; } - public function setVarSymbol(?float $varSymbol): static + public function setVarSymbol(?TypeVarSymbol $varSymbol): static { $this->varSymbol = $varSymbol; return $this; @@ -71,12 +73,12 @@ public function setConstSymbol(?TypeConstSymbol $constSymbol): static return $this; } - public function getSpecSymbol(): ?float + public function getSpecSymbol(): ?TypeSpecSymbol { return $this->specSymbol; } - public function setSpecSymbol(?float $specSymbol): static + public function setSpecSymbol(?TypeSpecSymbol $specSymbol): static { $this->specSymbol = $specSymbol; return $this; diff --git a/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data/Invoices/Item.php b/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data/Invoices/Item.php index f7b5f10b..a23ed731 100644 --- a/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data/Invoices/Item.php +++ b/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data/Invoices/Item.php @@ -7,11 +7,12 @@ use Shoptet\Api\Sdk\Php\Component\Entity\ProformaInvoiceCodes; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbolNullable; class Item extends Entity { protected string $code; - protected ?float $varSymbol; + protected TypeVarSymbolNullable $varSymbol; protected bool $isValid; protected ProformaInvoiceCodes $proformaInvoiceCodes; protected ?string $orderCode; @@ -34,12 +35,12 @@ public function setCode(string $code): static return $this; } - public function getVarSymbol(): ?float + public function getVarSymbol(): TypeVarSymbolNullable { return $this->varSymbol; } - public function setVarSymbol(?float $varSymbol): static + public function setVarSymbol(TypeVarSymbolNullable $varSymbol): static { $this->varSymbol = $varSymbol; return $this; diff --git a/src/Endpoint/ProformaInvoices/CreateProformaInvoiceFromOrderRequest/CreateProformaInvoiceFromOrderRequest/Data.php b/src/Endpoint/ProformaInvoices/CreateProformaInvoiceFromOrderRequest/CreateProformaInvoiceFromOrderRequest/Data.php index 7655138a..b86817c9 100644 --- a/src/Endpoint/ProformaInvoices/CreateProformaInvoiceFromOrderRequest/CreateProformaInvoiceFromOrderRequest/Data.php +++ b/src/Endpoint/ProformaInvoices/CreateProformaInvoiceFromOrderRequest/CreateProformaInvoiceFromOrderRequest/Data.php @@ -6,15 +6,17 @@ use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbolNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeSpecSymbolNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbol; class Data extends Entity { protected ?string $proformaInvoiceCode; - protected ?int $varSymbol; + protected ?TypeVarSymbol $varSymbol; protected ?TypeDateTimeNullable $creationTime; protected ?TypeDateNullable $dueDate; protected ?TypeConstSymbolNullable $constSymbol; - protected ?int $specSymbol; + protected ?TypeSpecSymbolNullable $specSymbol; protected ?int $billingMethodId; public function getProformaInvoiceCode(): ?string @@ -28,12 +30,12 @@ public function setProformaInvoiceCode(?string $proformaInvoiceCode): static return $this; } - public function getVarSymbol(): ?int + public function getVarSymbol(): ?TypeVarSymbol { return $this->varSymbol; } - public function setVarSymbol(?int $varSymbol): static + public function setVarSymbol(?TypeVarSymbol $varSymbol): static { $this->varSymbol = $varSymbol; return $this; @@ -72,12 +74,12 @@ public function setConstSymbol(?TypeConstSymbolNullable $constSymbol): static return $this; } - public function getSpecSymbol(): ?int + public function getSpecSymbol(): ?TypeSpecSymbolNullable { return $this->specSymbol; } - public function setSpecSymbol(?int $specSymbol): static + public function setSpecSymbol(?TypeSpecSymbolNullable $specSymbol): static { $this->specSymbol = $specSymbol; return $this; diff --git a/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse/Data/ProformaInvoices/Item.php b/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse/Data/ProformaInvoices/Item.php index 3e9a95a5..84e0cf23 100644 --- a/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse/Data/ProformaInvoices/Item.php +++ b/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse/Data/ProformaInvoices/Item.php @@ -5,11 +5,12 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Price; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbolNullable; class Item extends Entity { protected string $code; - protected ?float $varSymbol; + protected TypeVarSymbolNullable $varSymbol; protected bool $isValid; protected ?string $orderCode; protected TypeDateTimeNullable $creationTime; @@ -29,12 +30,12 @@ public function setCode(string $code): static return $this; } - public function getVarSymbol(): ?float + public function getVarSymbol(): TypeVarSymbolNullable { return $this->varSymbol; } - public function setVarSymbol(?float $varSymbol): static + public function setVarSymbol(TypeVarSymbolNullable $varSymbol): static { $this->varSymbol = $varSymbol; return $this; diff --git a/src/Endpoint/ProofPayments/CreateProofPaymentRequest/CreateProofPaymentRequest/Data.php b/src/Endpoint/ProofPayments/CreateProofPaymentRequest/CreateProofPaymentRequest/Data.php index 081ba521..c39eeaf3 100644 --- a/src/Endpoint/ProofPayments/CreateProofPaymentRequest/CreateProofPaymentRequest/Data.php +++ b/src/Endpoint/ProofPayments/CreateProofPaymentRequest/CreateProofPaymentRequest/Data.php @@ -3,10 +3,13 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\CreateProofPaymentRequest\CreateProofPaymentRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbolNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCode; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeRequest; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeSpecSymbolNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbol; class Data extends Entity { @@ -14,11 +17,11 @@ class Data extends Entity protected ?string $orderCode; protected TypePriceNullable $payment; protected TypeCurrencyCode $currencyCode; - protected float $varSymbol; + protected TypeVarSymbol $varSymbol; protected ?TypeDateTimeRequest $issueDate; protected ?TypeDateNullable $taxDate; - protected ?string $constSymbol; - protected ?float $specSymbol; + protected ?TypeConstSymbolNullable $constSymbol; + protected ?TypeSpecSymbolNullable $specSymbol; protected ?int $invoiceBillingMethodId; protected ?string $billBankAccount; protected ?string $billIban; @@ -69,12 +72,12 @@ public function setCurrencyCode(TypeCurrencyCode $currencyCode): static return $this; } - public function getVarSymbol(): float + public function getVarSymbol(): TypeVarSymbol { return $this->varSymbol; } - public function setVarSymbol(float $varSymbol): static + public function setVarSymbol(TypeVarSymbol $varSymbol): static { $this->varSymbol = $varSymbol; return $this; @@ -102,23 +105,23 @@ public function setTaxDate(?TypeDateNullable $taxDate): static return $this; } - public function getConstSymbol(): ?string + public function getConstSymbol(): ?TypeConstSymbolNullable { return $this->constSymbol; } - public function setConstSymbol(?string $constSymbol): static + public function setConstSymbol(?TypeConstSymbolNullable $constSymbol): static { $this->constSymbol = $constSymbol; return $this; } - public function getSpecSymbol(): ?float + public function getSpecSymbol(): ?TypeSpecSymbolNullable { return $this->specSymbol; } - public function setSpecSymbol(?float $specSymbol): static + public function setSpecSymbol(?TypeSpecSymbolNullable $specSymbol): static { $this->specSymbol = $specSymbol; return $this; diff --git a/src/Endpoint/ProofPayments/UpdateProofPaymentRequest/UpdateProofPaymentRequest/Data.php b/src/Endpoint/ProofPayments/UpdateProofPaymentRequest/UpdateProofPaymentRequest/Data.php index dc779236..9f76e422 100644 --- a/src/Endpoint/ProofPayments/UpdateProofPaymentRequest/UpdateProofPaymentRequest/Data.php +++ b/src/Endpoint/ProofPayments/UpdateProofPaymentRequest/UpdateProofPaymentRequest/Data.php @@ -3,16 +3,19 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\UpdateProofPaymentRequest\UpdateProofPaymentRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbolNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeRequest; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeSpecSymbolNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVarSymbol; class Data extends Entity { protected ?TypeDate $taxDate; protected ?TypeDateTimeRequest $issueDate; - protected ?float $varSymbol; - protected ?string $constSymbol; - protected ?float $specSymbol; + protected ?TypeVarSymbol $varSymbol; + protected ?TypeConstSymbolNullable $constSymbol; + protected ?TypeSpecSymbolNullable $specSymbol; protected ?int $invoiceBillingMethodId; protected ?string $billBankAccount; protected ?string $billIban; @@ -45,34 +48,34 @@ public function setIssueDate(?TypeDateTimeRequest $issueDate): static return $this; } - public function getVarSymbol(): ?float + public function getVarSymbol(): ?TypeVarSymbol { return $this->varSymbol; } - public function setVarSymbol(?float $varSymbol): static + public function setVarSymbol(?TypeVarSymbol $varSymbol): static { $this->varSymbol = $varSymbol; return $this; } - public function getConstSymbol(): ?string + public function getConstSymbol(): ?TypeConstSymbolNullable { return $this->constSymbol; } - public function setConstSymbol(?string $constSymbol): static + public function setConstSymbol(?TypeConstSymbolNullable $constSymbol): static { $this->constSymbol = $constSymbol; return $this; } - public function getSpecSymbol(): ?float + public function getSpecSymbol(): ?TypeSpecSymbolNullable { return $this->specSymbol; } - public function setSpecSymbol(?float $specSymbol): static + public function setSpecSymbol(?TypeSpecSymbolNullable $specSymbol): static { $this->specSymbol = $specSymbol; return $this;