diff --git a/composer.json b/composer.json index 316b0f2f..dd31e5e5 100755 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "ext-zlib": "*" }, "require-dev": { - "phpstan/phpstan": "1.12.1", + "phpstan/phpstan": "^2.1.39", "php-parallel-lint/php-parallel-lint": "^1.4.0", "squizlabs/php_codesniffer": "^3.9", "contributte/qa": "^0.3.2", diff --git a/composer.lock b/composer.lock index a589464c..7fdb7ba2 100755 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c6458a6ab3252f056612fc5010975ced", + "content-hash": "5a773ad110fe29e5b3c7f659309e677f", "packages": [ { "name": "psr/log", @@ -550,20 +550,15 @@ }, { "name": "phpstan/phpstan", - "version": "1.12.1", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan.git", - "reference": "d8ed7fffa66de1db0d2972267d8ed1d8fa0fe5a2" - }, + "version": "2.1.39", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/d8ed7fffa66de1db0d2972267d8ed1d8fa0fe5a2", - "reference": "d8ed7fffa66de1db0d2972267d8ed1d8fa0fe5a2", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/c6f73a2af4cbcd99c931d0fb8f08548cc0fa8224", + "reference": "c6f73a2af4cbcd99c931d0fb8f08548cc0fa8224", "shasum": "" }, "require": { - "php": "^7.2|^8.0" + "php": "^7.4|^8.0" }, "conflict": { "phpstan/phpstan-shim": "*" @@ -604,7 +599,7 @@ "type": "github" } ], - "time": "2024-09-03T19:55:22+00:00" + "time": "2026-02-11T14:48:56+00:00" }, { "name": "phpunit/php-code-coverage", diff --git a/phpstan.neon.dist b/phpstan.neon.dist index e4064bf3..31569d63 100755 --- a/phpstan.neon.dist +++ b/phpstan.neon.dist @@ -2,7 +2,7 @@ includes: - phpstan-baseline.neon parameters: - level: 9 + level: 10 checkFunctionNameCase: true reportUnmatchedIgnoredErrors: true diff --git a/src/Component/Entity/EntityCollection.php b/src/Component/Entity/EntityCollection.php index 7f8d7826..5bdc67f1 100755 --- a/src/Component/Entity/EntityCollection.php +++ b/src/Component/Entity/EntityCollection.php @@ -203,7 +203,7 @@ public function getValues(): array */ public function filter(?callable $callback): static { - return new static(array_filter($this->data, $callback)); + return new static(array_filter($this->data, $callback)); // @phpstan-ignore return.type } /** @@ -212,7 +212,7 @@ public function filter(?callable $callback): static */ public function map(callable $callback): static { - return new static(array_map($callback, $this->data)); + return new static(array_map($callback, $this->data)); // @phpstan-ignore return.type } /** diff --git a/src/Endpoint/AlternativeProducts/AddAlternativeProduct.php b/src/Endpoint/AlternativeProducts/AddAlternativeProduct.php index bb945e6e..af361926 100755 --- a/src/Endpoint/AlternativeProducts/AddAlternativeProduct.php +++ b/src/Endpoint/AlternativeProducts/AddAlternativeProduct.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Alternative-products/addalternativeproduct * - * @method AddAlternativeProduct setBody(null|array|AddAlternativeProductRequest $entity) + * @method AddAlternativeProduct setBody(null|array|AddAlternativeProductRequest $entity) * @method null|AddAlternativeProductRequest getBody() */ class AddAlternativeProduct extends Post diff --git a/src/Endpoint/AlternativeProducts/SetAlternativeProducts.php b/src/Endpoint/AlternativeProducts/SetAlternativeProducts.php index 6eaa1b1f..735653fc 100755 --- a/src/Endpoint/AlternativeProducts/SetAlternativeProducts.php +++ b/src/Endpoint/AlternativeProducts/SetAlternativeProducts.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Alternative-products/setalternativeproducts * - * @method SetAlternativeProducts setBody(null|array|SetAlternativeProductsRequest $entity) + * @method SetAlternativeProducts setBody(null|array|SetAlternativeProductsRequest $entity) * @method null|SetAlternativeProductsRequest getBody() */ class SetAlternativeProducts extends Put diff --git a/src/Endpoint/Articles/CreateArticle.php b/src/Endpoint/Articles/CreateArticle.php index baa9f359..80656e22 100755 --- a/src/Endpoint/Articles/CreateArticle.php +++ b/src/Endpoint/Articles/CreateArticle.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/createarticle * - * @method CreateArticle setBody(null|array|CreateArticleRequest $entity) + * @method CreateArticle setBody(null|array|CreateArticleRequest $entity) * @method null|CreateArticleRequest getBody() */ class CreateArticle extends Post diff --git a/src/Endpoint/Articles/CreateArticleSection.php b/src/Endpoint/Articles/CreateArticleSection.php index 7a0f5195..e125a5e5 100755 --- a/src/Endpoint/Articles/CreateArticleSection.php +++ b/src/Endpoint/Articles/CreateArticleSection.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/createarticlesection * - * @method CreateArticleSection setBody(null|array|CreateArticleSectionRequest $entity) + * @method CreateArticleSection setBody(null|array|CreateArticleSectionRequest $entity) * @method null|CreateArticleSectionRequest getBody() */ class CreateArticleSection extends Post diff --git a/src/Endpoint/Articles/UpdateArticle.php b/src/Endpoint/Articles/UpdateArticle.php index 34497ac2..68d507f4 100755 --- a/src/Endpoint/Articles/UpdateArticle.php +++ b/src/Endpoint/Articles/UpdateArticle.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/updatearticle * - * @method UpdateArticle setBody(null|array|UpdateArticleRequest $entity) + * @method UpdateArticle setBody(null|array|UpdateArticleRequest $entity) * @method null|UpdateArticleRequest getBody() */ class UpdateArticle extends Patch diff --git a/src/Endpoint/Articles/UpdateArticleSection.php b/src/Endpoint/Articles/UpdateArticleSection.php index ddebbb17..0f2f362f 100755 --- a/src/Endpoint/Articles/UpdateArticleSection.php +++ b/src/Endpoint/Articles/UpdateArticleSection.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/updatearticlesection * - * @method UpdateArticleSection setBody(null|array|UpdateArticleSectionRequest $entity) + * @method UpdateArticleSection setBody(null|array|UpdateArticleSectionRequest $entity) * @method null|UpdateArticleSectionRequest getBody() */ class UpdateArticleSection extends Patch diff --git a/src/Endpoint/Brands/CreateBrand.php b/src/Endpoint/Brands/CreateBrand.php index a522009f..a7c0afc7 100755 --- a/src/Endpoint/Brands/CreateBrand.php +++ b/src/Endpoint/Brands/CreateBrand.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/createbrand * - * @method CreateBrand setBody(null|array|CreateBrandRequest $entity) + * @method CreateBrand setBody(null|array|CreateBrandRequest $entity) * @method null|CreateBrandRequest getBody() */ class CreateBrand extends Post diff --git a/src/Endpoint/Brands/CreateBrandBatch.php b/src/Endpoint/Brands/CreateBrandBatch.php index 9806846f..5dde37e5 100755 --- a/src/Endpoint/Brands/CreateBrandBatch.php +++ b/src/Endpoint/Brands/CreateBrandBatch.php @@ -10,7 +10,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/createbrandbatch * - * @method CreateBrandBatch setBody(null|array|CreateBrandBatchRequest $entity) + * @method CreateBrandBatch setBody(null|array|CreateBrandBatchRequest $entity) * @method null|CreateBrandBatchRequest getBody() */ class CreateBrandBatch extends Post implements AsyncEndpoint diff --git a/src/Endpoint/Brands/UpdateBrand.php b/src/Endpoint/Brands/UpdateBrand.php index c553fb33..570b5685 100755 --- a/src/Endpoint/Brands/UpdateBrand.php +++ b/src/Endpoint/Brands/UpdateBrand.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/updatebrand * - * @method UpdateBrand setBody(null|array|UpdateBrandRequest $entity) + * @method UpdateBrand setBody(null|array|UpdateBrandRequest $entity) * @method null|UpdateBrandRequest getBody() */ class UpdateBrand extends Patch diff --git a/src/Endpoint/Categories/CreateProductCategory.php b/src/Endpoint/Categories/CreateProductCategory.php index 3dc92521..8a89c8a5 100755 --- a/src/Endpoint/Categories/CreateProductCategory.php +++ b/src/Endpoint/Categories/CreateProductCategory.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/createproductcategory * - * @method CreateProductCategory setBody(null|array|CreateProductCategoryRequest $entity) + * @method CreateProductCategory setBody(null|array|CreateProductCategoryRequest $entity) * @method null|CreateProductCategoryRequest getBody() */ class CreateProductCategory extends Post diff --git a/src/Endpoint/Categories/UpdateCategoryProductsPriorityBatch.php b/src/Endpoint/Categories/UpdateCategoryProductsPriorityBatch.php index 5a0d7588..c5930668 100644 --- a/src/Endpoint/Categories/UpdateCategoryProductsPriorityBatch.php +++ b/src/Endpoint/Categories/UpdateCategoryProductsPriorityBatch.php @@ -10,7 +10,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/updatecategoryproductsprioritybatch * - * @method UpdateCategoryProductsPriorityBatch setBody(null|array|UpdateCategoryProductsPriorityBatchRequest $entity) + * @method UpdateCategoryProductsPriorityBatch setBody(null|array|UpdateCategoryProductsPriorityBatchRequest $entity) * @method null|UpdateCategoryProductsPriorityBatchRequest getBody() */ class UpdateCategoryProductsPriorityBatch extends Patch implements AsyncEndpoint diff --git a/src/Endpoint/Categories/UpdateProductCategory.php b/src/Endpoint/Categories/UpdateProductCategory.php index b9de6b07..e35aeb57 100755 --- a/src/Endpoint/Categories/UpdateProductCategory.php +++ b/src/Endpoint/Categories/UpdateProductCategory.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/updateproductcategory * - * @method UpdateProductCategory setBody(null|array|UpdateProductCategoryRequest $entity) + * @method UpdateProductCategory setBody(null|array|UpdateProductCategoryRequest $entity) * @method null|UpdateProductCategoryRequest getBody() */ class UpdateProductCategory extends Patch diff --git a/src/Endpoint/Categories/UpdateProductCategoryBatch.php b/src/Endpoint/Categories/UpdateProductCategoryBatch.php index e1b1dfe5..b97fb0b1 100755 --- a/src/Endpoint/Categories/UpdateProductCategoryBatch.php +++ b/src/Endpoint/Categories/UpdateProductCategoryBatch.php @@ -10,7 +10,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/updateproductcategorybatch * - * @method UpdateProductCategoryBatch setBody(null|array|UpdateProductCategoryBatchRequest $entity) + * @method UpdateProductCategoryBatch setBody(null|array|UpdateProductCategoryBatchRequest $entity) * @method null|UpdateProductCategoryBatchRequest getBody() */ class UpdateProductCategoryBatch extends Patch implements AsyncEndpoint diff --git a/src/Endpoint/Categories/UpdateProductOrderInCategory.php b/src/Endpoint/Categories/UpdateProductOrderInCategory.php index aa378d20..349ea7b6 100755 --- a/src/Endpoint/Categories/UpdateProductOrderInCategory.php +++ b/src/Endpoint/Categories/UpdateProductOrderInCategory.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/updateproductorderincategory * - * @method UpdateProductOrderInCategory setBody(null|array|UpdateProductOrderInCategoryRequest $entity) + * @method UpdateProductOrderInCategory setBody(null|array|UpdateProductOrderInCategoryRequest $entity) * @method null|UpdateProductOrderInCategoryRequest getBody() */ class UpdateProductOrderInCategory extends Patch diff --git a/src/Endpoint/ConsumptionTaxes/CreateConsumptionTax.php b/src/Endpoint/ConsumptionTaxes/CreateConsumptionTax.php index b9fe6007..3810a176 100755 --- a/src/Endpoint/ConsumptionTaxes/CreateConsumptionTax.php +++ b/src/Endpoint/ConsumptionTaxes/CreateConsumptionTax.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Consumption-taxes/createconsumptiontax * - * @method CreateConsumptionTax setBody(null|array|CreateConsumptionTaxRequest $entity) + * @method CreateConsumptionTax setBody(null|array|CreateConsumptionTaxRequest $entity) * @method null|CreateConsumptionTaxRequest getBody() */ class CreateConsumptionTax extends Post diff --git a/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTax.php b/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTax.php index d5f9ec57..fa05c705 100755 --- a/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTax.php +++ b/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTax.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Consumption-taxes/updateconsumptiontax * - * @method UpdateConsumptionTax setBody(null|array|UpdateConsumptionTaxRequest $entity) + * @method UpdateConsumptionTax setBody(null|array|UpdateConsumptionTaxRequest $entity) * @method null|UpdateConsumptionTaxRequest getBody() */ class UpdateConsumptionTax extends Patch diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoice.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoice.php index 82b56146..af69b984 100755 --- a/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoice.php +++ b/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoice.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/createcreditnotefrominvoice * - * @method CreateCreditNoteFromInvoice setBody(null|array|CreateCreditNoteFromInvoiceRequest $entity) + * @method CreateCreditNoteFromInvoice setBody(null|array|CreateCreditNoteFromInvoiceRequest $entity) * @method null|CreateCreditNoteFromInvoiceRequest getBody() */ class CreateCreditNoteFromInvoice extends Post diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPayment.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPayment.php index bae6fda3..ebab8a6a 100755 --- a/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPayment.php +++ b/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPayment.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/createcreditnotefromproofofpayment * - * @method CreateCreditNoteFromProofOfPayment setBody(null|array|CreateCreditNoteFromProofOfPaymentRequest $entity) + * @method CreateCreditNoteFromProofOfPayment setBody(null|array|CreateCreditNoteFromProofOfPaymentRequest $entity) * @method null|CreateCreditNoteFromProofOfPaymentRequest getBody() */ class CreateCreditNoteFromProofOfPayment extends Post diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteItem.php b/src/Endpoint/CreditNotes/CreateCreditNoteItem.php index 60549f70..8022196a 100755 --- a/src/Endpoint/CreditNotes/CreateCreditNoteItem.php +++ b/src/Endpoint/CreditNotes/CreateCreditNoteItem.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/createcreditnoteitem * - * @method CreateCreditNoteItem setBody(null|array|CreateCreditNoteItemRequest $entity) + * @method CreateCreditNoteItem setBody(null|array|CreateCreditNoteItemRequest $entity) * @method null|CreateCreditNoteItemRequest getBody() */ class CreateCreditNoteItem extends Post diff --git a/src/Endpoint/CreditNotes/UpdateCreditNote.php b/src/Endpoint/CreditNotes/UpdateCreditNote.php index 7f12a138..783a2e42 100755 --- a/src/Endpoint/CreditNotes/UpdateCreditNote.php +++ b/src/Endpoint/CreditNotes/UpdateCreditNote.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/updatecreditnote * - * @method UpdateCreditNote setBody(null|array|UpdateCreditNoteRequest $entity) + * @method UpdateCreditNote setBody(null|array|UpdateCreditNoteRequest $entity) * @method null|UpdateCreditNoteRequest getBody() */ class UpdateCreditNote extends Patch diff --git a/src/Endpoint/CreditNotes/UpdateCreditNoteItem.php b/src/Endpoint/CreditNotes/UpdateCreditNoteItem.php index 40f7ec19..897053c5 100755 --- a/src/Endpoint/CreditNotes/UpdateCreditNoteItem.php +++ b/src/Endpoint/CreditNotes/UpdateCreditNoteItem.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/updatecreditnoteitem * - * @method UpdateCreditNoteItem setBody(null|array|UpdateCreditNoteItemRequest $entity) + * @method UpdateCreditNoteItem setBody(null|array|UpdateCreditNoteItemRequest $entity) * @method null|UpdateCreditNoteItemRequest getBody() */ class UpdateCreditNoteItem extends Patch diff --git a/src/Endpoint/CustomerAccounts/CreateCustomerAccount.php b/src/Endpoint/CustomerAccounts/CreateCustomerAccount.php index 4b146ed4..02dae751 100755 --- a/src/Endpoint/CustomerAccounts/CreateCustomerAccount.php +++ b/src/Endpoint/CustomerAccounts/CreateCustomerAccount.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-accounts/createcustomeraccount * - * @method CreateCustomerAccount setBody(null|array|CreateCustomerAccountRequest $entity) + * @method CreateCustomerAccount setBody(null|array|CreateCustomerAccountRequest $entity) * @method null|CreateCustomerAccountRequest getBody() */ class CreateCustomerAccount extends Post diff --git a/src/Endpoint/CustomerAccounts/UpdateCustomerAccount.php b/src/Endpoint/CustomerAccounts/UpdateCustomerAccount.php index baf17921..cee682d2 100755 --- a/src/Endpoint/CustomerAccounts/UpdateCustomerAccount.php +++ b/src/Endpoint/CustomerAccounts/UpdateCustomerAccount.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-accounts/updatecustomeraccount * - * @method UpdateCustomerAccount setBody(null|array|UpdateCustomerAccountRequest $entity) + * @method UpdateCustomerAccount setBody(null|array|UpdateCustomerAccountRequest $entity) * @method null|UpdateCustomerAccountRequest getBody() */ class UpdateCustomerAccount extends Patch diff --git a/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddress.php b/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddress.php index 50352f45..5cdfc470 100755 --- a/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddress.php +++ b/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddress.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-delivery-addresses/createdeliveryaddress * - * @method CreateDeliveryAddress setBody(null|array|CreateDeliveryAddressRequest $entity) + * @method CreateDeliveryAddress setBody(null|array|CreateDeliveryAddressRequest $entity) * @method null|CreateDeliveryAddressRequest getBody() */ class CreateDeliveryAddress extends Post diff --git a/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddress.php b/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddress.php index 292ce68c..826c568f 100755 --- a/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddress.php +++ b/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddress.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-delivery-addresses/updatecustomerdeliveryaddress * - * @method UpdateCustomerDeliveryAddress setBody(null|array|UpdateCustomerDeliveryAddressRequest $entity) + * @method UpdateCustomerDeliveryAddress setBody(null|array|UpdateCustomerDeliveryAddressRequest $entity) * @method null|UpdateCustomerDeliveryAddressRequest getBody() */ class UpdateCustomerDeliveryAddress extends Patch diff --git a/src/Endpoint/CustomerRemarks/CreateCustomerRemark.php b/src/Endpoint/CustomerRemarks/CreateCustomerRemark.php index c19715d0..da433d07 100755 --- a/src/Endpoint/CustomerRemarks/CreateCustomerRemark.php +++ b/src/Endpoint/CustomerRemarks/CreateCustomerRemark.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-remarks/createcustomerremark * - * @method CreateCustomerRemark setBody(null|array|CreateCustomerRemarkRequest $entity) + * @method CreateCustomerRemark setBody(null|array|CreateCustomerRemarkRequest $entity) * @method null|CreateCustomerRemarkRequest getBody() */ class CreateCustomerRemark extends Post diff --git a/src/Endpoint/CustomerRemarks/UpdateCustomerRemark.php b/src/Endpoint/CustomerRemarks/UpdateCustomerRemark.php index d859d60d..762f5b16 100755 --- a/src/Endpoint/CustomerRemarks/UpdateCustomerRemark.php +++ b/src/Endpoint/CustomerRemarks/UpdateCustomerRemark.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-remarks/updatecustomerremark * - * @method UpdateCustomerRemark setBody(null|array|UpdateCustomerRemarkRequest $entity) + * @method UpdateCustomerRemark setBody(null|array|UpdateCustomerRemarkRequest $entity) * @method null|UpdateCustomerRemarkRequest getBody() */ class UpdateCustomerRemark extends Patch diff --git a/src/Endpoint/Customers/CreateCustomer.php b/src/Endpoint/Customers/CreateCustomer.php index 3f0e7882..dffd4d10 100755 --- a/src/Endpoint/Customers/CreateCustomer.php +++ b/src/Endpoint/Customers/CreateCustomer.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/createcustomer * - * @method CreateCustomer setBody(null|array|CreateCustomerRequest $entity) + * @method CreateCustomer setBody(null|array|CreateCustomerRequest $entity) * @method null|CreateCustomerRequest getBody() */ class CreateCustomer extends Post diff --git a/src/Endpoint/Customers/UpdateCustomer.php b/src/Endpoint/Customers/UpdateCustomer.php index b988d811..8d31cbb0 100755 --- a/src/Endpoint/Customers/UpdateCustomer.php +++ b/src/Endpoint/Customers/UpdateCustomer.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/updatecustomer * - * @method UpdateCustomer setBody(null|array|UpdateCustomerRequest $entity) + * @method UpdateCustomer setBody(null|array|UpdateCustomerRequest $entity) * @method null|UpdateCustomerRequest getBody() */ class UpdateCustomer extends Patch diff --git a/src/Endpoint/DeliveryNotes/DeliveryNoteFromOrder.php b/src/Endpoint/DeliveryNotes/DeliveryNoteFromOrder.php index 0bd62247..ad1f4adb 100644 --- a/src/Endpoint/DeliveryNotes/DeliveryNoteFromOrder.php +++ b/src/Endpoint/DeliveryNotes/DeliveryNoteFromOrder.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Delivery-notes/deliverynotefromorder * - * @method DeliveryNoteFromOrder setBody(null|array|DeliveryNoteFromOrderRequest $entity) + * @method DeliveryNoteFromOrder setBody(null|array|DeliveryNoteFromOrderRequest $entity) * @method null|DeliveryNoteFromOrderRequest getBody() */ class DeliveryNoteFromOrder extends Post diff --git a/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCoupons.php b/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCoupons.php index 10dc357e..6858c6fa 100755 --- a/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCoupons.php +++ b/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCoupons.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/bulkdeletediscountcoupons * - * @method BulkDeleteDiscountCoupons setBody(null|array|BulkDeleteDiscountCouponsRequest $entity) + * @method BulkDeleteDiscountCoupons setBody(null|array|BulkDeleteDiscountCouponsRequest $entity) * @method null|BulkDeleteDiscountCouponsRequest getBody() */ class BulkDeleteDiscountCoupons extends Delete diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCoupons.php b/src/Endpoint/DiscountCoupons/CreateDiscountCoupons.php index 6c2a9a70..54f7990b 100755 --- a/src/Endpoint/DiscountCoupons/CreateDiscountCoupons.php +++ b/src/Endpoint/DiscountCoupons/CreateDiscountCoupons.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/creatediscountcoupons * - * @method CreateDiscountCoupons setBody(null|array|CreateDiscountCouponsRequest $entity) + * @method CreateDiscountCoupons setBody(null|array|CreateDiscountCouponsRequest $entity) * @method null|CreateDiscountCouponsRequest getBody() */ class CreateDiscountCoupons extends Post diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSet.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSet.php index b12d2be7..b3833f11 100755 --- a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSet.php +++ b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSet.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/creatediscountcouponsset * - * @method CreateDiscountCouponsSet setBody(null|array|CreateDiscountCouponsSetRequest $entity) + * @method CreateDiscountCouponsSet setBody(null|array|CreateDiscountCouponsSetRequest $entity) * @method null|CreateDiscountCouponsSetRequest getBody() */ class CreateDiscountCouponsSet extends Post diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplate.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplate.php index aca171a1..de05854d 100755 --- a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplate.php +++ b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplate.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/creatediscountcouponstemplate * - * @method CreateDiscountCouponsTemplate setBody(null|array|CreateDiscountCouponsTemplateRequest $entity) + * @method CreateDiscountCouponsTemplate setBody(null|array|CreateDiscountCouponsTemplateRequest $entity) * @method null|CreateDiscountCouponsTemplateRequest getBody() */ class CreateDiscountCouponsTemplate extends Post diff --git a/src/Endpoint/DiscountCoupons/UpdateDiscountCouponsUsage.php b/src/Endpoint/DiscountCoupons/UpdateDiscountCouponsUsage.php index b7b4e85e..fd755050 100755 --- a/src/Endpoint/DiscountCoupons/UpdateDiscountCouponsUsage.php +++ b/src/Endpoint/DiscountCoupons/UpdateDiscountCouponsUsage.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/updatediscountcouponsusage * - * @method UpdateDiscountCouponsUsage setBody(null|array|UpdateDiscountCouponsUsageRequest $entity) + * @method UpdateDiscountCouponsUsage setBody(null|array|UpdateDiscountCouponsUsageRequest $entity) * @method null|UpdateDiscountCouponsUsageRequest getBody() */ class UpdateDiscountCouponsUsage extends Patch diff --git a/src/Endpoint/Discussions/CreateDiscussionPosts.php b/src/Endpoint/Discussions/CreateDiscussionPosts.php index b5e54260..ccc55fc8 100644 --- a/src/Endpoint/Discussions/CreateDiscussionPosts.php +++ b/src/Endpoint/Discussions/CreateDiscussionPosts.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discussions/creatediscussionposts * - * @method CreateDiscussionPosts setBody(null|array|CreateDiscussionPostsRequest $entity) + * @method CreateDiscussionPosts setBody(null|array|CreateDiscussionPostsRequest $entity) * @method null|CreateDiscussionPostsRequest getBody() */ class CreateDiscussionPosts extends Post diff --git a/src/Endpoint/Discussions/UpdateDiscussionPost.php b/src/Endpoint/Discussions/UpdateDiscussionPost.php index 9ad5ec01..16469d79 100644 --- a/src/Endpoint/Discussions/UpdateDiscussionPost.php +++ b/src/Endpoint/Discussions/UpdateDiscussionPost.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discussions/updatediscussionpost * - * @method UpdateDiscussionPost setBody(null|array|UpdateDiscussionPostRequest $entity) + * @method UpdateDiscussionPost setBody(null|array|UpdateDiscussionPostRequest $entity) * @method null|UpdateDiscussionPostRequest getBody() */ class UpdateDiscussionPost extends Patch diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailDistributionList.php b/src/Endpoint/EmailDistributionLists/CreateEmailDistributionList.php index 486dc77f..6a2e85dc 100755 --- a/src/Endpoint/EmailDistributionLists/CreateEmailDistributionList.php +++ b/src/Endpoint/EmailDistributionLists/CreateEmailDistributionList.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/E-mail-distribution-lists/createemaildistributionlist * - * @method CreateEmailDistributionList setBody(null|array|CreateEmailDistributionListRequest $entity) + * @method CreateEmailDistributionList setBody(null|array|CreateEmailDistributionListRequest $entity) * @method null|CreateEmailDistributionListRequest getBody() */ class CreateEmailDistributionList extends Post diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionList.php b/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionList.php index 393306f9..aca60a63 100755 --- a/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionList.php +++ b/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionList.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/E-mail-distribution-lists/createemailsdistributionlist * - * @method CreateEmailsDistributionList setBody(null|array|CreateEmailsDistributionListRequest $entity) + * @method CreateEmailsDistributionList setBody(null|array|CreateEmailsDistributionListRequest $entity) * @method null|CreateEmailsDistributionListRequest getBody() */ class CreateEmailsDistributionList extends Post diff --git a/src/Endpoint/EndpointMap.php b/src/Endpoint/EndpointMap.php index 88caad3b..ed75ee93 100755 --- a/src/Endpoint/EndpointMap.php +++ b/src/Endpoint/EndpointMap.php @@ -4,6 +4,7 @@ class EndpointMap { + /** @var array> */ protected const array MAP = [ 'delete' => [ '/api/products/{guid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteProduct', diff --git a/src/Endpoint/Files/UploadFile.php b/src/Endpoint/Files/UploadFile.php index 7e8ccd02..ffc5c752 100755 --- a/src/Endpoint/Files/UploadFile.php +++ b/src/Endpoint/Files/UploadFile.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Files/uploadfile * - * @method UploadFile setBody(null|array|UploadFileRequest $entity) + * @method UploadFile setBody(null|array|UploadFileRequest $entity) * @method null|UploadFileRequest getBody() */ class UploadFile extends Post diff --git a/src/Endpoint/Files/UploadFiles.php b/src/Endpoint/Files/UploadFiles.php index 96bd8000..fc3d630c 100755 --- a/src/Endpoint/Files/UploadFiles.php +++ b/src/Endpoint/Files/UploadFiles.php @@ -10,7 +10,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Files/uploadfiles * - * @method UploadFiles setBody(null|array|UploadFilesRequest $entity) + * @method UploadFiles setBody(null|array|UploadFilesRequest $entity) * @method null|UploadFilesRequest getBody() */ class UploadFiles extends Post implements AsyncEndpoint diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameter.php b/src/Endpoint/FilteringParameters/CreateFilteringParameter.php index 072e6a90..eee1af56 100755 --- a/src/Endpoint/FilteringParameters/CreateFilteringParameter.php +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameter.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Filtering-parameters/createfilteringparameter * - * @method CreateFilteringParameter setBody(null|array|CreateFilteringParameterRequest $entity) + * @method CreateFilteringParameter setBody(null|array|CreateFilteringParameterRequest $entity) * @method null|CreateFilteringParameterRequest getBody() */ class CreateFilteringParameter extends Post diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameterValue.php b/src/Endpoint/FilteringParameters/CreateFilteringParameterValue.php index 1f085d4b..69efec94 100755 --- a/src/Endpoint/FilteringParameters/CreateFilteringParameterValue.php +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameterValue.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Filtering-parameters/createfilteringparametervalue * - * @method CreateFilteringParameterValue setBody(null|array|CreateFilteringParameterValueRequest $entity) + * @method CreateFilteringParameterValue setBody(null|array|CreateFilteringParameterValueRequest $entity) * @method null|CreateFilteringParameterValueRequest getBody() */ class CreateFilteringParameterValue extends Post diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameter.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameter.php index e69d36dd..bec56697 100755 --- a/src/Endpoint/FilteringParameters/UpdateFilteringParameter.php +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameter.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Filtering-parameters/updatefilteringparameter * - * @method UpdateFilteringParameter setBody(null|array|UpdateFilteringParameterRequest $entity) + * @method UpdateFilteringParameter setBody(null|array|UpdateFilteringParameterRequest $entity) * @method null|UpdateFilteringParameterRequest getBody() */ class UpdateFilteringParameter extends Patch diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameterValue.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValue.php index f1ef6871..de1504fe 100755 --- a/src/Endpoint/FilteringParameters/UpdateFilteringParameterValue.php +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValue.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Filtering-parameters/updatefilteringparametervalue * - * @method UpdateFilteringParameterValue setBody(null|array|UpdateFilteringParameterValueRequest $entity) + * @method UpdateFilteringParameterValue setBody(null|array|UpdateFilteringParameterValueRequest $entity) * @method null|UpdateFilteringParameterValueRequest getBody() */ class UpdateFilteringParameterValue extends Patch diff --git a/src/Endpoint/Flags/CreateProductFlag.php b/src/Endpoint/Flags/CreateProductFlag.php index 4464cb5e..de37e705 100755 --- a/src/Endpoint/Flags/CreateProductFlag.php +++ b/src/Endpoint/Flags/CreateProductFlag.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Flags/createproductflag * - * @method CreateProductFlag setBody(null|array|CreateProductFlagRequest $entity) + * @method CreateProductFlag setBody(null|array|CreateProductFlagRequest $entity) * @method null|CreateProductFlagRequest getBody() */ class CreateProductFlag extends Post diff --git a/src/Endpoint/Flags/UpdateProductFlag.php b/src/Endpoint/Flags/UpdateProductFlag.php index bba17558..b491d06d 100755 --- a/src/Endpoint/Flags/UpdateProductFlag.php +++ b/src/Endpoint/Flags/UpdateProductFlag.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Flags/updateproductflag * - * @method UpdateProductFlag setBody(null|array|UpdateProductFlagRequest $entity) + * @method UpdateProductFlag setBody(null|array|UpdateProductFlagRequest $entity) * @method null|UpdateProductFlagRequest getBody() */ class UpdateProductFlag extends Patch diff --git a/src/Endpoint/Gifts/UpdateOrderGiftSettings.php b/src/Endpoint/Gifts/UpdateOrderGiftSettings.php index a5a52a73..12b88a21 100755 --- a/src/Endpoint/Gifts/UpdateOrderGiftSettings.php +++ b/src/Endpoint/Gifts/UpdateOrderGiftSettings.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Gifts/updateordergiftsettings * - * @method UpdateOrderGiftSettings setBody(null|array|UpdateOrderGiftSettingsRequest $entity) + * @method UpdateOrderGiftSettings setBody(null|array|UpdateOrderGiftSettingsRequest $entity) * @method null|UpdateOrderGiftSettingsRequest getBody() */ class UpdateOrderGiftSettings extends Patch diff --git a/src/Endpoint/Invoices/CreateInvoiceFromOrder.php b/src/Endpoint/Invoices/CreateInvoiceFromOrder.php index 3104dfa0..7a695c89 100755 --- a/src/Endpoint/Invoices/CreateInvoiceFromOrder.php +++ b/src/Endpoint/Invoices/CreateInvoiceFromOrder.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/createinvoicefromorder * - * @method CreateInvoiceFromOrder setBody(null|array|CreateInvoiceFromOrderRequest $entity) + * @method CreateInvoiceFromOrder setBody(null|array|CreateInvoiceFromOrderRequest $entity) * @method null|CreateInvoiceFromOrderRequest getBody() */ class CreateInvoiceFromOrder extends Post diff --git a/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoice.php b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoice.php index e81def8f..cae94f01 100755 --- a/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoice.php +++ b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoice.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/createinvoicefromproformainvoice * - * @method CreateInvoiceFromProformaInvoice setBody(null|array|CreateInvoiceFromProformaInvoiceRequest $entity) + * @method CreateInvoiceFromProformaInvoice setBody(null|array|CreateInvoiceFromProformaInvoiceRequest $entity) * @method null|CreateInvoiceFromProformaInvoiceRequest getBody() */ class CreateInvoiceFromProformaInvoice extends Post diff --git a/src/Endpoint/Invoices/InvoiceLinkProformaInvoices.php b/src/Endpoint/Invoices/InvoiceLinkProformaInvoices.php index fbc10597..ae3b0526 100755 --- a/src/Endpoint/Invoices/InvoiceLinkProformaInvoices.php +++ b/src/Endpoint/Invoices/InvoiceLinkProformaInvoices.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/invoicelinkproformainvoices * - * @method InvoiceLinkProformaInvoices setBody(null|array|InvoiceLinkProformaInvoicesRequest $entity) + * @method InvoiceLinkProformaInvoices setBody(null|array|InvoiceLinkProformaInvoicesRequest $entity) * @method null|InvoiceLinkProformaInvoicesRequest getBody() */ class InvoiceLinkProformaInvoices extends Patch diff --git a/src/Endpoint/Invoices/InvoiceLinkProofPayments.php b/src/Endpoint/Invoices/InvoiceLinkProofPayments.php index f7eed075..f7a0a539 100755 --- a/src/Endpoint/Invoices/InvoiceLinkProofPayments.php +++ b/src/Endpoint/Invoices/InvoiceLinkProofPayments.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/invoicelinkproofpayments * - * @method InvoiceLinkProofPayments setBody(null|array|InvoiceLinkProofPaymentsRequest $entity) + * @method InvoiceLinkProofPayments setBody(null|array|InvoiceLinkProofPaymentsRequest $entity) * @method null|InvoiceLinkProofPaymentsRequest getBody() */ class InvoiceLinkProofPayments extends Patch diff --git a/src/Endpoint/OrderGifts/AddOrderGift.php b/src/Endpoint/OrderGifts/AddOrderGift.php index ff4ab883..ebda2239 100755 --- a/src/Endpoint/OrderGifts/AddOrderGift.php +++ b/src/Endpoint/OrderGifts/AddOrderGift.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-gifts/addordergift * - * @method AddOrderGift setBody(null|array|AddOrderGiftRequest $entity) + * @method AddOrderGift setBody(null|array|AddOrderGiftRequest $entity) * @method null|AddOrderGiftRequest getBody() */ class AddOrderGift extends Post diff --git a/src/Endpoint/OrderHistory/CreateOrderRemark.php b/src/Endpoint/OrderHistory/CreateOrderRemark.php index 7188142c..b92eb37d 100755 --- a/src/Endpoint/OrderHistory/CreateOrderRemark.php +++ b/src/Endpoint/OrderHistory/CreateOrderRemark.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-history/createorderremark * - * @method CreateOrderRemark setBody(null|array|CreateOrderRemarkRequest $entity) + * @method CreateOrderRemark setBody(null|array|CreateOrderRemarkRequest $entity) * @method null|CreateOrderRemarkRequest getBody() */ class CreateOrderRemark extends Post diff --git a/src/Endpoint/OrderItems/CreateOrderItem.php b/src/Endpoint/OrderItems/CreateOrderItem.php index b382f866..5ac34b36 100755 --- a/src/Endpoint/OrderItems/CreateOrderItem.php +++ b/src/Endpoint/OrderItems/CreateOrderItem.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-items/createorderitem * - * @method CreateOrderItem setBody(null|array|CreateOrderItemRequest $entity) + * @method CreateOrderItem setBody(null|array|CreateOrderItemRequest $entity) * @method null|CreateOrderItemRequest getBody() */ class CreateOrderItem extends Post diff --git a/src/Endpoint/OrderItems/CreateOrderItemSurchargeParameters.php b/src/Endpoint/OrderItems/CreateOrderItemSurchargeParameters.php index 3d13280b..512bf934 100755 --- a/src/Endpoint/OrderItems/CreateOrderItemSurchargeParameters.php +++ b/src/Endpoint/OrderItems/CreateOrderItemSurchargeParameters.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-items/createorderitemsurchargeparameters * - * @method CreateOrderItemSurchargeParameters setBody(null|array|CreateOrderItemSurchargeParametersRequest $entity) + * @method CreateOrderItemSurchargeParameters setBody(null|array|CreateOrderItemSurchargeParametersRequest $entity) * @method null|CreateOrderItemSurchargeParametersRequest getBody() */ class CreateOrderItemSurchargeParameters extends Post diff --git a/src/Endpoint/OrderItems/UpdateOrderItem.php b/src/Endpoint/OrderItems/UpdateOrderItem.php index f514ea23..b3bb4745 100755 --- a/src/Endpoint/OrderItems/UpdateOrderItem.php +++ b/src/Endpoint/OrderItems/UpdateOrderItem.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-items/updateorderitem * - * @method UpdateOrderItem setBody(null|array|UpdateOrderItemRequest $entity) + * @method UpdateOrderItem setBody(null|array|UpdateOrderItemRequest $entity) * @method null|UpdateOrderItemRequest getBody() */ class UpdateOrderItem extends Patch diff --git a/src/Endpoint/OrderPayment/CreateOrderPayment.php b/src/Endpoint/OrderPayment/CreateOrderPayment.php index bf9bf144..51d4fa68 100755 --- a/src/Endpoint/OrderPayment/CreateOrderPayment.php +++ b/src/Endpoint/OrderPayment/CreateOrderPayment.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-payment/createorderpayment * - * @method CreateOrderPayment setBody(null|array|CreateOrderPaymentRequest $entity) + * @method CreateOrderPayment setBody(null|array|CreateOrderPaymentRequest $entity) * @method null|CreateOrderPaymentRequest getBody() */ class CreateOrderPayment extends Post diff --git a/src/Endpoint/OrderPayment/UpdateOrderPayment.php b/src/Endpoint/OrderPayment/UpdateOrderPayment.php index d7d6f674..f1dcd264 100755 --- a/src/Endpoint/OrderPayment/UpdateOrderPayment.php +++ b/src/Endpoint/OrderPayment/UpdateOrderPayment.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-payment/updateorderpayment * - * @method UpdateOrderPayment setBody(null|array|UpdateOrderPaymentRequest $entity) + * @method UpdateOrderPayment setBody(null|array|UpdateOrderPaymentRequest $entity) * @method null|UpdateOrderPaymentRequest getBody() */ class UpdateOrderPayment extends Patch diff --git a/src/Endpoint/OrderShipping/AddOrderShipping.php b/src/Endpoint/OrderShipping/AddOrderShipping.php index 7963d7ff..133420ef 100755 --- a/src/Endpoint/OrderShipping/AddOrderShipping.php +++ b/src/Endpoint/OrderShipping/AddOrderShipping.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-shipping/addordershipping * - * @method AddOrderShipping setBody(null|array|AddOrderShippingRequest $entity) + * @method AddOrderShipping setBody(null|array|AddOrderShippingRequest $entity) * @method null|AddOrderShippingRequest getBody() */ class AddOrderShipping extends Post diff --git a/src/Endpoint/OrderShipping/UpdateOrderShipping.php b/src/Endpoint/OrderShipping/UpdateOrderShipping.php index d1975075..9118de84 100755 --- a/src/Endpoint/OrderShipping/UpdateOrderShipping.php +++ b/src/Endpoint/OrderShipping/UpdateOrderShipping.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-shipping/updateordershipping * - * @method UpdateOrderShipping setBody(null|array|UpdateOrderShippingRequest $entity) + * @method UpdateOrderShipping setBody(null|array|UpdateOrderShippingRequest $entity) * @method null|UpdateOrderShippingRequest getBody() */ class UpdateOrderShipping extends Patch diff --git a/src/Endpoint/Orders/BulkOrderStatusChange.php b/src/Endpoint/Orders/BulkOrderStatusChange.php index 150c2727..b25c37f5 100644 --- a/src/Endpoint/Orders/BulkOrderStatusChange.php +++ b/src/Endpoint/Orders/BulkOrderStatusChange.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/bulkorderstatuschange * - * @method BulkOrderStatusChange setBody(null|array|BulkOrderStatusChangeRequest $entity) + * @method BulkOrderStatusChange setBody(null|array|BulkOrderStatusChangeRequest $entity) * @method null|BulkOrderStatusChangeRequest getBody() */ class BulkOrderStatusChange extends Patch diff --git a/src/Endpoint/Orders/CreateOrder.php b/src/Endpoint/Orders/CreateOrder.php index 9e022d79..45abe379 100755 --- a/src/Endpoint/Orders/CreateOrder.php +++ b/src/Endpoint/Orders/CreateOrder.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/createorder * - * @method CreateOrder setBody(null|array|CreateOrderRequest $entity) + * @method CreateOrder setBody(null|array|CreateOrderRequest $entity) * @method null|CreateOrderRequest getBody() */ class CreateOrder extends Post diff --git a/src/Endpoint/Orders/OrderBatchInsertion.php b/src/Endpoint/Orders/OrderBatchInsertion.php index 3e224a61..f4ec349c 100755 --- a/src/Endpoint/Orders/OrderBatchInsertion.php +++ b/src/Endpoint/Orders/OrderBatchInsertion.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/orderbatchinsertion * - * @method OrderBatchInsertion setBody(null|array|OrderBatchInsertionRequest $entity) + * @method OrderBatchInsertion setBody(null|array|OrderBatchInsertionRequest $entity) * @method null|OrderBatchInsertionRequest getBody() */ class OrderBatchInsertion extends Post diff --git a/src/Endpoint/Orders/OrderCopy.php b/src/Endpoint/Orders/OrderCopy.php index 0526a838..9c35254b 100755 --- a/src/Endpoint/Orders/OrderCopy.php +++ b/src/Endpoint/Orders/OrderCopy.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/ordercopy * - * @method OrderCopy setBody(null|array|OrderCopyRequest $entity) + * @method OrderCopy setBody(null|array|OrderCopyRequest $entity) * @method null|OrderCopyRequest getBody() */ class OrderCopy extends Post diff --git a/src/Endpoint/Orders/UpdateOrderHead.php b/src/Endpoint/Orders/UpdateOrderHead.php index 14986830..aef37e2b 100755 --- a/src/Endpoint/Orders/UpdateOrderHead.php +++ b/src/Endpoint/Orders/UpdateOrderHead.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/updateorderhead * - * @method UpdateOrderHead setBody(null|array|UpdateOrderHeadRequest $entity) + * @method UpdateOrderHead setBody(null|array|UpdateOrderHeadRequest $entity) * @method null|UpdateOrderHeadRequest getBody() */ class UpdateOrderHead extends Patch diff --git a/src/Endpoint/Orders/UpdateOrderStatus.php b/src/Endpoint/Orders/UpdateOrderStatus.php index 19ff7b6b..30c3c18f 100755 --- a/src/Endpoint/Orders/UpdateOrderStatus.php +++ b/src/Endpoint/Orders/UpdateOrderStatus.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/updateorderstatus * - * @method UpdateOrderStatus setBody(null|array|UpdateOrderStatusRequest $entity) + * @method UpdateOrderStatus setBody(null|array|UpdateOrderStatusRequest $entity) * @method null|UpdateOrderStatusRequest getBody() */ class UpdateOrderStatus extends Patch diff --git a/src/Endpoint/Orders/UpdateRemarksForOrder.php b/src/Endpoint/Orders/UpdateRemarksForOrder.php index 364452ba..47047f15 100755 --- a/src/Endpoint/Orders/UpdateRemarksForOrder.php +++ b/src/Endpoint/Orders/UpdateRemarksForOrder.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/updateremarksfororder * - * @method UpdateRemarksForOrder setBody(null|array|UpdateRemarksForOrderRequest $entity) + * @method UpdateRemarksForOrder setBody(null|array|UpdateRemarksForOrderRequest $entity) * @method null|UpdateRemarksForOrderRequest getBody() */ class UpdateRemarksForOrder extends Patch diff --git a/src/Endpoint/Pages/CreatePage.php b/src/Endpoint/Pages/CreatePage.php index f916824d..2fc7f56f 100755 --- a/src/Endpoint/Pages/CreatePage.php +++ b/src/Endpoint/Pages/CreatePage.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Pages/createpage * - * @method CreatePage setBody(null|array|CreatePageRequest $entity) + * @method CreatePage setBody(null|array|CreatePageRequest $entity) * @method null|CreatePageRequest getBody() */ class CreatePage extends Post diff --git a/src/Endpoint/Pages/UpdatePage.php b/src/Endpoint/Pages/UpdatePage.php index 86130d91..8f8e0918 100755 --- a/src/Endpoint/Pages/UpdatePage.php +++ b/src/Endpoint/Pages/UpdatePage.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Pages/updatepage * - * @method UpdatePage setBody(null|array|UpdatePageRequest $entity) + * @method UpdatePage setBody(null|array|UpdatePageRequest $entity) * @method null|UpdatePageRequest getBody() */ class UpdatePage extends Patch diff --git a/src/Endpoint/ParametricCategories/CreateParametricCategory.php b/src/Endpoint/ParametricCategories/CreateParametricCategory.php index 09525852..accf061d 100755 --- a/src/Endpoint/ParametricCategories/CreateParametricCategory.php +++ b/src/Endpoint/ParametricCategories/CreateParametricCategory.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Parametric-categories/createparametriccategory * - * @method CreateParametricCategory setBody(null|array|CreateParametricCategoryRequest $entity) + * @method CreateParametricCategory setBody(null|array|CreateParametricCategoryRequest $entity) * @method null|CreateParametricCategoryRequest getBody() */ class CreateParametricCategory extends Post diff --git a/src/Endpoint/ParametricCategories/UpdateParametricCategory.php b/src/Endpoint/ParametricCategories/UpdateParametricCategory.php index abee5752..8c930648 100755 --- a/src/Endpoint/ParametricCategories/UpdateParametricCategory.php +++ b/src/Endpoint/ParametricCategories/UpdateParametricCategory.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Parametric-categories/updateparametriccategory * - * @method UpdateParametricCategory setBody(null|array|UpdateParametricCategoryRequest $entity) + * @method UpdateParametricCategory setBody(null|array|UpdateParametricCategoryRequest $entity) * @method null|UpdateParametricCategoryRequest getBody() */ class UpdateParametricCategory extends Patch diff --git a/src/Endpoint/PaymentGateways/UpdatePaymentStatus.php b/src/Endpoint/PaymentGateways/UpdatePaymentStatus.php index 543efdc8..cb7e0e2e 100755 --- a/src/Endpoint/PaymentGateways/UpdatePaymentStatus.php +++ b/src/Endpoint/PaymentGateways/UpdatePaymentStatus.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Payment-gateways/updatepaymentstatus * - * @method UpdatePaymentStatus setBody(null|array|UpdatePaymentStatusRequest $entity) + * @method UpdatePaymentStatus setBody(null|array|UpdatePaymentStatusRequest $entity) * @method null|UpdatePaymentStatusRequest getBody() */ class UpdatePaymentStatus extends Patch diff --git a/src/Endpoint/PaymentMethods/CreatePaymentMethod.php b/src/Endpoint/PaymentMethods/CreatePaymentMethod.php index d99a1a55..773489bd 100755 --- a/src/Endpoint/PaymentMethods/CreatePaymentMethod.php +++ b/src/Endpoint/PaymentMethods/CreatePaymentMethod.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Payment-methods/createpaymentmethod * - * @method CreatePaymentMethod setBody(null|array|CreatePaymentMethodRequest $entity) + * @method CreatePaymentMethod setBody(null|array|CreatePaymentMethodRequest $entity) * @method null|CreatePaymentMethodRequest getBody() */ class CreatePaymentMethod extends Post diff --git a/src/Endpoint/PriceLists/CreatePricelist.php b/src/Endpoint/PriceLists/CreatePricelist.php index 827b10f1..5238f571 100755 --- a/src/Endpoint/PriceLists/CreatePricelist.php +++ b/src/Endpoint/PriceLists/CreatePricelist.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Price-lists/createpricelist * - * @method CreatePricelist setBody(null|array|CreatePricelistRequest $entity) + * @method CreatePricelist setBody(null|array|CreatePricelistRequest $entity) * @method null|CreatePricelistRequest getBody() */ class CreatePricelist extends Post diff --git a/src/Endpoint/PriceLists/UpdatePricelist.php b/src/Endpoint/PriceLists/UpdatePricelist.php index 3941831a..71c102e9 100755 --- a/src/Endpoint/PriceLists/UpdatePricelist.php +++ b/src/Endpoint/PriceLists/UpdatePricelist.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Price-lists/updatepricelist * - * @method UpdatePricelist setBody(null|array|UpdatePricelistRequest $entity) + * @method UpdatePricelist setBody(null|array|UpdatePricelistRequest $entity) * @method null|UpdatePricelistRequest getBody() */ class UpdatePricelist extends Patch diff --git a/src/Endpoint/ProductAvailabilities/CreateProductAvailability.php b/src/Endpoint/ProductAvailabilities/CreateProductAvailability.php index 95a78ba8..211c4e04 100755 --- a/src/Endpoint/ProductAvailabilities/CreateProductAvailability.php +++ b/src/Endpoint/ProductAvailabilities/CreateProductAvailability.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-availabilities/createproductavailability * - * @method CreateProductAvailability setBody(null|array|CreateProductAvailabilityRequest $entity) + * @method CreateProductAvailability setBody(null|array|CreateProductAvailabilityRequest $entity) * @method null|CreateProductAvailabilityRequest getBody() */ class CreateProductAvailability extends Post diff --git a/src/Endpoint/ProductAvailabilities/UpdateProductAvailability.php b/src/Endpoint/ProductAvailabilities/UpdateProductAvailability.php index 3d2f1f83..9a917793 100755 --- a/src/Endpoint/ProductAvailabilities/UpdateProductAvailability.php +++ b/src/Endpoint/ProductAvailabilities/UpdateProductAvailability.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-availabilities/updateproductavailability * - * @method UpdateProductAvailability setBody(null|array|UpdateProductAvailabilityRequest $entity) + * @method UpdateProductAvailability setBody(null|array|UpdateProductAvailabilityRequest $entity) * @method null|UpdateProductAvailabilityRequest getBody() */ class UpdateProductAvailability extends Patch diff --git a/src/Endpoint/ProductGifts/CreateProductGift.php b/src/Endpoint/ProductGifts/CreateProductGift.php index 9f654175..f56531bf 100755 --- a/src/Endpoint/ProductGifts/CreateProductGift.php +++ b/src/Endpoint/ProductGifts/CreateProductGift.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-gifts/createproductgift * - * @method CreateProductGift setBody(null|array|CreateProductGiftRequest $entity) + * @method CreateProductGift setBody(null|array|CreateProductGiftRequest $entity) * @method null|CreateProductGiftRequest getBody() */ class CreateProductGift extends Post diff --git a/src/Endpoint/ProductGifts/SteGiftsToProduct.php b/src/Endpoint/ProductGifts/SteGiftsToProduct.php index a1bfe320..a476f90f 100755 --- a/src/Endpoint/ProductGifts/SteGiftsToProduct.php +++ b/src/Endpoint/ProductGifts/SteGiftsToProduct.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-gifts/stegiftstoproduct * - * @method SteGiftsToProduct setBody(null|array|SteGiftsToProductRequest $entity) + * @method SteGiftsToProduct setBody(null|array|SteGiftsToProductRequest $entity) * @method null|SteGiftsToProductRequest getBody() */ class SteGiftsToProduct extends Put diff --git a/src/Endpoint/ProductImages/CreateProductImages.php b/src/Endpoint/ProductImages/CreateProductImages.php index 24b14955..d2fec3b0 100755 --- a/src/Endpoint/ProductImages/CreateProductImages.php +++ b/src/Endpoint/ProductImages/CreateProductImages.php @@ -10,7 +10,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-images/createproductimages * - * @method CreateProductImages setBody(null|array|CreateProductImagesRequest $entity) + * @method CreateProductImages setBody(null|array|CreateProductImagesRequest $entity) * @method null|CreateProductImagesRequest getBody() */ class CreateProductImages extends Post implements AsyncEndpoint diff --git a/src/Endpoint/ProductImages/GetProductImagesUpdate.php b/src/Endpoint/ProductImages/GetProductImagesUpdate.php index 791a719a..83c5b1c7 100755 --- a/src/Endpoint/ProductImages/GetProductImagesUpdate.php +++ b/src/Endpoint/ProductImages/GetProductImagesUpdate.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-images/getproductimagesupdate * - * @method GetProductImagesUpdate setBody(null|array|GetProductImagesUpdateRequest $entity) + * @method GetProductImagesUpdate setBody(null|array|GetProductImagesUpdateRequest $entity) * @method null|GetProductImagesUpdateRequest getBody() */ class GetProductImagesUpdate extends Patch diff --git a/src/Endpoint/ProductImages/UpdateProductImagesSource.php b/src/Endpoint/ProductImages/UpdateProductImagesSource.php index 9978c479..079161f4 100755 --- a/src/Endpoint/ProductImages/UpdateProductImagesSource.php +++ b/src/Endpoint/ProductImages/UpdateProductImagesSource.php @@ -10,7 +10,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-images/updateproductimagessource * - * @method UpdateProductImagesSource setBody(null|array|UpdateProductImagesSourceRequest $entity) + * @method UpdateProductImagesSource setBody(null|array|UpdateProductImagesSourceRequest $entity) * @method null|UpdateProductImagesSourceRequest getBody() */ class UpdateProductImagesSource extends Patch implements AsyncEndpoint diff --git a/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLink.php b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLink.php index d1540bf4..cd96ea5d 100755 --- a/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLink.php +++ b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLink.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-related-files/createrelatedfilelink * - * @method CreateRelatedFileLink setBody(null|array|CreateRelatedFileLinkRequest $entity) + * @method CreateRelatedFileLink setBody(null|array|CreateRelatedFileLinkRequest $entity) * @method null|CreateRelatedFileLinkRequest getBody() */ class CreateRelatedFileLink extends Post diff --git a/src/Endpoint/ProductSets/AddItemToProductSet.php b/src/Endpoint/ProductSets/AddItemToProductSet.php index 5a9dbb1f..c61d9059 100755 --- a/src/Endpoint/ProductSets/AddItemToProductSet.php +++ b/src/Endpoint/ProductSets/AddItemToProductSet.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-sets/additemtoproductset * - * @method AddItemToProductSet setBody(null|array|AddItemToProductSetRequest $entity) + * @method AddItemToProductSet setBody(null|array|AddItemToProductSetRequest $entity) * @method null|AddItemToProductSetRequest getBody() */ class AddItemToProductSet extends Post diff --git a/src/Endpoint/ProductSets/SetProductSetItems.php b/src/Endpoint/ProductSets/SetProductSetItems.php index 8653fd46..38903d3f 100755 --- a/src/Endpoint/ProductSets/SetProductSetItems.php +++ b/src/Endpoint/ProductSets/SetProductSetItems.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-sets/setproductsetitems * - * @method SetProductSetItems setBody(null|array|SetProductSetItemsRequest $entity) + * @method SetProductSetItems setBody(null|array|SetProductSetItemsRequest $entity) * @method null|SetProductSetItemsRequest getBody() */ class SetProductSetItems extends Put diff --git a/src/Endpoint/Products/CreateProduct.php b/src/Endpoint/Products/CreateProduct.php index d39ec32c..c8b62755 100755 --- a/src/Endpoint/Products/CreateProduct.php +++ b/src/Endpoint/Products/CreateProduct.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/createproduct * - * @method CreateProduct setBody(null|array|CreateProductRequest $entity) + * @method CreateProduct setBody(null|array|CreateProductRequest $entity) * @method null|CreateProductRequest getBody() */ class CreateProduct extends Post diff --git a/src/Endpoint/Products/ProductBatchUpdate.php b/src/Endpoint/Products/ProductBatchUpdate.php index 77796fab..2e23fcf5 100755 --- a/src/Endpoint/Products/ProductBatchUpdate.php +++ b/src/Endpoint/Products/ProductBatchUpdate.php @@ -10,7 +10,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/productbatchupdate * - * @method ProductBatchUpdate setBody(null|array|ProductBatchUpdateRequest $entity) + * @method ProductBatchUpdate setBody(null|array|ProductBatchUpdateRequest $entity) * @method null|ProductBatchUpdateRequest getBody() */ class ProductBatchUpdate extends Patch implements AsyncEndpoint diff --git a/src/Endpoint/Products/ProductCopy.php b/src/Endpoint/Products/ProductCopy.php index 5b40483e..315bc63b 100755 --- a/src/Endpoint/Products/ProductCopy.php +++ b/src/Endpoint/Products/ProductCopy.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/productcopy * - * @method ProductCopy setBody(null|array|ProductCopyRequest $entity) + * @method ProductCopy setBody(null|array|ProductCopyRequest $entity) * @method null|ProductCopyRequest getBody() */ class ProductCopy extends Post diff --git a/src/Endpoint/Products/UpdateProduct.php b/src/Endpoint/Products/UpdateProduct.php index 86fa33cd..552463f7 100755 --- a/src/Endpoint/Products/UpdateProduct.php +++ b/src/Endpoint/Products/UpdateProduct.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/updateproduct * - * @method UpdateProduct setBody(null|array|UpdateProductRequest $entity) + * @method UpdateProduct setBody(null|array|UpdateProductRequest $entity) * @method null|UpdateProductRequest getBody() */ class UpdateProduct extends Patch diff --git a/src/Endpoint/Products/UpdateProductByCode.php b/src/Endpoint/Products/UpdateProductByCode.php index 09003488..69e2fa96 100755 --- a/src/Endpoint/Products/UpdateProductByCode.php +++ b/src/Endpoint/Products/UpdateProductByCode.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/updateproductbycode * - * @method UpdateProductByCode setBody(null|array|UpdateProductByCodeRequest $entity) + * @method UpdateProductByCode setBody(null|array|UpdateProductByCodeRequest $entity) * @method null|UpdateProductByCodeRequest getBody() */ class UpdateProductByCode extends Patch diff --git a/src/Endpoint/ProformaInvoices/CreateProformaInvoiceFromOrder.php b/src/Endpoint/ProformaInvoices/CreateProformaInvoiceFromOrder.php index fb7adf4f..90b3ccc4 100644 --- a/src/Endpoint/ProformaInvoices/CreateProformaInvoiceFromOrder.php +++ b/src/Endpoint/ProformaInvoices/CreateProformaInvoiceFromOrder.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proforma-invoices/createproformainvoicefromorder * - * @method CreateProformaInvoiceFromOrder setBody(null|array|CreateProformaInvoiceFromOrderRequest $entity) + * @method CreateProformaInvoiceFromOrder setBody(null|array|CreateProformaInvoiceFromOrderRequest $entity) * @method null|CreateProformaInvoiceFromOrderRequest getBody() */ class CreateProformaInvoiceFromOrder extends Post diff --git a/src/Endpoint/ProofPayments/CreateProofPayment.php b/src/Endpoint/ProofPayments/CreateProofPayment.php index 9b1e143e..d09a95ba 100755 --- a/src/Endpoint/ProofPayments/CreateProofPayment.php +++ b/src/Endpoint/ProofPayments/CreateProofPayment.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/createproofpayment * - * @method CreateProofPayment setBody(null|array|CreateProofPaymentRequest $entity) + * @method CreateProofPayment setBody(null|array|CreateProofPaymentRequest $entity) * @method null|CreateProofPaymentRequest getBody() */ class CreateProofPayment extends Post diff --git a/src/Endpoint/ProofPayments/ProofPaymentDocumentSettings.php b/src/Endpoint/ProofPayments/ProofPaymentDocumentSettings.php index 1407539e..dcc7f611 100755 --- a/src/Endpoint/ProofPayments/ProofPaymentDocumentSettings.php +++ b/src/Endpoint/ProofPayments/ProofPaymentDocumentSettings.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/proofpaymentdocumentsettings * - * @method ProofPaymentDocumentSettings setBody(null|array|ProofPaymentDocumentSettingsRequest $entity) + * @method ProofPaymentDocumentSettings setBody(null|array|ProofPaymentDocumentSettingsRequest $entity) * @method null|ProofPaymentDocumentSettingsRequest getBody() */ class ProofPaymentDocumentSettings extends Post diff --git a/src/Endpoint/ProofPayments/UpdateProofPayment.php b/src/Endpoint/ProofPayments/UpdateProofPayment.php index e543ab00..818a51df 100755 --- a/src/Endpoint/ProofPayments/UpdateProofPayment.php +++ b/src/Endpoint/ProofPayments/UpdateProofPayment.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/updateproofpayment * - * @method UpdateProofPayment setBody(null|array|UpdateProofPaymentRequest $entity) + * @method UpdateProofPayment setBody(null|array|UpdateProofPaymentRequest $entity) * @method null|UpdateProofPaymentRequest getBody() */ class UpdateProofPayment extends Patch diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscount.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscount.php index a7985195..6a6b3dc8 100755 --- a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscount.php +++ b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscount.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Quantity-discounts/createquantitydiscount * - * @method CreateQuantityDiscount setBody(null|array|CreateQuantityDiscountRequest $entity) + * @method CreateQuantityDiscount setBody(null|array|CreateQuantityDiscountRequest $entity) * @method null|CreateQuantityDiscountRequest getBody() */ class CreateQuantityDiscount extends Post diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscount.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscount.php index f5f10655..812e84db 100755 --- a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscount.php +++ b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscount.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Quantity-discounts/updatequantitydiscount * - * @method UpdateQuantityDiscount setBody(null|array|UpdateQuantityDiscountRequest $entity) + * @method UpdateQuantityDiscount setBody(null|array|UpdateQuantityDiscountRequest $entity) * @method null|UpdateQuantityDiscountRequest getBody() */ class UpdateQuantityDiscount extends Patch diff --git a/src/Endpoint/RelatedProducts/AddRelatedProduct.php b/src/Endpoint/RelatedProducts/AddRelatedProduct.php index 68857351..0f33ba20 100755 --- a/src/Endpoint/RelatedProducts/AddRelatedProduct.php +++ b/src/Endpoint/RelatedProducts/AddRelatedProduct.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Related-products/addrelatedproduct * - * @method AddRelatedProduct setBody(null|array|AddRelatedProductRequest $entity) + * @method AddRelatedProduct setBody(null|array|AddRelatedProductRequest $entity) * @method null|AddRelatedProductRequest getBody() */ class AddRelatedProduct extends Post diff --git a/src/Endpoint/RelatedProducts/SetRelatedProducts.php b/src/Endpoint/RelatedProducts/SetRelatedProducts.php index 62330096..d750487d 100755 --- a/src/Endpoint/RelatedProducts/SetRelatedProducts.php +++ b/src/Endpoint/RelatedProducts/SetRelatedProducts.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Related-products/setrelatedproducts * - * @method SetRelatedProducts setBody(null|array|SetRelatedProductsRequest $entity) + * @method SetRelatedProducts setBody(null|array|SetRelatedProductsRequest $entity) * @method null|SetRelatedProductsRequest getBody() */ class SetRelatedProducts extends Put diff --git a/src/Endpoint/Reviews/CreateProductReview.php b/src/Endpoint/Reviews/CreateProductReview.php index 9bcf12c1..39dfc638 100644 --- a/src/Endpoint/Reviews/CreateProductReview.php +++ b/src/Endpoint/Reviews/CreateProductReview.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Reviews/createproductreview * - * @method CreateProductReview setBody(null|array|CreateProductReviewRequest $entity) + * @method CreateProductReview setBody(null|array|CreateProductReviewRequest $entity) * @method null|CreateProductReviewRequest getBody() */ class CreateProductReview extends Post diff --git a/src/Endpoint/Reviews/CreateProjectReview.php b/src/Endpoint/Reviews/CreateProjectReview.php index cd04ccb8..5925fe7f 100644 --- a/src/Endpoint/Reviews/CreateProjectReview.php +++ b/src/Endpoint/Reviews/CreateProjectReview.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Reviews/createprojectreview * - * @method CreateProjectReview setBody(null|array|CreateProjectReviewRequest $entity) + * @method CreateProjectReview setBody(null|array|CreateProjectReviewRequest $entity) * @method null|CreateProjectReviewRequest getBody() */ class CreateProjectReview extends Post diff --git a/src/Endpoint/Reviews/UpdateProductReview.php b/src/Endpoint/Reviews/UpdateProductReview.php index 10ff4a64..8e916cbf 100644 --- a/src/Endpoint/Reviews/UpdateProductReview.php +++ b/src/Endpoint/Reviews/UpdateProductReview.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Reviews/updateproductreview * - * @method UpdateProductReview setBody(null|array|UpdateProductReviewRequest $entity) + * @method UpdateProductReview setBody(null|array|UpdateProductReviewRequest $entity) * @method null|UpdateProductReviewRequest getBody() */ class UpdateProductReview extends Patch diff --git a/src/Endpoint/Reviews/UpdateProjectReview.php b/src/Endpoint/Reviews/UpdateProjectReview.php index f6bd1d3a..d09314be 100644 --- a/src/Endpoint/Reviews/UpdateProjectReview.php +++ b/src/Endpoint/Reviews/UpdateProjectReview.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Reviews/updateprojectreview * - * @method UpdateProjectReview setBody(null|array|UpdateProjectReviewRequest $entity) + * @method UpdateProjectReview setBody(null|array|UpdateProjectReviewRequest $entity) * @method null|UpdateProjectReviewRequest getBody() */ class UpdateProjectReview extends Patch diff --git a/src/Endpoint/SalesChannels/GetSalesChannels.php b/src/Endpoint/SalesChannels/GetSalesChannels.php index 208f89a8..897f9489 100644 --- a/src/Endpoint/SalesChannels/GetSalesChannels.php +++ b/src/Endpoint/SalesChannels/GetSalesChannels.php @@ -14,7 +14,7 @@ class GetSalesChannels extends Get { protected array $supportedPathParams = []; - protected array $supportedQueryParams = ['language' => false]; + protected array $supportedQueryParams = ['language' => false, 'type' => false]; public function getRequestEntityClass(): null { diff --git a/src/Endpoint/SalesChannels/GetSalesChannelsDetailByIdResponse/GetSalesChannelsDetailByIdResponse/Data/InStore.php b/src/Endpoint/SalesChannels/GetSalesChannelsDetailByIdResponse/GetSalesChannelsDetailByIdResponse/Data/InStore.php index d6c52f9e..e8848087 100644 --- a/src/Endpoint/SalesChannels/GetSalesChannelsDetailByIdResponse/GetSalesChannelsDetailByIdResponse/Data/InStore.php +++ b/src/Endpoint/SalesChannels/GetSalesChannelsDetailByIdResponse/GetSalesChannelsDetailByIdResponse/Data/InStore.php @@ -12,7 +12,7 @@ class InStore extends Entity protected string $guid; protected ?InStoreAddress $address; protected InStoreContact $contact; - protected int $projectCategoryId; + protected int $categoryId; public function getId(): int { @@ -58,14 +58,14 @@ public function setContact(InStoreContact $contact): static return $this; } - public function getProjectCategoryId(): int + public function getCategoryId(): int { - return $this->projectCategoryId; + return $this->categoryId; } - public function setProjectCategoryId(int $projectCategoryId): static + public function setCategoryId(int $categoryId): static { - $this->projectCategoryId = $projectCategoryId; + $this->categoryId = $categoryId; return $this; } } diff --git a/src/Endpoint/ShippingMethods/CreateShippingMethod.php b/src/Endpoint/ShippingMethods/CreateShippingMethod.php index 8968da8f..a31e6b0c 100755 --- a/src/Endpoint/ShippingMethods/CreateShippingMethod.php +++ b/src/Endpoint/ShippingMethods/CreateShippingMethod.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Shipping-methods/createshippingmethod * - * @method CreateShippingMethod setBody(null|array|CreateShippingMethodRequest $entity) + * @method CreateShippingMethod setBody(null|array|CreateShippingMethodRequest $entity) * @method null|CreateShippingMethodRequest getBody() */ class CreateShippingMethod extends Post diff --git a/src/Endpoint/ShippingRequests/UpdateShippingData.php b/src/Endpoint/ShippingRequests/UpdateShippingData.php index c82c3ad4..321ebcc3 100755 --- a/src/Endpoint/ShippingRequests/UpdateShippingData.php +++ b/src/Endpoint/ShippingRequests/UpdateShippingData.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Shipping-requests/updateshippingdata * - * @method UpdateShippingData setBody(null|array|UpdateShippingDataRequest $entity) + * @method UpdateShippingData setBody(null|array|UpdateShippingDataRequest $entity) * @method null|UpdateShippingDataRequest getBody() */ class UpdateShippingData extends Put diff --git a/src/Endpoint/Stocks/UpdateQuantityInStock.php b/src/Endpoint/Stocks/UpdateQuantityInStock.php index 9c7f2e1d..86396e97 100755 --- a/src/Endpoint/Stocks/UpdateQuantityInStock.php +++ b/src/Endpoint/Stocks/UpdateQuantityInStock.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Stocks/updatequantityinstock * - * @method UpdateQuantityInStock setBody(null|array|UpdateQuantityInStockRequest $entity) + * @method UpdateQuantityInStock setBody(null|array|UpdateQuantityInStockRequest $entity) * @method null|UpdateQuantityInStockRequest getBody() */ class UpdateQuantityInStock extends Patch diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameter.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameter.php index 0939c36f..be6ac0e9 100755 --- a/src/Endpoint/SurchargeParameters/CreateSurchargeParameter.php +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameter.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Surcharge-parameters/createsurchargeparameter * - * @method CreateSurchargeParameter setBody(null|array|CreateSurchargeParameterRequest $entity) + * @method CreateSurchargeParameter setBody(null|array|CreateSurchargeParameterRequest $entity) * @method null|CreateSurchargeParameterRequest getBody() */ class CreateSurchargeParameter extends Post diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValue.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValue.php index 30156d6f..219a09aa 100755 --- a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValue.php +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValue.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Surcharge-parameters/createsurchargeparametervalue * - * @method CreateSurchargeParameterValue setBody(null|array|CreateSurchargeParameterValueRequest $entity) + * @method CreateSurchargeParameterValue setBody(null|array|CreateSurchargeParameterValueRequest $entity) * @method null|CreateSurchargeParameterValueRequest getBody() */ class CreateSurchargeParameterValue extends Post diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameter.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameter.php index e6650835..d2c5f270 100755 --- a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameter.php +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameter.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Surcharge-parameters/updatesurchargeparameter * - * @method UpdateSurchargeParameter setBody(null|array|UpdateSurchargeParameterRequest $entity) + * @method UpdateSurchargeParameter setBody(null|array|UpdateSurchargeParameterRequest $entity) * @method null|UpdateSurchargeParameterRequest getBody() */ class UpdateSurchargeParameter extends Patch diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValue.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValue.php index 72cc32d3..928dce32 100755 --- a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValue.php +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValue.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Surcharge-parameters/updatesurchargeparametervalue * - * @method UpdateSurchargeParameterValue setBody(null|array|UpdateSurchargeParameterValueRequest $entity) + * @method UpdateSurchargeParameterValue setBody(null|array|UpdateSurchargeParameterValueRequest $entity) * @method null|UpdateSurchargeParameterValueRequest getBody() */ class UpdateSurchargeParameterValue extends Patch diff --git a/src/Endpoint/Templates/CreateAndEditHtmlCodes.php b/src/Endpoint/Templates/CreateAndEditHtmlCodes.php index 62df2608..4d2f8b4f 100755 --- a/src/Endpoint/Templates/CreateAndEditHtmlCodes.php +++ b/src/Endpoint/Templates/CreateAndEditHtmlCodes.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Templates/createandedithtmlcodes * - * @method CreateAndEditHtmlCodes setBody(null|array|CreateAndEditHtmlCodesRequest $entity) + * @method CreateAndEditHtmlCodes setBody(null|array|CreateAndEditHtmlCodesRequest $entity) * @method null|CreateAndEditHtmlCodesRequest getBody() */ class CreateAndEditHtmlCodes extends Post diff --git a/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmail.php b/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmail.php index f58ceb2f..dc3d602b 100755 --- a/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmail.php +++ b/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmail.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Unsubscribed-emails/createunsubscribedemail * - * @method CreateUnsubscribedEmail setBody(null|array|CreateUnsubscribedEmailRequest $entity) + * @method CreateUnsubscribedEmail setBody(null|array|CreateUnsubscribedEmailRequest $entity) * @method null|CreateUnsubscribedEmailRequest getBody() */ class CreateUnsubscribedEmail extends Post diff --git a/src/Endpoint/VariantParameters/CreateVariantParameter.php b/src/Endpoint/VariantParameters/CreateVariantParameter.php index 384014c3..56d90244 100755 --- a/src/Endpoint/VariantParameters/CreateVariantParameter.php +++ b/src/Endpoint/VariantParameters/CreateVariantParameter.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Variant-parameters/createvariantparameter * - * @method CreateVariantParameter setBody(null|array|CreateVariantParameterRequest $entity) + * @method CreateVariantParameter setBody(null|array|CreateVariantParameterRequest $entity) * @method null|CreateVariantParameterRequest getBody() */ class CreateVariantParameter extends Post diff --git a/src/Endpoint/VariantParameters/CreateVariantParameterValue.php b/src/Endpoint/VariantParameters/CreateVariantParameterValue.php index 5f8b506e..6afcb196 100755 --- a/src/Endpoint/VariantParameters/CreateVariantParameterValue.php +++ b/src/Endpoint/VariantParameters/CreateVariantParameterValue.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Variant-parameters/createvariantparametervalue * - * @method CreateVariantParameterValue setBody(null|array|CreateVariantParameterValueRequest $entity) + * @method CreateVariantParameterValue setBody(null|array|CreateVariantParameterValueRequest $entity) * @method null|CreateVariantParameterValueRequest getBody() */ class CreateVariantParameterValue extends Post diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameter.php b/src/Endpoint/VariantParameters/UpdateVariantParameter.php index 7c3d91e5..50428029 100755 --- a/src/Endpoint/VariantParameters/UpdateVariantParameter.php +++ b/src/Endpoint/VariantParameters/UpdateVariantParameter.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Variant-parameters/updatevariantparameter * - * @method UpdateVariantParameter setBody(null|array|UpdateVariantParameterRequest $entity) + * @method UpdateVariantParameter setBody(null|array|UpdateVariantParameterRequest $entity) * @method null|UpdateVariantParameterRequest getBody() */ class UpdateVariantParameter extends Patch diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameterValue.php b/src/Endpoint/VariantParameters/UpdateVariantParameterValue.php index 01edb69c..8c0a7c5f 100755 --- a/src/Endpoint/VariantParameters/UpdateVariantParameterValue.php +++ b/src/Endpoint/VariantParameters/UpdateVariantParameterValue.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Variant-parameters/updatevariantparametervalue * - * @method UpdateVariantParameterValue setBody(null|array|UpdateVariantParameterValueRequest $entity) + * @method UpdateVariantParameterValue setBody(null|array|UpdateVariantParameterValueRequest $entity) * @method null|UpdateVariantParameterValueRequest getBody() */ class UpdateVariantParameterValue extends Patch diff --git a/src/Endpoint/Webhooks/RegisterNewWebhook.php b/src/Endpoint/Webhooks/RegisterNewWebhook.php index aec706f8..9c8700c7 100755 --- a/src/Endpoint/Webhooks/RegisterNewWebhook.php +++ b/src/Endpoint/Webhooks/RegisterNewWebhook.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Webhooks/registernewwebhook * - * @method RegisterNewWebhook setBody(null|array|RegisterNewWebhookRequest $entity) + * @method RegisterNewWebhook setBody(null|array|RegisterNewWebhookRequest $entity) * @method null|RegisterNewWebhookRequest getBody() */ class RegisterNewWebhook extends Post diff --git a/src/Endpoint/Webhooks/UpdateExistingWebhook.php b/src/Endpoint/Webhooks/UpdateExistingWebhook.php index fe9a9b5b..e0b6ca73 100755 --- a/src/Endpoint/Webhooks/UpdateExistingWebhook.php +++ b/src/Endpoint/Webhooks/UpdateExistingWebhook.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/Webhooks/updateexistingwebhook * - * @method UpdateExistingWebhook setBody(null|array|UpdateExistingWebhookRequest $entity) + * @method UpdateExistingWebhook setBody(null|array|UpdateExistingWebhookRequest $entity) * @method null|UpdateExistingWebhookRequest getBody() */ class UpdateExistingWebhook extends Patch diff --git a/src/Endpoint/XYDiscounts/CreateXYDiscount.php b/src/Endpoint/XYDiscounts/CreateXYDiscount.php index 134f0f71..b9d374b3 100755 --- a/src/Endpoint/XYDiscounts/CreateXYDiscount.php +++ b/src/Endpoint/XYDiscounts/CreateXYDiscount.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/createxydiscount * - * @method CreateXYDiscount setBody(null|array|CreateXYDiscountRequest $entity) + * @method CreateXYDiscount setBody(null|array|CreateXYDiscountRequest $entity) * @method null|CreateXYDiscountRequest getBody() */ class CreateXYDiscount extends Post diff --git a/src/Endpoint/XYDiscounts/UpdateXYDiscount.php b/src/Endpoint/XYDiscounts/UpdateXYDiscount.php index 71f89062..839a5953 100755 --- a/src/Endpoint/XYDiscounts/UpdateXYDiscount.php +++ b/src/Endpoint/XYDiscounts/UpdateXYDiscount.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/updatexydiscount * - * @method UpdateXYDiscount setBody(null|array|UpdateXYDiscountRequest $entity) + * @method UpdateXYDiscount setBody(null|array|UpdateXYDiscountRequest $entity) * @method null|UpdateXYDiscountRequest getBody() */ class UpdateXYDiscount extends Patch diff --git a/src/Endpoint/XYDiscounts/UpdateXYDiscountSettings.php b/src/Endpoint/XYDiscounts/UpdateXYDiscountSettings.php index 918c0c05..c63c4c6e 100755 --- a/src/Endpoint/XYDiscounts/UpdateXYDiscountSettings.php +++ b/src/Endpoint/XYDiscounts/UpdateXYDiscountSettings.php @@ -9,7 +9,7 @@ /** * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/updatexydiscountsettings * - * @method UpdateXYDiscountSettings setBody(null|array|UpdateXYDiscountSettingsRequest $entity) + * @method UpdateXYDiscountSettings setBody(null|array|UpdateXYDiscountSettingsRequest $entity) * @method null|UpdateXYDiscountSettingsRequest getBody() */ class UpdateXYDiscountSettings extends Patch diff --git a/src/Factory/Entity/EntityFactory.php b/src/Factory/Entity/EntityFactory.php index 109a0a45..124972b3 100755 --- a/src/Factory/Entity/EntityFactory.php +++ b/src/Factory/Entity/EntityFactory.php @@ -238,7 +238,7 @@ protected function getValueObjectPropertyReflection(string $valueObjectClass): ? $valueObjectReflection = new ReflectionClass($valueObjectClass); if ($valueObjectReflection->implementsInterface(ValueObjectInterface::class)) { /** @var ReflectionClass $valueObjectReflection */ - return $valueObjectReflection; + return $valueObjectReflection; // @phpstan-ignore varTag.nativeType } return null; } diff --git a/src/HttpClient/CurlClient.php b/src/HttpClient/CurlClient.php index 6ac9cec3..34d242fc 100755 --- a/src/HttpClient/CurlClient.php +++ b/src/HttpClient/CurlClient.php @@ -64,12 +64,18 @@ public function __destruct() */ public function request(Endpoint $endpoint): ResponseInterface { - $this->handle = \curl_init(); + $handle = \curl_init(); + + if ($handle === false) { + throw new RuntimeException('Failed to initialize cURL'); + } + + $this->handle = $handle; $opts = $this->getRequestOpts($endpoint); $rHeaders = []; - $opts[CURLOPT_HEADERFUNCTION] = function ($curl, $header_line) use (&$rHeaders) { + $opts[CURLOPT_HEADERFUNCTION] = function (\CurlHandle $curl, string $header_line) use (&$rHeaders) { if (str_contains($header_line, ':') === false) { return strlen($header_line); } @@ -208,7 +214,7 @@ public function setConnectTimeout(int $connectTimeout): ClientInterface } /** - * @return array + * @return array * @throws InvalidArgumentException */ protected function getRequestOpts(Endpoint $endpoint): array diff --git a/src/Sdk.php b/src/Sdk.php index 10c07778..7c4fdd6f 100755 --- a/src/Sdk.php +++ b/src/Sdk.php @@ -3131,6 +3131,7 @@ public static function getListOfAllPricelistDetails(string $id, array $queryPara /** * @param array{ * language?: string, + * type?: string, * } $queryParams * * @return ResponseInterface diff --git a/tests/Unit/Authorization/AuthorizationTest.php b/tests/Unit/Authorization/AuthorizationTest.php index 48d3ed20..e11809cb 100755 --- a/tests/Unit/Authorization/AuthorizationTest.php +++ b/tests/Unit/Authorization/AuthorizationTest.php @@ -104,15 +104,15 @@ public function testOAuthAccessTokenNotBearer(): void public function testOAuthAccessTokenSuccess(): void { + // check if no exception is thrown + $this->expectNotToPerformAssertions(); + $tokenStorage = $this->createMock(TokenStorage::class); $tokenStorage->method('loadToken') ->willReturn(new BearerToken('privateTokenId', 'oAuthAccessTokenId')); $authorizationFacade = $this->createAuthorizationFacade($tokenStorage); $authorizationFacade->createFreshPublicApiToken('privateTokenId', 'oAuthAccessTokenId'); - - // no exception is thrown - $this->assertTrue(true); } /**