diff --git a/init.php b/init.php index 3d5a90b..c5e5567 100644 --- a/init.php +++ b/init.php @@ -151,6 +151,7 @@ require_once __DIR__ . '/src/Component/Entity/OrderItem/ItemPriceVatBreakdown.php'; require_once __DIR__ . '/src/Component/Entity/OrderItem/MainImage.php'; require_once __DIR__ . '/src/Component/Entity/OrderItem/MainImage/SignedCdnNames.php'; +require_once __DIR__ . '/src/Component/Entity/OrderItem/MainImage/SignedCdnNames/Item.php'; require_once __DIR__ . '/src/Component/Entity/OrderItem/Status.php'; require_once __DIR__ . '/src/Component/Entity/OrderItem/SurchargeParametersTexts.php'; require_once __DIR__ . '/src/Component/Entity/OrderPreAuthorization.php'; @@ -195,6 +196,7 @@ require_once __DIR__ . '/src/Component/Entity/Product/Images.php'; require_once __DIR__ . '/src/Component/Entity/Product/Images/Item.php'; require_once __DIR__ . '/src/Component/Entity/Product/Images/Item/SignedCdnNames.php'; +require_once __DIR__ . '/src/Component/Entity/Product/Images/Item/SignedCdnNames/Item.php'; require_once __DIR__ . '/src/Component/Entity/Product/RelatedFiles.php'; require_once __DIR__ . '/src/Component/Entity/Product/RelatedFiles/Item.php'; require_once __DIR__ . '/src/Component/Entity/Product/RelatedProducts.php'; @@ -1465,6 +1467,7 @@ require_once __DIR__ . '/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images.php'; require_once __DIR__ . '/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item.php'; require_once __DIR__ . '/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item/SignedCdnNames.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item/SignedCdnNames/Item.php'; require_once __DIR__ . '/src/Endpoint/ProductImages/GetProductImagesUpdate.php'; require_once __DIR__ . '/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest.php'; require_once __DIR__ . '/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data.php'; @@ -1475,6 +1478,7 @@ require_once __DIR__ . '/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images.php'; require_once __DIR__ . '/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item.php'; require_once __DIR__ . '/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item/SignedCdnNames.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item/SignedCdnNames/Item.php'; require_once __DIR__ . '/src/Endpoint/ProductImages/UpdateProductImagesSource.php'; require_once __DIR__ . '/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest.php'; require_once __DIR__ . '/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data.php'; @@ -1556,6 +1560,7 @@ require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/DefaultCategory.php'; require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage.php'; require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage/SignedCdnNames.php'; +require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage/SignedCdnNames/Item.php'; require_once __DIR__ . '/src/Endpoint/Products/GetProductDetail.php'; require_once __DIR__ . '/src/Endpoint/Products/GetProductDetailByCode.php'; require_once __DIR__ . '/src/Endpoint/Products/GetProductDetailByCodeResponse/GetProductDetailByCodeResponse.php'; diff --git a/src/Component/Entity/OrderItem/MainImage/SignedCdnNames.php b/src/Component/Entity/OrderItem/MainImage/SignedCdnNames.php index a6ac4d0..0b889e5 100644 --- a/src/Component/Entity/OrderItem/MainImage/SignedCdnNames.php +++ b/src/Component/Entity/OrderItem/MainImage/SignedCdnNames.php @@ -2,8 +2,30 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\OrderItem\MainImage; -use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Component\Entity\EntityCollection; +use Shoptet\Api\Sdk\Php\Component\Entity\OrderItem\MainImage\SignedCdnNames\Item; -class SignedCdnNames extends Entity +/** + * @extends EntityCollection + * @property Item[] $data + * @method Item[] toArray() + * @method void set(int $key, Item $item) + * @method null|Item get(int $key) + * @method void add(Item $item) + * @method null|Item remove(int $key) + * @method bool removeItem(Item $item, bool $strict = true) + * @method bool contains(Item $item, bool $strict = true) + * @method null|Item offsetGet(int $offset) + * @method void offsetSet(int $offset, Item $value) + */ +class SignedCdnNames extends EntityCollection { + /** + * @param mixed $data + * @return class-string + */ + public function getItemType(mixed $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\OrderItem\MainImage\SignedCdnNames\Item'; + } } diff --git a/src/Component/Entity/OrderItem/MainImage/SignedCdnNames/Item.php b/src/Component/Entity/OrderItem/MainImage/SignedCdnNames/Item.php new file mode 100644 index 0000000..048a66c --- /dev/null +++ b/src/Component/Entity/OrderItem/MainImage/SignedCdnNames/Item.php @@ -0,0 +1,33 @@ +type; + } + + public function setType(string $type): static + { + $this->type = $type; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } +} diff --git a/src/Component/Entity/Product/Images/Item/SignedCdnNames.php b/src/Component/Entity/Product/Images/Item/SignedCdnNames.php index 8e0148a..02689f8 100644 --- a/src/Component/Entity/Product/Images/Item/SignedCdnNames.php +++ b/src/Component/Entity/Product/Images/Item/SignedCdnNames.php @@ -2,8 +2,30 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\Product\Images\Item; -use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Component\Entity\EntityCollection; +use Shoptet\Api\Sdk\Php\Component\Entity\Product\Images\Item\SignedCdnNames\Item; -class SignedCdnNames extends Entity +/** + * @extends EntityCollection + * @property Item[] $data + * @method Item[] toArray() + * @method void set(int $key, Item $item) + * @method null|Item get(int $key) + * @method void add(Item $item) + * @method null|Item remove(int $key) + * @method bool removeItem(Item $item, bool $strict = true) + * @method bool contains(Item $item, bool $strict = true) + * @method null|Item offsetGet(int $offset) + * @method void offsetSet(int $offset, Item $value) + */ +class SignedCdnNames extends EntityCollection { + /** + * @param mixed $data + * @return class-string + */ + public function getItemType(mixed $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\Product\Images\Item\SignedCdnNames\Item'; + } } diff --git a/src/Component/Entity/Product/Images/Item/SignedCdnNames/Item.php b/src/Component/Entity/Product/Images/Item/SignedCdnNames/Item.php new file mode 100644 index 0000000..945d260 --- /dev/null +++ b/src/Component/Entity/Product/Images/Item/SignedCdnNames/Item.php @@ -0,0 +1,33 @@ +type; + } + + public function setType(string $type): static + { + $this->type = $type; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item/SignedCdnNames.php b/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item/SignedCdnNames.php index 6fb51fc..ed79541 100644 --- a/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item/SignedCdnNames.php +++ b/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item/SignedCdnNames.php @@ -2,8 +2,30 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetListOfProductImagesResponse\GetListOfProductImagesResponse\Data\Images\Item; -use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Component\Entity\EntityCollection; +use Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetListOfProductImagesResponse\GetListOfProductImagesResponse\Data\Images\Item\SignedCdnNames\Item; -class SignedCdnNames extends Entity +/** + * @extends EntityCollection + * @property Item[] $data + * @method Item[] toArray() + * @method void set(int $key, Item $item) + * @method null|Item get(int $key) + * @method void add(Item $item) + * @method null|Item remove(int $key) + * @method bool removeItem(Item $item, bool $strict = true) + * @method bool contains(Item $item, bool $strict = true) + * @method null|Item offsetGet(int $offset) + * @method void offsetSet(int $offset, Item $value) + */ +class SignedCdnNames extends EntityCollection { + /** + * @param mixed $data + * @return class-string + */ + public function getItemType(mixed $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetListOfProductImagesResponse\GetListOfProductImagesResponse\Data\Images\Item\SignedCdnNames\Item'; + } } diff --git a/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item/SignedCdnNames/Item.php b/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item/SignedCdnNames/Item.php new file mode 100644 index 0000000..c0f06c8 --- /dev/null +++ b/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item/SignedCdnNames/Item.php @@ -0,0 +1,33 @@ +type; + } + + public function setType(string $type): static + { + $this->type = $type; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item/SignedCdnNames.php b/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item/SignedCdnNames.php index fe18e77..cde5a4f 100644 --- a/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item/SignedCdnNames.php +++ b/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item/SignedCdnNames.php @@ -2,8 +2,30 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetProductImagesUpdateResponse\GetProductImagesUpdateResponse\Data\Images\Item; -use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Component\Entity\EntityCollection; +use Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetProductImagesUpdateResponse\GetProductImagesUpdateResponse\Data\Images\Item\SignedCdnNames\Item; -class SignedCdnNames extends Entity +/** + * @extends EntityCollection + * @property Item[] $data + * @method Item[] toArray() + * @method void set(int $key, Item $item) + * @method null|Item get(int $key) + * @method void add(Item $item) + * @method null|Item remove(int $key) + * @method bool removeItem(Item $item, bool $strict = true) + * @method bool contains(Item $item, bool $strict = true) + * @method null|Item offsetGet(int $offset) + * @method void offsetSet(int $offset, Item $value) + */ +class SignedCdnNames extends EntityCollection { + /** + * @param mixed $data + * @return class-string + */ + public function getItemType(mixed $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetProductImagesUpdateResponse\GetProductImagesUpdateResponse\Data\Images\Item\SignedCdnNames\Item'; + } } diff --git a/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item/SignedCdnNames/Item.php b/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item/SignedCdnNames/Item.php new file mode 100644 index 0000000..5e96306 --- /dev/null +++ b/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item/SignedCdnNames/Item.php @@ -0,0 +1,33 @@ +type; + } + + public function setType(string $type): static + { + $this->type = $type; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } +} diff --git a/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage/SignedCdnNames.php b/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage/SignedCdnNames.php index fb95203..bdc9c1d 100644 --- a/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage/SignedCdnNames.php +++ b/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage/SignedCdnNames.php @@ -2,8 +2,30 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsResponse\GetListOfProductsResponse\Data\Products\Item\MainImage; -use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Component\Entity\EntityCollection; +use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsResponse\GetListOfProductsResponse\Data\Products\Item\MainImage\SignedCdnNames\Item; -class SignedCdnNames extends Entity +/** + * @extends EntityCollection + * @property Item[] $data + * @method Item[] toArray() + * @method void set(int $key, Item $item) + * @method null|Item get(int $key) + * @method void add(Item $item) + * @method null|Item remove(int $key) + * @method bool removeItem(Item $item, bool $strict = true) + * @method bool contains(Item $item, bool $strict = true) + * @method null|Item offsetGet(int $offset) + * @method void offsetSet(int $offset, Item $value) + */ +class SignedCdnNames extends EntityCollection { + /** + * @param mixed $data + * @return class-string + */ + public function getItemType(mixed $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsResponse\GetListOfProductsResponse\Data\Products\Item\MainImage\SignedCdnNames\Item'; + } } diff --git a/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage/SignedCdnNames/Item.php b/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage/SignedCdnNames/Item.php new file mode 100644 index 0000000..9806dd3 --- /dev/null +++ b/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage/SignedCdnNames/Item.php @@ -0,0 +1,33 @@ +type; + } + + public function setType(string $type): static + { + $this->type = $type; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } +}