@@ -9,16 +9,16 @@ discard block |
||
| 9 | 9 | class HeaderDto extends AbstractHeaderDto |
| 10 | 10 | { |
| 11 | 11 | #[Attributes\Options\EnumOption(ProdejkaTypeEnum::class), Attributes\Options\DefaultOption(ProdejkaTypeEnum::SaleVoucher)] |
| 12 | - public ProdejkaTypeEnum|string|null $prodejkaType = null; |
|
| 12 | + public ProdejkaTypeEnum | string | null $prodejkaType = null; |
|
| 13 | 13 | #[Attributes\RefElement] |
| 14 | 14 | public ?string $number = null; |
| 15 | 15 | #[Attributes\Options\DateOption] |
| 16 | - public \DateTimeInterface|string|null $date = null; |
|
| 16 | + public \DateTimeInterface | string | null $date = null; |
|
| 17 | 17 | #[Attributes\RefElement] |
| 18 | 18 | public ?string $accounting = null; |
| 19 | 19 | #[Attributes\Options\StringOption(240)] |
| 20 | 20 | public ?string $text = null; |
| 21 | - public Type\Dtos\AddressDto|Type\Address|null $partnerIdentity = null; |
|
| 21 | + public Type\Dtos\AddressDto | Type\Address | null $partnerIdentity = null; |
|
| 22 | 22 | #[Attributes\RefElement] |
| 23 | 23 | public ?string $paymentType = null; |
| 24 | 24 | #[Attributes\RefElement] |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | public ?string $centre = null; |
| 28 | 28 | /** @var array<string, string|int|float|bool|array<string, string|int|float|bool>>|string|null */ |
| 29 | 29 | #[Attributes\RefElement] |
| 30 | - public array|string|null $activity = null; |
|
| 30 | + public array | string | null $activity = null; |
|
| 31 | 31 | #[Attributes\RefElement] |
| 32 | 32 | public ?string $contract = null; |
| 33 | 33 | #[Attributes\RefElement] |
@@ -10,12 +10,12 @@ |
||
| 10 | 10 | class SummaryDto extends AbstractSummaryDto |
| 11 | 11 | { |
| 12 | 12 | #[Attributes\Options\EnumOption(Enums\RoundingDocumentEnum::class)] |
| 13 | - public Enums\RoundingDocumentEnum|string|null $roundingDocument = null; |
|
| 13 | + public Enums\RoundingDocumentEnum | string | null $roundingDocument = null; |
|
| 14 | 14 | #[Attributes\Options\EnumOption(Enums\RoundingVatEnum::class)] |
| 15 | - public Enums\RoundingVatEnum|string|null $roundingVAT = null; |
|
| 15 | + public Enums\RoundingVatEnum | string | null $roundingVAT = null; |
|
| 16 | 16 | #[Attributes\Options\BooleanOption] |
| 17 | - public bool|string|null $calculateVAT = null; |
|
| 18 | - public Type\Dtos\CurrencyHomeDto|Type\CurrencyHome|null $homeCurrency = null; |
|
| 17 | + public bool | string | null $calculateVAT = null; |
|
| 18 | + public Type\Dtos\CurrencyHomeDto | Type\CurrencyHome | null $homeCurrency = null; |
|
| 19 | 19 | #[Attributes\OnlyInternal] |
| 20 | - public Type\Dtos\CurrencyForeignDto|Type\CurrencyForeign|null $foreignCurrency = null; |
|
| 20 | + public Type\Dtos\CurrencyForeignDto | Type\CurrencyForeign | null $foreignCurrency = null; |
|
| 21 | 21 | } |
@@ -12,24 +12,24 @@ |
||
| 12 | 12 | #[Attributes\Options\StringOption(255)] |
| 13 | 13 | public ?string $text = null; |
| 14 | 14 | #[Attributes\Options\FloatOption] |
| 15 | - public float|string|null $quantity = null; |
|
| 15 | + public float | string | null $quantity = null; |
|
| 16 | 16 | #[Attributes\Options\StringOption(10)] |
| 17 | 17 | public ?string $unit = null; |
| 18 | 18 | #[Attributes\Options\FloatOption] |
| 19 | - public float|string|null $coefficient = null; |
|
| 19 | + public float | string | null $coefficient = null; |
|
| 20 | 20 | #[Attributes\Options\BooleanOption] |
| 21 | - public bool|string|null $payVAT = null; |
|
| 21 | + public bool | string | null $payVAT = null; |
|
| 22 | 22 | #[Attributes\Options\EnumOption(Enums\RateVatEnum::class)] |
| 23 | - public Enums\EnhancedEnumInterface|string|null $rateVAT = null; |
|
| 23 | + public Enums\EnhancedEnumInterface | string | null $rateVAT = null; |
|
| 24 | 24 | #[Attributes\Options\FloatOption] |
| 25 | - public float|string|null $discountPercentage = null; |
|
| 26 | - public Type\Dtos\CurrencyItemDto|Type\CurrencyItem|null $homeCurrency = null; |
|
| 27 | - public Type\Dtos\CurrencyItemDto|Type\CurrencyItem|null $foreignCurrency = null; |
|
| 25 | + public float | string | null $discountPercentage = null; |
|
| 26 | + public Type\Dtos\CurrencyItemDto | Type\CurrencyItem | null $homeCurrency = null; |
|
| 27 | + public Type\Dtos\CurrencyItemDto | Type\CurrencyItem | null $foreignCurrency = null; |
|
| 28 | 28 | #[Attributes\Options\StringOption(90)] |
| 29 | 29 | public ?string $note = null; |
| 30 | 30 | #[Attributes\Options\StringOption(64)] |
| 31 | 31 | public ?string $code = null; |
| 32 | - public Type\Dtos\StockItemDto|Type\StockItem|null $stockItem = null; |
|
| 32 | + public Type\Dtos\StockItemDto | Type\StockItem | null $stockItem = null; |
|
| 33 | 33 | #[Attributes\RefElement] |
| 34 | 34 | public ?string $centre = null; |
| 35 | 35 | #[Attributes\RefElement] |
@@ -10,9 +10,9 @@ |
||
| 10 | 10 | class SummaryDto extends AbstractSummaryDto |
| 11 | 11 | { |
| 12 | 12 | #[Attributes\Options\EnumOption(Enums\RoundingDocumentEnum::class)] |
| 13 | - public Enums\RoundingDocumentEnum|string|null $roundingDocument = null; |
|
| 13 | + public Enums\RoundingDocumentEnum | string | null $roundingDocument = null; |
|
| 14 | 14 | #[Attributes\Options\EnumOption(Enums\RoundingVatEnum::class)] |
| 15 | - public Enums\RoundingVatEnum|string|null $roundingVAT = null; |
|
| 16 | - public Type\Dtos\CurrencyHomeDto|Type\CurrencyHome|null $homeCurrency = null; |
|
| 17 | - public Type\Dtos\CurrencyForeignDto|Type\CurrencyForeign|null $foreignCurrency = null; |
|
| 15 | + public Enums\RoundingVatEnum | string | null $roundingVAT = null; |
|
| 16 | + public Type\Dtos\CurrencyHomeDto | Type\CurrencyHome | null $homeCurrency = null; |
|
| 17 | + public Type\Dtos\CurrencyForeignDto | Type\CurrencyForeign | null $foreignCurrency = null; |
|
| 18 | 18 | } |
@@ -12,28 +12,28 @@ discard block |
||
| 12 | 12 | #[Attributes\Options\StringOption(90)] |
| 13 | 13 | public ?string $text = null; |
| 14 | 14 | #[Attributes\Options\FloatOption] |
| 15 | - public float|string|null $quantity = null; |
|
| 15 | + public float | string | null $quantity = null; |
|
| 16 | 16 | #[Attributes\Options\StringOption(10)] |
| 17 | 17 | public ?string $unit = null; |
| 18 | 18 | #[Attributes\Options\FloatOption] |
| 19 | - public float|string|null $coefficient = null; |
|
| 19 | + public float | string | null $coefficient = null; |
|
| 20 | 20 | #[Attributes\Options\BooleanOption] |
| 21 | - public bool|string|null $payVAT = null; |
|
| 21 | + public bool | string | null $payVAT = null; |
|
| 22 | 22 | #[Attributes\Options\EnumOption(Enums\RateVatHistoryEnum::class)] |
| 23 | - public Enums\EnhancedEnumInterface|string|null $rateVAT = null; |
|
| 23 | + public Enums\EnhancedEnumInterface | string | null $rateVAT = null; |
|
| 24 | 24 | #[Attributes\Options\FloatOption] |
| 25 | - public float|string|null $percentVAT = null; |
|
| 25 | + public float | string | null $percentVAT = null; |
|
| 26 | 26 | #[Attributes\Options\FloatOption] |
| 27 | - public float|string|null $discountPercentage = null; |
|
| 28 | - public Type\Dtos\CurrencyItemDto|Type\CurrencyItem|null $homeCurrency = null; |
|
| 29 | - public Type\Dtos\CurrencyItemDto|Type\CurrencyItem|null $foreignCurrency = null; |
|
| 27 | + public float | string | null $discountPercentage = null; |
|
| 28 | + public Type\Dtos\CurrencyItemDto | Type\CurrencyItem | null $homeCurrency = null; |
|
| 29 | + public Type\Dtos\CurrencyItemDto | Type\CurrencyItem | null $foreignCurrency = null; |
|
| 30 | 30 | #[Attributes\RefElement] |
| 31 | 31 | public ?string $typeServiceMOSS = null; |
| 32 | 32 | #[Attributes\Options\StringOption(90)] |
| 33 | 33 | public ?string $note = null; |
| 34 | 34 | #[Attributes\Options\StringOption(64)] |
| 35 | 35 | public ?string $code = null; |
| 36 | - public Type\Dtos\StockItemDto|Type\StockItem|null $stockItem = null; |
|
| 36 | + public Type\Dtos\StockItemDto | Type\StockItem | null $stockItem = null; |
|
| 37 | 37 | #[Attributes\RefElement] |
| 38 | 38 | public ?string $centre = null; |
| 39 | 39 | #[Attributes\RefElement] |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | #[Attributes\RefElement] |
| 42 | 42 | public ?string $contract = null; |
| 43 | 43 | #[Attributes\Options\BooleanOption] |
| 44 | - public bool|string|null $PDP = null; |
|
| 44 | + public bool | string | null $PDP = null; |
|
| 45 | 45 | /** @var array<Type\Parameter|Type\Dtos\ParameterDto> */ |
| 46 | 46 | public array $parameters = []; |
| 47 | 47 | } |
@@ -20,23 +20,23 @@ |
||
| 20 | 20 | #[Attributes\Options\DefaultOption(['\kalanis\Pohoda\ListResponse\ListResponseDto', 'normalizeNamespace'])] |
| 21 | 21 | public ?string $namespace = null; |
| 22 | 22 | #[Attributes\Options\DefaultOption(['\kalanis\Pohoda\ListResponse\ListResponseDto', 'normalizeOrderType']), Attributes\Options\EnumOption(Enums\OrderTypeEnum::class)] |
| 23 | - public Enums\OrderTypeEnum|string|null $orderType = null; |
|
| 23 | + public Enums\OrderTypeEnum | string | null $orderType = null; |
|
| 24 | 24 | #[Attributes\Options\DefaultOption(['\kalanis\Pohoda\ListResponse\ListResponseDto', 'normalizeInvoiceType']), Attributes\Options\EnumOption(Enums\InvoiceTypeEnum::class)] |
| 25 | - public Enums\InvoiceTypeEnum|string|null $invoiceType = null; |
|
| 25 | + public Enums\InvoiceTypeEnum | string | null $invoiceType = null; |
|
| 26 | 26 | #[Attributes\JustAttribute] |
| 27 | - public ListRequest\Limit|ListRequest\LimitDto|null $limit = null; |
|
| 27 | + public ListRequest\Limit | ListRequest\LimitDto | null $limit = null; |
|
| 28 | 28 | #[Attributes\JustAttribute] |
| 29 | - public ListRequest\Filter|ListRequest\FilterDto|null $filter = null; |
|
| 29 | + public ListRequest\Filter | ListRequest\FilterDto | null $filter = null; |
|
| 30 | 30 | #[Attributes\JustAttribute] |
| 31 | - public ListRequest\RestrictionData|ListRequest\RestrictionDataDto|null $restrictionData = null; |
|
| 31 | + public ListRequest\RestrictionData | ListRequest\RestrictionDataDto | null $restrictionData = null; |
|
| 32 | 32 | #[Attributes\JustAttribute] |
| 33 | - public ListRequest\UserFilterName|ListRequest\UserFilterNameDto|null $userFilterName = null; |
|
| 33 | + public ListRequest\UserFilterName | ListRequest\UserFilterNameDto | null $userFilterName = null; |
|
| 34 | 34 | /** @var array<Order> */ |
| 35 | 35 | public array $order = []; |
| 36 | 36 | /** @var array<Stock> */ |
| 37 | 37 | public array $stock = []; |
| 38 | - public \DateTimeInterface|string|null $timestamp = null; |
|
| 39 | - public \DateTimeInterface|string|null $validFrom = null; |
|
| 38 | + public \DateTimeInterface | string | null $timestamp = null; |
|
| 39 | + public \DateTimeInterface | string | null $validFrom = null; |
|
| 40 | 40 | |
| 41 | 41 | public static function normalizeNamespace(Options $options): string |
| 42 | 42 | { |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * |
| 23 | 23 | * @return AbstractAgenda |
| 24 | 24 | */ |
| 25 | - public function addParameter(string $name, Type\Enums\ParameterTypeEnum|string $type, mixed $value, mixed $list = null): AbstractAgenda |
|
| 25 | + public function addParameter(string $name, Type\Enums\ParameterTypeEnum | string $type, mixed $value, mixed $list = null): AbstractAgenda |
|
| 26 | 26 | { |
| 27 | 27 | $object = $this->data->header ?? null; |
| 28 | 28 | if ($object && is_object($object) && method_exists($object, 'addParameter')) { |
@@ -22,7 +22,7 @@ |
||
| 22 | 22 | * @param mixed|null $list |
| 23 | 23 | * @return self |
| 24 | 24 | */ |
| 25 | - public function addParameter(string $name, Type\Enums\ParameterTypeEnum|string $type, mixed $value, mixed $list = null): self |
|
| 25 | + public function addParameter(string $name, Type\Enums\ParameterTypeEnum | string $type, mixed $value, mixed $list = null): self |
|
| 26 | 26 | { |
| 27 | 27 | $parameter = new Type\Parameter( |
| 28 | 28 | $this->dependenciesFactory, |