diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS old mode 100644 new mode 100755 diff --git a/.github/workflows/sdk-tests.yaml b/.github/workflows/sdk-tests.yaml old mode 100644 new mode 100755 index 626d965..deacf21 --- a/.github/workflows/sdk-tests.yaml +++ b/.github/workflows/sdk-tests.yaml @@ -2,7 +2,9 @@ name: Shoptet API-SDK tests on: pull_request: + types: [opened, reopened, synchronize] push: + branches: [master, main] schedule: - cron: '0 8 * * 1' # At 08:00 on Monday @@ -44,7 +46,7 @@ jobs: - run: composer lint test-unit: - name: Lint + name: Unit test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 diff --git a/.gitignore b/.gitignore old mode 100644 new mode 100755 diff --git a/LICENSE b/LICENSE old mode 100644 new mode 100755 diff --git a/README.md b/README.md old mode 100644 new mode 100755 index 1d6ddce..1611426 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The official PHP library for the Shoptet REST API. ## Documentation -See the [Shoptet API doc](https://shoptet.docs.apiary.io/#). +See the [Shoptet API doc](https://api.docs.shoptet.com/shoptet-api/openapi/#). ## Requirements diff --git a/build/phpstan.bootstrap.php b/build/phpstan.bootstrap.php old mode 100644 new mode 100755 diff --git a/composer.json b/composer.json old mode 100644 new mode 100755 diff --git a/composer.lock b/composer.lock old mode 100644 new mode 100755 diff --git a/docs/request_body_processing_methods.md b/docs/request_body_processing_methods.md old mode 100644 new mode 100755 diff --git a/examples/authorizationExample.php b/examples/authorizationExample.php old mode 100644 new mode 100755 diff --git a/examples/callEndpointWithRequestBody.php b/examples/callEndpointWithRequestBody.php old mode 100644 new mode 100755 diff --git a/examples/handleAddonInstallationCallback.php b/examples/handleAddonInstallationCallback.php old mode 100644 new mode 100755 diff --git a/init.php b/init.php old mode 100644 new mode 100755 index f420f02..4480c72 --- a/init.php +++ b/init.php @@ -29,20 +29,26 @@ require_once __DIR__ . '/src/Component/Entity/ArticleList.php'; require_once __DIR__ . '/src/Component/Entity/ArticleSection.php'; require_once __DIR__ . '/src/Component/Entity/ArticleSectionList.php'; +require_once __DIR__ . '/src/Component/Entity/ArticleSnapshot.php'; require_once __DIR__ . '/src/Component/Entity/ArticleUrls.php'; require_once __DIR__ . '/src/Component/Entity/AvailabilityShort.php'; require_once __DIR__ . '/src/Component/Entity/BillingAddress.php'; require_once __DIR__ . '/src/Component/Entity/BillingAddressCustomer.php'; require_once __DIR__ . '/src/Component/Entity/BillingMethod.php'; require_once __DIR__ . '/src/Component/Entity/Brand.php'; +require_once __DIR__ . '/src/Component/Entity/BrandBatchCreate.php'; +require_once __DIR__ . '/src/Component/Entity/BrandCreate.php'; require_once __DIR__ . '/src/Component/Entity/BrandNamed.php'; require_once __DIR__ . '/src/Component/Entity/CartPrice.php'; require_once __DIR__ . '/src/Component/Entity/Category.php'; require_once __DIR__ . '/src/Component/Entity/Category/CatalogueMapping.php'; require_once __DIR__ . '/src/Component/Entity/Category/CatalogueMapping/Item.php'; +require_once __DIR__ . '/src/Component/Entity/CategoryBatchUpdate.php'; +require_once __DIR__ . '/src/Component/Entity/CategoryUpdate.php'; require_once __DIR__ . '/src/Component/Entity/ConsumptionTax.php'; require_once __DIR__ . '/src/Component/Entity/CreditNote.php'; require_once __DIR__ . '/src/Component/Entity/CreditNote/Items.php'; +require_once __DIR__ . '/src/Component/Entity/CreditNoteSnapshot.php'; require_once __DIR__ . '/src/Component/Entity/Customer.php'; require_once __DIR__ . '/src/Component/Entity/Customer/Accounts.php'; require_once __DIR__ . '/src/Component/Entity/Customer/Accounts/Item.php'; @@ -50,11 +56,14 @@ require_once __DIR__ . '/src/Component/Entity/Customer/DeliveryAddress.php'; require_once __DIR__ . '/src/Component/Entity/Customer/Remarks.php'; require_once __DIR__ . '/src/Component/Entity/Customer/Remarks/Item.php'; +require_once __DIR__ . '/src/Component/Entity/CustomerSnapshot.php'; require_once __DIR__ . '/src/Component/Entity/DeliveryAddressCustomer.php'; require_once __DIR__ . '/src/Component/Entity/DeliveryNote.php'; require_once __DIR__ . '/src/Component/Entity/DeliveryNote/Items.php'; require_once __DIR__ . '/src/Component/Entity/DeliveryNoteItem.php'; +require_once __DIR__ . '/src/Component/Entity/DeliveryNoteSnapshot.php'; require_once __DIR__ . '/src/Component/Entity/DiscountCoupon.php'; +require_once __DIR__ . '/src/Component/Entity/DiscountCouponSnapshot.php'; require_once __DIR__ . '/src/Component/Entity/DiscussionPost.php'; require_once __DIR__ . '/src/Component/Entity/DocumentConsumptionTax.php'; require_once __DIR__ . '/src/Component/Entity/DocumentCustomer.php'; @@ -71,6 +80,7 @@ require_once __DIR__ . '/src/Component/Entity/Invoice/Items.php'; require_once __DIR__ . '/src/Component/Entity/InvoiceItem.php'; require_once __DIR__ . '/src/Component/Entity/InvoiceItem/DisplayPrices.php'; +require_once __DIR__ . '/src/Component/Entity/InvoiceSnapshot.php'; require_once __DIR__ . '/src/Component/Entity/ItemPrice.php'; require_once __DIR__ . '/src/Component/Entity/ItemSpecificSurchargeParameters.php'; require_once __DIR__ . '/src/Component/Entity/ItemSpecificSurchargeParameters/Item.php'; @@ -87,6 +97,8 @@ require_once __DIR__ . '/src/Component/Entity/MeasureUnit.php'; require_once __DIR__ . '/src/Component/Entity/NotificationData.php'; require_once __DIR__ . '/src/Component/Entity/Order.php'; +require_once __DIR__ . '/src/Component/Entity/Order/Completion.php'; +require_once __DIR__ . '/src/Component/Entity/Order/Completion/Item.php'; require_once __DIR__ . '/src/Component/Entity/Order/Items.php'; require_once __DIR__ . '/src/Component/Entity/Order/Notes.php'; require_once __DIR__ . '/src/Component/Entity/Order/Notes/AdditionalFields.php'; @@ -99,22 +111,30 @@ require_once __DIR__ . '/src/Component/Entity/Order/Shippings/Item/Shipping.php'; require_once __DIR__ . '/src/Component/Entity/Order/Source.php'; require_once __DIR__ . '/src/Component/Entity/Order/Status.php'; +require_once __DIR__ . '/src/Component/Entity/OrderBatchCreate.php'; +require_once __DIR__ . '/src/Component/Entity/OrderBatchCreate/Settings.php'; require_once __DIR__ . '/src/Component/Entity/OrderGift.php'; +require_once __DIR__ . '/src/Component/Entity/OrderHistory.php'; +require_once __DIR__ . '/src/Component/Entity/OrderHistory/User.php'; +require_once __DIR__ . '/src/Component/Entity/OrderHistorySnapshot.php'; require_once __DIR__ . '/src/Component/Entity/OrderItem.php'; require_once __DIR__ . '/src/Component/Entity/OrderItem/DisplayPrices.php'; require_once __DIR__ . '/src/Component/Entity/OrderItem/MainImage.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'; +require_once __DIR__ . '/src/Component/Entity/OrderSnapshot.php'; require_once __DIR__ . '/src/Component/Entity/Page.php'; require_once __DIR__ . '/src/Component/Entity/PageList.php'; require_once __DIR__ . '/src/Component/Entity/Paginator.php'; require_once __DIR__ . '/src/Component/Entity/ParameterValueCombinations.php'; +require_once __DIR__ . '/src/Component/Entity/ParameterValueCombinationsCodes.php'; require_once __DIR__ . '/src/Component/Entity/PaymentMethod.php'; require_once __DIR__ . '/src/Component/Entity/Price.php'; require_once __DIR__ . '/src/Component/Entity/PriceSales.php'; require_once __DIR__ . '/src/Component/Entity/Pricelist.php'; require_once __DIR__ . '/src/Component/Entity/PricelistDetail.php'; -require_once __DIR__ . '/src/Component/Entity/PricelistDetail/Item.php'; +require_once __DIR__ . '/src/Component/Entity/PricelistSnapshot.php'; require_once __DIR__ . '/src/Component/Entity/Product.php'; require_once __DIR__ . '/src/Component/Entity/Product/AlternativeProducts.php'; require_once __DIR__ . '/src/Component/Entity/Product/Categories.php'; @@ -141,6 +161,8 @@ require_once __DIR__ . '/src/Component/Entity/Product/Variants.php'; require_once __DIR__ . '/src/Component/Entity/Product/Variants/Item.php'; require_once __DIR__ . '/src/Component/Entity/Product/Variants/Item/MeasureUnit.php'; +require_once __DIR__ . '/src/Component/Entity/Product/Variants/Item/OssVatLevels.php'; +require_once __DIR__ . '/src/Component/Entity/Product/Variants/Item/OssVatLevels/Item.php'; require_once __DIR__ . '/src/Component/Entity/Product/Variants/Item/Parameters.php'; require_once __DIR__ . '/src/Component/Entity/Product/Variants/Item/Parameters/Item.php'; require_once __DIR__ . '/src/Component/Entity/Product/Variants/Item/PerPricelistPrices.php'; @@ -149,6 +171,7 @@ require_once __DIR__ . '/src/Component/Entity/Product/Variants/Item/PerStockAmounts/Item.php'; require_once __DIR__ . '/src/Component/Entity/Product/Variants/Item/ZboziCZ.php'; require_once __DIR__ . '/src/Component/Entity/Product/Warranty.php'; +require_once __DIR__ . '/src/Component/Entity/ProductBatchUpdate.php'; require_once __DIR__ . '/src/Component/Entity/ProductConsumptionTax.php'; require_once __DIR__ . '/src/Component/Entity/ProductFilteringParameterValue.php'; require_once __DIR__ . '/src/Component/Entity/ProductFilteringParameterValues.php'; @@ -158,20 +181,47 @@ require_once __DIR__ . '/src/Component/Entity/ProductGifts.php'; require_once __DIR__ . '/src/Component/Entity/ProductGifts/Item.php'; require_once __DIR__ . '/src/Component/Entity/ProductOrderableAmount.php'; +require_once __DIR__ . '/src/Component/Entity/ProductPricelistSnapshot.php'; +require_once __DIR__ . '/src/Component/Entity/ProductPrices.php'; +require_once __DIR__ . '/src/Component/Entity/ProductPrices/PurchasePrice.php'; require_once __DIR__ . '/src/Component/Entity/ProductRequestSurchargeParameter.php'; require_once __DIR__ . '/src/Component/Entity/ProductRequestSurchargeParameter/Values.php'; require_once __DIR__ . '/src/Component/Entity/ProductRequestSurchargeParameterValue.php'; require_once __DIR__ . '/src/Component/Entity/ProductSet.php'; +require_once __DIR__ . '/src/Component/Entity/ProductSnapshot.php'; require_once __DIR__ . '/src/Component/Entity/ProductSurchargeParameter.php'; require_once __DIR__ . '/src/Component/Entity/ProductSurchargeParameter/Values.php'; require_once __DIR__ . '/src/Component/Entity/ProductSurchargeParameterValue.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/CategoryGuids.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/DescriptiveParameters.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/DescriptiveParameters/Item.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/FilteringParameters.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/FilteringParameters/Item.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/FilteringParameters/Item/Values.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/Flags.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/Flags/Item.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/RelatedVideos.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/RelatedVideos/Item.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/SurchargeParameters.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/Variants.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/Variants/Item.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/Variants/Item/OssVatLevels.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/Variants/Item/OssVatLevels/Item.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/Variants/Item/Parameters.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/Variants/Item/Parameters/Item.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/Variants/Item/StocksLocations.php'; +require_once __DIR__ . '/src/Component/Entity/ProductUpdate/Variants/Item/StocksLocations/Item.php'; require_once __DIR__ . '/src/Component/Entity/ProductVariantParameterValue.php'; require_once __DIR__ . '/src/Component/Entity/ProductVariantParameterValues.php'; require_once __DIR__ . '/src/Component/Entity/ProductVariantParameterValues/Item.php'; require_once __DIR__ . '/src/Component/Entity/ProformaInvoice.php'; require_once __DIR__ . '/src/Component/Entity/ProformaInvoice/Items.php'; +require_once __DIR__ . '/src/Component/Entity/ProformaInvoiceCodes.php'; +require_once __DIR__ . '/src/Component/Entity/ProformaInvoiceSnapshot.php'; require_once __DIR__ . '/src/Component/Entity/ProofPaymentDetail.php'; require_once __DIR__ . '/src/Component/Entity/ProofPaymentDetail/Source.php'; +require_once __DIR__ . '/src/Component/Entity/ProofPaymentSnapshot.php'; require_once __DIR__ . '/src/Component/Entity/ProofPaymentVatBreakdown.php'; require_once __DIR__ . '/src/Component/Entity/ProofPaymentVatBreakdown/Items.php'; require_once __DIR__ . '/src/Component/Entity/ProofPaymentVatBreakdown/Items/Item.php'; @@ -185,6 +235,7 @@ require_once __DIR__ . '/src/Component/Entity/QuantityDiscountSettingsResponse.php'; require_once __DIR__ . '/src/Component/Entity/QuantityDiscountSettingsResponse/Item.php'; require_once __DIR__ . '/src/Component/Entity/QuantityDiscountSettingsResponse/Item/DiscountValue.php'; +require_once __DIR__ . '/src/Component/Entity/QuantityDiscountSnapshot.php'; require_once __DIR__ . '/src/Component/Entity/QuantityDiscountTargetingResponse.php'; require_once __DIR__ . '/src/Component/Entity/QuantityDiscountTargetingResponse/BrandCodes.php'; require_once __DIR__ . '/src/Component/Entity/QuantityDiscountTargetingResponse/CategoryGuids.php'; @@ -203,8 +254,11 @@ require_once __DIR__ . '/src/Component/Entity/ShipmentPrice.php'; require_once __DIR__ . '/src/Component/Entity/Shipping.php'; require_once __DIR__ . '/src/Component/Entity/Stock.php'; +require_once __DIR__ . '/src/Component/Entity/StockList.php'; require_once __DIR__ . '/src/Component/Entity/Supplier.php'; require_once __DIR__ . '/src/Component/Entity/SurchargeParameterValue.php'; +require_once __DIR__ . '/src/Component/Entity/TypeCurrency.php'; +require_once __DIR__ . '/src/Component/Entity/TypeLanguage.php'; require_once __DIR__ . '/src/Component/Entity/VariantPrice.php'; require_once __DIR__ . '/src/Component/Entity/Webhook.php'; require_once __DIR__ . '/src/Component/Entity/WebhookNotification.php'; @@ -221,29 +275,58 @@ require_once __DIR__ . '/src/Component/Entity/XyDiscountTargetingResponse/ProductGuids.php'; require_once __DIR__ . '/src/Component/ValueObject/ConsumptionTaxId.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeAmount.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypeAmountNullable.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeColor.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeConstSymbol.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypeConstSymbolNullable.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeCurrencyCode.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypeCurrencyCodeNullable.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeCustomerFieldValue.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeDate.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypeDateNullable.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeDateTime.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypeDateTimeNullable.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeDateTimeRequest.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeDimension.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeExchangeRate.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeFilename.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypeFilenameNullable.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeGuid.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypeGuidNullable.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeGuidUnlimited.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeNonEmptyString.php'; require_once __DIR__ . '/src/Component/ValueObject/TypePositiveAmount.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypePositiveAmountNullable.php'; require_once __DIR__ . '/src/Component/ValueObject/TypePrice.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypePriceNullable.php'; require_once __DIR__ . '/src/Component/ValueObject/TypePriceRatio.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeProductPriceRatio.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeUnitRatio.php'; +require_once __DIR__ . '/src/Component/ValueObject/TypeVariantCodeRequest.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeVatRate.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeWeight.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeWeightRequest.php'; require_once __DIR__ . '/src/Component/ValueObject/TypeWeightUnlimited.php'; require_once __DIR__ . '/src/Component/ValueObject/ValueObjectInterface.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/AddAlternativeProduct.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/AddAlternativeProductRequest/AddAlternativeProductRequest.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/AddAlternativeProductRequest/AddAlternativeProductRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/AddAlternativeProductRequest/AddAlternativeProductRequest/Data/AlternativeProduct.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/AddAlternativeProductResponse/AddAlternativeProductResponse.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/AddAlternativeProductResponse/AddAlternativeProductResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/AddAlternativeProductResponse/AddAlternativeProductResponse/Data/Items.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProducts.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data/Items.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/SetAlternativeProducts.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts/Item.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/SetAlternativeProductsResponse/SetAlternativeProductsResponse.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/AlternativeProducts/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data/Items.php'; require_once __DIR__ . '/src/Endpoint/Articles/CreateArticle.php'; require_once __DIR__ . '/src/Endpoint/Articles/CreateArticleRequest/CreateArticleRequest.php'; require_once __DIR__ . '/src/Endpoint/Articles/CreateArticleRequest/CreateArticleRequest/Data.php'; @@ -257,8 +340,10 @@ require_once __DIR__ . '/src/Endpoint/Articles/CreateArticleSectionResponse/CreateArticleSectionResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Articles/DeleteArticle.php'; require_once __DIR__ . '/src/Endpoint/Articles/DeleteArticleResponse/DeleteArticleResponse.php'; +require_once __DIR__ . '/src/Endpoint/Articles/DeleteArticleResponse/DeleteArticleResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Articles/DeleteArticleSection.php'; require_once __DIR__ . '/src/Endpoint/Articles/DeleteArticleSectionResponse/DeleteArticleSectionResponse.php'; +require_once __DIR__ . '/src/Endpoint/Articles/DeleteArticleSectionResponse/DeleteArticleSectionResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Articles/GetDetailOfArticle.php'; require_once __DIR__ . '/src/Endpoint/Articles/GetDetailOfArticleResponse/GetDetailOfArticleResponse.php'; require_once __DIR__ . '/src/Endpoint/Articles/GetDetailOfArticleResponse/GetDetailOfArticleResponse/Data.php'; @@ -293,10 +378,10 @@ require_once __DIR__ . '/src/Endpoint/Brands/CreateBrandBatchResponse/CreateBrandBatchResponse.php'; require_once __DIR__ . '/src/Endpoint/Brands/CreateBrandBatchResponse/CreateBrandBatchResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Brands/CreateBrandRequest/CreateBrandRequest.php'; -require_once __DIR__ . '/src/Endpoint/Brands/CreateBrandRequest/CreateBrandRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Brands/CreateBrandResponse/CreateBrandResponse.php'; require_once __DIR__ . '/src/Endpoint/Brands/DeleteBrand.php'; require_once __DIR__ . '/src/Endpoint/Brands/DeleteBrandResponse/DeleteBrandResponse.php'; +require_once __DIR__ . '/src/Endpoint/Brands/DeleteBrandResponse/DeleteBrandResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Brands/GetDetailOfBrand.php'; require_once __DIR__ . '/src/Endpoint/Brands/GetDetailOfBrandResponse/GetDetailOfBrandResponse.php'; require_once __DIR__ . '/src/Endpoint/Brands/GetListofBrands.php'; @@ -307,6 +392,52 @@ require_once __DIR__ . '/src/Endpoint/Brands/UpdateBrandRequest/UpdateBrandRequest.php'; require_once __DIR__ . '/src/Endpoint/Brands/UpdateBrandRequest/UpdateBrandRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Brands/UpdateBrandResponse/UpdateBrandResponse.php'; +require_once __DIR__ . '/src/Endpoint/Categories/CreateProductCategory.php'; +require_once __DIR__ . '/src/Endpoint/Categories/CreateProductCategoryRequest/CreateProductCategoryRequest.php'; +require_once __DIR__ . '/src/Endpoint/Categories/CreateProductCategoryRequest/CreateProductCategoryRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/Categories/CreateProductCategoryResponse/CreateProductCategoryResponse.php'; +require_once __DIR__ . '/src/Endpoint/Categories/DeleteProductCategory.php'; +require_once __DIR__ . '/src/Endpoint/Categories/DeleteProductCategoryResponse/DeleteProductCategoryResponse.php'; +require_once __DIR__ . '/src/Endpoint/Categories/DeleteProductCategoryResponse/DeleteProductCategoryResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Categories/GetListOfProductCategories.php'; +require_once __DIR__ . '/src/Endpoint/Categories/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse.php'; +require_once __DIR__ . '/src/Endpoint/Categories/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Categories/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse/Data/Categories.php'; +require_once __DIR__ . '/src/Endpoint/Categories/GetListOfProductsOrderInCategory.php'; +require_once __DIR__ . '/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse.php'; +require_once __DIR__ . '/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts.php'; +require_once __DIR__ . '/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts/Item.php'; +require_once __DIR__ . '/src/Endpoint/Categories/GetProductCategoryDetail.php'; +require_once __DIR__ . '/src/Endpoint/Categories/GetProductCategoryDetailResponse/GetProductCategoryDetailResponse.php'; +require_once __DIR__ . '/src/Endpoint/Categories/UpdateProductCategory.php'; +require_once __DIR__ . '/src/Endpoint/Categories/UpdateProductCategoryBatch.php'; +require_once __DIR__ . '/src/Endpoint/Categories/UpdateProductCategoryBatchRequest/UpdateProductCategoryBatchRequest.php'; +require_once __DIR__ . '/src/Endpoint/Categories/UpdateProductCategoryBatchResponse/UpdateProductCategoryBatchResponse.php'; +require_once __DIR__ . '/src/Endpoint/Categories/UpdateProductCategoryBatchResponse/UpdateProductCategoryBatchResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Categories/UpdateProductCategoryRequest/UpdateProductCategoryRequest.php'; +require_once __DIR__ . '/src/Endpoint/Categories/UpdateProductCategoryResponse/UpdateProductCategoryResponse.php'; +require_once __DIR__ . '/src/Endpoint/Categories/UpdateProductOrderInCategory.php'; +require_once __DIR__ . '/src/Endpoint/Categories/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest.php'; +require_once __DIR__ . '/src/Endpoint/Categories/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/Categories/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data/Item.php'; +require_once __DIR__ . '/src/Endpoint/Categories/UpdateProductOrderInCategoryResponse/UpdateProductOrderInCategoryResponse.php'; +require_once __DIR__ . '/src/Endpoint/Categories/UpdateProductOrderInCategoryResponse/UpdateProductOrderInCategoryResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/CreateConsumptionTax.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/CreateConsumptionTaxResponse/CreateConsumptionTaxResponse.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/DeleteConsumptionTax.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/DeleteConsumptionTaxResponse/DeleteConsumptionTaxResponse.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/DeleteConsumptionTaxResponse/DeleteConsumptionTaxResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/GetListOfConsumptionTaxes.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data/ConsumptionTaxes.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTax.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTaxResponse/UpdateConsumptionTaxResponse.php'; require_once __DIR__ . '/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoice.php'; require_once __DIR__ . '/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest.php'; require_once __DIR__ . '/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest/Data.php'; @@ -328,7 +459,9 @@ require_once __DIR__ . '/src/Endpoint/CreditNotes/DeleteCreditNote.php'; require_once __DIR__ . '/src/Endpoint/CreditNotes/DeleteCreditNoteItem.php'; require_once __DIR__ . '/src/Endpoint/CreditNotes/DeleteCreditNoteItemResponse/DeleteCreditNoteItemResponse.php'; +require_once __DIR__ . '/src/Endpoint/CreditNotes/DeleteCreditNoteItemResponse/DeleteCreditNoteItemResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/CreditNotes/DeleteCreditNoteResponse/DeleteCreditNoteResponse.php'; +require_once __DIR__ . '/src/Endpoint/CreditNotes/DeleteCreditNoteResponse/DeleteCreditNoteResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/CreditNotes/DownloadCreditNoteAsIsdoc.php'; require_once __DIR__ . '/src/Endpoint/CreditNotes/DownloadCreditNotePdf.php'; require_once __DIR__ . '/src/Endpoint/CreditNotes/GetCreditNoteDetail.php'; @@ -361,56 +494,87 @@ require_once __DIR__ . '/src/Endpoint/CreditNotes/UpdateCreditNoteRequest/UpdateCreditNoteRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/CreditNotes/UpdateCreditNoteResponse/UpdateCreditNoteResponse.php'; require_once __DIR__ . '/src/Endpoint/CreditNotes/UpdateCreditNoteResponse/UpdateCreditNoteResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/CreateCustomerAccount.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/CreateCustomerAccountRequest/CreateCustomerAccountRequest.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/CreateCustomerAccountRequest/CreateCustomerAccountRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/CreateCustomerAccountResponse/CreateCustomerAccountResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/CreateCustomerAccountResponse/CreateCustomerAccountResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/CreateCustomerAccountResponse/CreateCustomerAccountResponse/Data/Account.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/DeleteCustomerAccount.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/DeleteCustomerAccountResponse/DeleteCustomerAccountResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/DeleteCustomerAccountResponse/DeleteCustomerAccountResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/GetDetailOfCustomerAccount.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data/Account.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/GetListOfCustomerAccounts.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts/Item.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/UpdateCustomerAccount.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerAccounts/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse/Data/Account.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddress.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/DeleteCustomerDeliveryAddress.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/DeleteCustomerDeliveryAddressResponse/DeleteCustomerDeliveryAddressResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/DeleteCustomerDeliveryAddressResponse/DeleteCustomerDeliveryAddressResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/GeListOfCustomerDeliveryAddresses.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data/DeliveryAddresses.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/GetDetailOfCustomerDeliveryAddress.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddress.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/CreateCustomerRemark.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse/Data/Remark.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/DeleteCustomerRemark.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/DeleteCustomerRemarkResponse/DeleteCustomerRemarkResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/DeleteCustomerRemarkResponse/DeleteCustomerRemarkResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/GetDetailOfCustomerRemark.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data/Remark.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarks.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks/Item.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/UpdateCustomerRemark.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data/Remark.php'; require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomer.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerAccount.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerAccountRequest/CreateCustomerAccountRequest.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerAccountRequest/CreateCustomerAccountRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerAccountResponse/CreateCustomerAccountResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerAccountResponse/CreateCustomerAccountResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerAccountResponse/CreateCustomerAccountResponse/Data/Account.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerRemark.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse/Data/Remark.php'; require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerRequest/CreateCustomerRequest.php'; require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerRequest/CreateCustomerRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerRequest/CreateCustomerRequest/Data/Account.php'; require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerResponse/CreateCustomerResponse.php'; require_once __DIR__ . '/src/Endpoint/Customers/CreateCustomerResponse/CreateCustomerResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateDeliveryAddress.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomer.php'; -require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomerAccount.php'; -require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomerAccountResponse/DeleteCustomerAccountResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomerDeliveryAddress.php'; -require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomerDeliveryAddressResponse/DeleteCustomerDeliveryAddressResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomerRemark.php'; -require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomerRemarkResponse/DeleteCustomerRemarkResponse.php'; require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomerResponse/DeleteCustomerResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GeListOfCustomerDeliveryAddresses.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data/DeliveryAddresses.php'; +require_once __DIR__ . '/src/Endpoint/Customers/DeleteCustomerResponse/DeleteCustomerResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetCustomerDetail.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetCustomerDetailResponse/GetCustomerDetailResponse.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetCustomerDetailResponse/GetCustomerDetailResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetDetailOfCustomerAccount.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data/Account.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetDetailOfCustomerDeliveryAddress.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetDetailOfCustomerRemark.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data/Remark.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetLastCustomerChanges.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetLastCustomerChangesResponse/GetLastCustomerChangesResponse.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetLastCustomerChangesResponse/GetLastCustomerChangesResponse/Data.php'; @@ -419,11 +583,6 @@ require_once __DIR__ . '/src/Endpoint/Customers/GetListOfAllCustomers.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfAllCustomersResponse/GetListOfAllCustomersResponse.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfAllCustomersResponse/GetListOfAllCustomersResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerAccounts.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts/Item.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerGroups.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data.php'; @@ -434,34 +593,12 @@ require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerRegionsResponse/GetListOfCustomerRegionsResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerRegionsResponse/GetListOfCustomerRegionsResponse/Data/Regions.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerRegionsResponse/GetListOfCustomerRegionsResponse/Data/Regions/Item.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerRemarks.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks.php'; -require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks/Item.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomers.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse/Data/Customers.php'; require_once __DIR__ . '/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse/Data/Customers/Item.php'; require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomer.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerAccount.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse/Data/Account.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerDeliveryAddress.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerRemark.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data/Remark.php'; require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerRequest/UpdateCustomerRequest.php'; require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerRequest/UpdateCustomerRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Customers/UpdateCustomerResponse/UpdateCustomerResponse.php'; @@ -484,6 +621,7 @@ require_once __DIR__ . '/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsRequest/BulkDeleteDiscountCouponsRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsRequest/BulkDeleteDiscountCouponsRequest/Data/CouponCodes.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsResponse/BulkDeleteDiscountCouponsResponse.php'; +require_once __DIR__ . '/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsResponse/BulkDeleteDiscountCouponsResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/CreateDiscountCoupons.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/CreateDiscountCouponsRequest/CreateDiscountCouponsRequest.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/CreateDiscountCouponsRequest/CreateDiscountCouponsRequest/Data.php'; @@ -517,8 +655,10 @@ require_once __DIR__ . '/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data/ProductFlags/Item.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/DeleteDiscountCoupon.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/DeleteDiscountCouponResponse/DeleteDiscountCouponResponse.php'; +require_once __DIR__ . '/src/Endpoint/DiscountCoupons/DeleteDiscountCouponResponse/DeleteDiscountCouponResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/DeleteDiscountCouponsTemplate.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/DeleteDiscountCouponsTemplateResponse/DeleteDiscountCouponsTemplateResponse.php'; +require_once __DIR__ . '/src/Endpoint/DiscountCoupons/DeleteDiscountCouponsTemplateResponse/DeleteDiscountCouponsTemplateResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/GetDetailOfDiscountCoupon.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/GetDetailOfDiscountCouponResponse/GetDetailOfDiscountCouponResponse.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/GetDetailOfDiscountCouponResponse/GetDetailOfDiscountCouponResponse/Data.php'; @@ -544,13 +684,11 @@ require_once __DIR__ . '/src/Endpoint/DiscountCoupons/UpdateDiscountCouponsUsageRequest/UpdateDiscountCouponsUsageRequest.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/UpdateDiscountCouponsUsageRequest/UpdateDiscountCouponsUsageRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/DiscountCoupons/UpdateDiscountCouponsUsageResponse/UpdateDiscountCouponsUsageResponse.php'; +require_once __DIR__ . '/src/Endpoint/DiscountCoupons/UpdateDiscountCouponsUsageResponse/UpdateDiscountCouponsUsageResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Discussions/GetListOfDiscussionPosts.php'; require_once __DIR__ . '/src/Endpoint/Discussions/GetListOfDiscussionPostsResponse/GetListOfDiscussionPostsResponse.php'; require_once __DIR__ . '/src/Endpoint/Discussions/GetListOfDiscussionPostsResponse/GetListOfDiscussionPostsResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Discussions/GetListOfDiscussionPostsResponse/GetListOfDiscussionPostsResponse/Data/Discussion.php'; -require_once __DIR__ . '/src/Endpoint/DocumentExport/GeneralDocumentDownload.php'; -require_once __DIR__ . '/src/Endpoint/DocumentExport/GeneralDocumentDownloadResponse/GeneralDocumentDownloadResponse.php'; -require_once __DIR__ . '/src/Endpoint/DocumentExport/GeneralDocumentDownloadResponse/GeneralDocumentDownloadResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/EmailDistributionLists/CreateEmailDistributionList.php'; require_once __DIR__ . '/src/Endpoint/EmailDistributionLists/CreateEmailDistributionListRequest/CreateEmailDistributionListRequest.php'; require_once __DIR__ . '/src/Endpoint/EmailDistributionLists/CreateEmailDistributionListRequest/CreateEmailDistributionListRequest/Data.php'; @@ -584,6 +722,12 @@ require_once __DIR__ . '/src/Endpoint/EmailDistributionLists/GetListingOfEmailDistributionListsResponse/GetListingOfEmailDistributionListsResponse/Data/MailingLists/Item.php'; require_once __DIR__ . '/src/Endpoint/Endpoint.php'; require_once __DIR__ . '/src/Endpoint/EndpointMap.php'; +require_once __DIR__ . '/src/Endpoint/Endpoints/GetListOfAvailableEndpoints.php'; +require_once __DIR__ . '/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse.php'; +require_once __DIR__ . '/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints.php'; +require_once __DIR__ . '/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item.php'; +require_once __DIR__ . '/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item/Group.php'; require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDesign.php'; require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDesignResponse/GetEshopDesignResponse.php'; require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDesignResponse/GetEshopDesignResponse/Data.php'; @@ -595,6 +739,20 @@ require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDesignResponse/GetEshopDesignResponse/Data/Header.php'; require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDesignResponse/GetEshopDesignResponse/Data/Layout.php'; require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDesignResponse/GetEshopDesignResponse/Data/Template.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettings.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/CompanyStamp.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/CreditNote.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/CreditNote/ForbiddenItemTypes.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/DefaultSettings.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/DeliveryNote.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Export.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Invoice.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Order.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Order/ItemRemarkParameters.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/ProformaInvoice.php'; +require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/ProofPayment.php'; require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopInfo.php'; require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse.php'; require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data.php'; @@ -650,9 +808,14 @@ require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse/Data/BillingInfo.php'; require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse/Data/ContactInfo.php'; require_once __DIR__ . '/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse/Data/DeliveryAddress.php'; +require_once __DIR__ . '/src/Endpoint/Exports/GeneralDocumentDownload.php'; +require_once __DIR__ . '/src/Endpoint/Exports/GeneralDocumentDownloadResponse/GeneralDocumentDownloadResponse.php'; +require_once __DIR__ . '/src/Endpoint/Exports/GeneralDocumentDownloadResponse/GeneralDocumentDownloadResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Files/GetListOfUploadedFiles.php'; require_once __DIR__ . '/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse.php'; require_once __DIR__ . '/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Files.php'; +require_once __DIR__ . '/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Files/Item.php'; require_once __DIR__ . '/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Images.php'; require_once __DIR__ . '/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Images/Item.php'; require_once __DIR__ . '/src/Endpoint/Files/UploadFile.php'; @@ -660,6 +823,7 @@ require_once __DIR__ . '/src/Endpoint/Files/UploadFileRequest/UploadFileRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Files/UploadFileResponse/UploadFileResponse.php'; require_once __DIR__ . '/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data/File.php'; require_once __DIR__ . '/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data/Image.php'; require_once __DIR__ . '/src/Endpoint/Files/UploadFiles.php'; require_once __DIR__ . '/src/Endpoint/Files/UploadFilesRequest/UploadFilesRequest.php'; @@ -667,13 +831,88 @@ require_once __DIR__ . '/src/Endpoint/Files/UploadFilesRequest/UploadFilesRequest/Data/Item.php'; require_once __DIR__ . '/src/Endpoint/Files/UploadFilesResponse/UploadFilesResponse.php'; require_once __DIR__ . '/src/Endpoint/Files/UploadFilesResponse/UploadFilesResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/CreateFilteringParameter.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/CreateFilteringParameterRequest/CreateFilteringParameterRequest.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/CreateFilteringParameterRequest/CreateFilteringParameterRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/CreateFilteringParameterResponse/CreateFilteringParameterResponse.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/CreateFilteringParameterValue.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/DeleteFilteringParameter.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/DeleteFilteringParameterResponse/DeleteFilteringParameterResponse.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/DeleteFilteringParameterResponse/DeleteFilteringParameterResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/DeleteFilteringParameterValue.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/DeleteFilteringParameterValueResponse/DeleteFilteringParameterValueResponse.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/DeleteFilteringParameterValueResponse/DeleteFilteringParameterValueResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/GetDetailOfFilteringParameter.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/GetListOfFilteringParameters.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item/Values.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/UpdateFilteringParameter.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/UpdateFilteringParameterValue.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/Flags/CreateProductFlag.php'; +require_once __DIR__ . '/src/Endpoint/Flags/CreateProductFlagRequest/CreateProductFlagRequest.php'; +require_once __DIR__ . '/src/Endpoint/Flags/CreateProductFlagRequest/CreateProductFlagRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/Flags/CreateProductFlagResponse/CreateProductFlagResponse.php'; +require_once __DIR__ . '/src/Endpoint/Flags/CreateProductFlagResponse/CreateProductFlagResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Flags/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags.php'; +require_once __DIR__ . '/src/Endpoint/Flags/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags/Item.php'; +require_once __DIR__ . '/src/Endpoint/Flags/DeleteProductFlag.php'; +require_once __DIR__ . '/src/Endpoint/Flags/DeleteProductFlagResponse/DeleteProductFlagResponse.php'; +require_once __DIR__ . '/src/Endpoint/Flags/DeleteProductFlagResponse/DeleteProductFlagResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Flags/GetListOfProductsFlags.php'; +require_once __DIR__ . '/src/Endpoint/Flags/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse.php'; +require_once __DIR__ . '/src/Endpoint/Flags/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Flags/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags.php'; +require_once __DIR__ . '/src/Endpoint/Flags/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags/Item.php'; +require_once __DIR__ . '/src/Endpoint/Flags/UpdateProductFlag.php'; +require_once __DIR__ . '/src/Endpoint/Flags/UpdateProductFlagRequest/UpdateProductFlagRequest.php'; +require_once __DIR__ . '/src/Endpoint/Flags/UpdateProductFlagRequest/UpdateProductFlagRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/Flags/UpdateProductFlagResponse/UpdateProductFlagResponse.php'; +require_once __DIR__ . '/src/Endpoint/Flags/UpdateProductFlagResponse/UpdateProductFlagResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Flags/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags.php'; +require_once __DIR__ . '/src/Endpoint/Flags/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags/Item.php'; require_once __DIR__ . '/src/Endpoint/Get.php'; +require_once __DIR__ . '/src/Endpoint/Gifts/GetOrderGiftSettings.php'; +require_once __DIR__ . '/src/Endpoint/Gifts/GetOrderGiftSettingsResponse/GetOrderGiftSettingsResponse.php'; +require_once __DIR__ . '/src/Endpoint/Gifts/GetOrderGiftSettingsResponse/GetOrderGiftSettingsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Gifts/UpdateOrderGiftSettings.php'; +require_once __DIR__ . '/src/Endpoint/Gifts/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest.php'; +require_once __DIR__ . '/src/Endpoint/Gifts/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/Gifts/UpdateOrderGiftSettingsResponse/UpdateOrderGiftSettingsResponse.php'; +require_once __DIR__ . '/src/Endpoint/Gifts/UpdateOrderGiftSettingsResponse/UpdateOrderGiftSettingsResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Invoices/CreateInvoiceFromOrder.php'; require_once __DIR__ . '/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest.php'; require_once __DIR__ . '/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest/Data/ProofPaymentCodes.php'; require_once __DIR__ . '/src/Endpoint/Invoices/CreateInvoiceFromOrderResponse/CreateInvoiceFromOrderResponse.php'; require_once __DIR__ . '/src/Endpoint/Invoices/CreateInvoiceFromOrderResponse/CreateInvoiceFromOrderResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoice.php'; +require_once __DIR__ . '/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceRequest/CreateInvoiceFromProformaInvoiceRequest.php'; +require_once __DIR__ . '/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceRequest/CreateInvoiceFromProformaInvoiceRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceResponse/CreateInvoiceFromProformaInvoiceResponse.php'; +require_once __DIR__ . '/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceResponse/CreateInvoiceFromProformaInvoiceResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Invoices/DownloadInvoiceAsIsdoc.php'; require_once __DIR__ . '/src/Endpoint/Invoices/DownloadInvoiceAsPdf.php'; require_once __DIR__ . '/src/Endpoint/Invoices/GetInvoiceDetail.php'; @@ -692,61 +931,114 @@ require_once __DIR__ . '/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data/Invoices.php'; require_once __DIR__ . '/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data/Invoices/Item.php'; +require_once __DIR__ . '/src/Endpoint/Invoices/InvoiceLinkProformaInvoices.php'; +require_once __DIR__ . '/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesRequest/InvoiceLinkProformaInvoicesRequest.php'; +require_once __DIR__ . '/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesRequest/InvoiceLinkProformaInvoicesRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesRequest/InvoiceLinkProformaInvoicesRequest/Data/ProformaInvoiceCodes.php'; +require_once __DIR__ . '/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesResponse/InvoiceLinkProformaInvoicesResponse.php'; +require_once __DIR__ . '/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesResponse/InvoiceLinkProformaInvoicesResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Invoices/InvoiceLinkProofPayments.php'; require_once __DIR__ . '/src/Endpoint/Invoices/InvoiceLinkProofPaymentsRequest/InvoiceLinkProofPaymentsRequest.php'; require_once __DIR__ . '/src/Endpoint/Invoices/InvoiceLinkProofPaymentsRequest/InvoiceLinkProofPaymentsRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Invoices/InvoiceLinkProofPaymentsRequest/InvoiceLinkProofPaymentsRequest/Data/ProofPaymentCodes.php'; require_once __DIR__ . '/src/Endpoint/Invoices/InvoiceLinkProofPaymentsResponse/InvoiceLinkProofPaymentsResponse.php'; require_once __DIR__ . '/src/Endpoint/Invoices/InvoiceLinkProofPaymentsResponse/InvoiceLinkProofPaymentsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/JobEndpoints/GetJobDetail.php'; -require_once __DIR__ . '/src/Endpoint/JobEndpoints/GetJobDetailResponse/GetJobDetailResponse.php'; -require_once __DIR__ . '/src/Endpoint/JobEndpoints/GetJobDetailResponse/GetJobDetailResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/JobEndpoints/GetJobDetailResponse/GetJobDetailResponse/Data/Job.php'; -require_once __DIR__ . '/src/Endpoint/JobEndpoints/GetListOfJobs.php'; -require_once __DIR__ . '/src/Endpoint/JobEndpoints/GetListOfJobsResponse/GetListOfJobsResponse.php'; -require_once __DIR__ . '/src/Endpoint/JobEndpoints/GetListOfJobsResponse/GetListOfJobsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/JobEndpoints/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs.php'; -require_once __DIR__ . '/src/Endpoint/JobEndpoints/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs/Item.php'; +require_once __DIR__ . '/src/Endpoint/Jobs/GetJobDetail.php'; +require_once __DIR__ . '/src/Endpoint/Jobs/GetJobDetailResponse/GetJobDetailResponse.php'; +require_once __DIR__ . '/src/Endpoint/Jobs/GetJobDetailResponse/GetJobDetailResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Jobs/GetJobDetailResponse/GetJobDetailResponse/Data/Job.php'; +require_once __DIR__ . '/src/Endpoint/Jobs/GetListOfJobs.php'; +require_once __DIR__ . '/src/Endpoint/Jobs/GetListOfJobsResponse/GetListOfJobsResponse.php'; +require_once __DIR__ . '/src/Endpoint/Jobs/GetListOfJobsResponse/GetListOfJobsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Jobs/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs.php'; +require_once __DIR__ . '/src/Endpoint/Jobs/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs/Item.php'; +require_once __DIR__ . '/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnits.php'; +require_once __DIR__ . '/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse.php'; +require_once __DIR__ . '/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits.php'; +require_once __DIR__ . '/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item.php'; +require_once __DIR__ . '/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios.php'; +require_once __DIR__ . '/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios/Item.php'; require_once __DIR__ . '/src/Endpoint/OAuth/CreateOauthAccessToken.php'; require_once __DIR__ . '/src/Endpoint/OAuth/CreateOauthAccessToken/CreateOauthAccessTokenRequestData.php'; require_once __DIR__ . '/src/Endpoint/OAuth/CreateOauthAccessToken/CreateOauthAccessTokenResponse.php'; require_once __DIR__ . '/src/Endpoint/OAuth/CreateOauthAccessToken/CreateOauthAccessTokenResponseData.php'; require_once __DIR__ . '/src/Endpoint/OAuth/GetAccessToken.php'; require_once __DIR__ . '/src/Endpoint/OAuth/GetAccessToken/PublicAccessTokenResponseData.php'; -require_once __DIR__ . '/src/Endpoint/Orders/AddOrderGift.php'; -require_once __DIR__ . '/src/Endpoint/Orders/AddOrderGiftRequest/AddOrderGiftRequest.php'; -require_once __DIR__ . '/src/Endpoint/Orders/AddOrderGiftRequest/AddOrderGiftRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/AddOrderGiftResponse/AddOrderGiftResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/AddOrderGiftResponse/AddOrderGiftResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/AddOrderGiftResponse/AddOrderGiftResponse/Data/Items.php'; -require_once __DIR__ . '/src/Endpoint/Orders/AddOrderShipping.php'; -require_once __DIR__ . '/src/Endpoint/Orders/AddOrderShippingRequest/AddOrderShippingRequest.php'; -require_once __DIR__ . '/src/Endpoint/Orders/AddOrderShippingRequest/AddOrderShippingRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/AddOrderShippingResponse/AddOrderShippingResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/AddOrderShippingResponse/AddOrderShippingResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderGifts/AddOrderGift.php'; +require_once __DIR__ . '/src/Endpoint/OrderGifts/AddOrderGiftRequest/AddOrderGiftRequest.php'; +require_once __DIR__ . '/src/Endpoint/OrderGifts/AddOrderGiftRequest/AddOrderGiftRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderGifts/AddOrderGiftResponse/AddOrderGiftResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderGifts/AddOrderGiftResponse/AddOrderGiftResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderGifts/AddOrderGiftResponse/AddOrderGiftResponse/Data/Items.php'; +require_once __DIR__ . '/src/Endpoint/OrderGifts/DeleteOrderGift.php'; +require_once __DIR__ . '/src/Endpoint/OrderGifts/DeleteOrderGiftResponse/DeleteOrderGiftResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderGifts/DeleteOrderGiftResponse/DeleteOrderGiftResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderGifts/GetOrderGiftsList.php'; +require_once __DIR__ . '/src/Endpoint/OrderGifts/GetOrderGiftsListResponse/GetOrderGiftsListResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderGifts/GetOrderGiftsListResponse/GetOrderGiftsListResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderGifts/GetOrderGiftsListResponse/GetOrderGiftsListResponse/Data/Items.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/CreateOrderRemark.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/CreateOrderRemarkRequest/CreateOrderRemarkRequest.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/CreateOrderRemarkRequest/CreateOrderRemarkRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/CreateOrderRemarkResponse/CreateOrderRemarkResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/CreateOrderRemarkResponse/CreateOrderRemarkResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/DeleteOrderHistoryItem.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/DeleteOrderHistoryItemResponse/DeleteOrderHistoryItemResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/DeleteOrderHistoryItemResponse/DeleteOrderHistoryItemResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/GetListOfAllRemarks.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/GetListOfAllRemarksResponse/GetListOfAllRemarksResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/GetListOfAllRemarksResponse/GetListOfAllRemarksResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/GetListOfRemarksForOrder.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderHistory/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/CreateOrderItem.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters/Item.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/CreateOrderItemResponse/CreateOrderItemResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/CreateOrderItemResponse/CreateOrderItemResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/CreateOrderItemSurchargeParameters.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest/Data1.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest/Data2.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersResponse/CreateOrderItemSurchargeParametersResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersResponse/CreateOrderItemSurchargeParametersResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/DeleteOrderItem.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/DeleteOrderItemResponse/DeleteOrderItemResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/DeleteOrderItemResponse/DeleteOrderItemResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/DeleteOrderItemSurchargeParameters.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/DeleteOrderItemSurchargeParametersResponse/DeleteOrderItemSurchargeParametersResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/DeleteOrderItemSurchargeParametersResponse/DeleteOrderItemSurchargeParametersResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/UpdateOrderItem.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/UpdateOrderItemRequest/UpdateOrderItemRequest.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/UpdateOrderItemRequest/UpdateOrderItemRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/UpdateOrderItemRequest/UpdateOrderItemRequest/Data/ConsumptionTax.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/UpdateOrderItemResponse/UpdateOrderItemResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderItems/UpdateOrderItemResponse/UpdateOrderItemResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderPayment/CreateOrderPayment.php'; +require_once __DIR__ . '/src/Endpoint/OrderPayment/CreateOrderPaymentRequest/CreateOrderPaymentRequest.php'; +require_once __DIR__ . '/src/Endpoint/OrderPayment/CreateOrderPaymentRequest/CreateOrderPaymentRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderPayment/CreateOrderPaymentResponse/CreateOrderPaymentResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderPayment/CreateOrderPaymentResponse/CreateOrderPaymentResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderPayment/UpdateOrderPayment.php'; +require_once __DIR__ . '/src/Endpoint/OrderPayment/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest.php'; +require_once __DIR__ . '/src/Endpoint/OrderPayment/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderPayment/UpdateOrderPaymentResponse/UpdateOrderPaymentResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderPayment/UpdateOrderPaymentResponse/UpdateOrderPaymentResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderShipping/AddOrderShipping.php'; +require_once __DIR__ . '/src/Endpoint/OrderShipping/AddOrderShippingRequest/AddOrderShippingRequest.php'; +require_once __DIR__ . '/src/Endpoint/OrderShipping/AddOrderShippingRequest/AddOrderShippingRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderShipping/AddOrderShippingResponse/AddOrderShippingResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderShipping/AddOrderShippingResponse/AddOrderShippingResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderShipping/UpdateOrderShipping.php'; +require_once __DIR__ . '/src/Endpoint/OrderShipping/UpdateOrderShippingRequest/UpdateOrderShippingRequest.php'; +require_once __DIR__ . '/src/Endpoint/OrderShipping/UpdateOrderShippingRequest/UpdateOrderShippingRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/OrderShipping/UpdateOrderShippingResponse/UpdateOrderShippingResponse.php'; +require_once __DIR__ . '/src/Endpoint/OrderShipping/UpdateOrderShippingResponse/UpdateOrderShippingResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Orders/CreateOrder.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderItem.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters/Item.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderItemResponse/CreateOrderItemResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderItemResponse/CreateOrderItemResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderItemSurchargeParameters.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest/Data1.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest/Data2.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderItemSurchargeParametersResponse/CreateOrderItemSurchargeParametersResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderItemSurchargeParametersResponse/CreateOrderItemSurchargeParametersResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderPayment.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderPaymentRequest/CreateOrderPaymentRequest.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderPaymentRequest/CreateOrderPaymentRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderPaymentResponse/CreateOrderPaymentResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderPaymentResponse/CreateOrderPaymentResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderRemark.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderRemarkRequest/CreateOrderRemarkRequest.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderRemarkRequest/CreateOrderRemarkRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderRemarkResponse/CreateOrderRemarkResponse.php'; require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest.php'; require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/BillingAddress.php'; @@ -763,15 +1055,8 @@ require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderResponse/CreateOrderResponse.php'; require_once __DIR__ . '/src/Endpoint/Orders/CreateOrderResponse/CreateOrderResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Orders/DeleteOrder.php'; -require_once __DIR__ . '/src/Endpoint/Orders/DeleteOrderGift.php'; -require_once __DIR__ . '/src/Endpoint/Orders/DeleteOrderGiftResponse/DeleteOrderGiftResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/DeleteOrderHistoryItem.php'; -require_once __DIR__ . '/src/Endpoint/Orders/DeleteOrderHistoryItemResponse/DeleteOrderHistoryItemResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/DeleteOrderItem.php'; -require_once __DIR__ . '/src/Endpoint/Orders/DeleteOrderItemResponse/DeleteOrderItemResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/DeleteOrderItemSurchargeParameters.php'; -require_once __DIR__ . '/src/Endpoint/Orders/DeleteOrderItemSurchargeParametersResponse/DeleteOrderItemSurchargeParametersResponse.php'; require_once __DIR__ . '/src/Endpoint/Orders/DeleteOrderResponse/DeleteOrderResponse.php'; +require_once __DIR__ . '/src/Endpoint/Orders/DeleteOrderResponse/DeleteOrderResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Orders/DownloadOrderAsPdf.php'; require_once __DIR__ . '/src/Endpoint/Orders/GetLastOrderChanges.php'; require_once __DIR__ . '/src/Endpoint/Orders/GetLastOrderChangesResponse/GetLastOrderChangesResponse.php'; @@ -799,22 +1084,14 @@ require_once __DIR__ . '/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data/Orders/Item.php'; require_once __DIR__ . '/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data/Orders/Item/Source.php'; require_once __DIR__ . '/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data/Orders/Item/Status.php'; -require_once __DIR__ . '/src/Endpoint/Orders/GetListOfRemarksForOrder.php'; -require_once __DIR__ . '/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory.php'; -require_once __DIR__ . '/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory/Item.php'; -require_once __DIR__ . '/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory/Item/User.php'; +require_once __DIR__ . '/src/Endpoint/Orders/GetOrderClaims.php'; +require_once __DIR__ . '/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse.php'; +require_once __DIR__ . '/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse/Data/Orders.php'; +require_once __DIR__ . '/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse/Data/Orders/Item.php'; require_once __DIR__ . '/src/Endpoint/Orders/GetOrderDetail.php'; require_once __DIR__ . '/src/Endpoint/Orders/GetOrderDetailResponse/GetOrderDetailResponse.php'; require_once __DIR__ . '/src/Endpoint/Orders/GetOrderDetailResponse/GetOrderDetailResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/GetOrderGiftSettings.php'; -require_once __DIR__ . '/src/Endpoint/Orders/GetOrderGiftSettingsResponse/GetOrderGiftSettingsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/GetOrderGiftSettingsResponse/GetOrderGiftSettingsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/GetOrderGiftsList.php'; -require_once __DIR__ . '/src/Endpoint/Orders/GetOrderGiftsListResponse/GetOrderGiftsListResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/GetOrderGiftsListResponse/GetOrderGiftsListResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/GetOrderGiftsListResponse/GetOrderGiftsListResponse/Data/Items.php'; require_once __DIR__ . '/src/Endpoint/Orders/OrderBatchInsertion.php'; require_once __DIR__ . '/src/Endpoint/Orders/OrderBatchInsertionRequest/OrderBatchInsertionRequest.php'; require_once __DIR__ . '/src/Endpoint/Orders/OrderBatchInsertionResponse/OrderBatchInsertionResponse.php'; @@ -824,11 +1101,6 @@ require_once __DIR__ . '/src/Endpoint/Orders/OrderCopyRequest/OrderCopyRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Orders/OrderCopyResponse/OrderCopyResponse.php'; require_once __DIR__ . '/src/Endpoint/Orders/OrderCopyResponse/OrderCopyResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderGiftSettings.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderGiftSettingsResponse/UpdateOrderGiftSettingsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderGiftSettingsResponse/UpdateOrderGiftSettingsResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderHead.php'; require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderHeadRequest/UpdateOrderHeadRequest.php'; require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderHeadRequest/UpdateOrderHeadRequest/Data.php'; @@ -836,22 +1108,6 @@ require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderHeadRequest/UpdateOrderHeadRequest/Data/DeliveryAddress.php'; require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderHeadResponse/UpdateOrderHeadResponse.php'; require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderHeadResponse/UpdateOrderHeadResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderItem.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderItemRequest/UpdateOrderItemRequest.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderItemRequest/UpdateOrderItemRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderItemRequest/UpdateOrderItemRequest/Data/ConsumptionTax.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderItemResponse/UpdateOrderItemResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderItemResponse/UpdateOrderItemResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderPayment.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderPaymentResponse/UpdateOrderPaymentResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderPaymentResponse/UpdateOrderPaymentResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderShipping.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderShippingRequest/UpdateOrderShippingRequest.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderShippingRequest/UpdateOrderShippingRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderShippingResponse/UpdateOrderShippingResponse.php'; -require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderShippingResponse/UpdateOrderShippingResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderStatus.php'; require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderStatusRequest/UpdateOrderStatusRequest.php'; require_once __DIR__ . '/src/Endpoint/Orders/UpdateOrderStatusRequest/UpdateOrderStatusRequest/Data.php'; @@ -863,7 +1119,15 @@ require_once __DIR__ . '/src/Endpoint/Orders/UpdateRemarksForOrderRequest/UpdateRemarksForOrderRequest/Data/AdditionalFields.php'; require_once __DIR__ . '/src/Endpoint/Orders/UpdateRemarksForOrderRequest/UpdateRemarksForOrderRequest/Data/AdditionalFields/Item.php'; require_once __DIR__ . '/src/Endpoint/Orders/UpdateRemarksForOrderResponse/UpdateRemarksForOrderResponse.php'; +require_once __DIR__ . '/src/Endpoint/Orders/UpdateRemarksForOrderResponse/UpdateRemarksForOrderResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/PageableGet.php'; +require_once __DIR__ . '/src/Endpoint/Pages/CreatePage.php'; +require_once __DIR__ . '/src/Endpoint/Pages/CreatePageRequest/CreatePageRequest.php'; +require_once __DIR__ . '/src/Endpoint/Pages/CreatePageRequest/CreatePageRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/Pages/CreatePageResponse/CreatePageResponse.php'; +require_once __DIR__ . '/src/Endpoint/Pages/CreatePageResponse/CreatePageResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Pages/DeletePage.php'; +require_once __DIR__ . '/src/Endpoint/Pages/DeletePageResponse/DeletePageResponse.php'; require_once __DIR__ . '/src/Endpoint/Pages/GetDetailOfPage.php'; require_once __DIR__ . '/src/Endpoint/Pages/GetDetailOfPageResponse/GetDetailOfPageResponse.php'; require_once __DIR__ . '/src/Endpoint/Pages/GetDetailOfPageResponse/GetDetailOfPageResponse/Data.php'; @@ -871,6 +1135,40 @@ require_once __DIR__ . '/src/Endpoint/Pages/GetListOfPagesResponse/GetListOfPagesResponse.php'; require_once __DIR__ . '/src/Endpoint/Pages/GetListOfPagesResponse/GetListOfPagesResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Pages/GetListOfPagesResponse/GetListOfPagesResponse/Data/Pages.php'; +require_once __DIR__ . '/src/Endpoint/Pages/UpdatePage.php'; +require_once __DIR__ . '/src/Endpoint/Pages/UpdatePageRequest/UpdatePageRequest.php'; +require_once __DIR__ . '/src/Endpoint/Pages/UpdatePageRequest/UpdatePageRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/Pages/UpdatePageResponse/UpdatePageResponse.php'; +require_once __DIR__ . '/src/Endpoint/Pages/UpdatePageResponse/UpdatePageResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/CreateParametricCategory.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/CreateParametricCategoryRequest/CreateParametricCategoryRequest.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/CreateParametricCategoryRequest/CreateParametricCategoryRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/CreateParametricCategoryRequest/CreateParametricCategoryRequest/Data/Parameters.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse/Data/ParametricCategory.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse/Data/ParametricCategory/Parameters.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/DeleteParametricCategory.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/DeleteParametricCategoryResponse/DeleteParametricCategoryResponse.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/DeleteParametricCategoryResponse/DeleteParametricCategoryResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/GetListOfParametricCategories.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item/Parameters.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/GetParametricCategoryDetail.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory/Parameters.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/UpdateParametricCategory.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/UpdateParametricCategoryRequest/UpdateParametricCategoryRequest.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/UpdateParametricCategoryRequest/UpdateParametricCategoryRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse/Data/ParametricCategory.php'; +require_once __DIR__ . '/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse/Data/ParametricCategory/Parameters.php'; require_once __DIR__ . '/src/Endpoint/Patch.php'; require_once __DIR__ . '/src/Endpoint/PaymentGateways/GetInformationAboutPayment.php'; require_once __DIR__ . '/src/Endpoint/PaymentGateways/GetInformationAboutPaymentResponse/GetInformationAboutPaymentResponse.php'; @@ -889,6 +1187,7 @@ require_once __DIR__ . '/src/Endpoint/PaymentMethods/CreatePaymentMethodResponse/CreatePaymentMethodResponse/Data/PaymentType.php'; require_once __DIR__ . '/src/Endpoint/PaymentMethods/DeletePaymentMethod.php'; require_once __DIR__ . '/src/Endpoint/PaymentMethods/DeletePaymentMethodResponse/DeletePaymentMethodResponse.php'; +require_once __DIR__ . '/src/Endpoint/PaymentMethods/DeletePaymentMethodResponse/DeletePaymentMethodResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/PaymentMethods/GetListingOfPaymentMethods.php'; require_once __DIR__ . '/src/Endpoint/PaymentMethods/GetListingOfPaymentMethodsResponse/GetListingOfPaymentMethodsResponse.php'; require_once __DIR__ . '/src/Endpoint/PaymentMethods/GetListingOfPaymentMethodsResponse/GetListingOfPaymentMethodsResponse/Data.php'; @@ -900,9 +1199,9 @@ require_once __DIR__ . '/src/Endpoint/PriceLists/CreatePricelistRequest/CreatePricelistRequest.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/CreatePricelistRequest/CreatePricelistRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/CreatePricelistResponse/CreatePricelistResponse.php'; -require_once __DIR__ . '/src/Endpoint/PriceLists/CreatePricelistResponse/CreatePricelistResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/DeletePricelist.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/DeletePricelistResponse/DeletePricelistResponse.php'; +require_once __DIR__ . '/src/Endpoint/PriceLists/DeletePricelistResponse/DeletePricelistResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/GetListOfAllPricelistDetails.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/GetListOfAllPricelistDetailsResponse/GetListOfAllPricelistDetailsResponse.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/GetListOfAllPricelistDetailsResponse/GetListOfAllPricelistDetailsResponse/Data.php'; @@ -913,6 +1212,7 @@ require_once __DIR__ . '/src/Endpoint/PriceLists/GetPricelistDetail.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/GetPricelistDetailResponse/GetPricelistDetailResponse.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/GetPricelistDetailResponse/GetPricelistDetailResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/PriceLists/GetPricelistDetailResponse/GetPricelistDetailResponse/Data/Pricelist.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/UpdatePricelist.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data.php'; @@ -924,69 +1224,109 @@ require_once __DIR__ . '/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithVat/ActionPrice.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithoutVat.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithoutVat/ActionPrice.php'; +require_once __DIR__ . '/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Prices.php'; +require_once __DIR__ . '/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Prices/PurchasePrice.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Sales.php'; require_once __DIR__ . '/src/Endpoint/PriceLists/UpdatePricelistResponse/UpdatePricelistResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddAlternativeProduct.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddAlternativeProductRequest/AddAlternativeProductRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddAlternativeProductRequest/AddAlternativeProductRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddAlternativeProductRequest/AddAlternativeProductRequest/Data/AlternativeProduct.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddAlternativeProductResponse/AddAlternativeProductResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddAlternativeProductResponse/AddAlternativeProductResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddAlternativeProductResponse/AddAlternativeProductResponse/Data/Items.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddItemToProductSet.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddItemToProductSetRequest/AddItemToProductSetRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddItemToProductSetRequest/AddItemToProductSetRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddItemToProductSetRequest/AddItemToProductSetRequest/Data/SetItem.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddItemToProductSetResponse/AddItemToProductSetResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddItemToProductSetResponse/AddItemToProductSetResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddItemToProductSetResponse/AddItemToProductSetResponse/Data/Items.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddRelatedProduct.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddRelatedProductRequest/AddRelatedProductRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddRelatedProductRequest/AddRelatedProductRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddRelatedProductRequest/AddRelatedProductRequest/Data/RelatedProduct.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddRelatedProductResponse/AddRelatedProductResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddRelatedProductResponse/AddRelatedProductResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/AddRelatedProductResponse/AddRelatedProductResponse/Data/Items.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateConsumptionTax.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateConsumptionTaxResponse/CreateConsumptionTaxResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateFilteringParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateFilteringParameterRequest/CreateFilteringParameterRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateFilteringParameterRequest/CreateFilteringParameterRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateFilteringParameterResponse/CreateFilteringParameterResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateFilteringParameterValue.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/PriceLists/UpdatePricelistResponse/UpdatePricelistResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/CreateProductAvailability.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityRequest/CreateProductAvailabilityRequest.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityRequest/CreateProductAvailabilityRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse/Data/Availability.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse/Data/Availability/GoogleAvailability.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/DeleteProductAvailability.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/DeleteProductAvailabilityResponse/DeleteProductAvailabilityResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilities.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item/GoogleAvailability.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/DefaultAvailabilities.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/UpdateProductAvailability.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityRequest/UpdateProductAvailabilityRequest.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityRequest/UpdateProductAvailabilityRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse/Data/Availability.php'; +require_once __DIR__ . '/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse/Data/Availability/GoogleAvailability.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/CreateProductGift.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/CreateProductGiftRequest/CreateProductGiftRequest.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/CreateProductGiftRequest/CreateProductGiftRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/CreateProductGiftResponse/CreateProductGiftResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/CreateProductGiftResponse/CreateProductGiftResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/GetListOfProductGifts.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/GetListOfProductGiftsResponse/GetListOfProductGiftsResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/GetListOfProductGiftsResponse/GetListOfProductGiftsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/SteGiftsToProduct.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes/Item.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/SteGiftsToProductResponse/SteGiftsToProductResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductGifts/SteGiftsToProductResponse/SteGiftsToProductResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/CreateProductImages.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images/Item.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/CreateProductImagesResponse/CreateProductImagesResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/CreateProductImagesResponse/CreateProductImagesResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/DeleteAllProductImagesInGallery.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/DeleteAllProductImagesInGalleryResponse/DeleteAllProductImagesInGalleryResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/DeleteAllProductImagesInGalleryResponse/DeleteAllProductImagesInGalleryResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/DeleteOneProductImage.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/DeleteOneProductImageResponse/DeleteOneProductImageResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/DeleteOneProductImageResponse/DeleteOneProductImageResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/GetListOfProductImages.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data.php'; +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/GetProductImagesUpdate.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images/Item.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data.php'; +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/UpdateProductImagesSource.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images/Item.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductImages/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLink.php'; +require_once __DIR__ . '/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkRequest/CreateRelatedFileLinkRequest.php'; +require_once __DIR__ . '/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkRequest/CreateRelatedFileLinkRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse/Data/RelatedFiles.php'; +require_once __DIR__ . '/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse/Data/RelatedFiles/Item.php'; +require_once __DIR__ . '/src/Endpoint/ProductRelatedFiles/DeleteOneProductRelatedFile.php'; +require_once __DIR__ . '/src/Endpoint/ProductRelatedFiles/DeleteOneProductRelatedFileResponse/DeleteOneProductRelatedFileResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductRelatedFiles/DeleteOneProductRelatedFileResponse/DeleteOneProductRelatedFileResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/AddItemToProductSet.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/AddItemToProductSetRequest/AddItemToProductSetRequest.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/AddItemToProductSetRequest/AddItemToProductSetRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/AddItemToProductSetRequest/AddItemToProductSetRequest/Data/SetItem.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/AddItemToProductSetResponse/AddItemToProductSetResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/AddItemToProductSetResponse/AddItemToProductSetResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/AddItemToProductSetResponse/AddItemToProductSetResponse/Data/Items.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/SetProductSetItems.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems/Item.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/SetProductSetItemsResponse/SetProductSetItemsResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/SetProductSetItemsResponse/SetProductSetItemsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/ProductSets/SetProductSetItemsResponse/SetProductSetItemsResponse/Data/Items.php'; require_once __DIR__ . '/src/Endpoint/Products/CreateProduct.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductCategory.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductCategoryRequest/CreateProductCategoryRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductCategoryRequest/CreateProductCategoryRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductCategoryResponse/CreateProductCategoryResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductFlag.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductFlagRequest/CreateProductFlagRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductFlagRequest/CreateProductFlagRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductGift.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductGiftRequest/CreateProductGiftRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductGiftRequest/CreateProductGiftRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductGiftResponse/CreateProductGiftResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductGiftResponse/CreateProductGiftResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductImages.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductImagesResponse/CreateProductImagesResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateProductImagesResponse/CreateProductImagesResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Products/CreateProductRequest/CreateProductRequest.php'; require_once __DIR__ . '/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/CategoryGuids.php'; @@ -1002,208 +1342,42 @@ require_once __DIR__ . '/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/SurchargeParameters.php'; require_once __DIR__ . '/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants.php'; require_once __DIR__ . '/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item.php'; +require_once __DIR__ . '/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/OssVatLevels.php'; +require_once __DIR__ . '/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/OssVatLevels/Item.php'; require_once __DIR__ . '/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/Parameters.php'; require_once __DIR__ . '/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/Parameters/Item.php'; require_once __DIR__ . '/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/StocksLocations.php'; require_once __DIR__ . '/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/StocksLocations/Item.php'; require_once __DIR__ . '/src/Endpoint/Products/CreateProductResponse/CreateProductResponse.php'; require_once __DIR__ . '/src/Endpoint/Products/CreateProductResponse/CreateProductResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterValue.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateVariantParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateVariantParameterRequest/CreateVariantParameterRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateVariantParameterRequest/CreateVariantParameterRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateVariantParameterResponse/CreateVariantParameterResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateVariantParameterResponse/CreateVariantParameterResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateVariantParameterResponse/CreateVariantParameterResponse/Data/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateVariantParameterValue.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteAllProductImagesInGallery.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteAllProductImagesInGalleryResponse/DeleteAllProductImagesInGalleryResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteConsumptionTax.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteConsumptionTaxResponse/DeleteConsumptionTaxResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteFilteringParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteFilteringParameterResponse/DeleteFilteringParameterResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteFilteringParameterValue.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteFilteringParameterValueResponse/DeleteFilteringParameterValueResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteOneProductImage.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteOneProductImageResponse/DeleteOneProductImageResponse.php'; require_once __DIR__ . '/src/Endpoint/Products/DeleteProduct.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteProductCategory.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteProductCategoryResponse/DeleteProductCategoryResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteProductFlag.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteProductFlagResponse/DeleteProductFlagResponse.php'; require_once __DIR__ . '/src/Endpoint/Products/DeleteProductResponse/DeleteProductResponse.php'; +require_once __DIR__ . '/src/Endpoint/Products/DeleteProductResponse/DeleteProductResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Products/DeleteProductVariant.php'; require_once __DIR__ . '/src/Endpoint/Products/DeleteProductVariantResponse/DeleteProductVariantResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteSurchargeParameterByIndex.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteSurchargeParameterByIndexResponse/DeleteSurchargeParameterByIndexResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteSurchargeParameterValue.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteSurchargeParameterValueResponse/DeleteSurchargeParameterValueResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteVariantParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteVariantParameterResponse/DeleteVariantParameterResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteVariantParameterValue.php'; -require_once __DIR__ . '/src/Endpoint/Products/DeleteVariantParameterValueResponse/DeleteVariantParameterValueResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetDetailOfFilteringParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetDetailOfSurchargeParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetDetailOfVariantParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/Products/DeleteProductVariantResponse/DeleteProductVariantResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Products/GetLastProductChanges.php'; require_once __DIR__ . '/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse.php'; require_once __DIR__ . '/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse/Data/Changes.php'; require_once __DIR__ . '/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse/Data/Changes/Item.php'; require_once __DIR__ . '/src/Endpoint/Products/GetListOfAllProducts.php'; +require_once __DIR__ . '/src/Endpoint/Products/GetListOfAllProductsAndPricelistPrices.php'; +require_once __DIR__ . '/src/Endpoint/Products/GetListOfAllProductsAndPricelistPricesResponse/GetListOfAllProductsAndPricelistPricesResponse.php'; +require_once __DIR__ . '/src/Endpoint/Products/GetListOfAllProductsAndPricelistPricesResponse/GetListOfAllProductsAndPricelistPricesResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Products/GetListOfAllProductsResponse/GetListOfAllProductsResponse.php'; require_once __DIR__ . '/src/Endpoint/Products/GetListOfAllProductsResponse/GetListOfAllProductsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfConsumptionTaxes.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data/ConsumptionTaxes.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfFilteringParameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfParametricCategories.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item/Parameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductAlternativeProducts.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data/Items.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductCategories.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse/Data/Categories.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductGifts.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductGiftsResponse/GetListOfProductGiftsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductGiftsResponse/GetListOfProductGiftsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductImages.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductRelatedProducts.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data/Items.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductUnits.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductWarranties.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties/Item.php'; require_once __DIR__ . '/src/Endpoint/Products/GetListOfProducts.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsAvailabilities.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item/GoogleAvailability.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/DefaultAvailabilities.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsFlags.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsMeasureUnits.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsOrderInCategory.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts/Item.php'; require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse.php'; require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products.php'; require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item.php'; 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/GetListOfProductsReviews.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item/Reaction.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfRecyclingFeeCategories.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data/RecyclingFeeCategories.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfSurchargeParameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfVariantParameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetParametricCategoryDetail.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory/Parameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetProductCategoryDetail.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetProductCategoryDetailResponse/GetProductCategoryDetailResponse.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'; require_once __DIR__ . '/src/Endpoint/Products/GetProductDetailResponse/GetProductDetailResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetProductImagesUpdate.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images.php'; -require_once __DIR__ . '/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item.php'; require_once __DIR__ . '/src/Endpoint/Products/ProductBatchUpdate.php'; require_once __DIR__ . '/src/Endpoint/Products/ProductBatchUpdateRequest/ProductBatchUpdateRequest.php'; require_once __DIR__ . '/src/Endpoint/Products/ProductBatchUpdateResponse/ProductBatchUpdateResponse.php'; @@ -1213,147 +1387,15 @@ require_once __DIR__ . '/src/Endpoint/Products/ProductCopyRequest/ProductCopyRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Products/ProductCopyRequest/ProductCopyRequest/Data/CopyProperties.php'; require_once __DIR__ . '/src/Endpoint/Products/ProductCopyResponse/ProductCopyResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetAlternativeProducts.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetAlternativeProductsResponse/SetAlternativeProductsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data/Items.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetProductSetItems.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetProductSetItemsResponse/SetProductSetItemsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetProductSetItemsResponse/SetProductSetItemsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetProductSetItemsResponse/SetProductSetItemsResponse/Data/Items.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetRelatedProducts.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetRelatedProductsResponse/SetRelatedProductsResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetRelatedProductsResponse/SetRelatedProductsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/SetRelatedProductsResponse/SetRelatedProductsResponse/Data/Items.php'; -require_once __DIR__ . '/src/Endpoint/Products/SteGiftsToProduct.php'; -require_once __DIR__ . '/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes.php'; -require_once __DIR__ . '/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/SteGiftsToProductResponse/SteGiftsToProductResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/SteGiftsToProductResponse/SteGiftsToProductResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateConsumptionTax.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateConsumptionTaxResponse/UpdateConsumptionTaxResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateFilteringParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateFilteringParameterValue.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/Products/UnlinkAllProductRelatedFiles.php'; +require_once __DIR__ . '/src/Endpoint/Products/UnlinkAllProductRelatedFilesResponse/UnlinkAllProductRelatedFilesResponse.php'; +require_once __DIR__ . '/src/Endpoint/Products/UnlinkAllProductRelatedFilesResponse/UnlinkAllProductRelatedFilesResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Products/UpdateProduct.php'; require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCode.php'; require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/CategoryGuids.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/DescriptiveParameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/DescriptiveParameters/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/FilteringParameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/FilteringParameters/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/FilteringParameters/Item/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Flags.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Flags/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/RelatedVideos.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/RelatedVideos/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/SurchargeParameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/Parameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/Parameters/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/StocksLocations.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/StocksLocations/Item.php'; require_once __DIR__ . '/src/Endpoint/Products/UpdateProductByCodeResponse/UpdateProductByCodeResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductCategory.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductCategoryBatch.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductCategoryBatchRequest/UpdateProductCategoryBatchRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductCategoryBatchResponse/UpdateProductCategoryBatchResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductCategoryBatchResponse/UpdateProductCategoryBatchResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductCategoryRequest/UpdateProductCategoryRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductCategoryRequest/UpdateProductCategoryRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductCategoryResponse/UpdateProductCategoryResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductFlag.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductFlagRequest/UpdateProductFlagRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductFlagRequest/UpdateProductFlagRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductImagesSource.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductOrderInCategory.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductOrderInCategoryResponse/UpdateProductOrderInCategoryResponse.php'; require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/CategoryGuids.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/DescriptiveParameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/DescriptiveParameters/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/FilteringParameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/FilteringParameters/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/FilteringParameters/Item/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Flags.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Flags/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/RelatedVideos.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/RelatedVideos/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/SurchargeParameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/Parameters.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/Parameters/Item.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/StocksLocations.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/StocksLocations/Item.php'; require_once __DIR__ . '/src/Endpoint/Products/UpdateProductResponse/UpdateProductResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateSurchargeParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data/SurchargeParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateSurchargeParameterValue.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateVariantParameter.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateVariantParameterRequest/UpdateVariantParameterRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateVariantParameterRequest/UpdateVariantParameterRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateVariantParameterResponse/UpdateVariantParameterResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data/Values.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateVariantParameterValue.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/Products/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data/Values.php'; require_once __DIR__ . '/src/Endpoint/ProformaInvoices/DownloadProformaInvoicePdf.php'; require_once __DIR__ . '/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChanges.php'; require_once __DIR__ . '/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChangesResponse/GetLastProformaInvoiceChangesResponse.php'; @@ -1371,6 +1413,18 @@ require_once __DIR__ . '/src/Endpoint/ProformaInvoices/GetProformaInvoiceDetail.php'; require_once __DIR__ . '/src/Endpoint/ProformaInvoices/GetProformaInvoiceDetailResponse/GetProformaInvoiceDetailResponse.php'; require_once __DIR__ . '/src/Endpoint/ProformaInvoices/GetProformaInvoiceDetailResponse/GetProformaInvoiceDetailResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Project/GetProjectDomainList.php'; +require_once __DIR__ . '/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse.php'; +require_once __DIR__ . '/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse/Data/Domains.php'; +require_once __DIR__ . '/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse/Data/Domains/Item.php'; +require_once __DIR__ . '/src/Endpoint/Project/GetProjectSalesChannels.php'; +require_once __DIR__ . '/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse.php'; +require_once __DIR__ . '/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels.php'; +require_once __DIR__ . '/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels/Item.php'; +require_once __DIR__ . '/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels/Item/Currencies.php'; +require_once __DIR__ . '/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels/Item/Languages.php'; require_once __DIR__ . '/src/Endpoint/ProofPayments/CreateProofPayment.php'; require_once __DIR__ . '/src/Endpoint/ProofPayments/CreateProofPaymentByOrderCode.php'; require_once __DIR__ . '/src/Endpoint/ProofPayments/CreateProofPaymentByOrderCodeResponse/CreateProofPaymentByOrderCodeResponse.php'; @@ -1384,7 +1438,9 @@ require_once __DIR__ . '/src/Endpoint/ProofPayments/CreateProofPaymentResponse/CreateProofPaymentResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/ProofPayments/DeleteProofPayment.php'; require_once __DIR__ . '/src/Endpoint/ProofPayments/DeleteProofPaymentResponse/DeleteProofPaymentResponse.php'; +require_once __DIR__ . '/src/Endpoint/ProofPayments/DeleteProofPaymentResponse/DeleteProofPaymentResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/ProofPayments/DownloadProofOfPaymentPdf.php'; +require_once __DIR__ . '/src/Endpoint/ProofPayments/DownloadProofPaymentAsIsdoc.php'; require_once __DIR__ . '/src/Endpoint/ProofPayments/GetLastProofPaymentsChanges.php'; require_once __DIR__ . '/src/Endpoint/ProofPayments/GetLastProofPaymentsChangesResponse/GetLastProofPaymentsChangesResponse.php'; require_once __DIR__ . '/src/Endpoint/ProofPayments/GetLastProofPaymentsChangesResponse/GetLastProofPaymentsChangesResponse/Data.php'; @@ -1435,6 +1491,7 @@ require_once __DIR__ . '/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountResponse/CreateQuantityDiscountResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscount.php'; require_once __DIR__ . '/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscountResponse/DeleteQuantityDiscountResponse.php'; +require_once __DIR__ . '/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscountResponse/DeleteQuantityDiscountResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/QuantityDiscounts/GetDetailOfQuantityDiscounts.php'; require_once __DIR__ . '/src/Endpoint/QuantityDiscounts/GetDetailOfQuantityDiscountsResponse/GetDetailOfQuantityDiscountsResponse.php'; require_once __DIR__ . '/src/Endpoint/QuantityDiscounts/GetDetailOfQuantityDiscountsResponse/GetDetailOfQuantityDiscountsResponse/Data.php'; @@ -1461,6 +1518,41 @@ require_once __DIR__ . '/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Targeting/ProductGuids.php'; require_once __DIR__ . '/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountResponse/UpdateQuantityDiscountResponse.php'; require_once __DIR__ . '/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountResponse/UpdateQuantityDiscountResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategories.php'; +require_once __DIR__ . '/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse.php'; +require_once __DIR__ . '/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data/RecyclingFeeCategories.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/AddRelatedProduct.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/AddRelatedProductRequest/AddRelatedProductRequest.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/AddRelatedProductRequest/AddRelatedProductRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/AddRelatedProductRequest/AddRelatedProductRequest/Data/RelatedProduct.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/AddRelatedProductResponse/AddRelatedProductResponse.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/AddRelatedProductResponse/AddRelatedProductResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/AddRelatedProductResponse/AddRelatedProductResponse/Data/Items.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/GetListOfProductRelatedProducts.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data/Items.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/SetRelatedProducts.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts/Item.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/SetRelatedProductsResponse/SetRelatedProductsResponse.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/SetRelatedProductsResponse/SetRelatedProductsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/RelatedProducts/SetRelatedProductsResponse/SetRelatedProductsResponse/Data/Items.php'; +require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfEshopReviews.php'; +require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse.php'; +require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data/Reviews.php'; +require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data/Reviews/Item.php'; +require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data/Reviews/Item/Reaction.php'; +require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviews.php'; +require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse.php'; +require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews.php'; +require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item.php'; +require_once __DIR__ . '/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item/Reaction.php'; require_once __DIR__ . '/src/Endpoint/ShippingMethods/CreateShippingMethod.php'; require_once __DIR__ . '/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest.php'; require_once __DIR__ . '/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest/Data1.php'; @@ -1523,16 +1615,59 @@ require_once __DIR__ . '/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/ItemWithQuantity.php'; require_once __DIR__ . '/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/ItemWithRealStock.php'; require_once __DIR__ . '/src/Endpoint/Stocks/UpdateQuantityInStockResponse/UpdateQuantityInStockResponse.php'; +require_once __DIR__ . '/src/Endpoint/Stocks/UpdateQuantityInStockResponse/UpdateQuantityInStockResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Suppliers/GetListOfSuppliers.php'; require_once __DIR__ . '/src/Endpoint/Suppliers/GetListOfSuppliersResponse/GetListOfSuppliersResponse.php'; require_once __DIR__ . '/src/Endpoint/Suppliers/GetListOfSuppliersResponse/GetListOfSuppliersResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Suppliers/GetListOfSuppliersResponse/GetListOfSuppliersResponse/Data/Suppliers.php'; -require_once __DIR__ . '/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpoints.php'; -require_once __DIR__ . '/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse.php'; -require_once __DIR__ . '/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data.php'; -require_once __DIR__ . '/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints.php'; -require_once __DIR__ . '/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item.php'; -require_once __DIR__ . '/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item/Group.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameter.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values/Item.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter/Values.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValue.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues/Item.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterByIndex.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterByIndexResponse/DeleteSurchargeParameterByIndexResponse.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterByIndexResponse/DeleteSurchargeParameterByIndexResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterValue.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterValueResponse/DeleteSurchargeParameterValueResponse.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterValueResponse/DeleteSurchargeParameterValueResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameter.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter/Values.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/GetListOfSurchargeParameters.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item/Values.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/UpdateSurchargeParameter.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data/SurchargeParameter.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValue.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter.php'; +require_once __DIR__ . '/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php'; require_once __DIR__ . '/src/Endpoint/Templates/CreateAndEditHtmlCodes.php'; require_once __DIR__ . '/src/Endpoint/Templates/CreateAndEditHtmlCodesRequest/CreateAndEditHtmlCodesRequest.php'; require_once __DIR__ . '/src/Endpoint/Templates/CreateAndEditHtmlCodesRequest/CreateAndEditHtmlCodesRequest/Data.php'; @@ -1544,11 +1679,17 @@ require_once __DIR__ . '/src/Endpoint/Templates/CreateAndEditHtmlCodesResponse/CreateAndEditHtmlCodesResponse/Data/Snippets/Item.php'; require_once __DIR__ . '/src/Endpoint/Templates/DeleteHtmlCode.php'; require_once __DIR__ . '/src/Endpoint/Templates/DeleteHtmlCodeResponse/DeleteHtmlCodeResponse.php'; +require_once __DIR__ . '/src/Endpoint/Templates/DeleteHtmlCodeResponse/DeleteHtmlCodeResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Templates/GetListingOfHtmlCodes.php'; require_once __DIR__ . '/src/Endpoint/Templates/GetListingOfHtmlCodesResponse/GetListingOfHtmlCodesResponse.php'; require_once __DIR__ . '/src/Endpoint/Templates/GetListingOfHtmlCodesResponse/GetListingOfHtmlCodesResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Templates/GetListingOfHtmlCodesResponse/GetListingOfHtmlCodesResponse/Data/Snippets.php'; require_once __DIR__ . '/src/Endpoint/Templates/GetListingOfHtmlCodesResponse/GetListingOfHtmlCodesResponse/Data/Snippets/Item.php'; +require_once __DIR__ . '/src/Endpoint/Units/GetListOfProductUnits.php'; +require_once __DIR__ . '/src/Endpoint/Units/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse.php'; +require_once __DIR__ . '/src/Endpoint/Units/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Units/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units.php'; +require_once __DIR__ . '/src/Endpoint/Units/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units/Item.php'; require_once __DIR__ . '/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmail.php'; require_once __DIR__ . '/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailRequest/CreateUnsubscribedEmailRequest.php'; require_once __DIR__ . '/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailRequest/CreateUnsubscribedEmailRequest/Data.php'; @@ -1560,8 +1701,61 @@ require_once __DIR__ . '/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmailsResponse/GetListingOfUnsubscribedEmailsResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmailsResponse/GetListingOfUnsubscribedEmailsResponse/Data/UnsubscribedEmails.php'; require_once __DIR__ . '/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmailsResponse/GetListingOfUnsubscribedEmailsResponse/Data/UnsubscribedEmails/Item.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/CreateVariantParameter.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/CreateVariantParameterRequest/CreateVariantParameterRequest.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/CreateVariantParameterRequest/CreateVariantParameterRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/CreateVariantParameterResponse/CreateVariantParameterResponse.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/CreateVariantParameterResponse/CreateVariantParameterResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/CreateVariantParameterResponse/CreateVariantParameterResponse/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/CreateVariantParameterValue.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/DeleteVariantParameter.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/DeleteVariantParameterResponse/DeleteVariantParameterResponse.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/DeleteVariantParameterResponse/DeleteVariantParameterResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/DeleteVariantParameterValue.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/DeleteVariantParameterValueResponse/DeleteVariantParameterValueResponse.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/DeleteVariantParameterValueResponse/DeleteVariantParameterValueResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/GetDetailOfVariantParameter.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/GetListOfVariantParameters.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item/Values.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/UpdateVariantParameter.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/UpdateVariantParameterRequest/UpdateVariantParameterRequest.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/UpdateVariantParameterRequest/UpdateVariantParameterRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/UpdateVariantParameterResponse/UpdateVariantParameterResponse.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/UpdateVariantParameterValue.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest/Data.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/VariantParameters/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data/Values.php'; +require_once __DIR__ . '/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscounts.php'; +require_once __DIR__ . '/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse.php'; +require_once __DIR__ . '/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts.php'; +require_once __DIR__ . '/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts/Item.php'; +require_once __DIR__ . '/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts/Item/CustomerGroups.php'; +require_once __DIR__ . '/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts/Item/CustomerGroups/Item.php'; +require_once __DIR__ . '/src/Endpoint/Warranties/GetListOfProductWarranties.php'; +require_once __DIR__ . '/src/Endpoint/Warranties/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse.php'; +require_once __DIR__ . '/src/Endpoint/Warranties/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data.php'; +require_once __DIR__ . '/src/Endpoint/Warranties/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties.php'; +require_once __DIR__ . '/src/Endpoint/Warranties/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties/Item.php'; require_once __DIR__ . '/src/Endpoint/Webhooks/DeleteRegisteredWebhook.php'; require_once __DIR__ . '/src/Endpoint/Webhooks/DeleteRegisteredWebhookResponse/DeleteRegisteredWebhookResponse.php'; +require_once __DIR__ . '/src/Endpoint/Webhooks/DeleteRegisteredWebhookResponse/DeleteRegisteredWebhookResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/Webhooks/GenerateWebhookSignatureKey.php'; require_once __DIR__ . '/src/Endpoint/Webhooks/GenerateWebhookSignatureKeyResponse/GenerateWebhookSignatureKeyResponse.php'; require_once __DIR__ . '/src/Endpoint/Webhooks/GenerateWebhookSignatureKeyResponse/GenerateWebhookSignatureKeyResponse/Data.php'; @@ -1587,6 +1781,7 @@ require_once __DIR__ . '/src/Endpoint/Webhooks/UpdateExistingWebhookRequest/UpdateExistingWebhookRequest.php'; require_once __DIR__ . '/src/Endpoint/Webhooks/UpdateExistingWebhookRequest/UpdateExistingWebhookRequest/Data.php'; require_once __DIR__ . '/src/Endpoint/Webhooks/UpdateExistingWebhookResponse/UpdateExistingWebhookResponse.php'; +require_once __DIR__ . '/src/Endpoint/Webhooks/UpdateExistingWebhookResponse/UpdateExistingWebhookResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/XYDiscounts/CreateXYDiscount.php'; require_once __DIR__ . '/src/Endpoint/XYDiscounts/CreateXYDiscountRequest/CreateXYDiscountRequest.php'; require_once __DIR__ . '/src/Endpoint/XYDiscounts/CreateXYDiscountRequest/CreateXYDiscountRequest/Data.php'; @@ -1595,6 +1790,7 @@ require_once __DIR__ . '/src/Endpoint/XYDiscounts/CreateXYDiscountResponse/CreateXYDiscountResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/XYDiscounts/DeleteXYDiscount.php'; require_once __DIR__ . '/src/Endpoint/XYDiscounts/DeleteXYDiscountResponse/DeleteXYDiscountResponse.php'; +require_once __DIR__ . '/src/Endpoint/XYDiscounts/DeleteXYDiscountResponse/DeleteXYDiscountResponse/Data.php'; require_once __DIR__ . '/src/Endpoint/XYDiscounts/GetDetailOfXYDiscounts.php'; require_once __DIR__ . '/src/Endpoint/XYDiscounts/GetDetailOfXYDiscountsResponse/GetDetailOfXYDiscountsResponse.php'; require_once __DIR__ . '/src/Endpoint/XYDiscounts/GetDetailOfXYDiscountsResponse/GetDetailOfXYDiscountsResponse/Data.php'; diff --git a/phpstan-baseline.neon b/phpstan-baseline.neon old mode 100644 new mode 100755 diff --git a/phpstan.neon.dist b/phpstan.neon.dist old mode 100644 new mode 100755 diff --git a/phpunit.xml b/phpunit.xml old mode 100644 new mode 100755 diff --git a/ruleset.xml b/ruleset.xml old mode 100644 new mode 100755 diff --git a/src/Async/AsyncEndpoint.php b/src/Async/AsyncEndpoint.php old mode 100644 new mode 100755 diff --git a/src/Async/JobFailedException.php b/src/Async/JobFailedException.php old mode 100644 new mode 100755 diff --git a/src/Async/JobIsNotFinishedException.php b/src/Async/JobIsNotFinishedException.php old mode 100644 new mode 100755 diff --git a/src/Async/JobNotFoundException.php b/src/Async/JobNotFoundException.php old mode 100644 new mode 100755 diff --git a/src/Async/JobResultProcessor.php b/src/Async/JobResultProcessor.php old mode 100644 new mode 100755 index 32924b2..548b21e --- a/src/Async/JobResultProcessor.php +++ b/src/Async/JobResultProcessor.php @@ -3,7 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Async; use Generator; -use Shoptet\Api\Sdk\Php\Endpoint\JobEndpoints\GetJobDetailResponse\GetJobDetailResponse; +use Shoptet\Api\Sdk\Php\Endpoint\Jobs\GetJobDetailResponse\GetJobDetailResponse; use Shoptet\Api\Sdk\Php\Exception\LogicException; use Shoptet\Api\Sdk\Php\Exception\RuntimeException; use Shoptet\Api\Sdk\Php\Factory\Endpoint\EndpointFactory; diff --git a/src/Async/JobStatuses.php b/src/Async/JobStatuses.php old mode 100644 new mode 100755 diff --git a/src/Async/SnapshotEndpoint.php b/src/Async/SnapshotEndpoint.php old mode 100644 new mode 100755 diff --git a/src/Async/SnapshotResultData.php b/src/Async/SnapshotResultData.php old mode 100644 new mode 100755 index ab1e2ed..5f3b499 --- a/src/Async/SnapshotResultData.php +++ b/src/Async/SnapshotResultData.php @@ -6,7 +6,7 @@ use Generator; use IteratorAggregate; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Endpoint\JobEndpoints\GetJobDetailResponse\GetJobDetailResponse; +use Shoptet\Api\Sdk\Php\Endpoint\Jobs\GetJobDetailResponse\GetJobDetailResponse; use Shoptet\Api\Sdk\Php\Exception\LogicException; /** diff --git a/src/Authorization/AuthorizationFacade.php b/src/Authorization/AuthorizationFacade.php old mode 100644 new mode 100755 diff --git a/src/Authorization/MaximumTokenReachedException.php b/src/Authorization/MaximumTokenReachedException.php old mode 100644 new mode 100755 diff --git a/src/Authorization/OAuth.php b/src/Authorization/OAuth.php old mode 100644 new mode 100755 diff --git a/src/Authorization/ObtainAccessTokenFailedException.php b/src/Authorization/ObtainAccessTokenFailedException.php old mode 100644 new mode 100755 diff --git a/src/Authorization/Token/BearerToken.php b/src/Authorization/Token/BearerToken.php old mode 100644 new mode 100755 diff --git a/src/Authorization/Token/FileTokenStorage.php b/src/Authorization/Token/FileTokenStorage.php old mode 100644 new mode 100755 diff --git a/src/Authorization/Token/PrivateApiToken.php b/src/Authorization/Token/PrivateApiToken.php old mode 100644 new mode 100755 diff --git a/src/Authorization/Token/PublicApiToken.php b/src/Authorization/Token/PublicApiToken.php old mode 100644 new mode 100755 diff --git a/src/Authorization/Token/Token.php b/src/Authorization/Token/Token.php old mode 100644 new mode 100755 diff --git a/src/Authorization/Token/TokenStorage.php b/src/Authorization/Token/TokenStorage.php old mode 100644 new mode 100755 diff --git a/src/Authorization/TokenHasExpiredException.php b/src/Authorization/TokenHasExpiredException.php old mode 100644 new mode 100755 diff --git a/src/Authorization/TokenNotFoundException.php b/src/Authorization/TokenNotFoundException.php old mode 100644 new mode 100755 diff --git a/src/Authorization/UnauthorizedException.php b/src/Authorization/UnauthorizedException.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ActionPrice.php b/src/Component/Entity/ActionPrice.php old mode 100644 new mode 100755 index 6761acc..c7cae0f --- a/src/Component/Entity/ActionPrice.php +++ b/src/Component/Entity/ActionPrice.php @@ -2,14 +2,14 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; class ActionPrice extends Entity { protected TypePrice $price; - protected TypeDate $fromDate; - protected TypeDate $toDate; + protected TypeDateNullable $fromDate; + protected TypeDateNullable $toDate; public function getPrice(): TypePrice { @@ -22,23 +22,23 @@ public function setPrice(TypePrice $price): static return $this; } - public function getFromDate(): TypeDate + public function getFromDate(): TypeDateNullable { return $this->fromDate; } - public function setFromDate(TypeDate $fromDate): static + public function setFromDate(TypeDateNullable $fromDate): static { $this->fromDate = $fromDate; return $this; } - public function getToDate(): TypeDate + public function getToDate(): TypeDateNullable { return $this->toDate; } - public function setToDate(TypeDate $toDate): static + public function setToDate(TypeDateNullable $toDate): static { $this->toDate = $toDate; return $this; diff --git a/src/Component/Entity/Address.php b/src/Component/Entity/Address.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Article.php b/src/Component/Entity/Article.php old mode 100644 new mode 100755 index 61a7535..513f779 --- a/src/Component/Entity/Article.php +++ b/src/Component/Entity/Article.php @@ -4,7 +4,7 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Article\SectionIds; use Shoptet\Api\Sdk\Php\Component\Entity\Article\Urls; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Article extends Entity { @@ -12,7 +12,7 @@ class Article extends Entity protected ?float $defaultSectionId; protected ?SectionIds $sectionIds; protected string $title; - protected string $language; + protected ?string $language; protected ?string $indexName; protected ?string $url; protected ?Urls $urls; @@ -23,8 +23,8 @@ class Article extends Entity /** @deprecated */ protected ?string $metaKeywords; protected ?string $metaDescription; - protected TypeDateTime $publishDate; - protected TypeDateTime $changeDate; + protected TypeDateTimeNullable $publishDate; + protected TypeDateTimeNullable $changeDate; protected bool $visible; protected string $access; protected ?string $image; @@ -74,12 +74,12 @@ public function setTitle(string $title): static return $this; } - public function getLanguage(): string + public function getLanguage(): ?string { return $this->language; } - public function setLanguage(string $language): static + public function setLanguage(?string $language): static { $this->language = $language; return $this; @@ -179,23 +179,23 @@ public function setMetaDescription(?string $metaDescription): static return $this; } - public function getPublishDate(): TypeDateTime + public function getPublishDate(): TypeDateTimeNullable { return $this->publishDate; } - public function setPublishDate(TypeDateTime $publishDate): static + public function setPublishDate(TypeDateTimeNullable $publishDate): static { $this->publishDate = $publishDate; return $this; } - public function getChangeDate(): TypeDateTime + public function getChangeDate(): TypeDateTimeNullable { return $this->changeDate; } - public function setChangeDate(TypeDateTime $changeDate): static + public function setChangeDate(TypeDateTimeNullable $changeDate): static { $this->changeDate = $changeDate; return $this; diff --git a/src/Component/Entity/Article/SectionIds.php b/src/Component/Entity/Article/SectionIds.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Article/Urls.php b/src/Component/Entity/Article/Urls.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ArticleList.php b/src/Component/Entity/ArticleList.php old mode 100644 new mode 100755 index 3ea4b4b..4b36d3d --- a/src/Component/Entity/ArticleList.php +++ b/src/Component/Entity/ArticleList.php @@ -2,7 +2,7 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class ArticleList extends Entity { @@ -11,7 +11,7 @@ class ArticleList extends Entity protected ?float $sectionId; protected string $title; protected ?string $url; - protected TypeDateTime $publishDate; + protected TypeDateTimeNullable $publishDate; protected bool $visible; protected ?string $image; @@ -70,12 +70,12 @@ public function setUrl(?string $url): static return $this; } - public function getPublishDate(): TypeDateTime + public function getPublishDate(): TypeDateTimeNullable { return $this->publishDate; } - public function setPublishDate(TypeDateTime $publishDate): static + public function setPublishDate(TypeDateTimeNullable $publishDate): static { $this->publishDate = $publishDate; return $this; diff --git a/src/Component/Entity/ArticleSection.php b/src/Component/Entity/ArticleSection.php old mode 100644 new mode 100755 index 29a2070..7bd4176 --- a/src/Component/Entity/ArticleSection.php +++ b/src/Component/Entity/ArticleSection.php @@ -7,7 +7,7 @@ class ArticleSection extends Entity protected float $id; protected ?float $parentId; protected string $title; - protected string $language; + protected ?string $language; protected ?string $indexName; protected ?string $url; protected ?string $description; @@ -61,12 +61,12 @@ public function setTitle(string $title): static return $this; } - public function getLanguage(): string + public function getLanguage(): ?string { return $this->language; } - public function setLanguage(string $language): static + public function setLanguage(?string $language): static { $this->language = $language; return $this; diff --git a/src/Component/Entity/ArticleSectionList.php b/src/Component/Entity/ArticleSectionList.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ArticleSnapshot.php b/src/Component/Entity/ArticleSnapshot.php new file mode 100755 index 0000000..43306c9 --- /dev/null +++ b/src/Component/Entity/ArticleSnapshot.php @@ -0,0 +1,7 @@ +name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getIndexName(): ?string + { + return $this->indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getBrandWeb(): ?string + { + return $this->brandWeb; + } + + public function setBrandWeb(?string $brandWeb): static + { + $this->brandWeb = $brandWeb; + return $this; + } + + public function getPostalAddress(): ?string + { + return $this->postalAddress; + } + + public function setPostalAddress(?string $postalAddress): static + { + $this->postalAddress = $postalAddress; + return $this; + } + + public function getContactEmail(): ?string + { + return $this->contactEmail; + } + + public function setContactEmail(?string $contactEmail): static + { + $this->contactEmail = $contactEmail; + return $this; + } + + public function getEuropeanResellerPostalAddress(): ?string + { + return $this->europeanResellerPostalAddress; + } + + public function setEuropeanResellerPostalAddress(?string $europeanResellerPostalAddress): static + { + $this->europeanResellerPostalAddress = $europeanResellerPostalAddress; + return $this; + } + + public function getEuropeanResellerContactEmail(): ?string + { + return $this->europeanResellerContactEmail; + } + + public function setEuropeanResellerContactEmail(?string $europeanResellerContactEmail): static + { + $this->europeanResellerContactEmail = $europeanResellerContactEmail; + return $this; + } + + public function getManufacturingCompanyName(): ?string + { + return $this->manufacturingCompanyName; + } + + public function setManufacturingCompanyName(?string $manufacturingCompanyName): static + { + $this->manufacturingCompanyName = $manufacturingCompanyName; + return $this; + } + + public function getEuropeanResellerManufacturingCompanyName(): ?string + { + return $this->europeanResellerManufacturingCompanyName; + } + + public function setEuropeanResellerManufacturingCompanyName( + ?string $europeanResellerManufacturingCompanyName, + ): static { + $this->europeanResellerManufacturingCompanyName = $europeanResellerManufacturingCompanyName; + return $this; + } + + public function getShowInCategoriesMenu(): ?bool + { + return $this->showInCategoriesMenu; + } + + public function setShowInCategoriesMenu(?bool $showInCategoriesMenu): static + { + $this->showInCategoriesMenu = $showInCategoriesMenu; + return $this; + } + + public function getShowInBrandList(): ?bool + { + return $this->showInBrandList; + } + + public function setShowInBrandList(?bool $showInBrandList): static + { + $this->showInBrandList = $showInBrandList; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getMetaTitle(): ?string + { + return $this->metaTitle; + } + + public function setMetaTitle(?string $metaTitle): static + { + $this->metaTitle = $metaTitle; + return $this; + } + + public function getMetaDescription(): ?string + { + return $this->metaDescription; + } + + public function setMetaDescription(?string $metaDescription): static + { + $this->metaDescription = $metaDescription; + return $this; + } +} diff --git a/src/Component/Entity/BrandNamed.php b/src/Component/Entity/BrandNamed.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/CartPrice.php b/src/Component/Entity/CartPrice.php old mode 100644 new mode 100755 index 622c554..b5c4d57 --- a/src/Component/Entity/CartPrice.php +++ b/src/Component/Entity/CartPrice.php @@ -2,42 +2,42 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class CartPrice extends Entity { - protected TypePrice $withVat; - protected TypePrice $withoutVat; - protected TypePrice $vat; + protected TypePriceNullable $withVat; + protected TypePriceNullable $withoutVat; + protected TypePriceNullable $vat; - public function getWithVat(): TypePrice + public function getWithVat(): TypePriceNullable { return $this->withVat; } - public function setWithVat(TypePrice $withVat): static + public function setWithVat(TypePriceNullable $withVat): static { $this->withVat = $withVat; return $this; } - public function getWithoutVat(): TypePrice + public function getWithoutVat(): TypePriceNullable { return $this->withoutVat; } - public function setWithoutVat(TypePrice $withoutVat): static + public function setWithoutVat(TypePriceNullable $withoutVat): static { $this->withoutVat = $withoutVat; return $this; } - public function getVat(): TypePrice + public function getVat(): TypePriceNullable { return $this->vat; } - public function setVat(TypePrice $vat): static + public function setVat(TypePriceNullable $vat): static { $this->vat = $vat; return $this; diff --git a/src/Component/Entity/Category.php b/src/Component/Entity/Category.php old mode 100644 new mode 100755 index 019d0f2..05c3344 --- a/src/Component/Entity/Category.php +++ b/src/Component/Entity/Category.php @@ -3,18 +3,18 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Category\CatalogueMapping; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidNullable; class Category extends Entity { - protected ?TypeGuid $guid; + protected TypeGuidNullable $guid; protected string $name; protected ?string $image; protected ?string $description; protected ?string $secondDescription; protected string $indexName; protected string $url; - protected ?TypeGuid $parentGuid; + protected TypeGuidNullable $parentGuid; protected ?float $priority; protected ?string $menuTitle; protected ?string $title; @@ -26,12 +26,12 @@ class Category extends Entity protected ?string $productOrdering; protected CatalogueMapping $catalogueMapping; - public function getGuid(): ?TypeGuid + public function getGuid(): TypeGuidNullable { return $this->guid; } - public function setGuid(?TypeGuid $guid): static + public function setGuid(TypeGuidNullable $guid): static { $this->guid = $guid; return $this; @@ -103,12 +103,12 @@ public function setUrl(string $url): static return $this; } - public function getParentGuid(): ?TypeGuid + public function getParentGuid(): TypeGuidNullable { return $this->parentGuid; } - public function setParentGuid(?TypeGuid $parentGuid): static + public function setParentGuid(TypeGuidNullable $parentGuid): static { $this->parentGuid = $parentGuid; return $this; diff --git a/src/Component/Entity/Category/CatalogueMapping.php b/src/Component/Entity/Category/CatalogueMapping.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Category/CatalogueMapping/Item.php b/src/Component/Entity/Category/CatalogueMapping/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/CategoryBatchUpdate.php b/src/Component/Entity/CategoryBatchUpdate.php new file mode 100755 index 0000000..6c41add --- /dev/null +++ b/src/Component/Entity/CategoryBatchUpdate.php @@ -0,0 +1,19 @@ +language; + } + + public function setLanguage(?string $language): static + { + $this->language = $language; + return $this; + } +} diff --git a/src/Component/Entity/CategoryUpdate.php b/src/Component/Entity/CategoryUpdate.php new file mode 100755 index 0000000..ac9ccbf --- /dev/null +++ b/src/Component/Entity/CategoryUpdate.php @@ -0,0 +1,235 @@ +guid; + } + + public function setGuid(?TypeGuid $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): static + { + $this->name = $name; + return $this; + } + + public function getParentGuid(): ?TypeGuidNullable + { + return $this->parentGuid; + } + + public function setParentGuid(?TypeGuidNullable $parentGuid): static + { + $this->parentGuid = $parentGuid; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getSecondDescription(): ?string + { + return $this->secondDescription; + } + + public function setSecondDescription(?string $secondDescription): static + { + $this->secondDescription = $secondDescription; + return $this; + } + + /** + * @deprecated + */ + public function getImageName(): ?string + { + return $this->imageName; + } + + /** + * @deprecated + */ + public function setImageName(?string $imageName): static + { + $this->imageName = $imageName; + return $this; + } + + public function getSourceImageName(): ?TypeFilenameNullable + { + return $this->sourceImageName; + } + + public function setSourceImageName(?TypeFilenameNullable $sourceImageName): static + { + $this->sourceImageName = $sourceImageName; + return $this; + } + + public function getSortBefore(): ?TypeGuid + { + return $this->sortBefore; + } + + public function setSortBefore(?TypeGuid $sortBefore): static + { + $this->sortBefore = $sortBefore; + return $this; + } + + public function getSortAfter(): ?TypeGuid + { + return $this->sortAfter; + } + + public function setSortAfter(?TypeGuid $sortAfter): static + { + $this->sortAfter = $sortAfter; + return $this; + } + + public function getIndexName(): ?string + { + return $this->indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getMenuTitle(): ?string + { + return $this->menuTitle; + } + + public function setMenuTitle(?string $menuTitle): static + { + $this->menuTitle = $menuTitle; + return $this; + } + + public function getTitle(): ?string + { + return $this->title; + } + + public function setTitle(?string $title): static + { + $this->title = $title; + return $this; + } + + public function getMetaTagDescription(): ?string + { + return $this->metaTagDescription; + } + + public function setMetaTagDescription(?string $metaTagDescription): static + { + $this->metaTagDescription = $metaTagDescription; + return $this; + } + + public function getVisible(): ?bool + { + return $this->visible; + } + + public function setVisible(?bool $visible): static + { + $this->visible = $visible; + return $this; + } + + public function getCustomerVisibility(): ?string + { + return $this->customerVisibility; + } + + public function setCustomerVisibility(?string $customerVisibility): static + { + $this->customerVisibility = $customerVisibility; + return $this; + } + + public function getProductOrdering(): ?string + { + return $this->productOrdering; + } + + public function setProductOrdering(?string $productOrdering): static + { + $this->productOrdering = $productOrdering; + return $this; + } + + public function getSimilarProductsCategory(): ?TypeGuidNullable + { + return $this->similarProductsCategory; + } + + public function setSimilarProductsCategory(?TypeGuidNullable $similarProductsCategory): static + { + $this->similarProductsCategory = $similarProductsCategory; + return $this; + } + + public function getRelatedProductsCategory(): ?TypeGuidNullable + { + return $this->relatedProductsCategory; + } + + public function setRelatedProductsCategory(?TypeGuidNullable $relatedProductsCategory): static + { + $this->relatedProductsCategory = $relatedProductsCategory; + return $this; + } +} diff --git a/src/Component/Entity/ConsumptionTax.php b/src/Component/Entity/ConsumptionTax.php old mode 100644 new mode 100755 index f59dc4e..a009e55 --- a/src/Component/Entity/ConsumptionTax.php +++ b/src/Component/Entity/ConsumptionTax.php @@ -2,7 +2,7 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; class ConsumptionTax extends Entity @@ -12,8 +12,8 @@ class ConsumptionTax extends Entity protected TypePrice $price; protected string $currency; protected bool $isVisible; - protected TypeDateTime $created; - protected TypeDateTime $updated; + protected TypeDateTimeNullable $created; + protected TypeDateTimeNullable $updated; public function getId(): int { @@ -70,23 +70,23 @@ public function setIsVisible(bool $isVisible): static return $this; } - public function getCreated(): TypeDateTime + public function getCreated(): TypeDateTimeNullable { return $this->created; } - public function setCreated(TypeDateTime $created): static + public function setCreated(TypeDateTimeNullable $created): static { $this->created = $created; return $this; } - public function getUpdated(): TypeDateTime + public function getUpdated(): TypeDateTimeNullable { return $this->updated; } - public function setUpdated(TypeDateTime $updated): static + public function setUpdated(TypeDateTimeNullable $updated): static { $this->updated = $updated; return $this; diff --git a/src/Component/Entity/CreditNote.php b/src/Component/Entity/CreditNote.php old mode 100644 new mode 100755 index 57948be..1d43940 --- a/src/Component/Entity/CreditNote.php +++ b/src/Component/Entity/CreditNote.php @@ -3,8 +3,8 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\CreditNote\Items; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeightUnlimited; class CreditNote extends Entity @@ -14,20 +14,20 @@ class CreditNote extends Entity protected ?string $invoiceCode; protected ?string $orderCode; protected ?string $proofPaymentCode; - protected TypeDateTime $creationTime; - protected TypeDateTime $changeTime; - protected TypeDate $dueDate; - protected TypeDate $taxDate; + protected TypeDateTimeNullable $creationTime; + protected TypeDateTimeNullable $changeTime; + protected TypeDateNullable $dueDate; + protected TypeDateNullable $taxDate; protected float $varSymbol; protected ?int $constSymbol; protected ?float $specSymbol; protected ?bool $restocked; protected ?string $stockAmountChangeType; - protected ?TypeWeightUnlimited $weight; - protected ?TypeWeightUnlimited $completePackageWeight; - protected BillingMethod $billingMethod; + protected TypeWeightUnlimited $weight; + protected TypeWeightUnlimited $completePackageWeight; + protected ?BillingMethod $billingMethod; protected BillingAddress $billingAddress; - protected ?Address $deliveryAddress; + protected Address $deliveryAddress; protected bool $addressesEqual; protected Price $price; protected DocumentCustomer $customer; @@ -36,6 +36,7 @@ class CreditNote extends Entity protected ?string $documentRemark; protected bool $vatPayer; protected ?string $vatMode; + protected ?string $reasonRemark; public function getCode(): string { @@ -92,45 +93,45 @@ public function setProofPaymentCode(?string $proofPaymentCode): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; } - public function getDueDate(): TypeDate + public function getDueDate(): TypeDateNullable { return $this->dueDate; } - public function setDueDate(TypeDate $dueDate): static + public function setDueDate(TypeDateNullable $dueDate): static { $this->dueDate = $dueDate; return $this; } - public function getTaxDate(): TypeDate + public function getTaxDate(): TypeDateNullable { return $this->taxDate; } - public function setTaxDate(TypeDate $taxDate): static + public function setTaxDate(TypeDateNullable $taxDate): static { $this->taxDate = $taxDate; return $this; @@ -191,34 +192,34 @@ public function setStockAmountChangeType(?string $stockAmountChangeType): static return $this; } - public function getWeight(): ?TypeWeightUnlimited + public function getWeight(): TypeWeightUnlimited { return $this->weight; } - public function setWeight(?TypeWeightUnlimited $weight): static + public function setWeight(TypeWeightUnlimited $weight): static { $this->weight = $weight; return $this; } - public function getCompletePackageWeight(): ?TypeWeightUnlimited + public function getCompletePackageWeight(): TypeWeightUnlimited { return $this->completePackageWeight; } - public function setCompletePackageWeight(?TypeWeightUnlimited $completePackageWeight): static + public function setCompletePackageWeight(TypeWeightUnlimited $completePackageWeight): static { $this->completePackageWeight = $completePackageWeight; return $this; } - public function getBillingMethod(): BillingMethod + public function getBillingMethod(): ?BillingMethod { return $this->billingMethod; } - public function setBillingMethod(BillingMethod $billingMethod): static + public function setBillingMethod(?BillingMethod $billingMethod): static { $this->billingMethod = $billingMethod; return $this; @@ -235,12 +236,12 @@ public function setBillingAddress(BillingAddress $billingAddress): static return $this; } - public function getDeliveryAddress(): ?Address + public function getDeliveryAddress(): Address { return $this->deliveryAddress; } - public function setDeliveryAddress(?Address $deliveryAddress): static + public function setDeliveryAddress(Address $deliveryAddress): static { $this->deliveryAddress = $deliveryAddress; return $this; @@ -333,4 +334,15 @@ public function setVatMode(?string $vatMode): static $this->vatMode = $vatMode; return $this; } + + public function getReasonRemark(): ?string + { + return $this->reasonRemark; + } + + public function setReasonRemark(?string $reasonRemark): static + { + $this->reasonRemark = $reasonRemark; + return $this; + } } diff --git a/src/Component/Entity/CreditNote/Items.php b/src/Component/Entity/CreditNote/Items.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/CreditNoteSnapshot.php b/src/Component/Entity/CreditNoteSnapshot.php new file mode 100755 index 0000000..58a69ad --- /dev/null +++ b/src/Component/Entity/CreditNoteSnapshot.php @@ -0,0 +1,7 @@ +creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; @@ -127,12 +127,12 @@ public function setPriceRatio(TypePriceRatio $priceRatio): static return $this; } - public function getBirthDate(): TypeDate + public function getBirthDate(): TypeDateNullable { return $this->birthDate; } - public function setBirthDate(TypeDate $birthDate): static + public function setBirthDate(TypeDateNullable $birthDate): static { $this->birthDate = $birthDate; return $this; diff --git a/src/Component/Entity/Customer/Accounts.php b/src/Component/Entity/Customer/Accounts.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Customer/Accounts/Item.php b/src/Component/Entity/Customer/Accounts/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Customer/CustomerGroup.php b/src/Component/Entity/Customer/CustomerGroup.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Customer/DeliveryAddress.php b/src/Component/Entity/Customer/DeliveryAddress.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Customer/Remarks.php b/src/Component/Entity/Customer/Remarks.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Customer/Remarks/Item.php b/src/Component/Entity/Customer/Remarks/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/CustomerSnapshot.php b/src/Component/Entity/CustomerSnapshot.php new file mode 100755 index 0000000..bd526de --- /dev/null +++ b/src/Component/Entity/CustomerSnapshot.php @@ -0,0 +1,7 @@ +creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; @@ -85,12 +85,12 @@ public function setBillingAddress(BillingAddress $billingAddress): static return $this; } - public function getDeliveryAddress(): ?Address + public function getDeliveryAddress(): Address { return $this->deliveryAddress; } - public function setDeliveryAddress(?Address $deliveryAddress): static + public function setDeliveryAddress(Address $deliveryAddress): static { $this->deliveryAddress = $deliveryAddress; return $this; diff --git a/src/Component/Entity/DeliveryNote/Items.php b/src/Component/Entity/DeliveryNote/Items.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/DeliveryNoteItem.php b/src/Component/Entity/DeliveryNoteItem.php old mode 100644 new mode 100755 index a668518..6c1771a --- a/src/Component/Entity/DeliveryNoteItem.php +++ b/src/Component/Entity/DeliveryNoteItem.php @@ -2,7 +2,7 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmountNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeight; @@ -13,7 +13,7 @@ class DeliveryNoteItem extends Entity protected ?string $name; protected ?string $variantName; protected ?string $brand; - protected TypeAmount $amount; + protected TypeAmountNullable $amount; protected ?string $amountUnit; protected ?string $remark; protected ?TypeWeight $weight; @@ -76,12 +76,12 @@ public function setBrand(?string $brand): static return $this; } - public function getAmount(): TypeAmount + public function getAmount(): TypeAmountNullable { return $this->amount; } - public function setAmount(TypeAmount $amount): static + public function setAmount(TypeAmountNullable $amount): static { $this->amount = $amount; return $this; diff --git a/src/Component/Entity/DeliveryNoteSnapshot.php b/src/Component/Entity/DeliveryNoteSnapshot.php new file mode 100755 index 0000000..709cb74 --- /dev/null +++ b/src/Component/Entity/DeliveryNoteSnapshot.php @@ -0,0 +1,7 @@ +creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; @@ -59,12 +59,12 @@ public function setDiscountType(string $discountType): static return $this; } - public function getAmount(): TypePrice + public function getAmount(): TypePriceNullable { return $this->amount; } - public function setAmount(TypePrice $amount): static + public function setAmount(TypePriceNullable $amount): static { $this->amount = $amount; return $this; @@ -81,23 +81,23 @@ public function setRatio(?TypePriceRatio $ratio): static return $this; } - public function getMinPrice(): TypePrice + public function getMinPrice(): TypePriceNullable { return $this->minPrice; } - public function setMinPrice(TypePrice $minPrice): static + public function setMinPrice(TypePriceNullable $minPrice): static { $this->minPrice = $minPrice; return $this; } - public function getCurrency(): ?TypeCurrencyCode + public function getCurrency(): TypeCurrencyCodeNullable { return $this->currency; } - public function setCurrency(?TypeCurrencyCode $currency): static + public function setCurrency(TypeCurrencyCodeNullable $currency): static { $this->currency = $currency; return $this; @@ -125,23 +125,23 @@ public function setShippingPrice(?string $shippingPrice): static return $this; } - public function getValidFrom(): TypeDate + public function getValidFrom(): TypeDateNullable { return $this->validFrom; } - public function setValidFrom(TypeDate $validFrom): static + public function setValidFrom(TypeDateNullable $validFrom): static { $this->validFrom = $validFrom; return $this; } - public function getValidTo(): TypeDate + public function getValidTo(): TypeDateNullable { return $this->validTo; } - public function setValidTo(TypeDate $validTo): static + public function setValidTo(TypeDateNullable $validTo): static { $this->validTo = $validTo; return $this; diff --git a/src/Component/Entity/DiscountCouponSnapshot.php b/src/Component/Entity/DiscountCouponSnapshot.php new file mode 100755 index 0000000..0e96701 --- /dev/null +++ b/src/Component/Entity/DiscountCouponSnapshot.php @@ -0,0 +1,7 @@ +creationDate; } - public function setCreationDate(TypeDateTime $creationDate): static + public function setCreationDate(TypeDateTimeNullable $creationDate): static { $this->creationDate = $creationDate; return $this; diff --git a/src/Component/Entity/DocumentConsumptionTax.php b/src/Component/Entity/DocumentConsumptionTax.php old mode 100644 new mode 100755 index 88afaea..bc71fa8 --- a/src/Component/Entity/DocumentConsumptionTax.php +++ b/src/Component/Entity/DocumentConsumptionTax.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCode; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class DocumentConsumptionTax extends Entity { protected TypeCurrencyCode $currency; - protected TypePrice $price; + protected TypePriceNullable $price; public function getCurrency(): TypeCurrencyCode { @@ -21,12 +21,12 @@ public function setCurrency(TypeCurrencyCode $currency): static return $this; } - public function getPrice(): TypePrice + public function getPrice(): TypePriceNullable { return $this->price; } - public function setPrice(TypePrice $price): static + public function setPrice(TypePriceNullable $price): static { $this->price = $price; return $this; diff --git a/src/Component/Entity/DocumentCustomer.php b/src/Component/Entity/DocumentCustomer.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/DocumentItemsWithPrice.php b/src/Component/Entity/DocumentItemsWithPrice.php old mode 100644 new mode 100755 index 0f26497..d2f25ff --- a/src/Component/Entity/DocumentItemsWithPrice.php +++ b/src/Component/Entity/DocumentItemsWithPrice.php @@ -3,7 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\DocumentItemsWithPrice\DisplayPrices; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmountNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceRatio; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeight; @@ -16,14 +16,17 @@ class DocumentItemsWithPrice extends Entity protected ?string $name; protected ?string $variantName; protected ?string $brand; - protected TypeAmount $amount; + protected TypeAmountNullable $amount; protected ?string $amountUnit; protected ?string $remark; protected TypePriceRatio $priceRatio; protected ?TypeWeight $weight; protected ?string $additionalField; protected ItemPrice $itemPrice; + + /** @deprecated */ protected ?ItemPrice $buyPrice; + protected ?ItemPrice $purchasePrice; protected ?DisplayPrices $displayPrices; protected float $itemId; protected ?ItemSurchargeParameters $surchargeParameters; @@ -95,12 +98,12 @@ public function setBrand(?string $brand): static return $this; } - public function getAmount(): TypeAmount + public function getAmount(): TypeAmountNullable { return $this->amount; } - public function setAmount(TypeAmount $amount): static + public function setAmount(TypeAmountNullable $amount): static { $this->amount = $amount; return $this; @@ -172,17 +175,34 @@ public function setItemPrice(ItemPrice $itemPrice): static return $this; } + /** + * @deprecated + */ public function getBuyPrice(): ?ItemPrice { return $this->buyPrice; } + /** + * @deprecated + */ public function setBuyPrice(?ItemPrice $buyPrice): static { $this->buyPrice = $buyPrice; return $this; } + public function getPurchasePrice(): ?ItemPrice + { + return $this->purchasePrice; + } + + public function setPurchasePrice(?ItemPrice $purchasePrice): static + { + $this->purchasePrice = $purchasePrice; + return $this; + } + public function getDisplayPrices(): ?DisplayPrices { return $this->displayPrices; diff --git a/src/Component/Entity/DocumentItemsWithPrice/DisplayPrices.php b/src/Component/Entity/DocumentItemsWithPrice/DisplayPrices.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Entity.php b/src/Component/Entity/Entity.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/EntityCollection.php b/src/Component/Entity/EntityCollection.php old mode 100644 new mode 100755 index 0f08db2..7f8d782 --- a/src/Component/Entity/EntityCollection.php +++ b/src/Component/Entity/EntityCollection.php @@ -73,7 +73,7 @@ public function add(mixed $item): void /** * @param int $key - * @return null|TValue + * @return TValue|null */ public function remove(int $key): mixed { diff --git a/src/Component/Entity/EntityCollectionInterface.php b/src/Component/Entity/EntityCollectionInterface.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Errors.php b/src/Component/Entity/Errors.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Errors/Item.php b/src/Component/Entity/Errors/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Eshop.php b/src/Component/Entity/Eshop.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/GoogleMappingType.php b/src/Component/Entity/GoogleMappingType.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Invoice.php b/src/Component/Entity/Invoice.php old mode 100644 new mode 100755 index 3d0922c..41f1e14 --- a/src/Component/Entity/Invoice.php +++ b/src/Component/Entity/Invoice.php @@ -3,28 +3,28 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Invoice\Items; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeightUnlimited; class Invoice extends Entity { protected string $code; protected bool $isValid; - protected ?string $proformaInvoiceCode; + protected ProformaInvoiceCodes $proformaInvoiceCodes; protected ?string $orderCode; - protected TypeDateTime $creationTime; - protected TypeDateTime $changeTime; - protected TypeDate $dueDate; - protected TypeDate $taxDate; + protected TypeDateTimeNullable $creationTime; + protected TypeDateTimeNullable $changeTime; + protected TypeDateNullable $dueDate; + protected TypeDateNullable $taxDate; protected float $varSymbol; protected ?string $constSymbol; protected ?float $specSymbol; - protected ?TypeWeightUnlimited $weight; - protected ?TypeWeightUnlimited $completePackageWeight; - protected BillingMethod $billingMethod; + protected TypeWeightUnlimited $weight; + protected TypeWeightUnlimited $completePackageWeight; + protected ?BillingMethod $billingMethod; protected BillingAddress $billingAddress; - protected ?Address $deliveryAddress; + protected Address $deliveryAddress; protected bool $addressesEqual; protected Price $price; protected DocumentCustomer $customer; @@ -57,14 +57,14 @@ public function setIsValid(bool $isValid): static return $this; } - public function getProformaInvoiceCode(): ?string + public function getProformaInvoiceCodes(): ProformaInvoiceCodes { - return $this->proformaInvoiceCode; + return $this->proformaInvoiceCodes; } - public function setProformaInvoiceCode(?string $proformaInvoiceCode): static + public function setProformaInvoiceCodes(ProformaInvoiceCodes $proformaInvoiceCodes): static { - $this->proformaInvoiceCode = $proformaInvoiceCode; + $this->proformaInvoiceCodes = $proformaInvoiceCodes; return $this; } @@ -79,45 +79,45 @@ public function setOrderCode(?string $orderCode): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; } - public function getDueDate(): TypeDate + public function getDueDate(): TypeDateNullable { return $this->dueDate; } - public function setDueDate(TypeDate $dueDate): static + public function setDueDate(TypeDateNullable $dueDate): static { $this->dueDate = $dueDate; return $this; } - public function getTaxDate(): TypeDate + public function getTaxDate(): TypeDateNullable { return $this->taxDate; } - public function setTaxDate(TypeDate $taxDate): static + public function setTaxDate(TypeDateNullable $taxDate): static { $this->taxDate = $taxDate; return $this; @@ -156,34 +156,34 @@ public function setSpecSymbol(?float $specSymbol): static return $this; } - public function getWeight(): ?TypeWeightUnlimited + public function getWeight(): TypeWeightUnlimited { return $this->weight; } - public function setWeight(?TypeWeightUnlimited $weight): static + public function setWeight(TypeWeightUnlimited $weight): static { $this->weight = $weight; return $this; } - public function getCompletePackageWeight(): ?TypeWeightUnlimited + public function getCompletePackageWeight(): TypeWeightUnlimited { return $this->completePackageWeight; } - public function setCompletePackageWeight(?TypeWeightUnlimited $completePackageWeight): static + public function setCompletePackageWeight(TypeWeightUnlimited $completePackageWeight): static { $this->completePackageWeight = $completePackageWeight; return $this; } - public function getBillingMethod(): BillingMethod + public function getBillingMethod(): ?BillingMethod { return $this->billingMethod; } - public function setBillingMethod(BillingMethod $billingMethod): static + public function setBillingMethod(?BillingMethod $billingMethod): static { $this->billingMethod = $billingMethod; return $this; @@ -200,12 +200,12 @@ public function setBillingAddress(BillingAddress $billingAddress): static return $this; } - public function getDeliveryAddress(): ?Address + public function getDeliveryAddress(): Address { return $this->deliveryAddress; } - public function setDeliveryAddress(?Address $deliveryAddress): static + public function setDeliveryAddress(Address $deliveryAddress): static { $this->deliveryAddress = $deliveryAddress; return $this; diff --git a/src/Component/Entity/Invoice/Items.php b/src/Component/Entity/Invoice/Items.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/InvoiceItem.php b/src/Component/Entity/InvoiceItem.php old mode 100644 new mode 100755 index 563afac..9a3c8f9 --- a/src/Component/Entity/InvoiceItem.php +++ b/src/Component/Entity/InvoiceItem.php @@ -3,7 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\InvoiceItem\DisplayPrices; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmountNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceRatio; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeight; @@ -17,14 +17,17 @@ class InvoiceItem extends Entity protected ?string $name; protected ?string $variantName; protected ?string $brand; - protected TypeAmount $amount; + protected TypeAmountNullable $amount; protected ?string $amountUnit; protected ?string $remark; protected TypePriceRatio $priceRatio; protected ?TypeWeight $weight; protected ?string $additionalField; protected ItemPrice $itemPrice; + + /** @deprecated */ protected ?ItemPrice $buyPrice; + protected ?ItemPrice $purchasePrice; protected ?DisplayPrices $displayPrices; protected ?RecyclingFee $recyclingFee; protected ?ItemSurchargeParameters $surchargeParameters; @@ -108,12 +111,12 @@ public function setBrand(?string $brand): static return $this; } - public function getAmount(): TypeAmount + public function getAmount(): TypeAmountNullable { return $this->amount; } - public function setAmount(TypeAmount $amount): static + public function setAmount(TypeAmountNullable $amount): static { $this->amount = $amount; return $this; @@ -185,17 +188,34 @@ public function setItemPrice(ItemPrice $itemPrice): static return $this; } + /** + * @deprecated + */ public function getBuyPrice(): ?ItemPrice { return $this->buyPrice; } + /** + * @deprecated + */ public function setBuyPrice(?ItemPrice $buyPrice): static { $this->buyPrice = $buyPrice; return $this; } + public function getPurchasePrice(): ?ItemPrice + { + return $this->purchasePrice; + } + + public function setPurchasePrice(?ItemPrice $purchasePrice): static + { + $this->purchasePrice = $purchasePrice; + return $this; + } + public function getDisplayPrices(): ?DisplayPrices { return $this->displayPrices; diff --git a/src/Component/Entity/InvoiceItem/DisplayPrices.php b/src/Component/Entity/InvoiceItem/DisplayPrices.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/InvoiceSnapshot.php b/src/Component/Entity/InvoiceSnapshot.php new file mode 100755 index 0000000..41ef49e --- /dev/null +++ b/src/Component/Entity/InvoiceSnapshot.php @@ -0,0 +1,7 @@ +withVat; } - public function setWithVat(TypePrice $withVat): static + public function setWithVat(TypePriceNullable $withVat): static { $this->withVat = $withVat; return $this; } - public function getWithoutVat(): TypePrice + public function getWithoutVat(): TypePriceNullable { return $this->withoutVat; } - public function setWithoutVat(TypePrice $withoutVat): static + public function setWithoutVat(TypePriceNullable $withoutVat): static { $this->withoutVat = $withoutVat; return $this; } - public function getVat(): TypePrice + public function getVat(): TypePriceNullable { return $this->vat; } - public function setVat(TypePrice $vat): static + public function setVat(TypePriceNullable $vat): static { $this->vat = $vat; return $this; diff --git a/src/Component/Entity/ItemSpecificSurchargeParameters.php b/src/Component/Entity/ItemSpecificSurchargeParameters.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ItemSpecificSurchargeParameters/Item.php b/src/Component/Entity/ItemSpecificSurchargeParameters/Item.php old mode 100644 new mode 100755 index bda0b44..c035301 --- a/src/Component/Entity/ItemSpecificSurchargeParameters/Item.php +++ b/src/Component/Entity/ItemSpecificSurchargeParameters/Item.php @@ -3,13 +3,13 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\ItemSpecificSurchargeParameters; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class Item extends Entity { protected string $relationId; protected string $name; - protected TypePrice $price; + protected TypePriceNullable $price; public function getRelationId(): string { @@ -33,12 +33,12 @@ public function setName(string $name): static return $this; } - public function getPrice(): TypePrice + public function getPrice(): TypePriceNullable { return $this->price; } - public function setPrice(TypePrice $price): static + public function setPrice(TypePriceNullable $price): static { $this->price = $price; return $this; diff --git a/src/Component/Entity/ItemSpecificSurchargeParametersWithoutPrice.php b/src/Component/Entity/ItemSpecificSurchargeParametersWithoutPrice.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ItemSpecificSurchargeParametersWithoutPrice/Item.php b/src/Component/Entity/ItemSpecificSurchargeParametersWithoutPrice/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ItemSurchargeParameters.php b/src/Component/Entity/ItemSurchargeParameters.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ItemSurchargeParameters/Item.php b/src/Component/Entity/ItemSurchargeParameters/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ItemSurchargeParameters/Item/ParameterName.php b/src/Component/Entity/ItemSurchargeParameters/Item/ParameterName.php old mode 100644 new mode 100755 index 0fdcd14..0e66d75 --- a/src/Component/Entity/ItemSurchargeParameters/Item/ParameterName.php +++ b/src/Component/Entity/ItemSurchargeParameters/Item/ParameterName.php @@ -8,6 +8,7 @@ class ParameterName extends Entity { protected ?string $code; protected ?string $name; + protected ?bool $subscription; public function getCode(): ?string { @@ -30,4 +31,15 @@ public function setName(?string $name): static $this->name = $name; return $this; } + + public function getSubscription(): ?bool + { + return $this->subscription; + } + + public function setSubscription(?bool $subscription): static + { + $this->subscription = $subscription; + return $this; + } } diff --git a/src/Component/Entity/ItemSurchargeParameters/Item/ParameterValue.php b/src/Component/Entity/ItemSurchargeParameters/Item/ParameterValue.php old mode 100644 new mode 100755 index 04f8633..7dfa852 --- a/src/Component/Entity/ItemSurchargeParameters/Item/ParameterValue.php +++ b/src/Component/Entity/ItemSurchargeParameters/Item/ParameterValue.php @@ -3,13 +3,13 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\ItemSurchargeParameters\Item; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class ParameterValue extends Entity { protected ?string $valueIndex; protected ?string $description; - protected ?TypePrice $price; + protected ?TypePriceNullable $price; public function getValueIndex(): ?string { @@ -33,12 +33,12 @@ public function setDescription(?string $description): static return $this; } - public function getPrice(): ?TypePrice + public function getPrice(): ?TypePriceNullable { return $this->price; } - public function setPrice(?TypePrice $price): static + public function setPrice(?TypePriceNullable $price): static { $this->price = $price; return $this; diff --git a/src/Component/Entity/ItemSurchargeParametersWithoutPrice.php b/src/Component/Entity/ItemSurchargeParametersWithoutPrice.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ItemSurchargeParametersWithoutPrice/Item.php b/src/Component/Entity/ItemSurchargeParametersWithoutPrice/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ItemSurchargeParametersWithoutPrice/Item/ParameterName.php b/src/Component/Entity/ItemSurchargeParametersWithoutPrice/Item/ParameterName.php old mode 100644 new mode 100755 index d6e6976..49dd8ef --- a/src/Component/Entity/ItemSurchargeParametersWithoutPrice/Item/ParameterName.php +++ b/src/Component/Entity/ItemSurchargeParametersWithoutPrice/Item/ParameterName.php @@ -8,6 +8,7 @@ class ParameterName extends Entity { protected ?string $code; protected ?string $name; + protected ?bool $subscription; public function getCode(): ?string { @@ -30,4 +31,15 @@ public function setName(?string $name): static $this->name = $name; return $this; } + + public function getSubscription(): ?bool + { + return $this->subscription; + } + + public function setSubscription(?bool $subscription): static + { + $this->subscription = $subscription; + return $this; + } } diff --git a/src/Component/Entity/ItemSurchargeParametersWithoutPrice/Item/ParameterValue.php b/src/Component/Entity/ItemSurchargeParametersWithoutPrice/Item/ParameterValue.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/MeasureUnit.php b/src/Component/Entity/MeasureUnit.php old mode 100644 new mode 100755 index a98d3a8..852cc79 --- a/src/Component/Entity/MeasureUnit.php +++ b/src/Component/Entity/MeasureUnit.php @@ -2,14 +2,14 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmountNullable; class MeasureUnit extends Entity { protected ?int $packagingUnitId; - protected TypePositiveAmount $packagingAmount; + protected TypePositiveAmountNullable $packagingAmount; protected ?int $measureUnitId; - protected TypePositiveAmount $measureAmount; + protected TypePositiveAmountNullable $measureAmount; public function getPackagingUnitId(): ?int { @@ -22,12 +22,12 @@ public function setPackagingUnitId(?int $packagingUnitId): static return $this; } - public function getPackagingAmount(): TypePositiveAmount + public function getPackagingAmount(): TypePositiveAmountNullable { return $this->packagingAmount; } - public function setPackagingAmount(TypePositiveAmount $packagingAmount): static + public function setPackagingAmount(TypePositiveAmountNullable $packagingAmount): static { $this->packagingAmount = $packagingAmount; return $this; @@ -44,12 +44,12 @@ public function setMeasureUnitId(?int $measureUnitId): static return $this; } - public function getMeasureAmount(): TypePositiveAmount + public function getMeasureAmount(): TypePositiveAmountNullable { return $this->measureAmount; } - public function setMeasureAmount(TypePositiveAmount $measureAmount): static + public function setMeasureAmount(TypePositiveAmountNullable $measureAmount): static { $this->measureAmount = $measureAmount; return $this; diff --git a/src/Component/Entity/NotificationData.php b/src/Component/Entity/NotificationData.php old mode 100644 new mode 100755 index 0bbd871..d6ce08c --- a/src/Component/Entity/NotificationData.php +++ b/src/Component/Entity/NotificationData.php @@ -2,13 +2,13 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class NotificationData extends Entity { protected int $eshopId; protected string $event; - protected TypeDateTime $eventCreated; + protected TypeDateTimeNullable $eventCreated; protected string $eventInstance; public function getEshopId(): int @@ -33,12 +33,12 @@ public function setEvent(string $event): static return $this; } - public function getEventCreated(): TypeDateTime + public function getEventCreated(): TypeDateTimeNullable { return $this->eventCreated; } - public function setEventCreated(TypeDateTime $eventCreated): static + public function setEventCreated(TypeDateTimeNullable $eventCreated): static { $this->eventCreated = $eventCreated; return $this; diff --git a/src/Component/Entity/Order.php b/src/Component/Entity/Order.php old mode 100644 new mode 100755 index 52d24f2..16db6c7 --- a/src/Component/Entity/Order.php +++ b/src/Component/Entity/Order.php @@ -2,6 +2,7 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; +use Shoptet\Api\Sdk\Php\Component\Entity\Order\Completion; use Shoptet\Api\Sdk\Php\Component\Entity\Order\Items; use Shoptet\Api\Sdk\Php\Component\Entity\Order\Notes; use Shoptet\Api\Sdk\Php\Component\Entity\Order\PaymentMethods; @@ -9,7 +10,7 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Order\Shippings; use Shoptet\Api\Sdk\Php\Component\Entity\Order\Source; use Shoptet\Api\Sdk\Php\Component\Entity\Order\Status; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; class Order extends Entity @@ -17,8 +18,8 @@ class Order extends Entity protected string $code; protected string $guid; protected ?string $externalCode; - protected TypeDateTime $creationTime; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $creationTime; + protected TypeDateTimeNullable $changeTime; protected ?string $email; protected ?string $phone; protected ?string $birthDate; @@ -31,7 +32,7 @@ class Order extends Entity protected ?string $vatMode; protected ?BillingMethod $billingMethod; protected ?PaymentMethod $paymentMethod; - protected ?Shipping $shipping; + protected Shipping $shipping; protected ?ShippingDetails $shippingDetails; protected string $adminUrl; protected ?Status $status; @@ -47,6 +48,8 @@ class Order extends Entity protected ?Shippings $shippings; protected Items $items; protected ?Notes $notes; + protected ?OrderPreAuthorization $preAuthorization; + protected ?Completion $completion; public function getCode(): string { @@ -81,23 +84,23 @@ public function setExternalCode(?string $externalCode): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; @@ -235,12 +238,12 @@ public function setPaymentMethod(?PaymentMethod $paymentMethod): static return $this; } - public function getShipping(): ?Shipping + public function getShipping(): Shipping { return $this->shipping; } - public function setShipping(?Shipping $shipping): static + public function setShipping(Shipping $shipping): static { $this->shipping = $shipping; return $this; @@ -410,4 +413,26 @@ public function setNotes(?Notes $notes): static $this->notes = $notes; return $this; } + + public function getPreAuthorization(): ?OrderPreAuthorization + { + return $this->preAuthorization; + } + + public function setPreAuthorization(?OrderPreAuthorization $preAuthorization): static + { + $this->preAuthorization = $preAuthorization; + return $this; + } + + public function getCompletion(): ?Completion + { + return $this->completion; + } + + public function setCompletion(?Completion $completion): static + { + $this->completion = $completion; + return $this; + } } diff --git a/src/Component/Entity/Order/Completion.php b/src/Component/Entity/Order/Completion.php new file mode 100755 index 0000000..51ae947 --- /dev/null +++ b/src/Component/Entity/Order/Completion.php @@ -0,0 +1,31 @@ + + * @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 Completion extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\Order\Completion\Item'; + } +} diff --git a/src/Component/Entity/Order/Completion/Item.php b/src/Component/Entity/Order/Completion/Item.php new file mode 100755 index 0000000..433f0f0 --- /dev/null +++ b/src/Component/Entity/Order/Completion/Item.php @@ -0,0 +1,132 @@ +productGuid; + } + + public function setProductGuid(?TypeGuidUnlimited $productGuid): static + { + $this->productGuid = $productGuid; + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): static + { + $this->code = $code; + return $this; + } + + public function getItemType(): string + { + return $this->itemType; + } + + public function setItemType(string $itemType): static + { + $this->itemType = $itemType; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getVariantName(): ?string + { + return $this->variantName; + } + + public function setVariantName(?string $variantName): static + { + $this->variantName = $variantName; + return $this; + } + + public function getAmount(): TypeAmountNullable + { + return $this->amount; + } + + public function setAmount(TypeAmountNullable $amount): static + { + $this->amount = $amount; + return $this; + } + + public function getAmountUnit(): ?string + { + return $this->amountUnit; + } + + public function setAmountUnit(?string $amountUnit): static + { + $this->amountUnit = $amountUnit; + return $this; + } + + public function getItemId(): ?float + { + return $this->itemId; + } + + public function setItemId(?float $itemId): static + { + $this->itemId = $itemId; + return $this; + } + + public function getAmountCompleted(): TypePositiveAmountNullable + { + return $this->amountCompleted; + } + + public function setAmountCompleted(TypePositiveAmountNullable $amountCompleted): static + { + $this->amountCompleted = $amountCompleted; + return $this; + } + + public function getParentProductSetItemId(): ?float + { + return $this->parentProductSetItemId; + } + + public function setParentProductSetItemId(?float $parentProductSetItemId): static + { + $this->parentProductSetItemId = $parentProductSetItemId; + return $this; + } +} diff --git a/src/Component/Entity/Order/Items.php b/src/Component/Entity/Order/Items.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Order/Notes.php b/src/Component/Entity/Order/Notes.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Order/Notes/AdditionalFields.php b/src/Component/Entity/Order/Notes/AdditionalFields.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Order/Notes/AdditionalFields/Item.php b/src/Component/Entity/Order/Notes/AdditionalFields/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Order/PaymentMethods.php b/src/Component/Entity/Order/PaymentMethods.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Order/PaymentMethods/Item.php b/src/Component/Entity/Order/PaymentMethods/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Order/ShippingDetails.php b/src/Component/Entity/Order/ShippingDetails.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Order/Shippings.php b/src/Component/Entity/Order/Shippings.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Order/Shippings/Item.php b/src/Component/Entity/Order/Shippings/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Order/Shippings/Item/Shipping.php b/src/Component/Entity/Order/Shippings/Item/Shipping.php old mode 100644 new mode 100755 index 67bc7e7..d1a6c0f --- a/src/Component/Entity/Order/Shippings/Item/Shipping.php +++ b/src/Component/Entity/Order/Shippings/Item/Shipping.php @@ -3,19 +3,19 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\Order\Shippings\Item; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidNullable; class Shipping extends Entity { - protected ?TypeGuid $guid; + protected TypeGuidNullable $guid; protected string $name; - public function getGuid(): ?TypeGuid + public function getGuid(): TypeGuidNullable { return $this->guid; } - public function setGuid(?TypeGuid $guid): static + public function setGuid(TypeGuidNullable $guid): static { $this->guid = $guid; return $this; diff --git a/src/Component/Entity/Order/Source.php b/src/Component/Entity/Order/Source.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Order/Status.php b/src/Component/Entity/Order/Status.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/OrderBatchCreate.php b/src/Component/Entity/OrderBatchCreate.php new file mode 100755 index 0000000..9a0ab05 --- /dev/null +++ b/src/Component/Entity/OrderBatchCreate.php @@ -0,0 +1,33 @@ +settings; + } + + public function setSettings(?Settings $settings): static + { + $this->settings = $settings; + return $this; + } + + public function getData(): Order + { + return $this->data; + } + + public function setData(Order $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Component/Entity/OrderBatchCreate/Settings.php b/src/Component/Entity/OrderBatchCreate/Settings.php new file mode 100755 index 0000000..e559c55 --- /dev/null +++ b/src/Component/Entity/OrderBatchCreate/Settings.php @@ -0,0 +1,93 @@ +suppressDocumentGeneration; + } + + public function setSuppressDocumentGeneration(?bool $suppressDocumentGeneration): static + { + $this->suppressDocumentGeneration = $suppressDocumentGeneration; + return $this; + } + + public function getSuppressEmailSending(): ?bool + { + return $this->suppressEmailSending; + } + + public function setSuppressEmailSending(?bool $suppressEmailSending): static + { + $this->suppressEmailSending = $suppressEmailSending; + return $this; + } + + public function getSuppressProductChecking(): ?bool + { + return $this->suppressProductChecking; + } + + public function setSuppressProductChecking(?bool $suppressProductChecking): static + { + $this->suppressProductChecking = $suppressProductChecking; + return $this; + } + + public function getSuppressStockMovements(): ?bool + { + return $this->suppressStockMovements; + } + + public function setSuppressStockMovements(?bool $suppressStockMovements): static + { + $this->suppressStockMovements = $suppressStockMovements; + return $this; + } + + public function getSuppressHistoricalMandatoryFields(): ?bool + { + return $this->suppressHistoricalMandatoryFields; + } + + public function setSuppressHistoricalMandatoryFields(?bool $suppressHistoricalMandatoryFields): static + { + $this->suppressHistoricalMandatoryFields = $suppressHistoricalMandatoryFields; + return $this; + } + + public function getSuppressHistoricalPaymentChecking(): ?bool + { + return $this->suppressHistoricalPaymentChecking; + } + + public function setSuppressHistoricalPaymentChecking(?bool $suppressHistoricalPaymentChecking): static + { + $this->suppressHistoricalPaymentChecking = $suppressHistoricalPaymentChecking; + return $this; + } + + public function getSuppressHistoricalShippingChecking(): ?bool + { + return $this->suppressHistoricalShippingChecking; + } + + public function setSuppressHistoricalShippingChecking(?bool $suppressHistoricalShippingChecking): static + { + $this->suppressHistoricalShippingChecking = $suppressHistoricalShippingChecking; + return $this; + } +} diff --git a/src/Component/Entity/OrderGift.php b/src/Component/Entity/OrderGift.php old mode 100644 new mode 100755 index c24754b..d88b714 --- a/src/Component/Entity/OrderGift.php +++ b/src/Component/Entity/OrderGift.php @@ -3,14 +3,14 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCode; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class OrderGift extends Entity { protected int $id; protected string $code; protected TypeCurrencyCode $currencyCode; - protected TypePrice $orderPrice; + protected TypePriceNullable $orderPrice; protected bool $includingVat; protected int $priority; @@ -47,12 +47,12 @@ public function setCurrencyCode(TypeCurrencyCode $currencyCode): static return $this; } - public function getOrderPrice(): TypePrice + public function getOrderPrice(): TypePriceNullable { return $this->orderPrice; } - public function setOrderPrice(TypePrice $orderPrice): static + public function setOrderPrice(TypePriceNullable $orderPrice): static { $this->orderPrice = $orderPrice; return $this; diff --git a/src/Component/Entity/OrderHistory.php b/src/Component/Entity/OrderHistory.php new file mode 100755 index 0000000..ee7ae3d --- /dev/null +++ b/src/Component/Entity/OrderHistory.php @@ -0,0 +1,82 @@ +id; + } + + public function setId(float $id): static + { + $this->id = $id; + return $this; + } + + public function getCreationTime(): TypeDateTimeNullable + { + return $this->creationTime; + } + + public function setCreationTime(TypeDateTimeNullable $creationTime): static + { + $this->creationTime = $creationTime; + return $this; + } + + public function getText(): string + { + return $this->text; + } + + public function setText(string $text): static + { + $this->text = $text; + return $this; + } + + public function getUser(): ?User + { + return $this->user; + } + + public function setUser(?User $user): static + { + $this->user = $user; + return $this; + } + + public function isSystem(): bool + { + return $this->system; + } + + public function setSystem(bool $system): static + { + $this->system = $system; + return $this; + } + + public function getType(): string + { + return $this->type; + } + + public function setType(string $type): static + { + $this->type = $type; + return $this; + } +} diff --git a/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory/Item/User.php b/src/Component/Entity/OrderHistory/User.php old mode 100644 new mode 100755 similarity index 79% rename from src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory/Item/User.php rename to src/Component/Entity/OrderHistory/User.php index b74b9ca..c6addae --- a/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory/Item/User.php +++ b/src/Component/Entity/OrderHistory/User.php @@ -1,6 +1,6 @@ orderCode; + } + + public function setOrderCode(string $orderCode): static + { + $this->orderCode = $orderCode; + return $this; + } +} diff --git a/src/Component/Entity/OrderItem.php b/src/Component/Entity/OrderItem.php old mode 100644 new mode 100755 index eb6437b..9fa042c --- a/src/Component/Entity/OrderItem.php +++ b/src/Component/Entity/OrderItem.php @@ -6,9 +6,9 @@ use Shoptet\Api\Sdk\Php\Component\Entity\OrderItem\MainImage; use Shoptet\Api\Sdk\Php\Component\Entity\OrderItem\Status; use Shoptet\Api\Sdk\Php\Component\Entity\OrderItem\SurchargeParametersTexts; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmountNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmountNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceRatio; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeight; @@ -25,20 +25,25 @@ class OrderItem extends Entity protected ?string $remark; protected TypeWeight $weight; protected ?string $additionalField; - protected TypeAmount $amount; + protected TypeAmountNullable $amount; protected ?string $amountUnit; protected TypePriceRatio $priceRatio; protected Status $status; protected ItemPrice $itemPrice; protected ?DisplayPrices $displayPrices; + + /** @deprecated */ protected ?ItemPrice $buyPrice; + protected ?ItemPrice $purchasePrice; protected RecyclingFee $recyclingFee; protected ?MainImage $mainImage; protected ?string $stockLocation; protected ?string $supplierName; protected float $itemId; protected ?string $warrantyDescription; - protected TypePositiveAmount $amountCompleted; + + /** @deprecated */ + protected TypePositiveAmountNullable $amountCompleted; /** @deprecated */ protected ?SurchargeParametersTexts $surchargeParametersTexts; @@ -168,12 +173,12 @@ public function setAdditionalField(?string $additionalField): static return $this; } - public function getAmount(): TypeAmount + public function getAmount(): TypeAmountNullable { return $this->amount; } - public function setAmount(TypeAmount $amount): static + public function setAmount(TypeAmountNullable $amount): static { $this->amount = $amount; return $this; @@ -234,17 +239,34 @@ public function setDisplayPrices(?DisplayPrices $displayPrices): static return $this; } + /** + * @deprecated + */ public function getBuyPrice(): ?ItemPrice { return $this->buyPrice; } + /** + * @deprecated + */ public function setBuyPrice(?ItemPrice $buyPrice): static { $this->buyPrice = $buyPrice; return $this; } + public function getPurchasePrice(): ?ItemPrice + { + return $this->purchasePrice; + } + + public function setPurchasePrice(?ItemPrice $purchasePrice): static + { + $this->purchasePrice = $purchasePrice; + return $this; + } + public function getRecyclingFee(): RecyclingFee { return $this->recyclingFee; @@ -311,12 +333,18 @@ public function setWarrantyDescription(?string $warrantyDescription): static return $this; } - public function getAmountCompleted(): TypePositiveAmount + /** + * @deprecated + */ + public function getAmountCompleted(): TypePositiveAmountNullable { return $this->amountCompleted; } - public function setAmountCompleted(TypePositiveAmount $amountCompleted): static + /** + * @deprecated + */ + public function setAmountCompleted(TypePositiveAmountNullable $amountCompleted): static { $this->amountCompleted = $amountCompleted; return $this; diff --git a/src/Component/Entity/OrderItem/DisplayPrices.php b/src/Component/Entity/OrderItem/DisplayPrices.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/OrderItem/MainImage.php b/src/Component/Entity/OrderItem/MainImage.php old mode 100644 new mode 100755 index d2f64f6..13aca64 --- a/src/Component/Entity/OrderItem/MainImage.php +++ b/src/Component/Entity/OrderItem/MainImage.php @@ -3,7 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\OrderItem; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class MainImage extends Entity { @@ -12,7 +12,7 @@ class MainImage extends Entity protected string $cdnName; protected float $priority; protected ?string $description; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $changeTime; public function getName(): string { @@ -69,12 +69,12 @@ public function setDescription(?string $description): static return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; diff --git a/src/Component/Entity/OrderItem/Status.php b/src/Component/Entity/OrderItem/Status.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/OrderItem/SurchargeParametersTexts.php b/src/Component/Entity/OrderItem/SurchargeParametersTexts.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/OrderPreAuthorization.php b/src/Component/Entity/OrderPreAuthorization.php new file mode 100755 index 0000000..e27ae26 --- /dev/null +++ b/src/Component/Entity/OrderPreAuthorization.php @@ -0,0 +1,33 @@ +hasPendingPreAuthorization; + } + + public function setHasPendingPreAuthorization(bool $hasPendingPreAuthorization): static + { + $this->hasPendingPreAuthorization = $hasPendingPreAuthorization; + return $this; + } + + public function getPreAuthorizationAmount(): TypePrice + { + return $this->preAuthorizationAmount; + } + + public function setPreAuthorizationAmount(TypePrice $preAuthorizationAmount): static + { + $this->preAuthorizationAmount = $preAuthorizationAmount; + return $this; + } +} diff --git a/src/Component/Entity/OrderSnapshot.php b/src/Component/Entity/OrderSnapshot.php new file mode 100755 index 0000000..9565b76 --- /dev/null +++ b/src/Component/Entity/OrderSnapshot.php @@ -0,0 +1,7 @@ +language; } - public function setLanguage(string $language): static + public function setLanguage(?string $language): static { $this->language = $language; return $this; @@ -103,6 +105,17 @@ public function setMetaDescription(?string $metaDescription): static return $this; } + public function getCanonicalUrl(): ?string + { + return $this->canonicalUrl; + } + + public function setCanonicalUrl(?string $canonicalUrl): static + { + $this->canonicalUrl = $canonicalUrl; + return $this; + } + public function isVisible(): bool { return $this->visible; @@ -124,4 +137,15 @@ public function setAccess(string $access): static $this->access = $access; return $this; } + + public function getOgImage(): ?string + { + return $this->ogImage; + } + + public function setOgImage(?string $ogImage): static + { + $this->ogImage = $ogImage; + return $this; + } } diff --git a/src/Component/Entity/PageList.php b/src/Component/Entity/PageList.php old mode 100644 new mode 100755 index 39d860e..608d4c4 --- a/src/Component/Entity/PageList.php +++ b/src/Component/Entity/PageList.php @@ -8,6 +8,7 @@ class PageList extends Entity protected string $title; protected ?string $url; protected ?bool $visible; + protected ?string $ogImage; public function getId(): float { @@ -52,4 +53,15 @@ public function setVisible(?bool $visible): static $this->visible = $visible; return $this; } + + public function getOgImage(): ?string + { + return $this->ogImage; + } + + public function setOgImage(?string $ogImage): static + { + $this->ogImage = $ogImage; + return $this; + } } diff --git a/src/Component/Entity/Paginator.php b/src/Component/Entity/Paginator.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ParameterValueCombinations.php b/src/Component/Entity/ParameterValueCombinations.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ParameterValueCombinationsCodes.php b/src/Component/Entity/ParameterValueCombinationsCodes.php new file mode 100755 index 0000000..aa3a3d4 --- /dev/null +++ b/src/Component/Entity/ParameterValueCombinationsCodes.php @@ -0,0 +1,31 @@ +parameterCode; + } + + public function setParameterCode(string $parameterCode): static + { + $this->parameterCode = $parameterCode; + return $this; + } + + public function getValueCode(): string + { + return $this->valueCode; + } + + public function setValueCode(string $valueCode): static + { + $this->valueCode = $valueCode; + return $this; + } +} diff --git a/src/Component/Entity/PaymentMethod.php b/src/Component/Entity/PaymentMethod.php old mode 100644 new mode 100755 index 2c21816..3a0c5e0 --- a/src/Component/Entity/PaymentMethod.php +++ b/src/Component/Entity/PaymentMethod.php @@ -2,19 +2,19 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidNullable; class PaymentMethod extends Entity { - protected ?TypeGuid $guid; + protected TypeGuidNullable $guid; protected string $name; - public function getGuid(): ?TypeGuid + public function getGuid(): TypeGuidNullable { return $this->guid; } - public function setGuid(?TypeGuid $guid): static + public function setGuid(TypeGuidNullable $guid): static { $this->guid = $guid; return $this; diff --git a/src/Component/Entity/Price.php b/src/Component/Entity/Price.php old mode 100644 new mode 100755 index 8bc8d2e..429ede1 --- a/src/Component/Entity/Price.php +++ b/src/Component/Entity/Price.php @@ -4,36 +4,37 @@ use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCode; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeExchangeRate; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class Price extends Entity { - protected TypePrice $vat; - protected TypePrice $toPay; + protected TypePriceNullable $vat; + protected TypePriceNullable $toPay; protected TypeCurrencyCode $currencyCode; - protected TypePrice $withoutVat; - protected TypePrice $withVat; + protected TypePriceNullable $withoutVat; + protected TypePriceNullable $withVat; protected TypeExchangeRate $exchangeRate; - protected ?TypePrice $partialPaymentAmount; + protected ?TypeExchangeRate $invoicingExchangeRate; + protected ?TypePriceNullable $partialPaymentAmount; protected ?string $partialPaymentType; - public function getVat(): TypePrice + public function getVat(): TypePriceNullable { return $this->vat; } - public function setVat(TypePrice $vat): static + public function setVat(TypePriceNullable $vat): static { $this->vat = $vat; return $this; } - public function getToPay(): TypePrice + public function getToPay(): TypePriceNullable { return $this->toPay; } - public function setToPay(TypePrice $toPay): static + public function setToPay(TypePriceNullable $toPay): static { $this->toPay = $toPay; return $this; @@ -50,23 +51,23 @@ public function setCurrencyCode(TypeCurrencyCode $currencyCode): static return $this; } - public function getWithoutVat(): TypePrice + public function getWithoutVat(): TypePriceNullable { return $this->withoutVat; } - public function setWithoutVat(TypePrice $withoutVat): static + public function setWithoutVat(TypePriceNullable $withoutVat): static { $this->withoutVat = $withoutVat; return $this; } - public function getWithVat(): TypePrice + public function getWithVat(): TypePriceNullable { return $this->withVat; } - public function setWithVat(TypePrice $withVat): static + public function setWithVat(TypePriceNullable $withVat): static { $this->withVat = $withVat; return $this; @@ -83,12 +84,23 @@ public function setExchangeRate(TypeExchangeRate $exchangeRate): static return $this; } - public function getPartialPaymentAmount(): ?TypePrice + public function getInvoicingExchangeRate(): ?TypeExchangeRate + { + return $this->invoicingExchangeRate; + } + + public function setInvoicingExchangeRate(?TypeExchangeRate $invoicingExchangeRate): static + { + $this->invoicingExchangeRate = $invoicingExchangeRate; + return $this; + } + + public function getPartialPaymentAmount(): ?TypePriceNullable { return $this->partialPaymentAmount; } - public function setPartialPaymentAmount(?TypePrice $partialPaymentAmount): static + public function setPartialPaymentAmount(?TypePriceNullable $partialPaymentAmount): static { $this->partialPaymentAmount = $partialPaymentAmount; return $this; diff --git a/src/Component/Entity/PriceSales.php b/src/Component/Entity/PriceSales.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Pricelist.php b/src/Component/Entity/Pricelist.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/PricelistDetail.php b/src/Component/Entity/PricelistDetail.php old mode 100644 new mode 100755 index 3926564..ac8c09e --- a/src/Component/Entity/PricelistDetail.php +++ b/src/Component/Entity/PricelistDetail.php @@ -2,29 +2,105 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\Entity\PricelistDetail\Item; - -/** - * @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 PricelistDetail extends EntityCollection +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCode; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVatRate; + +class PricelistDetail extends Entity { - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string + protected string $code; + protected TypeCurrencyCode $currencyCode; + protected bool $includingVat; + protected TypeVatRate $vatRate; + protected VariantPrice $price; + protected ProductOrderableAmount $orderableAmount; + protected PriceSales $sales; + protected ?ProductPrices $prices; + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getCurrencyCode(): TypeCurrencyCode + { + return $this->currencyCode; + } + + public function setCurrencyCode(TypeCurrencyCode $currencyCode): static + { + $this->currencyCode = $currencyCode; + return $this; + } + + public function isIncludingVat(): bool + { + return $this->includingVat; + } + + public function setIncludingVat(bool $includingVat): static + { + $this->includingVat = $includingVat; + return $this; + } + + public function getVatRate(): TypeVatRate + { + return $this->vatRate; + } + + public function setVatRate(TypeVatRate $vatRate): static + { + $this->vatRate = $vatRate; + return $this; + } + + public function getPrice(): VariantPrice + { + return $this->price; + } + + public function setPrice(VariantPrice $price): static + { + $this->price = $price; + return $this; + } + + public function getOrderableAmount(): ProductOrderableAmount + { + return $this->orderableAmount; + } + + public function setOrderableAmount(ProductOrderableAmount $orderableAmount): static + { + $this->orderableAmount = $orderableAmount; + return $this; + } + + public function getSales(): PriceSales + { + return $this->sales; + } + + public function setSales(PriceSales $sales): static + { + $this->sales = $sales; + return $this; + } + + public function getPrices(): ?ProductPrices + { + return $this->prices; + } + + public function setPrices(?ProductPrices $prices): static { - return 'Shoptet\Api\Sdk\Php\Component\Entity\PricelistDetail\Item'; + $this->prices = $prices; + return $this; } } diff --git a/src/Component/Entity/PricelistDetail/Item.php b/src/Component/Entity/PricelistDetail/Item.php deleted file mode 100644 index a4b128a..0000000 --- a/src/Component/Entity/PricelistDetail/Item.php +++ /dev/null @@ -1,98 +0,0 @@ -code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getCurrencyCode(): TypeCurrencyCode - { - return $this->currencyCode; - } - - public function setCurrencyCode(TypeCurrencyCode $currencyCode): static - { - $this->currencyCode = $currencyCode; - return $this; - } - - public function isIncludingVat(): bool - { - return $this->includingVat; - } - - public function setIncludingVat(bool $includingVat): static - { - $this->includingVat = $includingVat; - return $this; - } - - public function getVatRate(): TypeVatRate - { - return $this->vatRate; - } - - public function setVatRate(TypeVatRate $vatRate): static - { - $this->vatRate = $vatRate; - return $this; - } - - public function getPrice(): VariantPrice - { - return $this->price; - } - - public function setPrice(VariantPrice $price): static - { - $this->price = $price; - return $this; - } - - public function getOrderableAmount(): ProductOrderableAmount - { - return $this->orderableAmount; - } - - public function setOrderableAmount(ProductOrderableAmount $orderableAmount): static - { - $this->orderableAmount = $orderableAmount; - return $this; - } - - public function getSales(): PriceSales - { - return $this->sales; - } - - public function setSales(PriceSales $sales): static - { - $this->sales = $sales; - return $this; - } -} diff --git a/src/Component/Entity/PricelistSnapshot.php b/src/Component/Entity/PricelistSnapshot.php new file mode 100755 index 0000000..f4e90f9 --- /dev/null +++ b/src/Component/Entity/PricelistSnapshot.php @@ -0,0 +1,7 @@ +indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + public function getBrand(): ?BrandNamed { return $this->brand; @@ -135,23 +148,23 @@ public function setVisibility(string $visibility): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; @@ -234,6 +247,17 @@ public function setInternalNote(?string $internalNote): static return $this; } + public function getPreauthorizationRequired(): ?bool + { + return $this->preauthorizationRequired; + } + + public function setPreauthorizationRequired(?bool $preauthorizationRequired): static + { + $this->preauthorizationRequired = $preauthorizationRequired; + return $this; + } + public function getDefaultCategory(): DefaultCategory { return $this->defaultCategory; @@ -378,12 +402,12 @@ public function setSizeIdName(?string $sizeIdName): static return $this; } - public function getVoteAverageScore(): ?TypeAmount + public function getVoteAverageScore(): ?TypeAmountNullable { return $this->voteAverageScore; } - public function setVoteAverageScore(?TypeAmount $voteAverageScore): static + public function setVoteAverageScore(?TypeAmountNullable $voteAverageScore): static { $this->voteAverageScore = $voteAverageScore; return $this; diff --git a/src/Component/Entity/Product/AlternativeProducts.php b/src/Component/Entity/Product/AlternativeProducts.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/Categories.php b/src/Component/Entity/Product/Categories.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/Categories/Item.php b/src/Component/Entity/Product/Categories/Item.php old mode 100644 new mode 100755 index e729c69..6e716ed --- a/src/Component/Entity/Product/Categories/Item.php +++ b/src/Component/Entity/Product/Categories/Item.php @@ -3,20 +3,20 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\Product\Categories; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidNullable; class Item extends Entity { - protected ?TypeGuid $guid; + protected TypeGuidNullable $guid; protected string $name; - protected ?TypeGuid $parentGuid; + protected TypeGuidNullable $parentGuid; - public function getGuid(): ?TypeGuid + public function getGuid(): TypeGuidNullable { return $this->guid; } - public function setGuid(?TypeGuid $guid): static + public function setGuid(TypeGuidNullable $guid): static { $this->guid = $guid; return $this; @@ -33,12 +33,12 @@ public function setName(string $name): static return $this; } - public function getParentGuid(): ?TypeGuid + public function getParentGuid(): TypeGuidNullable { return $this->parentGuid; } - public function setParentGuid(?TypeGuid $parentGuid): static + public function setParentGuid(TypeGuidNullable $parentGuid): static { $this->parentGuid = $parentGuid; return $this; diff --git a/src/Component/Entity/Product/DefaultCategory.php b/src/Component/Entity/Product/DefaultCategory.php old mode 100644 new mode 100755 index b6c1af5..edf53cf --- a/src/Component/Entity/Product/DefaultCategory.php +++ b/src/Component/Entity/Product/DefaultCategory.php @@ -3,20 +3,20 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\Product; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidNullable; class DefaultCategory extends Entity { - protected ?TypeGuid $guid; + protected TypeGuidNullable $guid; protected ?string $name; protected ?bool $visible; - public function getGuid(): ?TypeGuid + public function getGuid(): TypeGuidNullable { return $this->guid; } - public function setGuid(?TypeGuid $guid): static + public function setGuid(TypeGuidNullable $guid): static { $this->guid = $guid; return $this; diff --git a/src/Component/Entity/Product/DescriptiveParameters.php b/src/Component/Entity/Product/DescriptiveParameters.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/DescriptiveParameters/Item.php b/src/Component/Entity/Product/DescriptiveParameters/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/FilteringParameters.php b/src/Component/Entity/Product/FilteringParameters.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/FilteringParameters/Item.php b/src/Component/Entity/Product/FilteringParameters/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/FilteringParameters/Item/Values.php b/src/Component/Entity/Product/FilteringParameters/Item/Values.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/FilteringParameters/Item/Values/Item.php b/src/Component/Entity/Product/FilteringParameters/Item/Values/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/Flags.php b/src/Component/Entity/Product/Flags.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/Flags/Item.php b/src/Component/Entity/Product/Flags/Item.php old mode 100644 new mode 100755 index e7b2617..8405fd8 --- a/src/Component/Entity/Product/Flags/Item.php +++ b/src/Component/Entity/Product/Flags/Item.php @@ -3,14 +3,14 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\Product\Flags; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; class Item extends Entity { protected string $code; protected string $title; - protected TypeDate $dateFrom; - protected TypeDate $dateTo; + protected TypeDateNullable $dateFrom; + protected TypeDateNullable $dateTo; public function getCode(): string { @@ -34,23 +34,23 @@ public function setTitle(string $title): static return $this; } - public function getDateFrom(): TypeDate + public function getDateFrom(): TypeDateNullable { return $this->dateFrom; } - public function setDateFrom(TypeDate $dateFrom): static + public function setDateFrom(TypeDateNullable $dateFrom): static { $this->dateFrom = $dateFrom; return $this; } - public function getDateTo(): TypeDate + public function getDateTo(): TypeDateNullable { return $this->dateTo; } - public function setDateTo(TypeDate $dateTo): static + public function setDateTo(TypeDateNullable $dateTo): static { $this->dateTo = $dateTo; return $this; diff --git a/src/Component/Entity/Product/Images.php b/src/Component/Entity/Product/Images.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/Images/Item.php b/src/Component/Entity/Product/Images/Item.php old mode 100644 new mode 100755 index 047eace..4f020a6 --- a/src/Component/Entity/Product/Images/Item.php +++ b/src/Component/Entity/Product/Images/Item.php @@ -3,7 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\Product\Images; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Item extends Entity { @@ -12,7 +12,7 @@ class Item extends Entity protected string $cdnName; protected ?int $priority; protected ?string $description; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $changeTime; protected ?bool $isMainImage; public function getName(): string @@ -70,12 +70,12 @@ public function setDescription(?string $description): static return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; diff --git a/src/Component/Entity/Product/RelatedFiles.php b/src/Component/Entity/Product/RelatedFiles.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/RelatedFiles/Item.php b/src/Component/Entity/Product/RelatedFiles/Item.php old mode 100644 new mode 100755 index 6be62dc..cfd64a5 --- a/src/Component/Entity/Product/RelatedFiles/Item.php +++ b/src/Component/Entity/Product/RelatedFiles/Item.php @@ -6,10 +6,22 @@ class Item extends Entity { + protected int $id; protected ?string $name; protected string $url; protected ?int $size; + public function getId(): int + { + return $this->id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + public function getName(): ?string { return $this->name; diff --git a/src/Component/Entity/Product/RelatedProducts.php b/src/Component/Entity/Product/RelatedProducts.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/RelatedVideos.php b/src/Component/Entity/Product/RelatedVideos.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/RelatedVideos/Item.php b/src/Component/Entity/Product/RelatedVideos/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/SetItems.php b/src/Component/Entity/Product/SetItems.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/SetItems/Item.php b/src/Component/Entity/Product/SetItems/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/SurchargeParameters.php b/src/Component/Entity/Product/SurchargeParameters.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/Variants.php b/src/Component/Entity/Product/Variants.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/Variants/Item.php b/src/Component/Entity/Product/Variants/Item.php old mode 100644 new mode 100755 index e245d30..898d394 --- a/src/Component/Entity/Product/Variants/Item.php +++ b/src/Component/Entity/Product/Variants/Item.php @@ -6,30 +6,32 @@ use Shoptet\Api\Sdk\Php\Component\Entity\AvailabilityShort; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\ProductConsumptionTax; +use Shoptet\Api\Sdk\Php\Component\Entity\ProductPrices; use Shoptet\Api\Sdk\Php\Component\Entity\Product\Variants\Item\MeasureUnit; +use Shoptet\Api\Sdk\Php\Component\Entity\Product\Variants\Item\OssVatLevels; use Shoptet\Api\Sdk\Php\Component\Entity\Product\Variants\Item\Parameters; use Shoptet\Api\Sdk\Php\Component\Entity\Product\Variants\Item\PerPricelistPrices; use Shoptet\Api\Sdk\Php\Component\Entity\Product\Variants\Item\PerStockAmounts; use Shoptet\Api\Sdk\Php\Component\Entity\Product\Variants\Item\ZboziCZ; use Shoptet\Api\Sdk\Php\Component\Entity\RecyclingFeeCategory; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmountNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDimension; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeight; class Item extends Entity { protected string $code; protected ?string $ean; - protected TypeAmount $stock; + protected TypeAmountNullable $stock; protected ?string $unit; protected ?TypeWeight $weight; protected TypeDimension $width; protected TypeDimension $height; protected TypeDimension $depth; protected bool $visible; - protected TypePrice $price; - protected TypePrice $commonPrice; + protected TypePriceNullable $price; + protected TypePriceNullable $commonPrice; protected ?string $manufacturerCode; protected ?string $pluCode; protected ?string $isbn; @@ -38,8 +40,8 @@ class Item extends Entity protected bool $includingVat; protected string $vatRate; protected string $currencyCode; - protected TypeAmount $minStockSupply; - protected ?ActionPrice $actionPrice; + protected TypeAmountNullable $minStockSupply; + protected ActionPrice $actionPrice; protected ?string $image; protected ?bool $isProductDefaultImage; protected ?string $name; @@ -58,6 +60,8 @@ class Item extends Entity protected ?PerStockAmounts $perStockAmounts; protected ?PerPricelistPrices $perPricelistPrices; protected ?string $url; + protected ?ProductPrices $prices; + protected ?OssVatLevels $ossVatLevels; public function getCode(): string { @@ -81,12 +85,12 @@ public function setEan(?string $ean): static return $this; } - public function getStock(): TypeAmount + public function getStock(): TypeAmountNullable { return $this->stock; } - public function setStock(TypeAmount $stock): static + public function setStock(TypeAmountNullable $stock): static { $this->stock = $stock; return $this; @@ -158,23 +162,23 @@ public function setVisible(bool $visible): static return $this; } - public function getPrice(): TypePrice + public function getPrice(): TypePriceNullable { return $this->price; } - public function setPrice(TypePrice $price): static + public function setPrice(TypePriceNullable $price): static { $this->price = $price; return $this; } - public function getCommonPrice(): TypePrice + public function getCommonPrice(): TypePriceNullable { return $this->commonPrice; } - public function setCommonPrice(TypePrice $commonPrice): static + public function setCommonPrice(TypePriceNullable $commonPrice): static { $this->commonPrice = $commonPrice; return $this; @@ -268,23 +272,23 @@ public function setCurrencyCode(string $currencyCode): static return $this; } - public function getMinStockSupply(): TypeAmount + public function getMinStockSupply(): TypeAmountNullable { return $this->minStockSupply; } - public function setMinStockSupply(TypeAmount $minStockSupply): static + public function setMinStockSupply(TypeAmountNullable $minStockSupply): static { $this->minStockSupply = $minStockSupply; return $this; } - public function getActionPrice(): ?ActionPrice + public function getActionPrice(): ActionPrice { return $this->actionPrice; } - public function setActionPrice(?ActionPrice $actionPrice): static + public function setActionPrice(ActionPrice $actionPrice): static { $this->actionPrice = $actionPrice; return $this; @@ -487,4 +491,26 @@ public function setUrl(?string $url): static $this->url = $url; return $this; } + + public function getPrices(): ?ProductPrices + { + return $this->prices; + } + + public function setPrices(?ProductPrices $prices): static + { + $this->prices = $prices; + return $this; + } + + public function getOssVatLevels(): ?OssVatLevels + { + return $this->ossVatLevels; + } + + public function setOssVatLevels(?OssVatLevels $ossVatLevels): static + { + $this->ossVatLevels = $ossVatLevels; + return $this; + } } diff --git a/src/Component/Entity/Product/Variants/Item/MeasureUnit.php b/src/Component/Entity/Product/Variants/Item/MeasureUnit.php old mode 100644 new mode 100755 index ea6cd1d..62f0b94 --- a/src/Component/Entity/Product/Variants/Item/MeasureUnit.php +++ b/src/Component/Entity/Product/Variants/Item/MeasureUnit.php @@ -3,18 +3,18 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\Product\Variants\Item; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmountNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class MeasureUnit extends Entity { protected ?int $packagingUnitId; protected ?string $packagingUnitName; - protected TypeAmount $packagingAmount; + protected TypeAmountNullable $packagingAmount; protected ?int $measureUnitId; protected ?string $measureUnitName; - protected TypeAmount $measureAmount; - protected TypePrice $measurePrice; + protected TypeAmountNullable $measureAmount; + protected TypePriceNullable $measurePrice; public function getPackagingUnitId(): ?int { @@ -38,12 +38,12 @@ public function setPackagingUnitName(?string $packagingUnitName): static return $this; } - public function getPackagingAmount(): TypeAmount + public function getPackagingAmount(): TypeAmountNullable { return $this->packagingAmount; } - public function setPackagingAmount(TypeAmount $packagingAmount): static + public function setPackagingAmount(TypeAmountNullable $packagingAmount): static { $this->packagingAmount = $packagingAmount; return $this; @@ -71,23 +71,23 @@ public function setMeasureUnitName(?string $measureUnitName): static return $this; } - public function getMeasureAmount(): TypeAmount + public function getMeasureAmount(): TypeAmountNullable { return $this->measureAmount; } - public function setMeasureAmount(TypeAmount $measureAmount): static + public function setMeasureAmount(TypeAmountNullable $measureAmount): static { $this->measureAmount = $measureAmount; return $this; } - public function getMeasurePrice(): TypePrice + public function getMeasurePrice(): TypePriceNullable { return $this->measurePrice; } - public function setMeasurePrice(TypePrice $measurePrice): static + public function setMeasurePrice(TypePriceNullable $measurePrice): static { $this->measurePrice = $measurePrice; return $this; diff --git a/src/Component/Entity/Product/Variants/Item/OssVatLevels.php b/src/Component/Entity/Product/Variants/Item/OssVatLevels.php new file mode 100755 index 0000000..8977a35 --- /dev/null +++ b/src/Component/Entity/Product/Variants/Item/OssVatLevels.php @@ -0,0 +1,31 @@ + + * @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 OssVatLevels extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\Product\Variants\Item\OssVatLevels\Item'; + } +} diff --git a/src/Component/Entity/Product/Variants/Item/OssVatLevels/Item.php b/src/Component/Entity/Product/Variants/Item/OssVatLevels/Item.php new file mode 100755 index 0000000..b10c33f --- /dev/null +++ b/src/Component/Entity/Product/Variants/Item/OssVatLevels/Item.php @@ -0,0 +1,57 @@ +countryCode; + } + + public function setCountryCode(string $countryCode): static + { + $this->countryCode = $countryCode; + return $this; + } + + public function getTaxLevel(): string + { + return $this->taxLevel; + } + + public function setTaxLevel(string $taxLevel): static + { + $this->taxLevel = $taxLevel; + return $this; + } + + public function getTaxLevelDescription(): string + { + return $this->taxLevelDescription; + } + + public function setTaxLevelDescription(string $taxLevelDescription): static + { + $this->taxLevelDescription = $taxLevelDescription; + return $this; + } + + public function getTaxValue(): ?string + { + return $this->taxValue; + } + + public function setTaxValue(?string $taxValue): static + { + $this->taxValue = $taxValue; + return $this; + } +} diff --git a/src/Component/Entity/Product/Variants/Item/Parameters.php b/src/Component/Entity/Product/Variants/Item/Parameters.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/Variants/Item/Parameters/Item.php b/src/Component/Entity/Product/Variants/Item/Parameters/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/Variants/Item/PerPricelistPrices.php b/src/Component/Entity/Product/Variants/Item/PerPricelistPrices.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/Variants/Item/PerPricelistPrices/Item.php b/src/Component/Entity/Product/Variants/Item/PerPricelistPrices/Item.php old mode 100644 new mode 100755 index 26d9c83..64e7dc3 --- a/src/Component/Entity/Product/Variants/Item/PerPricelistPrices/Item.php +++ b/src/Component/Entity/Product/Variants/Item/PerPricelistPrices/Item.php @@ -5,6 +5,7 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\PriceSales; use Shoptet\Api\Sdk\Php\Component\Entity\ProductOrderableAmount; +use Shoptet\Api\Sdk\Php\Component\Entity\ProductPrices; use Shoptet\Api\Sdk\Php\Component\Entity\VariantPrice; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCode; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVatRate; @@ -19,6 +20,7 @@ class Item extends Entity protected PriceSales $sales; protected ProductOrderableAmount $orderableAmount; protected int $pricelistId; + protected ?ProductPrices $prices; public function getCode(): string { @@ -107,4 +109,15 @@ public function setPricelistId(int $pricelistId): static $this->pricelistId = $pricelistId; return $this; } + + public function getPrices(): ?ProductPrices + { + return $this->prices; + } + + public function setPrices(?ProductPrices $prices): static + { + $this->prices = $prices; + return $this; + } } diff --git a/src/Component/Entity/Product/Variants/Item/PerStockAmounts.php b/src/Component/Entity/Product/Variants/Item/PerStockAmounts.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/Variants/Item/PerStockAmounts/Item.php b/src/Component/Entity/Product/Variants/Item/PerStockAmounts/Item.php old mode 100644 new mode 100755 index e0c48d9..6b2c355 --- a/src/Component/Entity/Product/Variants/Item/PerStockAmounts/Item.php +++ b/src/Component/Entity/Product/Variants/Item/PerStockAmounts/Item.php @@ -3,16 +3,16 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\Product\Variants\Item\PerStockAmounts; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmountNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Item extends Entity { protected int $stockId; - protected TypeAmount $amount; - protected TypeAmount $claim; + protected TypeAmountNullable $amount; + protected TypeAmountNullable $claim; protected ?string $location; - protected TypeDateTime $lastAmountUpdate; + protected TypeDateTimeNullable $lastAmountUpdate; public function getStockId(): int { @@ -25,23 +25,23 @@ public function setStockId(int $stockId): static return $this; } - public function getAmount(): TypeAmount + public function getAmount(): TypeAmountNullable { return $this->amount; } - public function setAmount(TypeAmount $amount): static + public function setAmount(TypeAmountNullable $amount): static { $this->amount = $amount; return $this; } - public function getClaim(): TypeAmount + public function getClaim(): TypeAmountNullable { return $this->claim; } - public function setClaim(TypeAmount $claim): static + public function setClaim(TypeAmountNullable $claim): static { $this->claim = $claim; return $this; @@ -58,12 +58,12 @@ public function setLocation(?string $location): static return $this; } - public function getLastAmountUpdate(): TypeDateTime + public function getLastAmountUpdate(): TypeDateTimeNullable { return $this->lastAmountUpdate; } - public function setLastAmountUpdate(TypeDateTime $lastAmountUpdate): static + public function setLastAmountUpdate(TypeDateTimeNullable $lastAmountUpdate): static { $this->lastAmountUpdate = $lastAmountUpdate; return $this; diff --git a/src/Component/Entity/Product/Variants/Item/ZboziCZ.php b/src/Component/Entity/Product/Variants/Item/ZboziCZ.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Product/Warranty.php b/src/Component/Entity/Product/Warranty.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductBatchUpdate.php b/src/Component/Entity/ProductBatchUpdate.php new file mode 100755 index 0000000..570ed35 --- /dev/null +++ b/src/Component/Entity/ProductBatchUpdate.php @@ -0,0 +1,19 @@ +language; + } + + public function setLanguage(?string $language): static + { + $this->language = $language; + return $this; + } +} diff --git a/src/Component/Entity/ProductConsumptionTax.php b/src/Component/Entity/ProductConsumptionTax.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductFilteringParameterValue.php b/src/Component/Entity/ProductFilteringParameterValue.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductFilteringParameterValues.php b/src/Component/Entity/ProductFilteringParameterValues.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductFilteringParameterValues/Item.php b/src/Component/Entity/ProductFilteringParameterValues/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductFlags.php b/src/Component/Entity/ProductFlags.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductFlags/Item.php b/src/Component/Entity/ProductFlags/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductGifts.php b/src/Component/Entity/ProductGifts.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductGifts/Item.php b/src/Component/Entity/ProductGifts/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductOrderableAmount.php b/src/Component/Entity/ProductOrderableAmount.php old mode 100644 new mode 100755 index bc07985..9d49499 --- a/src/Component/Entity/ProductOrderableAmount.php +++ b/src/Component/Entity/ProductOrderableAmount.php @@ -2,30 +2,30 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmountNullable; class ProductOrderableAmount extends Entity { - protected TypePositiveAmount $minimumAmount; - protected TypePositiveAmount $maximumAmount; + protected TypePositiveAmountNullable $minimumAmount; + protected TypePositiveAmountNullable $maximumAmount; - public function getMinimumAmount(): TypePositiveAmount + public function getMinimumAmount(): TypePositiveAmountNullable { return $this->minimumAmount; } - public function setMinimumAmount(TypePositiveAmount $minimumAmount): static + public function setMinimumAmount(TypePositiveAmountNullable $minimumAmount): static { $this->minimumAmount = $minimumAmount; return $this; } - public function getMaximumAmount(): TypePositiveAmount + public function getMaximumAmount(): TypePositiveAmountNullable { return $this->maximumAmount; } - public function setMaximumAmount(TypePositiveAmount $maximumAmount): static + public function setMaximumAmount(TypePositiveAmountNullable $maximumAmount): static { $this->maximumAmount = $maximumAmount; return $this; diff --git a/src/Component/Entity/ProductPricelistSnapshot.php b/src/Component/Entity/ProductPricelistSnapshot.php new file mode 100755 index 0000000..abaef2b --- /dev/null +++ b/src/Component/Entity/ProductPricelistSnapshot.php @@ -0,0 +1,33 @@ +productGuid; + } + + public function setProductGuid(TypeGuidUnlimited $productGuid): static + { + $this->productGuid = $productGuid; + return $this; + } + + public function getProductId(): int + { + return $this->productId; + } + + public function setProductId(int $productId): static + { + $this->productId = $productId; + return $this; + } +} diff --git a/src/Component/Entity/ProductPrices.php b/src/Component/Entity/ProductPrices.php new file mode 100755 index 0000000..f3c9bf2 --- /dev/null +++ b/src/Component/Entity/ProductPrices.php @@ -0,0 +1,21 @@ +purchasePrice; + } + + public function setPurchasePrice(?PurchasePrice $purchasePrice): static + { + $this->purchasePrice = $purchasePrice; + return $this; + } +} diff --git a/src/Component/Entity/ProductPrices/PurchasePrice.php b/src/Component/Entity/ProductPrices/PurchasePrice.php new file mode 100755 index 0000000..0474811 --- /dev/null +++ b/src/Component/Entity/ProductPrices/PurchasePrice.php @@ -0,0 +1,47 @@ +price; + } + + public function setPrice(TypePriceNullable $price): static + { + $this->price = $price; + return $this; + } + + public function getVatRate(): TypeVatRate + { + return $this->vatRate; + } + + public function setVatRate(TypeVatRate $vatRate): static + { + $this->vatRate = $vatRate; + return $this; + } + + public function isIncludingVat(): bool + { + return $this->includingVat; + } + + public function setIncludingVat(bool $includingVat): static + { + $this->includingVat = $includingVat; + return $this; + } +} diff --git a/src/Component/Entity/ProductRequestSurchargeParameter.php b/src/Component/Entity/ProductRequestSurchargeParameter.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductRequestSurchargeParameter/Values.php b/src/Component/Entity/ProductRequestSurchargeParameter/Values.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductRequestSurchargeParameterValue.php b/src/Component/Entity/ProductRequestSurchargeParameterValue.php old mode 100644 new mode 100755 index 42c252f..dd287eb --- a/src/Component/Entity/ProductRequestSurchargeParameterValue.php +++ b/src/Component/Entity/ProductRequestSurchargeParameterValue.php @@ -2,12 +2,12 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class ProductRequestSurchargeParameterValue extends Entity { protected string $valueIndex; - protected ?TypePrice $price; + protected ?TypePriceNullable $price; protected ?bool $visible; public function getValueIndex(): string @@ -21,12 +21,12 @@ public function setValueIndex(string $valueIndex): static return $this; } - public function getPrice(): ?TypePrice + public function getPrice(): ?TypePriceNullable { return $this->price; } - public function setPrice(?TypePrice $price): static + public function setPrice(?TypePriceNullable $price): static { $this->price = $price; return $this; diff --git a/src/Component/Entity/ProductSet.php b/src/Component/Entity/ProductSet.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductSnapshot.php b/src/Component/Entity/ProductSnapshot.php new file mode 100755 index 0000000..36777dd --- /dev/null +++ b/src/Component/Entity/ProductSnapshot.php @@ -0,0 +1,7 @@ +subscription; + } + + public function setSubscription(?bool $subscription): static + { + $this->subscription = $subscription; + return $this; + } + public function getValues(): Values { return $this->values; diff --git a/src/Component/Entity/ProductSurchargeParameter/Values.php b/src/Component/Entity/ProductSurchargeParameter/Values.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductSurchargeParameterValue.php b/src/Component/Entity/ProductSurchargeParameterValue.php old mode 100644 new mode 100755 index 1e9cb62..76bf61f --- a/src/Component/Entity/ProductSurchargeParameterValue.php +++ b/src/Component/Entity/ProductSurchargeParameterValue.php @@ -2,13 +2,13 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class ProductSurchargeParameterValue extends Entity { protected string $valueIndex; protected string $description; - protected TypePrice $price; + protected TypePriceNullable $price; protected ?int $priority; protected bool $visible; @@ -34,12 +34,12 @@ public function setDescription(string $description): static return $this; } - public function getPrice(): TypePrice + public function getPrice(): TypePriceNullable { return $this->price; } - public function setPrice(TypePrice $price): static + public function setPrice(TypePriceNullable $price): static { $this->price = $price; return $this; diff --git a/src/Component/Entity/ProductUpdate.php b/src/Component/Entity/ProductUpdate.php new file mode 100755 index 0000000..0721e49 --- /dev/null +++ b/src/Component/Entity/ProductUpdate.php @@ -0,0 +1,329 @@ +guid; + } + + public function setGuid(?TypeGuid $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): static + { + $this->type = $type; + return $this; + } + + public function getVisibility(): ?string + { + return $this->visibility; + } + + public function setVisibility(?string $visibility): static + { + $this->visibility = $visibility; + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): static + { + $this->name = $name; + return $this; + } + + public function getAdult(): ?bool + { + return $this->adult; + } + + public function setAdult(?bool $adult): static + { + $this->adult = $adult; + return $this; + } + + public function getShortDescription(): ?string + { + return $this->shortDescription; + } + + public function setShortDescription(?string $shortDescription): static + { + $this->shortDescription = $shortDescription; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getAdditionalName(): ?string + { + return $this->additionalName; + } + + public function setAdditionalName(?string $additionalName): static + { + $this->additionalName = $additionalName; + return $this; + } + + public function getMetaTitle(): ?string + { + return $this->metaTitle; + } + + public function setMetaTitle(?string $metaTitle): static + { + $this->metaTitle = $metaTitle; + return $this; + } + + public function getMetaDescription(): ?string + { + return $this->metaDescription; + } + + public function setMetaDescription(?string $metaDescription): static + { + $this->metaDescription = $metaDescription; + return $this; + } + + public function getConditionGrade(): ?string + { + return $this->conditionGrade; + } + + public function setConditionGrade(?string $conditionGrade): static + { + $this->conditionGrade = $conditionGrade; + return $this; + } + + public function getConditionDescription(): ?string + { + return $this->conditionDescription; + } + + public function setConditionDescription(?string $conditionDescription): static + { + $this->conditionDescription = $conditionDescription; + return $this; + } + + public function getDefaultCategoryGuid(): ?TypeGuid + { + return $this->defaultCategoryGuid; + } + + public function setDefaultCategoryGuid(?TypeGuid $defaultCategoryGuid): static + { + $this->defaultCategoryGuid = $defaultCategoryGuid; + return $this; + } + + public function getBrandCode(): ?string + { + return $this->brandCode; + } + + public function setBrandCode(?string $brandCode): static + { + $this->brandCode = $brandCode; + return $this; + } + + public function getInternalNote(): ?string + { + return $this->internalNote; + } + + public function setInternalNote(?string $internalNote): static + { + $this->internalNote = $internalNote; + return $this; + } + + public function getPreauthorizationRequired(): ?bool + { + return $this->preauthorizationRequired; + } + + public function setPreauthorizationRequired(?bool $preauthorizationRequired): static + { + $this->preauthorizationRequired = $preauthorizationRequired; + return $this; + } + + public function getSupplierGuid(): ?TypeGuidNullable + { + return $this->supplierGuid; + } + + public function setSupplierGuid(?TypeGuidNullable $supplierGuid): static + { + $this->supplierGuid = $supplierGuid; + return $this; + } + + public function getCategoryGuids(): ?CategoryGuids + { + return $this->categoryGuids; + } + + public function setCategoryGuids(?CategoryGuids $categoryGuids): static + { + $this->categoryGuids = $categoryGuids; + return $this; + } + + public function getWarrantyId(): ?int + { + return $this->warrantyId; + } + + public function setWarrantyId(?int $warrantyId): static + { + $this->warrantyId = $warrantyId; + return $this; + } + + public function getFlags(): ?Flags + { + return $this->flags; + } + + public function setFlags(?Flags $flags): static + { + $this->flags = $flags; + return $this; + } + + public function getDescriptiveParameters(): ?DescriptiveParameters + { + return $this->descriptiveParameters; + } + + public function setDescriptiveParameters(?DescriptiveParameters $descriptiveParameters): static + { + $this->descriptiveParameters = $descriptiveParameters; + return $this; + } + + public function getFilteringParameters(): ?FilteringParameters + { + return $this->filteringParameters; + } + + public function setFilteringParameters(?FilteringParameters $filteringParameters): static + { + $this->filteringParameters = $filteringParameters; + return $this; + } + + public function getSurchargeParameters(): ?SurchargeParameters + { + return $this->surchargeParameters; + } + + public function setSurchargeParameters(?SurchargeParameters $surchargeParameters): static + { + $this->surchargeParameters = $surchargeParameters; + return $this; + } + + public function getVariants(): ?Variants + { + return $this->variants; + } + + public function setVariants(?Variants $variants): static + { + $this->variants = $variants; + return $this; + } + + public function getIndexName(): ?string + { + return $this->indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getRelatedVideos(): ?RelatedVideos + { + return $this->relatedVideos; + } + + public function setRelatedVideos(?RelatedVideos $relatedVideos): static + { + $this->relatedVideos = $relatedVideos; + return $this; + } +} diff --git a/src/Component/Entity/ProductUpdate/CategoryGuids.php b/src/Component/Entity/ProductUpdate/CategoryGuids.php new file mode 100755 index 0000000..d26a4e8 --- /dev/null +++ b/src/Component/Entity/ProductUpdate/CategoryGuids.php @@ -0,0 +1,31 @@ + + * @property TypeGuid[] $data + * @method TypeGuid[] toArray() + * @method void set(int $key, TypeGuid $item) + * @method null|TypeGuid get(int $key) + * @method void add(TypeGuid $item) + * @method null|TypeGuid remove(int $key) + * @method bool removeItem(TypeGuid $item, bool $strict = true) + * @method bool contains(TypeGuid $item, bool $strict = true) + * @method null|TypeGuid offsetGet(int $offset) + * @method void offsetSet(int $offset, TypeGuid $value) + */ +class CategoryGuids extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid'; + } +} diff --git a/src/Component/Entity/ProductUpdate/DescriptiveParameters.php b/src/Component/Entity/ProductUpdate/DescriptiveParameters.php new file mode 100755 index 0000000..50cffaf --- /dev/null +++ b/src/Component/Entity/ProductUpdate/DescriptiveParameters.php @@ -0,0 +1,31 @@ + + * @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 DescriptiveParameters extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductUpdate\DescriptiveParameters\Item'; + } +} diff --git a/src/Component/Entity/ProductUpdate/DescriptiveParameters/Item.php b/src/Component/Entity/ProductUpdate/DescriptiveParameters/Item.php new file mode 100755 index 0000000..6b760bd --- /dev/null +++ b/src/Component/Entity/ProductUpdate/DescriptiveParameters/Item.php @@ -0,0 +1,57 @@ +name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getValue(): ?string + { + return $this->value; + } + + public function setValue(?string $value): static + { + $this->value = $value; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } +} diff --git a/src/Component/Entity/ProductUpdate/FilteringParameters.php b/src/Component/Entity/ProductUpdate/FilteringParameters.php new file mode 100755 index 0000000..2ad73c6 --- /dev/null +++ b/src/Component/Entity/ProductUpdate/FilteringParameters.php @@ -0,0 +1,31 @@ + + * @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 FilteringParameters extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductUpdate\FilteringParameters\Item'; + } +} diff --git a/src/Component/Entity/ProductUpdate/FilteringParameters/Item.php b/src/Component/Entity/ProductUpdate/FilteringParameters/Item.php new file mode 100755 index 0000000..123baef --- /dev/null +++ b/src/Component/Entity/ProductUpdate/FilteringParameters/Item.php @@ -0,0 +1,34 @@ +code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getValues(): Values + { + return $this->values; + } + + public function setValues(Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Component/Entity/ProductUpdate/FilteringParameters/Item/Values.php b/src/Component/Entity/ProductUpdate/FilteringParameters/Item/Values.php new file mode 100755 index 0000000..b4cf0bc --- /dev/null +++ b/src/Component/Entity/ProductUpdate/FilteringParameters/Item/Values.php @@ -0,0 +1,30 @@ + + * @property string[] $data + * @method string[] toArray() + * @method void set(int $key, string $item) + * @method null|string get(int $key) + * @method void add(string $item) + * @method null|string remove(int $key) + * @method bool removeItem(string $item, bool $strict = true) + * @method bool contains(string $item, bool $strict = true) + * @method null|string offsetGet(int $offset) + * @method void offsetSet(int $offset, string $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return string + */ + public function getItemType(array $data): string + { + return 'string'; + } +} diff --git a/src/Component/Entity/ProductUpdate/Flags.php b/src/Component/Entity/ProductUpdate/Flags.php new file mode 100755 index 0000000..16950b2 --- /dev/null +++ b/src/Component/Entity/ProductUpdate/Flags.php @@ -0,0 +1,31 @@ + + * @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 Flags extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductUpdate\Flags\Item'; + } +} diff --git a/src/Component/Entity/ProductUpdate/Flags/Item.php b/src/Component/Entity/ProductUpdate/Flags/Item.php new file mode 100755 index 0000000..b81ba84 --- /dev/null +++ b/src/Component/Entity/ProductUpdate/Flags/Item.php @@ -0,0 +1,46 @@ +code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getDateFrom(): ?TypeDateNullable + { + return $this->dateFrom; + } + + public function setDateFrom(?TypeDateNullable $dateFrom): static + { + $this->dateFrom = $dateFrom; + return $this; + } + + public function getDateTo(): ?TypeDateNullable + { + return $this->dateTo; + } + + public function setDateTo(?TypeDateNullable $dateTo): static + { + $this->dateTo = $dateTo; + return $this; + } +} diff --git a/src/Component/Entity/ProductUpdate/RelatedVideos.php b/src/Component/Entity/ProductUpdate/RelatedVideos.php new file mode 100755 index 0000000..d52d30c --- /dev/null +++ b/src/Component/Entity/ProductUpdate/RelatedVideos.php @@ -0,0 +1,31 @@ + + * @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 RelatedVideos extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductUpdate\RelatedVideos\Item'; + } +} diff --git a/src/Component/Entity/ProductUpdate/RelatedVideos/Item.php b/src/Component/Entity/ProductUpdate/RelatedVideos/Item.php new file mode 100755 index 0000000..549441b --- /dev/null +++ b/src/Component/Entity/ProductUpdate/RelatedVideos/Item.php @@ -0,0 +1,45 @@ +code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getTitle(): ?string + { + return $this->title; + } + + public function setTitle(?string $title): static + { + $this->title = $title; + return $this; + } + + public function getType(): string + { + return $this->type; + } + + public function setType(string $type): static + { + $this->type = $type; + return $this; + } +} diff --git a/src/Component/Entity/ProductUpdate/SurchargeParameters.php b/src/Component/Entity/ProductUpdate/SurchargeParameters.php new file mode 100755 index 0000000..58d057a --- /dev/null +++ b/src/Component/Entity/ProductUpdate/SurchargeParameters.php @@ -0,0 +1,31 @@ + + * @property ProductRequestSurchargeParameter[] $data + * @method ProductRequestSurchargeParameter[] toArray() + * @method void set(int $key, ProductRequestSurchargeParameter $item) + * @method null|ProductRequestSurchargeParameter get(int $key) + * @method void add(ProductRequestSurchargeParameter $item) + * @method null|ProductRequestSurchargeParameter remove(int $key) + * @method bool removeItem(ProductRequestSurchargeParameter $item, bool $strict = true) + * @method bool contains(ProductRequestSurchargeParameter $item, bool $strict = true) + * @method null|ProductRequestSurchargeParameter offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductRequestSurchargeParameter $value) + */ +class SurchargeParameters extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductRequestSurchargeParameter'; + } +} diff --git a/src/Component/Entity/ProductUpdate/Variants.php b/src/Component/Entity/ProductUpdate/Variants.php new file mode 100755 index 0000000..443d20b --- /dev/null +++ b/src/Component/Entity/ProductUpdate/Variants.php @@ -0,0 +1,31 @@ + + * @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 Variants extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductUpdate\Variants\Item'; + } +} diff --git a/src/Component/Entity/ProductUpdate/Variants/Item.php b/src/Component/Entity/ProductUpdate/Variants/Item.php new file mode 100755 index 0000000..ac313e9 --- /dev/null +++ b/src/Component/Entity/ProductUpdate/Variants/Item.php @@ -0,0 +1,353 @@ +code; + } + + public function setCode(?TypeVariantCodeRequest $code): static + { + $this->code = $code; + return $this; + } + + public function getNewCode(): ?string + { + return $this->newCode; + } + + public function setNewCode(?string $newCode): static + { + $this->newCode = $newCode; + return $this; + } + + public function getEan(): ?string + { + return $this->ean; + } + + public function setEan(?string $ean): static + { + $this->ean = $ean; + return $this; + } + + public function getUnitId(): ?int + { + return $this->unitId; + } + + public function setUnitId(?int $unitId): static + { + $this->unitId = $unitId; + return $this; + } + + public function getWeight(): ?TypeWeightRequest + { + return $this->weight; + } + + public function setWeight(?TypeWeightRequest $weight): static + { + $this->weight = $weight; + return $this; + } + + public function getWidth(): ?TypeDimension + { + return $this->width; + } + + public function setWidth(?TypeDimension $width): static + { + $this->width = $width; + return $this; + } + + public function getHeight(): ?TypeDimension + { + return $this->height; + } + + public function setHeight(?TypeDimension $height): static + { + $this->height = $height; + return $this; + } + + public function getDepth(): ?TypeDimension + { + return $this->depth; + } + + public function setDepth(?TypeDimension $depth): static + { + $this->depth = $depth; + return $this; + } + + public function getVisible(): ?bool + { + return $this->visible; + } + + public function setVisible(?bool $visible): static + { + $this->visible = $visible; + return $this; + } + + public function getManufacturerCode(): ?string + { + return $this->manufacturerCode; + } + + public function setManufacturerCode(?string $manufacturerCode): static + { + $this->manufacturerCode = $manufacturerCode; + return $this; + } + + public function getPluCode(): ?string + { + return $this->pluCode; + } + + public function setPluCode(?string $pluCode): static + { + $this->pluCode = $pluCode; + return $this; + } + + public function getIsbn(): ?string + { + return $this->isbn; + } + + public function setIsbn(?string $isbn): static + { + $this->isbn = $isbn; + return $this; + } + + public function getSerialNo(): ?string + { + return $this->serialNo; + } + + public function setSerialNo(?string $serialNo): static + { + $this->serialNo = $serialNo; + return $this; + } + + public function getMpn(): ?string + { + return $this->mpn; + } + + public function setMpn(?string $mpn): static + { + $this->mpn = $mpn; + return $this; + } + + public function getAvailabilityId(): ?float + { + return $this->availabilityId; + } + + public function setAvailabilityId(?float $availabilityId): static + { + $this->availabilityId = $availabilityId; + return $this; + } + + public function getAvailabilityWhenSoldOutId(): ?float + { + return $this->availabilityWhenSoldOutId; + } + + public function setAvailabilityWhenSoldOutId(?float $availabilityWhenSoldOutId): static + { + $this->availabilityWhenSoldOutId = $availabilityWhenSoldOutId; + return $this; + } + + public function getImage(): ?string + { + return $this->image; + } + + public function setImage(?string $image): static + { + $this->image = $image; + return $this; + } + + public function getParameters(): ?Parameters + { + return $this->parameters; + } + + public function setParameters(?Parameters $parameters): static + { + $this->parameters = $parameters; + return $this; + } + + public function getMinStockSupply(): ?TypePositiveAmountNullable + { + return $this->minStockSupply; + } + + public function setMinStockSupply(?TypePositiveAmountNullable $minStockSupply): static + { + $this->minStockSupply = $minStockSupply; + return $this; + } + + public function getStocksLocations(): ?StocksLocations + { + return $this->stocksLocations; + } + + public function setStocksLocations(?StocksLocations $stocksLocations): static + { + $this->stocksLocations = $stocksLocations; + return $this; + } + + public function getNegativeStockAllowed(): ?bool + { + return $this->negativeStockAllowed; + } + + public function setNegativeStockAllowed(?bool $negativeStockAllowed): static + { + $this->negativeStockAllowed = $negativeStockAllowed; + return $this; + } + + public function getMeasureUnit(): ?MeasureUnit + { + return $this->measureUnit; + } + + public function setMeasureUnit(?MeasureUnit $measureUnit): static + { + $this->measureUnit = $measureUnit; + return $this; + } + + public function getRecyclingFeeId(): ?int + { + return $this->recyclingFeeId; + } + + public function setRecyclingFeeId(?int $recyclingFeeId): static + { + $this->recyclingFeeId = $recyclingFeeId; + return $this; + } + + public function getConsumptionTaxId(): ?int + { + return $this->consumptionTaxId; + } + + public function setConsumptionTaxId(?int $consumptionTaxId): static + { + $this->consumptionTaxId = $consumptionTaxId; + return $this; + } + + public function getAmountDecimalPlaces(): ?int + { + return $this->amountDecimalPlaces; + } + + public function setAmountDecimalPlaces(?int $amountDecimalPlaces): static + { + $this->amountDecimalPlaces = $amountDecimalPlaces; + return $this; + } + + public function getAtypicalBilling(): ?bool + { + return $this->atypicalBilling; + } + + public function setAtypicalBilling(?bool $atypicalBilling): static + { + $this->atypicalBilling = $atypicalBilling; + return $this; + } + + public function getAtypicalShipping(): ?bool + { + return $this->atypicalShipping; + } + + public function setAtypicalShipping(?bool $atypicalShipping): static + { + $this->atypicalShipping = $atypicalShipping; + return $this; + } + + public function getOssVatLevels(): ?OssVatLevels + { + return $this->ossVatLevels; + } + + public function setOssVatLevels(?OssVatLevels $ossVatLevels): static + { + $this->ossVatLevels = $ossVatLevels; + return $this; + } +} diff --git a/src/Component/Entity/ProductUpdate/Variants/Item/OssVatLevels.php b/src/Component/Entity/ProductUpdate/Variants/Item/OssVatLevels.php new file mode 100755 index 0000000..76194a6 --- /dev/null +++ b/src/Component/Entity/ProductUpdate/Variants/Item/OssVatLevels.php @@ -0,0 +1,31 @@ + + * @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 OssVatLevels extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductUpdate\Variants\Item\OssVatLevels\Item'; + } +} diff --git a/src/Component/Entity/ProductUpdate/Variants/Item/OssVatLevels/Item.php b/src/Component/Entity/ProductUpdate/Variants/Item/OssVatLevels/Item.php new file mode 100755 index 0000000..97b072d --- /dev/null +++ b/src/Component/Entity/ProductUpdate/Variants/Item/OssVatLevels/Item.php @@ -0,0 +1,33 @@ +countryCode; + } + + public function setCountryCode(string $countryCode): static + { + $this->countryCode = $countryCode; + return $this; + } + + public function getTaxLevel(): string + { + return $this->taxLevel; + } + + public function setTaxLevel(string $taxLevel): static + { + $this->taxLevel = $taxLevel; + return $this; + } +} diff --git a/src/Component/Entity/ProductUpdate/Variants/Item/Parameters.php b/src/Component/Entity/ProductUpdate/Variants/Item/Parameters.php new file mode 100755 index 0000000..7fccbac --- /dev/null +++ b/src/Component/Entity/ProductUpdate/Variants/Item/Parameters.php @@ -0,0 +1,31 @@ + + * @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 Parameters extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductUpdate\Variants\Item\Parameters\Item'; + } +} diff --git a/src/Component/Entity/ProductUpdate/Variants/Item/Parameters/Item.php b/src/Component/Entity/ProductUpdate/Variants/Item/Parameters/Item.php new file mode 100755 index 0000000..68e8826 --- /dev/null +++ b/src/Component/Entity/ProductUpdate/Variants/Item/Parameters/Item.php @@ -0,0 +1,33 @@ +nameIndex; + } + + public function setNameIndex(string $nameIndex): static + { + $this->nameIndex = $nameIndex; + return $this; + } + + public function getValueIndex(): string + { + return $this->valueIndex; + } + + public function setValueIndex(string $valueIndex): static + { + $this->valueIndex = $valueIndex; + return $this; + } +} diff --git a/src/Component/Entity/ProductUpdate/Variants/Item/StocksLocations.php b/src/Component/Entity/ProductUpdate/Variants/Item/StocksLocations.php new file mode 100755 index 0000000..aac947a --- /dev/null +++ b/src/Component/Entity/ProductUpdate/Variants/Item/StocksLocations.php @@ -0,0 +1,31 @@ + + * @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 StocksLocations extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductUpdate\Variants\Item\StocksLocations\Item'; + } +} diff --git a/src/Component/Entity/ProductUpdate/Variants/Item/StocksLocations/Item.php b/src/Component/Entity/ProductUpdate/Variants/Item/StocksLocations/Item.php new file mode 100755 index 0000000..0bc6cd8 --- /dev/null +++ b/src/Component/Entity/ProductUpdate/Variants/Item/StocksLocations/Item.php @@ -0,0 +1,33 @@ +stockId; + } + + public function setStockId(int $stockId): static + { + $this->stockId = $stockId; + return $this; + } + + public function getLocation(): ?string + { + return $this->location; + } + + public function setLocation(?string $location): static + { + $this->location = $location; + return $this; + } +} diff --git a/src/Component/Entity/ProductVariantParameterValue.php b/src/Component/Entity/ProductVariantParameterValue.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductVariantParameterValues.php b/src/Component/Entity/ProductVariantParameterValues.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProductVariantParameterValues/Item.php b/src/Component/Entity/ProductVariantParameterValues/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProformaInvoice.php b/src/Component/Entity/ProformaInvoice.php old mode 100644 new mode 100755 index 29d0271..5e35a87 --- a/src/Component/Entity/ProformaInvoice.php +++ b/src/Component/Entity/ProformaInvoice.php @@ -3,8 +3,8 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\ProformaInvoice\Items; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeightUnlimited; class ProformaInvoice extends Entity @@ -13,17 +13,17 @@ class ProformaInvoice extends Entity protected bool $isValid; protected ?bool $paid; protected ?string $orderCode; - protected TypeDateTime $creationTime; - protected TypeDateTime $changeTime; - protected TypeDate $dueDate; + protected TypeDateTimeNullable $creationTime; + protected TypeDateTimeNullable $changeTime; + protected TypeDateNullable $dueDate; protected float $varSymbol; protected ?string $constSymbol; protected ?float $specSymbol; - protected ?TypeWeightUnlimited $weight; - protected ?TypeWeightUnlimited $completePackageWeight; - protected BillingMethod $billingMethod; + protected TypeWeightUnlimited $weight; + protected TypeWeightUnlimited $completePackageWeight; + protected ?BillingMethod $billingMethod; protected BillingAddress $billingAddress; - protected ?Address $deliveryAddress; + protected Address $deliveryAddress; protected bool $addressesEqual; protected Price $price; protected DocumentCustomer $customer; @@ -77,34 +77,34 @@ public function setOrderCode(?string $orderCode): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; } - public function getDueDate(): TypeDate + public function getDueDate(): TypeDateNullable { return $this->dueDate; } - public function setDueDate(TypeDate $dueDate): static + public function setDueDate(TypeDateNullable $dueDate): static { $this->dueDate = $dueDate; return $this; @@ -143,34 +143,34 @@ public function setSpecSymbol(?float $specSymbol): static return $this; } - public function getWeight(): ?TypeWeightUnlimited + public function getWeight(): TypeWeightUnlimited { return $this->weight; } - public function setWeight(?TypeWeightUnlimited $weight): static + public function setWeight(TypeWeightUnlimited $weight): static { $this->weight = $weight; return $this; } - public function getCompletePackageWeight(): ?TypeWeightUnlimited + public function getCompletePackageWeight(): TypeWeightUnlimited { return $this->completePackageWeight; } - public function setCompletePackageWeight(?TypeWeightUnlimited $completePackageWeight): static + public function setCompletePackageWeight(TypeWeightUnlimited $completePackageWeight): static { $this->completePackageWeight = $completePackageWeight; return $this; } - public function getBillingMethod(): BillingMethod + public function getBillingMethod(): ?BillingMethod { return $this->billingMethod; } - public function setBillingMethod(BillingMethod $billingMethod): static + public function setBillingMethod(?BillingMethod $billingMethod): static { $this->billingMethod = $billingMethod; return $this; @@ -187,12 +187,12 @@ public function setBillingAddress(BillingAddress $billingAddress): static return $this; } - public function getDeliveryAddress(): ?Address + public function getDeliveryAddress(): Address { return $this->deliveryAddress; } - public function setDeliveryAddress(?Address $deliveryAddress): static + public function setDeliveryAddress(Address $deliveryAddress): static { $this->deliveryAddress = $deliveryAddress; return $this; diff --git a/src/Component/Entity/ProformaInvoice/Items.php b/src/Component/Entity/ProformaInvoice/Items.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProformaInvoiceCodes.php b/src/Component/Entity/ProformaInvoiceCodes.php new file mode 100755 index 0000000..1a47ae9 --- /dev/null +++ b/src/Component/Entity/ProformaInvoiceCodes.php @@ -0,0 +1,28 @@ + + * @property string[] $data + * @method string[] toArray() + * @method void set(int $key, string $item) + * @method null|string get(int $key) + * @method void add(string $item) + * @method null|string remove(int $key) + * @method bool removeItem(string $item, bool $strict = true) + * @method bool contains(string $item, bool $strict = true) + * @method null|string offsetGet(int $offset) + * @method void offsetSet(int $offset, string $value) + */ +class ProformaInvoiceCodes extends EntityCollection +{ + /** + * @param array $data + * @return string + */ + public function getItemType(array $data): string + { + return 'string'; + } +} diff --git a/src/Component/Entity/ProformaInvoiceSnapshot.php b/src/Component/Entity/ProformaInvoiceSnapshot.php new file mode 100755 index 0000000..3c7fd49 --- /dev/null +++ b/src/Component/Entity/ProformaInvoiceSnapshot.php @@ -0,0 +1,7 @@ +createdAt; } - public function setCreatedAt(TypeDateTime $createdAt): static + public function setCreatedAt(TypeDateTimeNullable $createdAt): static { $this->createdAt = $createdAt; return $this; } - public function getUpdatedAt(): TypeDateTime + public function getUpdatedAt(): TypeDateTimeNullable { return $this->updatedAt; } - public function setUpdatedAt(TypeDateTime $updatedAt): static + public function setUpdatedAt(TypeDateTimeNullable $updatedAt): static { $this->updatedAt = $updatedAt; return $this; } - public function getIssueDate(): TypeDateTime + public function getIssueDate(): TypeDateTimeNullable { return $this->issueDate; } - public function setIssueDate(TypeDateTime $issueDate): static + public function setIssueDate(TypeDateTimeNullable $issueDate): static { $this->issueDate = $issueDate; return $this; } - public function getTaxDate(): TypeDate + public function getTaxDate(): TypeDateNullable { return $this->taxDate; } - public function setTaxDate(TypeDate $taxDate): static + public function setTaxDate(TypeDateNullable $taxDate): static { $this->taxDate = $taxDate; return $this; @@ -160,12 +162,12 @@ public function setCurrencyCode(string $currencyCode): static return $this; } - public function getPayment(): TypePrice + public function getPayment(): TypePriceNullable { return $this->payment; } - public function setPayment(TypePrice $payment): static + public function setPayment(TypePriceNullable $payment): static { $this->payment = $payment; return $this; @@ -336,12 +338,12 @@ public function setCompanyId(?string $companyId): static return $this; } - public function getLanguage(): string + public function getLanguage(): ?string { return $this->language; } - public function setLanguage(string $language): static + public function setLanguage(?string $language): static { $this->language = $language; return $this; @@ -474,12 +476,12 @@ public function setSpecSymbol(?float $specSymbol): static return $this; } - public function getBillingMethod(): BillingMethod + public function getBillingMethod(): ?BillingMethod { return $this->billingMethod; } - public function setBillingMethod(BillingMethod $billingMethod): static + public function setBillingMethod(?BillingMethod $billingMethod): static { $this->billingMethod = $billingMethod; return $this; @@ -594,4 +596,15 @@ public function setVatMode(?string $vatMode): static $this->vatMode = $vatMode; return $this; } + + public function getInvoicingExchangeRate(): TypeExchangeRate + { + return $this->invoicingExchangeRate; + } + + public function setInvoicingExchangeRate(TypeExchangeRate $invoicingExchangeRate): static + { + $this->invoicingExchangeRate = $invoicingExchangeRate; + return $this; + } } diff --git a/src/Component/Entity/ProofPaymentDetail/Source.php b/src/Component/Entity/ProofPaymentDetail/Source.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProofPaymentSnapshot.php b/src/Component/Entity/ProofPaymentSnapshot.php new file mode 100755 index 0000000..ae4f252 --- /dev/null +++ b/src/Component/Entity/ProofPaymentSnapshot.php @@ -0,0 +1,7 @@ +priceWithVat; } - public function setPriceWithVat(TypePrice $priceWithVat): static + public function setPriceWithVat(TypePriceNullable $priceWithVat): static { $this->priceWithVat = $priceWithVat; return $this; } - public function getPriceWithoutVat(): TypePrice + public function getPriceWithoutVat(): TypePriceNullable { return $this->priceWithoutVat; } - public function setPriceWithoutVat(TypePrice $priceWithoutVat): static + public function setPriceWithoutVat(TypePriceNullable $priceWithoutVat): static { $this->priceWithoutVat = $priceWithoutVat; return $this; } - public function getVat(): TypePrice + public function getVat(): TypePriceNullable { return $this->vat; } - public function setVat(TypePrice $vat): static + public function setVat(TypePriceNullable $vat): static { $this->vat = $vat; return $this; diff --git a/src/Component/Entity/ProofPaymentVatBreakdown/Summary.php b/src/Component/Entity/ProofPaymentVatBreakdown/Summary.php old mode 100644 new mode 100755 index 1894388..e549c00 --- a/src/Component/Entity/ProofPaymentVatBreakdown/Summary.php +++ b/src/Component/Entity/ProofPaymentVatBreakdown/Summary.php @@ -3,42 +3,42 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\ProofPaymentVatBreakdown; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class Summary extends Entity { - protected TypePrice $withVat; - protected TypePrice $withoutVat; - protected TypePrice $vat; + protected TypePriceNullable $withVat; + protected TypePriceNullable $withoutVat; + protected TypePriceNullable $vat; - public function getWithVat(): TypePrice + public function getWithVat(): TypePriceNullable { return $this->withVat; } - public function setWithVat(TypePrice $withVat): static + public function setWithVat(TypePriceNullable $withVat): static { $this->withVat = $withVat; return $this; } - public function getWithoutVat(): TypePrice + public function getWithoutVat(): TypePriceNullable { return $this->withoutVat; } - public function setWithoutVat(TypePrice $withoutVat): static + public function setWithoutVat(TypePriceNullable $withoutVat): static { $this->withoutVat = $withoutVat; return $this; } - public function getVat(): TypePrice + public function getVat(): TypePriceNullable { return $this->vat; } - public function setVat(TypePrice $vat): static + public function setVat(TypePriceNullable $vat): static { $this->vat = $vat; return $this; diff --git a/src/Component/Entity/ProofPaymentsForInvoice.php b/src/Component/Entity/ProofPaymentsForInvoice.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProofPaymentsForInvoice/Item.php b/src/Component/Entity/ProofPaymentsForInvoice/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ProofPaymentsList.php b/src/Component/Entity/ProofPaymentsList.php old mode 100644 new mode 100755 index c64282b..c69b7e3 --- a/src/Component/Entity/ProofPaymentsList.php +++ b/src/Component/Entity/ProofPaymentsList.php @@ -2,19 +2,21 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeExchangeRate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class ProofPaymentsList extends Entity { protected string $code; protected ?string $orderCode; protected ?string $proformaInvoiceCode; - protected TypeDateTime $issueDate; + protected TypeDateTimeNullable $issueDate; protected ?string $billFullName; - protected TypePrice $payment; + protected TypePriceNullable $payment; protected bool $isValid; protected ?string $vatMode; + protected TypeExchangeRate $invoicingExchangeRate; protected ?string $invoiceCode; protected bool $closed; @@ -51,12 +53,12 @@ public function setProformaInvoiceCode(?string $proformaInvoiceCode): static return $this; } - public function getIssueDate(): TypeDateTime + public function getIssueDate(): TypeDateTimeNullable { return $this->issueDate; } - public function setIssueDate(TypeDateTime $issueDate): static + public function setIssueDate(TypeDateTimeNullable $issueDate): static { $this->issueDate = $issueDate; return $this; @@ -73,12 +75,12 @@ public function setBillFullName(?string $billFullName): static return $this; } - public function getPayment(): TypePrice + public function getPayment(): TypePriceNullable { return $this->payment; } - public function setPayment(TypePrice $payment): static + public function setPayment(TypePriceNullable $payment): static { $this->payment = $payment; return $this; @@ -106,6 +108,17 @@ public function setVatMode(?string $vatMode): static return $this; } + public function getInvoicingExchangeRate(): TypeExchangeRate + { + return $this->invoicingExchangeRate; + } + + public function setInvoicingExchangeRate(TypeExchangeRate $invoicingExchangeRate): static + { + $this->invoicingExchangeRate = $invoicingExchangeRate; + return $this; + } + public function getInvoiceCode(): ?string { return $this->invoiceCode; diff --git a/src/Component/Entity/QuantityDiscount.php b/src/Component/Entity/QuantityDiscount.php old mode 100644 new mode 100755 index e9fc728..0fce842 --- a/src/Component/Entity/QuantityDiscount.php +++ b/src/Component/Entity/QuantityDiscount.php @@ -4,18 +4,18 @@ use Shoptet\Api\Sdk\Php\Component\Entity\QuantityDiscount\CustomerGroups; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeColor; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; class QuantityDiscount extends Entity { protected int $id; protected string $title; - protected TypeDate $validFrom; - protected TypeDate $validTo; + protected TypeDateNullable $validFrom; + protected TypeDateNullable $validTo; protected bool $timeUnlimited; protected ?CustomerGroups $customerGroups; protected bool $displayFlag; - protected ?TypeColor $flagColor; + protected TypeColor $flagColor; protected ?int $priority; protected bool $isActive; protected string $status; @@ -46,23 +46,23 @@ public function setTitle(string $title): static return $this; } - public function getValidFrom(): TypeDate + public function getValidFrom(): TypeDateNullable { return $this->validFrom; } - public function setValidFrom(TypeDate $validFrom): static + public function setValidFrom(TypeDateNullable $validFrom): static { $this->validFrom = $validFrom; return $this; } - public function getValidTo(): TypeDate + public function getValidTo(): TypeDateNullable { return $this->validTo; } - public function setValidTo(TypeDate $validTo): static + public function setValidTo(TypeDateNullable $validTo): static { $this->validTo = $validTo; return $this; @@ -101,12 +101,12 @@ public function setDisplayFlag(bool $displayFlag): static return $this; } - public function getFlagColor(): ?TypeColor + public function getFlagColor(): TypeColor { return $this->flagColor; } - public function setFlagColor(?TypeColor $flagColor): static + public function setFlagColor(TypeColor $flagColor): static { $this->flagColor = $flagColor; return $this; diff --git a/src/Component/Entity/QuantityDiscount/CustomerGroups.php b/src/Component/Entity/QuantityDiscount/CustomerGroups.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/QuantityDiscount/CustomerGroups/Item.php b/src/Component/Entity/QuantityDiscount/CustomerGroups/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/QuantityDiscountSettingsResponse.php b/src/Component/Entity/QuantityDiscountSettingsResponse.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/QuantityDiscountSettingsResponse/Item.php b/src/Component/Entity/QuantityDiscountSettingsResponse/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/QuantityDiscountSettingsResponse/Item/DiscountValue.php b/src/Component/Entity/QuantityDiscountSettingsResponse/Item/DiscountValue.php old mode 100644 new mode 100755 index 53f7858..bf0a3b1 --- a/src/Component/Entity/QuantityDiscountSettingsResponse/Item/DiscountValue.php +++ b/src/Component/Entity/QuantityDiscountSettingsResponse/Item/DiscountValue.php @@ -3,17 +3,18 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity\QuantityDiscountSettingsResponse\Item; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceRatio; class DiscountValue extends Entity { - protected float $priceRatio; + protected TypePriceRatio $priceRatio; - public function getPriceRatio(): float + public function getPriceRatio(): TypePriceRatio { return $this->priceRatio; } - public function setPriceRatio(float $priceRatio): static + public function setPriceRatio(TypePriceRatio $priceRatio): static { $this->priceRatio = $priceRatio; return $this; diff --git a/src/Component/Entity/QuantityDiscountSnapshot.php b/src/Component/Entity/QuantityDiscountSnapshot.php new file mode 100755 index 0000000..d6a5c3d --- /dev/null +++ b/src/Component/Entity/QuantityDiscountSnapshot.php @@ -0,0 +1,7 @@ +category; } - public function setCategory(?TypeNonEmptyString $category): static + public function setCategory(TypeNonEmptyString $category): static { $this->category = $category; return $this; } - public function getFee(): TypePrice + public function getFee(): TypePriceNullable { return $this->fee; } - public function setFee(TypePrice $fee): static + public function setFee(TypePriceNullable $fee): static { $this->fee = $fee; return $this; diff --git a/src/Component/Entity/RecyclingFeeCategory.php b/src/Component/Entity/RecyclingFeeCategory.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/RelatedProduct.php b/src/Component/Entity/RelatedProduct.php old mode 100644 new mode 100755 index 18990d4..02c032b --- a/src/Component/Entity/RelatedProduct.php +++ b/src/Component/Entity/RelatedProduct.php @@ -9,6 +9,7 @@ class RelatedProduct extends Entity protected TypeGuidUnlimited $guid; protected int $priority; protected ?string $visibility; + protected ?string $linkType; public function getGuid(): TypeGuidUnlimited { @@ -42,4 +43,15 @@ public function setVisibility(?string $visibility): static $this->visibility = $visibility; return $this; } + + public function getLinkType(): ?string + { + return $this->linkType; + } + + public function setLinkType(?string $linkType): static + { + $this->linkType = $linkType; + return $this; + } } diff --git a/src/Component/Entity/ShipmentAddress.php b/src/Component/Entity/ShipmentAddress.php old mode 100644 new mode 100755 index ad8eb91..93bb009 --- a/src/Component/Entity/ShipmentAddress.php +++ b/src/Component/Entity/ShipmentAddress.php @@ -12,6 +12,8 @@ class ShipmentAddress extends Entity protected ?string $zipCode; protected ?string $houseNumber; protected ?string $contactPhone; + protected string $senderName; + protected string $contactPerson; protected ?string $contactEmail; protected ?bool $isDefault; protected ?string $type; @@ -104,6 +106,28 @@ public function setContactPhone(?string $contactPhone): static return $this; } + public function getSenderName(): string + { + return $this->senderName; + } + + public function setSenderName(string $senderName): static + { + $this->senderName = $senderName; + return $this; + } + + public function getContactPerson(): string + { + return $this->contactPerson; + } + + public function setContactPerson(string $contactPerson): static + { + $this->contactPerson = $contactPerson; + return $this; + } + public function getContactEmail(): ?string { return $this->contactEmail; diff --git a/src/Component/Entity/ShipmentCarrierCountry.php b/src/Component/Entity/ShipmentCarrierCountry.php old mode 100644 new mode 100755 index cf5b64c..36fe8f3 --- a/src/Component/Entity/ShipmentCarrierCountry.php +++ b/src/Component/Entity/ShipmentCarrierCountry.php @@ -2,12 +2,12 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class ShipmentCarrierCountry extends Entity { protected string $countryCode; - protected TypePrice $maxCod; + protected TypePriceNullable $maxCod; protected ?string $codCurrencyCode; protected int $maxWeight; @@ -22,12 +22,12 @@ public function setCountryCode(string $countryCode): static return $this; } - public function getMaxCod(): TypePrice + public function getMaxCod(): TypePriceNullable { return $this->maxCod; } - public function setMaxCod(TypePrice $maxCod): static + public function setMaxCod(TypePriceNullable $maxCod): static { $this->maxCod = $maxCod; return $this; diff --git a/src/Component/Entity/ShipmentCoDPrice.php b/src/Component/Entity/ShipmentCoDPrice.php old mode 100644 new mode 100755 index 0178c92..207b405 --- a/src/Component/Entity/ShipmentCoDPrice.php +++ b/src/Component/Entity/ShipmentCoDPrice.php @@ -2,19 +2,19 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class ShipmentCoDPrice extends Entity { - protected TypePrice $value; + protected TypePriceNullable $value; protected string $currencyCode; - public function getValue(): TypePrice + public function getValue(): TypePriceNullable { return $this->value; } - public function setValue(TypePrice $value): static + public function setValue(TypePriceNullable $value): static { $this->value = $value; return $this; diff --git a/src/Component/Entity/ShipmentCustomer.php b/src/Component/Entity/ShipmentCustomer.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ShipmentHistory.php b/src/Component/Entity/ShipmentHistory.php old mode 100644 new mode 100755 index b4925af..a894219 --- a/src/Component/Entity/ShipmentHistory.php +++ b/src/Component/Entity/ShipmentHistory.php @@ -2,14 +2,14 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class ShipmentHistory extends Entity { protected string $fromStatus; protected string $toStatus; - protected TypeDateTime $realDatetime; - protected TypeDateTime $providerDatetime; + protected TypeDateTimeNullable $realDatetime; + protected TypeDateTimeNullable $providerDatetime; protected string $note; public function getFromStatus(): string @@ -34,23 +34,23 @@ public function setToStatus(string $toStatus): static return $this; } - public function getRealDatetime(): TypeDateTime + public function getRealDatetime(): TypeDateTimeNullable { return $this->realDatetime; } - public function setRealDatetime(TypeDateTime $realDatetime): static + public function setRealDatetime(TypeDateTimeNullable $realDatetime): static { $this->realDatetime = $realDatetime; return $this; } - public function getProviderDatetime(): TypeDateTime + public function getProviderDatetime(): TypeDateTimeNullable { return $this->providerDatetime; } - public function setProviderDatetime(TypeDateTime $providerDatetime): static + public function setProviderDatetime(TypeDateTimeNullable $providerDatetime): static { $this->providerDatetime = $providerDatetime; return $this; diff --git a/src/Component/Entity/ShipmentPackage.php b/src/Component/Entity/ShipmentPackage.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ShipmentPackageWithHistory.php b/src/Component/Entity/ShipmentPackageWithHistory.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ShipmentPackageWithHistory/History.php b/src/Component/Entity/ShipmentPackageWithHistory/History.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/ShipmentPrice.php b/src/Component/Entity/ShipmentPrice.php old mode 100644 new mode 100755 index 997b679..5e17ac2 --- a/src/Component/Entity/ShipmentPrice.php +++ b/src/Component/Entity/ShipmentPrice.php @@ -2,19 +2,19 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class ShipmentPrice extends Entity { - protected TypePrice $value; + protected TypePriceNullable $value; protected string $currencyCode; - public function getValue(): TypePrice + public function getValue(): TypePriceNullable { return $this->value; } - public function setValue(TypePrice $value): static + public function setValue(TypePriceNullable $value): static { $this->value = $value; return $this; diff --git a/src/Component/Entity/Shipping.php b/src/Component/Entity/Shipping.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/Stock.php b/src/Component/Entity/Stock.php old mode 100644 new mode 100755 index a6443e8..90c22f1 --- a/src/Component/Entity/Stock.php +++ b/src/Component/Entity/Stock.php @@ -9,6 +9,8 @@ class Stock extends Entity protected bool $isDeliveryPoint; protected ?string $deliveryPointTitle; protected ?string $deliveryPointAddress; + protected string $type; + protected ?int $parentStockId; public function getId(): int { @@ -64,4 +66,26 @@ public function setDeliveryPointAddress(?string $deliveryPointAddress): static $this->deliveryPointAddress = $deliveryPointAddress; return $this; } + + public function getType(): string + { + return $this->type; + } + + public function setType(string $type): static + { + $this->type = $type; + return $this; + } + + public function getParentStockId(): ?int + { + return $this->parentStockId; + } + + public function setParentStockId(?int $parentStockId): static + { + $this->parentStockId = $parentStockId; + return $this; + } } diff --git a/src/Component/Entity/StockList.php b/src/Component/Entity/StockList.php new file mode 100755 index 0000000..d16fcc2 --- /dev/null +++ b/src/Component/Entity/StockList.php @@ -0,0 +1,67 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getTitle(): string + { + return $this->title; + } + + public function setTitle(string $title): static + { + $this->title = $title; + return $this; + } + + public function isIsDeliveryPoint(): bool + { + return $this->isDeliveryPoint; + } + + public function setIsDeliveryPoint(bool $isDeliveryPoint): static + { + $this->isDeliveryPoint = $isDeliveryPoint; + return $this; + } + + public function getDeliveryPointTitle(): ?string + { + return $this->deliveryPointTitle; + } + + public function setDeliveryPointTitle(?string $deliveryPointTitle): static + { + $this->deliveryPointTitle = $deliveryPointTitle; + return $this; + } + + public function getDeliveryPointAddress(): ?string + { + return $this->deliveryPointAddress; + } + + public function setDeliveryPointAddress(?string $deliveryPointAddress): static + { + $this->deliveryPointAddress = $deliveryPointAddress; + return $this; + } +} diff --git a/src/Component/Entity/Supplier.php b/src/Component/Entity/Supplier.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/SurchargeParameterValue.php b/src/Component/Entity/SurchargeParameterValue.php old mode 100644 new mode 100755 index 933d561..d0994d4 --- a/src/Component/Entity/SurchargeParameterValue.php +++ b/src/Component/Entity/SurchargeParameterValue.php @@ -2,14 +2,14 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class SurchargeParameterValue extends Entity { protected int $id; protected string $valueIndex; protected string $description; - protected TypePrice $price; + protected TypePriceNullable $price; protected ?int $priority; public function getId(): int @@ -45,12 +45,12 @@ public function setDescription(string $description): static return $this; } - public function getPrice(): TypePrice + public function getPrice(): TypePriceNullable { return $this->price; } - public function setPrice(TypePrice $price): static + public function setPrice(TypePriceNullable $price): static { $this->price = $price; return $this; diff --git a/src/Component/Entity/TypeCurrency.php b/src/Component/Entity/TypeCurrency.php new file mode 100755 index 0000000..a210880 --- /dev/null +++ b/src/Component/Entity/TypeCurrency.php @@ -0,0 +1,117 @@ +code; + } + + public function setCode(TypeCurrencyCode $code): static + { + $this->code = $code; + return $this; + } + + public function getTitle(): string + { + return $this->title; + } + + public function setTitle(string $title): static + { + $this->title = $title; + return $this; + } + + public function getSymbol(): string + { + return $this->symbol; + } + + public function setSymbol(string $symbol): static + { + $this->symbol = $symbol; + return $this; + } + + public function isIsSymbolOnLeft(): bool + { + return $this->isSymbolOnLeft; + } + + public function setIsSymbolOnLeft(bool $isSymbolOnLeft): static + { + $this->isSymbolOnLeft = $isSymbolOnLeft; + return $this; + } + + public function getPrecision(): int + { + return $this->precision; + } + + public function setPrecision(int $precision): static + { + $this->precision = $precision; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getDecimalSeparator(): string + { + return $this->decimalSeparator; + } + + public function setDecimalSeparator(string $decimalSeparator): static + { + $this->decimalSeparator = $decimalSeparator; + return $this; + } + + public function getThousandSeparator(): ?string + { + return $this->thousandSeparator; + } + + public function setThousandSeparator(?string $thousandSeparator): static + { + $this->thousandSeparator = $thousandSeparator; + return $this; + } + + public function getIsDefault(): ?bool + { + return $this->isDefault; + } + + public function setIsDefault(?bool $isDefault): static + { + $this->isDefault = $isDefault; + return $this; + } +} diff --git a/src/Component/Entity/TypeLanguage.php b/src/Component/Entity/TypeLanguage.php new file mode 100755 index 0000000..880382a --- /dev/null +++ b/src/Component/Entity/TypeLanguage.php @@ -0,0 +1,103 @@ +code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDateFormat(): string + { + return $this->dateFormat; + } + + public function setDateFormat(string $dateFormat): static + { + $this->dateFormat = $dateFormat; + return $this; + } + + public function getTimeFormat(): string + { + return $this->timeFormat; + } + + public function setTimeFormat(string $timeFormat): static + { + $this->timeFormat = $timeFormat; + return $this; + } + + public function isIsVisible(): bool + { + return $this->isVisible; + } + + public function setIsVisible(bool $isVisible): static + { + $this->isVisible = $isVisible; + return $this; + } + + public function isIsBlocked(): bool + { + return $this->isBlocked; + } + + public function setIsBlocked(bool $isBlocked): static + { + $this->isBlocked = $isBlocked; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getIsDefault(): ?bool + { + return $this->isDefault; + } + + public function setIsDefault(?bool $isDefault): static + { + $this->isDefault = $isDefault; + return $this; + } +} diff --git a/src/Component/Entity/VariantPrice.php b/src/Component/Entity/VariantPrice.php old mode 100644 new mode 100755 index 02258ae..8d29f29 --- a/src/Component/Entity/VariantPrice.php +++ b/src/Component/Entity/VariantPrice.php @@ -2,45 +2,45 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeProductPriceRatio; class VariantPrice extends Entity { - protected TypePrice $price; - protected TypePrice $commonPrice; - protected TypePrice $buyPrice; + protected TypePriceNullable $price; + protected TypePriceNullable $commonPrice; + protected TypePriceNullable $buyPrice; protected TypeProductPriceRatio $priceRatio; - protected ?ActionPrice $actionPrice; + protected ActionPrice $actionPrice; - public function getPrice(): TypePrice + public function getPrice(): TypePriceNullable { return $this->price; } - public function setPrice(TypePrice $price): static + public function setPrice(TypePriceNullable $price): static { $this->price = $price; return $this; } - public function getCommonPrice(): TypePrice + public function getCommonPrice(): TypePriceNullable { return $this->commonPrice; } - public function setCommonPrice(TypePrice $commonPrice): static + public function setCommonPrice(TypePriceNullable $commonPrice): static { $this->commonPrice = $commonPrice; return $this; } - public function getBuyPrice(): TypePrice + public function getBuyPrice(): TypePriceNullable { return $this->buyPrice; } - public function setBuyPrice(TypePrice $buyPrice): static + public function setBuyPrice(TypePriceNullable $buyPrice): static { $this->buyPrice = $buyPrice; return $this; @@ -57,12 +57,12 @@ public function setPriceRatio(TypeProductPriceRatio $priceRatio): static return $this; } - public function getActionPrice(): ?ActionPrice + public function getActionPrice(): ActionPrice { return $this->actionPrice; } - public function setActionPrice(?ActionPrice $actionPrice): static + public function setActionPrice(ActionPrice $actionPrice): static { $this->actionPrice = $actionPrice; return $this; diff --git a/src/Component/Entity/Webhook.php b/src/Component/Entity/Webhook.php old mode 100644 new mode 100755 index 47b72a3..01c566a --- a/src/Component/Entity/Webhook.php +++ b/src/Component/Entity/Webhook.php @@ -2,15 +2,15 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Webhook extends Entity { protected int $id; protected string $event; protected string $url; - protected TypeDateTime $created; - protected TypeDateTime $updated; + protected TypeDateTimeNullable $created; + protected TypeDateTimeNullable $updated; public function getId(): int { @@ -45,23 +45,23 @@ public function setUrl(string $url): static return $this; } - public function getCreated(): TypeDateTime + public function getCreated(): TypeDateTimeNullable { return $this->created; } - public function setCreated(TypeDateTime $created): static + public function setCreated(TypeDateTimeNullable $created): static { $this->created = $created; return $this; } - public function getUpdated(): TypeDateTime + public function getUpdated(): TypeDateTimeNullable { return $this->updated; } - public function setUpdated(TypeDateTime $updated): static + public function setUpdated(TypeDateTimeNullable $updated): static { $this->updated = $updated; return $this; diff --git a/src/Component/Entity/WebhookNotification.php b/src/Component/Entity/WebhookNotification.php old mode 100644 new mode 100755 index 510475e..97d6669 --- a/src/Component/Entity/WebhookNotification.php +++ b/src/Component/Entity/WebhookNotification.php @@ -2,7 +2,7 @@ namespace Shoptet\Api\Sdk\Php\Component\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class WebhookNotification extends Entity { @@ -10,9 +10,9 @@ class WebhookNotification extends Entity protected int $webhookId; protected string $webhookUrl; protected string $event; - protected TypeDateTime $eventCreated; - protected TypeDateTime $created; - protected TypeDateTime $attempted; + protected TypeDateTimeNullable $eventCreated; + protected TypeDateTimeNullable $created; + protected TypeDateTimeNullable $attempted; protected int $attempts; protected string $status; protected bool $active; @@ -62,34 +62,34 @@ public function setEvent(string $event): static return $this; } - public function getEventCreated(): TypeDateTime + public function getEventCreated(): TypeDateTimeNullable { return $this->eventCreated; } - public function setEventCreated(TypeDateTime $eventCreated): static + public function setEventCreated(TypeDateTimeNullable $eventCreated): static { $this->eventCreated = $eventCreated; return $this; } - public function getCreated(): TypeDateTime + public function getCreated(): TypeDateTimeNullable { return $this->created; } - public function setCreated(TypeDateTime $created): static + public function setCreated(TypeDateTimeNullable $created): static { $this->created = $created; return $this; } - public function getAttempted(): TypeDateTime + public function getAttempted(): TypeDateTimeNullable { return $this->attempted; } - public function setAttempted(TypeDateTime $attempted): static + public function setAttempted(TypeDateTimeNullable $attempted): static { $this->attempted = $attempted; return $this; diff --git a/src/Component/Entity/XyDiscount.php b/src/Component/Entity/XyDiscount.php old mode 100644 new mode 100755 index 2479f53..5dddfa0 --- a/src/Component/Entity/XyDiscount.php +++ b/src/Component/Entity/XyDiscount.php @@ -5,23 +5,23 @@ use Shoptet\Api\Sdk\Php\Component\Entity\XyDiscount\CustomerGroups; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeColor; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; class XyDiscount extends Entity { protected int $id; protected string $title; - protected TypeDate $validFrom; - protected TypeDate $validTo; + protected TypeDateNullable $validFrom; + protected TypeDateNullable $validTo; protected ?CustomerGroups $customerGroups; protected TypeAmount $xAmount; protected TypeAmount $yAmount; protected ?string $description; protected ?string $termsAndConditionsUrl; protected bool $displayFlag; - protected ?TypeColor $flagColor; + protected TypeColor $flagColor; protected bool $displayBanner; - protected ?TypeColor $bannerColor; + protected TypeColor $bannerColor; protected ?int $priority; protected ?int $usageCount; protected XyDiscountTargetingResponse $xTargeting; @@ -50,23 +50,23 @@ public function setTitle(string $title): static return $this; } - public function getValidFrom(): TypeDate + public function getValidFrom(): TypeDateNullable { return $this->validFrom; } - public function setValidFrom(TypeDate $validFrom): static + public function setValidFrom(TypeDateNullable $validFrom): static { $this->validFrom = $validFrom; return $this; } - public function getValidTo(): TypeDate + public function getValidTo(): TypeDateNullable { return $this->validTo; } - public function setValidTo(TypeDate $validTo): static + public function setValidTo(TypeDateNullable $validTo): static { $this->validTo = $validTo; return $this; @@ -138,12 +138,12 @@ public function setDisplayFlag(bool $displayFlag): static return $this; } - public function getFlagColor(): ?TypeColor + public function getFlagColor(): TypeColor { return $this->flagColor; } - public function setFlagColor(?TypeColor $flagColor): static + public function setFlagColor(TypeColor $flagColor): static { $this->flagColor = $flagColor; return $this; @@ -160,12 +160,12 @@ public function setDisplayBanner(bool $displayBanner): static return $this; } - public function getBannerColor(): ?TypeColor + public function getBannerColor(): TypeColor { return $this->bannerColor; } - public function setBannerColor(?TypeColor $bannerColor): static + public function setBannerColor(TypeColor $bannerColor): static { $this->bannerColor = $bannerColor; return $this; diff --git a/src/Component/Entity/XyDiscount/CustomerGroups.php b/src/Component/Entity/XyDiscount/CustomerGroups.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/XyDiscount/CustomerGroups/Item.php b/src/Component/Entity/XyDiscount/CustomerGroups/Item.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/XyDiscountTargetingPostRequest.php b/src/Component/Entity/XyDiscountTargetingPostRequest.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/XyDiscountTargetingPostRequest/BrandCodes.php b/src/Component/Entity/XyDiscountTargetingPostRequest/BrandCodes.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/XyDiscountTargetingPostRequest/CategoryGuids.php b/src/Component/Entity/XyDiscountTargetingPostRequest/CategoryGuids.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/XyDiscountTargetingPostRequest/ProductGuids.php b/src/Component/Entity/XyDiscountTargetingPostRequest/ProductGuids.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/XyDiscountTargetingResponse.php b/src/Component/Entity/XyDiscountTargetingResponse.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/XyDiscountTargetingResponse/BrandCodes.php b/src/Component/Entity/XyDiscountTargetingResponse/BrandCodes.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/XyDiscountTargetingResponse/CategoryGuids.php b/src/Component/Entity/XyDiscountTargetingResponse/CategoryGuids.php old mode 100644 new mode 100755 diff --git a/src/Component/Entity/XyDiscountTargetingResponse/ProductGuids.php b/src/Component/Entity/XyDiscountTargetingResponse/ProductGuids.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/ConsumptionTaxId.php b/src/Component/ValueObject/ConsumptionTaxId.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeAmount.php b/src/Component/ValueObject/TypeAmount.php old mode 100644 new mode 100755 index 3fe9059..7dcf3f1 --- a/src/Component/ValueObject/TypeAmount.php +++ b/src/Component/ValueObject/TypeAmount.php @@ -7,11 +7,8 @@ readonly class TypeAmount implements ValueObjectInterface { public function __construct( - public ?string $typeAmount, + public string $typeAmount, ) { - if ($this->typeAmount === null) { - return; - } if (!preg_match('/^(-)?[0-9]+\.[0-9]{3}$/', $this->typeAmount)) { throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeAmount', $this->typeAmount)); } diff --git a/src/Component/ValueObject/TypeAmountNullable.php b/src/Component/ValueObject/TypeAmountNullable.php new file mode 100755 index 0000000..2621417 --- /dev/null +++ b/src/Component/ValueObject/TypeAmountNullable.php @@ -0,0 +1,29 @@ +typeAmountNullable === null) { + return; + } + if (!preg_match('/^(-)?[0-9]+\.[0-9]{3}$/', $this->typeAmountNullable)) { + throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeAmountNullable', $this->typeAmountNullable)); + } + } + + public function equals(self $typeAmountNullable): bool + { + return $typeAmountNullable->typeAmountNullable === $this->typeAmountNullable; + } + + public function __toString(): string + { + return (string) $this->typeAmountNullable; + } +} diff --git a/src/Component/ValueObject/TypeColor.php b/src/Component/ValueObject/TypeColor.php old mode 100644 new mode 100755 index 146f183..80c795f --- a/src/Component/ValueObject/TypeColor.php +++ b/src/Component/ValueObject/TypeColor.php @@ -7,8 +7,11 @@ readonly class TypeColor implements ValueObjectInterface { public function __construct( - public string $typeColor, + public ?string $typeColor, ) { + if ($this->typeColor === null) { + return; + } if (!preg_match('/^#?([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/', $this->typeColor)) { throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeColor', $this->typeColor)); } diff --git a/src/Component/ValueObject/TypeConstSymbol.php b/src/Component/ValueObject/TypeConstSymbol.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeConstSymbolNullable.php b/src/Component/ValueObject/TypeConstSymbolNullable.php new file mode 100755 index 0000000..4b6db8b --- /dev/null +++ b/src/Component/ValueObject/TypeConstSymbolNullable.php @@ -0,0 +1,29 @@ +typeConstSymbolNullable === null) { + return; + } + if (!preg_match('/^[0-9]{1,4}$/', $this->typeConstSymbolNullable)) { + throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeConstSymbolNullable', $this->typeConstSymbolNullable)); + } + } + + public function equals(self $typeConstSymbolNullable): bool + { + return $typeConstSymbolNullable->typeConstSymbolNullable === $this->typeConstSymbolNullable; + } + + public function __toString(): string + { + return (string) $this->typeConstSymbolNullable; + } +} diff --git a/src/Component/ValueObject/TypeCurrencyCode.php b/src/Component/ValueObject/TypeCurrencyCode.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeCurrencyCodeNullable.php b/src/Component/ValueObject/TypeCurrencyCodeNullable.php new file mode 100755 index 0000000..7cccd63 --- /dev/null +++ b/src/Component/ValueObject/TypeCurrencyCodeNullable.php @@ -0,0 +1,29 @@ +typeCurrencyCodeNullable === null) { + return; + } + if (!preg_match('/^[a-zA-Z]{3}$/', $this->typeCurrencyCodeNullable)) { + throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeCurrencyCodeNullable', $this->typeCurrencyCodeNullable)); + } + } + + public function equals(self $typeCurrencyCodeNullable): bool + { + return $typeCurrencyCodeNullable->typeCurrencyCodeNullable === $this->typeCurrencyCodeNullable; + } + + public function __toString(): string + { + return (string) $this->typeCurrencyCodeNullable; + } +} diff --git a/src/Component/ValueObject/TypeCustomerFieldValue.php b/src/Component/ValueObject/TypeCustomerFieldValue.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeDate.php b/src/Component/ValueObject/TypeDate.php old mode 100644 new mode 100755 index 3044d64..a04d31f --- a/src/Component/ValueObject/TypeDate.php +++ b/src/Component/ValueObject/TypeDate.php @@ -7,11 +7,8 @@ readonly class TypeDate implements ValueObjectInterface { public function __construct( - public ?string $typeDate, + public string $typeDate, ) { - if ($this->typeDate === null) { - return; - } if (!preg_match('/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/', $this->typeDate)) { throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeDate', $this->typeDate)); } diff --git a/src/Component/ValueObject/TypeDateNullable.php b/src/Component/ValueObject/TypeDateNullable.php new file mode 100755 index 0000000..ec4cc72 --- /dev/null +++ b/src/Component/ValueObject/TypeDateNullable.php @@ -0,0 +1,29 @@ +typeDateNullable === null) { + return; + } + if (!preg_match('/^[0-9]{4}-[0-9]{2}-[0-9]{2}$/', $this->typeDateNullable)) { + throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeDateNullable', $this->typeDateNullable)); + } + } + + public function equals(self $typeDateNullable): bool + { + return $typeDateNullable->typeDateNullable === $this->typeDateNullable; + } + + public function __toString(): string + { + return (string) $this->typeDateNullable; + } +} diff --git a/src/Component/ValueObject/TypeDateTime.php b/src/Component/ValueObject/TypeDateTime.php old mode 100644 new mode 100755 index 53eb29c..39eef7b --- a/src/Component/ValueObject/TypeDateTime.php +++ b/src/Component/ValueObject/TypeDateTime.php @@ -7,11 +7,8 @@ readonly class TypeDateTime implements ValueObjectInterface { public function __construct( - public ?string $typeDateTime, + public string $typeDateTime, ) { - if ($this->typeDateTime === null) { - return; - } if (!preg_match('/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0-5][0-9]:[0-5][0-9]\+[0-9]{4}$/', $this->typeDateTime)) { throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeDateTime', $this->typeDateTime)); } diff --git a/src/Component/ValueObject/TypeDateTimeNullable.php b/src/Component/ValueObject/TypeDateTimeNullable.php new file mode 100755 index 0000000..bb9e531 --- /dev/null +++ b/src/Component/ValueObject/TypeDateTimeNullable.php @@ -0,0 +1,29 @@ +typeDateTimeNullable === null) { + return; + } + if (!preg_match('/^[0-9]{4}-[01][0-9]-[0123][0-9]T[012][0-9]:[0-5][0-9]:[0-5][0-9]\+[0-9]{4}$/', $this->typeDateTimeNullable)) { + throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeDateTimeNullable', $this->typeDateTimeNullable)); + } + } + + public function equals(self $typeDateTimeNullable): bool + { + return $typeDateTimeNullable->typeDateTimeNullable === $this->typeDateTimeNullable; + } + + public function __toString(): string + { + return (string) $this->typeDateTimeNullable; + } +} diff --git a/src/Component/ValueObject/TypeDateTimeRequest.php b/src/Component/ValueObject/TypeDateTimeRequest.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeDimension.php b/src/Component/ValueObject/TypeDimension.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeExchangeRate.php b/src/Component/ValueObject/TypeExchangeRate.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeFilename.php b/src/Component/ValueObject/TypeFilename.php old mode 100644 new mode 100755 index 10c2b9c..5e5aa8a --- a/src/Component/ValueObject/TypeFilename.php +++ b/src/Component/ValueObject/TypeFilename.php @@ -9,7 +9,7 @@ public function __construct( public string $typeFilename, ) { - if (!preg_match('/^[0-9a-zA-Z\-.]+$/', $this->typeFilename)) { + if (!preg_match('/^[0-9a-zA-Z_\-.]+$/', $this->typeFilename)) { throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeFilename', $this->typeFilename)); } if (mb_strlen($this->typeFilename) < '1') { diff --git a/src/Component/ValueObject/TypeFilenameNullable.php b/src/Component/ValueObject/TypeFilenameNullable.php new file mode 100755 index 0000000..a1082fe --- /dev/null +++ b/src/Component/ValueObject/TypeFilenameNullable.php @@ -0,0 +1,35 @@ +typeFilenameNullable === null) { + return; + } + if (!preg_match('/^[0-9a-zA-Z_\-.]+$/', $this->typeFilenameNullable)) { + throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeFilenameNullable', $this->typeFilenameNullable)); + } + if (mb_strlen($this->typeFilenameNullable) < '1') { + throw new InvalidArgumentException(sprintf('%s "%s" is too short. %s should be at least %s characters long', 'typeFilenameNullable', $this->typeFilenameNullable, '1', 'typeFilenameNullable')); + } + if (mb_strlen($this->typeFilenameNullable) > '255') { + throw new InvalidArgumentException(sprintf('%s "%s" is too long. %s should be less than %s characters long', 'typeFilenameNullable', $this->typeFilenameNullable, '255', 'typeFilenameNullable')); + } + } + + public function equals(self $typeFilenameNullable): bool + { + return $typeFilenameNullable->typeFilenameNullable === $this->typeFilenameNullable; + } + + public function __toString(): string + { + return (string) $this->typeFilenameNullable; + } +} diff --git a/src/Component/ValueObject/TypeGuid.php b/src/Component/ValueObject/TypeGuid.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeGuidNullable.php b/src/Component/ValueObject/TypeGuidNullable.php new file mode 100755 index 0000000..771c379 --- /dev/null +++ b/src/Component/ValueObject/TypeGuidNullable.php @@ -0,0 +1,32 @@ +typeGuidNullable === null) { + return; + } + if (!preg_match('/^[0-9a-f]{8}-([0-9a-f]{4}-){3}[0-9a-f]{12}$/', $this->typeGuidNullable)) { + throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeGuidNullable', $this->typeGuidNullable)); + } + if (mb_strlen($this->typeGuidNullable) > '36') { + throw new InvalidArgumentException(sprintf('%s "%s" is too long. %s should be less than %s characters long', 'typeGuidNullable', $this->typeGuidNullable, '36', 'typeGuidNullable')); + } + } + + public function equals(self $typeGuidNullable): bool + { + return $typeGuidNullable->typeGuidNullable === $this->typeGuidNullable; + } + + public function __toString(): string + { + return (string) $this->typeGuidNullable; + } +} diff --git a/src/Component/ValueObject/TypeGuidUnlimited.php b/src/Component/ValueObject/TypeGuidUnlimited.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeNonEmptyString.php b/src/Component/ValueObject/TypeNonEmptyString.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypePositiveAmount.php b/src/Component/ValueObject/TypePositiveAmount.php old mode 100644 new mode 100755 index 5fa3393..f2e68c6 --- a/src/Component/ValueObject/TypePositiveAmount.php +++ b/src/Component/ValueObject/TypePositiveAmount.php @@ -7,11 +7,8 @@ readonly class TypePositiveAmount implements ValueObjectInterface { public function __construct( - public ?string $typePositiveAmount, + public string $typePositiveAmount, ) { - if ($this->typePositiveAmount === null) { - return; - } if (!preg_match('/^[0-9]+\.[0-9]{3}$/', $this->typePositiveAmount)) { throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typePositiveAmount', $this->typePositiveAmount)); } diff --git a/src/Component/ValueObject/TypePositiveAmountNullable.php b/src/Component/ValueObject/TypePositiveAmountNullable.php new file mode 100755 index 0000000..99617a7 --- /dev/null +++ b/src/Component/ValueObject/TypePositiveAmountNullable.php @@ -0,0 +1,29 @@ +typePositiveAmountNullable === null) { + return; + } + if (!preg_match('/^[0-9]+\.[0-9]{3}$/', $this->typePositiveAmountNullable)) { + throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typePositiveAmountNullable', $this->typePositiveAmountNullable)); + } + } + + public function equals(self $typePositiveAmountNullable): bool + { + return $typePositiveAmountNullable->typePositiveAmountNullable === $this->typePositiveAmountNullable; + } + + public function __toString(): string + { + return (string) $this->typePositiveAmountNullable; + } +} diff --git a/src/Component/ValueObject/TypePrice.php b/src/Component/ValueObject/TypePrice.php old mode 100644 new mode 100755 index b4e2b48..dc11329 --- a/src/Component/ValueObject/TypePrice.php +++ b/src/Component/ValueObject/TypePrice.php @@ -7,11 +7,8 @@ readonly class TypePrice implements ValueObjectInterface { public function __construct( - public ?string $typePrice, + public string $typePrice, ) { - if ($this->typePrice === null) { - return; - } if (!preg_match('/^(-)?[0-9]+\.[0-9]{2}$/', $this->typePrice)) { throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typePrice', $this->typePrice)); } diff --git a/src/Component/ValueObject/TypePriceNullable.php b/src/Component/ValueObject/TypePriceNullable.php new file mode 100755 index 0000000..1b3950e --- /dev/null +++ b/src/Component/ValueObject/TypePriceNullable.php @@ -0,0 +1,29 @@ +typePriceNullable === null) { + return; + } + if (!preg_match('/^(-)?[0-9]+\.[0-9]{2}$/', $this->typePriceNullable)) { + throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typePriceNullable', $this->typePriceNullable)); + } + } + + public function equals(self $typePriceNullable): bool + { + return $typePriceNullable->typePriceNullable === $this->typePriceNullable; + } + + public function __toString(): string + { + return (string) $this->typePriceNullable; + } +} diff --git a/src/Component/ValueObject/TypePriceRatio.php b/src/Component/ValueObject/TypePriceRatio.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeProductPriceRatio.php b/src/Component/ValueObject/TypeProductPriceRatio.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeUnitRatio.php b/src/Component/ValueObject/TypeUnitRatio.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeVariantCodeRequest.php b/src/Component/ValueObject/TypeVariantCodeRequest.php new file mode 100755 index 0000000..9f004c2 --- /dev/null +++ b/src/Component/ValueObject/TypeVariantCodeRequest.php @@ -0,0 +1,32 @@ +typeVariantCodeRequest)) { + throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeVariantCodeRequest', $this->typeVariantCodeRequest)); + } + if (mb_strlen($this->typeVariantCodeRequest) < '1') { + throw new InvalidArgumentException(sprintf('%s "%s" is too short. %s should be at least %s characters long', 'typeVariantCodeRequest', $this->typeVariantCodeRequest, '1', 'typeVariantCodeRequest')); + } + if (mb_strlen($this->typeVariantCodeRequest) > '64') { + throw new InvalidArgumentException(sprintf('%s "%s" is too long. %s should be less than %s characters long', 'typeVariantCodeRequest', $this->typeVariantCodeRequest, '64', 'typeVariantCodeRequest')); + } + } + + public function equals(self $typeVariantCodeRequest): bool + { + return $typeVariantCodeRequest->typeVariantCodeRequest === $this->typeVariantCodeRequest; + } + + public function __toString(): string + { + return (string) $this->typeVariantCodeRequest; + } +} diff --git a/src/Component/ValueObject/TypeVatRate.php b/src/Component/ValueObject/TypeVatRate.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeWeight.php b/src/Component/ValueObject/TypeWeight.php old mode 100644 new mode 100755 diff --git a/src/Component/ValueObject/TypeWeightRequest.php b/src/Component/ValueObject/TypeWeightRequest.php old mode 100644 new mode 100755 index 39d422b..26fd8c1 --- a/src/Component/ValueObject/TypeWeightRequest.php +++ b/src/Component/ValueObject/TypeWeightRequest.php @@ -7,8 +7,11 @@ readonly class TypeWeightRequest implements ValueObjectInterface { public function __construct( - public string $typeWeightRequest, + public ?string $typeWeightRequest, ) { + if ($this->typeWeightRequest === null) { + return; + } if (!preg_match('/^[0-9]{1,5}\.[0-9]{3}$/', $this->typeWeightRequest)) { throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeWeightRequest', $this->typeWeightRequest)); } diff --git a/src/Component/ValueObject/TypeWeightUnlimited.php b/src/Component/ValueObject/TypeWeightUnlimited.php old mode 100644 new mode 100755 index dae9b41..62f1981 --- a/src/Component/ValueObject/TypeWeightUnlimited.php +++ b/src/Component/ValueObject/TypeWeightUnlimited.php @@ -7,8 +7,11 @@ readonly class TypeWeightUnlimited implements ValueObjectInterface { public function __construct( - public string $typeWeightUnlimited, + public ?string $typeWeightUnlimited, ) { + if ($this->typeWeightUnlimited === null) { + return; + } if (!preg_match('/^[0-9]+\.[0-9]{3}$/', $this->typeWeightUnlimited)) { throw new InvalidArgumentException(sprintf('Invalid %s "%s".', 'typeWeightUnlimited', $this->typeWeightUnlimited)); } diff --git a/src/Component/ValueObject/ValueObjectInterface.php b/src/Component/ValueObject/ValueObjectInterface.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/AlternativeProducts/AddAlternativeProduct.php b/src/Endpoint/AlternativeProducts/AddAlternativeProduct.php new file mode 100755 index 0000000..bb945e6 --- /dev/null +++ b/src/Endpoint/AlternativeProducts/AddAlternativeProduct.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return AddAlternativeProductRequest::class; + } + + public function getResponseEntityClass(): string + { + return AddAlternativeProductResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/alternativeProducts'; + } +} diff --git a/src/Endpoint/AlternativeProducts/AddAlternativeProductRequest/AddAlternativeProductRequest.php b/src/Endpoint/AlternativeProducts/AddAlternativeProductRequest/AddAlternativeProductRequest.php new file mode 100755 index 0000000..14f2d2c --- /dev/null +++ b/src/Endpoint/AlternativeProducts/AddAlternativeProductRequest/AddAlternativeProductRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/AlternativeProducts/AddAlternativeProductRequest/AddAlternativeProductRequest/Data.php b/src/Endpoint/AlternativeProducts/AddAlternativeProductRequest/AddAlternativeProductRequest/Data.php new file mode 100755 index 0000000..5e06cd6 --- /dev/null +++ b/src/Endpoint/AlternativeProducts/AddAlternativeProductRequest/AddAlternativeProductRequest/Data.php @@ -0,0 +1,22 @@ +alternativeProduct; + } + + public function setAlternativeProduct(AlternativeProduct $alternativeProduct): static + { + $this->alternativeProduct = $alternativeProduct; + return $this; + } +} diff --git a/src/Endpoint/Products/AddAlternativeProductRequest/AddAlternativeProductRequest/Data/AlternativeProduct.php b/src/Endpoint/AlternativeProducts/AddAlternativeProductRequest/AddAlternativeProductRequest/Data/AlternativeProduct.php old mode 100644 new mode 100755 similarity index 77% rename from src/Endpoint/Products/AddAlternativeProductRequest/AddAlternativeProductRequest/Data/AlternativeProduct.php rename to src/Endpoint/AlternativeProducts/AddAlternativeProductRequest/AddAlternativeProductRequest/Data/AlternativeProduct.php index a8241c0..664ddbe --- a/src/Endpoint/Products/AddAlternativeProductRequest/AddAlternativeProductRequest/Data/AlternativeProduct.php +++ b/src/Endpoint/AlternativeProducts/AddAlternativeProductRequest/AddAlternativeProductRequest/Data/AlternativeProduct.php @@ -1,6 +1,6 @@ data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/AlternativeProducts/AddAlternativeProductResponse/AddAlternativeProductResponse/Data.php b/src/Endpoint/AlternativeProducts/AddAlternativeProductResponse/AddAlternativeProductResponse/Data.php new file mode 100755 index 0000000..73876e3 --- /dev/null +++ b/src/Endpoint/AlternativeProducts/AddAlternativeProductResponse/AddAlternativeProductResponse/Data.php @@ -0,0 +1,22 @@ +items; + } + + public function setItems(Items $items): static + { + $this->items = $items; + return $this; + } +} diff --git a/src/Endpoint/AlternativeProducts/AddAlternativeProductResponse/AddAlternativeProductResponse/Data/Items.php b/src/Endpoint/AlternativeProducts/AddAlternativeProductResponse/AddAlternativeProductResponse/Data/Items.php new file mode 100755 index 0000000..14d5e70 --- /dev/null +++ b/src/Endpoint/AlternativeProducts/AddAlternativeProductResponse/AddAlternativeProductResponse/Data/Items.php @@ -0,0 +1,31 @@ + + * @property RelatedProduct[] $data + * @method RelatedProduct[] toArray() + * @method void set(int $key, RelatedProduct $item) + * @method null|RelatedProduct get(int $key) + * @method void add(RelatedProduct $item) + * @method null|RelatedProduct remove(int $key) + * @method bool removeItem(RelatedProduct $item, bool $strict = true) + * @method bool contains(RelatedProduct $item, bool $strict = true) + * @method null|RelatedProduct offsetGet(int $offset) + * @method void offsetSet(int $offset, RelatedProduct $value) + */ +class Items extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\RelatedProduct'; + } +} diff --git a/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProducts.php b/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProducts.php new file mode 100755 index 0000000..92ab60d --- /dev/null +++ b/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProducts.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false, 'visible' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfProductAlternativeProductsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/alternativeProducts'; + } +} diff --git a/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse.php b/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse.php new file mode 100755 index 0000000..dd8d098 --- /dev/null +++ b/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data.php b/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data.php new file mode 100755 index 0000000..208f6c5 --- /dev/null +++ b/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data.php @@ -0,0 +1,22 @@ +items; + } + + public function setItems(Items $items): static + { + $this->items = $items; + return $this; + } +} diff --git a/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data/Items.php b/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data/Items.php new file mode 100755 index 0000000..0bdc3b3 --- /dev/null +++ b/src/Endpoint/AlternativeProducts/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data/Items.php @@ -0,0 +1,31 @@ + + * @property RelatedProduct[] $data + * @method RelatedProduct[] toArray() + * @method void set(int $key, RelatedProduct $item) + * @method null|RelatedProduct get(int $key) + * @method void add(RelatedProduct $item) + * @method null|RelatedProduct remove(int $key) + * @method bool removeItem(RelatedProduct $item, bool $strict = true) + * @method bool contains(RelatedProduct $item, bool $strict = true) + * @method null|RelatedProduct offsetGet(int $offset) + * @method void offsetSet(int $offset, RelatedProduct $value) + */ +class Items extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\RelatedProduct'; + } +} diff --git a/src/Endpoint/AlternativeProducts/SetAlternativeProducts.php b/src/Endpoint/AlternativeProducts/SetAlternativeProducts.php new file mode 100755 index 0000000..6eaa1b1 --- /dev/null +++ b/src/Endpoint/AlternativeProducts/SetAlternativeProducts.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return SetAlternativeProductsRequest::class; + } + + public function getResponseEntityClass(): string + { + return SetAlternativeProductsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/alternativeProducts'; + } +} diff --git a/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest.php b/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest.php new file mode 100755 index 0000000..e3a562b --- /dev/null +++ b/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data.php b/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data.php new file mode 100755 index 0000000..3bf9a35 --- /dev/null +++ b/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data.php @@ -0,0 +1,22 @@ +alternativeProducts; + } + + public function setAlternativeProducts(AlternativeProducts $alternativeProducts): static + { + $this->alternativeProducts = $alternativeProducts; + return $this; + } +} diff --git a/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts.php b/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts.php new file mode 100755 index 0000000..1257ac7 --- /dev/null +++ b/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts.php @@ -0,0 +1,31 @@ + + * @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 AlternativeProducts extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\AlternativeProducts\SetAlternativeProductsRequest\SetAlternativeProductsRequest\Data\AlternativeProducts\Item'; + } +} diff --git a/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts/Item.php b/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts/Item.php new file mode 100755 index 0000000..f78791c --- /dev/null +++ b/src/Endpoint/AlternativeProducts/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts/Item.php @@ -0,0 +1,22 @@ +guid; + } + + public function setGuid(TypeGuidUnlimited $guid): static + { + $this->guid = $guid; + return $this; + } +} diff --git a/src/Endpoint/AlternativeProducts/SetAlternativeProductsResponse/SetAlternativeProductsResponse.php b/src/Endpoint/AlternativeProducts/SetAlternativeProductsResponse/SetAlternativeProductsResponse.php new file mode 100755 index 0000000..86e2561 --- /dev/null +++ b/src/Endpoint/AlternativeProducts/SetAlternativeProductsResponse/SetAlternativeProductsResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/AlternativeProducts/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data.php b/src/Endpoint/AlternativeProducts/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data.php new file mode 100755 index 0000000..5d29f8e --- /dev/null +++ b/src/Endpoint/AlternativeProducts/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data.php @@ -0,0 +1,22 @@ +items; + } + + public function setItems(Items $items): static + { + $this->items = $items; + return $this; + } +} diff --git a/src/Endpoint/AlternativeProducts/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data/Items.php b/src/Endpoint/AlternativeProducts/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data/Items.php new file mode 100755 index 0000000..e14779a --- /dev/null +++ b/src/Endpoint/AlternativeProducts/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data/Items.php @@ -0,0 +1,31 @@ + + * @property RelatedProduct[] $data + * @method RelatedProduct[] toArray() + * @method void set(int $key, RelatedProduct $item) + * @method null|RelatedProduct get(int $key) + * @method void add(RelatedProduct $item) + * @method null|RelatedProduct remove(int $key) + * @method bool removeItem(RelatedProduct $item, bool $strict = true) + * @method bool contains(RelatedProduct $item, bool $strict = true) + * @method null|RelatedProduct offsetGet(int $offset) + * @method void offsetSet(int $offset, RelatedProduct $value) + */ +class Items extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\RelatedProduct'; + } +} diff --git a/src/Endpoint/Articles/CreateArticle.php b/src/Endpoint/Articles/CreateArticle.php old mode 100644 new mode 100755 index a07616a..baa9f35 --- a/src/Endpoint/Articles/CreateArticle.php +++ b/src/Endpoint/Articles/CreateArticle.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Articles/createarticle + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/createarticle * * @method CreateArticle setBody(null|array|CreateArticleRequest $entity) * @method null|CreateArticleRequest getBody() diff --git a/src/Endpoint/Articles/CreateArticleRequest/CreateArticleRequest.php b/src/Endpoint/Articles/CreateArticleRequest/CreateArticleRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Articles/CreateArticleRequest/CreateArticleRequest/Data.php b/src/Endpoint/Articles/CreateArticleRequest/CreateArticleRequest/Data.php old mode 100644 new mode 100755 index f931b80..ea831d4 --- a/src/Endpoint/Articles/CreateArticleRequest/CreateArticleRequest/Data.php +++ b/src/Endpoint/Articles/CreateArticleRequest/CreateArticleRequest/Data.php @@ -4,7 +4,7 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeRequest; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeFilename; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeFilenameNullable; use Shoptet\Api\Sdk\Php\Endpoint\Articles\CreateArticleRequest\CreateArticleRequest\Data\SectionIds; class Data extends Entity @@ -24,8 +24,8 @@ class Data extends Entity protected ?TypeDateTimeRequest $publishDate; protected ?bool $visible; protected ?string $access; - protected ?TypeFilename $sourceImageName; - protected ?TypeFilename $sourceOgImageName; + protected ?TypeFilenameNullable $sourceImageName; + protected ?TypeFilenameNullable $sourceOgImageName; public function getTitle(): string { @@ -176,23 +176,23 @@ public function setAccess(?string $access): static return $this; } - public function getSourceImageName(): ?TypeFilename + public function getSourceImageName(): ?TypeFilenameNullable { return $this->sourceImageName; } - public function setSourceImageName(?TypeFilename $sourceImageName): static + public function setSourceImageName(?TypeFilenameNullable $sourceImageName): static { $this->sourceImageName = $sourceImageName; return $this; } - public function getSourceOgImageName(): ?TypeFilename + public function getSourceOgImageName(): ?TypeFilenameNullable { return $this->sourceOgImageName; } - public function setSourceOgImageName(?TypeFilename $sourceOgImageName): static + public function setSourceOgImageName(?TypeFilenameNullable $sourceOgImageName): static { $this->sourceOgImageName = $sourceOgImageName; return $this; diff --git a/src/Endpoint/Articles/CreateArticleRequest/CreateArticleRequest/Data/SectionIds.php b/src/Endpoint/Articles/CreateArticleRequest/CreateArticleRequest/Data/SectionIds.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Articles/CreateArticleResponse/CreateArticleResponse.php b/src/Endpoint/Articles/CreateArticleResponse/CreateArticleResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Articles/CreateArticleResponse/CreateArticleResponse/Data.php b/src/Endpoint/Articles/CreateArticleResponse/CreateArticleResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Articles/CreateArticleSection.php b/src/Endpoint/Articles/CreateArticleSection.php old mode 100644 new mode 100755 index d6b7bf0..7a0f519 --- a/src/Endpoint/Articles/CreateArticleSection.php +++ b/src/Endpoint/Articles/CreateArticleSection.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Articles/createarticlesection + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/createarticlesection * * @method CreateArticleSection setBody(null|array|CreateArticleSectionRequest $entity) * @method null|CreateArticleSectionRequest getBody() diff --git a/src/Endpoint/Articles/CreateArticleSectionRequest/CreateArticleSectionRequest.php b/src/Endpoint/Articles/CreateArticleSectionRequest/CreateArticleSectionRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Articles/CreateArticleSectionRequest/CreateArticleSectionRequest/Data.php b/src/Endpoint/Articles/CreateArticleSectionRequest/CreateArticleSectionRequest/Data.php old mode 100644 new mode 100755 index 4dd16b8..308ad16 --- a/src/Endpoint/Articles/CreateArticleSectionRequest/CreateArticleSectionRequest/Data.php +++ b/src/Endpoint/Articles/CreateArticleSectionRequest/CreateArticleSectionRequest/Data.php @@ -3,6 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Articles\CreateArticleSectionRequest\CreateArticleSectionRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeFilenameNullable; class Data extends Entity { @@ -24,6 +25,8 @@ class Data extends Entity protected ?string $metaDescription; protected ?bool $visible; protected ?string $access; + protected ?TypeFilenameNullable $sourceImageName; + protected ?TypeFilenameNullable $sourceOgImageName; public function getTitle(): string { @@ -222,4 +225,26 @@ public function setAccess(?string $access): static $this->access = $access; return $this; } + + public function getSourceImageName(): ?TypeFilenameNullable + { + return $this->sourceImageName; + } + + public function setSourceImageName(?TypeFilenameNullable $sourceImageName): static + { + $this->sourceImageName = $sourceImageName; + return $this; + } + + public function getSourceOgImageName(): ?TypeFilenameNullable + { + return $this->sourceOgImageName; + } + + public function setSourceOgImageName(?TypeFilenameNullable $sourceOgImageName): static + { + $this->sourceOgImageName = $sourceOgImageName; + return $this; + } } diff --git a/src/Endpoint/Articles/CreateArticleSectionResponse/CreateArticleSectionResponse.php b/src/Endpoint/Articles/CreateArticleSectionResponse/CreateArticleSectionResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Articles/CreateArticleSectionResponse/CreateArticleSectionResponse/Data.php b/src/Endpoint/Articles/CreateArticleSectionResponse/CreateArticleSectionResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Articles/DeleteArticle.php b/src/Endpoint/Articles/DeleteArticle.php old mode 100644 new mode 100755 index 13eebb6..a01bbd6 --- a/src/Endpoint/Articles/DeleteArticle.php +++ b/src/Endpoint/Articles/DeleteArticle.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Delete; /** - * @see https://api.docs.shoptet.com/openapi/Articles/deletearticle + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/deletearticle * * @method DeleteArticle setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Articles/DeleteArticleResponse/DeleteArticleResponse.php b/src/Endpoint/Articles/DeleteArticleResponse/DeleteArticleResponse.php old mode 100644 new mode 100755 index 82443cd..81e03f4 --- a/src/Endpoint/Articles/DeleteArticleResponse/DeleteArticleResponse.php +++ b/src/Endpoint/Articles/DeleteArticleResponse/DeleteArticleResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\Articles\DeleteArticleResponse\DeleteArticleResponse\Data; class DeleteArticleResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Articles/DeleteArticleResponse/DeleteArticleResponse/Data.php b/src/Endpoint/Articles/DeleteArticleResponse/DeleteArticleResponse/Data.php new file mode 100755 index 0000000..e8284c7 --- /dev/null +++ b/src/Endpoint/Articles/DeleteArticleResponse/DeleteArticleResponse/Data.php @@ -0,0 +1,9 @@ +data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Articles/DeleteArticleSectionResponse/DeleteArticleSectionResponse/Data.php b/src/Endpoint/Articles/DeleteArticleSectionResponse/DeleteArticleSectionResponse/Data.php new file mode 100755 index 0000000..83414c8 --- /dev/null +++ b/src/Endpoint/Articles/DeleteArticleSectionResponse/DeleteArticleSectionResponse/Data.php @@ -0,0 +1,9 @@ +sourceImageName; } - public function setSourceImageName(?TypeFilename $sourceImageName): static + public function setSourceImageName(?TypeFilenameNullable $sourceImageName): static { $this->sourceImageName = $sourceImageName; return $this; } - public function getSourceOgImageName(): ?TypeFilename + public function getSourceOgImageName(): ?TypeFilenameNullable { return $this->sourceOgImageName; } - public function setSourceOgImageName(?TypeFilename $sourceOgImageName): static + public function setSourceOgImageName(?TypeFilenameNullable $sourceOgImageName): static { $this->sourceOgImageName = $sourceOgImageName; return $this; diff --git a/src/Endpoint/Articles/UpdateArticleRequest/UpdateArticleRequest/Data/SectionIds.php b/src/Endpoint/Articles/UpdateArticleRequest/UpdateArticleRequest/Data/SectionIds.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Articles/UpdateArticleResponse/UpdateArticleResponse.php b/src/Endpoint/Articles/UpdateArticleResponse/UpdateArticleResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Articles/UpdateArticleResponse/UpdateArticleResponse/Data.php b/src/Endpoint/Articles/UpdateArticleResponse/UpdateArticleResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Articles/UpdateArticleSection.php b/src/Endpoint/Articles/UpdateArticleSection.php old mode 100644 new mode 100755 index 95ddd81..ddebbb1 --- a/src/Endpoint/Articles/UpdateArticleSection.php +++ b/src/Endpoint/Articles/UpdateArticleSection.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Patch; /** - * @see https://api.docs.shoptet.com/openapi/Articles/updatearticlesection + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/updatearticlesection * * @method UpdateArticleSection setBody(null|array|UpdateArticleSectionRequest $entity) * @method null|UpdateArticleSectionRequest getBody() diff --git a/src/Endpoint/Articles/UpdateArticleSectionRequest/UpdateArticleSectionRequest.php b/src/Endpoint/Articles/UpdateArticleSectionRequest/UpdateArticleSectionRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Articles/UpdateArticleSectionRequest/UpdateArticleSectionRequest/Data.php b/src/Endpoint/Articles/UpdateArticleSectionRequest/UpdateArticleSectionRequest/Data.php old mode 100644 new mode 100755 index 6eb0555..c0f0330 --- a/src/Endpoint/Articles/UpdateArticleSectionRequest/UpdateArticleSectionRequest/Data.php +++ b/src/Endpoint/Articles/UpdateArticleSectionRequest/UpdateArticleSectionRequest/Data.php @@ -3,6 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Articles\UpdateArticleSectionRequest\UpdateArticleSectionRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeFilenameNullable; class Data extends Entity { @@ -23,6 +24,8 @@ class Data extends Entity protected ?string $metaDescription; protected ?bool $visible; protected ?string $access; + protected ?TypeFilenameNullable $sourceImageName; + protected ?TypeFilenameNullable $sourceOgImageName; public function getTitle(): ?string { @@ -210,4 +213,26 @@ public function setAccess(?string $access): static $this->access = $access; return $this; } + + public function getSourceImageName(): ?TypeFilenameNullable + { + return $this->sourceImageName; + } + + public function setSourceImageName(?TypeFilenameNullable $sourceImageName): static + { + $this->sourceImageName = $sourceImageName; + return $this; + } + + public function getSourceOgImageName(): ?TypeFilenameNullable + { + return $this->sourceOgImageName; + } + + public function setSourceOgImageName(?TypeFilenameNullable $sourceOgImageName): static + { + $this->sourceOgImageName = $sourceOgImageName; + return $this; + } } diff --git a/src/Endpoint/Articles/UpdateArticleSectionResponse/UpdateArticleSectionResponse.php b/src/Endpoint/Articles/UpdateArticleSectionResponse/UpdateArticleSectionResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Articles/UpdateArticleSectionResponse/UpdateArticleSectionResponse/Data.php b/src/Endpoint/Articles/UpdateArticleSectionResponse/UpdateArticleSectionResponse/Data.php old mode 100644 new mode 100755 index 72f2221..ad9b0fb --- a/src/Endpoint/Articles/UpdateArticleSectionResponse/UpdateArticleSectionResponse/Data.php +++ b/src/Endpoint/Articles/UpdateArticleSectionResponse/UpdateArticleSectionResponse/Data.php @@ -2,21 +2,21 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Articles\UpdateArticleSectionResponse\UpdateArticleSectionResponse; -use Shoptet\Api\Sdk\Php\Component\Entity\Article; +use Shoptet\Api\Sdk\Php\Component\Entity\ArticleSection; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; class Data extends Entity { - protected Article $article; + protected ArticleSection $articleSection; - public function getArticle(): Article + public function getArticleSection(): ArticleSection { - return $this->article; + return $this->articleSection; } - public function setArticle(Article $article): static + public function setArticleSection(ArticleSection $articleSection): static { - $this->article = $article; + $this->articleSection = $articleSection; return $this; } } diff --git a/src/Endpoint/Brands/CreateBrand.php b/src/Endpoint/Brands/CreateBrand.php old mode 100644 new mode 100755 index abe3cf7..a522009 --- a/src/Endpoint/Brands/CreateBrand.php +++ b/src/Endpoint/Brands/CreateBrand.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Brands/createbrand + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/createbrand * * @method CreateBrand setBody(null|array|CreateBrandRequest $entity) * @method null|CreateBrandRequest getBody() diff --git a/src/Endpoint/Brands/CreateBrandBatch.php b/src/Endpoint/Brands/CreateBrandBatch.php old mode 100644 new mode 100755 index 24ae590..9806846 --- a/src/Endpoint/Brands/CreateBrandBatch.php +++ b/src/Endpoint/Brands/CreateBrandBatch.php @@ -8,7 +8,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Brands/createbrandbatch + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/createbrandbatch * * @method CreateBrandBatch setBody(null|array|CreateBrandBatchRequest $entity) * @method null|CreateBrandBatchRequest getBody() diff --git a/src/Endpoint/Brands/CreateBrandBatchRequest/CreateBrandBatchRequest.php b/src/Endpoint/Brands/CreateBrandBatchRequest/CreateBrandBatchRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Brands/CreateBrandBatchResponse/CreateBrandBatchResponse.php b/src/Endpoint/Brands/CreateBrandBatchResponse/CreateBrandBatchResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Brands/CreateBrandBatchResponse/CreateBrandBatchResponse/Data.php b/src/Endpoint/Brands/CreateBrandBatchResponse/CreateBrandBatchResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Brands/CreateBrandRequest/CreateBrandRequest.php b/src/Endpoint/Brands/CreateBrandRequest/CreateBrandRequest.php old mode 100644 new mode 100755 index 7b69559..4efe613 --- a/src/Endpoint/Brands/CreateBrandRequest/CreateBrandRequest.php +++ b/src/Endpoint/Brands/CreateBrandRequest/CreateBrandRequest.php @@ -2,19 +2,19 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Brands\CreateBrandRequest; +use Shoptet\Api\Sdk\Php\Component\Entity\BrandCreate; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Endpoint\Brands\CreateBrandRequest\CreateBrandRequest\Data; class CreateBrandRequest extends Entity { - protected Data $data; + protected BrandCreate $data; - public function getData(): Data + public function getData(): BrandCreate { return $this->data; } - public function setData(Data $data): static + public function setData(BrandCreate $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Brands/CreateBrandRequest/CreateBrandRequest/Data.php b/src/Endpoint/Brands/CreateBrandRequest/CreateBrandRequest/Data.php deleted file mode 100644 index 5d52d16..0000000 --- a/src/Endpoint/Brands/CreateBrandRequest/CreateBrandRequest/Data.php +++ /dev/null @@ -1,178 +0,0 @@ -name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getIndexName(): ?string - { - return $this->indexName; - } - - public function setIndexName(?string $indexName): static - { - $this->indexName = $indexName; - return $this; - } - - public function getBrandWeb(): ?string - { - return $this->brandWeb; - } - - public function setBrandWeb(?string $brandWeb): static - { - $this->brandWeb = $brandWeb; - return $this; - } - - public function getPostalAddress(): ?string - { - return $this->postalAddress; - } - - public function setPostalAddress(?string $postalAddress): static - { - $this->postalAddress = $postalAddress; - return $this; - } - - public function getContactEmail(): ?string - { - return $this->contactEmail; - } - - public function setContactEmail(?string $contactEmail): static - { - $this->contactEmail = $contactEmail; - return $this; - } - - public function getEuropeanResellerPostalAddress(): ?string - { - return $this->europeanResellerPostalAddress; - } - - public function setEuropeanResellerPostalAddress(?string $europeanResellerPostalAddress): static - { - $this->europeanResellerPostalAddress = $europeanResellerPostalAddress; - return $this; - } - - public function getEuropeanResellerContactEmail(): ?string - { - return $this->europeanResellerContactEmail; - } - - public function setEuropeanResellerContactEmail(?string $europeanResellerContactEmail): static - { - $this->europeanResellerContactEmail = $europeanResellerContactEmail; - return $this; - } - - public function getManufacturingCompanyName(): ?string - { - return $this->manufacturingCompanyName; - } - - public function setManufacturingCompanyName(?string $manufacturingCompanyName): static - { - $this->manufacturingCompanyName = $manufacturingCompanyName; - return $this; - } - - public function getEuropeanResellerManufacturingCompanyName(): ?string - { - return $this->europeanResellerManufacturingCompanyName; - } - - public function setEuropeanResellerManufacturingCompanyName( - ?string $europeanResellerManufacturingCompanyName, - ): static { - $this->europeanResellerManufacturingCompanyName = $europeanResellerManufacturingCompanyName; - return $this; - } - - public function getShowInCategoriesMenu(): ?bool - { - return $this->showInCategoriesMenu; - } - - public function setShowInCategoriesMenu(?bool $showInCategoriesMenu): static - { - $this->showInCategoriesMenu = $showInCategoriesMenu; - return $this; - } - - public function getShowInBrandList(): ?bool - { - return $this->showInBrandList; - } - - public function setShowInBrandList(?bool $showInBrandList): static - { - $this->showInBrandList = $showInBrandList; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getMetaTitle(): ?string - { - return $this->metaTitle; - } - - public function setMetaTitle(?string $metaTitle): static - { - $this->metaTitle = $metaTitle; - return $this; - } - - public function getMetaDescription(): ?string - { - return $this->metaDescription; - } - - public function setMetaDescription(?string $metaDescription): static - { - $this->metaDescription = $metaDescription; - return $this; - } -} diff --git a/src/Endpoint/Brands/CreateBrandResponse/CreateBrandResponse.php b/src/Endpoint/Brands/CreateBrandResponse/CreateBrandResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Brands/DeleteBrand.php b/src/Endpoint/Brands/DeleteBrand.php old mode 100644 new mode 100755 index 6ab06c6..e2aa05b --- a/src/Endpoint/Brands/DeleteBrand.php +++ b/src/Endpoint/Brands/DeleteBrand.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Delete; /** - * @see https://api.docs.shoptet.com/openapi/Brands/deletebrand + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/deletebrand * * @method DeleteBrand setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Brands/DeleteBrandResponse/DeleteBrandResponse.php b/src/Endpoint/Brands/DeleteBrandResponse/DeleteBrandResponse.php old mode 100644 new mode 100755 index 00a1f01..b37dd7a --- a/src/Endpoint/Brands/DeleteBrandResponse/DeleteBrandResponse.php +++ b/src/Endpoint/Brands/DeleteBrandResponse/DeleteBrandResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\Brands\DeleteBrandResponse\DeleteBrandResponse\Data; class DeleteBrandResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Brands/DeleteBrandResponse/DeleteBrandResponse/Data.php b/src/Endpoint/Brands/DeleteBrandResponse/DeleteBrandResponse/Data.php new file mode 100755 index 0000000..d704878 --- /dev/null +++ b/src/Endpoint/Brands/DeleteBrandResponse/DeleteBrandResponse/Data.php @@ -0,0 +1,9 @@ + false]; + + public function getRequestEntityClass(): string + { + return CreateProductCategoryRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateProductCategoryResponse::class; + } + + public function getEndpoint(): string + { + return '/api/categories'; + } +} diff --git a/src/Endpoint/Categories/CreateProductCategoryRequest/CreateProductCategoryRequest.php b/src/Endpoint/Categories/CreateProductCategoryRequest/CreateProductCategoryRequest.php new file mode 100755 index 0000000..1a8d565 --- /dev/null +++ b/src/Endpoint/Categories/CreateProductCategoryRequest/CreateProductCategoryRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/Categories/CreateProductCategoryRequest/CreateProductCategoryRequest/Data.php b/src/Endpoint/Categories/CreateProductCategoryRequest/CreateProductCategoryRequest/Data.php new file mode 100755 index 0000000..bb52a0c --- /dev/null +++ b/src/Endpoint/Categories/CreateProductCategoryRequest/CreateProductCategoryRequest/Data.php @@ -0,0 +1,236 @@ +guid; + } + + public function setGuid(?TypeGuid $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getParentGuid(): ?TypeGuidNullable + { + return $this->parentGuid; + } + + public function setParentGuid(?TypeGuidNullable $parentGuid): static + { + $this->parentGuid = $parentGuid; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getSecondDescription(): ?string + { + return $this->secondDescription; + } + + public function setSecondDescription(?string $secondDescription): static + { + $this->secondDescription = $secondDescription; + return $this; + } + + /** + * @deprecated + */ + public function getImageName(): ?string + { + return $this->imageName; + } + + /** + * @deprecated + */ + public function setImageName(?string $imageName): static + { + $this->imageName = $imageName; + return $this; + } + + public function getSourceImageName(): ?TypeFilenameNullable + { + return $this->sourceImageName; + } + + public function setSourceImageName(?TypeFilenameNullable $sourceImageName): static + { + $this->sourceImageName = $sourceImageName; + return $this; + } + + public function getSortBefore(): ?TypeGuid + { + return $this->sortBefore; + } + + public function setSortBefore(?TypeGuid $sortBefore): static + { + $this->sortBefore = $sortBefore; + return $this; + } + + public function getSortAfter(): ?TypeGuid + { + return $this->sortAfter; + } + + public function setSortAfter(?TypeGuid $sortAfter): static + { + $this->sortAfter = $sortAfter; + return $this; + } + + public function getIndexName(): ?string + { + return $this->indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getMenuTitle(): ?string + { + return $this->menuTitle; + } + + public function setMenuTitle(?string $menuTitle): static + { + $this->menuTitle = $menuTitle; + return $this; + } + + public function getTitle(): ?string + { + return $this->title; + } + + public function setTitle(?string $title): static + { + $this->title = $title; + return $this; + } + + public function getMetaTagDescription(): ?string + { + return $this->metaTagDescription; + } + + public function setMetaTagDescription(?string $metaTagDescription): static + { + $this->metaTagDescription = $metaTagDescription; + return $this; + } + + public function getVisible(): ?bool + { + return $this->visible; + } + + public function setVisible(?bool $visible): static + { + $this->visible = $visible; + return $this; + } + + public function getCustomerVisibility(): ?string + { + return $this->customerVisibility; + } + + public function setCustomerVisibility(?string $customerVisibility): static + { + $this->customerVisibility = $customerVisibility; + return $this; + } + + public function getProductOrdering(): ?string + { + return $this->productOrdering; + } + + public function setProductOrdering(?string $productOrdering): static + { + $this->productOrdering = $productOrdering; + return $this; + } + + public function getSimilarProductsCategory(): ?TypeGuidNullable + { + return $this->similarProductsCategory; + } + + public function setSimilarProductsCategory(?TypeGuidNullable $similarProductsCategory): static + { + $this->similarProductsCategory = $similarProductsCategory; + return $this; + } + + public function getRelatedProductsCategory(): ?TypeGuidNullable + { + return $this->relatedProductsCategory; + } + + public function setRelatedProductsCategory(?TypeGuidNullable $relatedProductsCategory): static + { + $this->relatedProductsCategory = $relatedProductsCategory; + return $this; + } +} diff --git a/src/Endpoint/Products/CreateProductCategoryResponse/CreateProductCategoryResponse.php b/src/Endpoint/Categories/CreateProductCategoryResponse/CreateProductCategoryResponse.php old mode 100644 new mode 100755 similarity index 89% rename from src/Endpoint/Products/CreateProductCategoryResponse/CreateProductCategoryResponse.php rename to src/Endpoint/Categories/CreateProductCategoryResponse/CreateProductCategoryResponse.php index 2db04c1..cb81917 --- a/src/Endpoint/Products/CreateProductCategoryResponse/CreateProductCategoryResponse.php +++ b/src/Endpoint/Categories/CreateProductCategoryResponse/CreateProductCategoryResponse.php @@ -1,6 +1,6 @@ true]; + protected array $supportedQueryParams = ['language' => false, 'deleteUsed' => false, 'deleteChildren' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteProductCategoryResponse::class; + } + + public function getEndpoint(): string + { + return '/api/categories/{categoryGuid}'; + } +} diff --git a/src/Endpoint/Categories/DeleteProductCategoryResponse/DeleteProductCategoryResponse.php b/src/Endpoint/Categories/DeleteProductCategoryResponse/DeleteProductCategoryResponse.php new file mode 100755 index 0000000..017859f --- /dev/null +++ b/src/Endpoint/Categories/DeleteProductCategoryResponse/DeleteProductCategoryResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Categories/DeleteProductCategoryResponse/DeleteProductCategoryResponse/Data.php b/src/Endpoint/Categories/DeleteProductCategoryResponse/DeleteProductCategoryResponse/Data.php new file mode 100755 index 0000000..201a2f2 --- /dev/null +++ b/src/Endpoint/Categories/DeleteProductCategoryResponse/DeleteProductCategoryResponse/Data.php @@ -0,0 +1,9 @@ + false, 'page' => false, 'itemsPerPage' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfProductCategoriesResponse::class; + } + + public function getEndpoint(): string + { + return '/api/categories'; + } +} diff --git a/src/Endpoint/Products/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse.php b/src/Endpoint/Categories/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse.php old mode 100644 new mode 100755 similarity index 75% rename from src/Endpoint/Products/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse.php rename to src/Endpoint/Categories/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse.php index 69840e4..dd98020 --- a/src/Endpoint/Products/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse.php +++ b/src/Endpoint/Categories/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse.php @@ -1,10 +1,10 @@ categories; + } + + public function setCategories(Categories $categories): static + { + $this->categories = $categories; + return $this; + } + + public function getPaginator(): Paginator + { + return $this->paginator; + } + + public function setPaginator(Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/Products/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse/Data/Categories.php b/src/Endpoint/Categories/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse/Data/Categories.php old mode 100644 new mode 100755 similarity index 87% rename from src/Endpoint/Products/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse/Data/Categories.php rename to src/Endpoint/Categories/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse/Data/Categories.php index 62b44cc..a5eba44 --- a/src/Endpoint/Products/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse/Data/Categories.php +++ b/src/Endpoint/Categories/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse/Data/Categories.php @@ -1,6 +1,6 @@ true]; + protected array $supportedQueryParams = ['language' => false, 'page' => false, 'itemsPerPage' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfProductsOrderInCategoryResponse::class; + } + + public function getEndpoint(): string + { + return '/api/categories/{categoryGuid}/productsPriority'; + } +} diff --git a/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse.php b/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse.php new file mode 100755 index 0000000..6fecd47 --- /dev/null +++ b/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data.php b/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data.php new file mode 100755 index 0000000..aefc11f --- /dev/null +++ b/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data.php @@ -0,0 +1,35 @@ +categoryProducts; + } + + public function setCategoryProducts(CategoryProducts $categoryProducts): static + { + $this->categoryProducts = $categoryProducts; + return $this; + } + + public function getPaginator(): Paginator + { + return $this->paginator; + } + + public function setPaginator(Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts.php b/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts.php new file mode 100755 index 0000000..19a7fb4 --- /dev/null +++ b/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts.php @@ -0,0 +1,31 @@ + + * @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 CategoryProducts extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Categories\GetListOfProductsOrderInCategoryResponse\GetListOfProductsOrderInCategoryResponse\Data\CategoryProducts\Item'; + } +} diff --git a/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts/Item.php b/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts/Item.php new file mode 100755 index 0000000..0e42b94 --- /dev/null +++ b/src/Endpoint/Categories/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts/Item.php @@ -0,0 +1,34 @@ +productGuid; + } + + public function setProductGuid(TypeGuid $productGuid): static + { + $this->productGuid = $productGuid; + return $this; + } + + public function getPriority(): ?float + { + return $this->priority; + } + + public function setPriority(?float $priority): static + { + $this->priority = $priority; + return $this; + } +} diff --git a/src/Endpoint/Categories/GetProductCategoryDetail.php b/src/Endpoint/Categories/GetProductCategoryDetail.php new file mode 100755 index 0000000..1ec3768 --- /dev/null +++ b/src/Endpoint/Categories/GetProductCategoryDetail.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetProductCategoryDetailResponse::class; + } + + public function getEndpoint(): string + { + return '/api/categories/{categoryGuid}'; + } +} diff --git a/src/Endpoint/Products/GetProductCategoryDetailResponse/GetProductCategoryDetailResponse.php b/src/Endpoint/Categories/GetProductCategoryDetailResponse/GetProductCategoryDetailResponse.php old mode 100644 new mode 100755 similarity index 89% rename from src/Endpoint/Products/GetProductCategoryDetailResponse/GetProductCategoryDetailResponse.php rename to src/Endpoint/Categories/GetProductCategoryDetailResponse/GetProductCategoryDetailResponse.php index a1d989b..02c344a --- a/src/Endpoint/Products/GetProductCategoryDetailResponse/GetProductCategoryDetailResponse.php +++ b/src/Endpoint/Categories/GetProductCategoryDetailResponse/GetProductCategoryDetailResponse.php @@ -1,6 +1,6 @@ true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateProductCategoryRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateProductCategoryResponse::class; + } + + public function getEndpoint(): string + { + return '/api/categories/{categoryGuid}'; + } +} diff --git a/src/Endpoint/Categories/UpdateProductCategoryBatch.php b/src/Endpoint/Categories/UpdateProductCategoryBatch.php new file mode 100755 index 0000000..e1b1dfe --- /dev/null +++ b/src/Endpoint/Categories/UpdateProductCategoryBatch.php @@ -0,0 +1,35 @@ + false]; + + public function getRequestEntityClass(): string + { + return UpdateProductCategoryBatchRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateProductCategoryBatchResponse::class; + } + + public function getEndpoint(): string + { + return '/api/categories/batch'; + } +} diff --git a/src/Endpoint/Products/UpdateProductCategoryBatchRequest/UpdateProductCategoryBatchRequest.php b/src/Endpoint/Categories/UpdateProductCategoryBatchRequest/UpdateProductCategoryBatchRequest.php old mode 100644 new mode 100755 similarity index 83% rename from src/Endpoint/Products/UpdateProductCategoryBatchRequest/UpdateProductCategoryBatchRequest.php rename to src/Endpoint/Categories/UpdateProductCategoryBatchRequest/UpdateProductCategoryBatchRequest.php index bd5ef25..550dce5 --- a/src/Endpoint/Products/UpdateProductCategoryBatchRequest/UpdateProductCategoryBatchRequest.php +++ b/src/Endpoint/Categories/UpdateProductCategoryBatchRequest/UpdateProductCategoryBatchRequest.php @@ -1,6 +1,6 @@ jobId; + } + + public function setJobId(string $jobId): static + { + $this->jobId = $jobId; + return $this; + } +} diff --git a/src/Endpoint/Categories/UpdateProductCategoryRequest/UpdateProductCategoryRequest.php b/src/Endpoint/Categories/UpdateProductCategoryRequest/UpdateProductCategoryRequest.php new file mode 100755 index 0000000..d67d1f5 --- /dev/null +++ b/src/Endpoint/Categories/UpdateProductCategoryRequest/UpdateProductCategoryRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(CategoryUpdate $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/Products/UpdateProductCategoryResponse/UpdateProductCategoryResponse.php b/src/Endpoint/Categories/UpdateProductCategoryResponse/UpdateProductCategoryResponse.php old mode 100644 new mode 100755 similarity index 89% rename from src/Endpoint/Products/UpdateProductCategoryResponse/UpdateProductCategoryResponse.php rename to src/Endpoint/Categories/UpdateProductCategoryResponse/UpdateProductCategoryResponse.php index d1692f1..6f5a337 --- a/src/Endpoint/Products/UpdateProductCategoryResponse/UpdateProductCategoryResponse.php +++ b/src/Endpoint/Categories/UpdateProductCategoryResponse/UpdateProductCategoryResponse.php @@ -1,6 +1,6 @@ true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateProductOrderInCategoryRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateProductOrderInCategoryResponse::class; + } + + public function getEndpoint(): string + { + return '/api/categories/{categoryGuid}/productsPriority'; + } +} diff --git a/src/Endpoint/Categories/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest.php b/src/Endpoint/Categories/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest.php new file mode 100755 index 0000000..14a5bcc --- /dev/null +++ b/src/Endpoint/Categories/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/Categories/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data.php b/src/Endpoint/Categories/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data.php new file mode 100755 index 0000000..8358de2 --- /dev/null +++ b/src/Endpoint/Categories/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data.php @@ -0,0 +1,31 @@ + + * @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 Data extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Categories\UpdateProductOrderInCategoryRequest\UpdateProductOrderInCategoryRequest\Data\Item'; + } +} diff --git a/src/Endpoint/Categories/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data/Item.php b/src/Endpoint/Categories/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data/Item.php new file mode 100755 index 0000000..87c37e7 --- /dev/null +++ b/src/Endpoint/Categories/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data/Item.php @@ -0,0 +1,34 @@ +productGuid; + } + + public function setProductGuid(TypeGuidUnlimited $productGuid): static + { + $this->productGuid = $productGuid; + return $this; + } + + public function getPriority(): ?float + { + return $this->priority; + } + + public function setPriority(?float $priority): static + { + $this->priority = $priority; + return $this; + } +} diff --git a/src/Endpoint/Categories/UpdateProductOrderInCategoryResponse/UpdateProductOrderInCategoryResponse.php b/src/Endpoint/Categories/UpdateProductOrderInCategoryResponse/UpdateProductOrderInCategoryResponse.php new file mode 100755 index 0000000..a01a7a5 --- /dev/null +++ b/src/Endpoint/Categories/UpdateProductOrderInCategoryResponse/UpdateProductOrderInCategoryResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Categories/UpdateProductOrderInCategoryResponse/UpdateProductOrderInCategoryResponse/Data.php b/src/Endpoint/Categories/UpdateProductOrderInCategoryResponse/UpdateProductOrderInCategoryResponse/Data.php new file mode 100755 index 0000000..41c35fc --- /dev/null +++ b/src/Endpoint/Categories/UpdateProductOrderInCategoryResponse/UpdateProductOrderInCategoryResponse/Data.php @@ -0,0 +1,9 @@ + false]; + + public function getRequestEntityClass(): string + { + return CreateConsumptionTaxRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateConsumptionTaxResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/consumption-taxes'; + } +} diff --git a/src/Endpoint/ConsumptionTaxes/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest.php b/src/Endpoint/ConsumptionTaxes/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest.php new file mode 100755 index 0000000..26f1877 --- /dev/null +++ b/src/Endpoint/ConsumptionTaxes/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ConsumptionTaxes/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest/Data.php b/src/Endpoint/ConsumptionTaxes/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest/Data.php new file mode 100755 index 0000000..d956317 --- /dev/null +++ b/src/Endpoint/ConsumptionTaxes/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest/Data.php @@ -0,0 +1,58 @@ +name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getPrice(): TypePrice + { + return $this->price; + } + + public function setPrice(TypePrice $price): static + { + $this->price = $price; + return $this; + } + + public function getCurrency(): string + { + return $this->currency; + } + + public function setCurrency(string $currency): static + { + $this->currency = $currency; + return $this; + } + + public function getIsVisible(): ?bool + { + return $this->isVisible; + } + + public function setIsVisible(?bool $isVisible): static + { + $this->isVisible = $isVisible; + return $this; + } +} diff --git a/src/Endpoint/Products/CreateConsumptionTaxResponse/CreateConsumptionTaxResponse.php b/src/Endpoint/ConsumptionTaxes/CreateConsumptionTaxResponse/CreateConsumptionTaxResponse.php old mode 100644 new mode 100755 similarity index 89% rename from src/Endpoint/Products/CreateConsumptionTaxResponse/CreateConsumptionTaxResponse.php rename to src/Endpoint/ConsumptionTaxes/CreateConsumptionTaxResponse/CreateConsumptionTaxResponse.php index 8695b80..52e4fbd --- a/src/Endpoint/Products/CreateConsumptionTaxResponse/CreateConsumptionTaxResponse.php +++ b/src/Endpoint/ConsumptionTaxes/CreateConsumptionTaxResponse/CreateConsumptionTaxResponse.php @@ -1,6 +1,6 @@ true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteConsumptionTaxResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/consumption-taxes/{id}'; + } +} diff --git a/src/Endpoint/ConsumptionTaxes/DeleteConsumptionTaxResponse/DeleteConsumptionTaxResponse.php b/src/Endpoint/ConsumptionTaxes/DeleteConsumptionTaxResponse/DeleteConsumptionTaxResponse.php new file mode 100755 index 0000000..d1d1e7e --- /dev/null +++ b/src/Endpoint/ConsumptionTaxes/DeleteConsumptionTaxResponse/DeleteConsumptionTaxResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ConsumptionTaxes/DeleteConsumptionTaxResponse/DeleteConsumptionTaxResponse/Data.php b/src/Endpoint/ConsumptionTaxes/DeleteConsumptionTaxResponse/DeleteConsumptionTaxResponse/Data.php new file mode 100755 index 0000000..0966855 --- /dev/null +++ b/src/Endpoint/ConsumptionTaxes/DeleteConsumptionTaxResponse/DeleteConsumptionTaxResponse/Data.php @@ -0,0 +1,9 @@ + false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfConsumptionTaxesResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/consumption-taxes'; + } +} diff --git a/src/Endpoint/ConsumptionTaxes/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse.php b/src/Endpoint/ConsumptionTaxes/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse.php new file mode 100755 index 0000000..49fb3af --- /dev/null +++ b/src/Endpoint/ConsumptionTaxes/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ConsumptionTaxes/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data.php b/src/Endpoint/ConsumptionTaxes/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data.php new file mode 100755 index 0000000..46ded7c --- /dev/null +++ b/src/Endpoint/ConsumptionTaxes/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data.php @@ -0,0 +1,22 @@ +consumptionTaxes; + } + + public function setConsumptionTaxes(ConsumptionTaxes $consumptionTaxes): static + { + $this->consumptionTaxes = $consumptionTaxes; + return $this; + } +} diff --git a/src/Endpoint/Products/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data/ConsumptionTaxes.php b/src/Endpoint/ConsumptionTaxes/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data/ConsumptionTaxes.php old mode 100644 new mode 100755 similarity index 88% rename from src/Endpoint/Products/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data/ConsumptionTaxes.php rename to src/Endpoint/ConsumptionTaxes/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data/ConsumptionTaxes.php index a3cb020..465f937 --- a/src/Endpoint/Products/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data/ConsumptionTaxes.php +++ b/src/Endpoint/ConsumptionTaxes/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data/ConsumptionTaxes.php @@ -1,6 +1,6 @@ true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateConsumptionTaxRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateConsumptionTaxResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/consumption-taxes/{id}'; + } +} diff --git a/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest.php b/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest.php new file mode 100755 index 0000000..5365bd2 --- /dev/null +++ b/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest/Data.php b/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest/Data.php new file mode 100755 index 0000000..b785033 --- /dev/null +++ b/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest/Data.php @@ -0,0 +1,58 @@ +name; + } + + public function setName(?string $name): static + { + $this->name = $name; + return $this; + } + + public function getPrice(): ?TypePrice + { + return $this->price; + } + + public function setPrice(?TypePrice $price): static + { + $this->price = $price; + return $this; + } + + public function getCurrency(): ?string + { + return $this->currency; + } + + public function setCurrency(?string $currency): static + { + $this->currency = $currency; + return $this; + } + + public function getIsVisible(): ?bool + { + return $this->isVisible; + } + + public function setIsVisible(?bool $isVisible): static + { + $this->isVisible = $isVisible; + return $this; + } +} diff --git a/src/Endpoint/Products/UpdateConsumptionTaxResponse/UpdateConsumptionTaxResponse.php b/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTaxResponse/UpdateConsumptionTaxResponse.php old mode 100644 new mode 100755 similarity index 89% rename from src/Endpoint/Products/UpdateConsumptionTaxResponse/UpdateConsumptionTaxResponse.php rename to src/Endpoint/ConsumptionTaxes/UpdateConsumptionTaxResponse/UpdateConsumptionTaxResponse.php index 94d4187..038070d --- a/src/Endpoint/Products/UpdateConsumptionTaxResponse/UpdateConsumptionTaxResponse.php +++ b/src/Endpoint/ConsumptionTaxes/UpdateConsumptionTaxResponse/UpdateConsumptionTaxResponse.php @@ -1,6 +1,6 @@ dueDate; } - public function setDueDate(?TypeDate $dueDate): static + public function setDueDate(?TypeDateNullable $dueDate): static { $this->dueDate = $dueDate; return $this; } - public function getTaxDate(): ?TypeDate + public function getTaxDate(): ?TypeDateNullable { return $this->taxDate; } - public function setTaxDate(?TypeDate $taxDate): static + public function setTaxDate(?TypeDateNullable $taxDate): static { $this->taxDate = $taxDate; return $this; @@ -138,4 +139,15 @@ public function setItems(?Items $items): static $this->items = $items; return $this; } + + public function getReasonRemark(): ?string + { + return $this->reasonRemark; + } + + public function setReasonRemark(?string $reasonRemark): static + { + $this->reasonRemark = $reasonRemark; + return $this; + } } diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest/Data/Items.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest/Data/Items.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest/Data/Items/Item.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest/Data/Items/Item.php old mode 100644 new mode 100755 index 6303858..0ff8531 --- a/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest/Data/Items/Item.php +++ b/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest/Data/Items/Item.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\CreateCreditNoteFromInvoiceRequest\CreateCreditNoteFromInvoiceRequest\Data\Items; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmountNullable; class Item extends Entity { protected int $invoiceItemId; - protected ?TypePositiveAmount $amount; + protected ?TypePositiveAmountNullable $amount; public function getInvoiceItemId(): int { @@ -21,12 +21,12 @@ public function setInvoiceItemId(int $invoiceItemId): static return $this; } - public function getAmount(): ?TypePositiveAmount + public function getAmount(): ?TypePositiveAmountNullable { return $this->amount; } - public function setAmount(?TypePositiveAmount $amount): static + public function setAmount(?TypePositiveAmountNullable $amount): static { $this->amount = $amount; return $this; diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest/Data/UseItemIds.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceRequest/CreateCreditNoteFromInvoiceRequest/Data/UseItemIds.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceResponse/CreateCreditNoteFromInvoiceResponse.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceResponse/CreateCreditNoteFromInvoiceResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceResponse/CreateCreditNoteFromInvoiceResponse/Data.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromInvoiceResponse/CreateCreditNoteFromInvoiceResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPayment.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPayment.php old mode 100644 new mode 100755 index 93ef02b..bae6fda --- a/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPayment.php +++ b/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPayment.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Credit-notes/createcreditnotefromproofofpayment + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/createcreditnotefromproofofpayment * * @method CreateCreditNoteFromProofOfPayment setBody(null|array|CreateCreditNoteFromProofOfPaymentRequest $entity) * @method null|CreateCreditNoteFromProofOfPaymentRequest getBody() diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentRequest/CreateCreditNoteFromProofOfPaymentRequest.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentRequest/CreateCreditNoteFromProofOfPaymentRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentRequest/CreateCreditNoteFromProofOfPaymentRequest/Data.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentRequest/CreateCreditNoteFromProofOfPaymentRequest/Data.php old mode 100644 new mode 100755 index b911cfb..9f936c1 --- a/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentRequest/CreateCreditNoteFromProofOfPaymentRequest/Data.php +++ b/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentRequest/CreateCreditNoteFromProofOfPaymentRequest/Data.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbol; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; class Data extends Entity { protected ?string $creditNoteCode; protected ?float $varSymbol; - protected ?TypeDate $dueDate; - protected ?TypeDate $taxDate; + protected ?TypeDateNullable $dueDate; + protected ?TypeDateNullable $taxDate; protected ?TypeConstSymbol $constSymbol; protected ?float $specSymbol; protected ?float $billingMethodId; protected ?string $orderCode; + protected ?string $reasonRemark; public function getCreditNoteCode(): ?string { @@ -39,23 +40,23 @@ public function setVarSymbol(?float $varSymbol): static return $this; } - public function getDueDate(): ?TypeDate + public function getDueDate(): ?TypeDateNullable { return $this->dueDate; } - public function setDueDate(?TypeDate $dueDate): static + public function setDueDate(?TypeDateNullable $dueDate): static { $this->dueDate = $dueDate; return $this; } - public function getTaxDate(): ?TypeDate + public function getTaxDate(): ?TypeDateNullable { return $this->taxDate; } - public function setTaxDate(?TypeDate $taxDate): static + public function setTaxDate(?TypeDateNullable $taxDate): static { $this->taxDate = $taxDate; return $this; @@ -104,4 +105,15 @@ public function setOrderCode(?string $orderCode): static $this->orderCode = $orderCode; return $this; } + + public function getReasonRemark(): ?string + { + return $this->reasonRemark; + } + + public function setReasonRemark(?string $reasonRemark): static + { + $this->reasonRemark = $reasonRemark; + return $this; + } } diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentResponse/CreateCreditNoteFromProofOfPaymentResponse.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentResponse/CreateCreditNoteFromProofOfPaymentResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentResponse/CreateCreditNoteFromProofOfPaymentResponse/Data.php b/src/Endpoint/CreditNotes/CreateCreditNoteFromProofOfPaymentResponse/CreateCreditNoteFromProofOfPaymentResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteItem.php b/src/Endpoint/CreditNotes/CreateCreditNoteItem.php old mode 100644 new mode 100755 index d02ed7e..60549f7 --- a/src/Endpoint/CreditNotes/CreateCreditNoteItem.php +++ b/src/Endpoint/CreditNotes/CreateCreditNoteItem.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Credit-notes/createcreditnoteitem + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/createcreditnoteitem * * @method CreateCreditNoteItem setBody(null|array|CreateCreditNoteItemRequest $entity) * @method null|CreateCreditNoteItemRequest getBody() diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteItemRequest/CreateCreditNoteItemRequest.php b/src/Endpoint/CreditNotes/CreateCreditNoteItemRequest/CreateCreditNoteItemRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteItemRequest/CreateCreditNoteItemRequest/Data.php b/src/Endpoint/CreditNotes/CreateCreditNoteItemRequest/CreateCreditNoteItemRequest/Data.php old mode 100644 new mode 100755 index 5f2672d..3bcc67a --- a/src/Endpoint/CreditNotes/CreateCreditNoteItemRequest/CreateCreditNoteItemRequest/Data.php +++ b/src/Endpoint/CreditNotes/CreateCreditNoteItemRequest/CreateCreditNoteItemRequest/Data.php @@ -3,7 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\CreateCreditNoteItemRequest\CreateCreditNoteItemRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmountNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceRatio; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVatRate; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeightRequest; @@ -12,7 +12,7 @@ class Data extends Entity { protected string $itemType; protected ?string $code; - protected TypeAmount $amount; + protected TypeAmountNullable $amount; protected ?string $name; protected ?string $variantName; protected ?string $amountUnit; @@ -46,12 +46,12 @@ public function setCode(?string $code): static return $this; } - public function getAmount(): TypeAmount + public function getAmount(): TypeAmountNullable { return $this->amount; } - public function setAmount(TypeAmount $amount): static + public function setAmount(TypeAmountNullable $amount): static { $this->amount = $amount; return $this; diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteItemResponse/CreateCreditNoteItemResponse.php b/src/Endpoint/CreditNotes/CreateCreditNoteItemResponse/CreateCreditNoteItemResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/CreateCreditNoteItemResponse/CreateCreditNoteItemResponse/Data.php b/src/Endpoint/CreditNotes/CreateCreditNoteItemResponse/CreateCreditNoteItemResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/DeleteCreditNote.php b/src/Endpoint/CreditNotes/DeleteCreditNote.php old mode 100644 new mode 100755 index 280c1cf..3f1f3d2 --- a/src/Endpoint/CreditNotes/DeleteCreditNote.php +++ b/src/Endpoint/CreditNotes/DeleteCreditNote.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Delete; /** - * @see https://api.docs.shoptet.com/openapi/Credit-notes/deletecreditnote + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/deletecreditnote * * @method DeleteCreditNote setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/CreditNotes/DeleteCreditNoteItem.php b/src/Endpoint/CreditNotes/DeleteCreditNoteItem.php old mode 100644 new mode 100755 index 80cd48d..21a94a6 --- a/src/Endpoint/CreditNotes/DeleteCreditNoteItem.php +++ b/src/Endpoint/CreditNotes/DeleteCreditNoteItem.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Delete; /** - * @see https://api.docs.shoptet.com/openapi/Credit-notes/deletecreditnoteitem + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/deletecreditnoteitem * * @method DeleteCreditNoteItem setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/CreditNotes/DeleteCreditNoteItemResponse/DeleteCreditNoteItemResponse.php b/src/Endpoint/CreditNotes/DeleteCreditNoteItemResponse/DeleteCreditNoteItemResponse.php old mode 100644 new mode 100755 index 96d2b45..cf97f6c --- a/src/Endpoint/CreditNotes/DeleteCreditNoteItemResponse/DeleteCreditNoteItemResponse.php +++ b/src/Endpoint/CreditNotes/DeleteCreditNoteItemResponse/DeleteCreditNoteItemResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\DeleteCreditNoteItemResponse\DeleteCreditNoteItemResponse\Data; class DeleteCreditNoteItemResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/CreditNotes/DeleteCreditNoteItemResponse/DeleteCreditNoteItemResponse/Data.php b/src/Endpoint/CreditNotes/DeleteCreditNoteItemResponse/DeleteCreditNoteItemResponse/Data.php new file mode 100755 index 0000000..89da7ca --- /dev/null +++ b/src/Endpoint/CreditNotes/DeleteCreditNoteItemResponse/DeleteCreditNoteItemResponse/Data.php @@ -0,0 +1,9 @@ +data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/CreditNotes/DeleteCreditNoteResponse/DeleteCreditNoteResponse/Data.php b/src/Endpoint/CreditNotes/DeleteCreditNoteResponse/DeleteCreditNoteResponse/Data.php new file mode 100755 index 0000000..507be99 --- /dev/null +++ b/src/Endpoint/CreditNotes/DeleteCreditNoteResponse/DeleteCreditNoteResponse/Data.php @@ -0,0 +1,9 @@ +changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; diff --git a/src/Endpoint/CreditNotes/GetListOfAllCreditNotes.php b/src/Endpoint/CreditNotes/GetListOfAllCreditNotes.php old mode 100644 new mode 100755 index 3b7f621..938d7c0 --- a/src/Endpoint/CreditNotes/GetListOfAllCreditNotes.php +++ b/src/Endpoint/CreditNotes/GetListOfAllCreditNotes.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\CreditNotes; use Shoptet\Api\Sdk\Php\Async\SnapshotEndpoint; -use Shoptet\Api\Sdk\Php\Component\Entity\CreditNote; +use Shoptet\Api\Sdk\Php\Component\Entity\CreditNoteSnapshot; use Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\GetListOfAllCreditNotesResponse\GetListOfAllCreditNotesResponse; use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Credit-notes/getlistofallcreditnotes + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/getlistofallcreditnotes * * @method GetListOfAllCreditNotes setBody(null $entity) * @method null getBody() @@ -58,6 +58,6 @@ public function getEndpoint(): string public function getSnapshotResultEntityClass(): string { - return CreditNote::class; + return CreditNoteSnapshot::class; } } diff --git a/src/Endpoint/CreditNotes/GetListOfAllCreditNotesResponse/GetListOfAllCreditNotesResponse.php b/src/Endpoint/CreditNotes/GetListOfAllCreditNotesResponse/GetListOfAllCreditNotesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/GetListOfAllCreditNotesResponse/GetListOfAllCreditNotesResponse/Data.php b/src/Endpoint/CreditNotes/GetListOfAllCreditNotesResponse/GetListOfAllCreditNotesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/GetListOfCreditNotes.php b/src/Endpoint/CreditNotes/GetListOfCreditNotes.php old mode 100644 new mode 100755 index b41ef74..b192f0e --- a/src/Endpoint/CreditNotes/GetListOfCreditNotes.php +++ b/src/Endpoint/CreditNotes/GetListOfCreditNotes.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PageableGet; /** - * @see https://api.docs.shoptet.com/openapi/Credit-notes/getlistofcreditnotes + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/getlistofcreditnotes * * @method GetListOfCreditNotes setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse.php b/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse/Data.php b/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse/Data/CreditNotes.php b/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse/Data/CreditNotes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse/Data/CreditNotes/Item.php b/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse/Data/CreditNotes/Item.php old mode 100644 new mode 100755 index 0e9ee8d..15a4d32 --- a/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse/Data/CreditNotes/Item.php +++ b/src/Endpoint/CreditNotes/GetListOfCreditNotesResponse/GetListOfCreditNotesResponse/Data/CreditNotes/Item.php @@ -4,7 +4,7 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Price; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Item extends Entity { @@ -14,11 +14,12 @@ class Item extends Entity protected ?string $invoiceCode; protected ?string $proofPaymentCode; protected ?string $orderCode; - protected TypeDateTime $creationTime; + protected TypeDateTimeNullable $creationTime; protected ?string $billCompany; protected ?string $billFullName; protected Price $price; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $changeTime; + protected ?string $reasonRemark; public function getCode(): string { @@ -86,12 +87,12 @@ public function setOrderCode(?string $orderCode): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; @@ -130,14 +131,25 @@ public function setPrice(Price $price): static return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; } + + public function getReasonRemark(): ?string + { + return $this->reasonRemark; + } + + public function setReasonRemark(?string $reasonRemark): static + { + $this->reasonRemark = $reasonRemark; + return $this; + } } diff --git a/src/Endpoint/CreditNotes/RestockCreditNote.php b/src/Endpoint/CreditNotes/RestockCreditNote.php old mode 100644 new mode 100755 index 340b43d..01c2832 --- a/src/Endpoint/CreditNotes/RestockCreditNote.php +++ b/src/Endpoint/CreditNotes/RestockCreditNote.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Credit-notes/restockcreditnote + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/restockcreditnote * * @method RestockCreditNote setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/CreditNotes/RestockCreditNoteResponse/RestockCreditNoteResponse.php b/src/Endpoint/CreditNotes/RestockCreditNoteResponse/RestockCreditNoteResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/RestockCreditNoteResponse/RestockCreditNoteResponse/Data.php b/src/Endpoint/CreditNotes/RestockCreditNoteResponse/RestockCreditNoteResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/RestockCreditNoteResponse/RestockCreditNoteResponse/Data/Notes.php b/src/Endpoint/CreditNotes/RestockCreditNoteResponse/RestockCreditNoteResponse/Data/Notes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/UpdateCreditNote.php b/src/Endpoint/CreditNotes/UpdateCreditNote.php old mode 100644 new mode 100755 index ad893ee..7f12a13 --- a/src/Endpoint/CreditNotes/UpdateCreditNote.php +++ b/src/Endpoint/CreditNotes/UpdateCreditNote.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Patch; /** - * @see https://api.docs.shoptet.com/openapi/Credit-notes/updatecreditnote + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/updatecreditnote * * @method UpdateCreditNote setBody(null|array|UpdateCreditNoteRequest $entity) * @method null|UpdateCreditNoteRequest getBody() diff --git a/src/Endpoint/CreditNotes/UpdateCreditNoteItem.php b/src/Endpoint/CreditNotes/UpdateCreditNoteItem.php old mode 100644 new mode 100755 index 0326b64..40f7ec1 --- a/src/Endpoint/CreditNotes/UpdateCreditNoteItem.php +++ b/src/Endpoint/CreditNotes/UpdateCreditNoteItem.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Patch; /** - * @see https://api.docs.shoptet.com/openapi/Credit-notes/updatecreditnoteitem + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/updatecreditnoteitem * * @method UpdateCreditNoteItem setBody(null|array|UpdateCreditNoteItemRequest $entity) * @method null|UpdateCreditNoteItemRequest getBody() diff --git a/src/Endpoint/CreditNotes/UpdateCreditNoteItemRequest/UpdateCreditNoteItemRequest.php b/src/Endpoint/CreditNotes/UpdateCreditNoteItemRequest/UpdateCreditNoteItemRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/UpdateCreditNoteItemRequest/UpdateCreditNoteItemRequest/Data.php b/src/Endpoint/CreditNotes/UpdateCreditNoteItemRequest/UpdateCreditNoteItemRequest/Data.php old mode 100644 new mode 100755 index 57f5225..14c9060 --- a/src/Endpoint/CreditNotes/UpdateCreditNoteItemRequest/UpdateCreditNoteItemRequest/Data.php +++ b/src/Endpoint/CreditNotes/UpdateCreditNoteItemRequest/UpdateCreditNoteItemRequest/Data.php @@ -3,7 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\UpdateCreditNoteItemRequest\UpdateCreditNoteItemRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmountNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceRatio; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVatRate; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeightRequest; @@ -11,7 +11,7 @@ class Data extends Entity { protected ?string $code; - protected ?TypeAmount $amount; + protected ?TypeAmountNullable $amount; protected ?string $name; protected ?string $variantName; protected ?string $amountUnit; @@ -34,12 +34,12 @@ public function setCode(?string $code): static return $this; } - public function getAmount(): ?TypeAmount + public function getAmount(): ?TypeAmountNullable { return $this->amount; } - public function setAmount(?TypeAmount $amount): static + public function setAmount(?TypeAmountNullable $amount): static { $this->amount = $amount; return $this; diff --git a/src/Endpoint/CreditNotes/UpdateCreditNoteItemResponse/UpdateCreditNoteItemResponse.php b/src/Endpoint/CreditNotes/UpdateCreditNoteItemResponse/UpdateCreditNoteItemResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/UpdateCreditNoteItemResponse/UpdateCreditNoteItemResponse/Data.php b/src/Endpoint/CreditNotes/UpdateCreditNoteItemResponse/UpdateCreditNoteItemResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/UpdateCreditNoteRequest/UpdateCreditNoteRequest.php b/src/Endpoint/CreditNotes/UpdateCreditNoteRequest/UpdateCreditNoteRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/UpdateCreditNoteRequest/UpdateCreditNoteRequest/Data.php b/src/Endpoint/CreditNotes/UpdateCreditNoteRequest/UpdateCreditNoteRequest/Data.php old mode 100644 new mode 100755 index ee168c1..9129428 --- a/src/Endpoint/CreditNotes/UpdateCreditNoteRequest/UpdateCreditNoteRequest/Data.php +++ b/src/Endpoint/CreditNotes/UpdateCreditNoteRequest/UpdateCreditNoteRequest/Data.php @@ -3,18 +3,19 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\UpdateCreditNoteRequest\UpdateCreditNoteRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbol; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbolNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; class Data extends Entity { protected ?float $varSymbol; - protected ?TypeDate $dueDate; - protected ?TypeDate $taxDate; - protected ?TypeConstSymbol $constSymbol; + protected ?TypeDateNullable $dueDate; + protected ?TypeDateNullable $taxDate; + protected ?TypeConstSymbolNullable $constSymbol; protected ?float $specSymbol; protected ?float $billingMethodId; protected ?string $orderCode; + protected ?string $reasonRemark; public function getVarSymbol(): ?float { @@ -27,34 +28,34 @@ public function setVarSymbol(?float $varSymbol): static return $this; } - public function getDueDate(): ?TypeDate + public function getDueDate(): ?TypeDateNullable { return $this->dueDate; } - public function setDueDate(?TypeDate $dueDate): static + public function setDueDate(?TypeDateNullable $dueDate): static { $this->dueDate = $dueDate; return $this; } - public function getTaxDate(): ?TypeDate + public function getTaxDate(): ?TypeDateNullable { return $this->taxDate; } - public function setTaxDate(?TypeDate $taxDate): static + public function setTaxDate(?TypeDateNullable $taxDate): static { $this->taxDate = $taxDate; return $this; } - public function getConstSymbol(): ?TypeConstSymbol + public function getConstSymbol(): ?TypeConstSymbolNullable { return $this->constSymbol; } - public function setConstSymbol(?TypeConstSymbol $constSymbol): static + public function setConstSymbol(?TypeConstSymbolNullable $constSymbol): static { $this->constSymbol = $constSymbol; return $this; @@ -92,4 +93,15 @@ public function setOrderCode(?string $orderCode): static $this->orderCode = $orderCode; return $this; } + + public function getReasonRemark(): ?string + { + return $this->reasonRemark; + } + + public function setReasonRemark(?string $reasonRemark): static + { + $this->reasonRemark = $reasonRemark; + return $this; + } } diff --git a/src/Endpoint/CreditNotes/UpdateCreditNoteResponse/UpdateCreditNoteResponse.php b/src/Endpoint/CreditNotes/UpdateCreditNoteResponse/UpdateCreditNoteResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CreditNotes/UpdateCreditNoteResponse/UpdateCreditNoteResponse/Data.php b/src/Endpoint/CreditNotes/UpdateCreditNoteResponse/UpdateCreditNoteResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/CustomerAccounts/CreateCustomerAccount.php b/src/Endpoint/CustomerAccounts/CreateCustomerAccount.php new file mode 100755 index 0000000..4b146ed --- /dev/null +++ b/src/Endpoint/CustomerAccounts/CreateCustomerAccount.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return CreateCustomerAccountRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateCustomerAccountResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/accounts'; + } +} diff --git a/src/Endpoint/CustomerAccounts/CreateCustomerAccountRequest/CreateCustomerAccountRequest.php b/src/Endpoint/CustomerAccounts/CreateCustomerAccountRequest/CreateCustomerAccountRequest.php new file mode 100755 index 0000000..8d4f150 --- /dev/null +++ b/src/Endpoint/CustomerAccounts/CreateCustomerAccountRequest/CreateCustomerAccountRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/CustomerAccounts/CreateCustomerAccountRequest/CreateCustomerAccountRequest/Data.php b/src/Endpoint/CustomerAccounts/CreateCustomerAccountRequest/CreateCustomerAccountRequest/Data.php new file mode 100755 index 0000000..aaa851d --- /dev/null +++ b/src/Endpoint/CustomerAccounts/CreateCustomerAccountRequest/CreateCustomerAccountRequest/Data.php @@ -0,0 +1,81 @@ +fullName; + } + + public function setFullName(?string $fullName): static + { + $this->fullName = $fullName; + return $this; + } + + public function getEmail(): string + { + return $this->email; + } + + public function setEmail(string $email): static + { + $this->email = $email; + return $this; + } + + public function getPhone(): ?string + { + return $this->phone; + } + + public function setPhone(?string $phone): static + { + $this->phone = $phone; + return $this; + } + + public function getMainAccount(): ?bool + { + return $this->mainAccount; + } + + public function setMainAccount(?bool $mainAccount): static + { + $this->mainAccount = $mainAccount; + return $this; + } + + public function getAuthorized(): ?bool + { + return $this->authorized; + } + + public function setAuthorized(?bool $authorized): static + { + $this->authorized = $authorized; + return $this; + } + + public function getEmailVerified(): ?bool + { + return $this->emailVerified; + } + + public function setEmailVerified(?bool $emailVerified): static + { + $this->emailVerified = $emailVerified; + return $this; + } +} diff --git a/src/Endpoint/Customers/CreateCustomerAccountResponse/CreateCustomerAccountResponse.php b/src/Endpoint/CustomerAccounts/CreateCustomerAccountResponse/CreateCustomerAccountResponse.php old mode 100644 new mode 100755 similarity index 75% rename from src/Endpoint/Customers/CreateCustomerAccountResponse/CreateCustomerAccountResponse.php rename to src/Endpoint/CustomerAccounts/CreateCustomerAccountResponse/CreateCustomerAccountResponse.php index 18246a5..5ce210e --- a/src/Endpoint/Customers/CreateCustomerAccountResponse/CreateCustomerAccountResponse.php +++ b/src/Endpoint/CustomerAccounts/CreateCustomerAccountResponse/CreateCustomerAccountResponse.php @@ -1,10 +1,10 @@ account; + } + + public function setAccount(Account $account): static + { + $this->account = $account; + return $this; + } +} diff --git a/src/Endpoint/CustomerAccounts/CreateCustomerAccountResponse/CreateCustomerAccountResponse/Data/Account.php b/src/Endpoint/CustomerAccounts/CreateCustomerAccountResponse/CreateCustomerAccountResponse/Data/Account.php new file mode 100755 index 0000000..2cd9cd3 --- /dev/null +++ b/src/Endpoint/CustomerAccounts/CreateCustomerAccountResponse/CreateCustomerAccountResponse/Data/Account.php @@ -0,0 +1,94 @@ +guid; + } + + public function setGuid(TypeGuidUnlimited $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getFullName(): ?string + { + return $this->fullName; + } + + public function setFullName(?string $fullName): static + { + $this->fullName = $fullName; + return $this; + } + + public function getEmail(): string + { + return $this->email; + } + + public function setEmail(string $email): static + { + $this->email = $email; + return $this; + } + + public function getPhone(): ?string + { + return $this->phone; + } + + public function setPhone(?string $phone): static + { + $this->phone = $phone; + return $this; + } + + public function isMainAccount(): bool + { + return $this->mainAccount; + } + + public function setMainAccount(bool $mainAccount): static + { + $this->mainAccount = $mainAccount; + return $this; + } + + public function isAuthorized(): bool + { + return $this->authorized; + } + + public function setAuthorized(bool $authorized): static + { + $this->authorized = $authorized; + return $this; + } + + public function isEmailVerified(): bool + { + return $this->emailVerified; + } + + public function setEmailVerified(bool $emailVerified): static + { + $this->emailVerified = $emailVerified; + return $this; + } +} diff --git a/src/Endpoint/CustomerAccounts/DeleteCustomerAccount.php b/src/Endpoint/CustomerAccounts/DeleteCustomerAccount.php new file mode 100755 index 0000000..a80ef64 --- /dev/null +++ b/src/Endpoint/CustomerAccounts/DeleteCustomerAccount.php @@ -0,0 +1,33 @@ + true, 'accountGuid' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteCustomerAccountResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/accounts/{accountGuid}'; + } +} diff --git a/src/Endpoint/CustomerAccounts/DeleteCustomerAccountResponse/DeleteCustomerAccountResponse.php b/src/Endpoint/CustomerAccounts/DeleteCustomerAccountResponse/DeleteCustomerAccountResponse.php new file mode 100755 index 0000000..275c7cc --- /dev/null +++ b/src/Endpoint/CustomerAccounts/DeleteCustomerAccountResponse/DeleteCustomerAccountResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/CustomerAccounts/DeleteCustomerAccountResponse/DeleteCustomerAccountResponse/Data.php b/src/Endpoint/CustomerAccounts/DeleteCustomerAccountResponse/DeleteCustomerAccountResponse/Data.php new file mode 100755 index 0000000..2897886 --- /dev/null +++ b/src/Endpoint/CustomerAccounts/DeleteCustomerAccountResponse/DeleteCustomerAccountResponse/Data.php @@ -0,0 +1,9 @@ + true, 'accountGuid' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetDetailOfCustomerAccountResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/accounts/{accountGuid}'; + } +} diff --git a/src/Endpoint/CustomerAccounts/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse.php b/src/Endpoint/CustomerAccounts/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse.php new file mode 100755 index 0000000..c48548a --- /dev/null +++ b/src/Endpoint/CustomerAccounts/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/CustomerAccounts/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data.php b/src/Endpoint/CustomerAccounts/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data.php new file mode 100755 index 0000000..02920ec --- /dev/null +++ b/src/Endpoint/CustomerAccounts/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data.php @@ -0,0 +1,22 @@ +account; + } + + public function setAccount(Account $account): static + { + $this->account = $account; + return $this; + } +} diff --git a/src/Endpoint/CustomerAccounts/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data/Account.php b/src/Endpoint/CustomerAccounts/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data/Account.php new file mode 100755 index 0000000..1fe8231 --- /dev/null +++ b/src/Endpoint/CustomerAccounts/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data/Account.php @@ -0,0 +1,94 @@ +guid; + } + + public function setGuid(TypeGuidUnlimited $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getFullName(): ?string + { + return $this->fullName; + } + + public function setFullName(?string $fullName): static + { + $this->fullName = $fullName; + return $this; + } + + public function getEmail(): string + { + return $this->email; + } + + public function setEmail(string $email): static + { + $this->email = $email; + return $this; + } + + public function getPhone(): ?string + { + return $this->phone; + } + + public function setPhone(?string $phone): static + { + $this->phone = $phone; + return $this; + } + + public function isMainAccount(): bool + { + return $this->mainAccount; + } + + public function setMainAccount(bool $mainAccount): static + { + $this->mainAccount = $mainAccount; + return $this; + } + + public function isAuthorized(): bool + { + return $this->authorized; + } + + public function setAuthorized(bool $authorized): static + { + $this->authorized = $authorized; + return $this; + } + + public function isEmailVerified(): bool + { + return $this->emailVerified; + } + + public function setEmailVerified(bool $emailVerified): static + { + $this->emailVerified = $emailVerified; + return $this; + } +} diff --git a/src/Endpoint/CustomerAccounts/GetListOfCustomerAccounts.php b/src/Endpoint/CustomerAccounts/GetListOfCustomerAccounts.php new file mode 100755 index 0000000..4e67b9f --- /dev/null +++ b/src/Endpoint/CustomerAccounts/GetListOfCustomerAccounts.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false, 'page' => false, 'itemsPerPage' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfCustomerAccountsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/accounts'; + } +} diff --git a/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse.php b/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse.php new file mode 100755 index 0000000..7ed4ed2 --- /dev/null +++ b/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data.php b/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data.php new file mode 100755 index 0000000..4cdce7d --- /dev/null +++ b/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data.php @@ -0,0 +1,35 @@ +accounts; + } + + public function setAccounts(Accounts $accounts): static + { + $this->accounts = $accounts; + return $this; + } + + public function getPaginator(): Paginator + { + return $this->paginator; + } + + public function setPaginator(Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts.php b/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts.php new file mode 100755 index 0000000..361b44e --- /dev/null +++ b/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts.php @@ -0,0 +1,31 @@ + + * @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 Accounts extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\GetListOfCustomerAccountsResponse\GetListOfCustomerAccountsResponse\Data\Accounts\Item'; + } +} diff --git a/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts/Item.php b/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts/Item.php new file mode 100755 index 0000000..8107171 --- /dev/null +++ b/src/Endpoint/CustomerAccounts/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts/Item.php @@ -0,0 +1,94 @@ +guid; + } + + public function setGuid(TypeGuidUnlimited $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getFullName(): ?string + { + return $this->fullName; + } + + public function setFullName(?string $fullName): static + { + $this->fullName = $fullName; + return $this; + } + + public function getEmail(): string + { + return $this->email; + } + + public function setEmail(string $email): static + { + $this->email = $email; + return $this; + } + + public function getPhone(): ?string + { + return $this->phone; + } + + public function setPhone(?string $phone): static + { + $this->phone = $phone; + return $this; + } + + public function isMainAccount(): bool + { + return $this->mainAccount; + } + + public function setMainAccount(bool $mainAccount): static + { + $this->mainAccount = $mainAccount; + return $this; + } + + public function isAuthorized(): bool + { + return $this->authorized; + } + + public function setAuthorized(bool $authorized): static + { + $this->authorized = $authorized; + return $this; + } + + public function isEmailVerified(): bool + { + return $this->emailVerified; + } + + public function setEmailVerified(bool $emailVerified): static + { + $this->emailVerified = $emailVerified; + return $this; + } +} diff --git a/src/Endpoint/CustomerAccounts/UpdateCustomerAccount.php b/src/Endpoint/CustomerAccounts/UpdateCustomerAccount.php new file mode 100755 index 0000000..baf1792 --- /dev/null +++ b/src/Endpoint/CustomerAccounts/UpdateCustomerAccount.php @@ -0,0 +1,34 @@ + true, 'accountGuid' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateCustomerAccountRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateCustomerAccountResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/accounts/{accountGuid}'; + } +} diff --git a/src/Endpoint/CustomerAccounts/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest.php b/src/Endpoint/CustomerAccounts/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest.php new file mode 100755 index 0000000..2376ce7 --- /dev/null +++ b/src/Endpoint/CustomerAccounts/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/CustomerAccounts/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest/Data.php b/src/Endpoint/CustomerAccounts/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest/Data.php new file mode 100755 index 0000000..8721fed --- /dev/null +++ b/src/Endpoint/CustomerAccounts/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest/Data.php @@ -0,0 +1,81 @@ +fullName; + } + + public function setFullName(?string $fullName): static + { + $this->fullName = $fullName; + return $this; + } + + public function getEmail(): ?string + { + return $this->email; + } + + public function setEmail(?string $email): static + { + $this->email = $email; + return $this; + } + + public function getPhone(): ?string + { + return $this->phone; + } + + public function setPhone(?string $phone): static + { + $this->phone = $phone; + return $this; + } + + public function getMainAccount(): ?bool + { + return $this->mainAccount; + } + + public function setMainAccount(?bool $mainAccount): static + { + $this->mainAccount = $mainAccount; + return $this; + } + + public function getAuthorized(): ?bool + { + return $this->authorized; + } + + public function setAuthorized(?bool $authorized): static + { + $this->authorized = $authorized; + return $this; + } + + public function getEmailVerified(): ?bool + { + return $this->emailVerified; + } + + public function setEmailVerified(?bool $emailVerified): static + { + $this->emailVerified = $emailVerified; + return $this; + } +} diff --git a/src/Endpoint/Customers/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse.php b/src/Endpoint/CustomerAccounts/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse.php old mode 100644 new mode 100755 similarity index 75% rename from src/Endpoint/Customers/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse.php rename to src/Endpoint/CustomerAccounts/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse.php index 2f1a8da..2dbeccb --- a/src/Endpoint/Customers/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse.php +++ b/src/Endpoint/CustomerAccounts/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse.php @@ -1,10 +1,10 @@ account; + } + + public function setAccount(Account $account): static + { + $this->account = $account; + return $this; + } +} diff --git a/src/Endpoint/CustomerAccounts/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse/Data/Account.php b/src/Endpoint/CustomerAccounts/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse/Data/Account.php new file mode 100755 index 0000000..93f8d5f --- /dev/null +++ b/src/Endpoint/CustomerAccounts/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse/Data/Account.php @@ -0,0 +1,94 @@ +guid; + } + + public function setGuid(TypeGuidUnlimited $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getFullName(): ?string + { + return $this->fullName; + } + + public function setFullName(?string $fullName): static + { + $this->fullName = $fullName; + return $this; + } + + public function getEmail(): string + { + return $this->email; + } + + public function setEmail(string $email): static + { + $this->email = $email; + return $this; + } + + public function getPhone(): ?string + { + return $this->phone; + } + + public function setPhone(?string $phone): static + { + $this->phone = $phone; + return $this; + } + + public function isMainAccount(): bool + { + return $this->mainAccount; + } + + public function setMainAccount(bool $mainAccount): static + { + $this->mainAccount = $mainAccount; + return $this; + } + + public function isAuthorized(): bool + { + return $this->authorized; + } + + public function setAuthorized(bool $authorized): static + { + $this->authorized = $authorized; + return $this; + } + + public function isEmailVerified(): bool + { + return $this->emailVerified; + } + + public function setEmailVerified(bool $emailVerified): static + { + $this->emailVerified = $emailVerified; + return $this; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddress.php b/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddress.php new file mode 100755 index 0000000..50352f4 --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddress.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return CreateDeliveryAddressRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateDeliveryAddressResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/delivery-addresses'; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest.php b/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest.php new file mode 100755 index 0000000..42796f1 --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest/Data.php b/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest/Data.php new file mode 100755 index 0000000..1755279 --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest/Data.php @@ -0,0 +1,141 @@ +fullName; + } + + public function setFullName(?string $fullName): static + { + $this->fullName = $fullName; + return $this; + } + + public function getCompany(): ?string + { + return $this->company; + } + + public function setCompany(?string $company): static + { + $this->company = $company; + return $this; + } + + public function getStreet(): ?string + { + return $this->street; + } + + public function setStreet(?string $street): static + { + $this->street = $street; + return $this; + } + + public function getHouseNumber(): ?string + { + return $this->houseNumber; + } + + public function setHouseNumber(?string $houseNumber): static + { + $this->houseNumber = $houseNumber; + return $this; + } + + public function getCity(): ?string + { + return $this->city; + } + + public function setCity(?string $city): static + { + $this->city = $city; + return $this; + } + + public function getDistrict(): ?string + { + return $this->district; + } + + public function setDistrict(?string $district): static + { + $this->district = $district; + return $this; + } + + public function getAdditional(): ?string + { + return $this->additional; + } + + public function setAdditional(?string $additional): static + { + $this->additional = $additional; + return $this; + } + + public function getZip(): ?string + { + return $this->zip; + } + + public function setZip(?string $zip): static + { + $this->zip = $zip; + return $this; + } + + public function getCountryCode(): string + { + return $this->countryCode; + } + + public function setCountryCode(string $countryCode): static + { + $this->countryCode = $countryCode; + return $this; + } + + public function getRegionName(): ?string + { + return $this->regionName; + } + + public function setRegionName(?string $regionName): static + { + $this->regionName = $regionName; + return $this; + } + + public function getIsDefault(): ?bool + { + return $this->isDefault; + } + + public function setIsDefault(?bool $isDefault): static + { + $this->isDefault = $isDefault; + return $this; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse.php b/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse.php new file mode 100755 index 0000000..86a163c --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse/Data.php b/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse/Data.php new file mode 100755 index 0000000..9f0e140 --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse/Data.php @@ -0,0 +1,22 @@ +deliveryAddress; + } + + public function setDeliveryAddress(DeliveryAddressCustomer $deliveryAddress): static + { + $this->deliveryAddress = $deliveryAddress; + return $this; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/DeleteCustomerDeliveryAddress.php b/src/Endpoint/CustomerDeliveryAddresses/DeleteCustomerDeliveryAddress.php new file mode 100755 index 0000000..c8e8b24 --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/DeleteCustomerDeliveryAddress.php @@ -0,0 +1,33 @@ + true, 'addressGuid' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteCustomerDeliveryAddressResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/delivery-addresses/{addressGuid}'; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/DeleteCustomerDeliveryAddressResponse/DeleteCustomerDeliveryAddressResponse.php b/src/Endpoint/CustomerDeliveryAddresses/DeleteCustomerDeliveryAddressResponse/DeleteCustomerDeliveryAddressResponse.php new file mode 100755 index 0000000..3b14b0c --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/DeleteCustomerDeliveryAddressResponse/DeleteCustomerDeliveryAddressResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/DeleteCustomerDeliveryAddressResponse/DeleteCustomerDeliveryAddressResponse/Data.php b/src/Endpoint/CustomerDeliveryAddresses/DeleteCustomerDeliveryAddressResponse/DeleteCustomerDeliveryAddressResponse/Data.php new file mode 100755 index 0000000..4acc3fd --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/DeleteCustomerDeliveryAddressResponse/DeleteCustomerDeliveryAddressResponse/Data.php @@ -0,0 +1,9 @@ + true]; + protected array $supportedQueryParams = ['language' => false, 'page' => false, 'itemsPerPage' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GeListOfCustomerDeliveryAddressesResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/delivery-addresses'; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse.php b/src/Endpoint/CustomerDeliveryAddresses/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse.php new file mode 100755 index 0000000..a515333 --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data.php b/src/Endpoint/CustomerDeliveryAddresses/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data.php new file mode 100755 index 0000000..b82d700 --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data.php @@ -0,0 +1,35 @@ +deliveryAddresses; + } + + public function setDeliveryAddresses(DeliveryAddresses $deliveryAddresses): static + { + $this->deliveryAddresses = $deliveryAddresses; + return $this; + } + + public function getPaginator(): Paginator + { + return $this->paginator; + } + + public function setPaginator(Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/Customers/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data/DeliveryAddresses.php b/src/Endpoint/CustomerDeliveryAddresses/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data/DeliveryAddresses.php old mode 100644 new mode 100755 similarity index 87% rename from src/Endpoint/Customers/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data/DeliveryAddresses.php rename to src/Endpoint/CustomerDeliveryAddresses/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data/DeliveryAddresses.php index eebd85d..c1f5c8b --- a/src/Endpoint/Customers/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data/DeliveryAddresses.php +++ b/src/Endpoint/CustomerDeliveryAddresses/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data/DeliveryAddresses.php @@ -1,6 +1,6 @@ true, 'addressGuid' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetDetailOfCustomerDeliveryAddressResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/delivery-addresses/{addressGuid}'; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse.php b/src/Endpoint/CustomerDeliveryAddresses/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse.php new file mode 100755 index 0000000..db27de4 --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse/Data.php b/src/Endpoint/CustomerDeliveryAddresses/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse/Data.php new file mode 100755 index 0000000..4b0d5d3 --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse/Data.php @@ -0,0 +1,22 @@ +deliveryAddress; + } + + public function setDeliveryAddress(DeliveryAddressCustomer $deliveryAddress): static + { + $this->deliveryAddress = $deliveryAddress; + return $this; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddress.php b/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddress.php new file mode 100755 index 0000000..292ce68 --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddress.php @@ -0,0 +1,34 @@ + true, 'addressGuid' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateCustomerDeliveryAddressRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateCustomerDeliveryAddressResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/delivery-addresses/{addressGuid}'; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest.php b/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest.php new file mode 100755 index 0000000..a107385 --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest/Data.php b/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest/Data.php new file mode 100755 index 0000000..1e502de --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest/Data.php @@ -0,0 +1,141 @@ +fullName; + } + + public function setFullName(?string $fullName): static + { + $this->fullName = $fullName; + return $this; + } + + public function getCompany(): ?string + { + return $this->company; + } + + public function setCompany(?string $company): static + { + $this->company = $company; + return $this; + } + + public function getStreet(): ?string + { + return $this->street; + } + + public function setStreet(?string $street): static + { + $this->street = $street; + return $this; + } + + public function getHouseNumber(): ?string + { + return $this->houseNumber; + } + + public function setHouseNumber(?string $houseNumber): static + { + $this->houseNumber = $houseNumber; + return $this; + } + + public function getCity(): ?string + { + return $this->city; + } + + public function setCity(?string $city): static + { + $this->city = $city; + return $this; + } + + public function getDistrict(): ?string + { + return $this->district; + } + + public function setDistrict(?string $district): static + { + $this->district = $district; + return $this; + } + + public function getAdditional(): ?string + { + return $this->additional; + } + + public function setAdditional(?string $additional): static + { + $this->additional = $additional; + return $this; + } + + public function getZip(): ?string + { + return $this->zip; + } + + public function setZip(?string $zip): static + { + $this->zip = $zip; + return $this; + } + + public function getCountryCode(): ?string + { + return $this->countryCode; + } + + public function setCountryCode(?string $countryCode): static + { + $this->countryCode = $countryCode; + return $this; + } + + public function getRegionName(): ?string + { + return $this->regionName; + } + + public function setRegionName(?string $regionName): static + { + $this->regionName = $regionName; + return $this; + } + + public function getIsDefault(): ?bool + { + return $this->isDefault; + } + + public function setIsDefault(?bool $isDefault): static + { + $this->isDefault = $isDefault; + return $this; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse.php b/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse.php new file mode 100755 index 0000000..887d90a --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse/Data.php b/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse/Data.php new file mode 100755 index 0000000..b572470 --- /dev/null +++ b/src/Endpoint/CustomerDeliveryAddresses/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse/Data.php @@ -0,0 +1,22 @@ +deliveryAddress; + } + + public function setDeliveryAddress(DeliveryAddressCustomer $deliveryAddress): static + { + $this->deliveryAddress = $deliveryAddress; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/CreateCustomerRemark.php b/src/Endpoint/CustomerRemarks/CreateCustomerRemark.php new file mode 100755 index 0000000..c19715d --- /dev/null +++ b/src/Endpoint/CustomerRemarks/CreateCustomerRemark.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return CreateCustomerRemarkRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateCustomerRemarkResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/remarks'; + } +} diff --git a/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest.php b/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest.php new file mode 100755 index 0000000..94d48a1 --- /dev/null +++ b/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest.php @@ -0,0 +1,22 @@ +schema; + } + + public function setSchema(?Schema $schema): static + { + $this->schema = $schema; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema.php b/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema.php new file mode 100755 index 0000000..df59a07 --- /dev/null +++ b/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema/Data.php b/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema/Data.php new file mode 100755 index 0000000..91e0bfa --- /dev/null +++ b/src/Endpoint/CustomerRemarks/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema/Data.php @@ -0,0 +1,33 @@ +rating; + } + + public function setRating(string $rating): static + { + $this->rating = $rating; + return $this; + } + + public function getRemark(): string + { + return $this->remark; + } + + public function setRemark(string $remark): static + { + $this->remark = $remark; + return $this; + } +} diff --git a/src/Endpoint/Customers/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse.php b/src/Endpoint/CustomerRemarks/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse.php old mode 100644 new mode 100755 similarity index 75% rename from src/Endpoint/Customers/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse.php rename to src/Endpoint/CustomerRemarks/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse.php index ced9954..884875c --- a/src/Endpoint/Customers/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse.php +++ b/src/Endpoint/CustomerRemarks/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse.php @@ -1,10 +1,10 @@ remark; + } + + public function setRemark(Remark $remark): static + { + $this->remark = $remark; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse/Data/Remark.php b/src/Endpoint/CustomerRemarks/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse/Data/Remark.php new file mode 100755 index 0000000..d41ccc4 --- /dev/null +++ b/src/Endpoint/CustomerRemarks/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse/Data/Remark.php @@ -0,0 +1,45 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getRating(): string + { + return $this->rating; + } + + public function setRating(string $rating): static + { + $this->rating = $rating; + return $this; + } + + public function getRemark(): string + { + return $this->remark; + } + + public function setRemark(string $remark): static + { + $this->remark = $remark; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/DeleteCustomerRemark.php b/src/Endpoint/CustomerRemarks/DeleteCustomerRemark.php new file mode 100755 index 0000000..623ade4 --- /dev/null +++ b/src/Endpoint/CustomerRemarks/DeleteCustomerRemark.php @@ -0,0 +1,33 @@ + true, 'id' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteCustomerRemarkResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/remarks/{id}'; + } +} diff --git a/src/Endpoint/CustomerRemarks/DeleteCustomerRemarkResponse/DeleteCustomerRemarkResponse.php b/src/Endpoint/CustomerRemarks/DeleteCustomerRemarkResponse/DeleteCustomerRemarkResponse.php new file mode 100755 index 0000000..f32cda5 --- /dev/null +++ b/src/Endpoint/CustomerRemarks/DeleteCustomerRemarkResponse/DeleteCustomerRemarkResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/DeleteCustomerRemarkResponse/DeleteCustomerRemarkResponse/Data.php b/src/Endpoint/CustomerRemarks/DeleteCustomerRemarkResponse/DeleteCustomerRemarkResponse/Data.php new file mode 100755 index 0000000..e359d6d --- /dev/null +++ b/src/Endpoint/CustomerRemarks/DeleteCustomerRemarkResponse/DeleteCustomerRemarkResponse/Data.php @@ -0,0 +1,9 @@ + true, 'id' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetDetailOfCustomerRemarkResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/remarks/{id}'; + } +} diff --git a/src/Endpoint/CustomerRemarks/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse.php b/src/Endpoint/CustomerRemarks/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse.php new file mode 100755 index 0000000..d178d7b --- /dev/null +++ b/src/Endpoint/CustomerRemarks/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data.php b/src/Endpoint/CustomerRemarks/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data.php new file mode 100755 index 0000000..d4342a9 --- /dev/null +++ b/src/Endpoint/CustomerRemarks/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data.php @@ -0,0 +1,22 @@ +remark; + } + + public function setRemark(Remark $remark): static + { + $this->remark = $remark; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data/Remark.php b/src/Endpoint/CustomerRemarks/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data/Remark.php new file mode 100755 index 0000000..083efbd --- /dev/null +++ b/src/Endpoint/CustomerRemarks/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data/Remark.php @@ -0,0 +1,45 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getRating(): string + { + return $this->rating; + } + + public function setRating(string $rating): static + { + $this->rating = $rating; + return $this; + } + + public function getRemark(): string + { + return $this->remark; + } + + public function setRemark(string $remark): static + { + $this->remark = $remark; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarks.php b/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarks.php new file mode 100755 index 0000000..8a48178 --- /dev/null +++ b/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarks.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false, 'page' => false, 'itemsPerPage' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfCustomerRemarksResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/remarks'; + } +} diff --git a/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse.php b/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse.php new file mode 100755 index 0000000..9e67595 --- /dev/null +++ b/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data.php b/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data.php new file mode 100755 index 0000000..239c63f --- /dev/null +++ b/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data.php @@ -0,0 +1,35 @@ +remarks; + } + + public function setRemarks(Remarks $remarks): static + { + $this->remarks = $remarks; + return $this; + } + + public function getPaginator(): Paginator + { + return $this->paginator; + } + + public function setPaginator(Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks.php b/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks.php new file mode 100755 index 0000000..8393638 --- /dev/null +++ b/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks.php @@ -0,0 +1,31 @@ + + * @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 Remarks extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\GetListOfCustomerRemarksResponse\GetListOfCustomerRemarksResponse\Data\Remarks\Item'; + } +} diff --git a/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks/Item.php b/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks/Item.php new file mode 100755 index 0000000..5c71cf7 --- /dev/null +++ b/src/Endpoint/CustomerRemarks/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks/Item.php @@ -0,0 +1,45 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getRating(): string + { + return $this->rating; + } + + public function setRating(string $rating): static + { + $this->rating = $rating; + return $this; + } + + public function getRemark(): string + { + return $this->remark; + } + + public function setRemark(string $remark): static + { + $this->remark = $remark; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/UpdateCustomerRemark.php b/src/Endpoint/CustomerRemarks/UpdateCustomerRemark.php new file mode 100755 index 0000000..d859d60 --- /dev/null +++ b/src/Endpoint/CustomerRemarks/UpdateCustomerRemark.php @@ -0,0 +1,34 @@ + true, 'id' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateCustomerRemarkRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateCustomerRemarkResponse::class; + } + + public function getEndpoint(): string + { + return '/api/customers/{guid}/remarks/{id}'; + } +} diff --git a/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest.php b/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest.php new file mode 100755 index 0000000..a75bd39 --- /dev/null +++ b/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest/Data.php b/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest/Data.php new file mode 100755 index 0000000..d60c65a --- /dev/null +++ b/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest/Data.php @@ -0,0 +1,33 @@ +rating; + } + + public function setRating(?string $rating): static + { + $this->rating = $rating; + return $this; + } + + public function getRemark(): ?string + { + return $this->remark; + } + + public function setRemark(?string $remark): static + { + $this->remark = $remark; + return $this; + } +} diff --git a/src/Endpoint/Customers/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse.php b/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse.php old mode 100644 new mode 100755 similarity index 75% rename from src/Endpoint/Customers/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse.php rename to src/Endpoint/CustomerRemarks/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse.php index 4ada852..3b3cc77 --- a/src/Endpoint/Customers/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse.php +++ b/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse.php @@ -1,10 +1,10 @@ remark; + } + + public function setRemark(Remark $remark): static + { + $this->remark = $remark; + return $this; + } +} diff --git a/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data/Remark.php b/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data/Remark.php new file mode 100755 index 0000000..cdd054d --- /dev/null +++ b/src/Endpoint/CustomerRemarks/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data/Remark.php @@ -0,0 +1,45 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getRating(): string + { + return $this->rating; + } + + public function setRating(string $rating): static + { + $this->rating = $rating; + return $this; + } + + public function getRemark(): string + { + return $this->remark; + } + + public function setRemark(string $remark): static + { + $this->remark = $remark; + return $this; + } +} diff --git a/src/Endpoint/Customers/CreateCustomer.php b/src/Endpoint/Customers/CreateCustomer.php old mode 100644 new mode 100755 index efa4665..3f0e788 --- a/src/Endpoint/Customers/CreateCustomer.php +++ b/src/Endpoint/Customers/CreateCustomer.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Customers/createcustomer + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/createcustomer * * @method CreateCustomer setBody(null|array|CreateCustomerRequest $entity) * @method null|CreateCustomerRequest getBody() @@ -15,7 +15,12 @@ class CreateCustomer extends Post { protected array $supportedPathParams = []; - protected array $supportedQueryParams = ['language' => false, 'suppressMandatoryFieldsCheck' => false]; + + protected array $supportedQueryParams = [ + 'language' => false, + 'suppressMandatoryFieldsCheck' => false, + 'sendRegistrationEmail' => false, + ]; public function getRequestEntityClass(): string { diff --git a/src/Endpoint/Customers/CreateCustomerAccount.php b/src/Endpoint/Customers/CreateCustomerAccount.php deleted file mode 100644 index 6558b40..0000000 --- a/src/Endpoint/Customers/CreateCustomerAccount.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return CreateCustomerAccountRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateCustomerAccountResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/accounts'; - } -} diff --git a/src/Endpoint/Customers/CreateCustomerAccountRequest/CreateCustomerAccountRequest.php b/src/Endpoint/Customers/CreateCustomerAccountRequest/CreateCustomerAccountRequest.php deleted file mode 100644 index 1924dbf..0000000 --- a/src/Endpoint/Customers/CreateCustomerAccountRequest/CreateCustomerAccountRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Customers/CreateCustomerAccountRequest/CreateCustomerAccountRequest/Data.php b/src/Endpoint/Customers/CreateCustomerAccountRequest/CreateCustomerAccountRequest/Data.php deleted file mode 100644 index 4703dd6..0000000 --- a/src/Endpoint/Customers/CreateCustomerAccountRequest/CreateCustomerAccountRequest/Data.php +++ /dev/null @@ -1,81 +0,0 @@ -fullName; - } - - public function setFullName(?string $fullName): static - { - $this->fullName = $fullName; - return $this; - } - - public function getEmail(): string - { - return $this->email; - } - - public function setEmail(string $email): static - { - $this->email = $email; - return $this; - } - - public function getPhone(): ?string - { - return $this->phone; - } - - public function setPhone(?string $phone): static - { - $this->phone = $phone; - return $this; - } - - public function getMainAccount(): ?bool - { - return $this->mainAccount; - } - - public function setMainAccount(?bool $mainAccount): static - { - $this->mainAccount = $mainAccount; - return $this; - } - - public function getAuthorized(): ?bool - { - return $this->authorized; - } - - public function setAuthorized(?bool $authorized): static - { - $this->authorized = $authorized; - return $this; - } - - public function getEmailVerified(): ?bool - { - return $this->emailVerified; - } - - public function setEmailVerified(?bool $emailVerified): static - { - $this->emailVerified = $emailVerified; - return $this; - } -} diff --git a/src/Endpoint/Customers/CreateCustomerAccountResponse/CreateCustomerAccountResponse/Data.php b/src/Endpoint/Customers/CreateCustomerAccountResponse/CreateCustomerAccountResponse/Data.php deleted file mode 100644 index c66ea30..0000000 --- a/src/Endpoint/Customers/CreateCustomerAccountResponse/CreateCustomerAccountResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -account; - } - - public function setAccount(Account $account): static - { - $this->account = $account; - return $this; - } -} diff --git a/src/Endpoint/Customers/CreateCustomerAccountResponse/CreateCustomerAccountResponse/Data/Account.php b/src/Endpoint/Customers/CreateCustomerAccountResponse/CreateCustomerAccountResponse/Data/Account.php deleted file mode 100644 index a54b131..0000000 --- a/src/Endpoint/Customers/CreateCustomerAccountResponse/CreateCustomerAccountResponse/Data/Account.php +++ /dev/null @@ -1,94 +0,0 @@ -guid; - } - - public function setGuid(TypeGuidUnlimited $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getFullName(): ?string - { - return $this->fullName; - } - - public function setFullName(?string $fullName): static - { - $this->fullName = $fullName; - return $this; - } - - public function getEmail(): string - { - return $this->email; - } - - public function setEmail(string $email): static - { - $this->email = $email; - return $this; - } - - public function getPhone(): ?string - { - return $this->phone; - } - - public function setPhone(?string $phone): static - { - $this->phone = $phone; - return $this; - } - - public function isMainAccount(): bool - { - return $this->mainAccount; - } - - public function setMainAccount(bool $mainAccount): static - { - $this->mainAccount = $mainAccount; - return $this; - } - - public function isAuthorized(): bool - { - return $this->authorized; - } - - public function setAuthorized(bool $authorized): static - { - $this->authorized = $authorized; - return $this; - } - - public function isEmailVerified(): bool - { - return $this->emailVerified; - } - - public function setEmailVerified(bool $emailVerified): static - { - $this->emailVerified = $emailVerified; - return $this; - } -} diff --git a/src/Endpoint/Customers/CreateCustomerRemark.php b/src/Endpoint/Customers/CreateCustomerRemark.php deleted file mode 100644 index 063dd09..0000000 --- a/src/Endpoint/Customers/CreateCustomerRemark.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return CreateCustomerRemarkRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateCustomerRemarkResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/remarks'; - } -} diff --git a/src/Endpoint/Customers/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest.php b/src/Endpoint/Customers/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest.php deleted file mode 100644 index 41ed43a..0000000 --- a/src/Endpoint/Customers/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -schema; - } - - public function setSchema(?Schema $schema): static - { - $this->schema = $schema; - return $this; - } -} diff --git a/src/Endpoint/Customers/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema.php b/src/Endpoint/Customers/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema.php deleted file mode 100644 index bff2afc..0000000 --- a/src/Endpoint/Customers/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Customers/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema/Data.php b/src/Endpoint/Customers/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema/Data.php deleted file mode 100644 index 6a3d270..0000000 --- a/src/Endpoint/Customers/CreateCustomerRemarkRequest/CreateCustomerRemarkRequest/Schema/Data.php +++ /dev/null @@ -1,33 +0,0 @@ -rating; - } - - public function setRating(string $rating): static - { - $this->rating = $rating; - return $this; - } - - public function getRemark(): string - { - return $this->remark; - } - - public function setRemark(string $remark): static - { - $this->remark = $remark; - return $this; - } -} diff --git a/src/Endpoint/Customers/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse/Data.php b/src/Endpoint/Customers/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse/Data.php deleted file mode 100644 index 170b47a..0000000 --- a/src/Endpoint/Customers/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -remark; - } - - public function setRemark(Remark $remark): static - { - $this->remark = $remark; - return $this; - } -} diff --git a/src/Endpoint/Customers/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse/Data/Remark.php b/src/Endpoint/Customers/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse/Data/Remark.php deleted file mode 100644 index 6c2281a..0000000 --- a/src/Endpoint/Customers/CreateCustomerRemarkResponse/CreateCustomerRemarkResponse/Data/Remark.php +++ /dev/null @@ -1,45 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getRating(): string - { - return $this->rating; - } - - public function setRating(string $rating): static - { - $this->rating = $rating; - return $this; - } - - public function getRemark(): string - { - return $this->remark; - } - - public function setRemark(string $remark): static - { - $this->remark = $remark; - return $this; - } -} diff --git a/src/Endpoint/Customers/CreateCustomerRequest/CreateCustomerRequest.php b/src/Endpoint/Customers/CreateCustomerRequest/CreateCustomerRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/CreateCustomerRequest/CreateCustomerRequest/Data.php b/src/Endpoint/Customers/CreateCustomerRequest/CreateCustomerRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/CreateCustomerRequest/CreateCustomerRequest/Data/Account.php b/src/Endpoint/Customers/CreateCustomerRequest/CreateCustomerRequest/Data/Account.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/CreateCustomerResponse/CreateCustomerResponse.php b/src/Endpoint/Customers/CreateCustomerResponse/CreateCustomerResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/CreateCustomerResponse/CreateCustomerResponse/Data.php b/src/Endpoint/Customers/CreateCustomerResponse/CreateCustomerResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/CreateDeliveryAddress.php b/src/Endpoint/Customers/CreateDeliveryAddress.php deleted file mode 100644 index 22ad48c..0000000 --- a/src/Endpoint/Customers/CreateDeliveryAddress.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return CreateDeliveryAddressRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateDeliveryAddressResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/delivery-addresses'; - } -} diff --git a/src/Endpoint/Customers/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest.php b/src/Endpoint/Customers/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest.php deleted file mode 100644 index fdf2580..0000000 --- a/src/Endpoint/Customers/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Customers/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest/Data.php b/src/Endpoint/Customers/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest/Data.php deleted file mode 100644 index b59bf1e..0000000 --- a/src/Endpoint/Customers/CreateDeliveryAddressRequest/CreateDeliveryAddressRequest/Data.php +++ /dev/null @@ -1,141 +0,0 @@ -fullName; - } - - public function setFullName(?string $fullName): static - { - $this->fullName = $fullName; - return $this; - } - - public function getCompany(): ?string - { - return $this->company; - } - - public function setCompany(?string $company): static - { - $this->company = $company; - return $this; - } - - public function getStreet(): ?string - { - return $this->street; - } - - public function setStreet(?string $street): static - { - $this->street = $street; - return $this; - } - - public function getHouseNumber(): ?string - { - return $this->houseNumber; - } - - public function setHouseNumber(?string $houseNumber): static - { - $this->houseNumber = $houseNumber; - return $this; - } - - public function getCity(): ?string - { - return $this->city; - } - - public function setCity(?string $city): static - { - $this->city = $city; - return $this; - } - - public function getDistrict(): ?string - { - return $this->district; - } - - public function setDistrict(?string $district): static - { - $this->district = $district; - return $this; - } - - public function getAdditional(): ?string - { - return $this->additional; - } - - public function setAdditional(?string $additional): static - { - $this->additional = $additional; - return $this; - } - - public function getZip(): ?string - { - return $this->zip; - } - - public function setZip(?string $zip): static - { - $this->zip = $zip; - return $this; - } - - public function getCountryCode(): string - { - return $this->countryCode; - } - - public function setCountryCode(string $countryCode): static - { - $this->countryCode = $countryCode; - return $this; - } - - public function getRegionName(): ?string - { - return $this->regionName; - } - - public function setRegionName(?string $regionName): static - { - $this->regionName = $regionName; - return $this; - } - - public function getIsDefault(): ?bool - { - return $this->isDefault; - } - - public function setIsDefault(?bool $isDefault): static - { - $this->isDefault = $isDefault; - return $this; - } -} diff --git a/src/Endpoint/Customers/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse.php b/src/Endpoint/Customers/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse.php deleted file mode 100644 index 1f02cb4..0000000 --- a/src/Endpoint/Customers/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Customers/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse/Data.php b/src/Endpoint/Customers/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse/Data.php deleted file mode 100644 index 86f4d53..0000000 --- a/src/Endpoint/Customers/CreateDeliveryAddressResponse/CreateDeliveryAddressResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -deliveryAddress; - } - - public function setDeliveryAddress(DeliveryAddressCustomer $deliveryAddress): static - { - $this->deliveryAddress = $deliveryAddress; - return $this; - } -} diff --git a/src/Endpoint/Customers/DeleteCustomer.php b/src/Endpoint/Customers/DeleteCustomer.php old mode 100644 new mode 100755 index 40db7c4..47e16d8 --- a/src/Endpoint/Customers/DeleteCustomer.php +++ b/src/Endpoint/Customers/DeleteCustomer.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Delete; /** - * @see https://api.docs.shoptet.com/openapi/Customers/deletecustomer + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/deletecustomer * * @method DeleteCustomer setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Customers/DeleteCustomerAccount.php b/src/Endpoint/Customers/DeleteCustomerAccount.php deleted file mode 100644 index 448a5cb..0000000 --- a/src/Endpoint/Customers/DeleteCustomerAccount.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'accountGuid' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteCustomerAccountResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/accounts/{accountGuid}'; - } -} diff --git a/src/Endpoint/Customers/DeleteCustomerAccountResponse/DeleteCustomerAccountResponse.php b/src/Endpoint/Customers/DeleteCustomerAccountResponse/DeleteCustomerAccountResponse.php deleted file mode 100644 index 981e89d..0000000 --- a/src/Endpoint/Customers/DeleteCustomerAccountResponse/DeleteCustomerAccountResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Customers/DeleteCustomerDeliveryAddress.php b/src/Endpoint/Customers/DeleteCustomerDeliveryAddress.php deleted file mode 100644 index f441b97..0000000 --- a/src/Endpoint/Customers/DeleteCustomerDeliveryAddress.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'addressGuid' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteCustomerDeliveryAddressResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/delivery-addresses/{addressGuid}'; - } -} diff --git a/src/Endpoint/Customers/DeleteCustomerDeliveryAddressResponse/DeleteCustomerDeliveryAddressResponse.php b/src/Endpoint/Customers/DeleteCustomerDeliveryAddressResponse/DeleteCustomerDeliveryAddressResponse.php deleted file mode 100644 index 10ce6be..0000000 --- a/src/Endpoint/Customers/DeleteCustomerDeliveryAddressResponse/DeleteCustomerDeliveryAddressResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Customers/DeleteCustomerRemark.php b/src/Endpoint/Customers/DeleteCustomerRemark.php deleted file mode 100644 index 12f9334..0000000 --- a/src/Endpoint/Customers/DeleteCustomerRemark.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'id' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteCustomerRemarkResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/remarks/{id}'; - } -} diff --git a/src/Endpoint/Customers/DeleteCustomerRemarkResponse/DeleteCustomerRemarkResponse.php b/src/Endpoint/Customers/DeleteCustomerRemarkResponse/DeleteCustomerRemarkResponse.php deleted file mode 100644 index 4e2e598..0000000 --- a/src/Endpoint/Customers/DeleteCustomerRemarkResponse/DeleteCustomerRemarkResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Customers/DeleteCustomerResponse/DeleteCustomerResponse.php b/src/Endpoint/Customers/DeleteCustomerResponse/DeleteCustomerResponse.php old mode 100644 new mode 100755 index a62cd04..ca86f82 --- a/src/Endpoint/Customers/DeleteCustomerResponse/DeleteCustomerResponse.php +++ b/src/Endpoint/Customers/DeleteCustomerResponse/DeleteCustomerResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\Customers\DeleteCustomerResponse\DeleteCustomerResponse\Data; class DeleteCustomerResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Customers/DeleteCustomerResponse/DeleteCustomerResponse/Data.php b/src/Endpoint/Customers/DeleteCustomerResponse/DeleteCustomerResponse/Data.php new file mode 100755 index 0000000..a8fb106 --- /dev/null +++ b/src/Endpoint/Customers/DeleteCustomerResponse/DeleteCustomerResponse/Data.php @@ -0,0 +1,9 @@ + true]; - protected array $supportedQueryParams = ['language' => false, 'page' => false, 'itemsPerPage' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GeListOfCustomerDeliveryAddressesResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/delivery-addresses'; - } -} diff --git a/src/Endpoint/Customers/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse.php b/src/Endpoint/Customers/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse.php deleted file mode 100644 index 34c2b6b..0000000 --- a/src/Endpoint/Customers/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Customers/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data.php b/src/Endpoint/Customers/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data.php deleted file mode 100644 index 6bf783e..0000000 --- a/src/Endpoint/Customers/GeListOfCustomerDeliveryAddressesResponse/GeListOfCustomerDeliveryAddressesResponse/Data.php +++ /dev/null @@ -1,35 +0,0 @@ -deliveryAddresses; - } - - public function setDeliveryAddresses(DeliveryAddresses $deliveryAddresses): static - { - $this->deliveryAddresses = $deliveryAddresses; - return $this; - } - - public function getPaginator(): Paginator - { - return $this->paginator; - } - - public function setPaginator(Paginator $paginator): static - { - $this->paginator = $paginator; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetCustomerDetail.php b/src/Endpoint/Customers/GetCustomerDetail.php old mode 100644 new mode 100755 index de9f950..725050d --- a/src/Endpoint/Customers/GetCustomerDetail.php +++ b/src/Endpoint/Customers/GetCustomerDetail.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Customers/getcustomerdetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/getcustomerdetail * * @method GetCustomerDetail setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Customers/GetCustomerDetailResponse/GetCustomerDetailResponse.php b/src/Endpoint/Customers/GetCustomerDetailResponse/GetCustomerDetailResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetCustomerDetailResponse/GetCustomerDetailResponse/Data.php b/src/Endpoint/Customers/GetCustomerDetailResponse/GetCustomerDetailResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetDetailOfCustomerAccount.php b/src/Endpoint/Customers/GetDetailOfCustomerAccount.php deleted file mode 100644 index 79f0080..0000000 --- a/src/Endpoint/Customers/GetDetailOfCustomerAccount.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'accountGuid' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetDetailOfCustomerAccountResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/accounts/{accountGuid}'; - } -} diff --git a/src/Endpoint/Customers/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse.php b/src/Endpoint/Customers/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse.php deleted file mode 100644 index a70f10a..0000000 --- a/src/Endpoint/Customers/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data.php b/src/Endpoint/Customers/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data.php deleted file mode 100644 index 02c24ce..0000000 --- a/src/Endpoint/Customers/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -account; - } - - public function setAccount(Account $account): static - { - $this->account = $account; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data/Account.php b/src/Endpoint/Customers/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data/Account.php deleted file mode 100644 index 5b74b86..0000000 --- a/src/Endpoint/Customers/GetDetailOfCustomerAccountResponse/GetDetailOfCustomerAccountResponse/Data/Account.php +++ /dev/null @@ -1,94 +0,0 @@ -guid; - } - - public function setGuid(TypeGuidUnlimited $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getFullName(): ?string - { - return $this->fullName; - } - - public function setFullName(?string $fullName): static - { - $this->fullName = $fullName; - return $this; - } - - public function getEmail(): string - { - return $this->email; - } - - public function setEmail(string $email): static - { - $this->email = $email; - return $this; - } - - public function getPhone(): ?string - { - return $this->phone; - } - - public function setPhone(?string $phone): static - { - $this->phone = $phone; - return $this; - } - - public function isMainAccount(): bool - { - return $this->mainAccount; - } - - public function setMainAccount(bool $mainAccount): static - { - $this->mainAccount = $mainAccount; - return $this; - } - - public function isAuthorized(): bool - { - return $this->authorized; - } - - public function setAuthorized(bool $authorized): static - { - $this->authorized = $authorized; - return $this; - } - - public function isEmailVerified(): bool - { - return $this->emailVerified; - } - - public function setEmailVerified(bool $emailVerified): static - { - $this->emailVerified = $emailVerified; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetDetailOfCustomerDeliveryAddress.php b/src/Endpoint/Customers/GetDetailOfCustomerDeliveryAddress.php deleted file mode 100644 index 7c1d0a7..0000000 --- a/src/Endpoint/Customers/GetDetailOfCustomerDeliveryAddress.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'addressGuid' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetDetailOfCustomerDeliveryAddressResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/delivery-addresses/{addressGuid}'; - } -} diff --git a/src/Endpoint/Customers/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse.php b/src/Endpoint/Customers/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse.php deleted file mode 100644 index 4ec032b..0000000 --- a/src/Endpoint/Customers/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse/Data.php b/src/Endpoint/Customers/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse/Data.php deleted file mode 100644 index fd4c278..0000000 --- a/src/Endpoint/Customers/GetDetailOfCustomerDeliveryAddressResponse/GetDetailOfCustomerDeliveryAddressResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -deliveryAddress; - } - - public function setDeliveryAddress(DeliveryAddressCustomer $deliveryAddress): static - { - $this->deliveryAddress = $deliveryAddress; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetDetailOfCustomerRemark.php b/src/Endpoint/Customers/GetDetailOfCustomerRemark.php deleted file mode 100644 index 66db408..0000000 --- a/src/Endpoint/Customers/GetDetailOfCustomerRemark.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'id' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetDetailOfCustomerRemarkResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/remarks/{id}'; - } -} diff --git a/src/Endpoint/Customers/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse.php b/src/Endpoint/Customers/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse.php deleted file mode 100644 index 658d8f5..0000000 --- a/src/Endpoint/Customers/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data.php b/src/Endpoint/Customers/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data.php deleted file mode 100644 index cab3d01..0000000 --- a/src/Endpoint/Customers/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -remark; - } - - public function setRemark(Remark $remark): static - { - $this->remark = $remark; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data/Remark.php b/src/Endpoint/Customers/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data/Remark.php deleted file mode 100644 index 1dba6ab..0000000 --- a/src/Endpoint/Customers/GetDetailOfCustomerRemarkResponse/GetDetailOfCustomerRemarkResponse/Data/Remark.php +++ /dev/null @@ -1,45 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getRating(): string - { - return $this->rating; - } - - public function setRating(string $rating): static - { - $this->rating = $rating; - return $this; - } - - public function getRemark(): string - { - return $this->remark; - } - - public function setRemark(string $remark): static - { - $this->remark = $remark; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetLastCustomerChanges.php b/src/Endpoint/Customers/GetLastCustomerChanges.php old mode 100644 new mode 100755 index 7d9c8fe..d869565 --- a/src/Endpoint/Customers/GetLastCustomerChanges.php +++ b/src/Endpoint/Customers/GetLastCustomerChanges.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PageableGet; /** - * @see https://api.docs.shoptet.com/openapi/Customers/getlastcustomerchanges + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/getlastcustomerchanges * * @method GetLastCustomerChanges setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Customers/GetLastCustomerChangesResponse/GetLastCustomerChangesResponse.php b/src/Endpoint/Customers/GetLastCustomerChangesResponse/GetLastCustomerChangesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetLastCustomerChangesResponse/GetLastCustomerChangesResponse/Data.php b/src/Endpoint/Customers/GetLastCustomerChangesResponse/GetLastCustomerChangesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetLastCustomerChangesResponse/GetLastCustomerChangesResponse/Data/Changes.php b/src/Endpoint/Customers/GetLastCustomerChangesResponse/GetLastCustomerChangesResponse/Data/Changes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetLastCustomerChangesResponse/GetLastCustomerChangesResponse/Data/Changes/Item.php b/src/Endpoint/Customers/GetLastCustomerChangesResponse/GetLastCustomerChangesResponse/Data/Changes/Item.php old mode 100644 new mode 100755 index cf9040e..7582fc7 --- a/src/Endpoint/Customers/GetLastCustomerChangesResponse/GetLastCustomerChangesResponse/Data/Changes/Item.php +++ b/src/Endpoint/Customers/GetLastCustomerChangesResponse/GetLastCustomerChangesResponse/Data/Changes/Item.php @@ -3,13 +3,13 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Customers\GetLastCustomerChangesResponse\GetLastCustomerChangesResponse\Data\Changes; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; class Item extends Entity { protected TypeGuidUnlimited $guid; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $changeTime; protected string $changeType; public function getGuid(): TypeGuidUnlimited @@ -23,12 +23,12 @@ public function setGuid(TypeGuidUnlimited $guid): static return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; diff --git a/src/Endpoint/Customers/GetListOfAllCustomers.php b/src/Endpoint/Customers/GetListOfAllCustomers.php old mode 100644 new mode 100755 index ac81ea5..1c1aa09 --- a/src/Endpoint/Customers/GetListOfAllCustomers.php +++ b/src/Endpoint/Customers/GetListOfAllCustomers.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Customers; use Shoptet\Api\Sdk\Php\Async\SnapshotEndpoint; -use Shoptet\Api\Sdk\Php\Component\Entity\Customer; +use Shoptet\Api\Sdk\Php\Component\Entity\CustomerSnapshot; use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfAllCustomersResponse\GetListOfAllCustomersResponse; use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Customers/getlistofallcustomers + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/getlistofallcustomers * * @method GetListOfAllCustomers setBody(null $entity) * @method null getBody() @@ -42,6 +42,6 @@ public function getEndpoint(): string public function getSnapshotResultEntityClass(): string { - return Customer::class; + return CustomerSnapshot::class; } } diff --git a/src/Endpoint/Customers/GetListOfAllCustomersResponse/GetListOfAllCustomersResponse.php b/src/Endpoint/Customers/GetListOfAllCustomersResponse/GetListOfAllCustomersResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetListOfAllCustomersResponse/GetListOfAllCustomersResponse/Data.php b/src/Endpoint/Customers/GetListOfAllCustomersResponse/GetListOfAllCustomersResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetListOfCustomerAccounts.php b/src/Endpoint/Customers/GetListOfCustomerAccounts.php deleted file mode 100644 index e2f3b1e..0000000 --- a/src/Endpoint/Customers/GetListOfCustomerAccounts.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false, 'page' => false, 'itemsPerPage' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfCustomerAccountsResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/accounts'; - } -} diff --git a/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse.php b/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse.php deleted file mode 100644 index 3bcbf98..0000000 --- a/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data.php b/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data.php deleted file mode 100644 index de2c904..0000000 --- a/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data.php +++ /dev/null @@ -1,35 +0,0 @@ -accounts; - } - - public function setAccounts(Accounts $accounts): static - { - $this->accounts = $accounts; - return $this; - } - - public function getPaginator(): Paginator - { - return $this->paginator; - } - - public function setPaginator(Paginator $paginator): static - { - $this->paginator = $paginator; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts.php b/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts.php deleted file mode 100644 index ac65909..0000000 --- a/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Accounts extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerAccountsResponse\GetListOfCustomerAccountsResponse\Data\Accounts\Item'; - } -} diff --git a/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts/Item.php b/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts/Item.php deleted file mode 100644 index 599823a..0000000 --- a/src/Endpoint/Customers/GetListOfCustomerAccountsResponse/GetListOfCustomerAccountsResponse/Data/Accounts/Item.php +++ /dev/null @@ -1,94 +0,0 @@ -guid; - } - - public function setGuid(TypeGuidUnlimited $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getFullName(): ?string - { - return $this->fullName; - } - - public function setFullName(?string $fullName): static - { - $this->fullName = $fullName; - return $this; - } - - public function getEmail(): string - { - return $this->email; - } - - public function setEmail(string $email): static - { - $this->email = $email; - return $this; - } - - public function getPhone(): ?string - { - return $this->phone; - } - - public function setPhone(?string $phone): static - { - $this->phone = $phone; - return $this; - } - - public function isMainAccount(): bool - { - return $this->mainAccount; - } - - public function setMainAccount(bool $mainAccount): static - { - $this->mainAccount = $mainAccount; - return $this; - } - - public function isAuthorized(): bool - { - return $this->authorized; - } - - public function setAuthorized(bool $authorized): static - { - $this->authorized = $authorized; - return $this; - } - - public function isEmailVerified(): bool - { - return $this->emailVerified; - } - - public function setEmailVerified(bool $emailVerified): static - { - $this->emailVerified = $emailVerified; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetListOfCustomerGroups.php b/src/Endpoint/Customers/GetListOfCustomerGroups.php old mode 100644 new mode 100755 index 710e1b7..417a106 --- a/src/Endpoint/Customers/GetListOfCustomerGroups.php +++ b/src/Endpoint/Customers/GetListOfCustomerGroups.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Customers/getlistofcustomergroups + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/getlistofcustomergroups * * @method GetListOfCustomerGroups setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse.php b/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data.php b/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups.php b/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups/Item.php b/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups/Item.php old mode 100644 new mode 100755 index c13afaa..0b35f98 --- a/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups/Item.php +++ b/src/Endpoint/Customers/GetListOfCustomerGroupsResponse/GetListOfCustomerGroupsResponse/Data/CustomerGroups/Item.php @@ -20,6 +20,7 @@ class Item extends Entity protected bool $wholesale; protected bool $tableLayout; protected bool $fullProfileRequired; + protected ?int $defaultDueDays; public function getId(): int { @@ -163,4 +164,15 @@ public function setFullProfileRequired(bool $fullProfileRequired): static $this->fullProfileRequired = $fullProfileRequired; return $this; } + + public function getDefaultDueDays(): ?int + { + return $this->defaultDueDays; + } + + public function setDefaultDueDays(?int $defaultDueDays): static + { + $this->defaultDueDays = $defaultDueDays; + return $this; + } } diff --git a/src/Endpoint/Customers/GetListOfCustomerRegions.php b/src/Endpoint/Customers/GetListOfCustomerRegions.php old mode 100644 new mode 100755 index a7e8f89..a9d2f25 --- a/src/Endpoint/Customers/GetListOfCustomerRegions.php +++ b/src/Endpoint/Customers/GetListOfCustomerRegions.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Customers/getlistofcustomerregions + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/getlistofcustomerregions * * @method GetListOfCustomerRegions setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Customers/GetListOfCustomerRegionsResponse/GetListOfCustomerRegionsResponse.php b/src/Endpoint/Customers/GetListOfCustomerRegionsResponse/GetListOfCustomerRegionsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetListOfCustomerRegionsResponse/GetListOfCustomerRegionsResponse/Data.php b/src/Endpoint/Customers/GetListOfCustomerRegionsResponse/GetListOfCustomerRegionsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetListOfCustomerRegionsResponse/GetListOfCustomerRegionsResponse/Data/Regions.php b/src/Endpoint/Customers/GetListOfCustomerRegionsResponse/GetListOfCustomerRegionsResponse/Data/Regions.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetListOfCustomerRegionsResponse/GetListOfCustomerRegionsResponse/Data/Regions/Item.php b/src/Endpoint/Customers/GetListOfCustomerRegionsResponse/GetListOfCustomerRegionsResponse/Data/Regions/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetListOfCustomerRemarks.php b/src/Endpoint/Customers/GetListOfCustomerRemarks.php deleted file mode 100644 index 0c06912..0000000 --- a/src/Endpoint/Customers/GetListOfCustomerRemarks.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false, 'page' => false, 'itemsPerPage' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfCustomerRemarksResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/remarks'; - } -} diff --git a/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse.php b/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse.php deleted file mode 100644 index a81c312..0000000 --- a/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data.php b/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data.php deleted file mode 100644 index 4fbc467..0000000 --- a/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data.php +++ /dev/null @@ -1,35 +0,0 @@ -remarks; - } - - public function setRemarks(Remarks $remarks): static - { - $this->remarks = $remarks; - return $this; - } - - public function getPaginator(): Paginator - { - return $this->paginator; - } - - public function setPaginator(Paginator $paginator): static - { - $this->paginator = $paginator; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks.php b/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks.php deleted file mode 100644 index 396c845..0000000 --- a/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Remarks extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerRemarksResponse\GetListOfCustomerRemarksResponse\Data\Remarks\Item'; - } -} diff --git a/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks/Item.php b/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks/Item.php deleted file mode 100644 index 9d05270..0000000 --- a/src/Endpoint/Customers/GetListOfCustomerRemarksResponse/GetListOfCustomerRemarksResponse/Data/Remarks/Item.php +++ /dev/null @@ -1,45 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getRating(): string - { - return $this->rating; - } - - public function setRating(string $rating): static - { - $this->rating = $rating; - return $this; - } - - public function getRemark(): string - { - return $this->remark; - } - - public function setRemark(string $remark): static - { - $this->remark = $remark; - return $this; - } -} diff --git a/src/Endpoint/Customers/GetListOfCustomers.php b/src/Endpoint/Customers/GetListOfCustomers.php old mode 100644 new mode 100755 index f564421..fdd88f6 --- a/src/Endpoint/Customers/GetListOfCustomers.php +++ b/src/Endpoint/Customers/GetListOfCustomers.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PageableGet; /** - * @see https://api.docs.shoptet.com/openapi/Customers/getlistofcustomers + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/getlistofcustomers * * @method GetListOfCustomers setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse.php b/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse/Data.php b/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse/Data/Customers.php b/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse/Data/Customers.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse/Data/Customers/Item.php b/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse/Data/Customers/Item.php old mode 100644 new mode 100755 index cdc66c9..3cce60a --- a/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse/Data/Customers/Item.php +++ b/src/Endpoint/Customers/GetListOfCustomersResponse/GetListOfCustomersResponse/Data/Customers/Item.php @@ -3,14 +3,14 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomersResponse\GetListOfCustomersResponse\Data\Customers; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; class Item extends Entity { protected TypeGuidUnlimited $guid; - protected TypeDateTime $creationTime; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $creationTime; + protected TypeDateTimeNullable $changeTime; protected ?string $billCompany; protected ?string $billFullName; protected string $adminUrl; @@ -26,23 +26,23 @@ public function setGuid(TypeGuidUnlimited $guid): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; diff --git a/src/Endpoint/Customers/UpdateCustomer.php b/src/Endpoint/Customers/UpdateCustomer.php old mode 100644 new mode 100755 index f017f37..b988d81 --- a/src/Endpoint/Customers/UpdateCustomer.php +++ b/src/Endpoint/Customers/UpdateCustomer.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Patch; /** - * @see https://api.docs.shoptet.com/openapi/Customers/updatecustomer + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/updatecustomer * * @method UpdateCustomer setBody(null|array|UpdateCustomerRequest $entity) * @method null|UpdateCustomerRequest getBody() diff --git a/src/Endpoint/Customers/UpdateCustomerAccount.php b/src/Endpoint/Customers/UpdateCustomerAccount.php deleted file mode 100644 index ff507fc..0000000 --- a/src/Endpoint/Customers/UpdateCustomerAccount.php +++ /dev/null @@ -1,34 +0,0 @@ - true, 'accountGuid' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateCustomerAccountRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateCustomerAccountResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/accounts/{accountGuid}'; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest.php b/src/Endpoint/Customers/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest.php deleted file mode 100644 index cb40ef8..0000000 --- a/src/Endpoint/Customers/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest/Data.php b/src/Endpoint/Customers/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest/Data.php deleted file mode 100644 index d2d03d7..0000000 --- a/src/Endpoint/Customers/UpdateCustomerAccountRequest/UpdateCustomerAccountRequest/Data.php +++ /dev/null @@ -1,81 +0,0 @@ -fullName; - } - - public function setFullName(?string $fullName): static - { - $this->fullName = $fullName; - return $this; - } - - public function getEmail(): ?string - { - return $this->email; - } - - public function setEmail(?string $email): static - { - $this->email = $email; - return $this; - } - - public function getPhone(): ?string - { - return $this->phone; - } - - public function setPhone(?string $phone): static - { - $this->phone = $phone; - return $this; - } - - public function getMainAccount(): ?bool - { - return $this->mainAccount; - } - - public function setMainAccount(?bool $mainAccount): static - { - $this->mainAccount = $mainAccount; - return $this; - } - - public function getAuthorized(): ?bool - { - return $this->authorized; - } - - public function setAuthorized(?bool $authorized): static - { - $this->authorized = $authorized; - return $this; - } - - public function getEmailVerified(): ?bool - { - return $this->emailVerified; - } - - public function setEmailVerified(?bool $emailVerified): static - { - $this->emailVerified = $emailVerified; - return $this; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse/Data.php b/src/Endpoint/Customers/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse/Data.php deleted file mode 100644 index 4c7c857..0000000 --- a/src/Endpoint/Customers/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -account; - } - - public function setAccount(Account $account): static - { - $this->account = $account; - return $this; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse/Data/Account.php b/src/Endpoint/Customers/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse/Data/Account.php deleted file mode 100644 index d85d317..0000000 --- a/src/Endpoint/Customers/UpdateCustomerAccountResponse/UpdateCustomerAccountResponse/Data/Account.php +++ /dev/null @@ -1,94 +0,0 @@ -guid; - } - - public function setGuid(TypeGuidUnlimited $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getFullName(): ?string - { - return $this->fullName; - } - - public function setFullName(?string $fullName): static - { - $this->fullName = $fullName; - return $this; - } - - public function getEmail(): string - { - return $this->email; - } - - public function setEmail(string $email): static - { - $this->email = $email; - return $this; - } - - public function getPhone(): ?string - { - return $this->phone; - } - - public function setPhone(?string $phone): static - { - $this->phone = $phone; - return $this; - } - - public function isMainAccount(): bool - { - return $this->mainAccount; - } - - public function setMainAccount(bool $mainAccount): static - { - $this->mainAccount = $mainAccount; - return $this; - } - - public function isAuthorized(): bool - { - return $this->authorized; - } - - public function setAuthorized(bool $authorized): static - { - $this->authorized = $authorized; - return $this; - } - - public function isEmailVerified(): bool - { - return $this->emailVerified; - } - - public function setEmailVerified(bool $emailVerified): static - { - $this->emailVerified = $emailVerified; - return $this; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerDeliveryAddress.php b/src/Endpoint/Customers/UpdateCustomerDeliveryAddress.php deleted file mode 100644 index 7eb7d16..0000000 --- a/src/Endpoint/Customers/UpdateCustomerDeliveryAddress.php +++ /dev/null @@ -1,34 +0,0 @@ - true, 'addressGuid' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateCustomerDeliveryAddressRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateCustomerDeliveryAddressResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/delivery-addresses/{addressGuid}'; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest.php b/src/Endpoint/Customers/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest.php deleted file mode 100644 index 6a26a2f..0000000 --- a/src/Endpoint/Customers/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest/Data.php b/src/Endpoint/Customers/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest/Data.php deleted file mode 100644 index bbf89f5..0000000 --- a/src/Endpoint/Customers/UpdateCustomerDeliveryAddressRequest/UpdateCustomerDeliveryAddressRequest/Data.php +++ /dev/null @@ -1,141 +0,0 @@ -fullName; - } - - public function setFullName(?string $fullName): static - { - $this->fullName = $fullName; - return $this; - } - - public function getCompany(): ?string - { - return $this->company; - } - - public function setCompany(?string $company): static - { - $this->company = $company; - return $this; - } - - public function getStreet(): ?string - { - return $this->street; - } - - public function setStreet(?string $street): static - { - $this->street = $street; - return $this; - } - - public function getHouseNumber(): ?string - { - return $this->houseNumber; - } - - public function setHouseNumber(?string $houseNumber): static - { - $this->houseNumber = $houseNumber; - return $this; - } - - public function getCity(): ?string - { - return $this->city; - } - - public function setCity(?string $city): static - { - $this->city = $city; - return $this; - } - - public function getDistrict(): ?string - { - return $this->district; - } - - public function setDistrict(?string $district): static - { - $this->district = $district; - return $this; - } - - public function getAdditional(): ?string - { - return $this->additional; - } - - public function setAdditional(?string $additional): static - { - $this->additional = $additional; - return $this; - } - - public function getZip(): ?string - { - return $this->zip; - } - - public function setZip(?string $zip): static - { - $this->zip = $zip; - return $this; - } - - public function getCountryCode(): ?string - { - return $this->countryCode; - } - - public function setCountryCode(?string $countryCode): static - { - $this->countryCode = $countryCode; - return $this; - } - - public function getRegionName(): ?string - { - return $this->regionName; - } - - public function setRegionName(?string $regionName): static - { - $this->regionName = $regionName; - return $this; - } - - public function getIsDefault(): ?bool - { - return $this->isDefault; - } - - public function setIsDefault(?bool $isDefault): static - { - $this->isDefault = $isDefault; - return $this; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse.php b/src/Endpoint/Customers/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse.php deleted file mode 100644 index de5f107..0000000 --- a/src/Endpoint/Customers/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse/Data.php b/src/Endpoint/Customers/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse/Data.php deleted file mode 100644 index 762028c..0000000 --- a/src/Endpoint/Customers/UpdateCustomerDeliveryAddressResponse/UpdateCustomerDeliveryAddressResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -deliveryAddress; - } - - public function setDeliveryAddress(DeliveryAddressCustomer $deliveryAddress): static - { - $this->deliveryAddress = $deliveryAddress; - return $this; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerRemark.php b/src/Endpoint/Customers/UpdateCustomerRemark.php deleted file mode 100644 index 36e27e6..0000000 --- a/src/Endpoint/Customers/UpdateCustomerRemark.php +++ /dev/null @@ -1,34 +0,0 @@ - true, 'id' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateCustomerRemarkRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateCustomerRemarkResponse::class; - } - - public function getEndpoint(): string - { - return '/api/customers/{guid}/remarks/{id}'; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest.php b/src/Endpoint/Customers/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest.php deleted file mode 100644 index e28a0e2..0000000 --- a/src/Endpoint/Customers/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest/Data.php b/src/Endpoint/Customers/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest/Data.php deleted file mode 100644 index d216547..0000000 --- a/src/Endpoint/Customers/UpdateCustomerRemarkRequest/UpdateCustomerRemarkRequest/Data.php +++ /dev/null @@ -1,33 +0,0 @@ -rating; - } - - public function setRating(?string $rating): static - { - $this->rating = $rating; - return $this; - } - - public function getRemark(): ?string - { - return $this->remark; - } - - public function setRemark(?string $remark): static - { - $this->remark = $remark; - return $this; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data.php b/src/Endpoint/Customers/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data.php deleted file mode 100644 index 9af453f..0000000 --- a/src/Endpoint/Customers/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -remark; - } - - public function setRemark(Remark $remark): static - { - $this->remark = $remark; - return $this; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data/Remark.php b/src/Endpoint/Customers/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data/Remark.php deleted file mode 100644 index 931288c..0000000 --- a/src/Endpoint/Customers/UpdateCustomerRemarkResponse/UpdateCustomerRemarkResponse/Data/Remark.php +++ /dev/null @@ -1,45 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getRating(): string - { - return $this->rating; - } - - public function setRating(string $rating): static - { - $this->rating = $rating; - return $this; - } - - public function getRemark(): string - { - return $this->remark; - } - - public function setRemark(string $remark): static - { - $this->remark = $remark; - return $this; - } -} diff --git a/src/Endpoint/Customers/UpdateCustomerRequest/UpdateCustomerRequest.php b/src/Endpoint/Customers/UpdateCustomerRequest/UpdateCustomerRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/UpdateCustomerRequest/UpdateCustomerRequest/Data.php b/src/Endpoint/Customers/UpdateCustomerRequest/UpdateCustomerRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/UpdateCustomerResponse/UpdateCustomerResponse.php b/src/Endpoint/Customers/UpdateCustomerResponse/UpdateCustomerResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Customers/UpdateCustomerResponse/UpdateCustomerResponse/Data.php b/src/Endpoint/Customers/UpdateCustomerResponse/UpdateCustomerResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Delete.php b/src/Endpoint/Delete.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DeliveryNotes/DownloadDeliveryNoteAsPdf.php b/src/Endpoint/DeliveryNotes/DownloadDeliveryNoteAsPdf.php old mode 100644 new mode 100755 index 5db423d..f6ed5a6 --- a/src/Endpoint/DeliveryNotes/DownloadDeliveryNoteAsPdf.php +++ b/src/Endpoint/DeliveryNotes/DownloadDeliveryNoteAsPdf.php @@ -5,7 +5,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Delivery-notes/downloaddeliverynoteaspdf + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Delivery-notes/downloaddeliverynoteaspdf * * @method DownloadDeliveryNoteAsPdf setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/DeliveryNotes/GetDetailOfDeliveryNote.php b/src/Endpoint/DeliveryNotes/GetDetailOfDeliveryNote.php old mode 100644 new mode 100755 index c085866..55027a0 --- a/src/Endpoint/DeliveryNotes/GetDetailOfDeliveryNote.php +++ b/src/Endpoint/DeliveryNotes/GetDetailOfDeliveryNote.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Delivery-notes/getdetailofdeliverynote + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Delivery-notes/getdetailofdeliverynote * * @method GetDetailOfDeliveryNote setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/DeliveryNotes/GetDetailOfDeliveryNoteResponse/GetDetailOfDeliveryNoteResponse.php b/src/Endpoint/DeliveryNotes/GetDetailOfDeliveryNoteResponse/GetDetailOfDeliveryNoteResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DeliveryNotes/GetDetailOfDeliveryNoteResponse/GetDetailOfDeliveryNoteResponse/Data.php b/src/Endpoint/DeliveryNotes/GetDetailOfDeliveryNoteResponse/GetDetailOfDeliveryNoteResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DeliveryNotes/GetListOfAllDeliveryNotes.php b/src/Endpoint/DeliveryNotes/GetListOfAllDeliveryNotes.php old mode 100644 new mode 100755 index 01e6f40..27aa0bb --- a/src/Endpoint/DeliveryNotes/GetListOfAllDeliveryNotes.php +++ b/src/Endpoint/DeliveryNotes/GetListOfAllDeliveryNotes.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\DeliveryNotes; use Shoptet\Api\Sdk\Php\Async\SnapshotEndpoint; -use Shoptet\Api\Sdk\Php\Component\Entity\CreditNote; +use Shoptet\Api\Sdk\Php\Component\Entity\DeliveryNoteSnapshot; use Shoptet\Api\Sdk\Php\Endpoint\DeliveryNotes\GetListOfAllDeliveryNotesResponse\GetListOfAllDeliveryNotesResponse; use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Delivery-notes/getlistofalldeliverynotes + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Delivery-notes/getlistofalldeliverynotes * * @method GetListOfAllDeliveryNotes setBody(null $entity) * @method null getBody() @@ -48,6 +48,6 @@ public function getEndpoint(): string public function getSnapshotResultEntityClass(): string { - return CreditNote::class; + return DeliveryNoteSnapshot::class; } } diff --git a/src/Endpoint/DeliveryNotes/GetListOfAllDeliveryNotesResponse/GetListOfAllDeliveryNotesResponse.php b/src/Endpoint/DeliveryNotes/GetListOfAllDeliveryNotesResponse/GetListOfAllDeliveryNotesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DeliveryNotes/GetListOfAllDeliveryNotesResponse/GetListOfAllDeliveryNotesResponse/Data.php b/src/Endpoint/DeliveryNotes/GetListOfAllDeliveryNotesResponse/GetListOfAllDeliveryNotesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotes.php b/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotes.php old mode 100644 new mode 100755 index aea0dac..c804f33 --- a/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotes.php +++ b/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotes.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PageableGet; /** - * @see https://api.docs.shoptet.com/openapi/Delivery-notes/getlistofdeliverynotes + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Delivery-notes/getlistofdeliverynotes * * @method GetListOfDeliveryNotes setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotesResponse/GetListOfDeliveryNotesResponse.php b/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotesResponse/GetListOfDeliveryNotesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotesResponse/GetListOfDeliveryNotesResponse/Data.php b/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotesResponse/GetListOfDeliveryNotesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotesResponse/GetListOfDeliveryNotesResponse/Data/DeliveryNotes.php b/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotesResponse/GetListOfDeliveryNotesResponse/Data/DeliveryNotes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotesResponse/GetListOfDeliveryNotesResponse/Data/DeliveryNotes/Item.php b/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotesResponse/GetListOfDeliveryNotesResponse/Data/DeliveryNotes/Item.php old mode 100644 new mode 100755 index f1652f2..f3bc95b --- a/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotesResponse/GetListOfDeliveryNotesResponse/Data/DeliveryNotes/Item.php +++ b/src/Endpoint/DeliveryNotes/GetListOfDeliveryNotesResponse/GetListOfDeliveryNotesResponse/Data/DeliveryNotes/Item.php @@ -3,14 +3,14 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\DeliveryNotes\GetListOfDeliveryNotesResponse\GetListOfDeliveryNotesResponse\Data\DeliveryNotes; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Item extends Entity { protected string $code; protected bool $isValid; protected ?string $orderCode; - protected TypeDateTime $creationTime; + protected TypeDateTimeNullable $creationTime; protected ?string $billCompany; protected ?string $billFullName; @@ -47,12 +47,12 @@ public function setOrderCode(?string $orderCode): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; diff --git a/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCoupons.php b/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCoupons.php old mode 100644 new mode 100755 index f6c98fa..10dc357 --- a/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCoupons.php +++ b/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCoupons.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\BulkDeleteDiscountCouponsResponse\BulkDeleteDiscountCouponsResponse; /** - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/bulkdeletediscountcoupons + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/bulkdeletediscountcoupons * * @method BulkDeleteDiscountCoupons setBody(null|array|BulkDeleteDiscountCouponsRequest $entity) * @method null|BulkDeleteDiscountCouponsRequest getBody() diff --git a/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsRequest/BulkDeleteDiscountCouponsRequest.php b/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsRequest/BulkDeleteDiscountCouponsRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsRequest/BulkDeleteDiscountCouponsRequest/Data.php b/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsRequest/BulkDeleteDiscountCouponsRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsRequest/BulkDeleteDiscountCouponsRequest/Data/CouponCodes.php b/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsRequest/BulkDeleteDiscountCouponsRequest/Data/CouponCodes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsResponse/BulkDeleteDiscountCouponsResponse.php b/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsResponse/BulkDeleteDiscountCouponsResponse.php old mode 100644 new mode 100755 index c9bf029..6c5b6f2 --- a/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsResponse/BulkDeleteDiscountCouponsResponse.php +++ b/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsResponse/BulkDeleteDiscountCouponsResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\BulkDeleteDiscountCouponsResponse\BulkDeleteDiscountCouponsResponse\Data; class BulkDeleteDiscountCouponsResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsResponse/BulkDeleteDiscountCouponsResponse/Data.php b/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsResponse/BulkDeleteDiscountCouponsResponse/Data.php new file mode 100755 index 0000000..2a81758 --- /dev/null +++ b/src/Endpoint/DiscountCoupons/BulkDeleteDiscountCouponsResponse/BulkDeleteDiscountCouponsResponse/Data.php @@ -0,0 +1,9 @@ +amount; } - public function setAmount(?TypePrice $amount): static + public function setAmount(?TypePriceNullable $amount): static { $this->amount = $amount; return $this; } - public function getRatio(): ?TypePriceRatio + public function getRatio(): ?string { return $this->ratio; } - public function setRatio(?TypePriceRatio $ratio): static + public function setRatio(?string $ratio): static { $this->ratio = $ratio; return $this; } - public function getMinPrice(): ?TypePrice + public function getMinPrice(): ?TypePriceNullable { return $this->minPrice; } - public function setMinPrice(?TypePrice $minPrice): static + public function setMinPrice(?TypePriceNullable $minPrice): static { $this->minPrice = $minPrice; return $this; } - public function getCurrency(): ?TypeCurrencyCode + public function getCurrency(): ?TypeCurrencyCodeNullable { return $this->currency; } - public function setCurrency(?TypeCurrencyCode $currency): static + public function setCurrency(?TypeCurrencyCodeNullable $currency): static { $this->currency = $currency; return $this; @@ -112,23 +111,23 @@ public function setShippingPrice(string $shippingPrice): static return $this; } - public function getValidFrom(): ?TypeDate + public function getValidFrom(): ?TypeDateNullable { return $this->validFrom; } - public function setValidFrom(?TypeDate $validFrom): static + public function setValidFrom(?TypeDateNullable $validFrom): static { $this->validFrom = $validFrom; return $this; } - public function getValidTo(): ?TypeDate + public function getValidTo(): ?TypeDateNullable { return $this->validTo; } - public function setValidTo(?TypeDate $validTo): static + public function setValidTo(?TypeDateNullable $validTo): static { $this->validTo = $validTo; return $this; diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsResponse/CreateDiscountCouponsResponse.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsResponse/CreateDiscountCouponsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsResponse/CreateDiscountCouponsResponse/Data.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsResponse/CreateDiscountCouponsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsResponse/CreateDiscountCouponsResponse/Data/Coupons.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsResponse/CreateDiscountCouponsResponse/Data/Coupons.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsResponse/CreateDiscountCouponsResponse/Data/Coupons/Item.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsResponse/CreateDiscountCouponsResponse/Data/Coupons/Item.php old mode 100644 new mode 100755 index 4c3f01f..b81de34 --- a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsResponse/CreateDiscountCouponsResponse/Data/Coupons/Item.php +++ b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsResponse/CreateDiscountCouponsResponse/Data/Coupons/Item.php @@ -3,26 +3,26 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\CreateDiscountCouponsResponse\CreateDiscountCouponsResponse\Data\Coupons; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCode; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCodeNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceRatio; class Item extends Entity { protected string $code; - protected TypeDateTime $creationTime; + protected TypeDateTimeNullable $creationTime; protected string $discountType; - protected TypePrice $amount; + protected TypePriceNullable $amount; protected ?TypePriceRatio $ratio; - protected TypePrice $minPrice; - protected ?TypeCurrencyCode $currency; + protected TypePriceNullable $minPrice; + protected TypeCurrencyCodeNullable $currency; protected TypeGuid $template; protected ?string $shippingPrice; - protected TypeDate $validFrom; - protected TypeDate $validTo; + protected TypeDateNullable $validFrom; + protected TypeDateNullable $validTo; protected bool $reusable; protected int $usedCount; protected ?string $remark; @@ -38,12 +38,12 @@ public function setCode(string $code): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; @@ -60,12 +60,12 @@ public function setDiscountType(string $discountType): static return $this; } - public function getAmount(): TypePrice + public function getAmount(): TypePriceNullable { return $this->amount; } - public function setAmount(TypePrice $amount): static + public function setAmount(TypePriceNullable $amount): static { $this->amount = $amount; return $this; @@ -82,23 +82,23 @@ public function setRatio(?TypePriceRatio $ratio): static return $this; } - public function getMinPrice(): TypePrice + public function getMinPrice(): TypePriceNullable { return $this->minPrice; } - public function setMinPrice(TypePrice $minPrice): static + public function setMinPrice(TypePriceNullable $minPrice): static { $this->minPrice = $minPrice; return $this; } - public function getCurrency(): ?TypeCurrencyCode + public function getCurrency(): TypeCurrencyCodeNullable { return $this->currency; } - public function setCurrency(?TypeCurrencyCode $currency): static + public function setCurrency(TypeCurrencyCodeNullable $currency): static { $this->currency = $currency; return $this; @@ -126,23 +126,23 @@ public function setShippingPrice(?string $shippingPrice): static return $this; } - public function getValidFrom(): TypeDate + public function getValidFrom(): TypeDateNullable { return $this->validFrom; } - public function setValidFrom(TypeDate $validFrom): static + public function setValidFrom(TypeDateNullable $validFrom): static { $this->validFrom = $validFrom; return $this; } - public function getValidTo(): TypeDate + public function getValidTo(): TypeDateNullable { return $this->validTo; } - public function setValidTo(TypeDate $validTo): static + public function setValidTo(TypeDateNullable $validTo): static { $this->validTo = $validTo; return $this; diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSet.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSet.php old mode 100644 new mode 100755 index 91ac9a2..b12d2be --- a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSet.php +++ b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSet.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/creatediscountcouponsset + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/creatediscountcouponsset * * @method CreateDiscountCouponsSet setBody(null|array|CreateDiscountCouponsSetRequest $entity) * @method null|CreateDiscountCouponsSetRequest getBody() diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetRequest/CreateDiscountCouponsSetRequest.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetRequest/CreateDiscountCouponsSetRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetRequest/CreateDiscountCouponsSetRequest/Data.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetRequest/CreateDiscountCouponsSetRequest/Data.php old mode 100644 new mode 100755 index 2c407b7..9583717 --- a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetRequest/CreateDiscountCouponsSetRequest/Data.php +++ b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetRequest/CreateDiscountCouponsSetRequest/Data.php @@ -3,24 +3,23 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\CreateDiscountCouponsSetRequest\CreateDiscountCouponsSetRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCode; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCodeNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceRatio; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class Data extends Entity { protected float $count; protected string $discountType; - protected ?TypePrice $amount; - protected ?TypePriceRatio $ratio; - protected ?TypePrice $minPrice; - protected ?TypeCurrencyCode $currency; + protected ?TypePriceNullable $amount; + protected ?string $ratio; + protected ?TypePriceNullable $minPrice; + protected ?TypeCurrencyCodeNullable $currency; protected TypeGuid $template; protected string $shippingPrice; - protected ?TypeDate $validFrom; - protected ?TypeDate $validTo; + protected ?TypeDateNullable $validFrom; + protected ?TypeDateNullable $validTo; protected bool $reusable; protected ?string $remark; @@ -46,45 +45,45 @@ public function setDiscountType(string $discountType): static return $this; } - public function getAmount(): ?TypePrice + public function getAmount(): ?TypePriceNullable { return $this->amount; } - public function setAmount(?TypePrice $amount): static + public function setAmount(?TypePriceNullable $amount): static { $this->amount = $amount; return $this; } - public function getRatio(): ?TypePriceRatio + public function getRatio(): ?string { return $this->ratio; } - public function setRatio(?TypePriceRatio $ratio): static + public function setRatio(?string $ratio): static { $this->ratio = $ratio; return $this; } - public function getMinPrice(): ?TypePrice + public function getMinPrice(): ?TypePriceNullable { return $this->minPrice; } - public function setMinPrice(?TypePrice $minPrice): static + public function setMinPrice(?TypePriceNullable $minPrice): static { $this->minPrice = $minPrice; return $this; } - public function getCurrency(): ?TypeCurrencyCode + public function getCurrency(): ?TypeCurrencyCodeNullable { return $this->currency; } - public function setCurrency(?TypeCurrencyCode $currency): static + public function setCurrency(?TypeCurrencyCodeNullable $currency): static { $this->currency = $currency; return $this; @@ -112,23 +111,23 @@ public function setShippingPrice(string $shippingPrice): static return $this; } - public function getValidFrom(): ?TypeDate + public function getValidFrom(): ?TypeDateNullable { return $this->validFrom; } - public function setValidFrom(?TypeDate $validFrom): static + public function setValidFrom(?TypeDateNullable $validFrom): static { $this->validFrom = $validFrom; return $this; } - public function getValidTo(): ?TypeDate + public function getValidTo(): ?TypeDateNullable { return $this->validTo; } - public function setValidTo(?TypeDate $validTo): static + public function setValidTo(?TypeDateNullable $validTo): static { $this->validTo = $validTo; return $this; diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetResponse/CreateDiscountCouponsSetResponse.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetResponse/CreateDiscountCouponsSetResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetResponse/CreateDiscountCouponsSetResponse/Data.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetResponse/CreateDiscountCouponsSetResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetResponse/CreateDiscountCouponsSetResponse/Data/Coupons.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetResponse/CreateDiscountCouponsSetResponse/Data/Coupons.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetResponse/CreateDiscountCouponsSetResponse/Data/Coupons/Item.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetResponse/CreateDiscountCouponsSetResponse/Data/Coupons/Item.php old mode 100644 new mode 100755 index 7680c29..faccd93 --- a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetResponse/CreateDiscountCouponsSetResponse/Data/Coupons/Item.php +++ b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsSetResponse/CreateDiscountCouponsSetResponse/Data/Coupons/Item.php @@ -3,26 +3,26 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\CreateDiscountCouponsSetResponse\CreateDiscountCouponsSetResponse\Data\Coupons; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCode; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCodeNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceRatio; class Item extends Entity { protected string $code; - protected TypeDateTime $creationTime; + protected TypeDateTimeNullable $creationTime; protected string $discountType; - protected TypePrice $amount; + protected TypePriceNullable $amount; protected ?TypePriceRatio $ratio; - protected TypePrice $minPrice; - protected ?TypeCurrencyCode $currency; + protected TypePriceNullable $minPrice; + protected TypeCurrencyCodeNullable $currency; protected TypeGuid $template; protected ?string $shippingPrice; - protected TypeDate $validFrom; - protected TypeDate $validTo; + protected TypeDateNullable $validFrom; + protected TypeDateNullable $validTo; protected bool $reusable; protected int $usedCount; protected ?string $remark; @@ -38,12 +38,12 @@ public function setCode(string $code): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; @@ -60,12 +60,12 @@ public function setDiscountType(string $discountType): static return $this; } - public function getAmount(): TypePrice + public function getAmount(): TypePriceNullable { return $this->amount; } - public function setAmount(TypePrice $amount): static + public function setAmount(TypePriceNullable $amount): static { $this->amount = $amount; return $this; @@ -82,23 +82,23 @@ public function setRatio(?TypePriceRatio $ratio): static return $this; } - public function getMinPrice(): TypePrice + public function getMinPrice(): TypePriceNullable { return $this->minPrice; } - public function setMinPrice(TypePrice $minPrice): static + public function setMinPrice(TypePriceNullable $minPrice): static { $this->minPrice = $minPrice; return $this; } - public function getCurrency(): ?TypeCurrencyCode + public function getCurrency(): TypeCurrencyCodeNullable { return $this->currency; } - public function setCurrency(?TypeCurrencyCode $currency): static + public function setCurrency(TypeCurrencyCodeNullable $currency): static { $this->currency = $currency; return $this; @@ -126,23 +126,23 @@ public function setShippingPrice(?string $shippingPrice): static return $this; } - public function getValidFrom(): TypeDate + public function getValidFrom(): TypeDateNullable { return $this->validFrom; } - public function setValidFrom(TypeDate $validFrom): static + public function setValidFrom(TypeDateNullable $validFrom): static { $this->validFrom = $validFrom; return $this; } - public function getValidTo(): TypeDate + public function getValidTo(): TypeDateNullable { return $this->validTo; } - public function setValidTo(TypeDate $validTo): static + public function setValidTo(TypeDateNullable $validTo): static { $this->validTo = $validTo; return $this; diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplate.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplate.php old mode 100644 new mode 100755 index e568fab..aca171a --- a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplate.php +++ b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplate.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/creatediscountcouponstemplate + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/creatediscountcouponstemplate * * @method CreateDiscountCouponsTemplate setBody(null|array|CreateDiscountCouponsTemplateRequest $entity) * @method null|CreateDiscountCouponsTemplateRequest getBody() diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest/Data.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest/Data.php old mode 100644 new mode 100755 index 3ec0959..d0ad9f5 --- a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest/Data.php +++ b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest/Data.php @@ -3,26 +3,26 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\CreateDiscountCouponsTemplateRequest\CreateDiscountCouponsTemplateRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidNullable; use Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\CreateDiscountCouponsTemplateRequest\CreateDiscountCouponsTemplateRequest\Data\Brands; use Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\CreateDiscountCouponsTemplateRequest\CreateDiscountCouponsTemplateRequest\Data\CategoryGuids; use Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\CreateDiscountCouponsTemplateRequest\CreateDiscountCouponsTemplateRequest\Data\ProductFlags; class Data extends Entity { - protected ?TypeGuid $guid; + protected ?TypeGuidNullable $guid; protected string $title; protected ?int $customerGroupId; protected ?CategoryGuids $categoryGuids; protected ?Brands $brands; protected ?ProductFlags $productFlags; - public function getGuid(): ?TypeGuid + public function getGuid(): ?TypeGuidNullable { return $this->guid; } - public function setGuid(?TypeGuid $guid): static + public function setGuid(?TypeGuidNullable $guid): static { $this->guid = $guid; return $this; diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest/Data/Brands.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest/Data/Brands.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest/Data/CategoryGuids.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest/Data/CategoryGuids.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest/Data/ProductFlags.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest/Data/ProductFlags.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest/Data/ProductFlags/Item.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateRequest/CreateDiscountCouponsTemplateRequest/Data/ProductFlags/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data/Brands.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data/Brands.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data/Categories.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data/Categories.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data/Categories/Item.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data/Categories/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data/CustomerGroup.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data/CustomerGroup.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data/ProductFlags.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data/ProductFlags.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data/ProductFlags/Item.php b/src/Endpoint/DiscountCoupons/CreateDiscountCouponsTemplateResponse/CreateDiscountCouponsTemplateResponse/Data/ProductFlags/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DiscountCoupons/DeleteDiscountCoupon.php b/src/Endpoint/DiscountCoupons/DeleteDiscountCoupon.php old mode 100644 new mode 100755 index 4076cd0..40ccff4 --- a/src/Endpoint/DiscountCoupons/DeleteDiscountCoupon.php +++ b/src/Endpoint/DiscountCoupons/DeleteDiscountCoupon.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\DeleteDiscountCouponResponse\DeleteDiscountCouponResponse; /** - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/deletediscountcoupon + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/deletediscountcoupon * * @method DeleteDiscountCoupon setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/DiscountCoupons/DeleteDiscountCouponResponse/DeleteDiscountCouponResponse.php b/src/Endpoint/DiscountCoupons/DeleteDiscountCouponResponse/DeleteDiscountCouponResponse.php old mode 100644 new mode 100755 index 5a08167..1484de1 --- a/src/Endpoint/DiscountCoupons/DeleteDiscountCouponResponse/DeleteDiscountCouponResponse.php +++ b/src/Endpoint/DiscountCoupons/DeleteDiscountCouponResponse/DeleteDiscountCouponResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\DeleteDiscountCouponResponse\DeleteDiscountCouponResponse\Data; class DeleteDiscountCouponResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/DiscountCoupons/DeleteDiscountCouponResponse/DeleteDiscountCouponResponse/Data.php b/src/Endpoint/DiscountCoupons/DeleteDiscountCouponResponse/DeleteDiscountCouponResponse/Data.php new file mode 100755 index 0000000..9b80458 --- /dev/null +++ b/src/Endpoint/DiscountCoupons/DeleteDiscountCouponResponse/DeleteDiscountCouponResponse/Data.php @@ -0,0 +1,9 @@ +data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/DiscountCoupons/DeleteDiscountCouponsTemplateResponse/DeleteDiscountCouponsTemplateResponse/Data.php b/src/Endpoint/DiscountCoupons/DeleteDiscountCouponsTemplateResponse/DeleteDiscountCouponsTemplateResponse/Data.php new file mode 100755 index 0000000..36dbba6 --- /dev/null +++ b/src/Endpoint/DiscountCoupons/DeleteDiscountCouponsTemplateResponse/DeleteDiscountCouponsTemplateResponse/Data.php @@ -0,0 +1,9 @@ +data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/DiscountCoupons/UpdateDiscountCouponsUsageResponse/UpdateDiscountCouponsUsageResponse/Data.php b/src/Endpoint/DiscountCoupons/UpdateDiscountCouponsUsageResponse/UpdateDiscountCouponsUsageResponse/Data.php new file mode 100755 index 0000000..a6b6313 --- /dev/null +++ b/src/Endpoint/DiscountCoupons/UpdateDiscountCouponsUsageResponse/UpdateDiscountCouponsUsageResponse/Data.php @@ -0,0 +1,9 @@ +jobId; - } - - public function setJobId(string $jobId): static - { - $this->jobId = $jobId; - return $this; - } -} diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailDistributionList.php b/src/Endpoint/EmailDistributionLists/CreateEmailDistributionList.php old mode 100644 new mode 100755 index 50c74e4..ec46496 --- a/src/Endpoint/EmailDistributionLists/CreateEmailDistributionList.php +++ b/src/Endpoint/EmailDistributionLists/CreateEmailDistributionList.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/E-mail-distribution-lists/createemaildistributionlist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/E-mail-distribution-lists/createemaildistributionlist * * @method CreateEmailDistributionList setBody(null|array|CreateEmailDistributionListRequest $entity) * @method null|CreateEmailDistributionListRequest getBody() diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailDistributionListRequest/CreateEmailDistributionListRequest.php b/src/Endpoint/EmailDistributionLists/CreateEmailDistributionListRequest/CreateEmailDistributionListRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailDistributionListRequest/CreateEmailDistributionListRequest/Data.php b/src/Endpoint/EmailDistributionLists/CreateEmailDistributionListRequest/CreateEmailDistributionListRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailDistributionListResponse/CreateEmailDistributionListResponse.php b/src/Endpoint/EmailDistributionLists/CreateEmailDistributionListResponse/CreateEmailDistributionListResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailDistributionListResponse/CreateEmailDistributionListResponse/Data.php b/src/Endpoint/EmailDistributionLists/CreateEmailDistributionListResponse/CreateEmailDistributionListResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailDistributionListResponse/CreateEmailDistributionListResponse/Data/MailingList.php b/src/Endpoint/EmailDistributionLists/CreateEmailDistributionListResponse/CreateEmailDistributionListResponse/Data/MailingList.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionList.php b/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionList.php old mode 100644 new mode 100755 index 294106b..393306f --- a/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionList.php +++ b/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionList.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/E-mail-distribution-lists/createemailsdistributionlist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/E-mail-distribution-lists/createemailsdistributionlist * * @method CreateEmailsDistributionList setBody(null|array|CreateEmailsDistributionListRequest $entity) * @method null|CreateEmailsDistributionListRequest getBody() diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListRequest/CreateEmailsDistributionListRequest.php b/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListRequest/CreateEmailsDistributionListRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListRequest/CreateEmailsDistributionListRequest/Data.php b/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListRequest/CreateEmailsDistributionListRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListRequest/CreateEmailsDistributionListRequest/Data/Emails.php b/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListRequest/CreateEmailsDistributionListRequest/Data/Emails.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListResponse/CreateEmailsDistributionListResponse.php b/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListResponse/CreateEmailsDistributionListResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListResponse/CreateEmailsDistributionListResponse/Data.php b/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListResponse/CreateEmailsDistributionListResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListResponse/CreateEmailsDistributionListResponse/Data/EmailsExisting.php b/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListResponse/CreateEmailsDistributionListResponse/Data/EmailsExisting.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListResponse/CreateEmailsDistributionListResponse/Data/EmailsInserted.php b/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListResponse/CreateEmailsDistributionListResponse/Data/EmailsInserted.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListResponse/CreateEmailsDistributionListResponse/Data/EmailsInvalid.php b/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListResponse/CreateEmailsDistributionListResponse/Data/EmailsInvalid.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListResponse/CreateEmailsDistributionListResponse/Data/ErrorMessages.php b/src/Endpoint/EmailDistributionLists/CreateEmailsDistributionListResponse/CreateEmailsDistributionListResponse/Data/ErrorMessages.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionList.php b/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionList.php old mode 100644 new mode 100755 index b084b04..6a0eccd --- a/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionList.php +++ b/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionList.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PageableGet; /** - * @see https://api.docs.shoptet.com/openapi/E-mail-distribution-lists/getdetailofemaildistributionlist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/E-mail-distribution-lists/getdetailofemaildistributionlist * * @method GetDetailOfEmailDistributionList setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionListResponse/GetDetailOfEmailDistributionListResponse.php b/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionListResponse/GetDetailOfEmailDistributionListResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionListResponse/GetDetailOfEmailDistributionListResponse/Data.php b/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionListResponse/GetDetailOfEmailDistributionListResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionListResponse/GetDetailOfEmailDistributionListResponse/Data/Emails.php b/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionListResponse/GetDetailOfEmailDistributionListResponse/Data/Emails.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionListResponse/GetDetailOfEmailDistributionListResponse/Data/Emails/Item.php b/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionListResponse/GetDetailOfEmailDistributionListResponse/Data/Emails/Item.php old mode 100644 new mode 100755 index efeef3c..534af60 --- a/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionListResponse/GetDetailOfEmailDistributionListResponse/Data/Emails/Item.php +++ b/src/Endpoint/EmailDistributionLists/GetDetailOfEmailDistributionListResponse/GetDetailOfEmailDistributionListResponse/Data/Emails/Item.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\EmailDistributionLists\GetDetailOfEmailDistributionListResponse\GetDetailOfEmailDistributionListResponse\Data\Emails; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Item extends Entity { protected string $email; - protected TypeDateTime $added; + protected TypeDateTimeNullable $added; public function getEmail(): string { @@ -21,12 +21,12 @@ public function setEmail(string $email): static return $this; } - public function getAdded(): TypeDateTime + public function getAdded(): TypeDateTimeNullable { return $this->added; } - public function setAdded(TypeDateTime $added): static + public function setAdded(TypeDateTimeNullable $added): static { $this->added = $added; return $this; diff --git a/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionList.php b/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionList.php old mode 100644 new mode 100755 index 28cb4f5..aa27948 --- a/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionList.php +++ b/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionList.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PageableGet; /** - * @see https://api.docs.shoptet.com/openapi/E-mail-distribution-lists/getlastchangesindistributionlist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/E-mail-distribution-lists/getlastchangesindistributionlist * * @method GetLastChangesInDistributionList setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionListResponse/GetLastChangesInDistributionListResponse.php b/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionListResponse/GetLastChangesInDistributionListResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionListResponse/GetLastChangesInDistributionListResponse/Data.php b/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionListResponse/GetLastChangesInDistributionListResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionListResponse/GetLastChangesInDistributionListResponse/Data/Changes.php b/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionListResponse/GetLastChangesInDistributionListResponse/Data/Changes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionListResponse/GetLastChangesInDistributionListResponse/Data/Changes/Item.php b/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionListResponse/GetLastChangesInDistributionListResponse/Data/Changes/Item.php old mode 100644 new mode 100755 index 84fbc1b..2a732a3 --- a/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionListResponse/GetLastChangesInDistributionListResponse/Data/Changes/Item.php +++ b/src/Endpoint/EmailDistributionLists/GetLastChangesInDistributionListResponse/GetLastChangesInDistributionListResponse/Data/Changes/Item.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\EmailDistributionLists\GetLastChangesInDistributionListResponse\GetLastChangesInDistributionListResponse\Data\Changes; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Item extends Entity { protected string $changeType; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $changeTime; protected string $email; public function getChangeType(): string @@ -22,12 +22,12 @@ public function setChangeType(string $changeType): static return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; diff --git a/src/Endpoint/EmailDistributionLists/GetListingOfEmailDistributionLists.php b/src/Endpoint/EmailDistributionLists/GetListingOfEmailDistributionLists.php old mode 100644 new mode 100755 index 9fc974f..0193d6c --- a/src/Endpoint/EmailDistributionLists/GetListingOfEmailDistributionLists.php +++ b/src/Endpoint/EmailDistributionLists/GetListingOfEmailDistributionLists.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/E-mail-distribution-lists/getlistingofemaildistributionlists + * @see https://api.docs.shoptet.com/shoptet-api/openapi/E-mail-distribution-lists/getlistingofemaildistributionlists * * @method GetListingOfEmailDistributionLists setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/EmailDistributionLists/GetListingOfEmailDistributionListsResponse/GetListingOfEmailDistributionListsResponse.php b/src/Endpoint/EmailDistributionLists/GetListingOfEmailDistributionListsResponse/GetListingOfEmailDistributionListsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/GetListingOfEmailDistributionListsResponse/GetListingOfEmailDistributionListsResponse/Data.php b/src/Endpoint/EmailDistributionLists/GetListingOfEmailDistributionListsResponse/GetListingOfEmailDistributionListsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/GetListingOfEmailDistributionListsResponse/GetListingOfEmailDistributionListsResponse/Data/MailingLists.php b/src/Endpoint/EmailDistributionLists/GetListingOfEmailDistributionListsResponse/GetListingOfEmailDistributionListsResponse/Data/MailingLists.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EmailDistributionLists/GetListingOfEmailDistributionListsResponse/GetListingOfEmailDistributionListsResponse/Data/MailingLists/Item.php b/src/Endpoint/EmailDistributionLists/GetListingOfEmailDistributionListsResponse/GetListingOfEmailDistributionListsResponse/Data/MailingLists/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Endpoint.php b/src/Endpoint/Endpoint.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/EndpointMap.php b/src/Endpoint/EndpointMap.php old mode 100644 new mode 100755 index 718e28e..66a9243 --- a/src/Endpoint/EndpointMap.php +++ b/src/Endpoint/EndpointMap.php @@ -8,31 +8,35 @@ class EndpointMap 'delete' => [ '/api/products/{guid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteProduct', '/api/products/code/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteProductVariant', - '/api/products/{guid}/images/{gallery}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteAllProductImagesInGallery', - '/api/products/{guid}/images/{gallery}/{imageName}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteOneProductImage', - '/api/categories/{categoryGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteProductCategory', - '/api/products/flags/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteProductFlag', - '/api/products/surcharge-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteSurchargeParameterByIndex', - '/api/products/surcharge-parameters/{paramIndex}/{valueIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteSurchargeParameterValue', - '/api/products/filtering-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteFilteringParameter', - '/api/products/filtering-parameters/{code}/{valueIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteFilteringParameterValue', - '/api/products/variant-parameters/{paramIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteVariantParameter', - '/api/products/variant-parameters/{paramIndex}/{rawValue}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteVariantParameterValue', - '/api/products/consumption-taxes/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteConsumptionTax', + '/api/products/{guid}/images/{gallery}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductImages\DeleteAllProductImagesInGallery', + '/api/products/{guid}/images/{gallery}/{imageName}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductImages\DeleteOneProductImage', + '/api/products/{guid}/related-files' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UnlinkAllProductRelatedFiles', + '/api/products/{guid}/related-files/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductRelatedFiles\DeleteOneProductRelatedFile', + '/api/categories/{categoryGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Categories\DeleteProductCategory', + '/api/parametric-categories/{categoryGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\ParametricCategories\DeleteParametricCategory', + '/api/products/flags/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Flags\DeleteProductFlag', + '/api/products/availabilities/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductAvailabilities\DeleteProductAvailability', + '/api/products/surcharge-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\DeleteSurchargeParameterByIndex', + '/api/products/surcharge-parameters/{paramIndex}/{valueIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\DeleteSurchargeParameterValue', + '/api/products/filtering-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\DeleteFilteringParameter', + '/api/products/filtering-parameters/{code}/{valueIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\DeleteFilteringParameterValue', + '/api/products/variant-parameters/{paramIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\DeleteVariantParameter', + '/api/products/variant-parameters/{paramIndex}/{rawValue}' => 'Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\DeleteVariantParameterValue', + '/api/products/consumption-taxes/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\ConsumptionTaxes\DeleteConsumptionTax', '/api/pricelists/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\PriceLists\DeletePricelist', '/api/orders/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\DeleteOrder', - '/api/orders/{code}/item/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\DeleteOrderItem', - '/api/orders/{code}/item/{id}/surcharge-parameters/{relationId}' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\DeleteOrderItemSurchargeParameters', - '/api/orders/{code}/history/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\DeleteOrderHistoryItem', - '/api/orders/gifts/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\DeleteOrderGift', + '/api/orders/{code}/item/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderItems\DeleteOrderItem', + '/api/orders/{code}/item/{id}/surcharge-parameters/{relationId}' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderItems\DeleteOrderItemSurchargeParameters', + '/api/orders/{code}/history/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderHistory\DeleteOrderHistoryItem', + '/api/orders/gifts/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderGifts\DeleteOrderGift', '/api/proof-payments/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\DeleteProofPayment', '/api/credit-notes/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\DeleteCreditNote', '/api/credit-notes/{code}/item/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\DeleteCreditNoteItem', '/api/brands/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Brands\DeleteBrand', '/api/customers/{guid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\DeleteCustomer', - '/api/customers/{guid}/accounts/{accountGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\DeleteCustomerAccount', - '/api/customers/{guid}/delivery-addresses/{addressGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\DeleteCustomerDeliveryAddress', - '/api/customers/{guid}/remarks/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\DeleteCustomerRemark', + '/api/customers/{guid}/accounts/{accountGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\DeleteCustomerAccount', + '/api/customers/{guid}/delivery-addresses/{addressGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\DeleteCustomerDeliveryAddress', + '/api/customers/{guid}/remarks/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\DeleteCustomerRemark', '/api/template-include/{location}' => 'Shoptet\Api\Sdk\Php\Endpoint\Templates\DeleteHtmlCode', '/api/webhooks/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Webhooks\DeleteRegisteredWebhook', '/api/payment-methods/{guid}' => 'Shoptet\Api\Sdk\Php\Endpoint\PaymentMethods\DeletePaymentMethod', @@ -43,52 +47,60 @@ class EndpointMap '/api/quantity-discounts/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\DeleteQuantityDiscount', '/api/articles/{articleId}' => 'Shoptet\Api\Sdk\Php\Endpoint\Articles\DeleteArticle', '/api/articles/sections/{articleSectionId}' => 'Shoptet\Api\Sdk\Php\Endpoint\Articles\DeleteArticleSection', + '/api/pages/{pageId}' => 'Shoptet\Api\Sdk\Php\Endpoint\Pages\DeletePage', ], 'get' => [ '/api/eshop' => 'Shoptet\Api\Sdk\Php\Endpoint\Eshop\GetEshopInfo', '/api/eshop/design' => 'Shoptet\Api\Sdk\Php\Endpoint\Eshop\GetEshopDesign', + '/api/eshop/document-settings' => 'Shoptet\Api\Sdk\Php\Endpoint\Eshop\GetEshopDocumentSettings', '/api/eshop/customer-fields' => 'Shoptet\Api\Sdk\Php\Endpoint\Eshop\GetEshopMandatoryFields', + '/api/eshop/reviews' => 'Shoptet\Api\Sdk\Php\Endpoint\Reviews\GetListOfEshopReviews', '/api/products' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProducts', '/api/products/snapshot' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfAllProducts', + '/api/products/snapshot/pricelists' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfAllProductsAndPricelistPrices', '/api/products/{guid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetProductDetail', '/api/products/code/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetProductDetailByCode', - '/api/products/{guid}/images/{gallery}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductImages', + '/api/products/{guid}/images/{gallery}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetListOfProductImages', '/api/products/changes' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetLastProductChanges', - '/api/categories' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductCategories', - '/api/categories/{categoryGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetProductCategoryDetail', - '/api/categories/{categoryGuid}/productsPriority' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsOrderInCategory', - '/api/parametric-categories' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfParametricCategories', - '/api/parametric-categories/{categoryGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetParametricCategoryDetail', - '/api/products/flags' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsFlags', - '/api/products/measure-units' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsMeasureUnits', - '/api/products/availabilities' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsAvailabilities', - '/api/products/surcharge-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfSurchargeParameters', - '/api/products/surcharge-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetDetailOfSurchargeParameter', - '/api/products/filtering-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfFilteringParameters', - '/api/products/filtering-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetDetailOfFilteringParameter', - '/api/products/variant-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfVariantParameters', - '/api/products/variant-parameters/{paramIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetDetailOfVariantParameter', - '/api/products/consumption-taxes' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfConsumptionTaxes', - '/api/products/recycling-fee-categories' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfRecyclingFeeCategories', - '/api/products/warranties' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductWarranties', - '/api/products/{guid}/alternativeProducts' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductAlternativeProducts', - '/api/products/{guid}/relatedProducts' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductRelatedProducts', - '/api/products/units' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductUnits', - '/api/products/{guid}/gifts' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductGifts', - '/api/products/reviews' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsReviews', + '/api/categories' => 'Shoptet\Api\Sdk\Php\Endpoint\Categories\GetListOfProductCategories', + '/api/categories/{categoryGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Categories\GetProductCategoryDetail', + '/api/categories/{categoryGuid}/productsPriority' => 'Shoptet\Api\Sdk\Php\Endpoint\Categories\GetListOfProductsOrderInCategory', + '/api/parametric-categories' => 'Shoptet\Api\Sdk\Php\Endpoint\ParametricCategories\GetListOfParametricCategories', + '/api/parametric-categories/{categoryGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\ParametricCategories\GetParametricCategoryDetail', + '/api/products/flags' => 'Shoptet\Api\Sdk\Php\Endpoint\Flags\GetListOfProductsFlags', + '/api/products/measure-units' => 'Shoptet\Api\Sdk\Php\Endpoint\MeasureUnits\GetListOfProductsMeasureUnits', + '/api/products/availabilities' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductAvailabilities\GetListOfProductsAvailabilities', + '/api/products/surcharge-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\GetListOfSurchargeParameters', + '/api/products/surcharge-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\GetDetailOfSurchargeParameter', + '/api/products/filtering-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\GetListOfFilteringParameters', + '/api/products/filtering-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\GetDetailOfFilteringParameter', + '/api/products/variant-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\GetListOfVariantParameters', + '/api/products/variant-parameters/{paramIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\GetDetailOfVariantParameter', + '/api/products/consumption-taxes' => 'Shoptet\Api\Sdk\Php\Endpoint\ConsumptionTaxes\GetListOfConsumptionTaxes', + '/api/products/recycling-fee-categories' => 'Shoptet\Api\Sdk\Php\Endpoint\RecyclingFees\GetListOfRecyclingFeeCategories', + '/api/products/warranties' => 'Shoptet\Api\Sdk\Php\Endpoint\Warranties\GetListOfProductWarranties', + '/api/products/{guid}/alternativeProducts' => 'Shoptet\Api\Sdk\Php\Endpoint\AlternativeProducts\GetListOfProductAlternativeProducts', + '/api/products/{guid}/relatedProducts' => 'Shoptet\Api\Sdk\Php\Endpoint\RelatedProducts\GetListOfProductRelatedProducts', + '/api/products/units' => 'Shoptet\Api\Sdk\Php\Endpoint\Units\GetListOfProductUnits', + '/api/products/{guid}/gifts' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductGifts\GetListOfProductGifts', + '/api/products/reviews' => 'Shoptet\Api\Sdk\Php\Endpoint\Reviews\GetListOfProductsReviews', '/api/pricelists' => 'Shoptet\Api\Sdk\Php\Endpoint\PriceLists\GetListOfPriceLists', '/api/pricelists/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\PriceLists\GetPricelistDetail', '/api/pricelists/{id}/snapshot' => 'Shoptet\Api\Sdk\Php\Endpoint\PriceLists\GetListOfAllPricelistDetails', + '/api/project/domain' => 'Shoptet\Api\Sdk\Php\Endpoint\Project\GetProjectDomainList', + '/api/project/sales-channels' => 'Shoptet\Api\Sdk\Php\Endpoint\Project\GetProjectSalesChannels', '/api/orders' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfOrders', + '/api/orders/history/snapshot' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderHistory\GetListOfAllRemarks', '/api/orders/snapshot' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfAllOrders', '/api/orders/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\GetOrderDetail', '/api/orders/{code}/pdf' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\DownloadOrderAsPdf', - '/api/orders/{code}/history' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfRemarksForOrder', + '/api/orders/{code}/history' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderHistory\GetListOfRemarksForOrder', '/api/orders/statuses' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfOrderStatuses', '/api/orders/sources' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfOrderSources', '/api/orders/changes' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\GetLastOrderChanges', - '/api/orders/gifts' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\GetOrderGiftsList', - '/api/orders/gifts/settings' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\GetOrderGiftSettings', + '/api/orders/claims' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\GetOrderClaims', + '/api/orders/gifts' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderGifts\GetOrderGiftsList', + '/api/orders/gifts/settings' => 'Shoptet\Api\Sdk\Php\Endpoint\Gifts\GetOrderGiftSettings', '/api/invoices' => 'Shoptet\Api\Sdk\Php\Endpoint\Invoices\GetListOfInvoices', '/api/invoices/snapshot' => 'Shoptet\Api\Sdk\Php\Endpoint\Invoices\GetListOfAllInvoices', '/api/invoices/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Invoices\GetInvoiceDetail', @@ -106,6 +118,7 @@ class EndpointMap '/api/proof-payments/order/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\GetProofPaymentDetailByOrderCode', '/api/proof-payments/proforma-invoice/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\GetProofPaymentDetailByProformaInvoiceCode', '/api/proof-payments/{code}/pdf' => 'Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\DownloadProofOfPaymentPdf', + '/api/proof-payments/{code}/isdoc' => 'Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\DownloadProofPaymentAsIsdoc', '/api/proof-payments/changes' => 'Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\GetLastProofPaymentsChanges', '/api/credit-notes' => 'Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\GetListOfCreditNotes', '/api/credit-notes/snapshot' => 'Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\GetListOfAllCreditNotes', @@ -117,7 +130,7 @@ class EndpointMap '/api/delivery-notes/snapshot' => 'Shoptet\Api\Sdk\Php\Endpoint\DeliveryNotes\GetListOfAllDeliveryNotes', '/api/delivery-notes/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\DeliveryNotes\GetDetailOfDeliveryNote', '/api/delivery-notes/{code}/pdf' => 'Shoptet\Api\Sdk\Php\Endpoint\DeliveryNotes\DownloadDeliveryNoteAsPdf', - '/api/export/{type}/{format}' => 'Shoptet\Api\Sdk\Php\Endpoint\DocumentExport\GeneralDocumentDownload', + '/api/export/{type}/{format}' => 'Shoptet\Api\Sdk\Php\Endpoint\Exports\GeneralDocumentDownload', '/api/stocks' => 'Shoptet\Api\Sdk\Php\Endpoint\Stocks\GetListOfStocks', '/api/stocks/{stockId}' => 'Shoptet\Api\Sdk\Php\Endpoint\Stocks\GetStockDetail', '/api/stocks/{stockId}/movements' => 'Shoptet\Api\Sdk\Php\Endpoint\Stocks\GetStockMovements', @@ -129,12 +142,12 @@ class EndpointMap '/api/customers' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomers', '/api/customers/snapshot' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfAllCustomers', '/api/customers/{guid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetCustomerDetail', - '/api/customers/{guid}/accounts' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerAccounts', - '/api/customers/{guid}/accounts/{accountGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetDetailOfCustomerAccount', - '/api/customers/{guid}/delivery-addresses' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GeListOfCustomerDeliveryAddresses', - '/api/customers/{guid}/delivery-addresses/{addressGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetDetailOfCustomerDeliveryAddress', - '/api/customers/{guid}/remarks' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerRemarks', - '/api/customers/{guid}/remarks/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetDetailOfCustomerRemark', + '/api/customers/{guid}/accounts' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\GetListOfCustomerAccounts', + '/api/customers/{guid}/accounts/{accountGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\GetDetailOfCustomerAccount', + '/api/customers/{guid}/delivery-addresses' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\GeListOfCustomerDeliveryAddresses', + '/api/customers/{guid}/delivery-addresses/{addressGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\GetDetailOfCustomerDeliveryAddress', + '/api/customers/{guid}/remarks' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\GetListOfCustomerRemarks', + '/api/customers/{guid}/remarks/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\GetDetailOfCustomerRemark', '/api/customers/changes' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetLastCustomerChanges', '/api/customers/regions' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerRegions', '/api/customers/groups' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerGroups', @@ -161,6 +174,7 @@ class EndpointMap '/api/quantity-discounts' => 'Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\GetListOfQuantityDiscounts', '/api/quantity-discounts/snapshot' => 'Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\GetListOfAllQuantityDiscounts', '/api/quantity-discounts/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\GetDetailOfQuantityDiscounts', + '/api/volume-discounts' => 'Shoptet\Api\Sdk\Php\Endpoint\VolumeDiscounts\GetListOfVolumeDiscounts', '/api/articles' => 'Shoptet\Api\Sdk\Php\Endpoint\Articles\GetListOfArticles', '/api/articles/snapshot' => 'Shoptet\Api\Sdk\Php\Endpoint\Articles\GetListAllArticles', '/api/articles/{articleId}' => 'Shoptet\Api\Sdk\Php\Endpoint\Articles\GetDetailOfArticle', @@ -169,36 +183,39 @@ class EndpointMap '/api/pages' => 'Shoptet\Api\Sdk\Php\Endpoint\Pages\GetListOfPages', '/api/pages/{pageId}' => 'Shoptet\Api\Sdk\Php\Endpoint\Pages\GetDetailOfPage', '/api/discussions-posts' => 'Shoptet\Api\Sdk\Php\Endpoint\Discussions\GetListOfDiscussionPosts', - '/api/system/jobs' => 'Shoptet\Api\Sdk\Php\Endpoint\JobEndpoints\GetListOfJobs', - '/api/system/jobs/{jobId}' => 'Shoptet\Api\Sdk\Php\Endpoint\JobEndpoints\GetJobDetail', + '/api/system/jobs' => 'Shoptet\Api\Sdk\Php\Endpoint\Jobs\GetListOfJobs', + '/api/system/jobs/{jobId}' => 'Shoptet\Api\Sdk\Php\Endpoint\Jobs\GetJobDetail', '/api/system/files' => 'Shoptet\Api\Sdk\Php\Endpoint\Files\GetListOfUploadedFiles', - '/api/system/endpoints' => 'Shoptet\Api\Sdk\Php\Endpoint\SystemEndpoints\GetListOfAvailableEndpoints', + '/api/system/endpoints' => 'Shoptet\Api\Sdk\Php\Endpoint\Endpoints\GetListOfAvailableEndpoints', ], 'patch' => [ '/api/products/{guid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProduct', '/api/products/batch' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\ProductBatchUpdate', '/api/products/code/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductByCode', - '/api/products/{guid}/images/{gallery}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetProductImagesUpdate', - '/api/products/{guid}/images/{gallery}/source' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductImagesSource', - '/api/categories/{categoryGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductCategory', - '/api/categories/batch' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductCategoryBatch', - '/api/categories/{categoryGuid}/productsPriority' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductOrderInCategory', - '/api/products/flags/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductFlag', - '/api/products/surcharge-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateSurchargeParameter', - '/api/products/surcharge-parameters/{paramIndex}/{valueIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateSurchargeParameterValue', - '/api/products/filtering-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateFilteringParameter', - '/api/products/filtering-parameters/{code}/{valueIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateFilteringParameterValue', - '/api/products/variant-parameters/{paramIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateVariantParameter', - '/api/products/variant-parameters/{paramIndex}/{rawValue}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateVariantParameterValue', - '/api/products/consumption-taxes/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateConsumptionTax', + '/api/products/{guid}/images/{gallery}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetProductImagesUpdate', + '/api/products/{guid}/images/{gallery}/source' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductImages\UpdateProductImagesSource', + '/api/categories/{categoryGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Categories\UpdateProductCategory', + '/api/categories/batch' => 'Shoptet\Api\Sdk\Php\Endpoint\Categories\UpdateProductCategoryBatch', + '/api/categories/{categoryGuid}/productsPriority' => 'Shoptet\Api\Sdk\Php\Endpoint\Categories\UpdateProductOrderInCategory', + '/api/parametric-categories/{categoryGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\ParametricCategories\UpdateParametricCategory', + '/api/products/flags/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Flags\UpdateProductFlag', + '/api/products/availabilities/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductAvailabilities\UpdateProductAvailability', + '/api/products/surcharge-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\UpdateSurchargeParameter', + '/api/products/surcharge-parameters/{paramIndex}/{valueIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\UpdateSurchargeParameterValue', + '/api/products/filtering-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\UpdateFilteringParameter', + '/api/products/filtering-parameters/{code}/{valueIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\UpdateFilteringParameterValue', + '/api/products/variant-parameters/{paramIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\UpdateVariantParameter', + '/api/products/variant-parameters/{paramIndex}/{rawValue}' => 'Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\UpdateVariantParameterValue', + '/api/products/consumption-taxes/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\ConsumptionTaxes\UpdateConsumptionTax', '/api/pricelists/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelist', '/api/orders/{code}/head' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderHead', - '/api/orders/{code}/item/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderItem', - '/api/orders/{code}/payment/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderPayment', - '/api/orders/{code}/shipping/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderShipping', + '/api/orders/{code}/item/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderItems\UpdateOrderItem', + '/api/orders/{code}/payment/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderPayment\UpdateOrderPayment', + '/api/orders/{code}/shipping/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderShipping\UpdateOrderShipping', '/api/orders/{code}/notes' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateRemarksForOrder', '/api/orders/{code}/status' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderStatus', - '/api/orders/gifts/settings' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderGiftSettings', + '/api/orders/gifts/settings' => 'Shoptet\Api\Sdk\Php\Endpoint\Gifts\UpdateOrderGiftSettings', + '/api/invoices/{code}/link-proforma-invoice' => 'Shoptet\Api\Sdk\Php\Endpoint\Invoices\InvoiceLinkProformaInvoices', '/api/invoices/{code}/link-proof-payment' => 'Shoptet\Api\Sdk\Php\Endpoint\Invoices\InvoiceLinkProofPayments', '/api/proof-payments/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\UpdateProofPayment', '/api/credit-notes/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\UpdateCreditNote', @@ -206,9 +223,9 @@ class EndpointMap '/api/stocks/{stockId}/movements' => 'Shoptet\Api\Sdk\Php\Endpoint\Stocks\UpdateQuantityInStock', '/api/brands/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Brands\UpdateBrand', '/api/customers/{guid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomer', - '/api/customers/{guid}/accounts/{accountGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerAccount', - '/api/customers/{guid}/delivery-addresses/{addressGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerDeliveryAddress', - '/api/customers/{guid}/remarks/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerRemark', + '/api/customers/{guid}/accounts/{accountGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\UpdateCustomerAccount', + '/api/customers/{guid}/delivery-addresses/{addressGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\UpdateCustomerDeliveryAddress', + '/api/customers/{guid}/remarks/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\UpdateCustomerRemark', '/api/payment-status/{paymentCode}' => 'Shoptet\Api\Sdk\Php\Endpoint\PaymentGateways\UpdatePaymentStatus', '/api/webhooks/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\Webhooks\UpdateExistingWebhook', '/api/discount-coupons/use/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\UpdateDiscountCouponsUsage', @@ -217,35 +234,40 @@ class EndpointMap '/api/quantity-discounts/{id}' => 'Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\UpdateQuantityDiscount', '/api/articles/{articleId}' => 'Shoptet\Api\Sdk\Php\Endpoint\Articles\UpdateArticle', '/api/articles/sections/{articleSectionId}' => 'Shoptet\Api\Sdk\Php\Endpoint\Articles\UpdateArticleSection', + '/api/pages/{pageId}' => 'Shoptet\Api\Sdk\Php\Endpoint\Pages\UpdatePage', ], 'post' => [ '/api/products' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProduct', '/api/products/{guid}/copy' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\ProductCopy', - '/api/products/{guid}/images/{gallery}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductImages', - '/api/categories' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductCategory', - '/api/products/flags' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductFlag', - '/api/products/surcharge-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateSurchargeParameter', - '/api/products/surcharge-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateSurchargeParameterValue', - '/api/products/filtering-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateFilteringParameter', - '/api/products/filtering-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateFilteringParameterValue', - '/api/products/variant-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateVariantParameter', - '/api/products/variant-parameters/{paramIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateVariantParameterValue', - '/api/products/consumption-taxes' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateConsumptionTax', - '/api/products/{guid}/alternativeProducts' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\AddAlternativeProduct', - '/api/products/{guid}/relatedProducts' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\AddRelatedProduct', - '/api/products/{guid}/set' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\AddItemToProductSet', - '/api/products/{guid}/gifts' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductGift', + '/api/products/{guid}/images/{gallery}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductImages\CreateProductImages', + '/api/products/{guid}/related-files' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductRelatedFiles\CreateRelatedFileLink', + '/api/categories' => 'Shoptet\Api\Sdk\Php\Endpoint\Categories\CreateProductCategory', + '/api/parametric-categories' => 'Shoptet\Api\Sdk\Php\Endpoint\ParametricCategories\CreateParametricCategory', + '/api/products/flags' => 'Shoptet\Api\Sdk\Php\Endpoint\Flags\CreateProductFlag', + '/api/products/availabilities' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductAvailabilities\CreateProductAvailability', + '/api/products/surcharge-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\CreateSurchargeParameter', + '/api/products/surcharge-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\CreateSurchargeParameterValue', + '/api/products/filtering-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\CreateFilteringParameter', + '/api/products/filtering-parameters/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\CreateFilteringParameterValue', + '/api/products/variant-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\CreateVariantParameter', + '/api/products/variant-parameters/{paramIndex}' => 'Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\CreateVariantParameterValue', + '/api/products/consumption-taxes' => 'Shoptet\Api\Sdk\Php\Endpoint\ConsumptionTaxes\CreateConsumptionTax', + '/api/products/{guid}/alternativeProducts' => 'Shoptet\Api\Sdk\Php\Endpoint\AlternativeProducts\AddAlternativeProduct', + '/api/products/{guid}/relatedProducts' => 'Shoptet\Api\Sdk\Php\Endpoint\RelatedProducts\AddRelatedProduct', + '/api/products/{guid}/set' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductSets\AddItemToProductSet', + '/api/products/{guid}/gifts' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductGifts\CreateProductGift', '/api/pricelists' => 'Shoptet\Api\Sdk\Php\Endpoint\PriceLists\CreatePricelist', '/api/orders' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrder', - '/api/orders/{code}/item' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderItem', - '/api/orders/{code}/item/{id}/surcharge-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderItemSurchargeParameters', - '/api/orders/{code}/payment' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderPayment', - '/api/orders/{code}/shipping' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\AddOrderShipping', - '/api/orders/{code}/history' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderRemark', + '/api/orders/{code}/item' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderItems\CreateOrderItem', + '/api/orders/{code}/item/{id}/surcharge-parameters' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderItems\CreateOrderItemSurchargeParameters', + '/api/orders/{code}/payment' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderPayment\CreateOrderPayment', + '/api/orders/{code}/shipping' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderShipping\AddOrderShipping', + '/api/orders/{code}/history' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderHistory\CreateOrderRemark', '/api/orders/{code}/copy' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\OrderCopy', '/api/orders/batch' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\OrderBatchInsertion', - '/api/orders/gifts' => 'Shoptet\Api\Sdk\Php\Endpoint\Orders\AddOrderGift', + '/api/orders/gifts' => 'Shoptet\Api\Sdk\Php\Endpoint\OrderGifts\AddOrderGift', '/api/orders/{code}/invoice' => 'Shoptet\Api\Sdk\Php\Endpoint\Invoices\CreateInvoiceFromOrder', + '/api/proforma-invoices/{code}/invoice' => 'Shoptet\Api\Sdk\Php\Endpoint\Invoices\CreateInvoiceFromProformaInvoice', '/api/proof-payments' => 'Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\CreateProofPayment', '/api/proof-payments/order/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\CreateProofPaymentByOrderCode', '/api/proof-payments/proforma-invoice/{code}' => 'Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\CreateProofPaymentByProformaInvoiceCode', @@ -257,9 +279,9 @@ class EndpointMap '/api/brands' => 'Shoptet\Api\Sdk\Php\Endpoint\Brands\CreateBrand', '/api/brands/batch' => 'Shoptet\Api\Sdk\Php\Endpoint\Brands\CreateBrandBatch', '/api/customers' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomer', - '/api/customers/{guid}/accounts' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomerAccount', - '/api/customers/{guid}/delivery-addresses' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateDeliveryAddress', - '/api/customers/{guid}/remarks' => 'Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomerRemark', + '/api/customers/{guid}/accounts' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\CreateCustomerAccount', + '/api/customers/{guid}/delivery-addresses' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\CreateDeliveryAddress', + '/api/customers/{guid}/remarks' => 'Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\CreateCustomerRemark', '/api/template-include' => 'Shoptet\Api\Sdk\Php\Endpoint\Templates\CreateAndEditHtmlCodes', '/api/webhooks' => 'Shoptet\Api\Sdk\Php\Endpoint\Webhooks\RegisterNewWebhook', '/api/webhooks/renew-signature-key' => 'Shoptet\Api\Sdk\Php\Endpoint\Webhooks\GenerateWebhookSignatureKey', @@ -275,14 +297,15 @@ class EndpointMap '/api/quantity-discounts' => 'Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\CreateQuantityDiscount', '/api/articles' => 'Shoptet\Api\Sdk\Php\Endpoint\Articles\CreateArticle', '/api/articles/sections' => 'Shoptet\Api\Sdk\Php\Endpoint\Articles\CreateArticleSection', + '/api/pages' => 'Shoptet\Api\Sdk\Php\Endpoint\Pages\CreatePage', '/api/system/files' => 'Shoptet\Api\Sdk\Php\Endpoint\Files\UploadFiles', '/api/system/file' => 'Shoptet\Api\Sdk\Php\Endpoint\Files\UploadFile', ], 'put' => [ - '/api/products/{guid}/alternativeProducts' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\SetAlternativeProducts', - '/api/products/{guid}/relatedProducts' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\SetRelatedProducts', - '/api/products/{guid}/set' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\SetProductSetItems', - '/api/products/{guid}/gifts' => 'Shoptet\Api\Sdk\Php\Endpoint\Products\SteGiftsToProduct', + '/api/products/{guid}/alternativeProducts' => 'Shoptet\Api\Sdk\Php\Endpoint\AlternativeProducts\SetAlternativeProducts', + '/api/products/{guid}/relatedProducts' => 'Shoptet\Api\Sdk\Php\Endpoint\RelatedProducts\SetRelatedProducts', + '/api/products/{guid}/set' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductSets\SetProductSetItems', + '/api/products/{guid}/gifts' => 'Shoptet\Api\Sdk\Php\Endpoint\ProductGifts\SteGiftsToProduct', '/api/shipping-request/{shippingRequestCode}/{shippingGuid}' => 'Shoptet\Api\Sdk\Php\Endpoint\ShippingRequests\UpdateShippingData', ], ]; diff --git a/src/Endpoint/Endpoints/GetListOfAvailableEndpoints.php b/src/Endpoint/Endpoints/GetListOfAvailableEndpoints.php new file mode 100755 index 0000000..0c815ba --- /dev/null +++ b/src/Endpoint/Endpoints/GetListOfAvailableEndpoints.php @@ -0,0 +1,33 @@ + false, 'status' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfAvailableEndpointsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/system/endpoints'; + } +} diff --git a/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse.php b/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse.php new file mode 100755 index 0000000..5b3d06b --- /dev/null +++ b/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data.php b/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data.php new file mode 100755 index 0000000..085b464 --- /dev/null +++ b/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data.php @@ -0,0 +1,22 @@ +endpoints; + } + + public function setEndpoints(Endpoints $endpoints): static + { + $this->endpoints = $endpoints; + return $this; + } +} diff --git a/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints.php b/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints.php new file mode 100755 index 0000000..3ef13f5 --- /dev/null +++ b/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints.php @@ -0,0 +1,31 @@ + + * @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 Endpoints extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Endpoints\GetListOfAvailableEndpointsResponse\GetListOfAvailableEndpointsResponse\Data\Endpoints\Item'; + } +} diff --git a/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item.php b/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item.php new file mode 100755 index 0000000..494b2c8 --- /dev/null +++ b/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item.php @@ -0,0 +1,70 @@ +endpoint; + } + + public function setEndpoint(string $endpoint): static + { + $this->endpoint = $endpoint; + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): static + { + $this->description = $description; + return $this; + } + + public function getGroup(): Group + { + return $this->group; + } + + public function setGroup(Group $group): static + { + $this->group = $group; + return $this; + } + + public function getAccess(): string + { + return $this->access; + } + + public function setAccess(string $access): static + { + $this->access = $access; + return $this; + } + + public function getAction(): ?string + { + return $this->action; + } + + public function setAction(?string $action): static + { + $this->action = $action; + return $this; + } +} diff --git a/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item/Group.php b/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item/Group.php old mode 100644 new mode 100755 similarity index 79% rename from src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item/Group.php rename to src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item/Group.php index 9842be9..e5fefe0 --- a/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item/Group.php +++ b/src/Endpoint/Endpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item/Group.php @@ -1,6 +1,6 @@ false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetEshopDocumentSettingsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/eshop/document-settings'; + } +} diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse.php new file mode 100755 index 0000000..4c62871 --- /dev/null +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data.php new file mode 100755 index 0000000..a04c956 --- /dev/null +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data.php @@ -0,0 +1,138 @@ +order; + } + + public function setOrder(Order $order): static + { + $this->order = $order; + return $this; + } + + public function getProformaInvoice(): ?ProformaInvoice + { + return $this->proformaInvoice; + } + + public function setProformaInvoice(?ProformaInvoice $proformaInvoice): static + { + $this->proformaInvoice = $proformaInvoice; + return $this; + } + + public function getInvoice(): ?Invoice + { + return $this->invoice; + } + + public function setInvoice(?Invoice $invoice): static + { + $this->invoice = $invoice; + return $this; + } + + public function getCreditNote(): ?CreditNote + { + return $this->creditNote; + } + + public function setCreditNote(?CreditNote $creditNote): static + { + $this->creditNote = $creditNote; + return $this; + } + + public function getDeliveryNote(): ?DeliveryNote + { + return $this->deliveryNote; + } + + public function setDeliveryNote(?DeliveryNote $deliveryNote): static + { + $this->deliveryNote = $deliveryNote; + return $this; + } + + public function getProofPayment(): ?ProofPayment + { + return $this->proofPayment; + } + + public function setProofPayment(?ProofPayment $proofPayment): static + { + $this->proofPayment = $proofPayment; + return $this; + } + + public function getExport(): ?Export + { + return $this->export; + } + + public function setExport(?Export $export): static + { + $this->export = $export; + return $this; + } + + public function getDefaultSettings(): DefaultSettings + { + return $this->defaultSettings; + } + + public function setDefaultSettings(DefaultSettings $defaultSettings): static + { + $this->defaultSettings = $defaultSettings; + return $this; + } + + public function getLogoUrl(): ?string + { + return $this->logoUrl; + } + + public function setLogoUrl(?string $logoUrl): static + { + $this->logoUrl = $logoUrl; + return $this; + } + + public function getCompanyStamp(): CompanyStamp + { + return $this->companyStamp; + } + + public function setCompanyStamp(CompanyStamp $companyStamp): static + { + $this->companyStamp = $companyStamp; + return $this; + } +} diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/CompanyStamp.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/CompanyStamp.php new file mode 100755 index 0000000..63b92f8 --- /dev/null +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/CompanyStamp.php @@ -0,0 +1,45 @@ +xAxisCorrection; + } + + public function setXAxisCorrection(int $xAxisCorrection): static + { + $this->xAxisCorrection = $xAxisCorrection; + return $this; + } + + public function getYAxisCorrection(): int + { + return $this->yAxisCorrection; + } + + public function setYAxisCorrection(int $yAxisCorrection): static + { + $this->yAxisCorrection = $yAxisCorrection; + return $this; + } + + public function getStampUrl(): ?string + { + return $this->stampUrl; + } + + public function setStampUrl(?string $stampUrl): static + { + $this->stampUrl = $stampUrl; + return $this; + } +} diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/CreditNote.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/CreditNote.php new file mode 100755 index 0000000..8142838 --- /dev/null +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/CreditNote.php @@ -0,0 +1,130 @@ +codePrefix; + } + + public function setCodePrefix(?string $codePrefix): static + { + $this->codePrefix = $codePrefix; + return $this; + } + + public function getCodeLength(): int + { + return $this->codeLength; + } + + public function setCodeLength(int $codeLength): static + { + $this->codeLength = $codeLength; + return $this; + } + + public function getNumberSeriesStartFrom(): int + { + return $this->numberSeriesStartFrom; + } + + public function setNumberSeriesStartFrom(int $numberSeriesStartFrom): static + { + $this->numberSeriesStartFrom = $numberSeriesStartFrom; + return $this; + } + + public function getUnifyCodeWithOrder(): ?bool + { + return $this->unifyCodeWithOrder; + } + + public function setUnifyCodeWithOrder(?bool $unifyCodeWithOrder): static + { + $this->unifyCodeWithOrder = $unifyCodeWithOrder; + return $this; + } + + public function isDisplayCorrectedAndOriginalDocumentDiff(): bool + { + return $this->displayCorrectedAndOriginalDocumentDiff; + } + + public function setDisplayCorrectedAndOriginalDocumentDiff(bool $displayCorrectedAndOriginalDocumentDiff): static + { + $this->displayCorrectedAndOriginalDocumentDiff = $displayCorrectedAndOriginalDocumentDiff; + return $this; + } + + public function isPrintItemRemark(): bool + { + return $this->printItemRemark; + } + + public function setPrintItemRemark(bool $printItemRemark): static + { + $this->printItemRemark = $printItemRemark; + return $this; + } + + public function getDefaultReasonRemark(): ?string + { + return $this->defaultReasonRemark; + } + + public function setDefaultReasonRemark(?string $defaultReasonRemark): static + { + $this->defaultReasonRemark = $defaultReasonRemark; + return $this; + } + + public function isRestock(): bool + { + return $this->restock; + } + + public function setRestock(bool $restock): static + { + $this->restock = $restock; + return $this; + } + + public function getAddNotesFromOrder(): ?bool + { + return $this->addNotesFromOrder; + } + + public function setAddNotesFromOrder(?bool $addNotesFromOrder): static + { + $this->addNotesFromOrder = $addNotesFromOrder; + return $this; + } + + public function getForbiddenItemTypes(): ForbiddenItemTypes + { + return $this->forbiddenItemTypes; + } + + public function setForbiddenItemTypes(ForbiddenItemTypes $forbiddenItemTypes): static + { + $this->forbiddenItemTypes = $forbiddenItemTypes; + return $this; + } +} diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/CreditNote/ForbiddenItemTypes.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/CreditNote/ForbiddenItemTypes.php new file mode 100755 index 0000000..cc8f145 --- /dev/null +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/CreditNote/ForbiddenItemTypes.php @@ -0,0 +1,30 @@ + + * @property string[] $data + * @method string[] toArray() + * @method void set(int $key, string $item) + * @method null|string get(int $key) + * @method void add(string $item) + * @method null|string remove(int $key) + * @method bool removeItem(string $item, bool $strict = true) + * @method bool contains(string $item, bool $strict = true) + * @method null|string offsetGet(int $offset) + * @method void offsetSet(int $offset, string $value) + */ +class ForbiddenItemTypes extends EntityCollection +{ + /** + * @param array $data + * @return string + */ + public function getItemType(array $data): string + { + return 'string'; + } +} diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/DefaultSettings.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/DefaultSettings.php new file mode 100755 index 0000000..ff90a7a --- /dev/null +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/DefaultSettings.php @@ -0,0 +1,141 @@ +billingMethodId; + } + + public function setBillingMethodId(?int $billingMethodId): static + { + $this->billingMethodId = $billingMethodId; + return $this; + } + + public function getConstSymbol(): ?string + { + return $this->constSymbol; + } + + public function setConstSymbol(?string $constSymbol): static + { + $this->constSymbol = $constSymbol; + return $this; + } + + public function getSpecSymbol(): ?string + { + return $this->specSymbol; + } + + public function setSpecSymbol(?string $specSymbol): static + { + $this->specSymbol = $specSymbol; + return $this; + } + + public function getMaturity(): ?int + { + return $this->maturity; + } + + public function setMaturity(?int $maturity): static + { + $this->maturity = $maturity; + return $this; + } + + public function getInvoiceRemark(): ?string + { + return $this->invoiceRemark; + } + + public function setInvoiceRemark(?string $invoiceRemark): static + { + $this->invoiceRemark = $invoiceRemark; + return $this; + } + + public function getProformaInvoiceRemark(): ?string + { + return $this->proformaInvoiceRemark; + } + + public function setProformaInvoiceRemark(?string $proformaInvoiceRemark): static + { + $this->proformaInvoiceRemark = $proformaInvoiceRemark; + return $this; + } + + public function getShowQrCode(): ?bool + { + return $this->showQrCode; + } + + public function setShowQrCode(?bool $showQrCode): static + { + $this->showQrCode = $showQrCode; + return $this; + } + + public function getSortItems(): ?string + { + return $this->sortItems; + } + + public function setSortItems(?string $sortItems): static + { + $this->sortItems = $sortItems; + return $this; + } + + public function getShowBarcode(): ?bool + { + return $this->showBarcode; + } + + public function setShowBarcode(?bool $showBarcode): static + { + $this->showBarcode = $showBarcode; + return $this; + } + + public function getShowBillFullName(): ?bool + { + return $this->showBillFullName; + } + + public function setShowBillFullName(?bool $showBillFullName): static + { + $this->showBillFullName = $showBillFullName; + return $this; + } + + public function getShowBillFullNameOfRecipient(): ?bool + { + return $this->showBillFullNameOfRecipient; + } + + public function setShowBillFullNameOfRecipient(?bool $showBillFullNameOfRecipient): static + { + $this->showBillFullNameOfRecipient = $showBillFullNameOfRecipient; + return $this; + } +} diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/DeliveryNote.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/DeliveryNote.php new file mode 100755 index 0000000..3d23225 --- /dev/null +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/DeliveryNote.php @@ -0,0 +1,69 @@ +codePrefix; + } + + public function setCodePrefix(?string $codePrefix): static + { + $this->codePrefix = $codePrefix; + return $this; + } + + public function getCodeLength(): int + { + return $this->codeLength; + } + + public function setCodeLength(int $codeLength): static + { + $this->codeLength = $codeLength; + return $this; + } + + public function getNumberSeriesStartFrom(): int + { + return $this->numberSeriesStartFrom; + } + + public function setNumberSeriesStartFrom(int $numberSeriesStartFrom): static + { + $this->numberSeriesStartFrom = $numberSeriesStartFrom; + return $this; + } + + public function getUnifyCodeWithOrder(): ?bool + { + return $this->unifyCodeWithOrder; + } + + public function setUnifyCodeWithOrder(?bool $unifyCodeWithOrder): static + { + $this->unifyCodeWithOrder = $unifyCodeWithOrder; + return $this; + } + + public function isPrintItemRemark(): bool + { + return $this->printItemRemark; + } + + public function setPrintItemRemark(bool $printItemRemark): static + { + $this->printItemRemark = $printItemRemark; + return $this; + } +} diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Export.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Export.php new file mode 100755 index 0000000..e8c7480 --- /dev/null +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Export.php @@ -0,0 +1,45 @@ +useIsdocModule; + } + + public function setUseIsdocModule(bool $useIsdocModule): static + { + $this->useIsdocModule = $useIsdocModule; + return $this; + } + + public function getErpMoneyS3PreAccounting(): ?string + { + return $this->erpMoneyS3PreAccounting; + } + + public function setErpMoneyS3PreAccounting(?string $erpMoneyS3PreAccounting): static + { + $this->erpMoneyS3PreAccounting = $erpMoneyS3PreAccounting; + return $this; + } + + public function getErpMoneyS3Account(): ?string + { + return $this->erpMoneyS3Account; + } + + public function setErpMoneyS3Account(?string $erpMoneyS3Account): static + { + $this->erpMoneyS3Account = $erpMoneyS3Account; + return $this; + } +} diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Invoice.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Invoice.php new file mode 100755 index 0000000..bbfd5c2 --- /dev/null +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Invoice.php @@ -0,0 +1,201 @@ +codePrefix; + } + + public function setCodePrefix(?string $codePrefix): static + { + $this->codePrefix = $codePrefix; + return $this; + } + + public function getCodeLength(): int + { + return $this->codeLength; + } + + public function setCodeLength(int $codeLength): static + { + $this->codeLength = $codeLength; + return $this; + } + + public function getNumberSeriesStartFrom(): int + { + return $this->numberSeriesStartFrom; + } + + public function setNumberSeriesStartFrom(int $numberSeriesStartFrom): static + { + $this->numberSeriesStartFrom = $numberSeriesStartFrom; + return $this; + } + + public function getUnifyCodeWithOrder(): ?bool + { + return $this->unifyCodeWithOrder; + } + + public function setUnifyCodeWithOrder(?bool $unifyCodeWithOrder): static + { + $this->unifyCodeWithOrder = $unifyCodeWithOrder; + return $this; + } + + public function isUseVariableSymbolFromOrder(): bool + { + return $this->useVariableSymbolFromOrder; + } + + public function setUseVariableSymbolFromOrder(bool $useVariableSymbolFromOrder): static + { + $this->useVariableSymbolFromOrder = $useVariableSymbolFromOrder; + return $this; + } + + public function isUseSpecialNumberSerieForCashdesk(): bool + { + return $this->useSpecialNumberSerieForCashdesk; + } + + public function setUseSpecialNumberSerieForCashdesk(bool $useSpecialNumberSerieForCashdesk): static + { + $this->useSpecialNumberSerieForCashdesk = $useSpecialNumberSerieForCashdesk; + return $this; + } + + public function getCashdeskCodePrefix(): ?string + { + return $this->cashdeskCodePrefix; + } + + public function setCashdeskCodePrefix(?string $cashdeskCodePrefix): static + { + $this->cashdeskCodePrefix = $cashdeskCodePrefix; + return $this; + } + + public function getCashdeskCodeLength(): ?int + { + return $this->cashdeskCodeLength; + } + + public function setCashdeskCodeLength(?int $cashdeskCodeLength): static + { + $this->cashdeskCodeLength = $cashdeskCodeLength; + return $this; + } + + public function getCashdeskNumberSeriesStartFrom(): ?int + { + return $this->cashdeskNumberSeriesStartFrom; + } + + public function setCashdeskNumberSeriesStartFrom(?int $cashdeskNumberSeriesStartFrom): static + { + $this->cashdeskNumberSeriesStartFrom = $cashdeskNumberSeriesStartFrom; + return $this; + } + + public function isDisplayWarranty(): bool + { + return $this->displayWarranty; + } + + public function setDisplayWarranty(bool $displayWarranty): static + { + $this->displayWarranty = $displayWarranty; + return $this; + } + + public function isPrintItemRemark(): bool + { + return $this->printItemRemark; + } + + public function setPrintItemRemark(bool $printItemRemark): static + { + $this->printItemRemark = $printItemRemark; + return $this; + } + + public function isAddEanToItemRemark(): bool + { + return $this->addEanToItemRemark; + } + + public function setAddEanToItemRemark(bool $addEanToItemRemark): static + { + $this->addEanToItemRemark = $addEanToItemRemark; + return $this; + } + + public function isAddNotesFromOrder(): bool + { + return $this->addNotesFromOrder; + } + + public function setAddNotesFromOrder(bool $addNotesFromOrder): static + { + $this->addNotesFromOrder = $addNotesFromOrder; + return $this; + } + + public function getDisplayDoNotPay(): ?bool + { + return $this->displayDoNotPay; + } + + public function setDisplayDoNotPay(?bool $displayDoNotPay): static + { + $this->displayDoNotPay = $displayDoNotPay; + return $this; + } + + public function getDisplayPriceWithoutDiscount(): ?bool + { + return $this->displayPriceWithoutDiscount; + } + + public function setDisplayPriceWithoutDiscount(?bool $displayPriceWithoutDiscount): static + { + $this->displayPriceWithoutDiscount = $displayPriceWithoutDiscount; + return $this; + } + + public function getDisplayTaxableSupplyDate(): ?bool + { + return $this->displayTaxableSupplyDate; + } + + public function setDisplayTaxableSupplyDate(?bool $displayTaxableSupplyDate): static + { + $this->displayTaxableSupplyDate = $displayTaxableSupplyDate; + return $this; + } +} diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Order.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Order.php new file mode 100755 index 0000000..90f77c0 --- /dev/null +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Order.php @@ -0,0 +1,106 @@ +codePrefix; + } + + public function setCodePrefix(?string $codePrefix): static + { + $this->codePrefix = $codePrefix; + return $this; + } + + public function getCodeLength(): int + { + return $this->codeLength; + } + + public function setCodeLength(int $codeLength): static + { + $this->codeLength = $codeLength; + return $this; + } + + public function isIsCodeRandom(): bool + { + return $this->isCodeRandom; + } + + public function setIsCodeRandom(bool $isCodeRandom): static + { + $this->isCodeRandom = $isCodeRandom; + return $this; + } + + public function getNumberSeriesStartFrom(): int + { + return $this->numberSeriesStartFrom; + } + + public function setNumberSeriesStartFrom(int $numberSeriesStartFrom): static + { + $this->numberSeriesStartFrom = $numberSeriesStartFrom; + return $this; + } + + public function getSyncDocuments(): ?bool + { + return $this->syncDocuments; + } + + public function setSyncDocuments(?bool $syncDocuments): static + { + $this->syncDocuments = $syncDocuments; + return $this; + } + + public function getPrintItemRemark(): ?bool + { + return $this->printItemRemark; + } + + public function setPrintItemRemark(?bool $printItemRemark): static + { + $this->printItemRemark = $printItemRemark; + return $this; + } + + public function getDisplayProductStockLocation(): ?bool + { + return $this->displayProductStockLocation; + } + + public function setDisplayProductStockLocation(?bool $displayProductStockLocation): static + { + $this->displayProductStockLocation = $displayProductStockLocation; + return $this; + } + + public function getItemRemarkParameters(): ?ItemRemarkParameters + { + return $this->itemRemarkParameters; + } + + public function setItemRemarkParameters(?ItemRemarkParameters $itemRemarkParameters): static + { + $this->itemRemarkParameters = $itemRemarkParameters; + return $this; + } +} diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Order/ItemRemarkParameters.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Order/ItemRemarkParameters.php new file mode 100755 index 0000000..55d9b08 --- /dev/null +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/Order/ItemRemarkParameters.php @@ -0,0 +1,30 @@ + + * @property string[] $data + * @method string[] toArray() + * @method void set(int $key, string $item) + * @method null|string get(int $key) + * @method void add(string $item) + * @method null|string remove(int $key) + * @method bool removeItem(string $item, bool $strict = true) + * @method bool contains(string $item, bool $strict = true) + * @method null|string offsetGet(int $offset) + * @method void offsetSet(int $offset, string $value) + */ +class ItemRemarkParameters extends EntityCollection +{ + /** + * @param array $data + * @return string + */ + public function getItemType(array $data): string + { + return 'string'; + } +} diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/ProformaInvoice.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/ProformaInvoice.php new file mode 100755 index 0000000..70a1d76 --- /dev/null +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/ProformaInvoice.php @@ -0,0 +1,106 @@ +codePrefix; + } + + public function setCodePrefix(?string $codePrefix): static + { + $this->codePrefix = $codePrefix; + return $this; + } + + public function getCodeLength(): int + { + return $this->codeLength; + } + + public function setCodeLength(int $codeLength): static + { + $this->codeLength = $codeLength; + return $this; + } + + public function getNumberSeriesStartFrom(): int + { + return $this->numberSeriesStartFrom; + } + + public function setNumberSeriesStartFrom(int $numberSeriesStartFrom): static + { + $this->numberSeriesStartFrom = $numberSeriesStartFrom; + return $this; + } + + public function getUnifyCodeWithOrder(): ?bool + { + return $this->unifyCodeWithOrder; + } + + public function setUnifyCodeWithOrder(?bool $unifyCodeWithOrder): static + { + $this->unifyCodeWithOrder = $unifyCodeWithOrder; + return $this; + } + + public function isUseVariableSymbolFromOrder(): bool + { + return $this->useVariableSymbolFromOrder; + } + + public function setUseVariableSymbolFromOrder(bool $useVariableSymbolFromOrder): static + { + $this->useVariableSymbolFromOrder = $useVariableSymbolFromOrder; + return $this; + } + + public function isPrintItemRemark(): bool + { + return $this->printItemRemark; + } + + public function setPrintItemRemark(bool $printItemRemark): static + { + $this->printItemRemark = $printItemRemark; + return $this; + } + + public function isAddNotesFromOrder(): bool + { + return $this->addNotesFromOrder; + } + + public function setAddNotesFromOrder(bool $addNotesFromOrder): static + { + $this->addNotesFromOrder = $addNotesFromOrder; + return $this; + } + + public function getPercentageValueForPartialPayment(): TypePrice + { + return $this->percentageValueForPartialPayment; + } + + public function setPercentageValueForPartialPayment(TypePrice $percentageValueForPartialPayment): static + { + $this->percentageValueForPartialPayment = $percentageValueForPartialPayment; + return $this; + } +} diff --git a/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/ProofPayment.php b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/ProofPayment.php new file mode 100755 index 0000000..fa91fd3 --- /dev/null +++ b/src/Endpoint/Eshop/GetEshopDocumentSettingsResponse/GetEshopDocumentSettingsResponse/Data/ProofPayment.php @@ -0,0 +1,93 @@ +useSequentionalNumberSerie; + } + + public function setUseSequentionalNumberSerie(bool $useSequentionalNumberSerie): static + { + $this->useSequentionalNumberSerie = $useSequentionalNumberSerie; + return $this; + } + + public function getCodePrefix(): ?string + { + return $this->codePrefix; + } + + public function setCodePrefix(?string $codePrefix): static + { + $this->codePrefix = $codePrefix; + return $this; + } + + public function getCodeLength(): ?int + { + return $this->codeLength; + } + + public function setCodeLength(?int $codeLength): static + { + $this->codeLength = $codeLength; + return $this; + } + + public function getNumberSeriesStartFrom(): ?int + { + return $this->numberSeriesStartFrom; + } + + public function setNumberSeriesStartFrom(?int $numberSeriesStartFrom): static + { + $this->numberSeriesStartFrom = $numberSeriesStartFrom; + return $this; + } + + public function getCodePrefixOrder(): ?string + { + return $this->codePrefixOrder; + } + + public function setCodePrefixOrder(?string $codePrefixOrder): static + { + $this->codePrefixOrder = $codePrefixOrder; + return $this; + } + + public function getCodePrefixProformaInvoice(): ?string + { + return $this->codePrefixProformaInvoice; + } + + public function setCodePrefixProformaInvoice(?string $codePrefixProformaInvoice): static + { + $this->codePrefixProformaInvoice = $codePrefixProformaInvoice; + return $this; + } + + public function isCreateByIncomingPayment(): bool + { + return $this->createByIncomingPayment; + } + + public function setCreateByIncomingPayment(bool $createByIncomingPayment): static + { + $this->createByIncomingPayment = $createByIncomingPayment; + return $this; + } +} diff --git a/src/Endpoint/Eshop/GetEshopInfo.php b/src/Endpoint/Eshop/GetEshopInfo.php old mode 100644 new mode 100755 index 9dd77bc..6bd9e10 --- a/src/Endpoint/Eshop/GetEshopInfo.php +++ b/src/Endpoint/Eshop/GetEshopInfo.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Eshop/geteshopinfo + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Eshop/geteshopinfo * * @method GetEshopInfo setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ActiveModules.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ActiveModules.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ActiveModules/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ActiveModules/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/BillingInformation.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/BillingInformation.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/BillingInformation/Address.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/BillingInformation/Address.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/BillingInformation/Company.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/BillingInformation/Company.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/BillingInformation/Country.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/BillingInformation/Country.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/CashDesk.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/CashDesk.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ContactInformation.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ContactInformation.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Countries.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Countries.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Countries/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Countries/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Currencies.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Currencies.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Currencies/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Currencies/Item.php old mode 100644 new mode 100755 index 0dd9b48..daa55b9 --- a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Currencies/Item.php +++ b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Currencies/Item.php @@ -4,7 +4,7 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeExchangeRate; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; use Shoptet\Api\Sdk\Php\Endpoint\Eshop\GetEshopInfoResponse\GetEshopInfoResponse\Data\Currencies\Item\BankAccount; use Shoptet\Api\Sdk\Php\Endpoint\Eshop\GetEshopInfoResponse\GetEshopInfoResponse\Data\Currencies\Item\Display; @@ -22,7 +22,7 @@ class Item extends Entity protected int $priceDecimalPlaces; protected int $documentPriceDecimalPlaces; protected string $rounding; - protected TypePrice $minimalOrderValue; + protected TypePriceNullable $minimalOrderValue; protected BankAccount $bankAccount; public function getCode(): string @@ -157,12 +157,12 @@ public function setRounding(string $rounding): static return $this; } - public function getMinimalOrderValue(): TypePrice + public function getMinimalOrderValue(): TypePriceNullable { return $this->minimalOrderValue; } - public function setMinimalOrderValue(TypePrice $minimalOrderValue): static + public function setMinimalOrderValue(TypePriceNullable $minimalOrderValue): static { $this->minimalOrderValue = $minimalOrderValue; return $this; diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Currencies/Item/BankAccount.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Currencies/Item/BankAccount.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Currencies/Item/Display.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Currencies/Item/Display.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ImageCuts.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ImageCuts.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ImageCuts/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ImageCuts/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Languages.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Languages.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Languages/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Languages/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/OrderAdditionalFields.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/OrderAdditionalFields.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/OrderAdditionalFields/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/OrderAdditionalFields/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/OrderStatuses.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/OrderStatuses.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/OrderStatuses/Statuses.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/OrderStatuses/Statuses.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/OrderStatuses/Statuses/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/OrderStatuses/Statuses/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods/Retail.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods/Retail.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods/Retail/Methods.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods/Retail/Methods.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods/Retail/Methods/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods/Retail/Methods/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods/Wholesale.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods/Wholesale.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods/Wholesale/Methods.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods/Wholesale/Methods.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods/Wholesale/Methods/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/PaymentMethods/Wholesale/Methods/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Settings.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Settings.php old mode 100644 new mode 100755 index 5a468c9..eb34950 --- a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Settings.php +++ b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Settings.php @@ -13,14 +13,16 @@ class Settings extends Entity protected int $maxProductAmount; protected int $maxEmailAmount; protected Pricelist $defaultPricelist; - protected string $eshopLanguage; + protected ?string $eshopLanguage; protected string $timezone; protected string $dateFormat; protected string $timeFormat; protected string $internals; protected bool $exchangeRateFlip; protected string $negativeStockAmount; - protected ?bool $oss; + protected bool $oss; + protected bool $stockControlDisabled; + protected bool $wholesaleSplitActive; public function isVatPayer(): bool { @@ -88,12 +90,12 @@ public function setDefaultPricelist(Pricelist $defaultPricelist): static return $this; } - public function getEshopLanguage(): string + public function getEshopLanguage(): ?string { return $this->eshopLanguage; } - public function setEshopLanguage(string $eshopLanguage): static + public function setEshopLanguage(?string $eshopLanguage): static { $this->eshopLanguage = $eshopLanguage; return $this; @@ -165,14 +167,36 @@ public function setNegativeStockAmount(string $negativeStockAmount): static return $this; } - public function getOss(): ?bool + public function isOss(): bool { return $this->oss; } - public function setOss(?bool $oss): static + public function setOss(bool $oss): static { $this->oss = $oss; return $this; } + + public function isStockControlDisabled(): bool + { + return $this->stockControlDisabled; + } + + public function setStockControlDisabled(bool $stockControlDisabled): static + { + $this->stockControlDisabled = $stockControlDisabled; + return $this; + } + + public function isWholesaleSplitActive(): bool + { + return $this->wholesaleSplitActive; + } + + public function setWholesaleSplitActive(bool $wholesaleSplitActive): static + { + $this->wholesaleSplitActive = $wholesaleSplitActive; + return $this; + } } diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods/Retail.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods/Retail.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods/Retail/Methods.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods/Retail/Methods.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods/Retail/Methods/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods/Retail/Methods/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods/Wholesale.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods/Wholesale.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods/Wholesale/Methods.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods/Wholesale/Methods.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods/Wholesale/Methods/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/ShippingMethods/Wholesale/Methods/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/SocialNetworks.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/SocialNetworks.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/TaxClasses.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/TaxClasses.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/TaxClasses/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/TaxClasses/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/TaxClasses/Item/Rates.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/TaxClasses/Item/Rates.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/TaxClasses/Item/Rates/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/TaxClasses/Item/Rates/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Urls.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Urls.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Urls/Item.php b/src/Endpoint/Eshop/GetEshopInfoResponse/GetEshopInfoResponse/Data/Urls/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopMandatoryFields.php b/src/Endpoint/Eshop/GetEshopMandatoryFields.php old mode 100644 new mode 100755 index 13345a2..5c14bee --- a/src/Endpoint/Eshop/GetEshopMandatoryFields.php +++ b/src/Endpoint/Eshop/GetEshopMandatoryFields.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Eshop/geteshopmandatoryfields + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Eshop/geteshopmandatoryfields * * @method GetEshopMandatoryFields setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse.php b/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse/Data.php b/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse/Data/BillingAddress.php b/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse/Data/BillingAddress.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse/Data/BillingInfo.php b/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse/Data/BillingInfo.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse/Data/ContactInfo.php b/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse/Data/ContactInfo.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse/Data/DeliveryAddress.php b/src/Endpoint/Eshop/GetEshopMandatoryFieldsResponse/GetEshopMandatoryFieldsResponse/Data/DeliveryAddress.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/DocumentExport/GeneralDocumentDownload.php b/src/Endpoint/Exports/GeneralDocumentDownload.php old mode 100644 new mode 100755 similarity index 79% rename from src/Endpoint/DocumentExport/GeneralDocumentDownload.php rename to src/Endpoint/Exports/GeneralDocumentDownload.php index fd6a47c..0204884 --- a/src/Endpoint/DocumentExport/GeneralDocumentDownload.php +++ b/src/Endpoint/Exports/GeneralDocumentDownload.php @@ -1,13 +1,13 @@ jobId; + } + + public function setJobId(string $jobId): static + { + $this->jobId = $jobId; + return $this; + } +} diff --git a/src/Endpoint/Files/GetListOfUploadedFiles.php b/src/Endpoint/Files/GetListOfUploadedFiles.php old mode 100644 new mode 100755 index 88f44e1..df234e8 --- a/src/Endpoint/Files/GetListOfUploadedFiles.php +++ b/src/Endpoint/Files/GetListOfUploadedFiles.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Files/getlistofuploadedfiles + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Files/getlistofuploadedfiles * * @method GetListOfUploadedFiles setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse.php b/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data.php b/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data.php old mode 100644 new mode 100755 index 7ee9f14..b95642c --- a/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data.php +++ b/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data.php @@ -3,11 +3,13 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Files\GetListOfUploadedFilesResponse\GetListOfUploadedFilesResponse; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Endpoint\Files\GetListOfUploadedFilesResponse\GetListOfUploadedFilesResponse\Data\Files; use Shoptet\Api\Sdk\Php\Endpoint\Files\GetListOfUploadedFilesResponse\GetListOfUploadedFilesResponse\Data\Images; class Data extends Entity { protected Images $images; + protected ?Files $files; public function getImages(): Images { @@ -19,4 +21,15 @@ public function setImages(Images $images): static $this->images = $images; return $this; } + + public function getFiles(): ?Files + { + return $this->files; + } + + public function setFiles(?Files $files): static + { + $this->files = $files; + return $this; + } } diff --git a/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Files.php b/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Files.php new file mode 100755 index 0000000..64da520 --- /dev/null +++ b/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Files.php @@ -0,0 +1,31 @@ + + * @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 Files extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Files\GetListOfUploadedFilesResponse\GetListOfUploadedFilesResponse\Data\Files\Item'; + } +} diff --git a/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Files/Item.php b/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Files/Item.php new file mode 100755 index 0000000..b25708a --- /dev/null +++ b/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Files/Item.php @@ -0,0 +1,34 @@ +name; + } + + public function setName(?string $name): static + { + $this->name = $name; + return $this; + } + + public function getCreated(): ?TypeDateTimeNullable + { + return $this->created; + } + + public function setCreated(?TypeDateTimeNullable $created): static + { + $this->created = $created; + return $this; + } +} diff --git a/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Images.php b/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Images.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Images/Item.php b/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Images/Item.php old mode 100644 new mode 100755 index 73ff861..a913201 --- a/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Images/Item.php +++ b/src/Endpoint/Files/GetListOfUploadedFilesResponse/GetListOfUploadedFilesResponse/Data/Images/Item.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Files\GetListOfUploadedFilesResponse\GetListOfUploadedFilesResponse\Data\Images; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Item extends Entity { protected ?string $name; - protected ?TypeDateTime $created; + protected ?TypeDateTimeNullable $created; public function getName(): ?string { @@ -21,12 +21,12 @@ public function setName(?string $name): static return $this; } - public function getCreated(): ?TypeDateTime + public function getCreated(): ?TypeDateTimeNullable { return $this->created; } - public function setCreated(?TypeDateTime $created): static + public function setCreated(?TypeDateTimeNullable $created): static { $this->created = $created; return $this; diff --git a/src/Endpoint/Files/UploadFile.php b/src/Endpoint/Files/UploadFile.php old mode 100644 new mode 100755 index 4f73956..7e8ccd0 --- a/src/Endpoint/Files/UploadFile.php +++ b/src/Endpoint/Files/UploadFile.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Files/uploadfile + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Files/uploadfile * * @method UploadFile setBody(null|array|UploadFileRequest $entity) * @method null|UploadFileRequest getBody() diff --git a/src/Endpoint/Files/UploadFileRequest/UploadFileRequest.php b/src/Endpoint/Files/UploadFileRequest/UploadFileRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Files/UploadFileRequest/UploadFileRequest/Data.php b/src/Endpoint/Files/UploadFileRequest/UploadFileRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Files/UploadFileResponse/UploadFileResponse.php b/src/Endpoint/Files/UploadFileResponse/UploadFileResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data.php b/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data.php old mode 100644 new mode 100755 index abf4f2c..5563aa8 --- a/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data.php +++ b/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data.php @@ -3,20 +3,33 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Files\UploadFileResponse\UploadFileResponse; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Endpoint\Files\UploadFileResponse\UploadFileResponse\Data\File; use Shoptet\Api\Sdk\Php\Endpoint\Files\UploadFileResponse\UploadFileResponse\Data\Image; class Data extends Entity { - protected Image $image; + protected ?Image $image; + protected ?File $file; - public function getImage(): Image + public function getImage(): ?Image { return $this->image; } - public function setImage(Image $image): static + public function setImage(?Image $image): static { $this->image = $image; return $this; } + + public function getFile(): ?File + { + return $this->file; + } + + public function setFile(?File $file): static + { + $this->file = $file; + return $this; + } } diff --git a/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data/File.php b/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data/File.php new file mode 100755 index 0000000..ab4df03 --- /dev/null +++ b/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data/File.php @@ -0,0 +1,34 @@ +name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getCreated(): ?TypeDateTimeNullable + { + return $this->created; + } + + public function setCreated(?TypeDateTimeNullable $created): static + { + $this->created = $created; + return $this; + } +} diff --git a/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data/Image.php b/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data/Image.php old mode 100644 new mode 100755 index ec4af75..c8bfe7e --- a/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data/Image.php +++ b/src/Endpoint/Files/UploadFileResponse/UploadFileResponse/Data/Image.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Files\UploadFileResponse\UploadFileResponse\Data; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Image extends Entity { protected string $name; - protected ?TypeDateTime $created; + protected ?TypeDateTimeNullable $created; public function getName(): string { @@ -21,12 +21,12 @@ public function setName(string $name): static return $this; } - public function getCreated(): ?TypeDateTime + public function getCreated(): ?TypeDateTimeNullable { return $this->created; } - public function setCreated(?TypeDateTime $created): static + public function setCreated(?TypeDateTimeNullable $created): static { $this->created = $created; return $this; diff --git a/src/Endpoint/Files/UploadFiles.php b/src/Endpoint/Files/UploadFiles.php old mode 100644 new mode 100755 index 7832d1e..96bd800 --- a/src/Endpoint/Files/UploadFiles.php +++ b/src/Endpoint/Files/UploadFiles.php @@ -8,7 +8,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Files/uploadfiles + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Files/uploadfiles * * @method UploadFiles setBody(null|array|UploadFilesRequest $entity) * @method null|UploadFilesRequest getBody() diff --git a/src/Endpoint/Files/UploadFilesRequest/UploadFilesRequest.php b/src/Endpoint/Files/UploadFilesRequest/UploadFilesRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Files/UploadFilesRequest/UploadFilesRequest/Data.php b/src/Endpoint/Files/UploadFilesRequest/UploadFilesRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Files/UploadFilesRequest/UploadFilesRequest/Data/Item.php b/src/Endpoint/Files/UploadFilesRequest/UploadFilesRequest/Data/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Files/UploadFilesResponse/UploadFilesResponse.php b/src/Endpoint/Files/UploadFilesResponse/UploadFilesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Files/UploadFilesResponse/UploadFilesResponse/Data.php b/src/Endpoint/Files/UploadFilesResponse/UploadFilesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameter.php b/src/Endpoint/FilteringParameters/CreateFilteringParameter.php new file mode 100755 index 0000000..072e6a9 --- /dev/null +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameter.php @@ -0,0 +1,34 @@ + false]; + + public function getRequestEntityClass(): string + { + return CreateFilteringParameterRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateFilteringParameterResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/filtering-parameters'; + } +} diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameterRequest/CreateFilteringParameterRequest.php b/src/Endpoint/FilteringParameters/CreateFilteringParameterRequest/CreateFilteringParameterRequest.php new file mode 100755 index 0000000..9e1b6b8 --- /dev/null +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameterRequest/CreateFilteringParameterRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameterRequest/CreateFilteringParameterRequest/Data.php b/src/Endpoint/FilteringParameters/CreateFilteringParameterRequest/CreateFilteringParameterRequest/Data.php new file mode 100755 index 0000000..684c74a --- /dev/null +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameterRequest/CreateFilteringParameterRequest/Data.php @@ -0,0 +1,94 @@ +name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): static + { + $this->code = $code; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getGoogleMapping(): ?string + { + return $this->googleMapping; + } + + public function setGoogleMapping(?string $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getValues(): ProductFilteringParameterValues + { + return $this->values; + } + + public function setValues(ProductFilteringParameterValues $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameterResponse/CreateFilteringParameterResponse.php b/src/Endpoint/FilteringParameters/CreateFilteringParameterResponse/CreateFilteringParameterResponse.php new file mode 100755 index 0000000..e261847 --- /dev/null +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameterResponse/CreateFilteringParameterResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data.php b/src/Endpoint/FilteringParameters/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data.php new file mode 100755 index 0000000..311dd7d --- /dev/null +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data.php @@ -0,0 +1,107 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getGoogleMapping(): GoogleMappingType + { + return $this->googleMapping; + } + + public function setGoogleMapping(GoogleMappingType $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getValues(): ?Values + { + return $this->values; + } + + public function setValues(?Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data/Values.php b/src/Endpoint/FilteringParameters/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data/Values.php new file mode 100755 index 0000000..966650f --- /dev/null +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data/Values.php @@ -0,0 +1,31 @@ + + * @property ProductFilteringParameterValue[] $data + * @method ProductFilteringParameterValue[] toArray() + * @method void set(int $key, ProductFilteringParameterValue $item) + * @method null|ProductFilteringParameterValue get(int $key) + * @method void add(ProductFilteringParameterValue $item) + * @method null|ProductFilteringParameterValue remove(int $key) + * @method bool removeItem(ProductFilteringParameterValue $item, bool $strict = true) + * @method bool contains(ProductFilteringParameterValue $item, bool $strict = true) + * @method null|ProductFilteringParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductFilteringParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductFilteringParameterValue'; + } +} diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameterValue.php b/src/Endpoint/FilteringParameters/CreateFilteringParameterValue.php new file mode 100755 index 0000000..1f085d4 --- /dev/null +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameterValue.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return CreateFilteringParameterValueRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateFilteringParameterValueResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/filtering-parameters/{code}'; + } +} diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest.php b/src/Endpoint/FilteringParameters/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest.php new file mode 100755 index 0000000..21b586d --- /dev/null +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest/Data.php b/src/Endpoint/FilteringParameters/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest/Data.php new file mode 100755 index 0000000..0a71a6d --- /dev/null +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest/Data.php @@ -0,0 +1,22 @@ +paramValues; + } + + public function setParamValues(ProductFilteringParameterValues $paramValues): static + { + $this->paramValues = $paramValues; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse.php b/src/Endpoint/FilteringParameters/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse.php new file mode 100755 index 0000000..271bd56 --- /dev/null +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data.php b/src/Endpoint/FilteringParameters/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data.php new file mode 100755 index 0000000..a3a1862 --- /dev/null +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data.php @@ -0,0 +1,107 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getGoogleMapping(): GoogleMappingType + { + return $this->googleMapping; + } + + public function setGoogleMapping(GoogleMappingType $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getValues(): ?Values + { + return $this->values; + } + + public function setValues(?Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data/Values.php b/src/Endpoint/FilteringParameters/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data/Values.php new file mode 100755 index 0000000..dfd1e29 --- /dev/null +++ b/src/Endpoint/FilteringParameters/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data/Values.php @@ -0,0 +1,31 @@ + + * @property ProductFilteringParameterValue[] $data + * @method ProductFilteringParameterValue[] toArray() + * @method void set(int $key, ProductFilteringParameterValue $item) + * @method null|ProductFilteringParameterValue get(int $key) + * @method void add(ProductFilteringParameterValue $item) + * @method null|ProductFilteringParameterValue remove(int $key) + * @method bool removeItem(ProductFilteringParameterValue $item, bool $strict = true) + * @method bool contains(ProductFilteringParameterValue $item, bool $strict = true) + * @method null|ProductFilteringParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductFilteringParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductFilteringParameterValue'; + } +} diff --git a/src/Endpoint/FilteringParameters/DeleteFilteringParameter.php b/src/Endpoint/FilteringParameters/DeleteFilteringParameter.php new file mode 100755 index 0000000..ba43306 --- /dev/null +++ b/src/Endpoint/FilteringParameters/DeleteFilteringParameter.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteFilteringParameterResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/filtering-parameters/{code}'; + } +} diff --git a/src/Endpoint/FilteringParameters/DeleteFilteringParameterResponse/DeleteFilteringParameterResponse.php b/src/Endpoint/FilteringParameters/DeleteFilteringParameterResponse/DeleteFilteringParameterResponse.php new file mode 100755 index 0000000..f10a223 --- /dev/null +++ b/src/Endpoint/FilteringParameters/DeleteFilteringParameterResponse/DeleteFilteringParameterResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/DeleteFilteringParameterResponse/DeleteFilteringParameterResponse/Data.php b/src/Endpoint/FilteringParameters/DeleteFilteringParameterResponse/DeleteFilteringParameterResponse/Data.php new file mode 100755 index 0000000..6d205d7 --- /dev/null +++ b/src/Endpoint/FilteringParameters/DeleteFilteringParameterResponse/DeleteFilteringParameterResponse/Data.php @@ -0,0 +1,9 @@ + true, 'valueIndex' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteFilteringParameterValueResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/filtering-parameters/{code}/{valueIndex}'; + } +} diff --git a/src/Endpoint/FilteringParameters/DeleteFilteringParameterValueResponse/DeleteFilteringParameterValueResponse.php b/src/Endpoint/FilteringParameters/DeleteFilteringParameterValueResponse/DeleteFilteringParameterValueResponse.php new file mode 100755 index 0000000..9688bb6 --- /dev/null +++ b/src/Endpoint/FilteringParameters/DeleteFilteringParameterValueResponse/DeleteFilteringParameterValueResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/DeleteFilteringParameterValueResponse/DeleteFilteringParameterValueResponse/Data.php b/src/Endpoint/FilteringParameters/DeleteFilteringParameterValueResponse/DeleteFilteringParameterValueResponse/Data.php new file mode 100755 index 0000000..275fe89 --- /dev/null +++ b/src/Endpoint/FilteringParameters/DeleteFilteringParameterValueResponse/DeleteFilteringParameterValueResponse/Data.php @@ -0,0 +1,9 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetDetailOfFilteringParameterResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/filtering-parameters/{code}'; + } +} diff --git a/src/Endpoint/FilteringParameters/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse.php b/src/Endpoint/FilteringParameters/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse.php new file mode 100755 index 0000000..53bb758 --- /dev/null +++ b/src/Endpoint/FilteringParameters/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data.php b/src/Endpoint/FilteringParameters/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data.php new file mode 100755 index 0000000..5ccb4bc --- /dev/null +++ b/src/Endpoint/FilteringParameters/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data.php @@ -0,0 +1,107 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getGoogleMapping(): GoogleMappingType + { + return $this->googleMapping; + } + + public function setGoogleMapping(GoogleMappingType $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getValues(): ?Values + { + return $this->values; + } + + public function setValues(?Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data/Values.php b/src/Endpoint/FilteringParameters/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data/Values.php new file mode 100755 index 0000000..cf9f37a --- /dev/null +++ b/src/Endpoint/FilteringParameters/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data/Values.php @@ -0,0 +1,31 @@ + + * @property ProductFilteringParameterValue[] $data + * @method ProductFilteringParameterValue[] toArray() + * @method void set(int $key, ProductFilteringParameterValue $item) + * @method null|ProductFilteringParameterValue get(int $key) + * @method void add(ProductFilteringParameterValue $item) + * @method null|ProductFilteringParameterValue remove(int $key) + * @method bool removeItem(ProductFilteringParameterValue $item, bool $strict = true) + * @method bool contains(ProductFilteringParameterValue $item, bool $strict = true) + * @method null|ProductFilteringParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductFilteringParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductFilteringParameterValue'; + } +} diff --git a/src/Endpoint/FilteringParameters/GetListOfFilteringParameters.php b/src/Endpoint/FilteringParameters/GetListOfFilteringParameters.php new file mode 100755 index 0000000..fad892f --- /dev/null +++ b/src/Endpoint/FilteringParameters/GetListOfFilteringParameters.php @@ -0,0 +1,33 @@ + false, 'page' => false, 'itemsPerPage' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfFilteringParametersResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/filtering-parameters'; + } +} diff --git a/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse.php b/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse.php new file mode 100755 index 0000000..e27cad0 --- /dev/null +++ b/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data.php b/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data.php new file mode 100755 index 0000000..d50f8ed --- /dev/null +++ b/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data.php @@ -0,0 +1,35 @@ +filteringParameters; + } + + public function setFilteringParameters(FilteringParameters $filteringParameters): static + { + $this->filteringParameters = $filteringParameters; + return $this; + } + + public function getPaginator(): Paginator + { + return $this->paginator; + } + + public function setPaginator(Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters.php b/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters.php new file mode 100755 index 0000000..82bb22e --- /dev/null +++ b/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters.php @@ -0,0 +1,31 @@ + + * @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 FilteringParameters extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\GetListOfFilteringParametersResponse\GetListOfFilteringParametersResponse\Data\FilteringParameters\Item'; + } +} diff --git a/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item.php b/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item.php new file mode 100755 index 0000000..141de99 --- /dev/null +++ b/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item.php @@ -0,0 +1,107 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getGoogleMapping(): GoogleMappingType + { + return $this->googleMapping; + } + + public function setGoogleMapping(GoogleMappingType $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getValues(): Values + { + return $this->values; + } + + public function setValues(Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item/Values.php b/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item/Values.php new file mode 100755 index 0000000..c3eb951 --- /dev/null +++ b/src/Endpoint/FilteringParameters/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item/Values.php @@ -0,0 +1,31 @@ + + * @property ProductFilteringParameterValue[] $data + * @method ProductFilteringParameterValue[] toArray() + * @method void set(int $key, ProductFilteringParameterValue $item) + * @method null|ProductFilteringParameterValue get(int $key) + * @method void add(ProductFilteringParameterValue $item) + * @method null|ProductFilteringParameterValue remove(int $key) + * @method bool removeItem(ProductFilteringParameterValue $item, bool $strict = true) + * @method bool contains(ProductFilteringParameterValue $item, bool $strict = true) + * @method null|ProductFilteringParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductFilteringParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductFilteringParameterValue'; + } +} diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameter.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameter.php new file mode 100755 index 0000000..e69d36d --- /dev/null +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameter.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateFilteringParameterRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateFilteringParameterResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/filtering-parameters/{code}'; + } +} diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest.php new file mode 100755 index 0000000..8c0c5ed --- /dev/null +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest/Data.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest/Data.php new file mode 100755 index 0000000..7a8902c --- /dev/null +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest/Data.php @@ -0,0 +1,81 @@ +name; + } + + public function setName(?string $name): static + { + $this->name = $name; + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): static + { + $this->code = $code; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getGoogleMapping(): ?string + { + return $this->googleMapping; + } + + public function setGoogleMapping(?string $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse.php new file mode 100755 index 0000000..3614e9c --- /dev/null +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data.php new file mode 100755 index 0000000..5caa73e --- /dev/null +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data.php @@ -0,0 +1,107 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getGoogleMapping(): GoogleMappingType + { + return $this->googleMapping; + } + + public function setGoogleMapping(GoogleMappingType $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getValues(): ?Values + { + return $this->values; + } + + public function setValues(?Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data/Values.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data/Values.php new file mode 100755 index 0000000..ad569f7 --- /dev/null +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data/Values.php @@ -0,0 +1,31 @@ + + * @property ProductFilteringParameterValue[] $data + * @method ProductFilteringParameterValue[] toArray() + * @method void set(int $key, ProductFilteringParameterValue $item) + * @method null|ProductFilteringParameterValue get(int $key) + * @method void add(ProductFilteringParameterValue $item) + * @method null|ProductFilteringParameterValue remove(int $key) + * @method bool removeItem(ProductFilteringParameterValue $item, bool $strict = true) + * @method bool contains(ProductFilteringParameterValue $item, bool $strict = true) + * @method null|ProductFilteringParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductFilteringParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductFilteringParameterValue'; + } +} diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameterValue.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValue.php new file mode 100755 index 0000000..f1ef687 --- /dev/null +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValue.php @@ -0,0 +1,34 @@ + true, 'valueIndex' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateFilteringParameterValueRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateFilteringParameterValueResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/filtering-parameters/{code}/{valueIndex}'; + } +} diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest.php new file mode 100755 index 0000000..2f29717 --- /dev/null +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest/Data.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest/Data.php new file mode 100755 index 0000000..54e9df1 --- /dev/null +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest/Data.php @@ -0,0 +1,70 @@ +name; + } + + public function setName(?string $name): static + { + $this->name = $name; + return $this; + } + + public function getValueIndex(): ?string + { + return $this->valueIndex; + } + + public function setValueIndex(?string $valueIndex): static + { + $this->valueIndex = $valueIndex; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getColor(): ?TypeColor + { + return $this->color; + } + + public function setColor(?TypeColor $color): static + { + $this->color = $color; + return $this; + } + + public function getImage(): ?string + { + return $this->image; + } + + public function setImage(?string $image): static + { + $this->image = $image; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse.php new file mode 100755 index 0000000..2f920c6 --- /dev/null +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data.php new file mode 100755 index 0000000..5b50f25 --- /dev/null +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data.php @@ -0,0 +1,107 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getGoogleMapping(): GoogleMappingType + { + return $this->googleMapping; + } + + public function setGoogleMapping(GoogleMappingType $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getValues(): ?Values + { + return $this->values; + } + + public function setValues(?Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data/Values.php b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data/Values.php new file mode 100755 index 0000000..59c7bd3 --- /dev/null +++ b/src/Endpoint/FilteringParameters/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data/Values.php @@ -0,0 +1,31 @@ + + * @property ProductFilteringParameterValue[] $data + * @method ProductFilteringParameterValue[] toArray() + * @method void set(int $key, ProductFilteringParameterValue $item) + * @method null|ProductFilteringParameterValue get(int $key) + * @method void add(ProductFilteringParameterValue $item) + * @method null|ProductFilteringParameterValue remove(int $key) + * @method bool removeItem(ProductFilteringParameterValue $item, bool $strict = true) + * @method bool contains(ProductFilteringParameterValue $item, bool $strict = true) + * @method null|ProductFilteringParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductFilteringParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductFilteringParameterValue'; + } +} diff --git a/src/Endpoint/Flags/CreateProductFlag.php b/src/Endpoint/Flags/CreateProductFlag.php new file mode 100755 index 0000000..4464cb5 --- /dev/null +++ b/src/Endpoint/Flags/CreateProductFlag.php @@ -0,0 +1,34 @@ + false]; + + public function getRequestEntityClass(): string + { + return CreateProductFlagRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateProductFlagResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/flags'; + } +} diff --git a/src/Endpoint/Flags/CreateProductFlagRequest/CreateProductFlagRequest.php b/src/Endpoint/Flags/CreateProductFlagRequest/CreateProductFlagRequest.php new file mode 100755 index 0000000..bb8f2d5 --- /dev/null +++ b/src/Endpoint/Flags/CreateProductFlagRequest/CreateProductFlagRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/Flags/CreateProductFlagRequest/CreateProductFlagRequest/Data.php b/src/Endpoint/Flags/CreateProductFlagRequest/CreateProductFlagRequest/Data.php new file mode 100755 index 0000000..cd5719b --- /dev/null +++ b/src/Endpoint/Flags/CreateProductFlagRequest/CreateProductFlagRequest/Data.php @@ -0,0 +1,34 @@ +title; + } + + public function setTitle(string $title): static + { + $this->title = $title; + return $this; + } + + public function getColor(): ?TypeColor + { + return $this->color; + } + + public function setColor(?TypeColor $color): static + { + $this->color = $color; + return $this; + } +} diff --git a/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse.php b/src/Endpoint/Flags/CreateProductFlagResponse/CreateProductFlagResponse.php old mode 100644 new mode 100755 similarity index 77% rename from src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse.php rename to src/Endpoint/Flags/CreateProductFlagResponse/CreateProductFlagResponse.php index 1d97ff4..117eca0 --- a/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse.php +++ b/src/Endpoint/Flags/CreateProductFlagResponse/CreateProductFlagResponse.php @@ -1,10 +1,10 @@ flags; + } + + public function setFlags(Flags $flags): static + { + $this->flags = $flags; + return $this; + } +} diff --git a/src/Endpoint/Flags/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags.php b/src/Endpoint/Flags/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags.php new file mode 100755 index 0000000..901a03d --- /dev/null +++ b/src/Endpoint/Flags/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags.php @@ -0,0 +1,31 @@ + + * @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 Flags extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Flags\CreateProductFlagResponse\CreateProductFlagResponse\Data\Flags\Item'; + } +} diff --git a/src/Endpoint/Flags/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags/Item.php b/src/Endpoint/Flags/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags/Item.php new file mode 100755 index 0000000..258caae --- /dev/null +++ b/src/Endpoint/Flags/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags/Item.php @@ -0,0 +1,81 @@ +code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getTitle(): string + { + return $this->title; + } + + public function setTitle(string $title): static + { + $this->title = $title; + return $this; + } + + public function isSystem(): bool + { + return $this->system; + } + + public function setSystem(bool $system): static + { + $this->system = $system; + return $this; + } + + public function getColor(): ?string + { + return $this->color; + } + + public function setColor(?string $color): static + { + $this->color = $color; + return $this; + } + + public function isShowInDetail(): bool + { + return $this->showInDetail; + } + + public function setShowInDetail(bool $showInDetail): static + { + $this->showInDetail = $showInDetail; + return $this; + } + + public function isShowInCategory(): bool + { + return $this->showInCategory; + } + + public function setShowInCategory(bool $showInCategory): static + { + $this->showInCategory = $showInCategory; + return $this; + } +} diff --git a/src/Endpoint/Flags/DeleteProductFlag.php b/src/Endpoint/Flags/DeleteProductFlag.php new file mode 100755 index 0000000..f7acfe6 --- /dev/null +++ b/src/Endpoint/Flags/DeleteProductFlag.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteProductFlagResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/flags/{code}'; + } +} diff --git a/src/Endpoint/Flags/DeleteProductFlagResponse/DeleteProductFlagResponse.php b/src/Endpoint/Flags/DeleteProductFlagResponse/DeleteProductFlagResponse.php new file mode 100755 index 0000000..6091bde --- /dev/null +++ b/src/Endpoint/Flags/DeleteProductFlagResponse/DeleteProductFlagResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Flags/DeleteProductFlagResponse/DeleteProductFlagResponse/Data.php b/src/Endpoint/Flags/DeleteProductFlagResponse/DeleteProductFlagResponse/Data.php new file mode 100755 index 0000000..70e4ed7 --- /dev/null +++ b/src/Endpoint/Flags/DeleteProductFlagResponse/DeleteProductFlagResponse/Data.php @@ -0,0 +1,9 @@ + false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfProductsFlagsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/flags'; + } +} diff --git a/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse.php b/src/Endpoint/Flags/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse.php old mode 100644 new mode 100755 similarity index 76% rename from src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse.php rename to src/Endpoint/Flags/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse.php index ad89aa6..19872b3 --- a/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse.php +++ b/src/Endpoint/Flags/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse.php @@ -1,10 +1,10 @@ flags; + } + + public function setFlags(Flags $flags): static + { + $this->flags = $flags; + return $this; + } +} diff --git a/src/Endpoint/Flags/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags.php b/src/Endpoint/Flags/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags.php new file mode 100755 index 0000000..c6869a1 --- /dev/null +++ b/src/Endpoint/Flags/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags.php @@ -0,0 +1,31 @@ + + * @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 Flags extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Flags\GetListOfProductsFlagsResponse\GetListOfProductsFlagsResponse\Data\Flags\Item'; + } +} diff --git a/src/Endpoint/Flags/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags/Item.php b/src/Endpoint/Flags/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags/Item.php new file mode 100755 index 0000000..491fc3b --- /dev/null +++ b/src/Endpoint/Flags/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags/Item.php @@ -0,0 +1,81 @@ +code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getTitle(): string + { + return $this->title; + } + + public function setTitle(string $title): static + { + $this->title = $title; + return $this; + } + + public function isSystem(): bool + { + return $this->system; + } + + public function setSystem(bool $system): static + { + $this->system = $system; + return $this; + } + + public function getColor(): ?string + { + return $this->color; + } + + public function setColor(?string $color): static + { + $this->color = $color; + return $this; + } + + public function isShowInDetail(): bool + { + return $this->showInDetail; + } + + public function setShowInDetail(bool $showInDetail): static + { + $this->showInDetail = $showInDetail; + return $this; + } + + public function isShowInCategory(): bool + { + return $this->showInCategory; + } + + public function setShowInCategory(bool $showInCategory): static + { + $this->showInCategory = $showInCategory; + return $this; + } +} diff --git a/src/Endpoint/Flags/UpdateProductFlag.php b/src/Endpoint/Flags/UpdateProductFlag.php new file mode 100755 index 0000000..bba1755 --- /dev/null +++ b/src/Endpoint/Flags/UpdateProductFlag.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateProductFlagRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateProductFlagResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/flags/{code}'; + } +} diff --git a/src/Endpoint/Flags/UpdateProductFlagRequest/UpdateProductFlagRequest.php b/src/Endpoint/Flags/UpdateProductFlagRequest/UpdateProductFlagRequest.php new file mode 100755 index 0000000..cf941e6 --- /dev/null +++ b/src/Endpoint/Flags/UpdateProductFlagRequest/UpdateProductFlagRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/Flags/UpdateProductFlagRequest/UpdateProductFlagRequest/Data.php b/src/Endpoint/Flags/UpdateProductFlagRequest/UpdateProductFlagRequest/Data.php new file mode 100755 index 0000000..c178e65 --- /dev/null +++ b/src/Endpoint/Flags/UpdateProductFlagRequest/UpdateProductFlagRequest/Data.php @@ -0,0 +1,34 @@ +title; + } + + public function setTitle(?string $title): static + { + $this->title = $title; + return $this; + } + + public function getColor(): ?TypeColor + { + return $this->color; + } + + public function setColor(?TypeColor $color): static + { + $this->color = $color; + return $this; + } +} diff --git a/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse.php b/src/Endpoint/Flags/UpdateProductFlagResponse/UpdateProductFlagResponse.php old mode 100644 new mode 100755 similarity index 77% rename from src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse.php rename to src/Endpoint/Flags/UpdateProductFlagResponse/UpdateProductFlagResponse.php index 426bff2..bc672c9 --- a/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse.php +++ b/src/Endpoint/Flags/UpdateProductFlagResponse/UpdateProductFlagResponse.php @@ -1,10 +1,10 @@ flags; + } + + public function setFlags(Flags $flags): static + { + $this->flags = $flags; + return $this; + } +} diff --git a/src/Endpoint/Flags/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags.php b/src/Endpoint/Flags/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags.php new file mode 100755 index 0000000..cd4f370 --- /dev/null +++ b/src/Endpoint/Flags/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags.php @@ -0,0 +1,31 @@ + + * @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 Flags extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Flags\UpdateProductFlagResponse\UpdateProductFlagResponse\Data\Flags\Item'; + } +} diff --git a/src/Endpoint/Flags/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags/Item.php b/src/Endpoint/Flags/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags/Item.php new file mode 100755 index 0000000..d7f0ded --- /dev/null +++ b/src/Endpoint/Flags/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags/Item.php @@ -0,0 +1,81 @@ +code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getTitle(): string + { + return $this->title; + } + + public function setTitle(string $title): static + { + $this->title = $title; + return $this; + } + + public function isSystem(): bool + { + return $this->system; + } + + public function setSystem(bool $system): static + { + $this->system = $system; + return $this; + } + + public function getColor(): ?string + { + return $this->color; + } + + public function setColor(?string $color): static + { + $this->color = $color; + return $this; + } + + public function isShowInDetail(): bool + { + return $this->showInDetail; + } + + public function setShowInDetail(bool $showInDetail): static + { + $this->showInDetail = $showInDetail; + return $this; + } + + public function isShowInCategory(): bool + { + return $this->showInCategory; + } + + public function setShowInCategory(bool $showInCategory): static + { + $this->showInCategory = $showInCategory; + return $this; + } +} diff --git a/src/Endpoint/Get.php b/src/Endpoint/Get.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Gifts/GetOrderGiftSettings.php b/src/Endpoint/Gifts/GetOrderGiftSettings.php new file mode 100755 index 0000000..a96fa3d --- /dev/null +++ b/src/Endpoint/Gifts/GetOrderGiftSettings.php @@ -0,0 +1,33 @@ + false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetOrderGiftSettingsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/gifts/settings'; + } +} diff --git a/src/Endpoint/Orders/GetOrderGiftSettingsResponse/GetOrderGiftSettingsResponse.php b/src/Endpoint/Gifts/GetOrderGiftSettingsResponse/GetOrderGiftSettingsResponse.php old mode 100644 new mode 100755 similarity index 77% rename from src/Endpoint/Orders/GetOrderGiftSettingsResponse/GetOrderGiftSettingsResponse.php rename to src/Endpoint/Gifts/GetOrderGiftSettingsResponse/GetOrderGiftSettingsResponse.php index 53fbb14..964898b --- a/src/Endpoint/Orders/GetOrderGiftSettingsResponse/GetOrderGiftSettingsResponse.php +++ b/src/Endpoint/Gifts/GetOrderGiftSettingsResponse/GetOrderGiftSettingsResponse.php @@ -1,10 +1,10 @@ stockDependent; + } + + public function setStockDependent(bool $stockDependent): static + { + $this->stockDependent = $stockDependent; + return $this; + } + + public function isWholesaleGiftsEnabled(): bool + { + return $this->wholesaleGiftsEnabled; + } + + public function setWholesaleGiftsEnabled(bool $wholesaleGiftsEnabled): static + { + $this->wholesaleGiftsEnabled = $wholesaleGiftsEnabled; + return $this; + } + + public function getProductGifts(): string + { + return $this->productGifts; + } + + public function setProductGifts(string $productGifts): static + { + $this->productGifts = $productGifts; + return $this; + } +} diff --git a/src/Endpoint/Gifts/UpdateOrderGiftSettings.php b/src/Endpoint/Gifts/UpdateOrderGiftSettings.php new file mode 100755 index 0000000..a5a52a7 --- /dev/null +++ b/src/Endpoint/Gifts/UpdateOrderGiftSettings.php @@ -0,0 +1,34 @@ + false]; + + public function getRequestEntityClass(): string + { + return UpdateOrderGiftSettingsRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateOrderGiftSettingsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/gifts/settings'; + } +} diff --git a/src/Endpoint/Gifts/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest.php b/src/Endpoint/Gifts/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest.php new file mode 100755 index 0000000..0693765 --- /dev/null +++ b/src/Endpoint/Gifts/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/Gifts/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest/Data.php b/src/Endpoint/Gifts/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest/Data.php new file mode 100755 index 0000000..53e132e --- /dev/null +++ b/src/Endpoint/Gifts/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest/Data.php @@ -0,0 +1,45 @@ +stockDependent; + } + + public function setStockDependent(?bool $stockDependent): static + { + $this->stockDependent = $stockDependent; + return $this; + } + + public function getWholesaleGiftsEnabled(): ?bool + { + return $this->wholesaleGiftsEnabled; + } + + public function setWholesaleGiftsEnabled(?bool $wholesaleGiftsEnabled): static + { + $this->wholesaleGiftsEnabled = $wholesaleGiftsEnabled; + return $this; + } + + public function getProductGifts(): ?string + { + return $this->productGifts; + } + + public function setProductGifts(?string $productGifts): static + { + $this->productGifts = $productGifts; + return $this; + } +} diff --git a/src/Endpoint/Orders/UpdateOrderGiftSettingsResponse/UpdateOrderGiftSettingsResponse.php b/src/Endpoint/Gifts/UpdateOrderGiftSettingsResponse/UpdateOrderGiftSettingsResponse.php old mode 100644 new mode 100755 similarity index 76% rename from src/Endpoint/Orders/UpdateOrderGiftSettingsResponse/UpdateOrderGiftSettingsResponse.php rename to src/Endpoint/Gifts/UpdateOrderGiftSettingsResponse/UpdateOrderGiftSettingsResponse.php index 2924b9f..1dade47 --- a/src/Endpoint/Orders/UpdateOrderGiftSettingsResponse/UpdateOrderGiftSettingsResponse.php +++ b/src/Endpoint/Gifts/UpdateOrderGiftSettingsResponse/UpdateOrderGiftSettingsResponse.php @@ -1,10 +1,10 @@ stockDependent; + } + + public function setStockDependent(bool $stockDependent): static + { + $this->stockDependent = $stockDependent; + return $this; + } + + public function isWholesaleGiftsEnabled(): bool + { + return $this->wholesaleGiftsEnabled; + } + + public function setWholesaleGiftsEnabled(bool $wholesaleGiftsEnabled): static + { + $this->wholesaleGiftsEnabled = $wholesaleGiftsEnabled; + return $this; + } + + public function getProductGifts(): string + { + return $this->productGifts; + } + + public function setProductGifts(string $productGifts): static + { + $this->productGifts = $productGifts; + return $this; + } +} diff --git a/src/Endpoint/Invoices/CreateInvoiceFromOrder.php b/src/Endpoint/Invoices/CreateInvoiceFromOrder.php old mode 100644 new mode 100755 index d8751d4..3104dfa --- a/src/Endpoint/Invoices/CreateInvoiceFromOrder.php +++ b/src/Endpoint/Invoices/CreateInvoiceFromOrder.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Invoices/createinvoicefromorder + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/createinvoicefromorder * * @method CreateInvoiceFromOrder setBody(null|array|CreateInvoiceFromOrderRequest $entity) * @method null|CreateInvoiceFromOrderRequest getBody() diff --git a/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest.php b/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest/Data.php b/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest/Data.php old mode 100644 new mode 100755 index 4fa6d3c..5645fcd --- a/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest/Data.php +++ b/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest/Data.php @@ -4,15 +4,15 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeConstSymbol; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Endpoint\Invoices\CreateInvoiceFromOrderRequest\CreateInvoiceFromOrderRequest\Data\ProofPaymentCodes; class Data extends Entity { protected ?string $invoiceCode; protected ?float $varSymbol; - protected ?TypeDate $dueDate; - protected ?TypeDate $taxDate; + protected ?TypeDateNullable $dueDate; + protected ?TypeDateNullable $taxDate; protected ?TypeConstSymbol $constSymbol; protected ?float $specSymbol; protected ?float $billingMethodId; @@ -41,23 +41,23 @@ public function setVarSymbol(?float $varSymbol): static return $this; } - public function getDueDate(): ?TypeDate + public function getDueDate(): ?TypeDateNullable { return $this->dueDate; } - public function setDueDate(?TypeDate $dueDate): static + public function setDueDate(?TypeDateNullable $dueDate): static { $this->dueDate = $dueDate; return $this; } - public function getTaxDate(): ?TypeDate + public function getTaxDate(): ?TypeDateNullable { return $this->taxDate; } - public function setTaxDate(?TypeDate $taxDate): static + public function setTaxDate(?TypeDateNullable $taxDate): static { $this->taxDate = $taxDate; return $this; diff --git a/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest/Data/ProofPaymentCodes.php b/src/Endpoint/Invoices/CreateInvoiceFromOrderRequest/CreateInvoiceFromOrderRequest/Data/ProofPaymentCodes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/CreateInvoiceFromOrderResponse/CreateInvoiceFromOrderResponse.php b/src/Endpoint/Invoices/CreateInvoiceFromOrderResponse/CreateInvoiceFromOrderResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/CreateInvoiceFromOrderResponse/CreateInvoiceFromOrderResponse/Data.php b/src/Endpoint/Invoices/CreateInvoiceFromOrderResponse/CreateInvoiceFromOrderResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoice.php b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoice.php new file mode 100755 index 0000000..e81def8 --- /dev/null +++ b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoice.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false, 'suppressExistenceCheck' => false]; + + public function getRequestEntityClass(): string + { + return CreateInvoiceFromProformaInvoiceRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateInvoiceFromProformaInvoiceResponse::class; + } + + public function getEndpoint(): string + { + return '/api/proforma-invoices/{code}/invoice'; + } +} diff --git a/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceRequest/CreateInvoiceFromProformaInvoiceRequest.php b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceRequest/CreateInvoiceFromProformaInvoiceRequest.php new file mode 100755 index 0000000..41f4850 --- /dev/null +++ b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceRequest/CreateInvoiceFromProformaInvoiceRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceRequest/CreateInvoiceFromProformaInvoiceRequest/Data.php b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceRequest/CreateInvoiceFromProformaInvoiceRequest/Data.php new file mode 100755 index 0000000..4280a5c --- /dev/null +++ b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceRequest/CreateInvoiceFromProformaInvoiceRequest/Data.php @@ -0,0 +1,95 @@ +invoiceCode; + } + + public function setInvoiceCode(?string $invoiceCode): static + { + $this->invoiceCode = $invoiceCode; + return $this; + } + + public function getVarSymbol(): ?float + { + return $this->varSymbol; + } + + public function setVarSymbol(?float $varSymbol): static + { + $this->varSymbol = $varSymbol; + return $this; + } + + public function getDueDate(): ?TypeDate + { + return $this->dueDate; + } + + public function setDueDate(?TypeDate $dueDate): static + { + $this->dueDate = $dueDate; + return $this; + } + + public function getTaxDate(): ?TypeDate + { + return $this->taxDate; + } + + public function setTaxDate(?TypeDate $taxDate): static + { + $this->taxDate = $taxDate; + return $this; + } + + public function getConstSymbol(): ?TypeConstSymbol + { + return $this->constSymbol; + } + + public function setConstSymbol(?TypeConstSymbol $constSymbol): static + { + $this->constSymbol = $constSymbol; + return $this; + } + + public function getSpecSymbol(): ?float + { + return $this->specSymbol; + } + + public function setSpecSymbol(?float $specSymbol): static + { + $this->specSymbol = $specSymbol; + return $this; + } + + public function getBillingMethodId(): ?float + { + return $this->billingMethodId; + } + + public function setBillingMethodId(?float $billingMethodId): static + { + $this->billingMethodId = $billingMethodId; + return $this; + } +} diff --git a/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceResponse/CreateInvoiceFromProformaInvoiceResponse.php b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceResponse/CreateInvoiceFromProformaInvoiceResponse.php new file mode 100755 index 0000000..c33f895 --- /dev/null +++ b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceResponse/CreateInvoiceFromProformaInvoiceResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceResponse/CreateInvoiceFromProformaInvoiceResponse/Data.php b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceResponse/CreateInvoiceFromProformaInvoiceResponse/Data.php new file mode 100755 index 0000000..1db5766 --- /dev/null +++ b/src/Endpoint/Invoices/CreateInvoiceFromProformaInvoiceResponse/CreateInvoiceFromProformaInvoiceResponse/Data.php @@ -0,0 +1,22 @@ +invoice; + } + + public function setInvoice(Invoice $invoice): static + { + $this->invoice = $invoice; + return $this; + } +} diff --git a/src/Endpoint/Invoices/DownloadInvoiceAsIsdoc.php b/src/Endpoint/Invoices/DownloadInvoiceAsIsdoc.php old mode 100644 new mode 100755 index ff114cc..4f3e82c --- a/src/Endpoint/Invoices/DownloadInvoiceAsIsdoc.php +++ b/src/Endpoint/Invoices/DownloadInvoiceAsIsdoc.php @@ -5,7 +5,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Invoices/downloadinvoiceasisdoc + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/downloadinvoiceasisdoc * * @method DownloadInvoiceAsIsdoc setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Invoices/DownloadInvoiceAsPdf.php b/src/Endpoint/Invoices/DownloadInvoiceAsPdf.php old mode 100644 new mode 100755 index 6c3cfa1..5998036 --- a/src/Endpoint/Invoices/DownloadInvoiceAsPdf.php +++ b/src/Endpoint/Invoices/DownloadInvoiceAsPdf.php @@ -5,7 +5,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Invoices/downloadinvoiceaspdf + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/downloadinvoiceaspdf * * @method DownloadInvoiceAsPdf setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Invoices/GetInvoiceDetail.php b/src/Endpoint/Invoices/GetInvoiceDetail.php old mode 100644 new mode 100755 index 60f92d5..e8889a7 --- a/src/Endpoint/Invoices/GetInvoiceDetail.php +++ b/src/Endpoint/Invoices/GetInvoiceDetail.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Invoices\GetInvoiceDetailResponse\GetInvoiceDetailResponse; /** - * @see https://api.docs.shoptet.com/openapi/Invoices/getinvoicedetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/getinvoicedetail * * @method GetInvoiceDetail setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Invoices/GetInvoiceDetailResponse/GetInvoiceDetailResponse.php b/src/Endpoint/Invoices/GetInvoiceDetailResponse/GetInvoiceDetailResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/GetInvoiceDetailResponse/GetInvoiceDetailResponse/Data.php b/src/Endpoint/Invoices/GetInvoiceDetailResponse/GetInvoiceDetailResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/GetLastInvoiceChanges.php b/src/Endpoint/Invoices/GetLastInvoiceChanges.php old mode 100644 new mode 100755 index bdb1702..3ca8b22 --- a/src/Endpoint/Invoices/GetLastInvoiceChanges.php +++ b/src/Endpoint/Invoices/GetLastInvoiceChanges.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PageableGet; /** - * @see https://api.docs.shoptet.com/openapi/Invoices/getlastinvoicechanges + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/getlastinvoicechanges * * @method GetLastInvoiceChanges setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Invoices/GetLastInvoiceChangesResponse/GetLastInvoiceChangesResponse.php b/src/Endpoint/Invoices/GetLastInvoiceChangesResponse/GetLastInvoiceChangesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/GetLastInvoiceChangesResponse/GetLastInvoiceChangesResponse/Data.php b/src/Endpoint/Invoices/GetLastInvoiceChangesResponse/GetLastInvoiceChangesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/GetLastInvoiceChangesResponse/GetLastInvoiceChangesResponse/Data/Changes.php b/src/Endpoint/Invoices/GetLastInvoiceChangesResponse/GetLastInvoiceChangesResponse/Data/Changes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/GetLastInvoiceChangesResponse/GetLastInvoiceChangesResponse/Data/Changes/Item.php b/src/Endpoint/Invoices/GetLastInvoiceChangesResponse/GetLastInvoiceChangesResponse/Data/Changes/Item.php old mode 100644 new mode 100755 index f6135bf..dc102ee --- a/src/Endpoint/Invoices/GetLastInvoiceChangesResponse/GetLastInvoiceChangesResponse/Data/Changes/Item.php +++ b/src/Endpoint/Invoices/GetLastInvoiceChangesResponse/GetLastInvoiceChangesResponse/Data/Changes/Item.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Invoices\GetLastInvoiceChangesResponse\GetLastInvoiceChangesResponse\Data\Changes; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Item extends Entity { protected string $code; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $changeTime; protected string $changeType; public function getCode(): string @@ -22,12 +22,12 @@ public function setCode(string $code): static return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; diff --git a/src/Endpoint/Invoices/GetListOfAllInvoices.php b/src/Endpoint/Invoices/GetListOfAllInvoices.php old mode 100644 new mode 100755 index 0c2a40f..5b47ed6 --- a/src/Endpoint/Invoices/GetListOfAllInvoices.php +++ b/src/Endpoint/Invoices/GetListOfAllInvoices.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Invoices; use Shoptet\Api\Sdk\Php\Async\SnapshotEndpoint; -use Shoptet\Api\Sdk\Php\Component\Entity\Invoice; +use Shoptet\Api\Sdk\Php\Component\Entity\InvoiceSnapshot; use Shoptet\Api\Sdk\Php\Endpoint\Get; use Shoptet\Api\Sdk\Php\Endpoint\Invoices\GetListOfAllInvoicesResponse\GetListOfAllInvoicesResponse; /** - * @see https://api.docs.shoptet.com/openapi/Invoices/getlistofallinvoices + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/getlistofallinvoices * * @method GetListOfAllInvoices setBody(null $entity) * @method null getBody() @@ -59,6 +59,6 @@ public function getEndpoint(): string public function getSnapshotResultEntityClass(): string { - return Invoice::class; + return InvoiceSnapshot::class; } } diff --git a/src/Endpoint/Invoices/GetListOfAllInvoicesResponse/GetListOfAllInvoicesResponse.php b/src/Endpoint/Invoices/GetListOfAllInvoicesResponse/GetListOfAllInvoicesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/GetListOfAllInvoicesResponse/GetListOfAllInvoicesResponse/Data.php b/src/Endpoint/Invoices/GetListOfAllInvoicesResponse/GetListOfAllInvoicesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/GetListOfInvoices.php b/src/Endpoint/Invoices/GetListOfInvoices.php old mode 100644 new mode 100755 index 54277db..914bd63 --- a/src/Endpoint/Invoices/GetListOfInvoices.php +++ b/src/Endpoint/Invoices/GetListOfInvoices.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PageableGet; /** - * @see https://api.docs.shoptet.com/openapi/Invoices/getlistofinvoices + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/getlistofinvoices * * @method GetListOfInvoices setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse.php b/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data.php b/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data/Invoices.php b/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data/Invoices.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data/Invoices/Item.php b/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data/Invoices/Item.php old mode 100644 new mode 100755 index 4234597..f7b5f10 --- a/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data/Invoices/Item.php +++ b/src/Endpoint/Invoices/GetListOfInvoicesResponse/GetListOfInvoicesResponse/Data/Invoices/Item.php @@ -4,23 +4,24 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Price; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\Entity\ProformaInvoiceCodes; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Item extends Entity { protected string $code; protected ?float $varSymbol; protected bool $isValid; - protected ?string $proformaInvoiceCode; + protected ProformaInvoiceCodes $proformaInvoiceCodes; protected ?string $orderCode; - protected TypeDateTime $creationTime; + protected TypeDateTimeNullable $creationTime; protected ?string $billCompany; protected ?string $billFullName; protected Price $price; - protected ?TypeDateTime $changeTime; - protected ?TypeDate $dueDate; - protected ?TypeDate $taxDate; + protected ?TypeDateTimeNullable $changeTime; + protected ?TypeDateNullable $dueDate; + protected ?TypeDateNullable $taxDate; public function getCode(): string { @@ -55,14 +56,14 @@ public function setIsValid(bool $isValid): static return $this; } - public function getProformaInvoiceCode(): ?string + public function getProformaInvoiceCodes(): ProformaInvoiceCodes { - return $this->proformaInvoiceCode; + return $this->proformaInvoiceCodes; } - public function setProformaInvoiceCode(?string $proformaInvoiceCode): static + public function setProformaInvoiceCodes(ProformaInvoiceCodes $proformaInvoiceCodes): static { - $this->proformaInvoiceCode = $proformaInvoiceCode; + $this->proformaInvoiceCodes = $proformaInvoiceCodes; return $this; } @@ -77,12 +78,12 @@ public function setOrderCode(?string $orderCode): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; @@ -121,34 +122,34 @@ public function setPrice(Price $price): static return $this; } - public function getChangeTime(): ?TypeDateTime + public function getChangeTime(): ?TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(?TypeDateTime $changeTime): static + public function setChangeTime(?TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; } - public function getDueDate(): ?TypeDate + public function getDueDate(): ?TypeDateNullable { return $this->dueDate; } - public function setDueDate(?TypeDate $dueDate): static + public function setDueDate(?TypeDateNullable $dueDate): static { $this->dueDate = $dueDate; return $this; } - public function getTaxDate(): ?TypeDate + public function getTaxDate(): ?TypeDateNullable { return $this->taxDate; } - public function setTaxDate(?TypeDate $taxDate): static + public function setTaxDate(?TypeDateNullable $taxDate): static { $this->taxDate = $taxDate; return $this; diff --git a/src/Endpoint/Invoices/InvoiceLinkProformaInvoices.php b/src/Endpoint/Invoices/InvoiceLinkProformaInvoices.php new file mode 100755 index 0000000..fbc1059 --- /dev/null +++ b/src/Endpoint/Invoices/InvoiceLinkProformaInvoices.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false, 'include' => false]; + + public function getRequestEntityClass(): string + { + return InvoiceLinkProformaInvoicesRequest::class; + } + + public function getResponseEntityClass(): string + { + return InvoiceLinkProformaInvoicesResponse::class; + } + + public function getEndpoint(): string + { + return '/api/invoices/{code}/link-proforma-invoice'; + } +} diff --git a/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesRequest/InvoiceLinkProformaInvoicesRequest.php b/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesRequest/InvoiceLinkProformaInvoicesRequest.php new file mode 100755 index 0000000..6491594 --- /dev/null +++ b/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesRequest/InvoiceLinkProformaInvoicesRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesRequest/InvoiceLinkProformaInvoicesRequest/Data.php b/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesRequest/InvoiceLinkProformaInvoicesRequest/Data.php new file mode 100755 index 0000000..86b73f9 --- /dev/null +++ b/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesRequest/InvoiceLinkProformaInvoicesRequest/Data.php @@ -0,0 +1,22 @@ +proformaInvoiceCodes; + } + + public function setProformaInvoiceCodes(ProformaInvoiceCodes $proformaInvoiceCodes): static + { + $this->proformaInvoiceCodes = $proformaInvoiceCodes; + return $this; + } +} diff --git a/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesRequest/InvoiceLinkProformaInvoicesRequest/Data/ProformaInvoiceCodes.php b/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesRequest/InvoiceLinkProformaInvoicesRequest/Data/ProformaInvoiceCodes.php new file mode 100755 index 0000000..a00c16d --- /dev/null +++ b/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesRequest/InvoiceLinkProformaInvoicesRequest/Data/ProformaInvoiceCodes.php @@ -0,0 +1,30 @@ + + * @property string[] $data + * @method string[] toArray() + * @method void set(int $key, string $item) + * @method null|string get(int $key) + * @method void add(string $item) + * @method null|string remove(int $key) + * @method bool removeItem(string $item, bool $strict = true) + * @method bool contains(string $item, bool $strict = true) + * @method null|string offsetGet(int $offset) + * @method void offsetSet(int $offset, string $value) + */ +class ProformaInvoiceCodes extends EntityCollection +{ + /** + * @param array $data + * @return string + */ + public function getItemType(array $data): string + { + return 'string'; + } +} diff --git a/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesResponse/InvoiceLinkProformaInvoicesResponse.php b/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesResponse/InvoiceLinkProformaInvoicesResponse.php new file mode 100755 index 0000000..3a03b5a --- /dev/null +++ b/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesResponse/InvoiceLinkProformaInvoicesResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesResponse/InvoiceLinkProformaInvoicesResponse/Data.php b/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesResponse/InvoiceLinkProformaInvoicesResponse/Data.php new file mode 100755 index 0000000..dbbd73f --- /dev/null +++ b/src/Endpoint/Invoices/InvoiceLinkProformaInvoicesResponse/InvoiceLinkProformaInvoicesResponse/Data.php @@ -0,0 +1,22 @@ +invoice; + } + + public function setInvoice(Invoice $invoice): static + { + $this->invoice = $invoice; + return $this; + } +} diff --git a/src/Endpoint/Invoices/InvoiceLinkProofPayments.php b/src/Endpoint/Invoices/InvoiceLinkProofPayments.php old mode 100644 new mode 100755 index 26fff9f..f7eed07 --- a/src/Endpoint/Invoices/InvoiceLinkProofPayments.php +++ b/src/Endpoint/Invoices/InvoiceLinkProofPayments.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Patch; /** - * @see https://api.docs.shoptet.com/openapi/Invoices/invoicelinkproofpayments + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/invoicelinkproofpayments * * @method InvoiceLinkProofPayments setBody(null|array|InvoiceLinkProofPaymentsRequest $entity) * @method null|InvoiceLinkProofPaymentsRequest getBody() diff --git a/src/Endpoint/Invoices/InvoiceLinkProofPaymentsRequest/InvoiceLinkProofPaymentsRequest.php b/src/Endpoint/Invoices/InvoiceLinkProofPaymentsRequest/InvoiceLinkProofPaymentsRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/InvoiceLinkProofPaymentsRequest/InvoiceLinkProofPaymentsRequest/Data.php b/src/Endpoint/Invoices/InvoiceLinkProofPaymentsRequest/InvoiceLinkProofPaymentsRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/InvoiceLinkProofPaymentsRequest/InvoiceLinkProofPaymentsRequest/Data/ProofPaymentCodes.php b/src/Endpoint/Invoices/InvoiceLinkProofPaymentsRequest/InvoiceLinkProofPaymentsRequest/Data/ProofPaymentCodes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/InvoiceLinkProofPaymentsResponse/InvoiceLinkProofPaymentsResponse.php b/src/Endpoint/Invoices/InvoiceLinkProofPaymentsResponse/InvoiceLinkProofPaymentsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Invoices/InvoiceLinkProofPaymentsResponse/InvoiceLinkProofPaymentsResponse/Data.php b/src/Endpoint/Invoices/InvoiceLinkProofPaymentsResponse/InvoiceLinkProofPaymentsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/JobEndpoints/GetJobDetail.php b/src/Endpoint/JobEndpoints/GetJobDetail.php deleted file mode 100644 index bee7028..0000000 --- a/src/Endpoint/JobEndpoints/GetJobDetail.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetJobDetailResponse::class; - } - - public function getEndpoint(): string - { - return '/api/system/jobs/{jobId}'; - } -} diff --git a/src/Endpoint/JobEndpoints/GetJobDetailResponse/GetJobDetailResponse/Data.php b/src/Endpoint/JobEndpoints/GetJobDetailResponse/GetJobDetailResponse/Data.php deleted file mode 100644 index c062af3..0000000 --- a/src/Endpoint/JobEndpoints/GetJobDetailResponse/GetJobDetailResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -job; - } - - public function setJob(Job $job): static - { - $this->job = $job; - return $this; - } -} diff --git a/src/Endpoint/JobEndpoints/GetJobDetailResponse/GetJobDetailResponse/Data/Job.php b/src/Endpoint/JobEndpoints/GetJobDetailResponse/GetJobDetailResponse/Data/Job.php deleted file mode 100644 index 550af0f..0000000 --- a/src/Endpoint/JobEndpoints/GetJobDetailResponse/GetJobDetailResponse/Data/Job.php +++ /dev/null @@ -1,130 +0,0 @@ -jobId; - } - - public function setJobId(string $jobId): static - { - $this->jobId = $jobId; - return $this; - } - - public function getEndpoint(): string - { - return $this->endpoint; - } - - public function setEndpoint(string $endpoint): static - { - $this->endpoint = $endpoint; - return $this; - } - - public function getCreationTime(): TypeDateTime - { - return $this->creationTime; - } - - public function setCreationTime(TypeDateTime $creationTime): static - { - $this->creationTime = $creationTime; - return $this; - } - - public function getCompletionTime(): TypeDateTime - { - return $this->completionTime; - } - - public function setCompletionTime(TypeDateTime $completionTime): static - { - $this->completionTime = $completionTime; - return $this; - } - - public function getDuration(): ?string - { - return $this->duration; - } - - public function setDuration(?string $duration): static - { - $this->duration = $duration; - return $this; - } - - public function getStatus(): string - { - return $this->status; - } - - public function setStatus(string $status): static - { - $this->status = $status; - return $this; - } - - public function getResultUrl(): ?string - { - return $this->resultUrl; - } - - public function setResultUrl(?string $resultUrl): static - { - $this->resultUrl = $resultUrl; - return $this; - } - - public function getValidUntil(): TypeDateTime - { - return $this->validUntil; - } - - public function setValidUntil(TypeDateTime $validUntil): static - { - $this->validUntil = $validUntil; - return $this; - } - - public function getLog(): ?string - { - return $this->log; - } - - public function setLog(?string $log): static - { - $this->log = $log; - return $this; - } - - public function getLanguage(): ?string - { - return $this->language; - } - - public function setLanguage(?string $language): static - { - $this->language = $language; - return $this; - } -} diff --git a/src/Endpoint/JobEndpoints/GetListOfJobsResponse/GetListOfJobsResponse/Data.php b/src/Endpoint/JobEndpoints/GetListOfJobsResponse/GetListOfJobsResponse/Data.php deleted file mode 100644 index c05fb7f..0000000 --- a/src/Endpoint/JobEndpoints/GetListOfJobsResponse/GetListOfJobsResponse/Data.php +++ /dev/null @@ -1,35 +0,0 @@ -jobs; - } - - public function setJobs(Jobs $jobs): static - { - $this->jobs = $jobs; - return $this; - } - - public function getPaginator(): Paginator - { - return $this->paginator; - } - - public function setPaginator(Paginator $paginator): static - { - $this->paginator = $paginator; - return $this; - } -} diff --git a/src/Endpoint/JobEndpoints/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs.php b/src/Endpoint/JobEndpoints/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs.php deleted file mode 100644 index 1a9e88f..0000000 --- a/src/Endpoint/JobEndpoints/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Jobs extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\JobEndpoints\GetListOfJobsResponse\GetListOfJobsResponse\Data\Jobs\Item'; - } -} diff --git a/src/Endpoint/JobEndpoints/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs/Item.php b/src/Endpoint/JobEndpoints/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs/Item.php deleted file mode 100644 index bb2dae6..0000000 --- a/src/Endpoint/JobEndpoints/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs/Item.php +++ /dev/null @@ -1,94 +0,0 @@ -jobId; - } - - public function setJobId(string $jobId): static - { - $this->jobId = $jobId; - return $this; - } - - public function getEndpoint(): string - { - return $this->endpoint; - } - - public function setEndpoint(string $endpoint): static - { - $this->endpoint = $endpoint; - return $this; - } - - public function getCreationTime(): TypeDateTime - { - return $this->creationTime; - } - - public function setCreationTime(TypeDateTime $creationTime): static - { - $this->creationTime = $creationTime; - return $this; - } - - public function getCompletionTime(): TypeDateTime - { - return $this->completionTime; - } - - public function setCompletionTime(TypeDateTime $completionTime): static - { - $this->completionTime = $completionTime; - return $this; - } - - public function getStatus(): string - { - return $this->status; - } - - public function setStatus(string $status): static - { - $this->status = $status; - return $this; - } - - public function getValidUntil(): TypeDateTime - { - return $this->validUntil; - } - - public function setValidUntil(TypeDateTime $validUntil): static - { - $this->validUntil = $validUntil; - return $this; - } - - public function getLanguage(): ?string - { - return $this->language; - } - - public function setLanguage(?string $language): static - { - $this->language = $language; - return $this; - } -} diff --git a/src/Endpoint/Jobs/GetJobDetail.php b/src/Endpoint/Jobs/GetJobDetail.php new file mode 100755 index 0000000..03f902b --- /dev/null +++ b/src/Endpoint/Jobs/GetJobDetail.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetJobDetailResponse::class; + } + + public function getEndpoint(): string + { + return '/api/system/jobs/{jobId}'; + } +} diff --git a/src/Endpoint/JobEndpoints/GetJobDetailResponse/GetJobDetailResponse.php b/src/Endpoint/Jobs/GetJobDetailResponse/GetJobDetailResponse.php old mode 100644 new mode 100755 similarity index 78% rename from src/Endpoint/JobEndpoints/GetJobDetailResponse/GetJobDetailResponse.php rename to src/Endpoint/Jobs/GetJobDetailResponse/GetJobDetailResponse.php index bbe7802..57314a9 --- a/src/Endpoint/JobEndpoints/GetJobDetailResponse/GetJobDetailResponse.php +++ b/src/Endpoint/Jobs/GetJobDetailResponse/GetJobDetailResponse.php @@ -1,10 +1,10 @@ job; + } + + public function setJob(Job $job): static + { + $this->job = $job; + return $this; + } +} diff --git a/src/Endpoint/Jobs/GetJobDetailResponse/GetJobDetailResponse/Data/Job.php b/src/Endpoint/Jobs/GetJobDetailResponse/GetJobDetailResponse/Data/Job.php new file mode 100755 index 0000000..07183d2 --- /dev/null +++ b/src/Endpoint/Jobs/GetJobDetailResponse/GetJobDetailResponse/Data/Job.php @@ -0,0 +1,130 @@ +jobId; + } + + public function setJobId(string $jobId): static + { + $this->jobId = $jobId; + return $this; + } + + public function getEndpoint(): string + { + return $this->endpoint; + } + + public function setEndpoint(string $endpoint): static + { + $this->endpoint = $endpoint; + return $this; + } + + public function getCreationTime(): TypeDateTimeNullable + { + return $this->creationTime; + } + + public function setCreationTime(TypeDateTimeNullable $creationTime): static + { + $this->creationTime = $creationTime; + return $this; + } + + public function getCompletionTime(): TypeDateTimeNullable + { + return $this->completionTime; + } + + public function setCompletionTime(TypeDateTimeNullable $completionTime): static + { + $this->completionTime = $completionTime; + return $this; + } + + public function getDuration(): ?string + { + return $this->duration; + } + + public function setDuration(?string $duration): static + { + $this->duration = $duration; + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): static + { + $this->status = $status; + return $this; + } + + public function getResultUrl(): ?string + { + return $this->resultUrl; + } + + public function setResultUrl(?string $resultUrl): static + { + $this->resultUrl = $resultUrl; + return $this; + } + + public function getValidUntil(): TypeDateTimeNullable + { + return $this->validUntil; + } + + public function setValidUntil(TypeDateTimeNullable $validUntil): static + { + $this->validUntil = $validUntil; + return $this; + } + + public function getLog(): ?string + { + return $this->log; + } + + public function setLog(?string $log): static + { + $this->log = $log; + return $this; + } + + public function getLanguage(): ?string + { + return $this->language; + } + + public function setLanguage(?string $language): static + { + $this->language = $language; + return $this; + } +} diff --git a/src/Endpoint/JobEndpoints/GetListOfJobs.php b/src/Endpoint/Jobs/GetListOfJobs.php old mode 100644 new mode 100755 similarity index 77% rename from src/Endpoint/JobEndpoints/GetListOfJobs.php rename to src/Endpoint/Jobs/GetListOfJobs.php index 9d0fdcd..e50b9e0 --- a/src/Endpoint/JobEndpoints/GetListOfJobs.php +++ b/src/Endpoint/Jobs/GetListOfJobs.php @@ -1,12 +1,12 @@ jobs; + } + + public function setJobs(Jobs $jobs): static + { + $this->jobs = $jobs; + return $this; + } + + public function getPaginator(): Paginator + { + return $this->paginator; + } + + public function setPaginator(Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/Jobs/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs.php b/src/Endpoint/Jobs/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs.php new file mode 100755 index 0000000..c59be25 --- /dev/null +++ b/src/Endpoint/Jobs/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs.php @@ -0,0 +1,31 @@ + + * @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 Jobs extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Jobs\GetListOfJobsResponse\GetListOfJobsResponse\Data\Jobs\Item'; + } +} diff --git a/src/Endpoint/Jobs/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs/Item.php b/src/Endpoint/Jobs/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs/Item.php new file mode 100755 index 0000000..555bcc1 --- /dev/null +++ b/src/Endpoint/Jobs/GetListOfJobsResponse/GetListOfJobsResponse/Data/Jobs/Item.php @@ -0,0 +1,94 @@ +jobId; + } + + public function setJobId(string $jobId): static + { + $this->jobId = $jobId; + return $this; + } + + public function getEndpoint(): string + { + return $this->endpoint; + } + + public function setEndpoint(string $endpoint): static + { + $this->endpoint = $endpoint; + return $this; + } + + public function getCreationTime(): TypeDateTimeNullable + { + return $this->creationTime; + } + + public function setCreationTime(TypeDateTimeNullable $creationTime): static + { + $this->creationTime = $creationTime; + return $this; + } + + public function getCompletionTime(): TypeDateTimeNullable + { + return $this->completionTime; + } + + public function setCompletionTime(TypeDateTimeNullable $completionTime): static + { + $this->completionTime = $completionTime; + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): static + { + $this->status = $status; + return $this; + } + + public function getValidUntil(): TypeDateTimeNullable + { + return $this->validUntil; + } + + public function setValidUntil(TypeDateTimeNullable $validUntil): static + { + $this->validUntil = $validUntil; + return $this; + } + + public function getLanguage(): ?string + { + return $this->language; + } + + public function setLanguage(?string $language): static + { + $this->language = $language; + return $this; + } +} diff --git a/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnits.php b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnits.php new file mode 100755 index 0000000..1cef6df --- /dev/null +++ b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnits.php @@ -0,0 +1,33 @@ + false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfProductsMeasureUnitsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/measure-units'; + } +} diff --git a/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse.php b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse.php new file mode 100755 index 0000000..d14e7f6 --- /dev/null +++ b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data.php b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data.php new file mode 100755 index 0000000..6627307 --- /dev/null +++ b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data.php @@ -0,0 +1,22 @@ +measureUnits; + } + + public function setMeasureUnits(MeasureUnits $measureUnits): static + { + $this->measureUnits = $measureUnits; + return $this; + } +} diff --git a/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits.php b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits.php new file mode 100755 index 0000000..16395a4 --- /dev/null +++ b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits.php @@ -0,0 +1,31 @@ + + * @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 MeasureUnits extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\MeasureUnits\GetListOfProductsMeasureUnitsResponse\GetListOfProductsMeasureUnitsResponse\Data\MeasureUnits\Item'; + } +} diff --git a/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item.php b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item.php new file mode 100755 index 0000000..05ff34c --- /dev/null +++ b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item.php @@ -0,0 +1,58 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getUnitName(): string + { + return $this->unitName; + } + + public function setUnitName(string $unitName): static + { + $this->unitName = $unitName; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getRatios(): Ratios + { + return $this->ratios; + } + + public function setRatios(Ratios $ratios): static + { + $this->ratios = $ratios; + return $this; + } +} diff --git a/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios.php b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios.php new file mode 100755 index 0000000..79c66a6 --- /dev/null +++ b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios.php @@ -0,0 +1,31 @@ + + * @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 Ratios extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\MeasureUnits\GetListOfProductsMeasureUnitsResponse\GetListOfProductsMeasureUnitsResponse\Data\MeasureUnits\Item\Ratios\Item'; + } +} diff --git a/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios/Item.php b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios/Item.php new file mode 100755 index 0000000..605bc3c --- /dev/null +++ b/src/Endpoint/MeasureUnits/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios/Item.php @@ -0,0 +1,34 @@ +unitId; + } + + public function setUnitId(int $unitId): static + { + $this->unitId = $unitId; + return $this; + } + + public function getRatio(): TypeUnitRatio + { + return $this->ratio; + } + + public function setRatio(TypeUnitRatio $ratio): static + { + $this->ratio = $ratio; + return $this; + } +} diff --git a/src/Endpoint/OAuth/CreateOauthAccessToken.php b/src/Endpoint/OAuth/CreateOauthAccessToken.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/OAuth/CreateOauthAccessToken/CreateOauthAccessTokenRequestData.php b/src/Endpoint/OAuth/CreateOauthAccessToken/CreateOauthAccessTokenRequestData.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/OAuth/CreateOauthAccessToken/CreateOauthAccessTokenResponse.php b/src/Endpoint/OAuth/CreateOauthAccessToken/CreateOauthAccessTokenResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/OAuth/CreateOauthAccessToken/CreateOauthAccessTokenResponseData.php b/src/Endpoint/OAuth/CreateOauthAccessToken/CreateOauthAccessTokenResponseData.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/OAuth/GetAccessToken.php b/src/Endpoint/OAuth/GetAccessToken.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/OAuth/GetAccessToken/PublicAccessTokenResponseData.php b/src/Endpoint/OAuth/GetAccessToken/PublicAccessTokenResponseData.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/OrderGifts/AddOrderGift.php b/src/Endpoint/OrderGifts/AddOrderGift.php new file mode 100755 index 0000000..ff4ab88 --- /dev/null +++ b/src/Endpoint/OrderGifts/AddOrderGift.php @@ -0,0 +1,34 @@ + false]; + + public function getRequestEntityClass(): string + { + return AddOrderGiftRequest::class; + } + + public function getResponseEntityClass(): string + { + return AddOrderGiftResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/gifts'; + } +} diff --git a/src/Endpoint/OrderGifts/AddOrderGiftRequest/AddOrderGiftRequest.php b/src/Endpoint/OrderGifts/AddOrderGiftRequest/AddOrderGiftRequest.php new file mode 100755 index 0000000..8360c1c --- /dev/null +++ b/src/Endpoint/OrderGifts/AddOrderGiftRequest/AddOrderGiftRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/OrderGifts/AddOrderGiftRequest/AddOrderGiftRequest/Data.php b/src/Endpoint/OrderGifts/AddOrderGiftRequest/AddOrderGiftRequest/Data.php new file mode 100755 index 0000000..c1e5823 --- /dev/null +++ b/src/Endpoint/OrderGifts/AddOrderGiftRequest/AddOrderGiftRequest/Data.php @@ -0,0 +1,59 @@ +code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getCurrencyCode(): TypeCurrencyCode + { + return $this->currencyCode; + } + + public function setCurrencyCode(TypeCurrencyCode $currencyCode): static + { + $this->currencyCode = $currencyCode; + return $this; + } + + public function getOrderPrice(): TypePriceNullable + { + return $this->orderPrice; + } + + public function setOrderPrice(TypePriceNullable $orderPrice): static + { + $this->orderPrice = $orderPrice; + return $this; + } + + public function getIncludingVat(): ?bool + { + return $this->includingVat; + } + + public function setIncludingVat(?bool $includingVat): static + { + $this->includingVat = $includingVat; + return $this; + } +} diff --git a/src/Endpoint/Orders/AddOrderGiftResponse/AddOrderGiftResponse.php b/src/Endpoint/OrderGifts/AddOrderGiftResponse/AddOrderGiftResponse.php old mode 100644 new mode 100755 similarity index 78% rename from src/Endpoint/Orders/AddOrderGiftResponse/AddOrderGiftResponse.php rename to src/Endpoint/OrderGifts/AddOrderGiftResponse/AddOrderGiftResponse.php index 9507ae0..539c460 --- a/src/Endpoint/Orders/AddOrderGiftResponse/AddOrderGiftResponse.php +++ b/src/Endpoint/OrderGifts/AddOrderGiftResponse/AddOrderGiftResponse.php @@ -1,10 +1,10 @@ items; + } + + public function setItems(Items $items): static + { + $this->items = $items; + return $this; + } +} diff --git a/src/Endpoint/OrderGifts/AddOrderGiftResponse/AddOrderGiftResponse/Data/Items.php b/src/Endpoint/OrderGifts/AddOrderGiftResponse/AddOrderGiftResponse/Data/Items.php new file mode 100755 index 0000000..dbe5e39 --- /dev/null +++ b/src/Endpoint/OrderGifts/AddOrderGiftResponse/AddOrderGiftResponse/Data/Items.php @@ -0,0 +1,31 @@ + + * @property OrderGift[] $data + * @method OrderGift[] toArray() + * @method void set(int $key, OrderGift $item) + * @method null|OrderGift get(int $key) + * @method void add(OrderGift $item) + * @method null|OrderGift remove(int $key) + * @method bool removeItem(OrderGift $item, bool $strict = true) + * @method bool contains(OrderGift $item, bool $strict = true) + * @method null|OrderGift offsetGet(int $offset) + * @method void offsetSet(int $offset, OrderGift $value) + */ +class Items extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\OrderGift'; + } +} diff --git a/src/Endpoint/OrderGifts/DeleteOrderGift.php b/src/Endpoint/OrderGifts/DeleteOrderGift.php new file mode 100755 index 0000000..d98c13a --- /dev/null +++ b/src/Endpoint/OrderGifts/DeleteOrderGift.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteOrderGiftResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/gifts/{id}'; + } +} diff --git a/src/Endpoint/OrderGifts/DeleteOrderGiftResponse/DeleteOrderGiftResponse.php b/src/Endpoint/OrderGifts/DeleteOrderGiftResponse/DeleteOrderGiftResponse.php new file mode 100755 index 0000000..f7cb622 --- /dev/null +++ b/src/Endpoint/OrderGifts/DeleteOrderGiftResponse/DeleteOrderGiftResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/OrderGifts/DeleteOrderGiftResponse/DeleteOrderGiftResponse/Data.php b/src/Endpoint/OrderGifts/DeleteOrderGiftResponse/DeleteOrderGiftResponse/Data.php new file mode 100755 index 0000000..495c1fb --- /dev/null +++ b/src/Endpoint/OrderGifts/DeleteOrderGiftResponse/DeleteOrderGiftResponse/Data.php @@ -0,0 +1,9 @@ + false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetOrderGiftsListResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/gifts'; + } +} diff --git a/src/Endpoint/Orders/GetOrderGiftsListResponse/GetOrderGiftsListResponse.php b/src/Endpoint/OrderGifts/GetOrderGiftsListResponse/GetOrderGiftsListResponse.php old mode 100644 new mode 100755 similarity index 77% rename from src/Endpoint/Orders/GetOrderGiftsListResponse/GetOrderGiftsListResponse.php rename to src/Endpoint/OrderGifts/GetOrderGiftsListResponse/GetOrderGiftsListResponse.php index 88f9c68..37cc876 --- a/src/Endpoint/Orders/GetOrderGiftsListResponse/GetOrderGiftsListResponse.php +++ b/src/Endpoint/OrderGifts/GetOrderGiftsListResponse/GetOrderGiftsListResponse.php @@ -1,10 +1,10 @@ items; + } + + public function setItems(Items $items): static + { + $this->items = $items; + return $this; + } +} diff --git a/src/Endpoint/OrderGifts/GetOrderGiftsListResponse/GetOrderGiftsListResponse/Data/Items.php b/src/Endpoint/OrderGifts/GetOrderGiftsListResponse/GetOrderGiftsListResponse/Data/Items.php new file mode 100755 index 0000000..e98c8fb --- /dev/null +++ b/src/Endpoint/OrderGifts/GetOrderGiftsListResponse/GetOrderGiftsListResponse/Data/Items.php @@ -0,0 +1,31 @@ + + * @property OrderGift[] $data + * @method OrderGift[] toArray() + * @method void set(int $key, OrderGift $item) + * @method null|OrderGift get(int $key) + * @method void add(OrderGift $item) + * @method null|OrderGift remove(int $key) + * @method bool removeItem(OrderGift $item, bool $strict = true) + * @method bool contains(OrderGift $item, bool $strict = true) + * @method null|OrderGift offsetGet(int $offset) + * @method void offsetSet(int $offset, OrderGift $value) + */ +class Items extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\OrderGift'; + } +} diff --git a/src/Endpoint/OrderHistory/CreateOrderRemark.php b/src/Endpoint/OrderHistory/CreateOrderRemark.php new file mode 100755 index 0000000..7188142 --- /dev/null +++ b/src/Endpoint/OrderHistory/CreateOrderRemark.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return CreateOrderRemarkRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateOrderRemarkResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/{code}/history'; + } +} diff --git a/src/Endpoint/OrderHistory/CreateOrderRemarkRequest/CreateOrderRemarkRequest.php b/src/Endpoint/OrderHistory/CreateOrderRemarkRequest/CreateOrderRemarkRequest.php new file mode 100755 index 0000000..e124626 --- /dev/null +++ b/src/Endpoint/OrderHistory/CreateOrderRemarkRequest/CreateOrderRemarkRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/OrderHistory/CreateOrderRemarkRequest/CreateOrderRemarkRequest/Data.php b/src/Endpoint/OrderHistory/CreateOrderRemarkRequest/CreateOrderRemarkRequest/Data.php new file mode 100755 index 0000000..078efd3 --- /dev/null +++ b/src/Endpoint/OrderHistory/CreateOrderRemarkRequest/CreateOrderRemarkRequest/Data.php @@ -0,0 +1,33 @@ +text; + } + + public function setText(string $text): static + { + $this->text = $text; + return $this; + } + + public function getType(): ?string + { + return $this->type; + } + + public function setType(?string $type): static + { + $this->type = $type; + return $this; + } +} diff --git a/src/Endpoint/OrderHistory/CreateOrderRemarkResponse/CreateOrderRemarkResponse.php b/src/Endpoint/OrderHistory/CreateOrderRemarkResponse/CreateOrderRemarkResponse.php new file mode 100755 index 0000000..58a5a6e --- /dev/null +++ b/src/Endpoint/OrderHistory/CreateOrderRemarkResponse/CreateOrderRemarkResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/OrderHistory/CreateOrderRemarkResponse/CreateOrderRemarkResponse/Data.php b/src/Endpoint/OrderHistory/CreateOrderRemarkResponse/CreateOrderRemarkResponse/Data.php new file mode 100755 index 0000000..2dcd2db --- /dev/null +++ b/src/Endpoint/OrderHistory/CreateOrderRemarkResponse/CreateOrderRemarkResponse/Data.php @@ -0,0 +1,9 @@ + true, 'id' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteOrderHistoryItemResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/{code}/history/{id}'; + } +} diff --git a/src/Endpoint/OrderHistory/DeleteOrderHistoryItemResponse/DeleteOrderHistoryItemResponse.php b/src/Endpoint/OrderHistory/DeleteOrderHistoryItemResponse/DeleteOrderHistoryItemResponse.php new file mode 100755 index 0000000..f41c58e --- /dev/null +++ b/src/Endpoint/OrderHistory/DeleteOrderHistoryItemResponse/DeleteOrderHistoryItemResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/OrderHistory/DeleteOrderHistoryItemResponse/DeleteOrderHistoryItemResponse/Data.php b/src/Endpoint/OrderHistory/DeleteOrderHistoryItemResponse/DeleteOrderHistoryItemResponse/Data.php new file mode 100755 index 0000000..cda3548 --- /dev/null +++ b/src/Endpoint/OrderHistory/DeleteOrderHistoryItemResponse/DeleteOrderHistoryItemResponse/Data.php @@ -0,0 +1,9 @@ + false, + 'orderCodes' => false, + 'creationTimeFrom' => false, + 'creationTimeTo' => false, + 'userId' => false, + ]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfAllRemarksResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/history/snapshot'; + } + + public function getSnapshotResultEntityClass(): string + { + return OrderHistorySnapshot::class; + } +} diff --git a/src/Endpoint/OrderHistory/GetListOfAllRemarksResponse/GetListOfAllRemarksResponse.php b/src/Endpoint/OrderHistory/GetListOfAllRemarksResponse/GetListOfAllRemarksResponse.php new file mode 100755 index 0000000..b0e4d15 --- /dev/null +++ b/src/Endpoint/OrderHistory/GetListOfAllRemarksResponse/GetListOfAllRemarksResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/OrderHistory/GetListOfAllRemarksResponse/GetListOfAllRemarksResponse/Data.php b/src/Endpoint/OrderHistory/GetListOfAllRemarksResponse/GetListOfAllRemarksResponse/Data.php new file mode 100755 index 0000000..363fcc4 --- /dev/null +++ b/src/Endpoint/OrderHistory/GetListOfAllRemarksResponse/GetListOfAllRemarksResponse/Data.php @@ -0,0 +1,21 @@ +jobId; + } + + public function setJobId(string $jobId): static + { + $this->jobId = $jobId; + return $this; + } +} diff --git a/src/Endpoint/OrderHistory/GetListOfRemarksForOrder.php b/src/Endpoint/OrderHistory/GetListOfRemarksForOrder.php new file mode 100755 index 0000000..81d681c --- /dev/null +++ b/src/Endpoint/OrderHistory/GetListOfRemarksForOrder.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false, 'system' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfRemarksForOrderResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/{code}/history'; + } +} diff --git a/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse.php b/src/Endpoint/OrderHistory/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse.php old mode 100644 new mode 100755 similarity index 75% rename from src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse.php rename to src/Endpoint/OrderHistory/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse.php index 2edff51..e0b6b4e --- a/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse.php +++ b/src/Endpoint/OrderHistory/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse.php @@ -1,10 +1,10 @@ orderHistory; + } + + public function setOrderHistory(OrderHistory $orderHistory): static + { + $this->orderHistory = $orderHistory; + return $this; + } +} diff --git a/src/Endpoint/OrderHistory/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory.php b/src/Endpoint/OrderHistory/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory.php new file mode 100755 index 0000000..6b563b1 --- /dev/null +++ b/src/Endpoint/OrderHistory/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory.php @@ -0,0 +1,31 @@ + + * @property EntityOrderHistory[] $data + * @method EntityOrderHistory[] toArray() + * @method void set(int $key, EntityOrderHistory $item) + * @method null|EntityOrderHistory get(int $key) + * @method void add(EntityOrderHistory $item) + * @method null|EntityOrderHistory remove(int $key) + * @method bool removeItem(EntityOrderHistory $item, bool $strict = true) + * @method bool contains(EntityOrderHistory $item, bool $strict = true) + * @method null|EntityOrderHistory offsetGet(int $offset) + * @method void offsetSet(int $offset, EntityOrderHistory $value) + */ +class OrderHistory extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\OrderHistory'; + } +} diff --git a/src/Endpoint/OrderItems/CreateOrderItem.php b/src/Endpoint/OrderItems/CreateOrderItem.php new file mode 100755 index 0000000..b382f86 --- /dev/null +++ b/src/Endpoint/OrderItems/CreateOrderItem.php @@ -0,0 +1,39 @@ + true]; + + protected array $supportedQueryParams = [ + 'language' => false, + 'suppressProductChecking' => false, + 'suppressStockMovements' => false, + ]; + + public function getRequestEntityClass(): string + { + return CreateOrderItemRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateOrderItemResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/{code}/item'; + } +} diff --git a/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest.php b/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest.php new file mode 100755 index 0000000..8970622 --- /dev/null +++ b/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest/Data.php b/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest/Data.php new file mode 100755 index 0000000..8070c7e --- /dev/null +++ b/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest/Data.php @@ -0,0 +1,313 @@ +itemType; + } + + public function setItemType(string $itemType): static + { + $this->itemType = $itemType; + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): static + { + $this->code = $code; + return $this; + } + + public function getVatRate(): ?string + { + return $this->vatRate; + } + + public function setVatRate(?string $vatRate): static + { + $this->vatRate = $vatRate; + return $this; + } + + public function getItemPriceWithVat(): ?string + { + return $this->itemPriceWithVat; + } + + public function setItemPriceWithVat(?string $itemPriceWithVat): static + { + $this->itemPriceWithVat = $itemPriceWithVat; + return $this; + } + + public function getItemPriceWithoutVat(): ?string + { + return $this->itemPriceWithoutVat; + } + + public function setItemPriceWithoutVat(?string $itemPriceWithoutVat): static + { + $this->itemPriceWithoutVat = $itemPriceWithoutVat; + return $this; + } + + public function getBuyPriceWithVat(): ?string + { + return $this->buyPriceWithVat; + } + + public function setBuyPriceWithVat(?string $buyPriceWithVat): static + { + $this->buyPriceWithVat = $buyPriceWithVat; + return $this; + } + + public function getBuyPriceWithoutVat(): ?string + { + return $this->buyPriceWithoutVat; + } + + public function setBuyPriceWithoutVat(?string $buyPriceWithoutVat): static + { + $this->buyPriceWithoutVat = $buyPriceWithoutVat; + return $this; + } + + public function getBuyPriceVatRate(): ?string + { + return $this->buyPriceVatRate; + } + + public function setBuyPriceVatRate(?string $buyPriceVatRate): static + { + $this->buyPriceVatRate = $buyPriceVatRate; + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): static + { + $this->name = $name; + return $this; + } + + public function getVariantName(): ?string + { + return $this->variantName; + } + + public function setVariantName(?string $variantName): static + { + $this->variantName = $variantName; + return $this; + } + + public function getBrand(): ?string + { + return $this->brand; + } + + public function setBrand(?string $brand): static + { + $this->brand = $brand; + return $this; + } + + public function getSupplierName(): ?string + { + return $this->supplierName; + } + + public function setSupplierName(?string $supplierName): static + { + $this->supplierName = $supplierName; + return $this; + } + + public function getProductGuid(): ?TypeGuidNullable + { + return $this->productGuid; + } + + public function setProductGuid(?TypeGuidNullable $productGuid): static + { + $this->productGuid = $productGuid; + return $this; + } + + public function getRemark(): ?string + { + return $this->remark; + } + + public function setRemark(?string $remark): static + { + $this->remark = $remark; + return $this; + } + + public function getWarrantyDescription(): ?string + { + return $this->warrantyDescription; + } + + public function setWarrantyDescription(?string $warrantyDescription): static + { + $this->warrantyDescription = $warrantyDescription; + return $this; + } + + public function getAmountCompleted(): ?TypePositiveAmountNullable + { + return $this->amountCompleted; + } + + public function setAmountCompleted(?TypePositiveAmountNullable $amountCompleted): static + { + $this->amountCompleted = $amountCompleted; + return $this; + } + + public function getAdditionalField(): ?string + { + return $this->additionalField; + } + + public function setAdditionalField(?string $additionalField): static + { + $this->additionalField = $additionalField; + return $this; + } + + public function getAmount(): ?string + { + return $this->amount; + } + + public function setAmount(?string $amount): static + { + $this->amount = $amount; + return $this; + } + + public function getAmountUnit(): ?string + { + return $this->amountUnit; + } + + public function setAmountUnit(?string $amountUnit): static + { + $this->amountUnit = $amountUnit; + return $this; + } + + public function getWeight(): ?string + { + return $this->weight; + } + + public function setWeight(?string $weight): static + { + $this->weight = $weight; + return $this; + } + + public function getPriceRatio(): ?string + { + return $this->priceRatio; + } + + public function setPriceRatio(?string $priceRatio): static + { + $this->priceRatio = $priceRatio; + return $this; + } + + public function getRecyclingFeeId(): ?int + { + return $this->recyclingFeeId; + } + + public function setRecyclingFeeId(?int $recyclingFeeId): static + { + $this->recyclingFeeId = $recyclingFeeId; + return $this; + } + + public function getStatusId(): ?float + { + return $this->statusId; + } + + public function setStatusId(?float $statusId): static + { + $this->statusId = $statusId; + return $this; + } + + public function getSurchargeParameters(): ?SurchargeParameters + { + return $this->surchargeParameters; + } + + public function setSurchargeParameters(?SurchargeParameters $surchargeParameters): static + { + $this->surchargeParameters = $surchargeParameters; + return $this; + } + + public function getConsumptionTaxId(): ?ConsumptionTaxId + { + return $this->consumptionTaxId; + } + + public function setConsumptionTaxId(?ConsumptionTaxId $consumptionTaxId): static + { + $this->consumptionTaxId = $consumptionTaxId; + return $this; + } +} diff --git a/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters.php b/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters.php new file mode 100755 index 0000000..5f7f341 --- /dev/null +++ b/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters.php @@ -0,0 +1,31 @@ + + * @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 SurchargeParameters extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\OrderItems\CreateOrderItemRequest\CreateOrderItemRequest\Data\SurchargeParameters\Item'; + } +} diff --git a/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters/Item.php b/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters/Item.php new file mode 100755 index 0000000..02bbab1 --- /dev/null +++ b/src/Endpoint/OrderItems/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters/Item.php @@ -0,0 +1,46 @@ +parameterCode; + } + + public function setParameterCode(string $parameterCode): static + { + $this->parameterCode = $parameterCode; + return $this; + } + + public function getValueIndex(): string + { + return $this->valueIndex; + } + + public function setValueIndex(string $valueIndex): static + { + $this->valueIndex = $valueIndex; + return $this; + } + + public function getPrice(): ?TypePrice + { + return $this->price; + } + + public function setPrice(?TypePrice $price): static + { + $this->price = $price; + return $this; + } +} diff --git a/src/Endpoint/Orders/CreateOrderItemResponse/CreateOrderItemResponse.php b/src/Endpoint/OrderItems/CreateOrderItemResponse/CreateOrderItemResponse.php old mode 100644 new mode 100755 similarity index 77% rename from src/Endpoint/Orders/CreateOrderItemResponse/CreateOrderItemResponse.php rename to src/Endpoint/OrderItems/CreateOrderItemResponse/CreateOrderItemResponse.php index bf044f2..52047e5 --- a/src/Endpoint/Orders/CreateOrderItemResponse/CreateOrderItemResponse.php +++ b/src/Endpoint/OrderItems/CreateOrderItemResponse/CreateOrderItemResponse.php @@ -1,10 +1,10 @@ order; + } + + public function setOrder(Order $order): static + { + $this->order = $order; + return $this; + } +} diff --git a/src/Endpoint/OrderItems/CreateOrderItemSurchargeParameters.php b/src/Endpoint/OrderItems/CreateOrderItemSurchargeParameters.php new file mode 100755 index 0000000..3d13280 --- /dev/null +++ b/src/Endpoint/OrderItems/CreateOrderItemSurchargeParameters.php @@ -0,0 +1,34 @@ + true, 'id' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return CreateOrderItemSurchargeParametersRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateOrderItemSurchargeParametersResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/{code}/item/{id}/surcharge-parameters'; + } +} diff --git a/src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest.php b/src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest.php new file mode 100755 index 0000000..3d4b4b3 --- /dev/null +++ b/src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest.php @@ -0,0 +1,23 @@ +data; + } + + public function setData(Data1|Data2 $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/Orders/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest/Data1.php b/src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest/Data1.php old mode 100644 new mode 100755 similarity index 87% rename from src/Endpoint/Orders/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest/Data1.php rename to src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest/Data1.php index a3dc59c..be6d154 --- a/src/Endpoint/Orders/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest/Data1.php +++ b/src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest/Data1.php @@ -1,6 +1,6 @@ data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersResponse/CreateOrderItemSurchargeParametersResponse/Data.php b/src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersResponse/CreateOrderItemSurchargeParametersResponse/Data.php new file mode 100755 index 0000000..cedcb4c --- /dev/null +++ b/src/Endpoint/OrderItems/CreateOrderItemSurchargeParametersResponse/CreateOrderItemSurchargeParametersResponse/Data.php @@ -0,0 +1,22 @@ +order; + } + + public function setOrder(Order $order): static + { + $this->order = $order; + return $this; + } +} diff --git a/src/Endpoint/OrderItems/DeleteOrderItem.php b/src/Endpoint/OrderItems/DeleteOrderItem.php new file mode 100755 index 0000000..7e27882 --- /dev/null +++ b/src/Endpoint/OrderItems/DeleteOrderItem.php @@ -0,0 +1,33 @@ + true, 'id' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteOrderItemResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/{code}/item/{id}'; + } +} diff --git a/src/Endpoint/OrderItems/DeleteOrderItemResponse/DeleteOrderItemResponse.php b/src/Endpoint/OrderItems/DeleteOrderItemResponse/DeleteOrderItemResponse.php new file mode 100755 index 0000000..6be0aff --- /dev/null +++ b/src/Endpoint/OrderItems/DeleteOrderItemResponse/DeleteOrderItemResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/OrderItems/DeleteOrderItemResponse/DeleteOrderItemResponse/Data.php b/src/Endpoint/OrderItems/DeleteOrderItemResponse/DeleteOrderItemResponse/Data.php new file mode 100755 index 0000000..019ebe0 --- /dev/null +++ b/src/Endpoint/OrderItems/DeleteOrderItemResponse/DeleteOrderItemResponse/Data.php @@ -0,0 +1,9 @@ + true, 'id' => true, 'relationId' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteOrderItemSurchargeParametersResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/{code}/item/{id}/surcharge-parameters/{relationId}'; + } +} diff --git a/src/Endpoint/OrderItems/DeleteOrderItemSurchargeParametersResponse/DeleteOrderItemSurchargeParametersResponse.php b/src/Endpoint/OrderItems/DeleteOrderItemSurchargeParametersResponse/DeleteOrderItemSurchargeParametersResponse.php new file mode 100755 index 0000000..7369dec --- /dev/null +++ b/src/Endpoint/OrderItems/DeleteOrderItemSurchargeParametersResponse/DeleteOrderItemSurchargeParametersResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/OrderItems/DeleteOrderItemSurchargeParametersResponse/DeleteOrderItemSurchargeParametersResponse/Data.php b/src/Endpoint/OrderItems/DeleteOrderItemSurchargeParametersResponse/DeleteOrderItemSurchargeParametersResponse/Data.php new file mode 100755 index 0000000..39d68cb --- /dev/null +++ b/src/Endpoint/OrderItems/DeleteOrderItemSurchargeParametersResponse/DeleteOrderItemSurchargeParametersResponse/Data.php @@ -0,0 +1,9 @@ + true, 'id' => true]; + protected array $supportedQueryParams = ['language' => false, 'suppressProductGuidCheck' => false]; + + public function getRequestEntityClass(): string + { + return UpdateOrderItemRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateOrderItemResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/{code}/item/{id}'; + } +} diff --git a/src/Endpoint/OrderItems/UpdateOrderItemRequest/UpdateOrderItemRequest.php b/src/Endpoint/OrderItems/UpdateOrderItemRequest/UpdateOrderItemRequest.php new file mode 100755 index 0000000..4e460d6 --- /dev/null +++ b/src/Endpoint/OrderItems/UpdateOrderItemRequest/UpdateOrderItemRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/OrderItems/UpdateOrderItemRequest/UpdateOrderItemRequest/Data.php b/src/Endpoint/OrderItems/UpdateOrderItemRequest/UpdateOrderItemRequest/Data.php new file mode 100755 index 0000000..d00ae12 --- /dev/null +++ b/src/Endpoint/OrderItems/UpdateOrderItemRequest/UpdateOrderItemRequest/Data.php @@ -0,0 +1,313 @@ +itemType; + } + + public function setItemType(string $itemType): static + { + $this->itemType = $itemType; + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): static + { + $this->code = $code; + return $this; + } + + public function getVatRate(): ?string + { + return $this->vatRate; + } + + public function setVatRate(?string $vatRate): static + { + $this->vatRate = $vatRate; + return $this; + } + + public function getItemPriceWithVat(): ?string + { + return $this->itemPriceWithVat; + } + + public function setItemPriceWithVat(?string $itemPriceWithVat): static + { + $this->itemPriceWithVat = $itemPriceWithVat; + return $this; + } + + public function getItemPriceWithoutVat(): ?string + { + return $this->itemPriceWithoutVat; + } + + public function setItemPriceWithoutVat(?string $itemPriceWithoutVat): static + { + $this->itemPriceWithoutVat = $itemPriceWithoutVat; + return $this; + } + + public function getBuyPriceWithVat(): ?string + { + return $this->buyPriceWithVat; + } + + public function setBuyPriceWithVat(?string $buyPriceWithVat): static + { + $this->buyPriceWithVat = $buyPriceWithVat; + return $this; + } + + public function getBuyPriceWithoutVat(): ?string + { + return $this->buyPriceWithoutVat; + } + + public function setBuyPriceWithoutVat(?string $buyPriceWithoutVat): static + { + $this->buyPriceWithoutVat = $buyPriceWithoutVat; + return $this; + } + + public function getBuyPriceVatRate(): ?string + { + return $this->buyPriceVatRate; + } + + public function setBuyPriceVatRate(?string $buyPriceVatRate): static + { + $this->buyPriceVatRate = $buyPriceVatRate; + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): static + { + $this->name = $name; + return $this; + } + + public function getVariantName(): ?string + { + return $this->variantName; + } + + public function setVariantName(?string $variantName): static + { + $this->variantName = $variantName; + return $this; + } + + public function getBrand(): ?string + { + return $this->brand; + } + + public function setBrand(?string $brand): static + { + $this->brand = $brand; + return $this; + } + + public function getSupplierName(): ?string + { + return $this->supplierName; + } + + public function setSupplierName(?string $supplierName): static + { + $this->supplierName = $supplierName; + return $this; + } + + public function getProductGuid(): ?TypeGuidNullable + { + return $this->productGuid; + } + + public function setProductGuid(?TypeGuidNullable $productGuid): static + { + $this->productGuid = $productGuid; + return $this; + } + + public function getRemark(): ?string + { + return $this->remark; + } + + public function setRemark(?string $remark): static + { + $this->remark = $remark; + return $this; + } + + public function getWarrantyDescription(): ?string + { + return $this->warrantyDescription; + } + + public function setWarrantyDescription(?string $warrantyDescription): static + { + $this->warrantyDescription = $warrantyDescription; + return $this; + } + + public function getAmountCompleted(): ?TypePositiveAmountNullable + { + return $this->amountCompleted; + } + + public function setAmountCompleted(?TypePositiveAmountNullable $amountCompleted): static + { + $this->amountCompleted = $amountCompleted; + return $this; + } + + public function getAdditionalField(): ?string + { + return $this->additionalField; + } + + public function setAdditionalField(?string $additionalField): static + { + $this->additionalField = $additionalField; + return $this; + } + + public function getAmount(): ?string + { + return $this->amount; + } + + public function setAmount(?string $amount): static + { + $this->amount = $amount; + return $this; + } + + public function getAmountUnit(): ?string + { + return $this->amountUnit; + } + + public function setAmountUnit(?string $amountUnit): static + { + $this->amountUnit = $amountUnit; + return $this; + } + + public function getWeight(): ?string + { + return $this->weight; + } + + public function setWeight(?string $weight): static + { + $this->weight = $weight; + return $this; + } + + public function getPriceRatio(): ?string + { + return $this->priceRatio; + } + + public function setPriceRatio(?string $priceRatio): static + { + $this->priceRatio = $priceRatio; + return $this; + } + + public function getRecyclingFeeId(): ?int + { + return $this->recyclingFeeId; + } + + public function setRecyclingFeeId(?int $recyclingFeeId): static + { + $this->recyclingFeeId = $recyclingFeeId; + return $this; + } + + public function getStatusId(): ?float + { + return $this->statusId; + } + + public function setStatusId(?float $statusId): static + { + $this->statusId = $statusId; + return $this; + } + + public function getConsumptionTaxId(): ?ConsumptionTaxId + { + return $this->consumptionTaxId; + } + + public function setConsumptionTaxId(?ConsumptionTaxId $consumptionTaxId): static + { + $this->consumptionTaxId = $consumptionTaxId; + return $this; + } + + public function getConsumptionTax(): ?ConsumptionTax + { + return $this->consumptionTax; + } + + public function setConsumptionTax(?ConsumptionTax $consumptionTax): static + { + $this->consumptionTax = $consumptionTax; + return $this; + } +} diff --git a/src/Endpoint/OrderItems/UpdateOrderItemRequest/UpdateOrderItemRequest/Data/ConsumptionTax.php b/src/Endpoint/OrderItems/UpdateOrderItemRequest/UpdateOrderItemRequest/Data/ConsumptionTax.php new file mode 100755 index 0000000..e06126d --- /dev/null +++ b/src/Endpoint/OrderItems/UpdateOrderItemRequest/UpdateOrderItemRequest/Data/ConsumptionTax.php @@ -0,0 +1,35 @@ +currency; + } + + public function setCurrency(TypeCurrencyCode $currency): static + { + $this->currency = $currency; + return $this; + } + + public function getPrice(): TypePriceNullable + { + return $this->price; + } + + public function setPrice(TypePriceNullable $price): static + { + $this->price = $price; + return $this; + } +} diff --git a/src/Endpoint/Orders/UpdateOrderItemResponse/UpdateOrderItemResponse.php b/src/Endpoint/OrderItems/UpdateOrderItemResponse/UpdateOrderItemResponse.php old mode 100644 new mode 100755 similarity index 77% rename from src/Endpoint/Orders/UpdateOrderItemResponse/UpdateOrderItemResponse.php rename to src/Endpoint/OrderItems/UpdateOrderItemResponse/UpdateOrderItemResponse.php index f2ddbbf..4968327 --- a/src/Endpoint/Orders/UpdateOrderItemResponse/UpdateOrderItemResponse.php +++ b/src/Endpoint/OrderItems/UpdateOrderItemResponse/UpdateOrderItemResponse.php @@ -1,10 +1,10 @@ orderItem; + } + + public function setOrderItem(OrderItem $orderItem): static + { + $this->orderItem = $orderItem; + return $this; + } +} diff --git a/src/Endpoint/OrderPayment/CreateOrderPayment.php b/src/Endpoint/OrderPayment/CreateOrderPayment.php new file mode 100755 index 0000000..bf9bf14 --- /dev/null +++ b/src/Endpoint/OrderPayment/CreateOrderPayment.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return CreateOrderPaymentRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateOrderPaymentResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/{code}/payment'; + } +} diff --git a/src/Endpoint/OrderPayment/CreateOrderPaymentRequest/CreateOrderPaymentRequest.php b/src/Endpoint/OrderPayment/CreateOrderPaymentRequest/CreateOrderPaymentRequest.php new file mode 100755 index 0000000..9266fb1 --- /dev/null +++ b/src/Endpoint/OrderPayment/CreateOrderPaymentRequest/CreateOrderPaymentRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/OrderPayment/CreateOrderPaymentRequest/CreateOrderPaymentRequest/Data.php b/src/Endpoint/OrderPayment/CreateOrderPaymentRequest/CreateOrderPaymentRequest/Data.php new file mode 100755 index 0000000..d971f6e --- /dev/null +++ b/src/Endpoint/OrderPayment/CreateOrderPaymentRequest/CreateOrderPaymentRequest/Data.php @@ -0,0 +1,82 @@ +guid; + } + + public function setGuid(TypeGuid $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getVatRate(): string + { + return $this->vatRate; + } + + public function setVatRate(string $vatRate): static + { + $this->vatRate = $vatRate; + return $this; + } + + public function getItemPriceWithVat(): ?string + { + return $this->itemPriceWithVat; + } + + public function setItemPriceWithVat(?string $itemPriceWithVat): static + { + $this->itemPriceWithVat = $itemPriceWithVat; + return $this; + } + + public function getItemPriceWithoutVat(): ?string + { + return $this->itemPriceWithoutVat; + } + + public function setItemPriceWithoutVat(?string $itemPriceWithoutVat): static + { + $this->itemPriceWithoutVat = $itemPriceWithoutVat; + return $this; + } + + public function getAdditionalField(): ?string + { + return $this->additionalField; + } + + public function setAdditionalField(?string $additionalField): static + { + $this->additionalField = $additionalField; + return $this; + } + + public function getStatusId(): ?float + { + return $this->statusId; + } + + public function setStatusId(?float $statusId): static + { + $this->statusId = $statusId; + return $this; + } +} diff --git a/src/Endpoint/Orders/CreateOrderPaymentResponse/CreateOrderPaymentResponse.php b/src/Endpoint/OrderPayment/CreateOrderPaymentResponse/CreateOrderPaymentResponse.php old mode 100644 new mode 100755 similarity index 76% rename from src/Endpoint/Orders/CreateOrderPaymentResponse/CreateOrderPaymentResponse.php rename to src/Endpoint/OrderPayment/CreateOrderPaymentResponse/CreateOrderPaymentResponse.php index 3e9f4ac..99c0d82 --- a/src/Endpoint/Orders/CreateOrderPaymentResponse/CreateOrderPaymentResponse.php +++ b/src/Endpoint/OrderPayment/CreateOrderPaymentResponse/CreateOrderPaymentResponse.php @@ -1,10 +1,10 @@ order; + } + + public function setOrder(Order $order): static + { + $this->order = $order; + return $this; + } +} diff --git a/src/Endpoint/OrderPayment/UpdateOrderPayment.php b/src/Endpoint/OrderPayment/UpdateOrderPayment.php new file mode 100755 index 0000000..d7d6f67 --- /dev/null +++ b/src/Endpoint/OrderPayment/UpdateOrderPayment.php @@ -0,0 +1,34 @@ + true, 'id' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateOrderPaymentRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateOrderPaymentResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/{code}/payment/{id}'; + } +} diff --git a/src/Endpoint/OrderPayment/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest.php b/src/Endpoint/OrderPayment/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest.php new file mode 100755 index 0000000..504a8c9 --- /dev/null +++ b/src/Endpoint/OrderPayment/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/OrderPayment/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest/Data.php b/src/Endpoint/OrderPayment/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest/Data.php new file mode 100755 index 0000000..79da117 --- /dev/null +++ b/src/Endpoint/OrderPayment/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest/Data.php @@ -0,0 +1,82 @@ +guid; + } + + public function setGuid(?TypeGuid $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getVatRate(): ?string + { + return $this->vatRate; + } + + public function setVatRate(?string $vatRate): static + { + $this->vatRate = $vatRate; + return $this; + } + + public function getItemPriceWithVat(): ?string + { + return $this->itemPriceWithVat; + } + + public function setItemPriceWithVat(?string $itemPriceWithVat): static + { + $this->itemPriceWithVat = $itemPriceWithVat; + return $this; + } + + public function getItemPriceWithoutVat(): ?string + { + return $this->itemPriceWithoutVat; + } + + public function setItemPriceWithoutVat(?string $itemPriceWithoutVat): static + { + $this->itemPriceWithoutVat = $itemPriceWithoutVat; + return $this; + } + + public function getAdditionalField(): ?string + { + return $this->additionalField; + } + + public function setAdditionalField(?string $additionalField): static + { + $this->additionalField = $additionalField; + return $this; + } + + public function getStatusId(): ?float + { + return $this->statusId; + } + + public function setStatusId(?float $statusId): static + { + $this->statusId = $statusId; + return $this; + } +} diff --git a/src/Endpoint/Orders/UpdateOrderPaymentResponse/UpdateOrderPaymentResponse.php b/src/Endpoint/OrderPayment/UpdateOrderPaymentResponse/UpdateOrderPaymentResponse.php old mode 100644 new mode 100755 similarity index 76% rename from src/Endpoint/Orders/UpdateOrderPaymentResponse/UpdateOrderPaymentResponse.php rename to src/Endpoint/OrderPayment/UpdateOrderPaymentResponse/UpdateOrderPaymentResponse.php index 231e504..06216bd --- a/src/Endpoint/Orders/UpdateOrderPaymentResponse/UpdateOrderPaymentResponse.php +++ b/src/Endpoint/OrderPayment/UpdateOrderPaymentResponse/UpdateOrderPaymentResponse.php @@ -1,10 +1,10 @@ orderItem; + } + + public function setOrderItem(OrderItem $orderItem): static + { + $this->orderItem = $orderItem; + return $this; + } +} diff --git a/src/Endpoint/OrderShipping/AddOrderShipping.php b/src/Endpoint/OrderShipping/AddOrderShipping.php new file mode 100755 index 0000000..7963d7f --- /dev/null +++ b/src/Endpoint/OrderShipping/AddOrderShipping.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return AddOrderShippingRequest::class; + } + + public function getResponseEntityClass(): string + { + return AddOrderShippingResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/{code}/shipping'; + } +} diff --git a/src/Endpoint/OrderShipping/AddOrderShippingRequest/AddOrderShippingRequest.php b/src/Endpoint/OrderShipping/AddOrderShippingRequest/AddOrderShippingRequest.php new file mode 100755 index 0000000..dc88dfd --- /dev/null +++ b/src/Endpoint/OrderShipping/AddOrderShippingRequest/AddOrderShippingRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/OrderShipping/AddOrderShippingRequest/AddOrderShippingRequest/Data.php b/src/Endpoint/OrderShipping/AddOrderShippingRequest/AddOrderShippingRequest/Data.php new file mode 100755 index 0000000..4adc24f --- /dev/null +++ b/src/Endpoint/OrderShipping/AddOrderShippingRequest/AddOrderShippingRequest/Data.php @@ -0,0 +1,82 @@ +guid; + } + + public function setGuid(TypeGuid $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getVatRate(): string + { + return $this->vatRate; + } + + public function setVatRate(string $vatRate): static + { + $this->vatRate = $vatRate; + return $this; + } + + public function getItemPriceWithVat(): ?string + { + return $this->itemPriceWithVat; + } + + public function setItemPriceWithVat(?string $itemPriceWithVat): static + { + $this->itemPriceWithVat = $itemPriceWithVat; + return $this; + } + + public function getItemPriceWithoutVat(): ?string + { + return $this->itemPriceWithoutVat; + } + + public function setItemPriceWithoutVat(?string $itemPriceWithoutVat): static + { + $this->itemPriceWithoutVat = $itemPriceWithoutVat; + return $this; + } + + public function getAdditionalField(): ?string + { + return $this->additionalField; + } + + public function setAdditionalField(?string $additionalField): static + { + $this->additionalField = $additionalField; + return $this; + } + + public function getStatusId(): ?float + { + return $this->statusId; + } + + public function setStatusId(?float $statusId): static + { + $this->statusId = $statusId; + return $this; + } +} diff --git a/src/Endpoint/Orders/AddOrderShippingResponse/AddOrderShippingResponse.php b/src/Endpoint/OrderShipping/AddOrderShippingResponse/AddOrderShippingResponse.php old mode 100644 new mode 100755 similarity index 77% rename from src/Endpoint/Orders/AddOrderShippingResponse/AddOrderShippingResponse.php rename to src/Endpoint/OrderShipping/AddOrderShippingResponse/AddOrderShippingResponse.php index 6ccba5f..8e35a5d --- a/src/Endpoint/Orders/AddOrderShippingResponse/AddOrderShippingResponse.php +++ b/src/Endpoint/OrderShipping/AddOrderShippingResponse/AddOrderShippingResponse.php @@ -1,10 +1,10 @@ order; + } + + public function setOrder(Order $order): static + { + $this->order = $order; + return $this; + } +} diff --git a/src/Endpoint/OrderShipping/UpdateOrderShipping.php b/src/Endpoint/OrderShipping/UpdateOrderShipping.php new file mode 100755 index 0000000..d197507 --- /dev/null +++ b/src/Endpoint/OrderShipping/UpdateOrderShipping.php @@ -0,0 +1,34 @@ + true, 'id' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateOrderShippingRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateOrderShippingResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/{code}/shipping/{id}'; + } +} diff --git a/src/Endpoint/OrderShipping/UpdateOrderShippingRequest/UpdateOrderShippingRequest.php b/src/Endpoint/OrderShipping/UpdateOrderShippingRequest/UpdateOrderShippingRequest.php new file mode 100755 index 0000000..6faf177 --- /dev/null +++ b/src/Endpoint/OrderShipping/UpdateOrderShippingRequest/UpdateOrderShippingRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/OrderShipping/UpdateOrderShippingRequest/UpdateOrderShippingRequest/Data.php b/src/Endpoint/OrderShipping/UpdateOrderShippingRequest/UpdateOrderShippingRequest/Data.php new file mode 100755 index 0000000..b1e57a5 --- /dev/null +++ b/src/Endpoint/OrderShipping/UpdateOrderShippingRequest/UpdateOrderShippingRequest/Data.php @@ -0,0 +1,82 @@ +guid; + } + + public function setGuid(?TypeGuid $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getVatRate(): ?string + { + return $this->vatRate; + } + + public function setVatRate(?string $vatRate): static + { + $this->vatRate = $vatRate; + return $this; + } + + public function getItemPriceWithVat(): ?string + { + return $this->itemPriceWithVat; + } + + public function setItemPriceWithVat(?string $itemPriceWithVat): static + { + $this->itemPriceWithVat = $itemPriceWithVat; + return $this; + } + + public function getItemPriceWithoutVat(): ?string + { + return $this->itemPriceWithoutVat; + } + + public function setItemPriceWithoutVat(?string $itemPriceWithoutVat): static + { + $this->itemPriceWithoutVat = $itemPriceWithoutVat; + return $this; + } + + public function getAdditionalField(): ?string + { + return $this->additionalField; + } + + public function setAdditionalField(?string $additionalField): static + { + $this->additionalField = $additionalField; + return $this; + } + + public function getStatusId(): ?float + { + return $this->statusId; + } + + public function setStatusId(?float $statusId): static + { + $this->statusId = $statusId; + return $this; + } +} diff --git a/src/Endpoint/Orders/UpdateOrderShippingResponse/UpdateOrderShippingResponse.php b/src/Endpoint/OrderShipping/UpdateOrderShippingResponse/UpdateOrderShippingResponse.php old mode 100644 new mode 100755 similarity index 76% rename from src/Endpoint/Orders/UpdateOrderShippingResponse/UpdateOrderShippingResponse.php rename to src/Endpoint/OrderShipping/UpdateOrderShippingResponse/UpdateOrderShippingResponse.php index 1e401d6..6f71d38 --- a/src/Endpoint/Orders/UpdateOrderShippingResponse/UpdateOrderShippingResponse.php +++ b/src/Endpoint/OrderShipping/UpdateOrderShippingResponse/UpdateOrderShippingResponse.php @@ -1,10 +1,10 @@ orderItem; + } + + public function setOrderItem(OrderItem $orderItem): static + { + $this->orderItem = $orderItem; + return $this; + } +} diff --git a/src/Endpoint/Orders/AddOrderGift.php b/src/Endpoint/Orders/AddOrderGift.php deleted file mode 100644 index 8173ae0..0000000 --- a/src/Endpoint/Orders/AddOrderGift.php +++ /dev/null @@ -1,34 +0,0 @@ - false]; - - public function getRequestEntityClass(): string - { - return AddOrderGiftRequest::class; - } - - public function getResponseEntityClass(): string - { - return AddOrderGiftResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/gifts'; - } -} diff --git a/src/Endpoint/Orders/AddOrderGiftRequest/AddOrderGiftRequest.php b/src/Endpoint/Orders/AddOrderGiftRequest/AddOrderGiftRequest.php deleted file mode 100644 index 7e53898..0000000 --- a/src/Endpoint/Orders/AddOrderGiftRequest/AddOrderGiftRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Orders/AddOrderGiftRequest/AddOrderGiftRequest/Data.php b/src/Endpoint/Orders/AddOrderGiftRequest/AddOrderGiftRequest/Data.php deleted file mode 100644 index 4829f15..0000000 --- a/src/Endpoint/Orders/AddOrderGiftRequest/AddOrderGiftRequest/Data.php +++ /dev/null @@ -1,59 +0,0 @@ -code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getCurrencyCode(): TypeCurrencyCode - { - return $this->currencyCode; - } - - public function setCurrencyCode(TypeCurrencyCode $currencyCode): static - { - $this->currencyCode = $currencyCode; - return $this; - } - - public function getOrderPrice(): TypePrice - { - return $this->orderPrice; - } - - public function setOrderPrice(TypePrice $orderPrice): static - { - $this->orderPrice = $orderPrice; - return $this; - } - - public function getIncludingVat(): ?bool - { - return $this->includingVat; - } - - public function setIncludingVat(?bool $includingVat): static - { - $this->includingVat = $includingVat; - return $this; - } -} diff --git a/src/Endpoint/Orders/AddOrderGiftResponse/AddOrderGiftResponse/Data.php b/src/Endpoint/Orders/AddOrderGiftResponse/AddOrderGiftResponse/Data.php deleted file mode 100644 index 5913ddb..0000000 --- a/src/Endpoint/Orders/AddOrderGiftResponse/AddOrderGiftResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -items; - } - - public function setItems(Items $items): static - { - $this->items = $items; - return $this; - } -} diff --git a/src/Endpoint/Orders/AddOrderGiftResponse/AddOrderGiftResponse/Data/Items.php b/src/Endpoint/Orders/AddOrderGiftResponse/AddOrderGiftResponse/Data/Items.php deleted file mode 100644 index b8283e9..0000000 --- a/src/Endpoint/Orders/AddOrderGiftResponse/AddOrderGiftResponse/Data/Items.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property OrderGift[] $data - * @method OrderGift[] toArray() - * @method void set(int $key, OrderGift $item) - * @method null|OrderGift get(int $key) - * @method void add(OrderGift $item) - * @method null|OrderGift remove(int $key) - * @method bool removeItem(OrderGift $item, bool $strict = true) - * @method bool contains(OrderGift $item, bool $strict = true) - * @method null|OrderGift offsetGet(int $offset) - * @method void offsetSet(int $offset, OrderGift $value) - */ -class Items extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\OrderGift'; - } -} diff --git a/src/Endpoint/Orders/AddOrderShipping.php b/src/Endpoint/Orders/AddOrderShipping.php deleted file mode 100644 index 31ed75d..0000000 --- a/src/Endpoint/Orders/AddOrderShipping.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return AddOrderShippingRequest::class; - } - - public function getResponseEntityClass(): string - { - return AddOrderShippingResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/{code}/shipping'; - } -} diff --git a/src/Endpoint/Orders/AddOrderShippingRequest/AddOrderShippingRequest.php b/src/Endpoint/Orders/AddOrderShippingRequest/AddOrderShippingRequest.php deleted file mode 100644 index c6efb88..0000000 --- a/src/Endpoint/Orders/AddOrderShippingRequest/AddOrderShippingRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Orders/AddOrderShippingRequest/AddOrderShippingRequest/Data.php b/src/Endpoint/Orders/AddOrderShippingRequest/AddOrderShippingRequest/Data.php deleted file mode 100644 index 97cfb87..0000000 --- a/src/Endpoint/Orders/AddOrderShippingRequest/AddOrderShippingRequest/Data.php +++ /dev/null @@ -1,82 +0,0 @@ -guid; - } - - public function setGuid(TypeGuid $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getVatRate(): string - { - return $this->vatRate; - } - - public function setVatRate(string $vatRate): static - { - $this->vatRate = $vatRate; - return $this; - } - - public function getItemPriceWithVat(): ?string - { - return $this->itemPriceWithVat; - } - - public function setItemPriceWithVat(?string $itemPriceWithVat): static - { - $this->itemPriceWithVat = $itemPriceWithVat; - return $this; - } - - public function getItemPriceWithoutVat(): ?string - { - return $this->itemPriceWithoutVat; - } - - public function setItemPriceWithoutVat(?string $itemPriceWithoutVat): static - { - $this->itemPriceWithoutVat = $itemPriceWithoutVat; - return $this; - } - - public function getAdditionalField(): ?string - { - return $this->additionalField; - } - - public function setAdditionalField(?string $additionalField): static - { - $this->additionalField = $additionalField; - return $this; - } - - public function getStatusId(): ?float - { - return $this->statusId; - } - - public function setStatusId(?float $statusId): static - { - $this->statusId = $statusId; - return $this; - } -} diff --git a/src/Endpoint/Orders/AddOrderShippingResponse/AddOrderShippingResponse/Data.php b/src/Endpoint/Orders/AddOrderShippingResponse/AddOrderShippingResponse/Data.php deleted file mode 100644 index 5396064..0000000 --- a/src/Endpoint/Orders/AddOrderShippingResponse/AddOrderShippingResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -order; - } - - public function setOrder(Order $order): static - { - $this->order = $order; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrder.php b/src/Endpoint/Orders/CreateOrder.php old mode 100644 new mode 100755 index a4a8487..9e022d7 --- a/src/Endpoint/Orders/CreateOrder.php +++ b/src/Endpoint/Orders/CreateOrder.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Orders/createorder + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/createorder * * @method CreateOrder setBody(null|array|CreateOrderRequest $entity) * @method null|CreateOrderRequest getBody() diff --git a/src/Endpoint/Orders/CreateOrderItem.php b/src/Endpoint/Orders/CreateOrderItem.php deleted file mode 100644 index 15749ae..0000000 --- a/src/Endpoint/Orders/CreateOrderItem.php +++ /dev/null @@ -1,39 +0,0 @@ - true]; - - protected array $supportedQueryParams = [ - 'language' => false, - 'suppressProductChecking' => false, - 'suppressStockMovements' => false, - ]; - - public function getRequestEntityClass(): string - { - return CreateOrderItemRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateOrderItemResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/{code}/item'; - } -} diff --git a/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest.php b/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest.php deleted file mode 100644 index d15b308..0000000 --- a/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest/Data.php b/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest/Data.php deleted file mode 100644 index afb173e..0000000 --- a/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest/Data.php +++ /dev/null @@ -1,313 +0,0 @@ -itemType; - } - - public function setItemType(string $itemType): static - { - $this->itemType = $itemType; - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(?string $code): static - { - $this->code = $code; - return $this; - } - - public function getVatRate(): ?string - { - return $this->vatRate; - } - - public function setVatRate(?string $vatRate): static - { - $this->vatRate = $vatRate; - return $this; - } - - public function getItemPriceWithVat(): ?string - { - return $this->itemPriceWithVat; - } - - public function setItemPriceWithVat(?string $itemPriceWithVat): static - { - $this->itemPriceWithVat = $itemPriceWithVat; - return $this; - } - - public function getItemPriceWithoutVat(): ?string - { - return $this->itemPriceWithoutVat; - } - - public function setItemPriceWithoutVat(?string $itemPriceWithoutVat): static - { - $this->itemPriceWithoutVat = $itemPriceWithoutVat; - return $this; - } - - public function getBuyPriceWithVat(): ?string - { - return $this->buyPriceWithVat; - } - - public function setBuyPriceWithVat(?string $buyPriceWithVat): static - { - $this->buyPriceWithVat = $buyPriceWithVat; - return $this; - } - - public function getBuyPriceWithoutVat(): ?string - { - return $this->buyPriceWithoutVat; - } - - public function setBuyPriceWithoutVat(?string $buyPriceWithoutVat): static - { - $this->buyPriceWithoutVat = $buyPriceWithoutVat; - return $this; - } - - public function getBuyPriceVatRate(): ?string - { - return $this->buyPriceVatRate; - } - - public function setBuyPriceVatRate(?string $buyPriceVatRate): static - { - $this->buyPriceVatRate = $buyPriceVatRate; - return $this; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(?string $name): static - { - $this->name = $name; - return $this; - } - - public function getVariantName(): ?string - { - return $this->variantName; - } - - public function setVariantName(?string $variantName): static - { - $this->variantName = $variantName; - return $this; - } - - public function getBrand(): ?string - { - return $this->brand; - } - - public function setBrand(?string $brand): static - { - $this->brand = $brand; - return $this; - } - - public function getSupplierName(): ?string - { - return $this->supplierName; - } - - public function setSupplierName(?string $supplierName): static - { - $this->supplierName = $supplierName; - return $this; - } - - public function getProductGuid(): ?TypeGuid - { - return $this->productGuid; - } - - public function setProductGuid(?TypeGuid $productGuid): static - { - $this->productGuid = $productGuid; - return $this; - } - - public function getRemark(): ?string - { - return $this->remark; - } - - public function setRemark(?string $remark): static - { - $this->remark = $remark; - return $this; - } - - public function getWarrantyDescription(): ?string - { - return $this->warrantyDescription; - } - - public function setWarrantyDescription(?string $warrantyDescription): static - { - $this->warrantyDescription = $warrantyDescription; - return $this; - } - - public function getAmountCompleted(): ?TypePositiveAmount - { - return $this->amountCompleted; - } - - public function setAmountCompleted(?TypePositiveAmount $amountCompleted): static - { - $this->amountCompleted = $amountCompleted; - return $this; - } - - public function getAdditionalField(): ?string - { - return $this->additionalField; - } - - public function setAdditionalField(?string $additionalField): static - { - $this->additionalField = $additionalField; - return $this; - } - - public function getAmount(): ?string - { - return $this->amount; - } - - public function setAmount(?string $amount): static - { - $this->amount = $amount; - return $this; - } - - public function getAmountUnit(): ?string - { - return $this->amountUnit; - } - - public function setAmountUnit(?string $amountUnit): static - { - $this->amountUnit = $amountUnit; - return $this; - } - - public function getWeight(): ?string - { - return $this->weight; - } - - public function setWeight(?string $weight): static - { - $this->weight = $weight; - return $this; - } - - public function getPriceRatio(): ?string - { - return $this->priceRatio; - } - - public function setPriceRatio(?string $priceRatio): static - { - $this->priceRatio = $priceRatio; - return $this; - } - - public function getRecyclingFeeId(): ?int - { - return $this->recyclingFeeId; - } - - public function setRecyclingFeeId(?int $recyclingFeeId): static - { - $this->recyclingFeeId = $recyclingFeeId; - return $this; - } - - public function getStatusId(): ?float - { - return $this->statusId; - } - - public function setStatusId(?float $statusId): static - { - $this->statusId = $statusId; - return $this; - } - - public function getSurchargeParameters(): ?SurchargeParameters - { - return $this->surchargeParameters; - } - - public function setSurchargeParameters(?SurchargeParameters $surchargeParameters): static - { - $this->surchargeParameters = $surchargeParameters; - return $this; - } - - public function getConsumptionTaxId(): ?ConsumptionTaxId - { - return $this->consumptionTaxId; - } - - public function setConsumptionTaxId(?ConsumptionTaxId $consumptionTaxId): static - { - $this->consumptionTaxId = $consumptionTaxId; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters.php b/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters.php deleted file mode 100644 index f3e0292..0000000 --- a/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 SurchargeParameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderItemRequest\CreateOrderItemRequest\Data\SurchargeParameters\Item'; - } -} diff --git a/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters/Item.php b/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters/Item.php deleted file mode 100644 index 00ad8b1..0000000 --- a/src/Endpoint/Orders/CreateOrderItemRequest/CreateOrderItemRequest/Data/SurchargeParameters/Item.php +++ /dev/null @@ -1,46 +0,0 @@ -parameterCode; - } - - public function setParameterCode(string $parameterCode): static - { - $this->parameterCode = $parameterCode; - return $this; - } - - public function getValueIndex(): string - { - return $this->valueIndex; - } - - public function setValueIndex(string $valueIndex): static - { - $this->valueIndex = $valueIndex; - return $this; - } - - public function getPrice(): ?TypePrice - { - return $this->price; - } - - public function setPrice(?TypePrice $price): static - { - $this->price = $price; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrderItemResponse/CreateOrderItemResponse/Data.php b/src/Endpoint/Orders/CreateOrderItemResponse/CreateOrderItemResponse/Data.php deleted file mode 100644 index f0a26a3..0000000 --- a/src/Endpoint/Orders/CreateOrderItemResponse/CreateOrderItemResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -order; - } - - public function setOrder(Order $order): static - { - $this->order = $order; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrderItemSurchargeParameters.php b/src/Endpoint/Orders/CreateOrderItemSurchargeParameters.php deleted file mode 100644 index 1d45a96..0000000 --- a/src/Endpoint/Orders/CreateOrderItemSurchargeParameters.php +++ /dev/null @@ -1,34 +0,0 @@ - true, 'id' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return CreateOrderItemSurchargeParametersRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateOrderItemSurchargeParametersResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/{code}/item/{id}/surcharge-parameters'; - } -} diff --git a/src/Endpoint/Orders/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest.php b/src/Endpoint/Orders/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest.php deleted file mode 100644 index 1e18981..0000000 --- a/src/Endpoint/Orders/CreateOrderItemSurchargeParametersRequest/CreateOrderItemSurchargeParametersRequest.php +++ /dev/null @@ -1,23 +0,0 @@ -data; - } - - public function setData(Data1|Data2 $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrderItemSurchargeParametersResponse/CreateOrderItemSurchargeParametersResponse.php b/src/Endpoint/Orders/CreateOrderItemSurchargeParametersResponse/CreateOrderItemSurchargeParametersResponse.php deleted file mode 100644 index 1c13b9d..0000000 --- a/src/Endpoint/Orders/CreateOrderItemSurchargeParametersResponse/CreateOrderItemSurchargeParametersResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrderItemSurchargeParametersResponse/CreateOrderItemSurchargeParametersResponse/Data.php b/src/Endpoint/Orders/CreateOrderItemSurchargeParametersResponse/CreateOrderItemSurchargeParametersResponse/Data.php deleted file mode 100644 index 380c25f..0000000 --- a/src/Endpoint/Orders/CreateOrderItemSurchargeParametersResponse/CreateOrderItemSurchargeParametersResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -order; - } - - public function setOrder(Order $order): static - { - $this->order = $order; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrderPayment.php b/src/Endpoint/Orders/CreateOrderPayment.php deleted file mode 100644 index ce5d07e..0000000 --- a/src/Endpoint/Orders/CreateOrderPayment.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return CreateOrderPaymentRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateOrderPaymentResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/{code}/payment'; - } -} diff --git a/src/Endpoint/Orders/CreateOrderPaymentRequest/CreateOrderPaymentRequest.php b/src/Endpoint/Orders/CreateOrderPaymentRequest/CreateOrderPaymentRequest.php deleted file mode 100644 index 1ed20a3..0000000 --- a/src/Endpoint/Orders/CreateOrderPaymentRequest/CreateOrderPaymentRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrderPaymentRequest/CreateOrderPaymentRequest/Data.php b/src/Endpoint/Orders/CreateOrderPaymentRequest/CreateOrderPaymentRequest/Data.php deleted file mode 100644 index aee29e8..0000000 --- a/src/Endpoint/Orders/CreateOrderPaymentRequest/CreateOrderPaymentRequest/Data.php +++ /dev/null @@ -1,82 +0,0 @@ -guid; - } - - public function setGuid(TypeGuid $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getVatRate(): string - { - return $this->vatRate; - } - - public function setVatRate(string $vatRate): static - { - $this->vatRate = $vatRate; - return $this; - } - - public function getItemPriceWithVat(): ?string - { - return $this->itemPriceWithVat; - } - - public function setItemPriceWithVat(?string $itemPriceWithVat): static - { - $this->itemPriceWithVat = $itemPriceWithVat; - return $this; - } - - public function getItemPriceWithoutVat(): ?string - { - return $this->itemPriceWithoutVat; - } - - public function setItemPriceWithoutVat(?string $itemPriceWithoutVat): static - { - $this->itemPriceWithoutVat = $itemPriceWithoutVat; - return $this; - } - - public function getAdditionalField(): ?string - { - return $this->additionalField; - } - - public function setAdditionalField(?string $additionalField): static - { - $this->additionalField = $additionalField; - return $this; - } - - public function getStatusId(): ?float - { - return $this->statusId; - } - - public function setStatusId(?float $statusId): static - { - $this->statusId = $statusId; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrderPaymentResponse/CreateOrderPaymentResponse/Data.php b/src/Endpoint/Orders/CreateOrderPaymentResponse/CreateOrderPaymentResponse/Data.php deleted file mode 100644 index d0cd05c..0000000 --- a/src/Endpoint/Orders/CreateOrderPaymentResponse/CreateOrderPaymentResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -order; - } - - public function setOrder(Order $order): static - { - $this->order = $order; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrderRemark.php b/src/Endpoint/Orders/CreateOrderRemark.php deleted file mode 100644 index 2138a00..0000000 --- a/src/Endpoint/Orders/CreateOrderRemark.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return CreateOrderRemarkRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateOrderRemarkResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/{code}/history'; - } -} diff --git a/src/Endpoint/Orders/CreateOrderRemarkRequest/CreateOrderRemarkRequest.php b/src/Endpoint/Orders/CreateOrderRemarkRequest/CreateOrderRemarkRequest.php deleted file mode 100644 index 9b76f62..0000000 --- a/src/Endpoint/Orders/CreateOrderRemarkRequest/CreateOrderRemarkRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrderRemarkRequest/CreateOrderRemarkRequest/Data.php b/src/Endpoint/Orders/CreateOrderRemarkRequest/CreateOrderRemarkRequest/Data.php deleted file mode 100644 index e9f9c9e..0000000 --- a/src/Endpoint/Orders/CreateOrderRemarkRequest/CreateOrderRemarkRequest/Data.php +++ /dev/null @@ -1,33 +0,0 @@ -text; - } - - public function setText(string $text): static - { - $this->text = $text; - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): static - { - $this->type = $type; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrderRemarkResponse/CreateOrderRemarkResponse.php b/src/Endpoint/Orders/CreateOrderRemarkResponse/CreateOrderRemarkResponse.php deleted file mode 100644 index 89f5389..0000000 --- a/src/Endpoint/Orders/CreateOrderRemarkResponse/CreateOrderRemarkResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest.php b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data.php b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data.php old mode 100644 new mode 100755 index f5810c8..0253011 --- a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data.php +++ b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data.php @@ -3,7 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderRequest\CreateOrderRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidNullable; use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderRequest\CreateOrderRequest\Data\BillingAddress; use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderRequest\CreateOrderRequest\Data\Currency; use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderRequest\CreateOrderRequest\Data\DeliveryAddress; @@ -24,13 +24,13 @@ class Data extends Entity protected ?string $phone; protected ?string $birthDate; protected ?bool $vatPayer; - protected ?TypeGuid $paymentMethodGuid; - protected ?TypeGuid $shippingGuid; + protected ?TypeGuidNullable $paymentMethodGuid; + protected ?TypeGuidNullable $shippingGuid; protected ?ShippingDetails $shippingDetails; protected ?bool $paid; protected ?float $billingMethodCode; protected ?string $clientIPAddress; - protected ?TypeGuid $customerGuid; + protected ?TypeGuidNullable $customerGuid; protected ?BillingAddress $billingAddress; protected ?bool $addressesEqual; protected ?DeliveryAddress $deliveryAddress; @@ -161,23 +161,23 @@ public function setVatPayer(?bool $vatPayer): static return $this; } - public function getPaymentMethodGuid(): ?TypeGuid + public function getPaymentMethodGuid(): ?TypeGuidNullable { return $this->paymentMethodGuid; } - public function setPaymentMethodGuid(?TypeGuid $paymentMethodGuid): static + public function setPaymentMethodGuid(?TypeGuidNullable $paymentMethodGuid): static { $this->paymentMethodGuid = $paymentMethodGuid; return $this; } - public function getShippingGuid(): ?TypeGuid + public function getShippingGuid(): ?TypeGuidNullable { return $this->shippingGuid; } - public function setShippingGuid(?TypeGuid $shippingGuid): static + public function setShippingGuid(?TypeGuidNullable $shippingGuid): static { $this->shippingGuid = $shippingGuid; return $this; @@ -227,12 +227,12 @@ public function setClientIPAddress(?string $clientIPAddress): static return $this; } - public function getCustomerGuid(): ?TypeGuid + public function getCustomerGuid(): ?TypeGuidNullable { return $this->customerGuid; } - public function setCustomerGuid(?TypeGuid $customerGuid): static + public function setCustomerGuid(?TypeGuidNullable $customerGuid): static { $this->customerGuid = $customerGuid; return $this; diff --git a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/BillingAddress.php b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/BillingAddress.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Currency.php b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Currency.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/DeliveryAddress.php b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/DeliveryAddress.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Items.php b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Items.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Items/Item.php b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Items/Item.php old mode 100644 new mode 100755 index 923d64f..31affdc --- a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Items/Item.php +++ b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Items/Item.php @@ -5,7 +5,7 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\ConsumptionTaxId; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmountNullable; use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderRequest\CreateOrderRequest\Data\Items\Item\SurchargeParameters; class Item extends Entity @@ -19,7 +19,7 @@ class Item extends Entity protected ?string $code; protected ?string $remark; protected ?string $warrantyDescription; - protected ?TypePositiveAmount $amountCompleted; + protected ?TypePositiveAmountNullable $amountCompleted; protected ?string $additionalField; protected ?string $amount; protected ?string $amountUnit; @@ -135,12 +135,12 @@ public function setWarrantyDescription(?string $warrantyDescription): static return $this; } - public function getAmountCompleted(): ?TypePositiveAmount + public function getAmountCompleted(): ?TypePositiveAmountNullable { return $this->amountCompleted; } - public function setAmountCompleted(?TypePositiveAmount $amountCompleted): static + public function setAmountCompleted(?TypePositiveAmountNullable $amountCompleted): static { $this->amountCompleted = $amountCompleted; return $this; diff --git a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Items/Item/SurchargeParameters.php b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Items/Item/SurchargeParameters.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Items/Item/SurchargeParameters/Item.php b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Items/Item/SurchargeParameters/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Notes.php b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Notes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Notes/AdditionalFields.php b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Notes/AdditionalFields.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Notes/AdditionalFields/Item.php b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/Notes/AdditionalFields/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/ShippingDetails.php b/src/Endpoint/Orders/CreateOrderRequest/CreateOrderRequest/Data/ShippingDetails.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/CreateOrderResponse/CreateOrderResponse.php b/src/Endpoint/Orders/CreateOrderResponse/CreateOrderResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/CreateOrderResponse/CreateOrderResponse/Data.php b/src/Endpoint/Orders/CreateOrderResponse/CreateOrderResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/DeleteOrder.php b/src/Endpoint/Orders/DeleteOrder.php old mode 100644 new mode 100755 index 2ad412a..fe3fbac --- a/src/Endpoint/Orders/DeleteOrder.php +++ b/src/Endpoint/Orders/DeleteOrder.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Orders\DeleteOrderResponse\DeleteOrderResponse; /** - * @see https://api.docs.shoptet.com/openapi/Orders/deleteorder + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/deleteorder * * @method DeleteOrder setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Orders/DeleteOrderGift.php b/src/Endpoint/Orders/DeleteOrderGift.php deleted file mode 100644 index 238badb..0000000 --- a/src/Endpoint/Orders/DeleteOrderGift.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteOrderGiftResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/gifts/{id}'; - } -} diff --git a/src/Endpoint/Orders/DeleteOrderGiftResponse/DeleteOrderGiftResponse.php b/src/Endpoint/Orders/DeleteOrderGiftResponse/DeleteOrderGiftResponse.php deleted file mode 100644 index c759d07..0000000 --- a/src/Endpoint/Orders/DeleteOrderGiftResponse/DeleteOrderGiftResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Orders/DeleteOrderHistoryItem.php b/src/Endpoint/Orders/DeleteOrderHistoryItem.php deleted file mode 100644 index 6f81898..0000000 --- a/src/Endpoint/Orders/DeleteOrderHistoryItem.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'id' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteOrderHistoryItemResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/{code}/history/{id}'; - } -} diff --git a/src/Endpoint/Orders/DeleteOrderHistoryItemResponse/DeleteOrderHistoryItemResponse.php b/src/Endpoint/Orders/DeleteOrderHistoryItemResponse/DeleteOrderHistoryItemResponse.php deleted file mode 100644 index 13e4c0c..0000000 --- a/src/Endpoint/Orders/DeleteOrderHistoryItemResponse/DeleteOrderHistoryItemResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Orders/DeleteOrderItem.php b/src/Endpoint/Orders/DeleteOrderItem.php deleted file mode 100644 index cc7c10b..0000000 --- a/src/Endpoint/Orders/DeleteOrderItem.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'id' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteOrderItemResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/{code}/item/{id}'; - } -} diff --git a/src/Endpoint/Orders/DeleteOrderItemResponse/DeleteOrderItemResponse.php b/src/Endpoint/Orders/DeleteOrderItemResponse/DeleteOrderItemResponse.php deleted file mode 100644 index 8c254b5..0000000 --- a/src/Endpoint/Orders/DeleteOrderItemResponse/DeleteOrderItemResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Orders/DeleteOrderItemSurchargeParameters.php b/src/Endpoint/Orders/DeleteOrderItemSurchargeParameters.php deleted file mode 100644 index aa2b91c..0000000 --- a/src/Endpoint/Orders/DeleteOrderItemSurchargeParameters.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'id' => true, 'relationId' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteOrderItemSurchargeParametersResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/{code}/item/{id}/surcharge-parameters/{relationId}'; - } -} diff --git a/src/Endpoint/Orders/DeleteOrderItemSurchargeParametersResponse/DeleteOrderItemSurchargeParametersResponse.php b/src/Endpoint/Orders/DeleteOrderItemSurchargeParametersResponse/DeleteOrderItemSurchargeParametersResponse.php deleted file mode 100644 index 6e4ad75..0000000 --- a/src/Endpoint/Orders/DeleteOrderItemSurchargeParametersResponse/DeleteOrderItemSurchargeParametersResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Orders/DeleteOrderResponse/DeleteOrderResponse.php b/src/Endpoint/Orders/DeleteOrderResponse/DeleteOrderResponse.php old mode 100644 new mode 100755 index 4a81018..c1f3545 --- a/src/Endpoint/Orders/DeleteOrderResponse/DeleteOrderResponse.php +++ b/src/Endpoint/Orders/DeleteOrderResponse/DeleteOrderResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\Orders\DeleteOrderResponse\DeleteOrderResponse\Data; class DeleteOrderResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Orders/DeleteOrderResponse/DeleteOrderResponse/Data.php b/src/Endpoint/Orders/DeleteOrderResponse/DeleteOrderResponse/Data.php new file mode 100755 index 0000000..fbb1e6f --- /dev/null +++ b/src/Endpoint/Orders/DeleteOrderResponse/DeleteOrderResponse/Data.php @@ -0,0 +1,9 @@ +changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; diff --git a/src/Endpoint/Orders/GetListOfAllOrders.php b/src/Endpoint/Orders/GetListOfAllOrders.php old mode 100644 new mode 100755 index 19e14bc..49bccec --- a/src/Endpoint/Orders/GetListOfAllOrders.php +++ b/src/Endpoint/Orders/GetListOfAllOrders.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Orders; use Shoptet\Api\Sdk\Php\Async\SnapshotEndpoint; -use Shoptet\Api\Sdk\Php\Component\Entity\Order; +use Shoptet\Api\Sdk\Php\Component\Entity\OrderSnapshot; use Shoptet\Api\Sdk\Php\Endpoint\Get; use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfAllOrdersResponse\GetListOfAllOrdersResponse; /** - * @see https://api.docs.shoptet.com/openapi/Orders/getlistofallorders + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/getlistofallorders * * @method GetListOfAllOrders setBody(null $entity) * @method null getBody() @@ -20,6 +20,7 @@ class GetListOfAllOrders extends Get implements SnapshotEndpoint protected array $supportedQueryParams = [ 'language' => false, 'include' => false, + 'orderCodes' => false, 'statusId' => false, 'shippingGuid' => false, 'shippingCompanyCode' => false, @@ -54,6 +55,6 @@ public function getEndpoint(): string public function getSnapshotResultEntityClass(): string { - return Order::class; + return OrderSnapshot::class; } } diff --git a/src/Endpoint/Orders/GetListOfAllOrdersResponse/GetListOfAllOrdersResponse.php b/src/Endpoint/Orders/GetListOfAllOrdersResponse/GetListOfAllOrdersResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfAllOrdersResponse/GetListOfAllOrdersResponse/Data.php b/src/Endpoint/Orders/GetListOfAllOrdersResponse/GetListOfAllOrdersResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrderSources.php b/src/Endpoint/Orders/GetListOfOrderSources.php old mode 100644 new mode 100755 index 57ffe73..c7a26cd --- a/src/Endpoint/Orders/GetListOfOrderSources.php +++ b/src/Endpoint/Orders/GetListOfOrderSources.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfOrderSourcesResponse\GetListOfOrderSourcesResponse; /** - * @see https://api.docs.shoptet.com/openapi/Orders/getlistofordersources + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/getlistofordersources * * @method GetListOfOrderSources setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Orders/GetListOfOrderSourcesResponse/GetListOfOrderSourcesResponse.php b/src/Endpoint/Orders/GetListOfOrderSourcesResponse/GetListOfOrderSourcesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrderSourcesResponse/GetListOfOrderSourcesResponse/Data.php b/src/Endpoint/Orders/GetListOfOrderSourcesResponse/GetListOfOrderSourcesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrderSourcesResponse/GetListOfOrderSourcesResponse/Data/Sources.php b/src/Endpoint/Orders/GetListOfOrderSourcesResponse/GetListOfOrderSourcesResponse/Data/Sources.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrderSourcesResponse/GetListOfOrderSourcesResponse/Data/Sources/Item.php b/src/Endpoint/Orders/GetListOfOrderSourcesResponse/GetListOfOrderSourcesResponse/Data/Sources/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrderStatuses.php b/src/Endpoint/Orders/GetListOfOrderStatuses.php old mode 100644 new mode 100755 index a0a06fd..e4de22b --- a/src/Endpoint/Orders/GetListOfOrderStatuses.php +++ b/src/Endpoint/Orders/GetListOfOrderStatuses.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfOrderStatusesResponse\GetListOfOrderStatusesResponse; /** - * @see https://api.docs.shoptet.com/openapi/Orders/getlistoforderstatuses + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/getlistoforderstatuses * * @method GetListOfOrderStatuses setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Orders/GetListOfOrderStatusesResponse/GetListOfOrderStatusesResponse.php b/src/Endpoint/Orders/GetListOfOrderStatusesResponse/GetListOfOrderStatusesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrderStatusesResponse/GetListOfOrderStatusesResponse/Data.php b/src/Endpoint/Orders/GetListOfOrderStatusesResponse/GetListOfOrderStatusesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrderStatusesResponse/GetListOfOrderStatusesResponse/Data/Statuses.php b/src/Endpoint/Orders/GetListOfOrderStatusesResponse/GetListOfOrderStatusesResponse/Data/Statuses.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrderStatusesResponse/GetListOfOrderStatusesResponse/Data/Statuses/Item.php b/src/Endpoint/Orders/GetListOfOrderStatusesResponse/GetListOfOrderStatusesResponse/Data/Statuses/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrderStatusesResponse/GetListOfOrderStatusesResponse/Data/Statuses/Item/Documents.php b/src/Endpoint/Orders/GetListOfOrderStatusesResponse/GetListOfOrderStatusesResponse/Data/Statuses/Item/Documents.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrders.php b/src/Endpoint/Orders/GetListOfOrders.php old mode 100644 new mode 100755 index 2e97d17..91710a5 --- a/src/Endpoint/Orders/GetListOfOrders.php +++ b/src/Endpoint/Orders/GetListOfOrders.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PageableGet; /** - * @see https://api.docs.shoptet.com/openapi/Orders/getlistoforders + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/getlistoforders * * @method GetListOfOrders setBody(null $entity) * @method null getBody() @@ -34,6 +34,7 @@ class GetListOfOrders extends PageableGet 'changeTimeFrom' => false, 'changeTimeTo' => false, 'sourceId' => false, + 'orderCodes' => false, ]; public function getRequestEntityClass(): null diff --git a/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse.php b/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data.php b/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data/Orders.php b/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data/Orders.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data/Orders/Item.php b/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data/Orders/Item.php old mode 100644 new mode 100755 index 57ef451..e28712c --- a/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data/Orders/Item.php +++ b/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data/Orders/Item.php @@ -3,10 +3,11 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfOrdersResponse\GetListOfOrdersResponse\Data\Orders; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; +use Shoptet\Api\Sdk\Php\Component\Entity\OrderPreAuthorization; use Shoptet\Api\Sdk\Php\Component\Entity\PaymentMethod; use Shoptet\Api\Sdk\Php\Component\Entity\Price; use Shoptet\Api\Sdk\Php\Component\Entity\Shipping; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfOrdersResponse\GetListOfOrdersResponse\Data\Orders\Item\Source; use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfOrdersResponse\GetListOfOrdersResponse\Data\Orders\Item\Status; @@ -15,8 +16,8 @@ class Item extends Entity { protected string $code; protected string $guid; - protected TypeDateTime $creationTime; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $creationTime; + protected TypeDateTimeNullable $changeTime; protected ?string $fullName; protected ?string $company; protected ?string $email; @@ -27,10 +28,11 @@ class Item extends Entity protected string $adminUrl; protected ?Status $status; protected ?Source $source; - protected ?Shipping $shipping; + protected Shipping $shipping; protected ?PaymentMethod $paymentMethod; protected Price $price; protected ?bool $paid; + protected ?OrderPreAuthorization $preAuthorization; public function getCode(): string { @@ -54,23 +56,23 @@ public function setGuid(string $guid): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; @@ -186,12 +188,12 @@ public function setSource(?Source $source): static return $this; } - public function getShipping(): ?Shipping + public function getShipping(): Shipping { return $this->shipping; } - public function setShipping(?Shipping $shipping): static + public function setShipping(Shipping $shipping): static { $this->shipping = $shipping; return $this; @@ -229,4 +231,15 @@ public function setPaid(?bool $paid): static $this->paid = $paid; return $this; } + + public function getPreAuthorization(): ?OrderPreAuthorization + { + return $this->preAuthorization; + } + + public function setPreAuthorization(?OrderPreAuthorization $preAuthorization): static + { + $this->preAuthorization = $preAuthorization; + return $this; + } } diff --git a/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data/Orders/Item/Source.php b/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data/Orders/Item/Source.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data/Orders/Item/Status.php b/src/Endpoint/Orders/GetListOfOrdersResponse/GetListOfOrdersResponse/Data/Orders/Item/Status.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetListOfRemarksForOrder.php b/src/Endpoint/Orders/GetListOfRemarksForOrder.php deleted file mode 100644 index 6ac88d8..0000000 --- a/src/Endpoint/Orders/GetListOfRemarksForOrder.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false, 'system' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfRemarksForOrderResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/{code}/history'; - } -} diff --git a/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data.php b/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data.php deleted file mode 100644 index 1c9830e..0000000 --- a/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -orderHistory; - } - - public function setOrderHistory(OrderHistory $orderHistory): static - { - $this->orderHistory = $orderHistory; - return $this; - } -} diff --git a/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory.php b/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory.php deleted file mode 100644 index 6956594..0000000 --- a/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 OrderHistory extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfRemarksForOrderResponse\GetListOfRemarksForOrderResponse\Data\OrderHistory\Item'; - } -} diff --git a/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory/Item.php b/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory/Item.php deleted file mode 100644 index 601ac7d..0000000 --- a/src/Endpoint/Orders/GetListOfRemarksForOrderResponse/GetListOfRemarksForOrderResponse/Data/OrderHistory/Item.php +++ /dev/null @@ -1,83 +0,0 @@ -id; - } - - public function setId(float $id): static - { - $this->id = $id; - return $this; - } - - public function getCreationTime(): TypeDateTime - { - return $this->creationTime; - } - - public function setCreationTime(TypeDateTime $creationTime): static - { - $this->creationTime = $creationTime; - return $this; - } - - public function getText(): string - { - return $this->text; - } - - public function setText(string $text): static - { - $this->text = $text; - return $this; - } - - public function getUser(): ?User - { - return $this->user; - } - - public function setUser(?User $user): static - { - $this->user = $user; - return $this; - } - - public function isSystem(): bool - { - return $this->system; - } - - public function setSystem(bool $system): static - { - $this->system = $system; - return $this; - } - - public function getType(): string - { - return $this->type; - } - - public function setType(string $type): static - { - $this->type = $type; - return $this; - } -} diff --git a/src/Endpoint/Orders/GetOrderClaims.php b/src/Endpoint/Orders/GetOrderClaims.php new file mode 100755 index 0000000..ce603ee --- /dev/null +++ b/src/Endpoint/Orders/GetOrderClaims.php @@ -0,0 +1,41 @@ + false, + 'page' => false, + 'itemsPerPage' => false, + 'includeClosedAndCancelledOrders' => false, + 'productCode' => false, + 'orderCode' => false, + ]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetOrderClaimsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/orders/claims'; + } +} diff --git a/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse.php b/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse.php new file mode 100755 index 0000000..ecc6112 --- /dev/null +++ b/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse/Data.php b/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse/Data.php new file mode 100755 index 0000000..9413d33 --- /dev/null +++ b/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse/Data.php @@ -0,0 +1,35 @@ +orders; + } + + public function setOrders(Orders $orders): static + { + $this->orders = $orders; + return $this; + } + + public function getPaginator(): Paginator + { + return $this->paginator; + } + + public function setPaginator(Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse/Data/Orders.php b/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse/Data/Orders.php new file mode 100755 index 0000000..af30108 --- /dev/null +++ b/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse/Data/Orders.php @@ -0,0 +1,31 @@ + + * @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 Orders extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Orders\GetOrderClaimsResponse\GetOrderClaimsResponse\Data\Orders\Item'; + } +} diff --git a/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse/Data/Orders/Item.php b/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse/Data/Orders/Item.php new file mode 100755 index 0000000..e90eb8f --- /dev/null +++ b/src/Endpoint/Orders/GetOrderClaimsResponse/GetOrderClaimsResponse/Data/Orders/Item.php @@ -0,0 +1,71 @@ +orderCode; + } + + public function setOrderCode(string $orderCode): static + { + $this->orderCode = $orderCode; + return $this; + } + + public function getStatusId(): float + { + return $this->statusId; + } + + public function setStatusId(float $statusId): static + { + $this->statusId = $statusId; + return $this; + } + + public function getProductCode(): string + { + return $this->productCode; + } + + public function setProductCode(string $productCode): static + { + $this->productCode = $productCode; + return $this; + } + + public function getAmount(): TypeAmountNullable + { + return $this->amount; + } + + public function setAmount(TypeAmountNullable $amount): static + { + $this->amount = $amount; + return $this; + } + + public function getAmountCompleted(): TypePositiveAmountNullable + { + return $this->amountCompleted; + } + + public function setAmountCompleted(TypePositiveAmountNullable $amountCompleted): static + { + $this->amountCompleted = $amountCompleted; + return $this; + } +} diff --git a/src/Endpoint/Orders/GetOrderDetail.php b/src/Endpoint/Orders/GetOrderDetail.php old mode 100644 new mode 100755 index 133e257..c43c3bb --- a/src/Endpoint/Orders/GetOrderDetail.php +++ b/src/Endpoint/Orders/GetOrderDetail.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetOrderDetailResponse\GetOrderDetailResponse; /** - * @see https://api.docs.shoptet.com/openapi/Orders/getorderdetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/getorderdetail * * @method GetOrderDetail setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Orders/GetOrderDetailResponse/GetOrderDetailResponse.php b/src/Endpoint/Orders/GetOrderDetailResponse/GetOrderDetailResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetOrderDetailResponse/GetOrderDetailResponse/Data.php b/src/Endpoint/Orders/GetOrderDetailResponse/GetOrderDetailResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/GetOrderGiftSettings.php b/src/Endpoint/Orders/GetOrderGiftSettings.php deleted file mode 100644 index ba9b1a5..0000000 --- a/src/Endpoint/Orders/GetOrderGiftSettings.php +++ /dev/null @@ -1,33 +0,0 @@ - false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetOrderGiftSettingsResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/gifts/settings'; - } -} diff --git a/src/Endpoint/Orders/GetOrderGiftSettingsResponse/GetOrderGiftSettingsResponse/Data.php b/src/Endpoint/Orders/GetOrderGiftSettingsResponse/GetOrderGiftSettingsResponse/Data.php deleted file mode 100644 index 780c3f3..0000000 --- a/src/Endpoint/Orders/GetOrderGiftSettingsResponse/GetOrderGiftSettingsResponse/Data.php +++ /dev/null @@ -1,45 +0,0 @@ -stockDependent; - } - - public function setStockDependent(bool $stockDependent): static - { - $this->stockDependent = $stockDependent; - return $this; - } - - public function isWholesaleGiftsEnabled(): bool - { - return $this->wholesaleGiftsEnabled; - } - - public function setWholesaleGiftsEnabled(bool $wholesaleGiftsEnabled): static - { - $this->wholesaleGiftsEnabled = $wholesaleGiftsEnabled; - return $this; - } - - public function getProductGifts(): string - { - return $this->productGifts; - } - - public function setProductGifts(string $productGifts): static - { - $this->productGifts = $productGifts; - return $this; - } -} diff --git a/src/Endpoint/Orders/GetOrderGiftsList.php b/src/Endpoint/Orders/GetOrderGiftsList.php deleted file mode 100644 index c69a1fc..0000000 --- a/src/Endpoint/Orders/GetOrderGiftsList.php +++ /dev/null @@ -1,33 +0,0 @@ - false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetOrderGiftsListResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/gifts'; - } -} diff --git a/src/Endpoint/Orders/GetOrderGiftsListResponse/GetOrderGiftsListResponse/Data.php b/src/Endpoint/Orders/GetOrderGiftsListResponse/GetOrderGiftsListResponse/Data.php deleted file mode 100644 index 6a016e9..0000000 --- a/src/Endpoint/Orders/GetOrderGiftsListResponse/GetOrderGiftsListResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -items; - } - - public function setItems(Items $items): static - { - $this->items = $items; - return $this; - } -} diff --git a/src/Endpoint/Orders/GetOrderGiftsListResponse/GetOrderGiftsListResponse/Data/Items.php b/src/Endpoint/Orders/GetOrderGiftsListResponse/GetOrderGiftsListResponse/Data/Items.php deleted file mode 100644 index 93ece94..0000000 --- a/src/Endpoint/Orders/GetOrderGiftsListResponse/GetOrderGiftsListResponse/Data/Items.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property OrderGift[] $data - * @method OrderGift[] toArray() - * @method void set(int $key, OrderGift $item) - * @method null|OrderGift get(int $key) - * @method void add(OrderGift $item) - * @method null|OrderGift remove(int $key) - * @method bool removeItem(OrderGift $item, bool $strict = true) - * @method bool contains(OrderGift $item, bool $strict = true) - * @method null|OrderGift offsetGet(int $offset) - * @method void offsetSet(int $offset, OrderGift $value) - */ -class Items extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\OrderGift'; - } -} diff --git a/src/Endpoint/Orders/OrderBatchInsertion.php b/src/Endpoint/Orders/OrderBatchInsertion.php old mode 100644 new mode 100755 index 9d44e0f..3e224a6 --- a/src/Endpoint/Orders/OrderBatchInsertion.php +++ b/src/Endpoint/Orders/OrderBatchInsertion.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Orders/orderbatchinsertion + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/orderbatchinsertion * * @method OrderBatchInsertion setBody(null|array|OrderBatchInsertionRequest $entity) * @method null|OrderBatchInsertionRequest getBody() diff --git a/src/Endpoint/Orders/OrderBatchInsertionRequest/OrderBatchInsertionRequest.php b/src/Endpoint/Orders/OrderBatchInsertionRequest/OrderBatchInsertionRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/OrderBatchInsertionResponse/OrderBatchInsertionResponse.php b/src/Endpoint/Orders/OrderBatchInsertionResponse/OrderBatchInsertionResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/OrderBatchInsertionResponse/OrderBatchInsertionResponse/Data.php b/src/Endpoint/Orders/OrderBatchInsertionResponse/OrderBatchInsertionResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/OrderCopy.php b/src/Endpoint/Orders/OrderCopy.php old mode 100644 new mode 100755 index dabf05a..0526a83 --- a/src/Endpoint/Orders/OrderCopy.php +++ b/src/Endpoint/Orders/OrderCopy.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Orders/ordercopy + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/ordercopy * * @method OrderCopy setBody(null|array|OrderCopyRequest $entity) * @method null|OrderCopyRequest getBody() diff --git a/src/Endpoint/Orders/OrderCopyRequest/OrderCopyRequest.php b/src/Endpoint/Orders/OrderCopyRequest/OrderCopyRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/OrderCopyRequest/OrderCopyRequest/Data.php b/src/Endpoint/Orders/OrderCopyRequest/OrderCopyRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/OrderCopyResponse/OrderCopyResponse.php b/src/Endpoint/Orders/OrderCopyResponse/OrderCopyResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/OrderCopyResponse/OrderCopyResponse/Data.php b/src/Endpoint/Orders/OrderCopyResponse/OrderCopyResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateOrderGiftSettings.php b/src/Endpoint/Orders/UpdateOrderGiftSettings.php deleted file mode 100644 index 2b333dd..0000000 --- a/src/Endpoint/Orders/UpdateOrderGiftSettings.php +++ /dev/null @@ -1,34 +0,0 @@ - false]; - - public function getRequestEntityClass(): string - { - return UpdateOrderGiftSettingsRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateOrderGiftSettingsResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/gifts/settings'; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest.php b/src/Endpoint/Orders/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest.php deleted file mode 100644 index 5625ff5..0000000 --- a/src/Endpoint/Orders/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest/Data.php b/src/Endpoint/Orders/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest/Data.php deleted file mode 100644 index 6b6f027..0000000 --- a/src/Endpoint/Orders/UpdateOrderGiftSettingsRequest/UpdateOrderGiftSettingsRequest/Data.php +++ /dev/null @@ -1,45 +0,0 @@ -stockDependent; - } - - public function setStockDependent(?bool $stockDependent): static - { - $this->stockDependent = $stockDependent; - return $this; - } - - public function getWholesaleGiftsEnabled(): ?bool - { - return $this->wholesaleGiftsEnabled; - } - - public function setWholesaleGiftsEnabled(?bool $wholesaleGiftsEnabled): static - { - $this->wholesaleGiftsEnabled = $wholesaleGiftsEnabled; - return $this; - } - - public function getProductGifts(): ?string - { - return $this->productGifts; - } - - public function setProductGifts(?string $productGifts): static - { - $this->productGifts = $productGifts; - return $this; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderGiftSettingsResponse/UpdateOrderGiftSettingsResponse/Data.php b/src/Endpoint/Orders/UpdateOrderGiftSettingsResponse/UpdateOrderGiftSettingsResponse/Data.php deleted file mode 100644 index 25c4d92..0000000 --- a/src/Endpoint/Orders/UpdateOrderGiftSettingsResponse/UpdateOrderGiftSettingsResponse/Data.php +++ /dev/null @@ -1,45 +0,0 @@ -stockDependent; - } - - public function setStockDependent(bool $stockDependent): static - { - $this->stockDependent = $stockDependent; - return $this; - } - - public function isWholesaleGiftsEnabled(): bool - { - return $this->wholesaleGiftsEnabled; - } - - public function setWholesaleGiftsEnabled(bool $wholesaleGiftsEnabled): static - { - $this->wholesaleGiftsEnabled = $wholesaleGiftsEnabled; - return $this; - } - - public function getProductGifts(): string - { - return $this->productGifts; - } - - public function setProductGifts(string $productGifts): static - { - $this->productGifts = $productGifts; - return $this; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderHead.php b/src/Endpoint/Orders/UpdateOrderHead.php old mode 100644 new mode 100755 index 8482961..1498683 --- a/src/Endpoint/Orders/UpdateOrderHead.php +++ b/src/Endpoint/Orders/UpdateOrderHead.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Patch; /** - * @see https://api.docs.shoptet.com/openapi/Orders/updateorderhead + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/updateorderhead * * @method UpdateOrderHead setBody(null|array|UpdateOrderHeadRequest $entity) * @method null|UpdateOrderHeadRequest getBody() diff --git a/src/Endpoint/Orders/UpdateOrderHeadRequest/UpdateOrderHeadRequest.php b/src/Endpoint/Orders/UpdateOrderHeadRequest/UpdateOrderHeadRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateOrderHeadRequest/UpdateOrderHeadRequest/Data.php b/src/Endpoint/Orders/UpdateOrderHeadRequest/UpdateOrderHeadRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateOrderHeadRequest/UpdateOrderHeadRequest/Data/BillingAddress.php b/src/Endpoint/Orders/UpdateOrderHeadRequest/UpdateOrderHeadRequest/Data/BillingAddress.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateOrderHeadRequest/UpdateOrderHeadRequest/Data/DeliveryAddress.php b/src/Endpoint/Orders/UpdateOrderHeadRequest/UpdateOrderHeadRequest/Data/DeliveryAddress.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateOrderHeadResponse/UpdateOrderHeadResponse.php b/src/Endpoint/Orders/UpdateOrderHeadResponse/UpdateOrderHeadResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateOrderHeadResponse/UpdateOrderHeadResponse/Data.php b/src/Endpoint/Orders/UpdateOrderHeadResponse/UpdateOrderHeadResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateOrderItem.php b/src/Endpoint/Orders/UpdateOrderItem.php deleted file mode 100644 index e63c004..0000000 --- a/src/Endpoint/Orders/UpdateOrderItem.php +++ /dev/null @@ -1,34 +0,0 @@ - true, 'id' => true]; - protected array $supportedQueryParams = ['language' => false, 'suppressProductGuidCheck' => false]; - - public function getRequestEntityClass(): string - { - return UpdateOrderItemRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateOrderItemResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/{code}/item/{id}'; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderItemRequest/UpdateOrderItemRequest.php b/src/Endpoint/Orders/UpdateOrderItemRequest/UpdateOrderItemRequest.php deleted file mode 100644 index 01af4f5..0000000 --- a/src/Endpoint/Orders/UpdateOrderItemRequest/UpdateOrderItemRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderItemRequest/UpdateOrderItemRequest/Data.php b/src/Endpoint/Orders/UpdateOrderItemRequest/UpdateOrderItemRequest/Data.php deleted file mode 100644 index 943a348..0000000 --- a/src/Endpoint/Orders/UpdateOrderItemRequest/UpdateOrderItemRequest/Data.php +++ /dev/null @@ -1,313 +0,0 @@ -itemType; - } - - public function setItemType(string $itemType): static - { - $this->itemType = $itemType; - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(?string $code): static - { - $this->code = $code; - return $this; - } - - public function getVatRate(): ?string - { - return $this->vatRate; - } - - public function setVatRate(?string $vatRate): static - { - $this->vatRate = $vatRate; - return $this; - } - - public function getItemPriceWithVat(): ?string - { - return $this->itemPriceWithVat; - } - - public function setItemPriceWithVat(?string $itemPriceWithVat): static - { - $this->itemPriceWithVat = $itemPriceWithVat; - return $this; - } - - public function getItemPriceWithoutVat(): ?string - { - return $this->itemPriceWithoutVat; - } - - public function setItemPriceWithoutVat(?string $itemPriceWithoutVat): static - { - $this->itemPriceWithoutVat = $itemPriceWithoutVat; - return $this; - } - - public function getBuyPriceWithVat(): ?string - { - return $this->buyPriceWithVat; - } - - public function setBuyPriceWithVat(?string $buyPriceWithVat): static - { - $this->buyPriceWithVat = $buyPriceWithVat; - return $this; - } - - public function getBuyPriceWithoutVat(): ?string - { - return $this->buyPriceWithoutVat; - } - - public function setBuyPriceWithoutVat(?string $buyPriceWithoutVat): static - { - $this->buyPriceWithoutVat = $buyPriceWithoutVat; - return $this; - } - - public function getBuyPriceVatRate(): ?string - { - return $this->buyPriceVatRate; - } - - public function setBuyPriceVatRate(?string $buyPriceVatRate): static - { - $this->buyPriceVatRate = $buyPriceVatRate; - return $this; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(?string $name): static - { - $this->name = $name; - return $this; - } - - public function getVariantName(): ?string - { - return $this->variantName; - } - - public function setVariantName(?string $variantName): static - { - $this->variantName = $variantName; - return $this; - } - - public function getBrand(): ?string - { - return $this->brand; - } - - public function setBrand(?string $brand): static - { - $this->brand = $brand; - return $this; - } - - public function getSupplierName(): ?string - { - return $this->supplierName; - } - - public function setSupplierName(?string $supplierName): static - { - $this->supplierName = $supplierName; - return $this; - } - - public function getProductGuid(): ?TypeGuid - { - return $this->productGuid; - } - - public function setProductGuid(?TypeGuid $productGuid): static - { - $this->productGuid = $productGuid; - return $this; - } - - public function getRemark(): ?string - { - return $this->remark; - } - - public function setRemark(?string $remark): static - { - $this->remark = $remark; - return $this; - } - - public function getWarrantyDescription(): ?string - { - return $this->warrantyDescription; - } - - public function setWarrantyDescription(?string $warrantyDescription): static - { - $this->warrantyDescription = $warrantyDescription; - return $this; - } - - public function getAmountCompleted(): ?TypePositiveAmount - { - return $this->amountCompleted; - } - - public function setAmountCompleted(?TypePositiveAmount $amountCompleted): static - { - $this->amountCompleted = $amountCompleted; - return $this; - } - - public function getAdditionalField(): ?string - { - return $this->additionalField; - } - - public function setAdditionalField(?string $additionalField): static - { - $this->additionalField = $additionalField; - return $this; - } - - public function getAmount(): ?string - { - return $this->amount; - } - - public function setAmount(?string $amount): static - { - $this->amount = $amount; - return $this; - } - - public function getAmountUnit(): ?string - { - return $this->amountUnit; - } - - public function setAmountUnit(?string $amountUnit): static - { - $this->amountUnit = $amountUnit; - return $this; - } - - public function getWeight(): ?string - { - return $this->weight; - } - - public function setWeight(?string $weight): static - { - $this->weight = $weight; - return $this; - } - - public function getPriceRatio(): ?string - { - return $this->priceRatio; - } - - public function setPriceRatio(?string $priceRatio): static - { - $this->priceRatio = $priceRatio; - return $this; - } - - public function getRecyclingFeeId(): ?int - { - return $this->recyclingFeeId; - } - - public function setRecyclingFeeId(?int $recyclingFeeId): static - { - $this->recyclingFeeId = $recyclingFeeId; - return $this; - } - - public function getStatusId(): ?float - { - return $this->statusId; - } - - public function setStatusId(?float $statusId): static - { - $this->statusId = $statusId; - return $this; - } - - public function getConsumptionTaxId(): ?ConsumptionTaxId - { - return $this->consumptionTaxId; - } - - public function setConsumptionTaxId(?ConsumptionTaxId $consumptionTaxId): static - { - $this->consumptionTaxId = $consumptionTaxId; - return $this; - } - - public function getConsumptionTax(): ?ConsumptionTax - { - return $this->consumptionTax; - } - - public function setConsumptionTax(?ConsumptionTax $consumptionTax): static - { - $this->consumptionTax = $consumptionTax; - return $this; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderItemRequest/UpdateOrderItemRequest/Data/ConsumptionTax.php b/src/Endpoint/Orders/UpdateOrderItemRequest/UpdateOrderItemRequest/Data/ConsumptionTax.php deleted file mode 100644 index 8fc9ffd..0000000 --- a/src/Endpoint/Orders/UpdateOrderItemRequest/UpdateOrderItemRequest/Data/ConsumptionTax.php +++ /dev/null @@ -1,35 +0,0 @@ -currency; - } - - public function setCurrency(TypeCurrencyCode $currency): static - { - $this->currency = $currency; - return $this; - } - - public function getPrice(): TypePrice - { - return $this->price; - } - - public function setPrice(TypePrice $price): static - { - $this->price = $price; - return $this; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderItemResponse/UpdateOrderItemResponse/Data.php b/src/Endpoint/Orders/UpdateOrderItemResponse/UpdateOrderItemResponse/Data.php deleted file mode 100644 index 38a88eb..0000000 --- a/src/Endpoint/Orders/UpdateOrderItemResponse/UpdateOrderItemResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -orderItem; - } - - public function setOrderItem(OrderItem $orderItem): static - { - $this->orderItem = $orderItem; - return $this; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderPayment.php b/src/Endpoint/Orders/UpdateOrderPayment.php deleted file mode 100644 index f337cb4..0000000 --- a/src/Endpoint/Orders/UpdateOrderPayment.php +++ /dev/null @@ -1,34 +0,0 @@ - true, 'id' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateOrderPaymentRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateOrderPaymentResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/{code}/payment/{id}'; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest.php b/src/Endpoint/Orders/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest.php deleted file mode 100644 index b560660..0000000 --- a/src/Endpoint/Orders/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest/Data.php b/src/Endpoint/Orders/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest/Data.php deleted file mode 100644 index 56dfede..0000000 --- a/src/Endpoint/Orders/UpdateOrderPaymentRequest/UpdateOrderPaymentRequest/Data.php +++ /dev/null @@ -1,82 +0,0 @@ -guid; - } - - public function setGuid(?TypeGuid $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getVatRate(): ?string - { - return $this->vatRate; - } - - public function setVatRate(?string $vatRate): static - { - $this->vatRate = $vatRate; - return $this; - } - - public function getItemPriceWithVat(): ?string - { - return $this->itemPriceWithVat; - } - - public function setItemPriceWithVat(?string $itemPriceWithVat): static - { - $this->itemPriceWithVat = $itemPriceWithVat; - return $this; - } - - public function getItemPriceWithoutVat(): ?string - { - return $this->itemPriceWithoutVat; - } - - public function setItemPriceWithoutVat(?string $itemPriceWithoutVat): static - { - $this->itemPriceWithoutVat = $itemPriceWithoutVat; - return $this; - } - - public function getAdditionalField(): ?string - { - return $this->additionalField; - } - - public function setAdditionalField(?string $additionalField): static - { - $this->additionalField = $additionalField; - return $this; - } - - public function getStatusId(): ?float - { - return $this->statusId; - } - - public function setStatusId(?float $statusId): static - { - $this->statusId = $statusId; - return $this; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderPaymentResponse/UpdateOrderPaymentResponse/Data.php b/src/Endpoint/Orders/UpdateOrderPaymentResponse/UpdateOrderPaymentResponse/Data.php deleted file mode 100644 index d7c7189..0000000 --- a/src/Endpoint/Orders/UpdateOrderPaymentResponse/UpdateOrderPaymentResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -orderItem; - } - - public function setOrderItem(OrderItem $orderItem): static - { - $this->orderItem = $orderItem; - return $this; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderShipping.php b/src/Endpoint/Orders/UpdateOrderShipping.php deleted file mode 100644 index b652cd8..0000000 --- a/src/Endpoint/Orders/UpdateOrderShipping.php +++ /dev/null @@ -1,34 +0,0 @@ - true, 'id' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateOrderShippingRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateOrderShippingResponse::class; - } - - public function getEndpoint(): string - { - return '/api/orders/{code}/shipping/{id}'; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderShippingRequest/UpdateOrderShippingRequest.php b/src/Endpoint/Orders/UpdateOrderShippingRequest/UpdateOrderShippingRequest.php deleted file mode 100644 index fa7ba1c..0000000 --- a/src/Endpoint/Orders/UpdateOrderShippingRequest/UpdateOrderShippingRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderShippingRequest/UpdateOrderShippingRequest/Data.php b/src/Endpoint/Orders/UpdateOrderShippingRequest/UpdateOrderShippingRequest/Data.php deleted file mode 100644 index a0c64b8..0000000 --- a/src/Endpoint/Orders/UpdateOrderShippingRequest/UpdateOrderShippingRequest/Data.php +++ /dev/null @@ -1,82 +0,0 @@ -guid; - } - - public function setGuid(?TypeGuid $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getVatRate(): ?string - { - return $this->vatRate; - } - - public function setVatRate(?string $vatRate): static - { - $this->vatRate = $vatRate; - return $this; - } - - public function getItemPriceWithVat(): ?string - { - return $this->itemPriceWithVat; - } - - public function setItemPriceWithVat(?string $itemPriceWithVat): static - { - $this->itemPriceWithVat = $itemPriceWithVat; - return $this; - } - - public function getItemPriceWithoutVat(): ?string - { - return $this->itemPriceWithoutVat; - } - - public function setItemPriceWithoutVat(?string $itemPriceWithoutVat): static - { - $this->itemPriceWithoutVat = $itemPriceWithoutVat; - return $this; - } - - public function getAdditionalField(): ?string - { - return $this->additionalField; - } - - public function setAdditionalField(?string $additionalField): static - { - $this->additionalField = $additionalField; - return $this; - } - - public function getStatusId(): ?float - { - return $this->statusId; - } - - public function setStatusId(?float $statusId): static - { - $this->statusId = $statusId; - return $this; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderShippingResponse/UpdateOrderShippingResponse/Data.php b/src/Endpoint/Orders/UpdateOrderShippingResponse/UpdateOrderShippingResponse/Data.php deleted file mode 100644 index d235f74..0000000 --- a/src/Endpoint/Orders/UpdateOrderShippingResponse/UpdateOrderShippingResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -orderItem; - } - - public function setOrderItem(OrderItem $orderItem): static - { - $this->orderItem = $orderItem; - return $this; - } -} diff --git a/src/Endpoint/Orders/UpdateOrderStatus.php b/src/Endpoint/Orders/UpdateOrderStatus.php old mode 100644 new mode 100755 index bf70fe2..19ff7b6 --- a/src/Endpoint/Orders/UpdateOrderStatus.php +++ b/src/Endpoint/Orders/UpdateOrderStatus.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Patch; /** - * @see https://api.docs.shoptet.com/openapi/Orders/updateorderstatus + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/updateorderstatus * * @method UpdateOrderStatus setBody(null|array|UpdateOrderStatusRequest $entity) * @method null|UpdateOrderStatusRequest getBody() diff --git a/src/Endpoint/Orders/UpdateOrderStatusRequest/UpdateOrderStatusRequest.php b/src/Endpoint/Orders/UpdateOrderStatusRequest/UpdateOrderStatusRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateOrderStatusRequest/UpdateOrderStatusRequest/Data.php b/src/Endpoint/Orders/UpdateOrderStatusRequest/UpdateOrderStatusRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateOrderStatusResponse/UpdateOrderStatusResponse.php b/src/Endpoint/Orders/UpdateOrderStatusResponse/UpdateOrderStatusResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateOrderStatusResponse/UpdateOrderStatusResponse/Data.php b/src/Endpoint/Orders/UpdateOrderStatusResponse/UpdateOrderStatusResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateRemarksForOrder.php b/src/Endpoint/Orders/UpdateRemarksForOrder.php old mode 100644 new mode 100755 index 3b782e8..364452b --- a/src/Endpoint/Orders/UpdateRemarksForOrder.php +++ b/src/Endpoint/Orders/UpdateRemarksForOrder.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Patch; /** - * @see https://api.docs.shoptet.com/openapi/Orders/updateremarksfororder + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/updateremarksfororder * * @method UpdateRemarksForOrder setBody(null|array|UpdateRemarksForOrderRequest $entity) * @method null|UpdateRemarksForOrderRequest getBody() diff --git a/src/Endpoint/Orders/UpdateRemarksForOrderRequest/UpdateRemarksForOrderRequest.php b/src/Endpoint/Orders/UpdateRemarksForOrderRequest/UpdateRemarksForOrderRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateRemarksForOrderRequest/UpdateRemarksForOrderRequest/Data.php b/src/Endpoint/Orders/UpdateRemarksForOrderRequest/UpdateRemarksForOrderRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateRemarksForOrderRequest/UpdateRemarksForOrderRequest/Data/AdditionalFields.php b/src/Endpoint/Orders/UpdateRemarksForOrderRequest/UpdateRemarksForOrderRequest/Data/AdditionalFields.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateRemarksForOrderRequest/UpdateRemarksForOrderRequest/Data/AdditionalFields/Item.php b/src/Endpoint/Orders/UpdateRemarksForOrderRequest/UpdateRemarksForOrderRequest/Data/AdditionalFields/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Orders/UpdateRemarksForOrderResponse/UpdateRemarksForOrderResponse.php b/src/Endpoint/Orders/UpdateRemarksForOrderResponse/UpdateRemarksForOrderResponse.php old mode 100644 new mode 100755 index ced1e28..264b149 --- a/src/Endpoint/Orders/UpdateRemarksForOrderResponse/UpdateRemarksForOrderResponse.php +++ b/src/Endpoint/Orders/UpdateRemarksForOrderResponse/UpdateRemarksForOrderResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateRemarksForOrderResponse\UpdateRemarksForOrderResponse\Data; class UpdateRemarksForOrderResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Orders/UpdateRemarksForOrderResponse/UpdateRemarksForOrderResponse/Data.php b/src/Endpoint/Orders/UpdateRemarksForOrderResponse/UpdateRemarksForOrderResponse/Data.php new file mode 100755 index 0000000..a8adf1a --- /dev/null +++ b/src/Endpoint/Orders/UpdateRemarksForOrderResponse/UpdateRemarksForOrderResponse/Data.php @@ -0,0 +1,9 @@ + false]; + + public function getRequestEntityClass(): string + { + return CreatePageRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreatePageResponse::class; + } + + public function getEndpoint(): string + { + return '/api/pages'; + } +} diff --git a/src/Endpoint/Pages/CreatePageRequest/CreatePageRequest.php b/src/Endpoint/Pages/CreatePageRequest/CreatePageRequest.php new file mode 100755 index 0000000..71075be --- /dev/null +++ b/src/Endpoint/Pages/CreatePageRequest/CreatePageRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/Pages/CreatePageRequest/CreatePageRequest/Data.php b/src/Endpoint/Pages/CreatePageRequest/CreatePageRequest/Data.php new file mode 100755 index 0000000..8bb2385 --- /dev/null +++ b/src/Endpoint/Pages/CreatePageRequest/CreatePageRequest/Data.php @@ -0,0 +1,130 @@ +title; + } + + public function setTitle(string $title): static + { + $this->title = $title; + return $this; + } + + public function getIndexName(): ?string + { + return $this->indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getLinkText(): ?string + { + return $this->linkText; + } + + public function setLinkText(?string $linkText): static + { + $this->linkText = $linkText; + return $this; + } + + public function getMetaTitle(): ?string + { + return $this->metaTitle; + } + + public function setMetaTitle(?string $metaTitle): static + { + $this->metaTitle = $metaTitle; + return $this; + } + + public function getMetaDescription(): ?string + { + return $this->metaDescription; + } + + public function setMetaDescription(?string $metaDescription): static + { + $this->metaDescription = $metaDescription; + return $this; + } + + public function getCanonicalUrl(): ?string + { + return $this->canonicalUrl; + } + + public function setCanonicalUrl(?string $canonicalUrl): static + { + $this->canonicalUrl = $canonicalUrl; + return $this; + } + + public function getVisible(): ?bool + { + return $this->visible; + } + + public function setVisible(?bool $visible): static + { + $this->visible = $visible; + return $this; + } + + public function getAccess(): ?string + { + return $this->access; + } + + public function setAccess(?string $access): static + { + $this->access = $access; + return $this; + } + + public function getSourceOgImageName(): ?TypeFilenameNullable + { + return $this->sourceOgImageName; + } + + public function setSourceOgImageName(?TypeFilenameNullable $sourceOgImageName): static + { + $this->sourceOgImageName = $sourceOgImageName; + return $this; + } +} diff --git a/src/Endpoint/Pages/CreatePageResponse/CreatePageResponse.php b/src/Endpoint/Pages/CreatePageResponse/CreatePageResponse.php new file mode 100755 index 0000000..80a46e0 --- /dev/null +++ b/src/Endpoint/Pages/CreatePageResponse/CreatePageResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Pages/CreatePageResponse/CreatePageResponse/Data.php b/src/Endpoint/Pages/CreatePageResponse/CreatePageResponse/Data.php new file mode 100755 index 0000000..ac068f2 --- /dev/null +++ b/src/Endpoint/Pages/CreatePageResponse/CreatePageResponse/Data.php @@ -0,0 +1,22 @@ +page; + } + + public function setPage(Page $page): static + { + $this->page = $page; + return $this; + } +} diff --git a/src/Endpoint/Pages/DeletePage.php b/src/Endpoint/Pages/DeletePage.php new file mode 100755 index 0000000..1475c98 --- /dev/null +++ b/src/Endpoint/Pages/DeletePage.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeletePageResponse::class; + } + + public function getEndpoint(): string + { + return '/api/pages/{pageId}'; + } +} diff --git a/src/Endpoint/Pages/DeletePageResponse/DeletePageResponse.php b/src/Endpoint/Pages/DeletePageResponse/DeletePageResponse.php new file mode 100755 index 0000000..f84f808 --- /dev/null +++ b/src/Endpoint/Pages/DeletePageResponse/DeletePageResponse.php @@ -0,0 +1,34 @@ +data; + } + + public function setData(null $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Pages/GetDetailOfPage.php b/src/Endpoint/Pages/GetDetailOfPage.php old mode 100644 new mode 100755 index d945899..b5c2851 --- a/src/Endpoint/Pages/GetDetailOfPage.php +++ b/src/Endpoint/Pages/GetDetailOfPage.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Pages\GetDetailOfPageResponse\GetDetailOfPageResponse; /** - * @see https://api.docs.shoptet.com/openapi/Pages/getdetailofpage + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Pages/getdetailofpage * * @method GetDetailOfPage setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Pages/GetDetailOfPageResponse/GetDetailOfPageResponse.php b/src/Endpoint/Pages/GetDetailOfPageResponse/GetDetailOfPageResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Pages/GetDetailOfPageResponse/GetDetailOfPageResponse/Data.php b/src/Endpoint/Pages/GetDetailOfPageResponse/GetDetailOfPageResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Pages/GetListOfPages.php b/src/Endpoint/Pages/GetListOfPages.php old mode 100644 new mode 100755 index 8f32327..722e032 --- a/src/Endpoint/Pages/GetListOfPages.php +++ b/src/Endpoint/Pages/GetListOfPages.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Pages\GetListOfPagesResponse\GetListOfPagesResponse; /** - * @see https://api.docs.shoptet.com/openapi/Pages/getlistofpages + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Pages/getlistofpages * * @method GetListOfPages setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Pages/GetListOfPagesResponse/GetListOfPagesResponse.php b/src/Endpoint/Pages/GetListOfPagesResponse/GetListOfPagesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Pages/GetListOfPagesResponse/GetListOfPagesResponse/Data.php b/src/Endpoint/Pages/GetListOfPagesResponse/GetListOfPagesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Pages/GetListOfPagesResponse/GetListOfPagesResponse/Data/Pages.php b/src/Endpoint/Pages/GetListOfPagesResponse/GetListOfPagesResponse/Data/Pages.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Pages/UpdatePage.php b/src/Endpoint/Pages/UpdatePage.php new file mode 100755 index 0000000..86130d9 --- /dev/null +++ b/src/Endpoint/Pages/UpdatePage.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdatePageRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdatePageResponse::class; + } + + public function getEndpoint(): string + { + return '/api/pages/{pageId}'; + } +} diff --git a/src/Endpoint/Pages/UpdatePageRequest/UpdatePageRequest.php b/src/Endpoint/Pages/UpdatePageRequest/UpdatePageRequest.php new file mode 100755 index 0000000..e2ac872 --- /dev/null +++ b/src/Endpoint/Pages/UpdatePageRequest/UpdatePageRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/Pages/UpdatePageRequest/UpdatePageRequest/Data.php b/src/Endpoint/Pages/UpdatePageRequest/UpdatePageRequest/Data.php new file mode 100755 index 0000000..b3b225d --- /dev/null +++ b/src/Endpoint/Pages/UpdatePageRequest/UpdatePageRequest/Data.php @@ -0,0 +1,130 @@ +title; + } + + public function setTitle(?string $title): static + { + $this->title = $title; + return $this; + } + + public function getIndexName(): ?string + { + return $this->indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getLinkText(): ?string + { + return $this->linkText; + } + + public function setLinkText(?string $linkText): static + { + $this->linkText = $linkText; + return $this; + } + + public function getMetaTitle(): ?string + { + return $this->metaTitle; + } + + public function setMetaTitle(?string $metaTitle): static + { + $this->metaTitle = $metaTitle; + return $this; + } + + public function getMetaDescription(): ?string + { + return $this->metaDescription; + } + + public function setMetaDescription(?string $metaDescription): static + { + $this->metaDescription = $metaDescription; + return $this; + } + + public function getCanonicalUrl(): ?string + { + return $this->canonicalUrl; + } + + public function setCanonicalUrl(?string $canonicalUrl): static + { + $this->canonicalUrl = $canonicalUrl; + return $this; + } + + public function getVisible(): ?bool + { + return $this->visible; + } + + public function setVisible(?bool $visible): static + { + $this->visible = $visible; + return $this; + } + + public function getAccess(): ?string + { + return $this->access; + } + + public function setAccess(?string $access): static + { + $this->access = $access; + return $this; + } + + public function getSourceOgImageName(): ?TypeFilenameNullable + { + return $this->sourceOgImageName; + } + + public function setSourceOgImageName(?TypeFilenameNullable $sourceOgImageName): static + { + $this->sourceOgImageName = $sourceOgImageName; + return $this; + } +} diff --git a/src/Endpoint/Pages/UpdatePageResponse/UpdatePageResponse.php b/src/Endpoint/Pages/UpdatePageResponse/UpdatePageResponse.php new file mode 100755 index 0000000..4e0aa17 --- /dev/null +++ b/src/Endpoint/Pages/UpdatePageResponse/UpdatePageResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Pages/UpdatePageResponse/UpdatePageResponse/Data.php b/src/Endpoint/Pages/UpdatePageResponse/UpdatePageResponse/Data.php new file mode 100755 index 0000000..3d1ed60 --- /dev/null +++ b/src/Endpoint/Pages/UpdatePageResponse/UpdatePageResponse/Data.php @@ -0,0 +1,22 @@ +page; + } + + public function setPage(Page $page): static + { + $this->page = $page; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/CreateParametricCategory.php b/src/Endpoint/ParametricCategories/CreateParametricCategory.php new file mode 100755 index 0000000..0952585 --- /dev/null +++ b/src/Endpoint/ParametricCategories/CreateParametricCategory.php @@ -0,0 +1,34 @@ + false, 'include' => false]; + + public function getRequestEntityClass(): string + { + return CreateParametricCategoryRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateParametricCategoryResponse::class; + } + + public function getEndpoint(): string + { + return '/api/parametric-categories'; + } +} diff --git a/src/Endpoint/ParametricCategories/CreateParametricCategoryRequest/CreateParametricCategoryRequest.php b/src/Endpoint/ParametricCategories/CreateParametricCategoryRequest/CreateParametricCategoryRequest.php new file mode 100755 index 0000000..261104a --- /dev/null +++ b/src/Endpoint/ParametricCategories/CreateParametricCategoryRequest/CreateParametricCategoryRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/CreateParametricCategoryRequest/CreateParametricCategoryRequest/Data.php b/src/Endpoint/ParametricCategories/CreateParametricCategoryRequest/CreateParametricCategoryRequest/Data.php new file mode 100755 index 0000000..a1c8bcd --- /dev/null +++ b/src/Endpoint/ParametricCategories/CreateParametricCategoryRequest/CreateParametricCategoryRequest/Data.php @@ -0,0 +1,144 @@ +name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getOriginalCategoryGuid(): TypeGuid + { + return $this->originalCategoryGuid; + } + + public function setOriginalCategoryGuid(TypeGuid $originalCategoryGuid): static + { + $this->originalCategoryGuid = $originalCategoryGuid; + return $this; + } + + public function getParameters(): Parameters + { + return $this->parameters; + } + + public function setParameters(Parameters $parameters): static + { + $this->parameters = $parameters; + return $this; + } + + public function getIndexName(): ?string + { + return $this->indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getSecondDescription(): ?string + { + return $this->secondDescription; + } + + public function setSecondDescription(?string $secondDescription): static + { + $this->secondDescription = $secondDescription; + return $this; + } + + public function getSourceImageName(): ?TypeFilenameNullable + { + return $this->sourceImageName; + } + + public function setSourceImageName(?TypeFilenameNullable $sourceImageName): static + { + $this->sourceImageName = $sourceImageName; + return $this; + } + + public function getTitle(): ?string + { + return $this->title; + } + + public function setTitle(?string $title): static + { + $this->title = $title; + return $this; + } + + public function getMetaTagDescription(): ?string + { + return $this->metaTagDescription; + } + + public function setMetaTagDescription(?string $metaTagDescription): static + { + $this->metaTagDescription = $metaTagDescription; + return $this; + } + + public function getShowInList(): ?bool + { + return $this->showInList; + } + + public function setShowInList(?bool $showInList): static + { + $this->showInList = $showInList; + return $this; + } + + public function getShowInDetail(): ?bool + { + return $this->showInDetail; + } + + public function setShowInDetail(?bool $showInDetail): static + { + $this->showInDetail = $showInDetail; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/CreateParametricCategoryRequest/CreateParametricCategoryRequest/Data/Parameters.php b/src/Endpoint/ParametricCategories/CreateParametricCategoryRequest/CreateParametricCategoryRequest/Data/Parameters.php new file mode 100755 index 0000000..5bb96ca --- /dev/null +++ b/src/Endpoint/ParametricCategories/CreateParametricCategoryRequest/CreateParametricCategoryRequest/Data/Parameters.php @@ -0,0 +1,31 @@ + + * @property ParameterValueCombinationsCodes[] $data + * @method ParameterValueCombinationsCodes[] toArray() + * @method void set(int $key, ParameterValueCombinationsCodes $item) + * @method null|ParameterValueCombinationsCodes get(int $key) + * @method void add(ParameterValueCombinationsCodes $item) + * @method null|ParameterValueCombinationsCodes remove(int $key) + * @method bool removeItem(ParameterValueCombinationsCodes $item, bool $strict = true) + * @method bool contains(ParameterValueCombinationsCodes $item, bool $strict = true) + * @method null|ParameterValueCombinationsCodes offsetGet(int $offset) + * @method void offsetSet(int $offset, ParameterValueCombinationsCodes $value) + */ +class Parameters extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ParameterValueCombinationsCodes'; + } +} diff --git a/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse.php b/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse.php new file mode 100755 index 0000000..6f75658 --- /dev/null +++ b/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse/Data.php b/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse/Data.php new file mode 100755 index 0000000..011ba2c --- /dev/null +++ b/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse/Data.php @@ -0,0 +1,22 @@ +parametricCategory; + } + + public function setParametricCategory(ParametricCategory $parametricCategory): static + { + $this->parametricCategory = $parametricCategory; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse/Data/ParametricCategory.php b/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse/Data/ParametricCategory.php new file mode 100755 index 0000000..227e3be --- /dev/null +++ b/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse/Data/ParametricCategory.php @@ -0,0 +1,166 @@ +guid; + } + + public function setGuid(string $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getIndexName(): string + { + return $this->indexName; + } + + public function setIndexName(string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): static + { + $this->url = $url; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getSecondDescription(): ?string + { + return $this->secondDescription; + } + + public function setSecondDescription(?string $secondDescription): static + { + $this->secondDescription = $secondDescription; + return $this; + } + + public function getImage(): ?string + { + return $this->image; + } + + public function setImage(?string $image): static + { + $this->image = $image; + return $this; + } + + public function getTitle(): ?string + { + return $this->title; + } + + public function setTitle(?string $title): static + { + $this->title = $title; + return $this; + } + + public function getMetaTagDescription(): ?string + { + return $this->metaTagDescription; + } + + public function setMetaTagDescription(?string $metaTagDescription): static + { + $this->metaTagDescription = $metaTagDescription; + return $this; + } + + public function getOriginalCategoryGuid(): ?string + { + return $this->originalCategoryGuid; + } + + public function setOriginalCategoryGuid(?string $originalCategoryGuid): static + { + $this->originalCategoryGuid = $originalCategoryGuid; + return $this; + } + + public function isShowInList(): bool + { + return $this->showInList; + } + + public function setShowInList(bool $showInList): static + { + $this->showInList = $showInList; + return $this; + } + + public function isShowInDetail(): bool + { + return $this->showInDetail; + } + + public function setShowInDetail(bool $showInDetail): static + { + $this->showInDetail = $showInDetail; + return $this; + } + + public function getParameters(): ?Parameters + { + return $this->parameters; + } + + public function setParameters(?Parameters $parameters): static + { + $this->parameters = $parameters; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse/Data/ParametricCategory/Parameters.php b/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse/Data/ParametricCategory/Parameters.php new file mode 100755 index 0000000..8e409ae --- /dev/null +++ b/src/Endpoint/ParametricCategories/CreateParametricCategoryResponse/CreateParametricCategoryResponse/Data/ParametricCategory/Parameters.php @@ -0,0 +1,31 @@ + + * @property ParameterValueCombinations[] $data + * @method ParameterValueCombinations[] toArray() + * @method void set(int $key, ParameterValueCombinations $item) + * @method null|ParameterValueCombinations get(int $key) + * @method void add(ParameterValueCombinations $item) + * @method null|ParameterValueCombinations remove(int $key) + * @method bool removeItem(ParameterValueCombinations $item, bool $strict = true) + * @method bool contains(ParameterValueCombinations $item, bool $strict = true) + * @method null|ParameterValueCombinations offsetGet(int $offset) + * @method void offsetSet(int $offset, ParameterValueCombinations $value) + */ +class Parameters extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ParameterValueCombinations'; + } +} diff --git a/src/Endpoint/ParametricCategories/DeleteParametricCategory.php b/src/Endpoint/ParametricCategories/DeleteParametricCategory.php new file mode 100755 index 0000000..e34dbf3 --- /dev/null +++ b/src/Endpoint/ParametricCategories/DeleteParametricCategory.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteParametricCategoryResponse::class; + } + + public function getEndpoint(): string + { + return '/api/parametric-categories/{categoryGuid}'; + } +} diff --git a/src/Endpoint/ParametricCategories/DeleteParametricCategoryResponse/DeleteParametricCategoryResponse.php b/src/Endpoint/ParametricCategories/DeleteParametricCategoryResponse/DeleteParametricCategoryResponse.php new file mode 100755 index 0000000..21a97e8 --- /dev/null +++ b/src/Endpoint/ParametricCategories/DeleteParametricCategoryResponse/DeleteParametricCategoryResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/DeleteParametricCategoryResponse/DeleteParametricCategoryResponse/Data.php b/src/Endpoint/ParametricCategories/DeleteParametricCategoryResponse/DeleteParametricCategoryResponse/Data.php new file mode 100755 index 0000000..a1f6ac3 --- /dev/null +++ b/src/Endpoint/ParametricCategories/DeleteParametricCategoryResponse/DeleteParametricCategoryResponse/Data.php @@ -0,0 +1,9 @@ + false, + 'page' => false, + 'itemsPerPage' => false, + 'include' => false, + ]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfParametricCategoriesResponse::class; + } + + public function getEndpoint(): string + { + return '/api/parametric-categories'; + } +} diff --git a/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse.php b/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse.php new file mode 100755 index 0000000..f84c570 --- /dev/null +++ b/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data.php b/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data.php new file mode 100755 index 0000000..71944c1 --- /dev/null +++ b/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data.php @@ -0,0 +1,35 @@ +parametricCategories; + } + + public function setParametricCategories(ParametricCategories $parametricCategories): static + { + $this->parametricCategories = $parametricCategories; + return $this; + } + + public function getPaginator(): ?Paginator + { + return $this->paginator; + } + + public function setPaginator(?Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories.php b/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories.php new file mode 100755 index 0000000..45cc78c --- /dev/null +++ b/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories.php @@ -0,0 +1,31 @@ + + * @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 ParametricCategories extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\ParametricCategories\GetListOfParametricCategoriesResponse\GetListOfParametricCategoriesResponse\Data\ParametricCategories\Item'; + } +} diff --git a/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item.php b/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item.php new file mode 100755 index 0000000..f9b1d58 --- /dev/null +++ b/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item.php @@ -0,0 +1,166 @@ +guid; + } + + public function setGuid(string $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getIndexName(): string + { + return $this->indexName; + } + + public function setIndexName(string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): static + { + $this->url = $url; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getSecondDescription(): ?string + { + return $this->secondDescription; + } + + public function setSecondDescription(?string $secondDescription): static + { + $this->secondDescription = $secondDescription; + return $this; + } + + public function getImage(): ?string + { + return $this->image; + } + + public function setImage(?string $image): static + { + $this->image = $image; + return $this; + } + + public function getTitle(): ?string + { + return $this->title; + } + + public function setTitle(?string $title): static + { + $this->title = $title; + return $this; + } + + public function getMetaTagDescription(): ?string + { + return $this->metaTagDescription; + } + + public function setMetaTagDescription(?string $metaTagDescription): static + { + $this->metaTagDescription = $metaTagDescription; + return $this; + } + + public function getOriginalCategoryGuid(): ?string + { + return $this->originalCategoryGuid; + } + + public function setOriginalCategoryGuid(?string $originalCategoryGuid): static + { + $this->originalCategoryGuid = $originalCategoryGuid; + return $this; + } + + public function isShowInList(): bool + { + return $this->showInList; + } + + public function setShowInList(bool $showInList): static + { + $this->showInList = $showInList; + return $this; + } + + public function isShowInDetail(): bool + { + return $this->showInDetail; + } + + public function setShowInDetail(bool $showInDetail): static + { + $this->showInDetail = $showInDetail; + return $this; + } + + public function getParameters(): ?Parameters + { + return $this->parameters; + } + + public function setParameters(?Parameters $parameters): static + { + $this->parameters = $parameters; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item/Parameters.php b/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item/Parameters.php new file mode 100755 index 0000000..caf0877 --- /dev/null +++ b/src/Endpoint/ParametricCategories/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item/Parameters.php @@ -0,0 +1,31 @@ + + * @property ParameterValueCombinations[] $data + * @method ParameterValueCombinations[] toArray() + * @method void set(int $key, ParameterValueCombinations $item) + * @method null|ParameterValueCombinations get(int $key) + * @method void add(ParameterValueCombinations $item) + * @method null|ParameterValueCombinations remove(int $key) + * @method bool removeItem(ParameterValueCombinations $item, bool $strict = true) + * @method bool contains(ParameterValueCombinations $item, bool $strict = true) + * @method null|ParameterValueCombinations offsetGet(int $offset) + * @method void offsetSet(int $offset, ParameterValueCombinations $value) + */ +class Parameters extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ParameterValueCombinations'; + } +} diff --git a/src/Endpoint/ParametricCategories/GetParametricCategoryDetail.php b/src/Endpoint/ParametricCategories/GetParametricCategoryDetail.php new file mode 100755 index 0000000..a826a43 --- /dev/null +++ b/src/Endpoint/ParametricCategories/GetParametricCategoryDetail.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetParametricCategoryDetailResponse::class; + } + + public function getEndpoint(): string + { + return '/api/parametric-categories/{categoryGuid}'; + } +} diff --git a/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse.php b/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse.php new file mode 100755 index 0000000..50a97c4 --- /dev/null +++ b/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data.php b/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data.php new file mode 100755 index 0000000..149b04b --- /dev/null +++ b/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data.php @@ -0,0 +1,22 @@ +parametricCategory; + } + + public function setParametricCategory(ParametricCategory $parametricCategory): static + { + $this->parametricCategory = $parametricCategory; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory.php b/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory.php new file mode 100755 index 0000000..7a8a4c8 --- /dev/null +++ b/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory.php @@ -0,0 +1,166 @@ +guid; + } + + public function setGuid(string $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getIndexName(): string + { + return $this->indexName; + } + + public function setIndexName(string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): static + { + $this->url = $url; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getSecondDescription(): ?string + { + return $this->secondDescription; + } + + public function setSecondDescription(?string $secondDescription): static + { + $this->secondDescription = $secondDescription; + return $this; + } + + public function getImage(): ?string + { + return $this->image; + } + + public function setImage(?string $image): static + { + $this->image = $image; + return $this; + } + + public function getTitle(): ?string + { + return $this->title; + } + + public function setTitle(?string $title): static + { + $this->title = $title; + return $this; + } + + public function getMetaTagDescription(): ?string + { + return $this->metaTagDescription; + } + + public function setMetaTagDescription(?string $metaTagDescription): static + { + $this->metaTagDescription = $metaTagDescription; + return $this; + } + + public function getOriginalCategoryGuid(): ?string + { + return $this->originalCategoryGuid; + } + + public function setOriginalCategoryGuid(?string $originalCategoryGuid): static + { + $this->originalCategoryGuid = $originalCategoryGuid; + return $this; + } + + public function isShowInList(): bool + { + return $this->showInList; + } + + public function setShowInList(bool $showInList): static + { + $this->showInList = $showInList; + return $this; + } + + public function isShowInDetail(): bool + { + return $this->showInDetail; + } + + public function setShowInDetail(bool $showInDetail): static + { + $this->showInDetail = $showInDetail; + return $this; + } + + public function getParameters(): ?Parameters + { + return $this->parameters; + } + + public function setParameters(?Parameters $parameters): static + { + $this->parameters = $parameters; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory/Parameters.php b/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory/Parameters.php new file mode 100755 index 0000000..eb53d5d --- /dev/null +++ b/src/Endpoint/ParametricCategories/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory/Parameters.php @@ -0,0 +1,31 @@ + + * @property ParameterValueCombinations[] $data + * @method ParameterValueCombinations[] toArray() + * @method void set(int $key, ParameterValueCombinations $item) + * @method null|ParameterValueCombinations get(int $key) + * @method void add(ParameterValueCombinations $item) + * @method null|ParameterValueCombinations remove(int $key) + * @method bool removeItem(ParameterValueCombinations $item, bool $strict = true) + * @method bool contains(ParameterValueCombinations $item, bool $strict = true) + * @method null|ParameterValueCombinations offsetGet(int $offset) + * @method void offsetSet(int $offset, ParameterValueCombinations $value) + */ +class Parameters extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ParameterValueCombinations'; + } +} diff --git a/src/Endpoint/ParametricCategories/UpdateParametricCategory.php b/src/Endpoint/ParametricCategories/UpdateParametricCategory.php new file mode 100755 index 0000000..abee575 --- /dev/null +++ b/src/Endpoint/ParametricCategories/UpdateParametricCategory.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateParametricCategoryRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateParametricCategoryResponse::class; + } + + public function getEndpoint(): string + { + return '/api/parametric-categories/{categoryGuid}'; + } +} diff --git a/src/Endpoint/ParametricCategories/UpdateParametricCategoryRequest/UpdateParametricCategoryRequest.php b/src/Endpoint/ParametricCategories/UpdateParametricCategoryRequest/UpdateParametricCategoryRequest.php new file mode 100755 index 0000000..b02e206 --- /dev/null +++ b/src/Endpoint/ParametricCategories/UpdateParametricCategoryRequest/UpdateParametricCategoryRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/UpdateParametricCategoryRequest/UpdateParametricCategoryRequest/Data.php b/src/Endpoint/ParametricCategories/UpdateParametricCategoryRequest/UpdateParametricCategoryRequest/Data.php new file mode 100755 index 0000000..62efb20 --- /dev/null +++ b/src/Endpoint/ParametricCategories/UpdateParametricCategoryRequest/UpdateParametricCategoryRequest/Data.php @@ -0,0 +1,118 @@ +name; + } + + public function setName(?string $name): static + { + $this->name = $name; + return $this; + } + + public function getIndexName(): ?string + { + return $this->indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getSecondDescription(): ?string + { + return $this->secondDescription; + } + + public function setSecondDescription(?string $secondDescription): static + { + $this->secondDescription = $secondDescription; + return $this; + } + + public function getSourceImageName(): ?TypeFilenameNullable + { + return $this->sourceImageName; + } + + public function setSourceImageName(?TypeFilenameNullable $sourceImageName): static + { + $this->sourceImageName = $sourceImageName; + return $this; + } + + public function getTitle(): ?string + { + return $this->title; + } + + public function setTitle(?string $title): static + { + $this->title = $title; + return $this; + } + + public function getMetaTagDescription(): ?string + { + return $this->metaTagDescription; + } + + public function setMetaTagDescription(?string $metaTagDescription): static + { + $this->metaTagDescription = $metaTagDescription; + return $this; + } + + public function getShowInList(): ?bool + { + return $this->showInList; + } + + public function setShowInList(?bool $showInList): static + { + $this->showInList = $showInList; + return $this; + } + + public function getShowInDetail(): ?bool + { + return $this->showInDetail; + } + + public function setShowInDetail(?bool $showInDetail): static + { + $this->showInDetail = $showInDetail; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse.php b/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse.php new file mode 100755 index 0000000..1f74323 --- /dev/null +++ b/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse/Data.php b/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse/Data.php new file mode 100755 index 0000000..901e5bb --- /dev/null +++ b/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse/Data.php @@ -0,0 +1,22 @@ +parametricCategory; + } + + public function setParametricCategory(ParametricCategory $parametricCategory): static + { + $this->parametricCategory = $parametricCategory; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse/Data/ParametricCategory.php b/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse/Data/ParametricCategory.php new file mode 100755 index 0000000..43b2e04 --- /dev/null +++ b/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse/Data/ParametricCategory.php @@ -0,0 +1,166 @@ +guid; + } + + public function setGuid(string $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getIndexName(): string + { + return $this->indexName; + } + + public function setIndexName(string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): static + { + $this->url = $url; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getSecondDescription(): ?string + { + return $this->secondDescription; + } + + public function setSecondDescription(?string $secondDescription): static + { + $this->secondDescription = $secondDescription; + return $this; + } + + public function getImage(): ?string + { + return $this->image; + } + + public function setImage(?string $image): static + { + $this->image = $image; + return $this; + } + + public function getTitle(): ?string + { + return $this->title; + } + + public function setTitle(?string $title): static + { + $this->title = $title; + return $this; + } + + public function getMetaTagDescription(): ?string + { + return $this->metaTagDescription; + } + + public function setMetaTagDescription(?string $metaTagDescription): static + { + $this->metaTagDescription = $metaTagDescription; + return $this; + } + + public function getOriginalCategoryGuid(): ?string + { + return $this->originalCategoryGuid; + } + + public function setOriginalCategoryGuid(?string $originalCategoryGuid): static + { + $this->originalCategoryGuid = $originalCategoryGuid; + return $this; + } + + public function isShowInList(): bool + { + return $this->showInList; + } + + public function setShowInList(bool $showInList): static + { + $this->showInList = $showInList; + return $this; + } + + public function isShowInDetail(): bool + { + return $this->showInDetail; + } + + public function setShowInDetail(bool $showInDetail): static + { + $this->showInDetail = $showInDetail; + return $this; + } + + public function getParameters(): ?Parameters + { + return $this->parameters; + } + + public function setParameters(?Parameters $parameters): static + { + $this->parameters = $parameters; + return $this; + } +} diff --git a/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse/Data/ParametricCategory/Parameters.php b/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse/Data/ParametricCategory/Parameters.php new file mode 100755 index 0000000..c2fdbaa --- /dev/null +++ b/src/Endpoint/ParametricCategories/UpdateParametricCategoryResponse/UpdateParametricCategoryResponse/Data/ParametricCategory/Parameters.php @@ -0,0 +1,31 @@ + + * @property ParameterValueCombinations[] $data + * @method ParameterValueCombinations[] toArray() + * @method void set(int $key, ParameterValueCombinations $item) + * @method null|ParameterValueCombinations get(int $key) + * @method void add(ParameterValueCombinations $item) + * @method null|ParameterValueCombinations remove(int $key) + * @method bool removeItem(ParameterValueCombinations $item, bool $strict = true) + * @method bool contains(ParameterValueCombinations $item, bool $strict = true) + * @method null|ParameterValueCombinations offsetGet(int $offset) + * @method void offsetSet(int $offset, ParameterValueCombinations $value) + */ +class Parameters extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ParameterValueCombinations'; + } +} diff --git a/src/Endpoint/Patch.php b/src/Endpoint/Patch.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentGateways/GetInformationAboutPayment.php b/src/Endpoint/PaymentGateways/GetInformationAboutPayment.php old mode 100644 new mode 100755 index f9dd14b..debfc59 --- a/src/Endpoint/PaymentGateways/GetInformationAboutPayment.php +++ b/src/Endpoint/PaymentGateways/GetInformationAboutPayment.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PaymentGateways\GetInformationAboutPaymentResponse\GetInformationAboutPaymentResponse; /** - * @see https://api.docs.shoptet.com/openapi/Payment-gateways/getinformationaboutpayment + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Payment-gateways/getinformationaboutpayment * * @method GetInformationAboutPayment setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/PaymentGateways/GetInformationAboutPaymentResponse/GetInformationAboutPaymentResponse.php b/src/Endpoint/PaymentGateways/GetInformationAboutPaymentResponse/GetInformationAboutPaymentResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentGateways/GetInformationAboutPaymentResponse/GetInformationAboutPaymentResponse/Data.php b/src/Endpoint/PaymentGateways/GetInformationAboutPaymentResponse/GetInformationAboutPaymentResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentGateways/UpdatePaymentStatus.php b/src/Endpoint/PaymentGateways/UpdatePaymentStatus.php old mode 100644 new mode 100755 index 08bee9a..543efdc --- a/src/Endpoint/PaymentGateways/UpdatePaymentStatus.php +++ b/src/Endpoint/PaymentGateways/UpdatePaymentStatus.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PaymentGateways\UpdatePaymentStatusResponse\UpdatePaymentStatusResponse; /** - * @see https://api.docs.shoptet.com/openapi/Payment-gateways/updatepaymentstatus + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Payment-gateways/updatepaymentstatus * * @method UpdatePaymentStatus setBody(null|array|UpdatePaymentStatusRequest $entity) * @method null|UpdatePaymentStatusRequest getBody() @@ -15,7 +15,12 @@ class UpdatePaymentStatus extends Patch { protected array $supportedPathParams = ['paymentCode' => true]; - protected array $supportedQueryParams = ['language' => false]; + + protected array $supportedQueryParams = [ + 'language' => false, + 'suppressDocumentGeneration' => false, + 'suppressEmailSending' => false, + ]; public function getRequestEntityClass(): string { diff --git a/src/Endpoint/PaymentGateways/UpdatePaymentStatusRequest/UpdatePaymentStatusRequest.php b/src/Endpoint/PaymentGateways/UpdatePaymentStatusRequest/UpdatePaymentStatusRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentGateways/UpdatePaymentStatusRequest/UpdatePaymentStatusRequest/Data.php b/src/Endpoint/PaymentGateways/UpdatePaymentStatusRequest/UpdatePaymentStatusRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentGateways/UpdatePaymentStatusResponse/UpdatePaymentStatusResponse.php b/src/Endpoint/PaymentGateways/UpdatePaymentStatusResponse/UpdatePaymentStatusResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentGateways/UpdatePaymentStatusResponse/UpdatePaymentStatusResponse/Data.php b/src/Endpoint/PaymentGateways/UpdatePaymentStatusResponse/UpdatePaymentStatusResponse/Data.php old mode 100644 new mode 100755 index 8db22d6..456a18d --- a/src/Endpoint/PaymentGateways/UpdatePaymentStatusResponse/UpdatePaymentStatusResponse/Data.php +++ b/src/Endpoint/PaymentGateways/UpdatePaymentStatusResponse/UpdatePaymentStatusResponse/Data.php @@ -6,28 +6,4 @@ class Data extends Entity { - protected string $orderCode; - protected string $returnUrl; - - public function getOrderCode(): string - { - return $this->orderCode; - } - - public function setOrderCode(string $orderCode): static - { - $this->orderCode = $orderCode; - return $this; - } - - public function getReturnUrl(): string - { - return $this->returnUrl; - } - - public function setReturnUrl(string $returnUrl): static - { - $this->returnUrl = $returnUrl; - return $this; - } } diff --git a/src/Endpoint/PaymentMethods/CreatePaymentMethod.php b/src/Endpoint/PaymentMethods/CreatePaymentMethod.php old mode 100644 new mode 100755 index 863789b..d99a1a5 --- a/src/Endpoint/PaymentMethods/CreatePaymentMethod.php +++ b/src/Endpoint/PaymentMethods/CreatePaymentMethod.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Post; /** - * @see https://api.docs.shoptet.com/openapi/Payment-methods/createpaymentmethod + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Payment-methods/createpaymentmethod * * @method CreatePaymentMethod setBody(null|array|CreatePaymentMethodRequest $entity) * @method null|CreatePaymentMethodRequest getBody() diff --git a/src/Endpoint/PaymentMethods/CreatePaymentMethodRequest/CreatePaymentMethodRequest.php b/src/Endpoint/PaymentMethods/CreatePaymentMethodRequest/CreatePaymentMethodRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentMethods/CreatePaymentMethodRequest/CreatePaymentMethodRequest/Data.php b/src/Endpoint/PaymentMethods/CreatePaymentMethodRequest/CreatePaymentMethodRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentMethods/CreatePaymentMethodRequest/CreatePaymentMethodRequest/Data/Logo.php b/src/Endpoint/PaymentMethods/CreatePaymentMethodRequest/CreatePaymentMethodRequest/Data/Logo.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentMethods/CreatePaymentMethodResponse/CreatePaymentMethodResponse.php b/src/Endpoint/PaymentMethods/CreatePaymentMethodResponse/CreatePaymentMethodResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentMethods/CreatePaymentMethodResponse/CreatePaymentMethodResponse/Data.php b/src/Endpoint/PaymentMethods/CreatePaymentMethodResponse/CreatePaymentMethodResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentMethods/CreatePaymentMethodResponse/CreatePaymentMethodResponse/Data/PaymentType.php b/src/Endpoint/PaymentMethods/CreatePaymentMethodResponse/CreatePaymentMethodResponse/Data/PaymentType.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentMethods/DeletePaymentMethod.php b/src/Endpoint/PaymentMethods/DeletePaymentMethod.php old mode 100644 new mode 100755 index 6b132bd..cac3033 --- a/src/Endpoint/PaymentMethods/DeletePaymentMethod.php +++ b/src/Endpoint/PaymentMethods/DeletePaymentMethod.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PaymentMethods\DeletePaymentMethodResponse\DeletePaymentMethodResponse; /** - * @see https://api.docs.shoptet.com/openapi/Payment-methods/deletepaymentmethod + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Payment-methods/deletepaymentmethod * * @method DeletePaymentMethod setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/PaymentMethods/DeletePaymentMethodResponse/DeletePaymentMethodResponse.php b/src/Endpoint/PaymentMethods/DeletePaymentMethodResponse/DeletePaymentMethodResponse.php old mode 100644 new mode 100755 index 2946b5d..7b41481 --- a/src/Endpoint/PaymentMethods/DeletePaymentMethodResponse/DeletePaymentMethodResponse.php +++ b/src/Endpoint/PaymentMethods/DeletePaymentMethodResponse/DeletePaymentMethodResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\PaymentMethods\DeletePaymentMethodResponse\DeletePaymentMethodResponse\Data; class DeletePaymentMethodResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/PaymentMethods/DeletePaymentMethodResponse/DeletePaymentMethodResponse/Data.php b/src/Endpoint/PaymentMethods/DeletePaymentMethodResponse/DeletePaymentMethodResponse/Data.php new file mode 100755 index 0000000..399c2c2 --- /dev/null +++ b/src/Endpoint/PaymentMethods/DeletePaymentMethodResponse/DeletePaymentMethodResponse/Data.php @@ -0,0 +1,9 @@ +wholesaleSplitActive; + } + + public function setWholesaleSplitActive(bool $wholesaleSplitActive): static + { + $this->wholesaleSplitActive = $wholesaleSplitActive; + return $this; + } + public function getDefaultRetailMethod(): ?string { return $this->defaultRetailMethod; diff --git a/src/Endpoint/PaymentMethods/GetListingOfPaymentMethodsResponse/GetListingOfPaymentMethodsResponse/Data/PaymentMethods.php b/src/Endpoint/PaymentMethods/GetListingOfPaymentMethodsResponse/GetListingOfPaymentMethodsResponse/Data/PaymentMethods.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentMethods/GetListingOfPaymentMethodsResponse/GetListingOfPaymentMethodsResponse/Data/PaymentMethods/Item.php b/src/Endpoint/PaymentMethods/GetListingOfPaymentMethodsResponse/GetListingOfPaymentMethodsResponse/Data/PaymentMethods/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PaymentMethods/GetListingOfPaymentMethodsResponse/GetListingOfPaymentMethodsResponse/Data/PaymentMethods/Item/PaymentType.php b/src/Endpoint/PaymentMethods/GetListingOfPaymentMethodsResponse/GetListingOfPaymentMethodsResponse/Data/PaymentMethods/Item/PaymentType.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Post.php b/src/Endpoint/Post.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PriceLists/CreatePricelist.php b/src/Endpoint/PriceLists/CreatePricelist.php old mode 100644 new mode 100755 index ceb0531..827b10f --- a/src/Endpoint/PriceLists/CreatePricelist.php +++ b/src/Endpoint/PriceLists/CreatePricelist.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\CreatePricelistResponse\CreatePricelistResponse; /** - * @see https://api.docs.shoptet.com/openapi/Price-lists/createpricelist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Price-lists/createpricelist * * @method CreatePricelist setBody(null|array|CreatePricelistRequest $entity) * @method null|CreatePricelistRequest getBody() diff --git a/src/Endpoint/PriceLists/CreatePricelistRequest/CreatePricelistRequest.php b/src/Endpoint/PriceLists/CreatePricelistRequest/CreatePricelistRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PriceLists/CreatePricelistRequest/CreatePricelistRequest/Data.php b/src/Endpoint/PriceLists/CreatePricelistRequest/CreatePricelistRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PriceLists/CreatePricelistResponse/CreatePricelistResponse.php b/src/Endpoint/PriceLists/CreatePricelistResponse/CreatePricelistResponse.php old mode 100644 new mode 100755 index c5ffd01..b3a84a9 --- a/src/Endpoint/PriceLists/CreatePricelistResponse/CreatePricelistResponse.php +++ b/src/Endpoint/PriceLists/CreatePricelistResponse/CreatePricelistResponse.php @@ -4,19 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; -use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\CreatePricelistResponse\CreatePricelistResponse\Data; +use Shoptet\Api\Sdk\Php\Component\Entity\Pricelist; class CreatePricelistResponse extends Entity { - protected ?Data $data; + protected ?Pricelist $data; protected ?Errors $errors; - public function getData(): ?Data + public function getData(): ?Pricelist { return $this->data; } - public function setData(?Data $data): static + public function setData(?Pricelist $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/PriceLists/CreatePricelistResponse/CreatePricelistResponse/Data.php b/src/Endpoint/PriceLists/CreatePricelistResponse/CreatePricelistResponse/Data.php deleted file mode 100644 index ab4c3d7..0000000 --- a/src/Endpoint/PriceLists/CreatePricelistResponse/CreatePricelistResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(?Pricelist $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/PriceLists/DeletePricelist.php b/src/Endpoint/PriceLists/DeletePricelist.php old mode 100644 new mode 100755 index e2c18e6..f013223 --- a/src/Endpoint/PriceLists/DeletePricelist.php +++ b/src/Endpoint/PriceLists/DeletePricelist.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\DeletePricelistResponse\DeletePricelistResponse; /** - * @see https://api.docs.shoptet.com/openapi/Price-lists/deletepricelist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Price-lists/deletepricelist * * @method DeletePricelist setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/PriceLists/DeletePricelistResponse/DeletePricelistResponse.php b/src/Endpoint/PriceLists/DeletePricelistResponse/DeletePricelistResponse.php old mode 100644 new mode 100755 index d2ace43..43897c7 --- a/src/Endpoint/PriceLists/DeletePricelistResponse/DeletePricelistResponse.php +++ b/src/Endpoint/PriceLists/DeletePricelistResponse/DeletePricelistResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\DeletePricelistResponse\DeletePricelistResponse\Data; class DeletePricelistResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/PriceLists/DeletePricelistResponse/DeletePricelistResponse/Data.php b/src/Endpoint/PriceLists/DeletePricelistResponse/DeletePricelistResponse/Data.php new file mode 100755 index 0000000..6097461 --- /dev/null +++ b/src/Endpoint/PriceLists/DeletePricelistResponse/DeletePricelistResponse/Data.php @@ -0,0 +1,9 @@ +pricelist; } - public function setPricelist(PricelistDetail $pricelist): static + public function setPricelist(Pricelist $pricelist): static { $this->pricelist = $pricelist; return $this; diff --git a/src/Endpoint/PriceLists/GetPricelistDetailResponse/GetPricelistDetailResponse/Data/Pricelist.php b/src/Endpoint/PriceLists/GetPricelistDetailResponse/GetPricelistDetailResponse/Data/Pricelist.php new file mode 100755 index 0000000..88e18ec --- /dev/null +++ b/src/Endpoint/PriceLists/GetPricelistDetailResponse/GetPricelistDetailResponse/Data/Pricelist.php @@ -0,0 +1,31 @@ + + * @property PricelistDetail[] $data + * @method PricelistDetail[] toArray() + * @method void set(int $key, PricelistDetail $item) + * @method null|PricelistDetail get(int $key) + * @method void add(PricelistDetail $item) + * @method null|PricelistDetail remove(int $key) + * @method bool removeItem(PricelistDetail $item, bool $strict = true) + * @method bool contains(PricelistDetail $item, bool $strict = true) + * @method null|PricelistDetail offsetGet(int $offset) + * @method void offsetSet(int $offset, PricelistDetail $value) + */ +class Pricelist extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\PricelistDetail'; + } +} diff --git a/src/Endpoint/PriceLists/UpdatePricelist.php b/src/Endpoint/PriceLists/UpdatePricelist.php old mode 100644 new mode 100755 index a41da2e..3941831 --- a/src/Endpoint/PriceLists/UpdatePricelist.php +++ b/src/Endpoint/PriceLists/UpdatePricelist.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistResponse\UpdatePricelistResponse; /** - * @see https://api.docs.shoptet.com/openapi/Price-lists/updatepricelist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Price-lists/updatepricelist * * @method UpdatePricelist setBody(null|array|UpdatePricelistRequest $entity) * @method null|UpdatePricelistRequest getBody() diff --git a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest.php b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data.php b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item.php b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item.php old mode 100644 new mode 100755 index e1785c9..9cfae72 --- a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item.php +++ b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item.php @@ -3,24 +3,26 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item\OrderableAmount; use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item\Price; use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item\PriceWithVat; use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item\PriceWithoutVat; +use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item\Prices; use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item\Sales; class Item extends Entity { protected string $code; protected ?string $currencyCode; - protected ?TypePrice $vatRate; + protected ?TypePriceNullable $vatRate; protected ?bool $includingVat; protected ?OrderableAmount $orderableAmount; protected ?Sales $sales; protected ?Price $price; protected ?PriceWithVat $priceWithVat; protected ?PriceWithoutVat $priceWithoutVat; + protected ?Prices $prices; public function getCode(): string { @@ -44,12 +46,12 @@ public function setCurrencyCode(?string $currencyCode): static return $this; } - public function getVatRate(): ?TypePrice + public function getVatRate(): ?TypePriceNullable { return $this->vatRate; } - public function setVatRate(?TypePrice $vatRate): static + public function setVatRate(?TypePriceNullable $vatRate): static { $this->vatRate = $vatRate; return $this; @@ -120,4 +122,15 @@ public function setPriceWithoutVat(?PriceWithoutVat $priceWithoutVat): static $this->priceWithoutVat = $priceWithoutVat; return $this; } + + public function getPrices(): ?Prices + { + return $this->prices; + } + + public function setPrices(?Prices $prices): static + { + $this->prices = $prices; + return $this; + } } diff --git a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/OrderableAmount.php b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/OrderableAmount.php old mode 100644 new mode 100755 index b7a1d29..6a3ac84 --- a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/OrderableAmount.php +++ b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/OrderableAmount.php @@ -3,30 +3,30 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmountNullable; class OrderableAmount extends Entity { - protected ?TypePositiveAmount $minimumAmount; - protected ?TypePositiveAmount $maximumAmount; + protected ?TypePositiveAmountNullable $minimumAmount; + protected ?TypePositiveAmountNullable $maximumAmount; - public function getMinimumAmount(): ?TypePositiveAmount + public function getMinimumAmount(): ?TypePositiveAmountNullable { return $this->minimumAmount; } - public function setMinimumAmount(?TypePositiveAmount $minimumAmount): static + public function setMinimumAmount(?TypePositiveAmountNullable $minimumAmount): static { $this->minimumAmount = $minimumAmount; return $this; } - public function getMaximumAmount(): ?TypePositiveAmount + public function getMaximumAmount(): ?TypePositiveAmountNullable { return $this->maximumAmount; } - public function setMaximumAmount(?TypePositiveAmount $maximumAmount): static + public function setMaximumAmount(?TypePositiveAmountNullable $maximumAmount): static { $this->maximumAmount = $maximumAmount; return $this; diff --git a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Price.php b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Price.php old mode 100644 new mode 100755 index 0f2ca3e..e84a332 --- a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Price.php +++ b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Price.php @@ -3,46 +3,46 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceRatio; use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item\Price\ActionPrice; class Price extends Entity { - protected ?TypePrice $price; - protected ?TypePrice $commonPrice; - protected ?TypePrice $buyPrice; + protected ?TypePriceNullable $price; + protected ?TypePriceNullable $commonPrice; + protected ?TypePriceNullable $buyPrice; protected ?TypePriceRatio $priceRatio; protected ?ActionPrice $actionPrice; - public function getPrice(): ?TypePrice + public function getPrice(): ?TypePriceNullable { return $this->price; } - public function setPrice(?TypePrice $price): static + public function setPrice(?TypePriceNullable $price): static { $this->price = $price; return $this; } - public function getCommonPrice(): ?TypePrice + public function getCommonPrice(): ?TypePriceNullable { return $this->commonPrice; } - public function setCommonPrice(?TypePrice $commonPrice): static + public function setCommonPrice(?TypePriceNullable $commonPrice): static { $this->commonPrice = $commonPrice; return $this; } - public function getBuyPrice(): ?TypePrice + public function getBuyPrice(): ?TypePriceNullable { return $this->buyPrice; } - public function setBuyPrice(?TypePrice $buyPrice): static + public function setBuyPrice(?TypePriceNullable $buyPrice): static { $this->buyPrice = $buyPrice; return $this; diff --git a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Price/ActionPrice.php b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Price/ActionPrice.php old mode 100644 new mode 100755 index aedf840..7ef0fd4 --- a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Price/ActionPrice.php +++ b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Price/ActionPrice.php @@ -3,43 +3,43 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item\Price; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class ActionPrice extends Entity { - protected ?TypePrice $price; - protected ?TypeDate $fromDate; - protected ?TypeDate $toDate; + protected ?TypePriceNullable $price; + protected ?TypeDateNullable $fromDate; + protected ?TypeDateNullable $toDate; - public function getPrice(): ?TypePrice + public function getPrice(): ?TypePriceNullable { return $this->price; } - public function setPrice(?TypePrice $price): static + public function setPrice(?TypePriceNullable $price): static { $this->price = $price; return $this; } - public function getFromDate(): ?TypeDate + public function getFromDate(): ?TypeDateNullable { return $this->fromDate; } - public function setFromDate(?TypeDate $fromDate): static + public function setFromDate(?TypeDateNullable $fromDate): static { $this->fromDate = $fromDate; return $this; } - public function getToDate(): ?TypeDate + public function getToDate(): ?TypeDateNullable { return $this->toDate; } - public function setToDate(?TypeDate $toDate): static + public function setToDate(?TypeDateNullable $toDate): static { $this->toDate = $toDate; return $this; diff --git a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithVat.php b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithVat.php old mode 100644 new mode 100755 index 9f505de..a777f0f --- a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithVat.php +++ b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithVat.php @@ -3,46 +3,46 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceRatio; use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item\PriceWithVat\ActionPrice; class PriceWithVat extends Entity { - protected ?TypePrice $price; - protected ?TypePrice $commonPrice; - protected ?TypePrice $buyPrice; + protected ?TypePriceNullable $price; + protected ?TypePriceNullable $commonPrice; + protected ?TypePriceNullable $buyPrice; protected ?TypePriceRatio $priceRatio; protected ?ActionPrice $actionPrice; - public function getPrice(): ?TypePrice + public function getPrice(): ?TypePriceNullable { return $this->price; } - public function setPrice(?TypePrice $price): static + public function setPrice(?TypePriceNullable $price): static { $this->price = $price; return $this; } - public function getCommonPrice(): ?TypePrice + public function getCommonPrice(): ?TypePriceNullable { return $this->commonPrice; } - public function setCommonPrice(?TypePrice $commonPrice): static + public function setCommonPrice(?TypePriceNullable $commonPrice): static { $this->commonPrice = $commonPrice; return $this; } - public function getBuyPrice(): ?TypePrice + public function getBuyPrice(): ?TypePriceNullable { return $this->buyPrice; } - public function setBuyPrice(?TypePrice $buyPrice): static + public function setBuyPrice(?TypePriceNullable $buyPrice): static { $this->buyPrice = $buyPrice; return $this; diff --git a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithVat/ActionPrice.php b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithVat/ActionPrice.php old mode 100644 new mode 100755 index d2deecb..603aa14 --- a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithVat/ActionPrice.php +++ b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithVat/ActionPrice.php @@ -3,43 +3,43 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item\PriceWithVat; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class ActionPrice extends Entity { - protected ?TypePrice $price; - protected ?TypeDate $fromDate; - protected ?TypeDate $toDate; + protected ?TypePriceNullable $price; + protected ?TypeDateNullable $fromDate; + protected ?TypeDateNullable $toDate; - public function getPrice(): ?TypePrice + public function getPrice(): ?TypePriceNullable { return $this->price; } - public function setPrice(?TypePrice $price): static + public function setPrice(?TypePriceNullable $price): static { $this->price = $price; return $this; } - public function getFromDate(): ?TypeDate + public function getFromDate(): ?TypeDateNullable { return $this->fromDate; } - public function setFromDate(?TypeDate $fromDate): static + public function setFromDate(?TypeDateNullable $fromDate): static { $this->fromDate = $fromDate; return $this; } - public function getToDate(): ?TypeDate + public function getToDate(): ?TypeDateNullable { return $this->toDate; } - public function setToDate(?TypeDate $toDate): static + public function setToDate(?TypeDateNullable $toDate): static { $this->toDate = $toDate; return $this; diff --git a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithoutVat.php b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithoutVat.php old mode 100644 new mode 100755 index 4ffa180..cf78d06 --- a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithoutVat.php +++ b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithoutVat.php @@ -3,46 +3,46 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceRatio; use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item\PriceWithoutVat\ActionPrice; class PriceWithoutVat extends Entity { - protected ?TypePrice $price; - protected ?TypePrice $commonPrice; - protected ?TypePrice $buyPrice; + protected ?TypePriceNullable $price; + protected ?TypePriceNullable $commonPrice; + protected ?TypePriceNullable $buyPrice; protected ?TypePriceRatio $priceRatio; protected ?ActionPrice $actionPrice; - public function getPrice(): ?TypePrice + public function getPrice(): ?TypePriceNullable { return $this->price; } - public function setPrice(?TypePrice $price): static + public function setPrice(?TypePriceNullable $price): static { $this->price = $price; return $this; } - public function getCommonPrice(): ?TypePrice + public function getCommonPrice(): ?TypePriceNullable { return $this->commonPrice; } - public function setCommonPrice(?TypePrice $commonPrice): static + public function setCommonPrice(?TypePriceNullable $commonPrice): static { $this->commonPrice = $commonPrice; return $this; } - public function getBuyPrice(): ?TypePrice + public function getBuyPrice(): ?TypePriceNullable { return $this->buyPrice; } - public function setBuyPrice(?TypePrice $buyPrice): static + public function setBuyPrice(?TypePriceNullable $buyPrice): static { $this->buyPrice = $buyPrice; return $this; diff --git a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithoutVat/ActionPrice.php b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithoutVat/ActionPrice.php old mode 100644 new mode 100755 index 9b906c3..8aecfe1 --- a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithoutVat/ActionPrice.php +++ b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/PriceWithoutVat/ActionPrice.php @@ -3,43 +3,43 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest\Data\Item\PriceWithoutVat; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class ActionPrice extends Entity { - protected ?TypePrice $price; - protected ?TypeDate $fromDate; - protected ?TypeDate $toDate; + protected ?TypePriceNullable $price; + protected ?TypeDateNullable $fromDate; + protected ?TypeDateNullable $toDate; - public function getPrice(): ?TypePrice + public function getPrice(): ?TypePriceNullable { return $this->price; } - public function setPrice(?TypePrice $price): static + public function setPrice(?TypePriceNullable $price): static { $this->price = $price; return $this; } - public function getFromDate(): ?TypeDate + public function getFromDate(): ?TypeDateNullable { return $this->fromDate; } - public function setFromDate(?TypeDate $fromDate): static + public function setFromDate(?TypeDateNullable $fromDate): static { $this->fromDate = $fromDate; return $this; } - public function getToDate(): ?TypeDate + public function getToDate(): ?TypeDateNullable { return $this->toDate; } - public function setToDate(?TypeDate $toDate): static + public function setToDate(?TypeDateNullable $toDate): static { $this->toDate = $toDate; return $this; diff --git a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Prices.php b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Prices.php new file mode 100755 index 0000000..7aacb73 --- /dev/null +++ b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Prices.php @@ -0,0 +1,22 @@ +purchasePrice; + } + + public function setPurchasePrice(?PurchasePrice $purchasePrice): static + { + $this->purchasePrice = $purchasePrice; + return $this; + } +} diff --git a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Prices/PurchasePrice.php b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Prices/PurchasePrice.php new file mode 100755 index 0000000..fdf5fab --- /dev/null +++ b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Prices/PurchasePrice.php @@ -0,0 +1,46 @@ +price; + } + + public function setPrice(?TypePriceNullable $price): static + { + $this->price = $price; + return $this; + } + + public function getVatRate(): ?TypePriceNullable + { + return $this->vatRate; + } + + public function setVatRate(?TypePriceNullable $vatRate): static + { + $this->vatRate = $vatRate; + return $this; + } + + public function getIncludingVat(): ?bool + { + return $this->includingVat; + } + + public function setIncludingVat(?bool $includingVat): static + { + $this->includingVat = $includingVat; + return $this; + } +} diff --git a/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Sales.php b/src/Endpoint/PriceLists/UpdatePricelistRequest/UpdatePricelistRequest/Data/Item/Sales.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/PriceLists/UpdatePricelistResponse/UpdatePricelistResponse.php b/src/Endpoint/PriceLists/UpdatePricelistResponse/UpdatePricelistResponse.php old mode 100644 new mode 100755 index 0d5c572..43a01b6 --- a/src/Endpoint/PriceLists/UpdatePricelistResponse/UpdatePricelistResponse.php +++ b/src/Endpoint/PriceLists/UpdatePricelistResponse/UpdatePricelistResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistResponse\UpdatePricelistResponse\Data; class UpdatePricelistResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/PriceLists/UpdatePricelistResponse/UpdatePricelistResponse/Data.php b/src/Endpoint/PriceLists/UpdatePricelistResponse/UpdatePricelistResponse/Data.php new file mode 100755 index 0000000..d315e27 --- /dev/null +++ b/src/Endpoint/PriceLists/UpdatePricelistResponse/UpdatePricelistResponse/Data.php @@ -0,0 +1,9 @@ + false]; + + public function getRequestEntityClass(): string + { + return CreateProductAvailabilityRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateProductAvailabilityResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/availabilities'; + } +} diff --git a/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityRequest/CreateProductAvailabilityRequest.php b/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityRequest/CreateProductAvailabilityRequest.php new file mode 100755 index 0000000..1fde5e1 --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityRequest/CreateProductAvailabilityRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityRequest/CreateProductAvailabilityRequest/Data.php b/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityRequest/CreateProductAvailabilityRequest/Data.php new file mode 100755 index 0000000..ba8326f --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityRequest/CreateProductAvailabilityRequest/Data.php @@ -0,0 +1,94 @@ +name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getIndexName(): ?string + { + return $this->indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getColor(): ?TypeColor + { + return $this->color; + } + + public function setColor(?TypeColor $color): static + { + $this->color = $color; + return $this; + } + + public function getOnStockInHours(): ?int + { + return $this->onStockInHours; + } + + public function setOnStockInHours(?int $onStockInHours): static + { + $this->onStockInHours = $onStockInHours; + return $this; + } + + public function getDeliveryInHours(): ?int + { + return $this->deliveryInHours; + } + + public function setDeliveryInHours(?int $deliveryInHours): static + { + $this->deliveryInHours = $deliveryInHours; + return $this; + } + + public function getGoogleAvailabilityId(): ?int + { + return $this->googleAvailabilityId; + } + + public function setGoogleAvailabilityId(?int $googleAvailabilityId): static + { + $this->googleAvailabilityId = $googleAvailabilityId; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse.php b/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse.php new file mode 100755 index 0000000..3af3629 --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse/Data.php b/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse/Data.php new file mode 100755 index 0000000..089b065 --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse/Data.php @@ -0,0 +1,22 @@ +availability; + } + + public function setAvailability(Availability $availability): static + { + $this->availability = $availability; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse/Data/Availability.php b/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse/Data/Availability.php new file mode 100755 index 0000000..1e2accc --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse/Data/Availability.php @@ -0,0 +1,118 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getIndexName(): ?string + { + return $this->indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getColor(): ?string + { + return $this->color; + } + + public function setColor(?string $color): static + { + $this->color = $color; + return $this; + } + + public function isSystem(): bool + { + return $this->system; + } + + public function setSystem(bool $system): static + { + $this->system = $system; + return $this; + } + + public function getOnStockInHours(): ?int + { + return $this->onStockInHours; + } + + public function setOnStockInHours(?int $onStockInHours): static + { + $this->onStockInHours = $onStockInHours; + return $this; + } + + public function getDeliveryInHours(): ?int + { + return $this->deliveryInHours; + } + + public function setDeliveryInHours(?int $deliveryInHours): static + { + $this->deliveryInHours = $deliveryInHours; + return $this; + } + + public function getGoogleAvailability(): ?GoogleAvailability + { + return $this->googleAvailability; + } + + public function setGoogleAvailability(?GoogleAvailability $googleAvailability): static + { + $this->googleAvailability = $googleAvailability; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse/Data/Availability/GoogleAvailability.php b/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse/Data/Availability/GoogleAvailability.php new file mode 100755 index 0000000..f2aa49c --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/CreateProductAvailabilityResponse/CreateProductAvailabilityResponse/Data/Availability/GoogleAvailability.php @@ -0,0 +1,33 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + 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/ProductAvailabilities/DeleteProductAvailability.php b/src/Endpoint/ProductAvailabilities/DeleteProductAvailability.php new file mode 100755 index 0000000..31ab6e1 --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/DeleteProductAvailability.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteProductAvailabilityResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/availabilities/{id}'; + } +} diff --git a/src/Endpoint/ProductAvailabilities/DeleteProductAvailabilityResponse/DeleteProductAvailabilityResponse.php b/src/Endpoint/ProductAvailabilities/DeleteProductAvailabilityResponse/DeleteProductAvailabilityResponse.php new file mode 100755 index 0000000..9446e64 --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/DeleteProductAvailabilityResponse/DeleteProductAvailabilityResponse.php @@ -0,0 +1,34 @@ +data; + } + + public function setData(null $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilities.php b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilities.php new file mode 100755 index 0000000..a784c3f --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilities.php @@ -0,0 +1,33 @@ + false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfProductsAvailabilitiesResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/availabilities'; + } +} diff --git a/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse.php b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse.php new file mode 100755 index 0000000..0a25abf --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data.php b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data.php new file mode 100755 index 0000000..2900f32 --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data.php @@ -0,0 +1,35 @@ +availabilities; + } + + public function setAvailabilities(Availabilities $availabilities): static + { + $this->availabilities = $availabilities; + return $this; + } + + public function getDefaultAvailabilities(): DefaultAvailabilities + { + return $this->defaultAvailabilities; + } + + public function setDefaultAvailabilities(DefaultAvailabilities $defaultAvailabilities): static + { + $this->defaultAvailabilities = $defaultAvailabilities; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities.php b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities.php new file mode 100755 index 0000000..ea37b1b --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities.php @@ -0,0 +1,31 @@ + + * @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 Availabilities extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\ProductAvailabilities\GetListOfProductsAvailabilitiesResponse\GetListOfProductsAvailabilitiesResponse\Data\Availabilities\Item'; + } +} diff --git a/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item.php b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item.php new file mode 100755 index 0000000..c097592 --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item.php @@ -0,0 +1,118 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getIndexName(): ?string + { + return $this->indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getColor(): ?string + { + return $this->color; + } + + public function setColor(?string $color): static + { + $this->color = $color; + return $this; + } + + public function isSystem(): bool + { + return $this->system; + } + + public function setSystem(bool $system): static + { + $this->system = $system; + return $this; + } + + public function getOnStockInHours(): ?int + { + return $this->onStockInHours; + } + + public function setOnStockInHours(?int $onStockInHours): static + { + $this->onStockInHours = $onStockInHours; + return $this; + } + + public function getDeliveryInHours(): ?int + { + return $this->deliveryInHours; + } + + public function setDeliveryInHours(?int $deliveryInHours): static + { + $this->deliveryInHours = $deliveryInHours; + return $this; + } + + public function getGoogleAvailability(): ?GoogleAvailability + { + return $this->googleAvailability; + } + + public function setGoogleAvailability(?GoogleAvailability $googleAvailability): static + { + $this->googleAvailability = $googleAvailability; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item/GoogleAvailability.php b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item/GoogleAvailability.php new file mode 100755 index 0000000..70ab1ae --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item/GoogleAvailability.php @@ -0,0 +1,33 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + 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/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/DefaultAvailabilities.php b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/DefaultAvailabilities.php old mode 100644 new mode 100755 similarity index 88% rename from src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/DefaultAvailabilities.php rename to src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/DefaultAvailabilities.php index 2c46187..21af1dd --- a/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/DefaultAvailabilities.php +++ b/src/Endpoint/ProductAvailabilities/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/DefaultAvailabilities.php @@ -1,6 +1,6 @@ true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateProductAvailabilityRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateProductAvailabilityResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/availabilities/{id}'; + } +} diff --git a/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityRequest/UpdateProductAvailabilityRequest.php b/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityRequest/UpdateProductAvailabilityRequest.php new file mode 100755 index 0000000..6ad4339 --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityRequest/UpdateProductAvailabilityRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityRequest/UpdateProductAvailabilityRequest/Data.php b/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityRequest/UpdateProductAvailabilityRequest/Data.php new file mode 100755 index 0000000..1348236 --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityRequest/UpdateProductAvailabilityRequest/Data.php @@ -0,0 +1,94 @@ +name; + } + + public function setName(?string $name): static + { + $this->name = $name; + return $this; + } + + public function getIndexName(): ?string + { + return $this->indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getColor(): ?TypeColor + { + return $this->color; + } + + public function setColor(?TypeColor $color): static + { + $this->color = $color; + return $this; + } + + public function getOnStockInHours(): ?int + { + return $this->onStockInHours; + } + + public function setOnStockInHours(?int $onStockInHours): static + { + $this->onStockInHours = $onStockInHours; + return $this; + } + + public function getDeliveryInHours(): ?int + { + return $this->deliveryInHours; + } + + public function setDeliveryInHours(?int $deliveryInHours): static + { + $this->deliveryInHours = $deliveryInHours; + return $this; + } + + public function getGoogleAvailabilityId(): ?int + { + return $this->googleAvailabilityId; + } + + public function setGoogleAvailabilityId(?int $googleAvailabilityId): static + { + $this->googleAvailabilityId = $googleAvailabilityId; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse.php b/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse.php new file mode 100755 index 0000000..c049d74 --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse/Data.php b/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse/Data.php new file mode 100755 index 0000000..667c252 --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse/Data.php @@ -0,0 +1,22 @@ +availability; + } + + public function setAvailability(Availability $availability): static + { + $this->availability = $availability; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse/Data/Availability.php b/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse/Data/Availability.php new file mode 100755 index 0000000..0b297e3 --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse/Data/Availability.php @@ -0,0 +1,118 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getIndexName(): ?string + { + return $this->indexName; + } + + public function setIndexName(?string $indexName): static + { + $this->indexName = $indexName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getColor(): ?string + { + return $this->color; + } + + public function setColor(?string $color): static + { + $this->color = $color; + return $this; + } + + public function isSystem(): bool + { + return $this->system; + } + + public function setSystem(bool $system): static + { + $this->system = $system; + return $this; + } + + public function getOnStockInHours(): ?int + { + return $this->onStockInHours; + } + + public function setOnStockInHours(?int $onStockInHours): static + { + $this->onStockInHours = $onStockInHours; + return $this; + } + + public function getDeliveryInHours(): ?int + { + return $this->deliveryInHours; + } + + public function setDeliveryInHours(?int $deliveryInHours): static + { + $this->deliveryInHours = $deliveryInHours; + return $this; + } + + public function getGoogleAvailability(): ?GoogleAvailability + { + return $this->googleAvailability; + } + + public function setGoogleAvailability(?GoogleAvailability $googleAvailability): static + { + $this->googleAvailability = $googleAvailability; + return $this; + } +} diff --git a/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse/Data/Availability/GoogleAvailability.php b/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse/Data/Availability/GoogleAvailability.php new file mode 100755 index 0000000..e718fce --- /dev/null +++ b/src/Endpoint/ProductAvailabilities/UpdateProductAvailabilityResponse/UpdateProductAvailabilityResponse/Data/Availability/GoogleAvailability.php @@ -0,0 +1,33 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + 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/ProductGifts/CreateProductGift.php b/src/Endpoint/ProductGifts/CreateProductGift.php new file mode 100755 index 0000000..9f65417 --- /dev/null +++ b/src/Endpoint/ProductGifts/CreateProductGift.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return CreateProductGiftRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateProductGiftResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/gifts'; + } +} diff --git a/src/Endpoint/ProductGifts/CreateProductGiftRequest/CreateProductGiftRequest.php b/src/Endpoint/ProductGifts/CreateProductGiftRequest/CreateProductGiftRequest.php new file mode 100755 index 0000000..263602a --- /dev/null +++ b/src/Endpoint/ProductGifts/CreateProductGiftRequest/CreateProductGiftRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ProductGifts/CreateProductGiftRequest/CreateProductGiftRequest/Data.php b/src/Endpoint/ProductGifts/CreateProductGiftRequest/CreateProductGiftRequest/Data.php new file mode 100755 index 0000000..3c34f98 --- /dev/null +++ b/src/Endpoint/ProductGifts/CreateProductGiftRequest/CreateProductGiftRequest/Data.php @@ -0,0 +1,21 @@ +giftCode; + } + + public function setGiftCode(string $giftCode): static + { + $this->giftCode = $giftCode; + return $this; + } +} diff --git a/src/Endpoint/Products/CreateProductGiftResponse/CreateProductGiftResponse.php b/src/Endpoint/ProductGifts/CreateProductGiftResponse/CreateProductGiftResponse.php old mode 100644 new mode 100755 similarity index 77% rename from src/Endpoint/Products/CreateProductGiftResponse/CreateProductGiftResponse.php rename to src/Endpoint/ProductGifts/CreateProductGiftResponse/CreateProductGiftResponse.php index a7e8fad..42ecbe9 --- a/src/Endpoint/Products/CreateProductGiftResponse/CreateProductGiftResponse.php +++ b/src/Endpoint/ProductGifts/CreateProductGiftResponse/CreateProductGiftResponse.php @@ -1,10 +1,10 @@ items; + } + + public function setItems(ProductGifts $items): static + { + $this->items = $items; + return $this; + } +} diff --git a/src/Endpoint/ProductGifts/GetListOfProductGifts.php b/src/Endpoint/ProductGifts/GetListOfProductGifts.php new file mode 100755 index 0000000..e164604 --- /dev/null +++ b/src/Endpoint/ProductGifts/GetListOfProductGifts.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfProductGiftsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/gifts'; + } +} diff --git a/src/Endpoint/Products/GetListOfProductGiftsResponse/GetListOfProductGiftsResponse.php b/src/Endpoint/ProductGifts/GetListOfProductGiftsResponse/GetListOfProductGiftsResponse.php old mode 100644 new mode 100755 similarity index 76% rename from src/Endpoint/Products/GetListOfProductGiftsResponse/GetListOfProductGiftsResponse.php rename to src/Endpoint/ProductGifts/GetListOfProductGiftsResponse/GetListOfProductGiftsResponse.php index b5476dd..a99d39f --- a/src/Endpoint/Products/GetListOfProductGiftsResponse/GetListOfProductGiftsResponse.php +++ b/src/Endpoint/ProductGifts/GetListOfProductGiftsResponse/GetListOfProductGiftsResponse.php @@ -1,10 +1,10 @@ items; + } + + public function setItems(ProductGifts $items): static + { + $this->items = $items; + return $this; + } +} diff --git a/src/Endpoint/ProductGifts/SteGiftsToProduct.php b/src/Endpoint/ProductGifts/SteGiftsToProduct.php new file mode 100755 index 0000000..a1bfe32 --- /dev/null +++ b/src/Endpoint/ProductGifts/SteGiftsToProduct.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return SteGiftsToProductRequest::class; + } + + public function getResponseEntityClass(): string + { + return SteGiftsToProductResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/gifts'; + } +} diff --git a/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest.php b/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest.php new file mode 100755 index 0000000..19133a3 --- /dev/null +++ b/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest/Data.php b/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest/Data.php new file mode 100755 index 0000000..de12cbf --- /dev/null +++ b/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest/Data.php @@ -0,0 +1,22 @@ +giftCodes; + } + + public function setGiftCodes(GiftCodes $giftCodes): static + { + $this->giftCodes = $giftCodes; + return $this; + } +} diff --git a/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes.php b/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes.php new file mode 100755 index 0000000..7be5b85 --- /dev/null +++ b/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes.php @@ -0,0 +1,31 @@ + + * @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 GiftCodes extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\ProductGifts\SteGiftsToProductRequest\SteGiftsToProductRequest\Data\GiftCodes\Item'; + } +} diff --git a/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes/Item.php b/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes/Item.php new file mode 100755 index 0000000..125f145 --- /dev/null +++ b/src/Endpoint/ProductGifts/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes/Item.php @@ -0,0 +1,21 @@ +code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } +} diff --git a/src/Endpoint/Products/SteGiftsToProductResponse/SteGiftsToProductResponse.php b/src/Endpoint/ProductGifts/SteGiftsToProductResponse/SteGiftsToProductResponse.php old mode 100644 new mode 100755 similarity index 77% rename from src/Endpoint/Products/SteGiftsToProductResponse/SteGiftsToProductResponse.php rename to src/Endpoint/ProductGifts/SteGiftsToProductResponse/SteGiftsToProductResponse.php index af4a061..58829de --- a/src/Endpoint/Products/SteGiftsToProductResponse/SteGiftsToProductResponse.php +++ b/src/Endpoint/ProductGifts/SteGiftsToProductResponse/SteGiftsToProductResponse.php @@ -1,10 +1,10 @@ items; + } + + public function setItems(ProductGifts $items): static + { + $this->items = $items; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/CreateProductImages.php b/src/Endpoint/ProductImages/CreateProductImages.php new file mode 100755 index 0000000..24b1495 --- /dev/null +++ b/src/Endpoint/ProductImages/CreateProductImages.php @@ -0,0 +1,35 @@ + true, 'gallery' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return CreateProductImagesRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateProductImagesResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/images/{gallery}'; + } +} diff --git a/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest.php b/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest.php new file mode 100755 index 0000000..1b60c86 --- /dev/null +++ b/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest/Data.php b/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest/Data.php new file mode 100755 index 0000000..da21be3 --- /dev/null +++ b/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest/Data.php @@ -0,0 +1,22 @@ +images; + } + + public function setImages(Images $images): static + { + $this->images = $images; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images.php b/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images.php new file mode 100755 index 0000000..a7c0cdd --- /dev/null +++ b/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images.php @@ -0,0 +1,31 @@ + + * @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 Images extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\ProductImages\CreateProductImagesRequest\CreateProductImagesRequest\Data\Images\Item'; + } +} diff --git a/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images/Item.php b/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images/Item.php new file mode 100755 index 0000000..5a20549 --- /dev/null +++ b/src/Endpoint/ProductImages/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images/Item.php @@ -0,0 +1,45 @@ +sourceUrl; + } + + public function setSourceUrl(string $sourceUrl): static + { + $this->sourceUrl = $sourceUrl; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } +} diff --git a/src/Endpoint/Products/CreateProductImagesResponse/CreateProductImagesResponse.php b/src/Endpoint/ProductImages/CreateProductImagesResponse/CreateProductImagesResponse.php old mode 100644 new mode 100755 similarity index 76% rename from src/Endpoint/Products/CreateProductImagesResponse/CreateProductImagesResponse.php rename to src/Endpoint/ProductImages/CreateProductImagesResponse/CreateProductImagesResponse.php index b07e8b5..d76954d --- a/src/Endpoint/Products/CreateProductImagesResponse/CreateProductImagesResponse.php +++ b/src/Endpoint/ProductImages/CreateProductImagesResponse/CreateProductImagesResponse.php @@ -1,10 +1,10 @@ jobId; + } + + public function setJobId(string $jobId): static + { + $this->jobId = $jobId; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/DeleteAllProductImagesInGallery.php b/src/Endpoint/ProductImages/DeleteAllProductImagesInGallery.php new file mode 100755 index 0000000..614b197 --- /dev/null +++ b/src/Endpoint/ProductImages/DeleteAllProductImagesInGallery.php @@ -0,0 +1,33 @@ + true, 'gallery' => true]; + protected array $supportedQueryParams = ['language' => false, 'removeReference' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteAllProductImagesInGalleryResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/images/{gallery}'; + } +} diff --git a/src/Endpoint/ProductImages/DeleteAllProductImagesInGalleryResponse/DeleteAllProductImagesInGalleryResponse.php b/src/Endpoint/ProductImages/DeleteAllProductImagesInGalleryResponse/DeleteAllProductImagesInGalleryResponse.php new file mode 100755 index 0000000..e280959 --- /dev/null +++ b/src/Endpoint/ProductImages/DeleteAllProductImagesInGalleryResponse/DeleteAllProductImagesInGalleryResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/DeleteAllProductImagesInGalleryResponse/DeleteAllProductImagesInGalleryResponse/Data.php b/src/Endpoint/ProductImages/DeleteAllProductImagesInGalleryResponse/DeleteAllProductImagesInGalleryResponse/Data.php new file mode 100755 index 0000000..4558085 --- /dev/null +++ b/src/Endpoint/ProductImages/DeleteAllProductImagesInGalleryResponse/DeleteAllProductImagesInGalleryResponse/Data.php @@ -0,0 +1,9 @@ + true, 'gallery' => true, 'imageName' => true]; + protected array $supportedQueryParams = ['language' => false, 'removeReference' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteOneProductImageResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/images/{gallery}/{imageName}'; + } +} diff --git a/src/Endpoint/ProductImages/DeleteOneProductImageResponse/DeleteOneProductImageResponse.php b/src/Endpoint/ProductImages/DeleteOneProductImageResponse/DeleteOneProductImageResponse.php new file mode 100755 index 0000000..6677a58 --- /dev/null +++ b/src/Endpoint/ProductImages/DeleteOneProductImageResponse/DeleteOneProductImageResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/DeleteOneProductImageResponse/DeleteOneProductImageResponse/Data.php b/src/Endpoint/ProductImages/DeleteOneProductImageResponse/DeleteOneProductImageResponse/Data.php new file mode 100755 index 0000000..45da4f7 --- /dev/null +++ b/src/Endpoint/ProductImages/DeleteOneProductImageResponse/DeleteOneProductImageResponse/Data.php @@ -0,0 +1,9 @@ + true, 'gallery' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfProductImagesResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/images/{gallery}'; + } +} diff --git a/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse.php b/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse.php old mode 100644 new mode 100755 similarity index 75% rename from src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse.php rename to src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse.php index e2c0a6d..7b881ca --- a/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse.php +++ b/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse.php @@ -1,10 +1,10 @@ images; + } + + public function setImages(Images $images): static + { + $this->images = $images; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images.php b/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images.php new file mode 100755 index 0000000..8e322a4 --- /dev/null +++ b/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images.php @@ -0,0 +1,31 @@ + + * @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 Images extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetListOfProductImagesResponse\GetListOfProductImagesResponse\Data\Images\Item'; + } +} diff --git a/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item.php b/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item.php new file mode 100755 index 0000000..f814a38 --- /dev/null +++ b/src/Endpoint/ProductImages/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item.php @@ -0,0 +1,94 @@ +name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getChangeTime(): TypeDateTimeNullable + { + return $this->changeTime; + } + + public function setChangeTime(TypeDateTimeNullable $changeTime): static + { + $this->changeTime = $changeTime; + return $this; + } + + public function getSeoName(): string + { + return $this->seoName; + } + + public function setSeoName(string $seoName): static + { + $this->seoName = $seoName; + return $this; + } + + public function getCdnName(): string + { + return $this->cdnName; + } + + public function setCdnName(string $cdnName): static + { + $this->cdnName = $cdnName; + return $this; + } + + public function isIsMainImage(): bool + { + return $this->isMainImage; + } + + public function setIsMainImage(bool $isMainImage): static + { + $this->isMainImage = $isMainImage; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/GetProductImagesUpdate.php b/src/Endpoint/ProductImages/GetProductImagesUpdate.php new file mode 100755 index 0000000..791a719 --- /dev/null +++ b/src/Endpoint/ProductImages/GetProductImagesUpdate.php @@ -0,0 +1,34 @@ + true, 'gallery' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return GetProductImagesUpdateRequest::class; + } + + public function getResponseEntityClass(): string + { + return GetProductImagesUpdateResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/images/{gallery}'; + } +} diff --git a/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest.php b/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest.php new file mode 100755 index 0000000..a0dbe9a --- /dev/null +++ b/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data.php b/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data.php new file mode 100755 index 0000000..9dcaba4 --- /dev/null +++ b/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data.php @@ -0,0 +1,22 @@ +images; + } + + public function setImages(Images $images): static + { + $this->images = $images; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images.php b/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images.php new file mode 100755 index 0000000..dcb2ac6 --- /dev/null +++ b/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images.php @@ -0,0 +1,31 @@ + + * @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 Images extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetProductImagesUpdateRequest\GetProductImagesUpdateRequest\Data\Images\Item'; + } +} diff --git a/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images/Item.php b/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images/Item.php new file mode 100755 index 0000000..717d980 --- /dev/null +++ b/src/Endpoint/ProductImages/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images/Item.php @@ -0,0 +1,45 @@ +name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } +} diff --git a/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse.php b/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse.php old mode 100644 new mode 100755 similarity index 75% rename from src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse.php rename to src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse.php index fcda36e..67bdbce --- a/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse.php +++ b/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse.php @@ -1,10 +1,10 @@ images; + } + + public function setImages(Images $images): static + { + $this->images = $images; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images.php b/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images.php new file mode 100755 index 0000000..c7d7780 --- /dev/null +++ b/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images.php @@ -0,0 +1,31 @@ + + * @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 Images extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetProductImagesUpdateResponse\GetProductImagesUpdateResponse\Data\Images\Item'; + } +} diff --git a/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item.php b/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item.php new file mode 100755 index 0000000..1f73266 --- /dev/null +++ b/src/Endpoint/ProductImages/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item.php @@ -0,0 +1,94 @@ +name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getChangeTime(): TypeDateTimeNullable + { + return $this->changeTime; + } + + public function setChangeTime(TypeDateTimeNullable $changeTime): static + { + $this->changeTime = $changeTime; + return $this; + } + + public function getSeoName(): string + { + return $this->seoName; + } + + public function setSeoName(string $seoName): static + { + $this->seoName = $seoName; + return $this; + } + + public function getCdnName(): string + { + return $this->cdnName; + } + + public function setCdnName(string $cdnName): static + { + $this->cdnName = $cdnName; + return $this; + } + + public function isIsMainImage(): bool + { + return $this->isMainImage; + } + + public function setIsMainImage(bool $isMainImage): static + { + $this->isMainImage = $isMainImage; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/UpdateProductImagesSource.php b/src/Endpoint/ProductImages/UpdateProductImagesSource.php new file mode 100755 index 0000000..9978c47 --- /dev/null +++ b/src/Endpoint/ProductImages/UpdateProductImagesSource.php @@ -0,0 +1,35 @@ + true, 'gallery' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateProductImagesSourceRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateProductImagesSourceResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/images/{gallery}/source'; + } +} diff --git a/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest.php b/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest.php new file mode 100755 index 0000000..7aa8c1d --- /dev/null +++ b/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data.php b/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data.php new file mode 100755 index 0000000..a56c802 --- /dev/null +++ b/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data.php @@ -0,0 +1,22 @@ +images; + } + + public function setImages(Images $images): static + { + $this->images = $images; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images.php b/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images.php new file mode 100755 index 0000000..260e5e8 --- /dev/null +++ b/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images.php @@ -0,0 +1,31 @@ + + * @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 Images extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\ProductImages\UpdateProductImagesSourceRequest\UpdateProductImagesSourceRequest\Data\Images\Item'; + } +} diff --git a/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images/Item.php b/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images/Item.php new file mode 100755 index 0000000..232f5f8 --- /dev/null +++ b/src/Endpoint/ProductImages/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images/Item.php @@ -0,0 +1,57 @@ +name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getSourceUrl(): string + { + return $this->sourceUrl; + } + + public function setSourceUrl(string $sourceUrl): static + { + $this->sourceUrl = $sourceUrl; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse.php b/src/Endpoint/ProductImages/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse.php new file mode 100755 index 0000000..03f7767 --- /dev/null +++ b/src/Endpoint/ProductImages/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ProductImages/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse/Data.php b/src/Endpoint/ProductImages/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse/Data.php new file mode 100755 index 0000000..3ba1b68 --- /dev/null +++ b/src/Endpoint/ProductImages/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse/Data.php @@ -0,0 +1,21 @@ +jobId; + } + + public function setJobId(string $jobId): static + { + $this->jobId = $jobId; + return $this; + } +} diff --git a/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLink.php b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLink.php new file mode 100755 index 0000000..d1540bf --- /dev/null +++ b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLink.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return CreateRelatedFileLinkRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateRelatedFileLinkResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/related-files'; + } +} diff --git a/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkRequest/CreateRelatedFileLinkRequest.php b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkRequest/CreateRelatedFileLinkRequest.php new file mode 100755 index 0000000..bef4ccf --- /dev/null +++ b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkRequest/CreateRelatedFileLinkRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkRequest/CreateRelatedFileLinkRequest/Data.php b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkRequest/CreateRelatedFileLinkRequest/Data.php new file mode 100755 index 0000000..905cb2c --- /dev/null +++ b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkRequest/CreateRelatedFileLinkRequest/Data.php @@ -0,0 +1,33 @@ +sourceFileName; + } + + public function setSourceFileName(string $sourceFileName): static + { + $this->sourceFileName = $sourceFileName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } +} diff --git a/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse.php b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse.php new file mode 100755 index 0000000..7bc18d4 --- /dev/null +++ b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse/Data.php b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse/Data.php new file mode 100755 index 0000000..6570196 --- /dev/null +++ b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse/Data.php @@ -0,0 +1,22 @@ +relatedFiles; + } + + public function setRelatedFiles(RelatedFiles $relatedFiles): static + { + $this->relatedFiles = $relatedFiles; + return $this; + } +} diff --git a/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse/Data/RelatedFiles.php b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse/Data/RelatedFiles.php new file mode 100755 index 0000000..afd6a57 --- /dev/null +++ b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse/Data/RelatedFiles.php @@ -0,0 +1,31 @@ + + * @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 RelatedFiles extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\ProductRelatedFiles\CreateRelatedFileLinkResponse\CreateRelatedFileLinkResponse\Data\RelatedFiles\Item'; + } +} diff --git a/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse/Data/RelatedFiles/Item.php b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse/Data/RelatedFiles/Item.php new file mode 100755 index 0000000..3117b66 --- /dev/null +++ b/src/Endpoint/ProductRelatedFiles/CreateRelatedFileLinkResponse/CreateRelatedFileLinkResponse/Data/RelatedFiles/Item.php @@ -0,0 +1,57 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getName(): ?string + { + return $this->name; + } + + public function setName(?string $name): static + { + $this->name = $name; + return $this; + } + + public function getUrl(): string + { + return $this->url; + } + + public function setUrl(string $url): static + { + $this->url = $url; + return $this; + } + + public function getSize(): ?int + { + return $this->size; + } + + public function setSize(?int $size): static + { + $this->size = $size; + return $this; + } +} diff --git a/src/Endpoint/ProductRelatedFiles/DeleteOneProductRelatedFile.php b/src/Endpoint/ProductRelatedFiles/DeleteOneProductRelatedFile.php new file mode 100755 index 0000000..52d8b1e --- /dev/null +++ b/src/Endpoint/ProductRelatedFiles/DeleteOneProductRelatedFile.php @@ -0,0 +1,33 @@ + true, 'id' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteOneProductRelatedFileResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/related-files/{id}'; + } +} diff --git a/src/Endpoint/ProductRelatedFiles/DeleteOneProductRelatedFileResponse/DeleteOneProductRelatedFileResponse.php b/src/Endpoint/ProductRelatedFiles/DeleteOneProductRelatedFileResponse/DeleteOneProductRelatedFileResponse.php new file mode 100755 index 0000000..ac8a38c --- /dev/null +++ b/src/Endpoint/ProductRelatedFiles/DeleteOneProductRelatedFileResponse/DeleteOneProductRelatedFileResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/ProductRelatedFiles/DeleteOneProductRelatedFileResponse/DeleteOneProductRelatedFileResponse/Data.php b/src/Endpoint/ProductRelatedFiles/DeleteOneProductRelatedFileResponse/DeleteOneProductRelatedFileResponse/Data.php new file mode 100755 index 0000000..19922b8 --- /dev/null +++ b/src/Endpoint/ProductRelatedFiles/DeleteOneProductRelatedFileResponse/DeleteOneProductRelatedFileResponse/Data.php @@ -0,0 +1,9 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return AddItemToProductSetRequest::class; + } + + public function getResponseEntityClass(): string + { + return AddItemToProductSetResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/set'; + } +} diff --git a/src/Endpoint/ProductSets/AddItemToProductSetRequest/AddItemToProductSetRequest.php b/src/Endpoint/ProductSets/AddItemToProductSetRequest/AddItemToProductSetRequest.php new file mode 100755 index 0000000..648033a --- /dev/null +++ b/src/Endpoint/ProductSets/AddItemToProductSetRequest/AddItemToProductSetRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ProductSets/AddItemToProductSetRequest/AddItemToProductSetRequest/Data.php b/src/Endpoint/ProductSets/AddItemToProductSetRequest/AddItemToProductSetRequest/Data.php new file mode 100755 index 0000000..a3171e7 --- /dev/null +++ b/src/Endpoint/ProductSets/AddItemToProductSetRequest/AddItemToProductSetRequest/Data.php @@ -0,0 +1,22 @@ +setItem; + } + + public function setSetItem(SetItem $setItem): static + { + $this->setItem = $setItem; + return $this; + } +} diff --git a/src/Endpoint/Products/AddItemToProductSetRequest/AddItemToProductSetRequest/Data/SetItem.php b/src/Endpoint/ProductSets/AddItemToProductSetRequest/AddItemToProductSetRequest/Data/SetItem.php old mode 100644 new mode 100755 similarity index 85% rename from src/Endpoint/Products/AddItemToProductSetRequest/AddItemToProductSetRequest/Data/SetItem.php rename to src/Endpoint/ProductSets/AddItemToProductSetRequest/AddItemToProductSetRequest/Data/SetItem.php index 348f5ac..e9c4367 --- a/src/Endpoint/Products/AddItemToProductSetRequest/AddItemToProductSetRequest/Data/SetItem.php +++ b/src/Endpoint/ProductSets/AddItemToProductSetRequest/AddItemToProductSetRequest/Data/SetItem.php @@ -1,6 +1,6 @@ items; + } + + public function setItems(?Items $items): static + { + $this->items = $items; + return $this; + } +} diff --git a/src/Endpoint/ProductSets/AddItemToProductSetResponse/AddItemToProductSetResponse/Data/Items.php b/src/Endpoint/ProductSets/AddItemToProductSetResponse/AddItemToProductSetResponse/Data/Items.php new file mode 100755 index 0000000..ed9ee6d --- /dev/null +++ b/src/Endpoint/ProductSets/AddItemToProductSetResponse/AddItemToProductSetResponse/Data/Items.php @@ -0,0 +1,31 @@ + + * @property ProductSet[] $data + * @method ProductSet[] toArray() + * @method void set(int $key, ProductSet $item) + * @method null|ProductSet get(int $key) + * @method void add(ProductSet $item) + * @method null|ProductSet remove(int $key) + * @method bool removeItem(ProductSet $item, bool $strict = true) + * @method bool contains(ProductSet $item, bool $strict = true) + * @method null|ProductSet offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductSet $value) + */ +class Items extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductSet'; + } +} diff --git a/src/Endpoint/ProductSets/SetProductSetItems.php b/src/Endpoint/ProductSets/SetProductSetItems.php new file mode 100755 index 0000000..8653fd4 --- /dev/null +++ b/src/Endpoint/ProductSets/SetProductSetItems.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return SetProductSetItemsRequest::class; + } + + public function getResponseEntityClass(): string + { + return SetProductSetItemsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/set'; + } +} diff --git a/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest.php b/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest.php new file mode 100755 index 0000000..ccc57f2 --- /dev/null +++ b/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest/Data.php b/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest/Data.php new file mode 100755 index 0000000..eec9f27 --- /dev/null +++ b/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest/Data.php @@ -0,0 +1,22 @@ +setItems; + } + + public function setSetItems(SetItems $setItems): static + { + $this->setItems = $setItems; + return $this; + } +} diff --git a/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems.php b/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems.php new file mode 100755 index 0000000..823d90e --- /dev/null +++ b/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems.php @@ -0,0 +1,31 @@ + + * @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 SetItems extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\ProductSets\SetProductSetItemsRequest\SetProductSetItemsRequest\Data\SetItems\Item'; + } +} diff --git a/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems/Item.php b/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems/Item.php new file mode 100755 index 0000000..7640a35 --- /dev/null +++ b/src/Endpoint/ProductSets/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems/Item.php @@ -0,0 +1,34 @@ +code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getAmount(): TypePositiveAmount + { + return $this->amount; + } + + public function setAmount(TypePositiveAmount $amount): static + { + $this->amount = $amount; + return $this; + } +} diff --git a/src/Endpoint/Products/SetProductSetItemsResponse/SetProductSetItemsResponse.php b/src/Endpoint/ProductSets/SetProductSetItemsResponse/SetProductSetItemsResponse.php old mode 100644 new mode 100755 similarity index 76% rename from src/Endpoint/Products/SetProductSetItemsResponse/SetProductSetItemsResponse.php rename to src/Endpoint/ProductSets/SetProductSetItemsResponse/SetProductSetItemsResponse.php index 1eda729..095ea5b --- a/src/Endpoint/Products/SetProductSetItemsResponse/SetProductSetItemsResponse.php +++ b/src/Endpoint/ProductSets/SetProductSetItemsResponse/SetProductSetItemsResponse.php @@ -1,10 +1,10 @@ items; + } + + public function setItems(?Items $items): static + { + $this->items = $items; + return $this; + } +} diff --git a/src/Endpoint/ProductSets/SetProductSetItemsResponse/SetProductSetItemsResponse/Data/Items.php b/src/Endpoint/ProductSets/SetProductSetItemsResponse/SetProductSetItemsResponse/Data/Items.php new file mode 100755 index 0000000..6c4b774 --- /dev/null +++ b/src/Endpoint/ProductSets/SetProductSetItemsResponse/SetProductSetItemsResponse/Data/Items.php @@ -0,0 +1,31 @@ + + * @property ProductSet[] $data + * @method ProductSet[] toArray() + * @method void set(int $key, ProductSet $item) + * @method null|ProductSet get(int $key) + * @method void add(ProductSet $item) + * @method null|ProductSet remove(int $key) + * @method bool removeItem(ProductSet $item, bool $strict = true) + * @method bool contains(ProductSet $item, bool $strict = true) + * @method null|ProductSet offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductSet $value) + */ +class Items extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductSet'; + } +} diff --git a/src/Endpoint/Products/AddAlternativeProduct.php b/src/Endpoint/Products/AddAlternativeProduct.php deleted file mode 100644 index 00345ad..0000000 --- a/src/Endpoint/Products/AddAlternativeProduct.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return AddAlternativeProductRequest::class; - } - - public function getResponseEntityClass(): string - { - return AddAlternativeProductResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/alternativeProducts'; - } -} diff --git a/src/Endpoint/Products/AddAlternativeProductRequest/AddAlternativeProductRequest.php b/src/Endpoint/Products/AddAlternativeProductRequest/AddAlternativeProductRequest.php deleted file mode 100644 index a4b5ad2..0000000 --- a/src/Endpoint/Products/AddAlternativeProductRequest/AddAlternativeProductRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/AddAlternativeProductRequest/AddAlternativeProductRequest/Data.php b/src/Endpoint/Products/AddAlternativeProductRequest/AddAlternativeProductRequest/Data.php deleted file mode 100644 index 27a816c..0000000 --- a/src/Endpoint/Products/AddAlternativeProductRequest/AddAlternativeProductRequest/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -alternativeProduct; - } - - public function setAlternativeProduct(AlternativeProduct $alternativeProduct): static - { - $this->alternativeProduct = $alternativeProduct; - return $this; - } -} diff --git a/src/Endpoint/Products/AddAlternativeProductResponse/AddAlternativeProductResponse.php b/src/Endpoint/Products/AddAlternativeProductResponse/AddAlternativeProductResponse.php deleted file mode 100644 index cdab4bd..0000000 --- a/src/Endpoint/Products/AddAlternativeProductResponse/AddAlternativeProductResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/AddAlternativeProductResponse/AddAlternativeProductResponse/Data.php b/src/Endpoint/Products/AddAlternativeProductResponse/AddAlternativeProductResponse/Data.php deleted file mode 100644 index 3b55edf..0000000 --- a/src/Endpoint/Products/AddAlternativeProductResponse/AddAlternativeProductResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -items; - } - - public function setItems(Items $items): static - { - $this->items = $items; - return $this; - } -} diff --git a/src/Endpoint/Products/AddAlternativeProductResponse/AddAlternativeProductResponse/Data/Items.php b/src/Endpoint/Products/AddAlternativeProductResponse/AddAlternativeProductResponse/Data/Items.php deleted file mode 100644 index 5833bda..0000000 --- a/src/Endpoint/Products/AddAlternativeProductResponse/AddAlternativeProductResponse/Data/Items.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property RelatedProduct[] $data - * @method RelatedProduct[] toArray() - * @method void set(int $key, RelatedProduct $item) - * @method null|RelatedProduct get(int $key) - * @method void add(RelatedProduct $item) - * @method null|RelatedProduct remove(int $key) - * @method bool removeItem(RelatedProduct $item, bool $strict = true) - * @method bool contains(RelatedProduct $item, bool $strict = true) - * @method null|RelatedProduct offsetGet(int $offset) - * @method void offsetSet(int $offset, RelatedProduct $value) - */ -class Items extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\RelatedProduct'; - } -} diff --git a/src/Endpoint/Products/AddItemToProductSet.php b/src/Endpoint/Products/AddItemToProductSet.php deleted file mode 100644 index 239501e..0000000 --- a/src/Endpoint/Products/AddItemToProductSet.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return AddItemToProductSetRequest::class; - } - - public function getResponseEntityClass(): string - { - return AddItemToProductSetResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/set'; - } -} diff --git a/src/Endpoint/Products/AddItemToProductSetRequest/AddItemToProductSetRequest.php b/src/Endpoint/Products/AddItemToProductSetRequest/AddItemToProductSetRequest.php deleted file mode 100644 index c07e86a..0000000 --- a/src/Endpoint/Products/AddItemToProductSetRequest/AddItemToProductSetRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/AddItemToProductSetRequest/AddItemToProductSetRequest/Data.php b/src/Endpoint/Products/AddItemToProductSetRequest/AddItemToProductSetRequest/Data.php deleted file mode 100644 index afc813d..0000000 --- a/src/Endpoint/Products/AddItemToProductSetRequest/AddItemToProductSetRequest/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -setItem; - } - - public function setSetItem(SetItem $setItem): static - { - $this->setItem = $setItem; - return $this; - } -} diff --git a/src/Endpoint/Products/AddItemToProductSetResponse/AddItemToProductSetResponse/Data.php b/src/Endpoint/Products/AddItemToProductSetResponse/AddItemToProductSetResponse/Data.php deleted file mode 100644 index 81d64e1..0000000 --- a/src/Endpoint/Products/AddItemToProductSetResponse/AddItemToProductSetResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -items; - } - - public function setItems(?Items $items): static - { - $this->items = $items; - return $this; - } -} diff --git a/src/Endpoint/Products/AddItemToProductSetResponse/AddItemToProductSetResponse/Data/Items.php b/src/Endpoint/Products/AddItemToProductSetResponse/AddItemToProductSetResponse/Data/Items.php deleted file mode 100644 index fd95f17..0000000 --- a/src/Endpoint/Products/AddItemToProductSetResponse/AddItemToProductSetResponse/Data/Items.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductSet[] $data - * @method ProductSet[] toArray() - * @method void set(int $key, ProductSet $item) - * @method null|ProductSet get(int $key) - * @method void add(ProductSet $item) - * @method null|ProductSet remove(int $key) - * @method bool removeItem(ProductSet $item, bool $strict = true) - * @method bool contains(ProductSet $item, bool $strict = true) - * @method null|ProductSet offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductSet $value) - */ -class Items extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductSet'; - } -} diff --git a/src/Endpoint/Products/AddRelatedProduct.php b/src/Endpoint/Products/AddRelatedProduct.php deleted file mode 100644 index 501e38a..0000000 --- a/src/Endpoint/Products/AddRelatedProduct.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return AddRelatedProductRequest::class; - } - - public function getResponseEntityClass(): string - { - return AddRelatedProductResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/relatedProducts'; - } -} diff --git a/src/Endpoint/Products/AddRelatedProductRequest/AddRelatedProductRequest.php b/src/Endpoint/Products/AddRelatedProductRequest/AddRelatedProductRequest.php deleted file mode 100644 index dc4503a..0000000 --- a/src/Endpoint/Products/AddRelatedProductRequest/AddRelatedProductRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/AddRelatedProductRequest/AddRelatedProductRequest/Data.php b/src/Endpoint/Products/AddRelatedProductRequest/AddRelatedProductRequest/Data.php deleted file mode 100644 index fdcc646..0000000 --- a/src/Endpoint/Products/AddRelatedProductRequest/AddRelatedProductRequest/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -relatedProduct; - } - - public function setRelatedProduct(RelatedProduct $relatedProduct): static - { - $this->relatedProduct = $relatedProduct; - return $this; - } -} diff --git a/src/Endpoint/Products/AddRelatedProductResponse/AddRelatedProductResponse/Data.php b/src/Endpoint/Products/AddRelatedProductResponse/AddRelatedProductResponse/Data.php deleted file mode 100644 index 1212e03..0000000 --- a/src/Endpoint/Products/AddRelatedProductResponse/AddRelatedProductResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -items; - } - - public function setItems(Items $items): static - { - $this->items = $items; - return $this; - } -} diff --git a/src/Endpoint/Products/AddRelatedProductResponse/AddRelatedProductResponse/Data/Items.php b/src/Endpoint/Products/AddRelatedProductResponse/AddRelatedProductResponse/Data/Items.php deleted file mode 100644 index 5ab5837..0000000 --- a/src/Endpoint/Products/AddRelatedProductResponse/AddRelatedProductResponse/Data/Items.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property RelatedProduct[] $data - * @method RelatedProduct[] toArray() - * @method void set(int $key, RelatedProduct $item) - * @method null|RelatedProduct get(int $key) - * @method void add(RelatedProduct $item) - * @method null|RelatedProduct remove(int $key) - * @method bool removeItem(RelatedProduct $item, bool $strict = true) - * @method bool contains(RelatedProduct $item, bool $strict = true) - * @method null|RelatedProduct offsetGet(int $offset) - * @method void offsetSet(int $offset, RelatedProduct $value) - */ -class Items extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\RelatedProduct'; - } -} diff --git a/src/Endpoint/Products/CreateConsumptionTax.php b/src/Endpoint/Products/CreateConsumptionTax.php deleted file mode 100644 index 21d814b..0000000 --- a/src/Endpoint/Products/CreateConsumptionTax.php +++ /dev/null @@ -1,34 +0,0 @@ - false]; - - public function getRequestEntityClass(): string - { - return CreateConsumptionTaxRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateConsumptionTaxResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/consumption-taxes'; - } -} diff --git a/src/Endpoint/Products/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest.php b/src/Endpoint/Products/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest.php deleted file mode 100644 index 673730f..0000000 --- a/src/Endpoint/Products/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest/Data.php b/src/Endpoint/Products/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest/Data.php deleted file mode 100644 index 0a276ba..0000000 --- a/src/Endpoint/Products/CreateConsumptionTaxRequest/CreateConsumptionTaxRequest/Data.php +++ /dev/null @@ -1,58 +0,0 @@ -name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getPrice(): TypePrice - { - return $this->price; - } - - public function setPrice(TypePrice $price): static - { - $this->price = $price; - return $this; - } - - public function getCurrency(): string - { - return $this->currency; - } - - public function setCurrency(string $currency): static - { - $this->currency = $currency; - return $this; - } - - public function getIsVisible(): ?bool - { - return $this->isVisible; - } - - public function setIsVisible(?bool $isVisible): static - { - $this->isVisible = $isVisible; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateFilteringParameter.php b/src/Endpoint/Products/CreateFilteringParameter.php deleted file mode 100644 index e330912..0000000 --- a/src/Endpoint/Products/CreateFilteringParameter.php +++ /dev/null @@ -1,34 +0,0 @@ - false]; - - public function getRequestEntityClass(): string - { - return CreateFilteringParameterRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateFilteringParameterResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/filtering-parameters'; - } -} diff --git a/src/Endpoint/Products/CreateFilteringParameterRequest/CreateFilteringParameterRequest.php b/src/Endpoint/Products/CreateFilteringParameterRequest/CreateFilteringParameterRequest.php deleted file mode 100644 index 9dce416..0000000 --- a/src/Endpoint/Products/CreateFilteringParameterRequest/CreateFilteringParameterRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateFilteringParameterRequest/CreateFilteringParameterRequest/Data.php b/src/Endpoint/Products/CreateFilteringParameterRequest/CreateFilteringParameterRequest/Data.php deleted file mode 100644 index 0e765b0..0000000 --- a/src/Endpoint/Products/CreateFilteringParameterRequest/CreateFilteringParameterRequest/Data.php +++ /dev/null @@ -1,94 +0,0 @@ -name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(?string $code): static - { - $this->code = $code; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getGoogleMapping(): ?string - { - return $this->googleMapping; - } - - public function setGoogleMapping(?string $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getValues(): ProductFilteringParameterValues - { - return $this->values; - } - - public function setValues(ProductFilteringParameterValues $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateFilteringParameterResponse/CreateFilteringParameterResponse.php b/src/Endpoint/Products/CreateFilteringParameterResponse/CreateFilteringParameterResponse.php deleted file mode 100644 index f8f12cb..0000000 --- a/src/Endpoint/Products/CreateFilteringParameterResponse/CreateFilteringParameterResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data.php b/src/Endpoint/Products/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data.php deleted file mode 100644 index 2320b3e..0000000 --- a/src/Endpoint/Products/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data.php +++ /dev/null @@ -1,107 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getCode(): string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getGoogleMapping(): GoogleMappingType - { - return $this->googleMapping; - } - - public function setGoogleMapping(GoogleMappingType $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getValues(): ?Values - { - return $this->values; - } - - public function setValues(?Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data/Values.php b/src/Endpoint/Products/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data/Values.php deleted file mode 100644 index 19c55a5..0000000 --- a/src/Endpoint/Products/CreateFilteringParameterResponse/CreateFilteringParameterResponse/Data/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductFilteringParameterValue[] $data - * @method ProductFilteringParameterValue[] toArray() - * @method void set(int $key, ProductFilteringParameterValue $item) - * @method null|ProductFilteringParameterValue get(int $key) - * @method void add(ProductFilteringParameterValue $item) - * @method null|ProductFilteringParameterValue remove(int $key) - * @method bool removeItem(ProductFilteringParameterValue $item, bool $strict = true) - * @method bool contains(ProductFilteringParameterValue $item, bool $strict = true) - * @method null|ProductFilteringParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductFilteringParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductFilteringParameterValue'; - } -} diff --git a/src/Endpoint/Products/CreateFilteringParameterValue.php b/src/Endpoint/Products/CreateFilteringParameterValue.php deleted file mode 100644 index 5cab5f8..0000000 --- a/src/Endpoint/Products/CreateFilteringParameterValue.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return CreateFilteringParameterValueRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateFilteringParameterValueResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/filtering-parameters/{code}'; - } -} diff --git a/src/Endpoint/Products/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest.php b/src/Endpoint/Products/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest.php deleted file mode 100644 index 5ae8d25..0000000 --- a/src/Endpoint/Products/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest/Data.php b/src/Endpoint/Products/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest/Data.php deleted file mode 100644 index 06af9ea..0000000 --- a/src/Endpoint/Products/CreateFilteringParameterValueRequest/CreateFilteringParameterValueRequest/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -paramValues; - } - - public function setParamValues(ProductFilteringParameterValues $paramValues): static - { - $this->paramValues = $paramValues; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse.php b/src/Endpoint/Products/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse.php deleted file mode 100644 index 11afa46..0000000 --- a/src/Endpoint/Products/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data.php b/src/Endpoint/Products/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data.php deleted file mode 100644 index 01ce6dd..0000000 --- a/src/Endpoint/Products/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data.php +++ /dev/null @@ -1,107 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getCode(): string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getGoogleMapping(): GoogleMappingType - { - return $this->googleMapping; - } - - public function setGoogleMapping(GoogleMappingType $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getValues(): ?Values - { - return $this->values; - } - - public function setValues(?Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data/Values.php b/src/Endpoint/Products/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data/Values.php deleted file mode 100644 index 0ad7f7d..0000000 --- a/src/Endpoint/Products/CreateFilteringParameterValueResponse/CreateFilteringParameterValueResponse/Data/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductFilteringParameterValue[] $data - * @method ProductFilteringParameterValue[] toArray() - * @method void set(int $key, ProductFilteringParameterValue $item) - * @method null|ProductFilteringParameterValue get(int $key) - * @method void add(ProductFilteringParameterValue $item) - * @method null|ProductFilteringParameterValue remove(int $key) - * @method bool removeItem(ProductFilteringParameterValue $item, bool $strict = true) - * @method bool contains(ProductFilteringParameterValue $item, bool $strict = true) - * @method null|ProductFilteringParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductFilteringParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductFilteringParameterValue'; - } -} diff --git a/src/Endpoint/Products/CreateProduct.php b/src/Endpoint/Products/CreateProduct.php old mode 100644 new mode 100755 index 9db0d8b..d39ec32 --- a/src/Endpoint/Products/CreateProduct.php +++ b/src/Endpoint/Products/CreateProduct.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductResponse\CreateProductResponse; /** - * @see https://api.docs.shoptet.com/openapi/Products/createproduct + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/createproduct * * @method CreateProduct setBody(null|array|CreateProductRequest $entity) * @method null|CreateProductRequest getBody() diff --git a/src/Endpoint/Products/CreateProductCategory.php b/src/Endpoint/Products/CreateProductCategory.php deleted file mode 100644 index b72b0e8..0000000 --- a/src/Endpoint/Products/CreateProductCategory.php +++ /dev/null @@ -1,34 +0,0 @@ - false]; - - public function getRequestEntityClass(): string - { - return CreateProductCategoryRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateProductCategoryResponse::class; - } - - public function getEndpoint(): string - { - return '/api/categories'; - } -} diff --git a/src/Endpoint/Products/CreateProductCategoryRequest/CreateProductCategoryRequest.php b/src/Endpoint/Products/CreateProductCategoryRequest/CreateProductCategoryRequest.php deleted file mode 100644 index 07a69fa..0000000 --- a/src/Endpoint/Products/CreateProductCategoryRequest/CreateProductCategoryRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateProductCategoryRequest/CreateProductCategoryRequest/Data.php b/src/Endpoint/Products/CreateProductCategoryRequest/CreateProductCategoryRequest/Data.php deleted file mode 100644 index d6703e3..0000000 --- a/src/Endpoint/Products/CreateProductCategoryRequest/CreateProductCategoryRequest/Data.php +++ /dev/null @@ -1,235 +0,0 @@ -guid; - } - - public function setGuid(?TypeGuid $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getParentGuid(): ?TypeGuid - { - return $this->parentGuid; - } - - public function setParentGuid(?TypeGuid $parentGuid): static - { - $this->parentGuid = $parentGuid; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getSecondDescription(): ?string - { - return $this->secondDescription; - } - - public function setSecondDescription(?string $secondDescription): static - { - $this->secondDescription = $secondDescription; - return $this; - } - - /** - * @deprecated - */ - public function getImageName(): ?string - { - return $this->imageName; - } - - /** - * @deprecated - */ - public function setImageName(?string $imageName): static - { - $this->imageName = $imageName; - return $this; - } - - public function getSourceImageName(): ?TypeFilename - { - return $this->sourceImageName; - } - - public function setSourceImageName(?TypeFilename $sourceImageName): static - { - $this->sourceImageName = $sourceImageName; - return $this; - } - - public function getSortBefore(): ?TypeGuid - { - return $this->sortBefore; - } - - public function setSortBefore(?TypeGuid $sortBefore): static - { - $this->sortBefore = $sortBefore; - return $this; - } - - public function getSortAfter(): ?TypeGuid - { - return $this->sortAfter; - } - - public function setSortAfter(?TypeGuid $sortAfter): static - { - $this->sortAfter = $sortAfter; - return $this; - } - - public function getIndexName(): ?string - { - return $this->indexName; - } - - public function setIndexName(?string $indexName): static - { - $this->indexName = $indexName; - return $this; - } - - public function getMenuTitle(): ?string - { - return $this->menuTitle; - } - - public function setMenuTitle(?string $menuTitle): static - { - $this->menuTitle = $menuTitle; - return $this; - } - - public function getTitle(): ?string - { - return $this->title; - } - - public function setTitle(?string $title): static - { - $this->title = $title; - return $this; - } - - public function getMetaTagDescription(): ?string - { - return $this->metaTagDescription; - } - - public function setMetaTagDescription(?string $metaTagDescription): static - { - $this->metaTagDescription = $metaTagDescription; - return $this; - } - - public function getVisible(): ?bool - { - return $this->visible; - } - - public function setVisible(?bool $visible): static - { - $this->visible = $visible; - return $this; - } - - public function getCustomerVisibility(): ?string - { - return $this->customerVisibility; - } - - public function setCustomerVisibility(?string $customerVisibility): static - { - $this->customerVisibility = $customerVisibility; - return $this; - } - - public function getProductOrdering(): ?string - { - return $this->productOrdering; - } - - public function setProductOrdering(?string $productOrdering): static - { - $this->productOrdering = $productOrdering; - return $this; - } - - public function getSimilarProductsCategory(): ?TypeGuid - { - return $this->similarProductsCategory; - } - - public function setSimilarProductsCategory(?TypeGuid $similarProductsCategory): static - { - $this->similarProductsCategory = $similarProductsCategory; - return $this; - } - - public function getRelatedProductsCategory(): ?TypeGuid - { - return $this->relatedProductsCategory; - } - - public function setRelatedProductsCategory(?TypeGuid $relatedProductsCategory): static - { - $this->relatedProductsCategory = $relatedProductsCategory; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateProductFlag.php b/src/Endpoint/Products/CreateProductFlag.php deleted file mode 100644 index 83731e4..0000000 --- a/src/Endpoint/Products/CreateProductFlag.php +++ /dev/null @@ -1,34 +0,0 @@ - false]; - - public function getRequestEntityClass(): string - { - return CreateProductFlagRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateProductFlagResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/flags'; - } -} diff --git a/src/Endpoint/Products/CreateProductFlagRequest/CreateProductFlagRequest.php b/src/Endpoint/Products/CreateProductFlagRequest/CreateProductFlagRequest.php deleted file mode 100644 index 7e476a3..0000000 --- a/src/Endpoint/Products/CreateProductFlagRequest/CreateProductFlagRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateProductFlagRequest/CreateProductFlagRequest/Data.php b/src/Endpoint/Products/CreateProductFlagRequest/CreateProductFlagRequest/Data.php deleted file mode 100644 index 0c58ab9..0000000 --- a/src/Endpoint/Products/CreateProductFlagRequest/CreateProductFlagRequest/Data.php +++ /dev/null @@ -1,34 +0,0 @@ -title; - } - - public function setTitle(string $title): static - { - $this->title = $title; - return $this; - } - - public function getColor(): ?TypeColor - { - return $this->color; - } - - public function setColor(?TypeColor $color): static - { - $this->color = $color; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse/Data.php b/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse/Data.php deleted file mode 100644 index ec7fb2e..0000000 --- a/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -flags; - } - - public function setFlags(Flags $flags): static - { - $this->flags = $flags; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags.php b/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags.php deleted file mode 100644 index 7334b59..0000000 --- a/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Flags extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductFlagResponse\CreateProductFlagResponse\Data\Flags\Item'; - } -} diff --git a/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags/Item.php b/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags/Item.php deleted file mode 100644 index 7081d59..0000000 --- a/src/Endpoint/Products/CreateProductFlagResponse/CreateProductFlagResponse/Data/Flags/Item.php +++ /dev/null @@ -1,81 +0,0 @@ -code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getTitle(): string - { - return $this->title; - } - - public function setTitle(string $title): static - { - $this->title = $title; - return $this; - } - - public function isSystem(): bool - { - return $this->system; - } - - public function setSystem(bool $system): static - { - $this->system = $system; - return $this; - } - - public function getColor(): ?string - { - return $this->color; - } - - public function setColor(?string $color): static - { - $this->color = $color; - return $this; - } - - public function isShowInDetail(): bool - { - return $this->showInDetail; - } - - public function setShowInDetail(bool $showInDetail): static - { - $this->showInDetail = $showInDetail; - return $this; - } - - public function isShowInCategory(): bool - { - return $this->showInCategory; - } - - public function setShowInCategory(bool $showInCategory): static - { - $this->showInCategory = $showInCategory; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateProductGift.php b/src/Endpoint/Products/CreateProductGift.php deleted file mode 100644 index 0cdd4dc..0000000 --- a/src/Endpoint/Products/CreateProductGift.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return CreateProductGiftRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateProductGiftResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/gifts'; - } -} diff --git a/src/Endpoint/Products/CreateProductGiftRequest/CreateProductGiftRequest.php b/src/Endpoint/Products/CreateProductGiftRequest/CreateProductGiftRequest.php deleted file mode 100644 index f7420b6..0000000 --- a/src/Endpoint/Products/CreateProductGiftRequest/CreateProductGiftRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateProductGiftRequest/CreateProductGiftRequest/Data.php b/src/Endpoint/Products/CreateProductGiftRequest/CreateProductGiftRequest/Data.php deleted file mode 100644 index f1b4c41..0000000 --- a/src/Endpoint/Products/CreateProductGiftRequest/CreateProductGiftRequest/Data.php +++ /dev/null @@ -1,21 +0,0 @@ -giftCode; - } - - public function setGiftCode(string $giftCode): static - { - $this->giftCode = $giftCode; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateProductGiftResponse/CreateProductGiftResponse/Data.php b/src/Endpoint/Products/CreateProductGiftResponse/CreateProductGiftResponse/Data.php deleted file mode 100644 index 8a6c182..0000000 --- a/src/Endpoint/Products/CreateProductGiftResponse/CreateProductGiftResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -items; - } - - public function setItems(ProductGifts $items): static - { - $this->items = $items; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateProductImages.php b/src/Endpoint/Products/CreateProductImages.php deleted file mode 100644 index 8ee3b69..0000000 --- a/src/Endpoint/Products/CreateProductImages.php +++ /dev/null @@ -1,35 +0,0 @@ - true, 'gallery' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return CreateProductImagesRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateProductImagesResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/images/{gallery}'; - } -} diff --git a/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest.php b/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest.php deleted file mode 100644 index 1f1cd0f..0000000 --- a/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest/Data.php b/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest/Data.php deleted file mode 100644 index 7142f75..0000000 --- a/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -images; - } - - public function setImages(Images $images): static - { - $this->images = $images; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images.php b/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images.php deleted file mode 100644 index adb5914..0000000 --- a/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Images extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductImagesRequest\CreateProductImagesRequest\Data\Images\Item'; - } -} diff --git a/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images/Item.php b/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images/Item.php deleted file mode 100644 index 7a87729..0000000 --- a/src/Endpoint/Products/CreateProductImagesRequest/CreateProductImagesRequest/Data/Images/Item.php +++ /dev/null @@ -1,45 +0,0 @@ -sourceUrl; - } - - public function setSourceUrl(string $sourceUrl): static - { - $this->sourceUrl = $sourceUrl; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateProductImagesResponse/CreateProductImagesResponse/Data.php b/src/Endpoint/Products/CreateProductImagesResponse/CreateProductImagesResponse/Data.php deleted file mode 100644 index 8b27f2e..0000000 --- a/src/Endpoint/Products/CreateProductImagesResponse/CreateProductImagesResponse/Data.php +++ /dev/null @@ -1,21 +0,0 @@ -jobId; - } - - public function setJobId(string $jobId): static - { - $this->jobId = $jobId; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data.php old mode 100644 new mode 100755 index 4e62834..d51364d --- a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data.php +++ b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data.php @@ -21,6 +21,7 @@ class Data extends Entity protected ?bool $adult; protected ?string $shortDescription; protected ?string $description; + protected ?string $additionalName; protected ?string $metaTitle; protected ?string $metaDescription; protected ?string $conditionGrade; @@ -28,6 +29,7 @@ class Data extends Entity protected TypeGuid $defaultCategoryGuid; protected ?string $brandCode; protected ?string $internalNote; + protected ?bool $preauthorizationRequired; protected ?TypeGuid $supplierGuid; protected ?CategoryGuids $categoryGuids; protected ?int $warrantyId; @@ -116,6 +118,17 @@ public function setDescription(?string $description): static return $this; } + public function getAdditionalName(): ?string + { + return $this->additionalName; + } + + public function setAdditionalName(?string $additionalName): static + { + $this->additionalName = $additionalName; + return $this; + } + public function getMetaTitle(): ?string { return $this->metaTitle; @@ -193,6 +206,17 @@ public function setInternalNote(?string $internalNote): static return $this; } + public function getPreauthorizationRequired(): ?bool + { + return $this->preauthorizationRequired; + } + + public function setPreauthorizationRequired(?bool $preauthorizationRequired): static + { + $this->preauthorizationRequired = $preauthorizationRequired; + return $this; + } + public function getSupplierGuid(): ?TypeGuid { return $this->supplierGuid; diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/CategoryGuids.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/CategoryGuids.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/DescriptiveParameters.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/DescriptiveParameters.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/DescriptiveParameters/Item.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/DescriptiveParameters/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/FilteringParameters.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/FilteringParameters.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/FilteringParameters/Item.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/FilteringParameters/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/FilteringParameters/Item/Values.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/FilteringParameters/Item/Values.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Flags.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Flags.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Flags/Item.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Flags/Item.php old mode 100644 new mode 100755 index cd560c7..bf6165b --- a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Flags/Item.php +++ b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Flags/Item.php @@ -3,13 +3,13 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductRequest\CreateProductRequest\Data\Flags; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; class Item extends Entity { protected string $code; - protected ?TypeDate $dateFrom; - protected ?TypeDate $dateTo; + protected ?TypeDateNullable $dateFrom; + protected ?TypeDateNullable $dateTo; public function getCode(): string { @@ -22,23 +22,23 @@ public function setCode(string $code): static return $this; } - public function getDateFrom(): ?TypeDate + public function getDateFrom(): ?TypeDateNullable { return $this->dateFrom; } - public function setDateFrom(?TypeDate $dateFrom): static + public function setDateFrom(?TypeDateNullable $dateFrom): static { $this->dateFrom = $dateFrom; return $this; } - public function getDateTo(): ?TypeDate + public function getDateTo(): ?TypeDateNullable { return $this->dateTo; } - public function setDateTo(?TypeDate $dateTo): static + public function setDateTo(?TypeDateNullable $dateTo): static { $this->dateTo = $dateTo; return $this; diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/RelatedVideos.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/RelatedVideos.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/RelatedVideos/Item.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/RelatedVideos/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/SurchargeParameters.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/SurchargeParameters.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item.php old mode 100644 new mode 100755 index 7928149..bede0cb --- a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item.php +++ b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item.php @@ -6,15 +6,17 @@ use Shoptet\Api\Sdk\Php\Component\Entity\MeasureUnit; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCode; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDimension; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmountNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeVariantCodeRequest; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeightRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductRequest\CreateProductRequest\Data\Variants\Item\OssVatLevels; use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductRequest\CreateProductRequest\Data\Variants\Item\Parameters; use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductRequest\CreateProductRequest\Data\Variants\Item\StocksLocations; class Item extends Entity { - protected ?string $code; + protected ?TypeVariantCodeRequest $code; protected ?string $ean; protected ?int $unitId; protected ?TypeWeightRequest $weight; @@ -32,7 +34,7 @@ class Item extends Entity protected ?float $availabilityId; protected ?float $availabilityWhenSoldOutId; protected ?Parameters $parameters; - protected ?TypePositiveAmount $minStockSupply; + protected ?TypePositiveAmountNullable $minStockSupply; protected ?StocksLocations $stocksLocations; protected ?bool $negativeStockAllowed; protected ?MeasureUnit $measureUnit; @@ -41,13 +43,14 @@ class Item extends Entity protected ?int $amountDecimalPlaces; protected ?bool $atypicalBilling; protected ?bool $atypicalShipping; + protected ?OssVatLevels $ossVatLevels; - public function getCode(): ?string + public function getCode(): ?TypeVariantCodeRequest { return $this->code; } - public function setCode(?string $code): static + public function setCode(?TypeVariantCodeRequest $code): static { $this->code = $code; return $this; @@ -240,12 +243,12 @@ public function setParameters(?Parameters $parameters): static return $this; } - public function getMinStockSupply(): ?TypePositiveAmount + public function getMinStockSupply(): ?TypePositiveAmountNullable { return $this->minStockSupply; } - public function setMinStockSupply(?TypePositiveAmount $minStockSupply): static + public function setMinStockSupply(?TypePositiveAmountNullable $minStockSupply): static { $this->minStockSupply = $minStockSupply; return $this; @@ -338,4 +341,15 @@ public function setAtypicalShipping(?bool $atypicalShipping): static $this->atypicalShipping = $atypicalShipping; return $this; } + + public function getOssVatLevels(): ?OssVatLevels + { + return $this->ossVatLevels; + } + + public function setOssVatLevels(?OssVatLevels $ossVatLevels): static + { + $this->ossVatLevels = $ossVatLevels; + return $this; + } } diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/OssVatLevels.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/OssVatLevels.php new file mode 100755 index 0000000..89ba6e5 --- /dev/null +++ b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/OssVatLevels.php @@ -0,0 +1,31 @@ + + * @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 OssVatLevels extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductRequest\CreateProductRequest\Data\Variants\Item\OssVatLevels\Item'; + } +} diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/OssVatLevels/Item.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/OssVatLevels/Item.php new file mode 100755 index 0000000..305a1f0 --- /dev/null +++ b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/OssVatLevels/Item.php @@ -0,0 +1,33 @@ +countryCode; + } + + public function setCountryCode(string $countryCode): static + { + $this->countryCode = $countryCode; + return $this; + } + + public function getTaxLevel(): string + { + return $this->taxLevel; + } + + public function setTaxLevel(string $taxLevel): static + { + $this->taxLevel = $taxLevel; + return $this; + } +} diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/Parameters.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/Parameters.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/Parameters/Item.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/Parameters/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/StocksLocations.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/StocksLocations.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/StocksLocations/Item.php b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/StocksLocations/Item.php old mode 100644 new mode 100755 index 277a08d..7693143 --- a/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/StocksLocations/Item.php +++ b/src/Endpoint/Products/CreateProductRequest/CreateProductRequest/Data/Variants/Item/StocksLocations/Item.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductRequest\CreateProductRequest\Data\Variants\Item\StocksLocations; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmountNullable; class Item extends Entity { protected int $stockId; - protected ?TypeAmount $amount; + protected ?TypeAmountNullable $amount; protected ?string $location; public function getStockId(): int @@ -22,12 +22,12 @@ public function setStockId(int $stockId): static return $this; } - public function getAmount(): ?TypeAmount + public function getAmount(): ?TypeAmountNullable { return $this->amount; } - public function setAmount(?TypeAmount $amount): static + public function setAmount(?TypeAmountNullable $amount): static { $this->amount = $amount; return $this; diff --git a/src/Endpoint/Products/CreateProductResponse/CreateProductResponse.php b/src/Endpoint/Products/CreateProductResponse/CreateProductResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateProductResponse/CreateProductResponse/Data.php b/src/Endpoint/Products/CreateProductResponse/CreateProductResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/CreateSurchargeParameter.php b/src/Endpoint/Products/CreateSurchargeParameter.php deleted file mode 100644 index a8cef6b..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameter.php +++ /dev/null @@ -1,34 +0,0 @@ - false]; - - public function getRequestEntityClass(): string - { - return CreateSurchargeParameterRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateSurchargeParameterResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/surcharge-parameters'; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest.php b/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest.php deleted file mode 100644 index a4a9c5b..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data.php b/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data.php deleted file mode 100644 index 0001364..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data.php +++ /dev/null @@ -1,131 +0,0 @@ -currency; - } - - public function setCurrency(?TypeCurrencyCode $currency): static - { - $this->currency = $currency; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(?string $code): static - { - $this->code = $code; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): static - { - $this->required = $required; - return $this; - } - - public function getIncludingVat(): ?bool - { - return $this->includingVat; - } - - public function setIncludingVat(?bool $includingVat): static - { - $this->includingVat = $includingVat; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getGoogleMapping(): ?string - { - return $this->googleMapping; - } - - public function setGoogleMapping(?string $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getValues(): Values - { - return $this->values; - } - - public function setValues(Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values.php b/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values.php deleted file mode 100644 index a7b71c2..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateSurchargeParameterRequest\CreateSurchargeParameterRequest\Data\Values\Item'; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values/Item.php b/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values/Item.php deleted file mode 100644 index 12c8b56..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values/Item.php +++ /dev/null @@ -1,58 +0,0 @@ -name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getPrice(): TypePrice - { - return $this->price; - } - - public function setPrice(TypePrice $price): static - { - $this->price = $price; - return $this; - } - - public function getValueIndex(): ?string - { - return $this->valueIndex; - } - - public function setValueIndex(?string $valueIndex): static - { - $this->valueIndex = $valueIndex; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse.php b/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse.php deleted file mode 100644 index d461606..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data.php b/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data.php deleted file mode 100644 index 657c6c9..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -surchargeParameter; - } - - public function setSurchargeParameter(SurchargeParameter $surchargeParameter): static - { - $this->surchargeParameter = $surchargeParameter; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter.php b/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter.php deleted file mode 100644 index be4e5fd..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter.php +++ /dev/null @@ -1,143 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getCode(): string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function isRequired(): bool - { - return $this->required; - } - - public function setRequired(bool $required): static - { - $this->required = $required; - return $this; - } - - public function getCurrency(): string - { - return $this->currency; - } - - public function setCurrency(string $currency): static - { - $this->currency = $currency; - return $this; - } - - public function isIncludingVat(): bool - { - return $this->includingVat; - } - - public function setIncludingVat(bool $includingVat): static - { - $this->includingVat = $includingVat; - return $this; - } - - public function getGoogleMapping(): GoogleMappingType - { - return $this->googleMapping; - } - - public function setGoogleMapping(GoogleMappingType $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getValues(): Values - { - return $this->values; - } - - public function setValues(Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter/Values.php b/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter/Values.php deleted file mode 100644 index c98f683..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property SurchargeParameterValue[] $data - * @method SurchargeParameterValue[] toArray() - * @method void set(int $key, SurchargeParameterValue $item) - * @method null|SurchargeParameterValue get(int $key) - * @method void add(SurchargeParameterValue $item) - * @method null|SurchargeParameterValue remove(int $key) - * @method bool removeItem(SurchargeParameterValue $item, bool $strict = true) - * @method bool contains(SurchargeParameterValue $item, bool $strict = true) - * @method null|SurchargeParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, SurchargeParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\SurchargeParameterValue'; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterValue.php b/src/Endpoint/Products/CreateSurchargeParameterValue.php deleted file mode 100644 index a634a97..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterValue.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return CreateSurchargeParameterValueRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateSurchargeParameterValueResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/surcharge-parameters/{code}'; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest.php b/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest.php deleted file mode 100644 index 8305c3b..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data.php b/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data.php deleted file mode 100644 index a52709f..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -paramValues; - } - - public function setParamValues(ParamValues $paramValues): static - { - $this->paramValues = $paramValues; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues.php b/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues.php deleted file mode 100644 index 947018c..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 ParamValues extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\CreateSurchargeParameterValueRequest\CreateSurchargeParameterValueRequest\Data\ParamValues\Item'; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues/Item.php b/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues/Item.php deleted file mode 100644 index 602df54..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues/Item.php +++ /dev/null @@ -1,58 +0,0 @@ -name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getPrice(): TypePrice - { - return $this->price; - } - - public function setPrice(TypePrice $price): static - { - $this->price = $price; - return $this; - } - - public function getValueIndex(): ?string - { - return $this->valueIndex; - } - - public function setValueIndex(?string $valueIndex): static - { - $this->valueIndex = $valueIndex; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse.php b/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse.php deleted file mode 100644 index 200c4cc..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data.php b/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data.php deleted file mode 100644 index 84d26ca..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -surchargeParameter; - } - - public function setSurchargeParameter(SurchargeParameter $surchargeParameter): static - { - $this->surchargeParameter = $surchargeParameter; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter.php b/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter.php deleted file mode 100644 index defcaef..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter.php +++ /dev/null @@ -1,143 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getCode(): string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function isRequired(): bool - { - return $this->required; - } - - public function setRequired(bool $required): static - { - $this->required = $required; - return $this; - } - - public function getCurrency(): string - { - return $this->currency; - } - - public function setCurrency(string $currency): static - { - $this->currency = $currency; - return $this; - } - - public function isIncludingVat(): bool - { - return $this->includingVat; - } - - public function setIncludingVat(bool $includingVat): static - { - $this->includingVat = $includingVat; - return $this; - } - - public function getGoogleMapping(): GoogleMappingType - { - return $this->googleMapping; - } - - public function setGoogleMapping(GoogleMappingType $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getValues(): Values - { - return $this->values; - } - - public function setValues(Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php b/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php deleted file mode 100644 index 23d6a0c..0000000 --- a/src/Endpoint/Products/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property SurchargeParameterValue[] $data - * @method SurchargeParameterValue[] toArray() - * @method void set(int $key, SurchargeParameterValue $item) - * @method null|SurchargeParameterValue get(int $key) - * @method void add(SurchargeParameterValue $item) - * @method null|SurchargeParameterValue remove(int $key) - * @method bool removeItem(SurchargeParameterValue $item, bool $strict = true) - * @method bool contains(SurchargeParameterValue $item, bool $strict = true) - * @method null|SurchargeParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, SurchargeParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\SurchargeParameterValue'; - } -} diff --git a/src/Endpoint/Products/CreateVariantParameter.php b/src/Endpoint/Products/CreateVariantParameter.php deleted file mode 100644 index 82723f0..0000000 --- a/src/Endpoint/Products/CreateVariantParameter.php +++ /dev/null @@ -1,34 +0,0 @@ - false]; - - public function getRequestEntityClass(): string - { - return CreateVariantParameterRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateVariantParameterResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/variant-parameters'; - } -} diff --git a/src/Endpoint/Products/CreateVariantParameterRequest/CreateVariantParameterRequest.php b/src/Endpoint/Products/CreateVariantParameterRequest/CreateVariantParameterRequest.php deleted file mode 100644 index 9d78885..0000000 --- a/src/Endpoint/Products/CreateVariantParameterRequest/CreateVariantParameterRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateVariantParameterRequest/CreateVariantParameterRequest/Data.php b/src/Endpoint/Products/CreateVariantParameterRequest/CreateVariantParameterRequest/Data.php deleted file mode 100644 index 9ab460f..0000000 --- a/src/Endpoint/Products/CreateVariantParameterRequest/CreateVariantParameterRequest/Data.php +++ /dev/null @@ -1,70 +0,0 @@ -paramName; - } - - public function setParamName(string $paramName): static - { - $this->paramName = $paramName; - return $this; - } - - public function getParamIndex(): ?string - { - return $this->paramIndex; - } - - public function setParamIndex(?string $paramIndex): static - { - $this->paramIndex = $paramIndex; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getValues(): ?ProductVariantParameterValues - { - return $this->values; - } - - public function setValues(?ProductVariantParameterValues $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateVariantParameterResponse/CreateVariantParameterResponse.php b/src/Endpoint/Products/CreateVariantParameterResponse/CreateVariantParameterResponse.php deleted file mode 100644 index 5e6ff8c..0000000 --- a/src/Endpoint/Products/CreateVariantParameterResponse/CreateVariantParameterResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateVariantParameterResponse/CreateVariantParameterResponse/Data.php b/src/Endpoint/Products/CreateVariantParameterResponse/CreateVariantParameterResponse/Data.php deleted file mode 100644 index c123f0f..0000000 --- a/src/Endpoint/Products/CreateVariantParameterResponse/CreateVariantParameterResponse/Data.php +++ /dev/null @@ -1,82 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getParamName(): ?string - { - return $this->paramName; - } - - public function setParamName(?string $paramName): static - { - $this->paramName = $paramName; - return $this; - } - - public function getParamIndex(): string - { - return $this->paramIndex; - } - - public function setParamIndex(string $paramIndex): static - { - $this->paramIndex = $paramIndex; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getValues(): ?Values - { - return $this->values; - } - - public function setValues(?Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateVariantParameterResponse/CreateVariantParameterResponse/Data/Values.php b/src/Endpoint/Products/CreateVariantParameterResponse/CreateVariantParameterResponse/Data/Values.php deleted file mode 100644 index 6ed76ed..0000000 --- a/src/Endpoint/Products/CreateVariantParameterResponse/CreateVariantParameterResponse/Data/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductVariantParameterValue[] $data - * @method ProductVariantParameterValue[] toArray() - * @method void set(int $key, ProductVariantParameterValue $item) - * @method null|ProductVariantParameterValue get(int $key) - * @method void add(ProductVariantParameterValue $item) - * @method null|ProductVariantParameterValue remove(int $key) - * @method bool removeItem(ProductVariantParameterValue $item, bool $strict = true) - * @method bool contains(ProductVariantParameterValue $item, bool $strict = true) - * @method null|ProductVariantParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductVariantParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductVariantParameterValue'; - } -} diff --git a/src/Endpoint/Products/CreateVariantParameterValue.php b/src/Endpoint/Products/CreateVariantParameterValue.php deleted file mode 100644 index b7f44e1..0000000 --- a/src/Endpoint/Products/CreateVariantParameterValue.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return CreateVariantParameterValueRequest::class; - } - - public function getResponseEntityClass(): string - { - return CreateVariantParameterValueResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/variant-parameters/{paramIndex}'; - } -} diff --git a/src/Endpoint/Products/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest.php b/src/Endpoint/Products/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest.php deleted file mode 100644 index 7a34454..0000000 --- a/src/Endpoint/Products/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest/Data.php b/src/Endpoint/Products/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest/Data.php deleted file mode 100644 index 6d2402a..0000000 --- a/src/Endpoint/Products/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -paramValues; - } - - public function setParamValues(ProductVariantParameterValues $paramValues): static - { - $this->paramValues = $paramValues; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse.php b/src/Endpoint/Products/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse.php deleted file mode 100644 index ebaec1d..0000000 --- a/src/Endpoint/Products/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data.php b/src/Endpoint/Products/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data.php deleted file mode 100644 index 7875c3a..0000000 --- a/src/Endpoint/Products/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data.php +++ /dev/null @@ -1,82 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getParamName(): ?string - { - return $this->paramName; - } - - public function setParamName(?string $paramName): static - { - $this->paramName = $paramName; - return $this; - } - - public function getParamIndex(): string - { - return $this->paramIndex; - } - - public function setParamIndex(string $paramIndex): static - { - $this->paramIndex = $paramIndex; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getValues(): ?Values - { - return $this->values; - } - - public function setValues(?Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data/Values.php b/src/Endpoint/Products/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data/Values.php deleted file mode 100644 index f797af0..0000000 --- a/src/Endpoint/Products/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductVariantParameterValue[] $data - * @method ProductVariantParameterValue[] toArray() - * @method void set(int $key, ProductVariantParameterValue $item) - * @method null|ProductVariantParameterValue get(int $key) - * @method void add(ProductVariantParameterValue $item) - * @method null|ProductVariantParameterValue remove(int $key) - * @method bool removeItem(ProductVariantParameterValue $item, bool $strict = true) - * @method bool contains(ProductVariantParameterValue $item, bool $strict = true) - * @method null|ProductVariantParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductVariantParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductVariantParameterValue'; - } -} diff --git a/src/Endpoint/Products/DeleteAllProductImagesInGallery.php b/src/Endpoint/Products/DeleteAllProductImagesInGallery.php deleted file mode 100644 index b060900..0000000 --- a/src/Endpoint/Products/DeleteAllProductImagesInGallery.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'gallery' => true]; - protected array $supportedQueryParams = ['language' => false, 'removeReference' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteAllProductImagesInGalleryResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/images/{gallery}'; - } -} diff --git a/src/Endpoint/Products/DeleteAllProductImagesInGalleryResponse/DeleteAllProductImagesInGalleryResponse.php b/src/Endpoint/Products/DeleteAllProductImagesInGalleryResponse/DeleteAllProductImagesInGalleryResponse.php deleted file mode 100644 index 19821a9..0000000 --- a/src/Endpoint/Products/DeleteAllProductImagesInGalleryResponse/DeleteAllProductImagesInGalleryResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/DeleteConsumptionTax.php b/src/Endpoint/Products/DeleteConsumptionTax.php deleted file mode 100644 index 2d5db2d..0000000 --- a/src/Endpoint/Products/DeleteConsumptionTax.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteConsumptionTaxResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/consumption-taxes/{id}'; - } -} diff --git a/src/Endpoint/Products/DeleteConsumptionTaxResponse/DeleteConsumptionTaxResponse.php b/src/Endpoint/Products/DeleteConsumptionTaxResponse/DeleteConsumptionTaxResponse.php deleted file mode 100644 index 090de9c..0000000 --- a/src/Endpoint/Products/DeleteConsumptionTaxResponse/DeleteConsumptionTaxResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/DeleteFilteringParameter.php b/src/Endpoint/Products/DeleteFilteringParameter.php deleted file mode 100644 index 04424c3..0000000 --- a/src/Endpoint/Products/DeleteFilteringParameter.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteFilteringParameterResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/filtering-parameters/{code}'; - } -} diff --git a/src/Endpoint/Products/DeleteFilteringParameterResponse/DeleteFilteringParameterResponse.php b/src/Endpoint/Products/DeleteFilteringParameterResponse/DeleteFilteringParameterResponse.php deleted file mode 100644 index 12c85db..0000000 --- a/src/Endpoint/Products/DeleteFilteringParameterResponse/DeleteFilteringParameterResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/DeleteFilteringParameterValue.php b/src/Endpoint/Products/DeleteFilteringParameterValue.php deleted file mode 100644 index de8a342..0000000 --- a/src/Endpoint/Products/DeleteFilteringParameterValue.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'valueIndex' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteFilteringParameterValueResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/filtering-parameters/{code}/{valueIndex}'; - } -} diff --git a/src/Endpoint/Products/DeleteFilteringParameterValueResponse/DeleteFilteringParameterValueResponse.php b/src/Endpoint/Products/DeleteFilteringParameterValueResponse/DeleteFilteringParameterValueResponse.php deleted file mode 100644 index c602355..0000000 --- a/src/Endpoint/Products/DeleteFilteringParameterValueResponse/DeleteFilteringParameterValueResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/DeleteOneProductImage.php b/src/Endpoint/Products/DeleteOneProductImage.php deleted file mode 100644 index 6a5e97e..0000000 --- a/src/Endpoint/Products/DeleteOneProductImage.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'gallery' => true, 'imageName' => true]; - protected array $supportedQueryParams = ['language' => false, 'removeReference' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteOneProductImageResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/images/{gallery}/{imageName}'; - } -} diff --git a/src/Endpoint/Products/DeleteOneProductImageResponse/DeleteOneProductImageResponse.php b/src/Endpoint/Products/DeleteOneProductImageResponse/DeleteOneProductImageResponse.php deleted file mode 100644 index 6fd30cc..0000000 --- a/src/Endpoint/Products/DeleteOneProductImageResponse/DeleteOneProductImageResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/DeleteProduct.php b/src/Endpoint/Products/DeleteProduct.php old mode 100644 new mode 100755 index 8bd68d9..79b5170 --- a/src/Endpoint/Products/DeleteProduct.php +++ b/src/Endpoint/Products/DeleteProduct.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteProductResponse\DeleteProductResponse; /** - * @see https://api.docs.shoptet.com/openapi/Products/deleteproduct + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/deleteproduct * * @method DeleteProduct setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Products/DeleteProductCategory.php b/src/Endpoint/Products/DeleteProductCategory.php deleted file mode 100644 index 2356653..0000000 --- a/src/Endpoint/Products/DeleteProductCategory.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false, 'deleteUsed' => false, 'deleteChildren' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteProductCategoryResponse::class; - } - - public function getEndpoint(): string - { - return '/api/categories/{categoryGuid}'; - } -} diff --git a/src/Endpoint/Products/DeleteProductCategoryResponse/DeleteProductCategoryResponse.php b/src/Endpoint/Products/DeleteProductCategoryResponse/DeleteProductCategoryResponse.php deleted file mode 100644 index ba1ccc7..0000000 --- a/src/Endpoint/Products/DeleteProductCategoryResponse/DeleteProductCategoryResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/DeleteProductFlag.php b/src/Endpoint/Products/DeleteProductFlag.php deleted file mode 100644 index 31859b8..0000000 --- a/src/Endpoint/Products/DeleteProductFlag.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteProductFlagResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/flags/{code}'; - } -} diff --git a/src/Endpoint/Products/DeleteProductFlagResponse/DeleteProductFlagResponse.php b/src/Endpoint/Products/DeleteProductFlagResponse/DeleteProductFlagResponse.php deleted file mode 100644 index 21b1547..0000000 --- a/src/Endpoint/Products/DeleteProductFlagResponse/DeleteProductFlagResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/DeleteProductResponse/DeleteProductResponse.php b/src/Endpoint/Products/DeleteProductResponse/DeleteProductResponse.php old mode 100644 new mode 100755 index 1ae0331..8fab529 --- a/src/Endpoint/Products/DeleteProductResponse/DeleteProductResponse.php +++ b/src/Endpoint/Products/DeleteProductResponse/DeleteProductResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteProductResponse\DeleteProductResponse\Data; class DeleteProductResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Products/DeleteProductResponse/DeleteProductResponse/Data.php b/src/Endpoint/Products/DeleteProductResponse/DeleteProductResponse/Data.php new file mode 100755 index 0000000..1d14915 --- /dev/null +++ b/src/Endpoint/Products/DeleteProductResponse/DeleteProductResponse/Data.php @@ -0,0 +1,9 @@ +data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Products/DeleteProductVariantResponse/DeleteProductVariantResponse/Data.php b/src/Endpoint/Products/DeleteProductVariantResponse/DeleteProductVariantResponse/Data.php new file mode 100755 index 0000000..2bffe43 --- /dev/null +++ b/src/Endpoint/Products/DeleteProductVariantResponse/DeleteProductVariantResponse/Data.php @@ -0,0 +1,9 @@ + true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteSurchargeParameterByIndexResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/surcharge-parameters/{code}'; - } -} diff --git a/src/Endpoint/Products/DeleteSurchargeParameterByIndexResponse/DeleteSurchargeParameterByIndexResponse.php b/src/Endpoint/Products/DeleteSurchargeParameterByIndexResponse/DeleteSurchargeParameterByIndexResponse.php deleted file mode 100644 index 313c662..0000000 --- a/src/Endpoint/Products/DeleteSurchargeParameterByIndexResponse/DeleteSurchargeParameterByIndexResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/DeleteSurchargeParameterValue.php b/src/Endpoint/Products/DeleteSurchargeParameterValue.php deleted file mode 100644 index 7605c78..0000000 --- a/src/Endpoint/Products/DeleteSurchargeParameterValue.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'valueIndex' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteSurchargeParameterValueResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/surcharge-parameters/{paramIndex}/{valueIndex}'; - } -} diff --git a/src/Endpoint/Products/DeleteSurchargeParameterValueResponse/DeleteSurchargeParameterValueResponse.php b/src/Endpoint/Products/DeleteSurchargeParameterValueResponse/DeleteSurchargeParameterValueResponse.php deleted file mode 100644 index e04f45b..0000000 --- a/src/Endpoint/Products/DeleteSurchargeParameterValueResponse/DeleteSurchargeParameterValueResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/DeleteVariantParameter.php b/src/Endpoint/Products/DeleteVariantParameter.php deleted file mode 100644 index f93c41c..0000000 --- a/src/Endpoint/Products/DeleteVariantParameter.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteVariantParameterResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/variant-parameters/{paramIndex}'; - } -} diff --git a/src/Endpoint/Products/DeleteVariantParameterResponse/DeleteVariantParameterResponse.php b/src/Endpoint/Products/DeleteVariantParameterResponse/DeleteVariantParameterResponse.php deleted file mode 100644 index 10c02da..0000000 --- a/src/Endpoint/Products/DeleteVariantParameterResponse/DeleteVariantParameterResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/DeleteVariantParameterValue.php b/src/Endpoint/Products/DeleteVariantParameterValue.php deleted file mode 100644 index 2fee72c..0000000 --- a/src/Endpoint/Products/DeleteVariantParameterValue.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'rawValue' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return DeleteVariantParameterValueResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/variant-parameters/{paramIndex}/{rawValue}'; - } -} diff --git a/src/Endpoint/Products/DeleteVariantParameterValueResponse/DeleteVariantParameterValueResponse.php b/src/Endpoint/Products/DeleteVariantParameterValueResponse/DeleteVariantParameterValueResponse.php deleted file mode 100644 index 682e0de..0000000 --- a/src/Endpoint/Products/DeleteVariantParameterValueResponse/DeleteVariantParameterValueResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetDetailOfFilteringParameter.php b/src/Endpoint/Products/GetDetailOfFilteringParameter.php deleted file mode 100644 index eae9fc7..0000000 --- a/src/Endpoint/Products/GetDetailOfFilteringParameter.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetDetailOfFilteringParameterResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/filtering-parameters/{code}'; - } -} diff --git a/src/Endpoint/Products/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse.php b/src/Endpoint/Products/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse.php deleted file mode 100644 index 28248b2..0000000 --- a/src/Endpoint/Products/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data.php b/src/Endpoint/Products/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data.php deleted file mode 100644 index 8558338..0000000 --- a/src/Endpoint/Products/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data.php +++ /dev/null @@ -1,107 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getCode(): string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getGoogleMapping(): GoogleMappingType - { - return $this->googleMapping; - } - - public function setGoogleMapping(GoogleMappingType $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getValues(): ?Values - { - return $this->values; - } - - public function setValues(?Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data/Values.php b/src/Endpoint/Products/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data/Values.php deleted file mode 100644 index 6aeec84..0000000 --- a/src/Endpoint/Products/GetDetailOfFilteringParameterResponse/GetDetailOfFilteringParameterResponse/Data/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductFilteringParameterValue[] $data - * @method ProductFilteringParameterValue[] toArray() - * @method void set(int $key, ProductFilteringParameterValue $item) - * @method null|ProductFilteringParameterValue get(int $key) - * @method void add(ProductFilteringParameterValue $item) - * @method null|ProductFilteringParameterValue remove(int $key) - * @method bool removeItem(ProductFilteringParameterValue $item, bool $strict = true) - * @method bool contains(ProductFilteringParameterValue $item, bool $strict = true) - * @method null|ProductFilteringParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductFilteringParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductFilteringParameterValue'; - } -} diff --git a/src/Endpoint/Products/GetDetailOfSurchargeParameter.php b/src/Endpoint/Products/GetDetailOfSurchargeParameter.php deleted file mode 100644 index 8b03726..0000000 --- a/src/Endpoint/Products/GetDetailOfSurchargeParameter.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetDetailOfSurchargeParameterResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/surcharge-parameters/{code}'; - } -} diff --git a/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse.php b/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse.php deleted file mode 100644 index be82d80..0000000 --- a/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data.php b/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data.php deleted file mode 100644 index c111585..0000000 --- a/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -surchargeParameter; - } - - public function setSurchargeParameter(SurchargeParameter $surchargeParameter): static - { - $this->surchargeParameter = $surchargeParameter; - return $this; - } -} diff --git a/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter.php b/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter.php deleted file mode 100644 index 2769e9f..0000000 --- a/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter.php +++ /dev/null @@ -1,143 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getCode(): string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function isRequired(): bool - { - return $this->required; - } - - public function setRequired(bool $required): static - { - $this->required = $required; - return $this; - } - - public function getCurrency(): string - { - return $this->currency; - } - - public function setCurrency(string $currency): static - { - $this->currency = $currency; - return $this; - } - - public function isIncludingVat(): bool - { - return $this->includingVat; - } - - public function setIncludingVat(bool $includingVat): static - { - $this->includingVat = $includingVat; - return $this; - } - - public function getGoogleMapping(): GoogleMappingType - { - return $this->googleMapping; - } - - public function setGoogleMapping(GoogleMappingType $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getValues(): Values - { - return $this->values; - } - - public function setValues(Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter/Values.php b/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter/Values.php deleted file mode 100644 index 4c2a2a5..0000000 --- a/src/Endpoint/Products/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property SurchargeParameterValue[] $data - * @method SurchargeParameterValue[] toArray() - * @method void set(int $key, SurchargeParameterValue $item) - * @method null|SurchargeParameterValue get(int $key) - * @method void add(SurchargeParameterValue $item) - * @method null|SurchargeParameterValue remove(int $key) - * @method bool removeItem(SurchargeParameterValue $item, bool $strict = true) - * @method bool contains(SurchargeParameterValue $item, bool $strict = true) - * @method null|SurchargeParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, SurchargeParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\SurchargeParameterValue'; - } -} diff --git a/src/Endpoint/Products/GetDetailOfVariantParameter.php b/src/Endpoint/Products/GetDetailOfVariantParameter.php deleted file mode 100644 index 54f0ae3..0000000 --- a/src/Endpoint/Products/GetDetailOfVariantParameter.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetDetailOfVariantParameterResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/variant-parameters/{paramIndex}'; - } -} diff --git a/src/Endpoint/Products/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse.php b/src/Endpoint/Products/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse.php deleted file mode 100644 index 4ead6e4..0000000 --- a/src/Endpoint/Products/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data.php b/src/Endpoint/Products/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data.php deleted file mode 100644 index 6972e89..0000000 --- a/src/Endpoint/Products/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data.php +++ /dev/null @@ -1,82 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getParamName(): ?string - { - return $this->paramName; - } - - public function setParamName(?string $paramName): static - { - $this->paramName = $paramName; - return $this; - } - - public function getParamIndex(): string - { - return $this->paramIndex; - } - - public function setParamIndex(string $paramIndex): static - { - $this->paramIndex = $paramIndex; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getValues(): ?Values - { - return $this->values; - } - - public function setValues(?Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data/Values.php b/src/Endpoint/Products/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data/Values.php deleted file mode 100644 index a7f9718..0000000 --- a/src/Endpoint/Products/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductVariantParameterValue[] $data - * @method ProductVariantParameterValue[] toArray() - * @method void set(int $key, ProductVariantParameterValue $item) - * @method null|ProductVariantParameterValue get(int $key) - * @method void add(ProductVariantParameterValue $item) - * @method null|ProductVariantParameterValue remove(int $key) - * @method bool removeItem(ProductVariantParameterValue $item, bool $strict = true) - * @method bool contains(ProductVariantParameterValue $item, bool $strict = true) - * @method null|ProductVariantParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductVariantParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductVariantParameterValue'; - } -} diff --git a/src/Endpoint/Products/GetLastProductChanges.php b/src/Endpoint/Products/GetLastProductChanges.php old mode 100644 new mode 100755 index d733c0f..52e44ce --- a/src/Endpoint/Products/GetLastProductChanges.php +++ b/src/Endpoint/Products/GetLastProductChanges.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Products\GetLastProductChangesResponse\GetLastProductChangesResponse; /** - * @see https://api.docs.shoptet.com/openapi/Products/getlastproductchanges + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/getlastproductchanges * * @method GetLastProductChanges setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse.php b/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse/Data.php b/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse/Data/Changes.php b/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse/Data/Changes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse/Data/Changes/Item.php b/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse/Data/Changes/Item.php old mode 100644 new mode 100755 index a04b36f..91e9483 --- a/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse/Data/Changes/Item.php +++ b/src/Endpoint/Products/GetLastProductChangesResponse/GetLastProductChangesResponse/Data/Changes/Item.php @@ -3,13 +3,13 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Products\GetLastProductChangesResponse\GetLastProductChangesResponse\Data\Changes; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; class Item extends Entity { protected TypeGuidUnlimited $guid; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $changeTime; protected string $changeType; public function getGuid(): TypeGuidUnlimited @@ -23,12 +23,12 @@ public function setGuid(TypeGuidUnlimited $guid): static return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; diff --git a/src/Endpoint/Products/GetListOfAllProducts.php b/src/Endpoint/Products/GetListOfAllProducts.php old mode 100644 new mode 100755 index 87cec89..7a9bea9 --- a/src/Endpoint/Products/GetListOfAllProducts.php +++ b/src/Endpoint/Products/GetListOfAllProducts.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Products; use Shoptet\Api\Sdk\Php\Async\SnapshotEndpoint; -use Shoptet\Api\Sdk\Php\Component\Entity\Product; +use Shoptet\Api\Sdk\Php\Component\Entity\ProductSnapshot; use Shoptet\Api\Sdk\Php\Endpoint\Get; use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfAllProductsResponse\GetListOfAllProductsResponse; /** - * @see https://api.docs.shoptet.com/openapi/Products/getlistofallproducts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/getlistofallproducts * * @method GetListOfAllProducts setBody(null $entity) * @method null getBody() @@ -20,6 +20,10 @@ class GetListOfAllProducts extends Get implements SnapshotEndpoint protected array $supportedQueryParams = [ 'language' => false, 'include' => false, + 'productCodes' => false, + 'productGuids' => false, + 'availabilityId' => false, + 'availabilityWhenSoldOutId' => false, 'creationTimeFrom' => false, 'creationTimeTo' => false, 'visibility' => false, @@ -51,6 +55,6 @@ public function getEndpoint(): string public function getSnapshotResultEntityClass(): string { - return Product::class; + return ProductSnapshot::class; } } diff --git a/src/Endpoint/Products/GetListOfAllProductsAndPricelistPrices.php b/src/Endpoint/Products/GetListOfAllProductsAndPricelistPrices.php new file mode 100755 index 0000000..e782b7e --- /dev/null +++ b/src/Endpoint/Products/GetListOfAllProductsAndPricelistPrices.php @@ -0,0 +1,40 @@ + false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfAllProductsAndPricelistPricesResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/snapshot/pricelists'; + } + + public function getSnapshotResultEntityClass(): string + { + return ProductPricelistSnapshot::class; + } +} diff --git a/src/Endpoint/Products/GetListOfAllProductsAndPricelistPricesResponse/GetListOfAllProductsAndPricelistPricesResponse.php b/src/Endpoint/Products/GetListOfAllProductsAndPricelistPricesResponse/GetListOfAllProductsAndPricelistPricesResponse.php new file mode 100755 index 0000000..1b1dd44 --- /dev/null +++ b/src/Endpoint/Products/GetListOfAllProductsAndPricelistPricesResponse/GetListOfAllProductsAndPricelistPricesResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Products/GetListOfAllProductsAndPricelistPricesResponse/GetListOfAllProductsAndPricelistPricesResponse/Data.php b/src/Endpoint/Products/GetListOfAllProductsAndPricelistPricesResponse/GetListOfAllProductsAndPricelistPricesResponse/Data.php new file mode 100755 index 0000000..f489ef9 --- /dev/null +++ b/src/Endpoint/Products/GetListOfAllProductsAndPricelistPricesResponse/GetListOfAllProductsAndPricelistPricesResponse/Data.php @@ -0,0 +1,21 @@ +jobId; + } + + public function setJobId(string $jobId): static + { + $this->jobId = $jobId; + return $this; + } +} diff --git a/src/Endpoint/Products/GetListOfAllProductsResponse/GetListOfAllProductsResponse.php b/src/Endpoint/Products/GetListOfAllProductsResponse/GetListOfAllProductsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/GetListOfAllProductsResponse/GetListOfAllProductsResponse/Data.php b/src/Endpoint/Products/GetListOfAllProductsResponse/GetListOfAllProductsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/GetListOfConsumptionTaxes.php b/src/Endpoint/Products/GetListOfConsumptionTaxes.php deleted file mode 100644 index a4d2a85..0000000 --- a/src/Endpoint/Products/GetListOfConsumptionTaxes.php +++ /dev/null @@ -1,33 +0,0 @@ - false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfConsumptionTaxesResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/consumption-taxes'; - } -} diff --git a/src/Endpoint/Products/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse.php b/src/Endpoint/Products/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse.php deleted file mode 100644 index 0073e13..0000000 --- a/src/Endpoint/Products/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data.php b/src/Endpoint/Products/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data.php deleted file mode 100644 index b4f1a66..0000000 --- a/src/Endpoint/Products/GetListOfConsumptionTaxesResponse/GetListOfConsumptionTaxesResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -consumptionTaxes; - } - - public function setConsumptionTaxes(ConsumptionTaxes $consumptionTaxes): static - { - $this->consumptionTaxes = $consumptionTaxes; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfFilteringParameters.php b/src/Endpoint/Products/GetListOfFilteringParameters.php deleted file mode 100644 index 86c20b3..0000000 --- a/src/Endpoint/Products/GetListOfFilteringParameters.php +++ /dev/null @@ -1,33 +0,0 @@ - false, 'page' => false, 'itemsPerPage' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfFilteringParametersResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/filtering-parameters'; - } -} diff --git a/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse.php b/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse.php deleted file mode 100644 index f336f38..0000000 --- a/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data.php b/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data.php deleted file mode 100644 index 4fed553..0000000 --- a/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data.php +++ /dev/null @@ -1,35 +0,0 @@ -filteringParameters; - } - - public function setFilteringParameters(FilteringParameters $filteringParameters): static - { - $this->filteringParameters = $filteringParameters; - return $this; - } - - public function getPaginator(): Paginator - { - return $this->paginator; - } - - public function setPaginator(Paginator $paginator): static - { - $this->paginator = $paginator; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters.php b/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters.php deleted file mode 100644 index 095fb09..0000000 --- a/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 FilteringParameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfFilteringParametersResponse\GetListOfFilteringParametersResponse\Data\FilteringParameters\Item'; - } -} diff --git a/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item.php b/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item.php deleted file mode 100644 index 7cd37c0..0000000 --- a/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item.php +++ /dev/null @@ -1,107 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getCode(): string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getGoogleMapping(): GoogleMappingType - { - return $this->googleMapping; - } - - public function setGoogleMapping(GoogleMappingType $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getValues(): Values - { - return $this->values; - } - - public function setValues(Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item/Values.php b/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item/Values.php deleted file mode 100644 index ea47b3d..0000000 --- a/src/Endpoint/Products/GetListOfFilteringParametersResponse/GetListOfFilteringParametersResponse/Data/FilteringParameters/Item/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductFilteringParameterValue[] $data - * @method ProductFilteringParameterValue[] toArray() - * @method void set(int $key, ProductFilteringParameterValue $item) - * @method null|ProductFilteringParameterValue get(int $key) - * @method void add(ProductFilteringParameterValue $item) - * @method null|ProductFilteringParameterValue remove(int $key) - * @method bool removeItem(ProductFilteringParameterValue $item, bool $strict = true) - * @method bool contains(ProductFilteringParameterValue $item, bool $strict = true) - * @method null|ProductFilteringParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductFilteringParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductFilteringParameterValue'; - } -} diff --git a/src/Endpoint/Products/GetListOfParametricCategories.php b/src/Endpoint/Products/GetListOfParametricCategories.php deleted file mode 100644 index b86e4e4..0000000 --- a/src/Endpoint/Products/GetListOfParametricCategories.php +++ /dev/null @@ -1,39 +0,0 @@ - false, - 'page' => false, - 'itemsPerPage' => false, - 'include' => false, - ]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfParametricCategoriesResponse::class; - } - - public function getEndpoint(): string - { - return '/api/parametric-categories'; - } -} diff --git a/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse.php b/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse.php deleted file mode 100644 index d0215c5..0000000 --- a/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data.php b/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data.php deleted file mode 100644 index 249da94..0000000 --- a/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data.php +++ /dev/null @@ -1,35 +0,0 @@ -parametricCategories; - } - - public function setParametricCategories(ParametricCategories $parametricCategories): static - { - $this->parametricCategories = $parametricCategories; - return $this; - } - - public function getPaginator(): ?Paginator - { - return $this->paginator; - } - - public function setPaginator(?Paginator $paginator): static - { - $this->paginator = $paginator; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories.php b/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories.php deleted file mode 100644 index 9dd97fa..0000000 --- a/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 ParametricCategories extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfParametricCategoriesResponse\GetListOfParametricCategoriesResponse\Data\ParametricCategories\Item'; - } -} diff --git a/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item.php b/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item.php deleted file mode 100644 index ddf7e5e..0000000 --- a/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item.php +++ /dev/null @@ -1,166 +0,0 @@ -guid; - } - - public function setGuid(string $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getIndexName(): string - { - return $this->indexName; - } - - public function setIndexName(string $indexName): static - { - $this->indexName = $indexName; - return $this; - } - - public function getUrl(): string - { - return $this->url; - } - - public function setUrl(string $url): static - { - $this->url = $url; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getSecondDescription(): ?string - { - return $this->secondDescription; - } - - public function setSecondDescription(?string $secondDescription): static - { - $this->secondDescription = $secondDescription; - return $this; - } - - public function getImage(): ?string - { - return $this->image; - } - - public function setImage(?string $image): static - { - $this->image = $image; - return $this; - } - - public function getTitle(): ?string - { - return $this->title; - } - - public function setTitle(?string $title): static - { - $this->title = $title; - return $this; - } - - public function getMetaTagDescription(): ?string - { - return $this->metaTagDescription; - } - - public function setMetaTagDescription(?string $metaTagDescription): static - { - $this->metaTagDescription = $metaTagDescription; - return $this; - } - - public function getOriginalCategoryGuid(): ?string - { - return $this->originalCategoryGuid; - } - - public function setOriginalCategoryGuid(?string $originalCategoryGuid): static - { - $this->originalCategoryGuid = $originalCategoryGuid; - return $this; - } - - public function isShowInList(): bool - { - return $this->showInList; - } - - public function setShowInList(bool $showInList): static - { - $this->showInList = $showInList; - return $this; - } - - public function isShowInDetail(): bool - { - return $this->showInDetail; - } - - public function setShowInDetail(bool $showInDetail): static - { - $this->showInDetail = $showInDetail; - return $this; - } - - public function getParameters(): ?Parameters - { - return $this->parameters; - } - - public function setParameters(?Parameters $parameters): static - { - $this->parameters = $parameters; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item/Parameters.php b/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item/Parameters.php deleted file mode 100644 index 6c6d7a1..0000000 --- a/src/Endpoint/Products/GetListOfParametricCategoriesResponse/GetListOfParametricCategoriesResponse/Data/ParametricCategories/Item/Parameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ParameterValueCombinations[] $data - * @method ParameterValueCombinations[] toArray() - * @method void set(int $key, ParameterValueCombinations $item) - * @method null|ParameterValueCombinations get(int $key) - * @method void add(ParameterValueCombinations $item) - * @method null|ParameterValueCombinations remove(int $key) - * @method bool removeItem(ParameterValueCombinations $item, bool $strict = true) - * @method bool contains(ParameterValueCombinations $item, bool $strict = true) - * @method null|ParameterValueCombinations offsetGet(int $offset) - * @method void offsetSet(int $offset, ParameterValueCombinations $value) - */ -class Parameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ParameterValueCombinations'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductAlternativeProducts.php b/src/Endpoint/Products/GetListOfProductAlternativeProducts.php deleted file mode 100644 index 94c313f..0000000 --- a/src/Endpoint/Products/GetListOfProductAlternativeProducts.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false, 'visible' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfProductAlternativeProductsResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/alternativeProducts'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse.php b/src/Endpoint/Products/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse.php deleted file mode 100644 index 73cfe8c..0000000 --- a/src/Endpoint/Products/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data.php b/src/Endpoint/Products/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data.php deleted file mode 100644 index 73d2c73..0000000 --- a/src/Endpoint/Products/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -items; - } - - public function setItems(Items $items): static - { - $this->items = $items; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data/Items.php b/src/Endpoint/Products/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data/Items.php deleted file mode 100644 index 90668ea..0000000 --- a/src/Endpoint/Products/GetListOfProductAlternativeProductsResponse/GetListOfProductAlternativeProductsResponse/Data/Items.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property RelatedProduct[] $data - * @method RelatedProduct[] toArray() - * @method void set(int $key, RelatedProduct $item) - * @method null|RelatedProduct get(int $key) - * @method void add(RelatedProduct $item) - * @method null|RelatedProduct remove(int $key) - * @method bool removeItem(RelatedProduct $item, bool $strict = true) - * @method bool contains(RelatedProduct $item, bool $strict = true) - * @method null|RelatedProduct offsetGet(int $offset) - * @method void offsetSet(int $offset, RelatedProduct $value) - */ -class Items extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\RelatedProduct'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductCategories.php b/src/Endpoint/Products/GetListOfProductCategories.php deleted file mode 100644 index 1e7d4cd..0000000 --- a/src/Endpoint/Products/GetListOfProductCategories.php +++ /dev/null @@ -1,33 +0,0 @@ - false, 'page' => false, 'itemsPerPage' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfProductCategoriesResponse::class; - } - - public function getEndpoint(): string - { - return '/api/categories'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse/Data.php b/src/Endpoint/Products/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse/Data.php deleted file mode 100644 index 1fd6633..0000000 --- a/src/Endpoint/Products/GetListOfProductCategoriesResponse/GetListOfProductCategoriesResponse/Data.php +++ /dev/null @@ -1,35 +0,0 @@ -categories; - } - - public function setCategories(Categories $categories): static - { - $this->categories = $categories; - return $this; - } - - public function getPaginator(): Paginator - { - return $this->paginator; - } - - public function setPaginator(Paginator $paginator): static - { - $this->paginator = $paginator; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductGifts.php b/src/Endpoint/Products/GetListOfProductGifts.php deleted file mode 100644 index f074edb..0000000 --- a/src/Endpoint/Products/GetListOfProductGifts.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfProductGiftsResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/gifts'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductGiftsResponse/GetListOfProductGiftsResponse/Data.php b/src/Endpoint/Products/GetListOfProductGiftsResponse/GetListOfProductGiftsResponse/Data.php deleted file mode 100644 index 2f4d6cd..0000000 --- a/src/Endpoint/Products/GetListOfProductGiftsResponse/GetListOfProductGiftsResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -items; - } - - public function setItems(ProductGifts $items): static - { - $this->items = $items; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductImages.php b/src/Endpoint/Products/GetListOfProductImages.php deleted file mode 100644 index 0d8545c..0000000 --- a/src/Endpoint/Products/GetListOfProductImages.php +++ /dev/null @@ -1,33 +0,0 @@ - true, 'gallery' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfProductImagesResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/images/{gallery}'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data.php b/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data.php deleted file mode 100644 index 67a7ec7..0000000 --- a/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -images; - } - - public function setImages(Images $images): static - { - $this->images = $images; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images.php b/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images.php deleted file mode 100644 index 9796758..0000000 --- a/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Images extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductImagesResponse\GetListOfProductImagesResponse\Data\Images\Item'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item.php b/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item.php deleted file mode 100644 index d43e7c1..0000000 --- a/src/Endpoint/Products/GetListOfProductImagesResponse/GetListOfProductImagesResponse/Data/Images/Item.php +++ /dev/null @@ -1,94 +0,0 @@ -name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getChangeTime(): TypeDateTime - { - return $this->changeTime; - } - - public function setChangeTime(TypeDateTime $changeTime): static - { - $this->changeTime = $changeTime; - return $this; - } - - public function getSeoName(): string - { - return $this->seoName; - } - - public function setSeoName(string $seoName): static - { - $this->seoName = $seoName; - return $this; - } - - public function getCdnName(): string - { - return $this->cdnName; - } - - public function setCdnName(string $cdnName): static - { - $this->cdnName = $cdnName; - return $this; - } - - public function isIsMainImage(): bool - { - return $this->isMainImage; - } - - public function setIsMainImage(bool $isMainImage): static - { - $this->isMainImage = $isMainImage; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductRelatedProducts.php b/src/Endpoint/Products/GetListOfProductRelatedProducts.php deleted file mode 100644 index 993862e..0000000 --- a/src/Endpoint/Products/GetListOfProductRelatedProducts.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false, 'visible' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfProductRelatedProductsResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/relatedProducts'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse.php b/src/Endpoint/Products/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse.php deleted file mode 100644 index dd60c8b..0000000 --- a/src/Endpoint/Products/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data.php b/src/Endpoint/Products/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data.php deleted file mode 100644 index 1421019..0000000 --- a/src/Endpoint/Products/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -items; - } - - public function setItems(Items $items): static - { - $this->items = $items; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data/Items.php b/src/Endpoint/Products/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data/Items.php deleted file mode 100644 index 6020268..0000000 --- a/src/Endpoint/Products/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data/Items.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property RelatedProduct[] $data - * @method RelatedProduct[] toArray() - * @method void set(int $key, RelatedProduct $item) - * @method null|RelatedProduct get(int $key) - * @method void add(RelatedProduct $item) - * @method null|RelatedProduct remove(int $key) - * @method bool removeItem(RelatedProduct $item, bool $strict = true) - * @method bool contains(RelatedProduct $item, bool $strict = true) - * @method null|RelatedProduct offsetGet(int $offset) - * @method void offsetSet(int $offset, RelatedProduct $value) - */ -class Items extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\RelatedProduct'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductUnits.php b/src/Endpoint/Products/GetListOfProductUnits.php deleted file mode 100644 index 53f3dda..0000000 --- a/src/Endpoint/Products/GetListOfProductUnits.php +++ /dev/null @@ -1,33 +0,0 @@ - false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfProductUnitsResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/units'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data.php b/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data.php deleted file mode 100644 index e49656a..0000000 --- a/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -units; - } - - public function setUnits(Units $units): static - { - $this->units = $units; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units.php b/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units.php deleted file mode 100644 index ed916fe..0000000 --- a/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Units extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductUnitsResponse\GetListOfProductUnitsResponse\Data\Units\Item'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units/Item.php b/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units/Item.php deleted file mode 100644 index a521ef0..0000000 --- a/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units/Item.php +++ /dev/null @@ -1,45 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function isSystem(): bool - { - return $this->system; - } - - public function setSystem(bool $system): static - { - $this->system = $system; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductWarranties.php b/src/Endpoint/Products/GetListOfProductWarranties.php deleted file mode 100644 index c4fc3cf..0000000 --- a/src/Endpoint/Products/GetListOfProductWarranties.php +++ /dev/null @@ -1,33 +0,0 @@ - false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfProductWarrantiesResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/warranties'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data.php b/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data.php deleted file mode 100644 index 02d0ac0..0000000 --- a/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -warranties; - } - - public function setWarranties(Warranties $warranties): static - { - $this->warranties = $warranties; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties.php b/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties.php deleted file mode 100644 index 60bc187..0000000 --- a/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Warranties extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductWarrantiesResponse\GetListOfProductWarrantiesResponse\Data\Warranties\Item'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties/Item.php b/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties/Item.php deleted file mode 100644 index aa62f16..0000000 --- a/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties/Item.php +++ /dev/null @@ -1,57 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getInMonths(): ?int - { - return $this->inMonths; - } - - public function setInMonths(?int $inMonths): static - { - $this->inMonths = $inMonths; - return $this; - } - - public function getDescription(): string - { - return $this->description; - } - - public function setDescription(string $description): static - { - $this->description = $description; - return $this; - } - - public function isSystem(): bool - { - return $this->system; - } - - public function setSystem(bool $system): static - { - $this->system = $system; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProducts.php b/src/Endpoint/Products/GetListOfProducts.php old mode 100644 new mode 100755 index 7790683..9abcca5 --- a/src/Endpoint/Products/GetListOfProducts.php +++ b/src/Endpoint/Products/GetListOfProducts.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsResponse\GetListOfProductsResponse; /** - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproducts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/getlistofproducts * * @method GetListOfProducts setBody(null $entity) * @method null getBody() @@ -19,6 +19,8 @@ class GetListOfProducts extends PageableGet 'language' => false, 'page' => false, 'itemsPerPage' => false, + 'availabilityId' => false, + 'availabilityWhenSoldOutId' => false, 'creationTimeFrom' => false, 'creationTimeTo' => false, 'visibility' => false, @@ -29,6 +31,8 @@ class GetListOfProducts extends PageableGet 'categoryGuid' => false, 'flag' => false, 'include' => false, + 'productCodes' => false, + 'productGuids' => false, 'supplierGuid' => false, 'changeTimeFrom' => false, 'changeTimeTo' => false, diff --git a/src/Endpoint/Products/GetListOfProductsAvailabilities.php b/src/Endpoint/Products/GetListOfProductsAvailabilities.php deleted file mode 100644 index 4a61028..0000000 --- a/src/Endpoint/Products/GetListOfProductsAvailabilities.php +++ /dev/null @@ -1,33 +0,0 @@ - false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfProductsAvailabilitiesResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/availabilities'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse.php b/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse.php deleted file mode 100644 index 7774d4b..0000000 --- a/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data.php b/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data.php deleted file mode 100644 index da2fecc..0000000 --- a/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data.php +++ /dev/null @@ -1,35 +0,0 @@ -availabilities; - } - - public function setAvailabilities(Availabilities $availabilities): static - { - $this->availabilities = $availabilities; - return $this; - } - - public function getDefaultAvailabilities(): DefaultAvailabilities - { - return $this->defaultAvailabilities; - } - - public function setDefaultAvailabilities(DefaultAvailabilities $defaultAvailabilities): static - { - $this->defaultAvailabilities = $defaultAvailabilities; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities.php b/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities.php deleted file mode 100644 index a90597a..0000000 --- a/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Availabilities extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsAvailabilitiesResponse\GetListOfProductsAvailabilitiesResponse\Data\Availabilities\Item'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item.php b/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item.php deleted file mode 100644 index 02fba2a..0000000 --- a/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item.php +++ /dev/null @@ -1,106 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getColor(): ?string - { - return $this->color; - } - - public function setColor(?string $color): static - { - $this->color = $color; - return $this; - } - - public function isSystem(): bool - { - return $this->system; - } - - public function setSystem(bool $system): static - { - $this->system = $system; - return $this; - } - - public function getOnStockInHours(): ?int - { - return $this->onStockInHours; - } - - public function setOnStockInHours(?int $onStockInHours): static - { - $this->onStockInHours = $onStockInHours; - return $this; - } - - public function getDeliveryInHours(): ?int - { - return $this->deliveryInHours; - } - - public function setDeliveryInHours(?int $deliveryInHours): static - { - $this->deliveryInHours = $deliveryInHours; - return $this; - } - - public function getGoogleAvailability(): ?GoogleAvailability - { - return $this->googleAvailability; - } - - public function setGoogleAvailability(?GoogleAvailability $googleAvailability): static - { - $this->googleAvailability = $googleAvailability; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item/GoogleAvailability.php b/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item/GoogleAvailability.php deleted file mode 100644 index c767c83..0000000 --- a/src/Endpoint/Products/GetListOfProductsAvailabilitiesResponse/GetListOfProductsAvailabilitiesResponse/Data/Availabilities/Item/GoogleAvailability.php +++ /dev/null @@ -1,33 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - 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/GetListOfProductsFlags.php b/src/Endpoint/Products/GetListOfProductsFlags.php deleted file mode 100644 index c4d3835..0000000 --- a/src/Endpoint/Products/GetListOfProductsFlags.php +++ /dev/null @@ -1,33 +0,0 @@ - false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfProductsFlagsResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/flags'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data.php b/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data.php deleted file mode 100644 index b40e140..0000000 --- a/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -flags; - } - - public function setFlags(Flags $flags): static - { - $this->flags = $flags; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags.php b/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags.php deleted file mode 100644 index 5ac0bf5..0000000 --- a/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Flags extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsFlagsResponse\GetListOfProductsFlagsResponse\Data\Flags\Item'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags/Item.php b/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags/Item.php deleted file mode 100644 index 480fe4a..0000000 --- a/src/Endpoint/Products/GetListOfProductsFlagsResponse/GetListOfProductsFlagsResponse/Data/Flags/Item.php +++ /dev/null @@ -1,81 +0,0 @@ -code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getTitle(): string - { - return $this->title; - } - - public function setTitle(string $title): static - { - $this->title = $title; - return $this; - } - - public function isSystem(): bool - { - return $this->system; - } - - public function setSystem(bool $system): static - { - $this->system = $system; - return $this; - } - - public function getColor(): ?string - { - return $this->color; - } - - public function setColor(?string $color): static - { - $this->color = $color; - return $this; - } - - public function isShowInDetail(): bool - { - return $this->showInDetail; - } - - public function setShowInDetail(bool $showInDetail): static - { - $this->showInDetail = $showInDetail; - return $this; - } - - public function isShowInCategory(): bool - { - return $this->showInCategory; - } - - public function setShowInCategory(bool $showInCategory): static - { - $this->showInCategory = $showInCategory; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsMeasureUnits.php b/src/Endpoint/Products/GetListOfProductsMeasureUnits.php deleted file mode 100644 index 656fd21..0000000 --- a/src/Endpoint/Products/GetListOfProductsMeasureUnits.php +++ /dev/null @@ -1,33 +0,0 @@ - false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfProductsMeasureUnitsResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/measure-units'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse.php b/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse.php deleted file mode 100644 index 2861d4f..0000000 --- a/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data.php b/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data.php deleted file mode 100644 index b2e0c5f..0000000 --- a/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -measureUnits; - } - - public function setMeasureUnits(MeasureUnits $measureUnits): static - { - $this->measureUnits = $measureUnits; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits.php b/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits.php deleted file mode 100644 index 736caf5..0000000 --- a/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 MeasureUnits extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsMeasureUnitsResponse\GetListOfProductsMeasureUnitsResponse\Data\MeasureUnits\Item'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item.php b/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item.php deleted file mode 100644 index dce9e19..0000000 --- a/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item.php +++ /dev/null @@ -1,58 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getUnitName(): string - { - return $this->unitName; - } - - public function setUnitName(string $unitName): static - { - $this->unitName = $unitName; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getRatios(): Ratios - { - return $this->ratios; - } - - public function setRatios(Ratios $ratios): static - { - $this->ratios = $ratios; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios.php b/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios.php deleted file mode 100644 index 07c2548..0000000 --- a/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Ratios extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsMeasureUnitsResponse\GetListOfProductsMeasureUnitsResponse\Data\MeasureUnits\Item\Ratios\Item'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios/Item.php b/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios/Item.php deleted file mode 100644 index 8c26826..0000000 --- a/src/Endpoint/Products/GetListOfProductsMeasureUnitsResponse/GetListOfProductsMeasureUnitsResponse/Data/MeasureUnits/Item/Ratios/Item.php +++ /dev/null @@ -1,34 +0,0 @@ -unitId; - } - - public function setUnitId(int $unitId): static - { - $this->unitId = $unitId; - return $this; - } - - public function getRatio(): TypeUnitRatio - { - return $this->ratio; - } - - public function setRatio(TypeUnitRatio $ratio): static - { - $this->ratio = $ratio; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsOrderInCategory.php b/src/Endpoint/Products/GetListOfProductsOrderInCategory.php deleted file mode 100644 index 78b3760..0000000 --- a/src/Endpoint/Products/GetListOfProductsOrderInCategory.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false, 'page' => false, 'itemsPerPage' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfProductsOrderInCategoryResponse::class; - } - - public function getEndpoint(): string - { - return '/api/categories/{categoryGuid}/productsPriority'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse.php b/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse.php deleted file mode 100644 index 1349bbb..0000000 --- a/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data.php b/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data.php deleted file mode 100644 index aa48b15..0000000 --- a/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data.php +++ /dev/null @@ -1,35 +0,0 @@ -categoryProducts; - } - - public function setCategoryProducts(CategoryProducts $categoryProducts): static - { - $this->categoryProducts = $categoryProducts; - return $this; - } - - public function getPaginator(): Paginator - { - return $this->paginator; - } - - public function setPaginator(Paginator $paginator): static - { - $this->paginator = $paginator; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts.php b/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts.php deleted file mode 100644 index 23a644e..0000000 --- a/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 CategoryProducts extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsOrderInCategoryResponse\GetListOfProductsOrderInCategoryResponse\Data\CategoryProducts\Item'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts/Item.php b/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts/Item.php deleted file mode 100644 index 7a963cf..0000000 --- a/src/Endpoint/Products/GetListOfProductsOrderInCategoryResponse/GetListOfProductsOrderInCategoryResponse/Data/CategoryProducts/Item.php +++ /dev/null @@ -1,34 +0,0 @@ -productGuid; - } - - public function setProductGuid(TypeGuid $productGuid): static - { - $this->productGuid = $productGuid; - return $this; - } - - public function getPriority(): ?float - { - return $this->priority; - } - - public function setPriority(?float $priority): static - { - $this->priority = $priority; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse.php b/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data.php b/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products.php b/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item.php b/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item.php old mode 100644 new mode 100755 index 064dcb0..e3451aa --- a/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item.php +++ b/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item.php @@ -5,8 +5,8 @@ use Shoptet\Api\Sdk\Php\Component\Entity\BrandNamed; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Supplier; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmountNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsResponse\GetListOfProductsResponse\Data\Products\Item\DefaultCategory; use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsResponse\GetListOfProductsResponse\Data\Products\Item\MainImage; @@ -18,14 +18,15 @@ class Item extends Entity protected string $type; protected ?string $url; protected string $visibility; - protected TypeDateTime $creationTime; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $creationTime; + protected TypeDateTimeNullable $changeTime; protected ?BrandNamed $brand; protected ?Supplier $supplier; protected DefaultCategory $defaultCategory; protected ?MainImage $mainImage; - protected ?TypeAmount $voteAverageScore; + protected ?TypeAmountNullable $voteAverageScore; protected ?int $voteCount; + protected ?bool $preauthorizationRequired; public function getGuid(): TypeGuidUnlimited { @@ -82,23 +83,23 @@ public function setVisibility(string $visibility): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; @@ -148,12 +149,12 @@ public function setMainImage(?MainImage $mainImage): static return $this; } - public function getVoteAverageScore(): ?TypeAmount + public function getVoteAverageScore(): ?TypeAmountNullable { return $this->voteAverageScore; } - public function setVoteAverageScore(?TypeAmount $voteAverageScore): static + public function setVoteAverageScore(?TypeAmountNullable $voteAverageScore): static { $this->voteAverageScore = $voteAverageScore; return $this; @@ -169,4 +170,15 @@ public function setVoteCount(?int $voteCount): static $this->voteCount = $voteCount; return $this; } + + public function getPreauthorizationRequired(): ?bool + { + return $this->preauthorizationRequired; + } + + public function setPreauthorizationRequired(?bool $preauthorizationRequired): static + { + $this->preauthorizationRequired = $preauthorizationRequired; + return $this; + } } diff --git a/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/DefaultCategory.php b/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/DefaultCategory.php old mode 100644 new mode 100755 index 16cc393..4968a33 --- a/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/DefaultCategory.php +++ b/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/DefaultCategory.php @@ -3,20 +3,20 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsResponse\GetListOfProductsResponse\Data\Products\Item; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidNullable; class DefaultCategory extends Entity { - protected ?TypeGuid $guid; + protected TypeGuidNullable $guid; protected ?string $name; protected ?bool $visible; - public function getGuid(): ?TypeGuid + public function getGuid(): TypeGuidNullable { return $this->guid; } - public function setGuid(?TypeGuid $guid): static + public function setGuid(TypeGuidNullable $guid): static { $this->guid = $guid; return $this; diff --git a/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage.php b/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage.php old mode 100644 new mode 100755 index aec8a23..a25f8c9 --- a/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage.php +++ b/src/Endpoint/Products/GetListOfProductsResponse/GetListOfProductsResponse/Data/Products/Item/MainImage.php @@ -3,7 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsResponse\GetListOfProductsResponse\Data\Products\Item; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class MainImage extends Entity { @@ -12,7 +12,7 @@ class MainImage extends Entity protected string $cdnName; protected float $priority; protected ?string $description; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $changeTime; public function getName(): string { @@ -69,12 +69,12 @@ public function setDescription(?string $description): static return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; diff --git a/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data.php b/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data.php deleted file mode 100644 index 019ee34..0000000 --- a/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data.php +++ /dev/null @@ -1,35 +0,0 @@ -reviews; - } - - public function setReviews(Reviews $reviews): static - { - $this->reviews = $reviews; - return $this; - } - - public function getPaginator(): Paginator - { - return $this->paginator; - } - - public function setPaginator(Paginator $paginator): static - { - $this->paginator = $paginator; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews.php b/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews.php deleted file mode 100644 index f74a553..0000000 --- a/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Reviews extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsReviewsResponse\GetListOfProductsReviewsResponse\Data\Reviews\Item'; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item.php b/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item.php deleted file mode 100644 index 4c0e59e..0000000 --- a/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item.php +++ /dev/null @@ -1,180 +0,0 @@ -guid; - } - - public function setGuid(TypeGuid $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getDate(): TypeDateTime - { - return $this->date; - } - - public function setDate(TypeDateTime $date): static - { - $this->date = $date; - return $this; - } - - public function getOrderCode(): ?string - { - return $this->orderCode; - } - - public function setOrderCode(?string $orderCode): static - { - $this->orderCode = $orderCode; - return $this; - } - - public function getRating(): float - { - return $this->rating; - } - - public function setRating(float $rating): static - { - $this->rating = $rating; - return $this; - } - - public function getProductName(): string - { - return $this->productName; - } - - public function setProductName(string $productName): static - { - $this->productName = $productName; - return $this; - } - - public function getProductGuid(): ?TypeGuid - { - return $this->productGuid; - } - - public function setProductGuid(?TypeGuid $productGuid): static - { - $this->productGuid = $productGuid; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getFullName(): ?string - { - return $this->fullName; - } - - public function setFullName(?string $fullName): static - { - $this->fullName = $fullName; - return $this; - } - - public function getEmail(): ?string - { - return $this->email; - } - - public function setEmail(?string $email): static - { - $this->email = $email; - return $this; - } - - public function getCustomerGuid(): ?string - { - return $this->customerGuid; - } - - public function setCustomerGuid(?string $customerGuid): static - { - $this->customerGuid = $customerGuid; - return $this; - } - - public function isAuthorized(): bool - { - return $this->authorized; - } - - public function setAuthorized(bool $authorized): static - { - $this->authorized = $authorized; - return $this; - } - - public function isVisible(): bool - { - return $this->visible; - } - - public function setVisible(bool $visible): static - { - $this->visible = $visible; - return $this; - } - - public function getReaction(): Reaction - { - return $this->reaction; - } - - public function setReaction(Reaction $reaction): static - { - $this->reaction = $reaction; - return $this; - } - - public function getUpdated(): TypeDateTime - { - return $this->updated; - } - - public function setUpdated(TypeDateTime $updated): static - { - $this->updated = $updated; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item/Reaction.php b/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item/Reaction.php deleted file mode 100644 index d747f4f..0000000 --- a/src/Endpoint/Products/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item/Reaction.php +++ /dev/null @@ -1,58 +0,0 @@ -reactionCreated; - } - - public function setReactionCreated(TypeDateTime $reactionCreated): static - { - $this->reactionCreated = $reactionCreated; - return $this; - } - - public function getReactionFullName(): ?string - { - return $this->reactionFullName; - } - - public function setReactionFullName(?string $reactionFullName): static - { - $this->reactionFullName = $reactionFullName; - return $this; - } - - public function getReactionEmail(): ?string - { - return $this->reactionEmail; - } - - public function setReactionEmail(?string $reactionEmail): static - { - $this->reactionEmail = $reactionEmail; - return $this; - } - - public function getReactionText(): ?string - { - return $this->reactionText; - } - - public function setReactionText(?string $reactionText): static - { - $this->reactionText = $reactionText; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfRecyclingFeeCategories.php b/src/Endpoint/Products/GetListOfRecyclingFeeCategories.php deleted file mode 100644 index 40e9570..0000000 --- a/src/Endpoint/Products/GetListOfRecyclingFeeCategories.php +++ /dev/null @@ -1,33 +0,0 @@ - false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfRecyclingFeeCategoriesResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/recycling-fee-categories'; - } -} diff --git a/src/Endpoint/Products/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse.php b/src/Endpoint/Products/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse.php deleted file mode 100644 index 2a47c13..0000000 --- a/src/Endpoint/Products/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data.php b/src/Endpoint/Products/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data.php deleted file mode 100644 index 0de7ac9..0000000 --- a/src/Endpoint/Products/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -recyclingFeeCategories; - } - - public function setRecyclingFeeCategories(RecyclingFeeCategories $recyclingFeeCategories): static - { - $this->recyclingFeeCategories = $recyclingFeeCategories; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfSurchargeParameters.php b/src/Endpoint/Products/GetListOfSurchargeParameters.php deleted file mode 100644 index 26c1dcb..0000000 --- a/src/Endpoint/Products/GetListOfSurchargeParameters.php +++ /dev/null @@ -1,33 +0,0 @@ - false, 'page' => false, 'itemsPerPage' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfSurchargeParametersResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/surcharge-parameters'; - } -} diff --git a/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse.php b/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse.php deleted file mode 100644 index 6467e97..0000000 --- a/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data.php b/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data.php deleted file mode 100644 index 4a0f0ac..0000000 --- a/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data.php +++ /dev/null @@ -1,35 +0,0 @@ -surchargeParameters; - } - - public function setSurchargeParameters(SurchargeParameters $surchargeParameters): static - { - $this->surchargeParameters = $surchargeParameters; - return $this; - } - - public function getPaginator(): Paginator - { - return $this->paginator; - } - - public function setPaginator(Paginator $paginator): static - { - $this->paginator = $paginator; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters.php b/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters.php deleted file mode 100644 index c11affe..0000000 --- a/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 SurchargeParameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfSurchargeParametersResponse\GetListOfSurchargeParametersResponse\Data\SurchargeParameters\Item'; - } -} diff --git a/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item.php b/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item.php deleted file mode 100644 index 690e933..0000000 --- a/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item.php +++ /dev/null @@ -1,143 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getCode(): string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function isRequired(): bool - { - return $this->required; - } - - public function setRequired(bool $required): static - { - $this->required = $required; - return $this; - } - - public function getCurrency(): string - { - return $this->currency; - } - - public function setCurrency(string $currency): static - { - $this->currency = $currency; - return $this; - } - - public function isIncludingVat(): bool - { - return $this->includingVat; - } - - public function setIncludingVat(bool $includingVat): static - { - $this->includingVat = $includingVat; - return $this; - } - - public function getGoogleMapping(): GoogleMappingType - { - return $this->googleMapping; - } - - public function setGoogleMapping(GoogleMappingType $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getValues(): Values - { - return $this->values; - } - - public function setValues(Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item/Values.php b/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item/Values.php deleted file mode 100644 index 173df67..0000000 --- a/src/Endpoint/Products/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property SurchargeParameterValue[] $data - * @method SurchargeParameterValue[] toArray() - * @method void set(int $key, SurchargeParameterValue $item) - * @method null|SurchargeParameterValue get(int $key) - * @method void add(SurchargeParameterValue $item) - * @method null|SurchargeParameterValue remove(int $key) - * @method bool removeItem(SurchargeParameterValue $item, bool $strict = true) - * @method bool contains(SurchargeParameterValue $item, bool $strict = true) - * @method null|SurchargeParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, SurchargeParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\SurchargeParameterValue'; - } -} diff --git a/src/Endpoint/Products/GetListOfVariantParameters.php b/src/Endpoint/Products/GetListOfVariantParameters.php deleted file mode 100644 index f1e26c5..0000000 --- a/src/Endpoint/Products/GetListOfVariantParameters.php +++ /dev/null @@ -1,39 +0,0 @@ - false, - 'page' => false, - 'itemsPerPage' => false, - 'include' => false, - ]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfVariantParametersResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/variant-parameters'; - } -} diff --git a/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse.php b/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse.php deleted file mode 100644 index 0fd96ec..0000000 --- a/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data.php b/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data.php deleted file mode 100644 index bf11b45..0000000 --- a/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data.php +++ /dev/null @@ -1,35 +0,0 @@ -parameters; - } - - public function setParameters(Parameters $parameters): static - { - $this->parameters = $parameters; - return $this; - } - - public function getPaginator(): Paginator - { - return $this->paginator; - } - - public function setPaginator(Paginator $paginator): static - { - $this->paginator = $paginator; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters.php b/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters.php deleted file mode 100644 index 644b3ef..0000000 --- a/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Parameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfVariantParametersResponse\GetListOfVariantParametersResponse\Data\Parameters\Item'; - } -} diff --git a/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item.php b/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item.php deleted file mode 100644 index 4f7e225..0000000 --- a/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item.php +++ /dev/null @@ -1,82 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getParamName(): ?string - { - return $this->paramName; - } - - public function setParamName(?string $paramName): static - { - $this->paramName = $paramName; - return $this; - } - - public function getParamIndex(): string - { - return $this->paramIndex; - } - - public function setParamIndex(string $paramIndex): static - { - $this->paramIndex = $paramIndex; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getValues(): ?Values - { - return $this->values; - } - - public function setValues(?Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item/Values.php b/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item/Values.php deleted file mode 100644 index 68e56c6..0000000 --- a/src/Endpoint/Products/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductVariantParameterValue[] $data - * @method ProductVariantParameterValue[] toArray() - * @method void set(int $key, ProductVariantParameterValue $item) - * @method null|ProductVariantParameterValue get(int $key) - * @method void add(ProductVariantParameterValue $item) - * @method null|ProductVariantParameterValue remove(int $key) - * @method bool removeItem(ProductVariantParameterValue $item, bool $strict = true) - * @method bool contains(ProductVariantParameterValue $item, bool $strict = true) - * @method null|ProductVariantParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductVariantParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductVariantParameterValue'; - } -} diff --git a/src/Endpoint/Products/GetParametricCategoryDetail.php b/src/Endpoint/Products/GetParametricCategoryDetail.php deleted file mode 100644 index 5d83b8c..0000000 --- a/src/Endpoint/Products/GetParametricCategoryDetail.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetParametricCategoryDetailResponse::class; - } - - public function getEndpoint(): string - { - return '/api/parametric-categories/{categoryGuid}'; - } -} diff --git a/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse.php b/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse.php deleted file mode 100644 index 36f84f6..0000000 --- a/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data.php b/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data.php deleted file mode 100644 index 5fc52ef..0000000 --- a/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -parametricCategory; - } - - public function setParametricCategory(ParametricCategory $parametricCategory): static - { - $this->parametricCategory = $parametricCategory; - return $this; - } -} diff --git a/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory.php b/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory.php deleted file mode 100644 index 2c5b1f7..0000000 --- a/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory.php +++ /dev/null @@ -1,166 +0,0 @@ -guid; - } - - public function setGuid(string $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getIndexName(): string - { - return $this->indexName; - } - - public function setIndexName(string $indexName): static - { - $this->indexName = $indexName; - return $this; - } - - public function getUrl(): string - { - return $this->url; - } - - public function setUrl(string $url): static - { - $this->url = $url; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getSecondDescription(): ?string - { - return $this->secondDescription; - } - - public function setSecondDescription(?string $secondDescription): static - { - $this->secondDescription = $secondDescription; - return $this; - } - - public function getImage(): ?string - { - return $this->image; - } - - public function setImage(?string $image): static - { - $this->image = $image; - return $this; - } - - public function getTitle(): ?string - { - return $this->title; - } - - public function setTitle(?string $title): static - { - $this->title = $title; - return $this; - } - - public function getMetaTagDescription(): ?string - { - return $this->metaTagDescription; - } - - public function setMetaTagDescription(?string $metaTagDescription): static - { - $this->metaTagDescription = $metaTagDescription; - return $this; - } - - public function getOriginalCategoryGuid(): ?string - { - return $this->originalCategoryGuid; - } - - public function setOriginalCategoryGuid(?string $originalCategoryGuid): static - { - $this->originalCategoryGuid = $originalCategoryGuid; - return $this; - } - - public function isShowInList(): bool - { - return $this->showInList; - } - - public function setShowInList(bool $showInList): static - { - $this->showInList = $showInList; - return $this; - } - - public function isShowInDetail(): bool - { - return $this->showInDetail; - } - - public function setShowInDetail(bool $showInDetail): static - { - $this->showInDetail = $showInDetail; - return $this; - } - - public function getParameters(): ?Parameters - { - return $this->parameters; - } - - public function setParameters(?Parameters $parameters): static - { - $this->parameters = $parameters; - return $this; - } -} diff --git a/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory/Parameters.php b/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory/Parameters.php deleted file mode 100644 index e771ece..0000000 --- a/src/Endpoint/Products/GetParametricCategoryDetailResponse/GetParametricCategoryDetailResponse/Data/ParametricCategory/Parameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ParameterValueCombinations[] $data - * @method ParameterValueCombinations[] toArray() - * @method void set(int $key, ParameterValueCombinations $item) - * @method null|ParameterValueCombinations get(int $key) - * @method void add(ParameterValueCombinations $item) - * @method null|ParameterValueCombinations remove(int $key) - * @method bool removeItem(ParameterValueCombinations $item, bool $strict = true) - * @method bool contains(ParameterValueCombinations $item, bool $strict = true) - * @method null|ParameterValueCombinations offsetGet(int $offset) - * @method void offsetSet(int $offset, ParameterValueCombinations $value) - */ -class Parameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ParameterValueCombinations'; - } -} diff --git a/src/Endpoint/Products/GetProductCategoryDetail.php b/src/Endpoint/Products/GetProductCategoryDetail.php deleted file mode 100644 index 9cc6099..0000000 --- a/src/Endpoint/Products/GetProductCategoryDetail.php +++ /dev/null @@ -1,33 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetProductCategoryDetailResponse::class; - } - - public function getEndpoint(): string - { - return '/api/categories/{categoryGuid}'; - } -} diff --git a/src/Endpoint/Products/GetProductDetail.php b/src/Endpoint/Products/GetProductDetail.php old mode 100644 new mode 100755 index 9bbda11..352606f --- a/src/Endpoint/Products/GetProductDetail.php +++ b/src/Endpoint/Products/GetProductDetail.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Products\GetProductDetailResponse\GetProductDetailResponse; /** - * @see https://api.docs.shoptet.com/openapi/Products/getproductdetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/getproductdetail * * @method GetProductDetail setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Products/GetProductDetailByCode.php b/src/Endpoint/Products/GetProductDetailByCode.php old mode 100644 new mode 100755 index e2dea9f..469e158 --- a/src/Endpoint/Products/GetProductDetailByCode.php +++ b/src/Endpoint/Products/GetProductDetailByCode.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Products\GetProductDetailByCodeResponse\GetProductDetailByCodeResponse; /** - * @see https://api.docs.shoptet.com/openapi/Products/getproductdetailbycode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/getproductdetailbycode * * @method GetProductDetailByCode setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Products/GetProductDetailByCodeResponse/GetProductDetailByCodeResponse.php b/src/Endpoint/Products/GetProductDetailByCodeResponse/GetProductDetailByCodeResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/GetProductDetailResponse/GetProductDetailResponse.php b/src/Endpoint/Products/GetProductDetailResponse/GetProductDetailResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/GetProductImagesUpdate.php b/src/Endpoint/Products/GetProductImagesUpdate.php deleted file mode 100644 index ed7f9a0..0000000 --- a/src/Endpoint/Products/GetProductImagesUpdate.php +++ /dev/null @@ -1,34 +0,0 @@ - true, 'gallery' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return GetProductImagesUpdateRequest::class; - } - - public function getResponseEntityClass(): string - { - return GetProductImagesUpdateResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/images/{gallery}'; - } -} diff --git a/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest.php b/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest.php deleted file mode 100644 index 47c7122..0000000 --- a/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data.php b/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data.php deleted file mode 100644 index 206a4d7..0000000 --- a/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -images; - } - - public function setImages(Images $images): static - { - $this->images = $images; - return $this; - } -} diff --git a/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images.php b/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images.php deleted file mode 100644 index 632af70..0000000 --- a/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Images extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetProductImagesUpdateRequest\GetProductImagesUpdateRequest\Data\Images\Item'; - } -} diff --git a/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images/Item.php b/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images/Item.php deleted file mode 100644 index 962baa4..0000000 --- a/src/Endpoint/Products/GetProductImagesUpdateRequest/GetProductImagesUpdateRequest/Data/Images/Item.php +++ /dev/null @@ -1,45 +0,0 @@ -name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } -} diff --git a/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data.php b/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data.php deleted file mode 100644 index 4a37024..0000000 --- a/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -images; - } - - public function setImages(Images $images): static - { - $this->images = $images; - return $this; - } -} diff --git a/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images.php b/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images.php deleted file mode 100644 index 1adf4f5..0000000 --- a/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Images extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\GetProductImagesUpdateResponse\GetProductImagesUpdateResponse\Data\Images\Item'; - } -} diff --git a/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item.php b/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item.php deleted file mode 100644 index 516b93c..0000000 --- a/src/Endpoint/Products/GetProductImagesUpdateResponse/GetProductImagesUpdateResponse/Data/Images/Item.php +++ /dev/null @@ -1,94 +0,0 @@ -name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getChangeTime(): TypeDateTime - { - return $this->changeTime; - } - - public function setChangeTime(TypeDateTime $changeTime): static - { - $this->changeTime = $changeTime; - return $this; - } - - public function getSeoName(): string - { - return $this->seoName; - } - - public function setSeoName(string $seoName): static - { - $this->seoName = $seoName; - return $this; - } - - public function getCdnName(): string - { - return $this->cdnName; - } - - public function setCdnName(string $cdnName): static - { - $this->cdnName = $cdnName; - return $this; - } - - public function isIsMainImage(): bool - { - return $this->isMainImage; - } - - public function setIsMainImage(bool $isMainImage): static - { - $this->isMainImage = $isMainImage; - return $this; - } -} diff --git a/src/Endpoint/Products/ProductBatchUpdate.php b/src/Endpoint/Products/ProductBatchUpdate.php old mode 100644 new mode 100755 index 8f0916e..77796fa --- a/src/Endpoint/Products/ProductBatchUpdate.php +++ b/src/Endpoint/Products/ProductBatchUpdate.php @@ -8,7 +8,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Products\ProductBatchUpdateResponse\ProductBatchUpdateResponse; /** - * @see https://api.docs.shoptet.com/openapi/Products/productbatchupdate + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/productbatchupdate * * @method ProductBatchUpdate setBody(null|array|ProductBatchUpdateRequest $entity) * @method null|ProductBatchUpdateRequest getBody() diff --git a/src/Endpoint/Products/ProductBatchUpdateRequest/ProductBatchUpdateRequest.php b/src/Endpoint/Products/ProductBatchUpdateRequest/ProductBatchUpdateRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/ProductBatchUpdateResponse/ProductBatchUpdateResponse.php b/src/Endpoint/Products/ProductBatchUpdateResponse/ProductBatchUpdateResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/ProductBatchUpdateResponse/ProductBatchUpdateResponse/Data.php b/src/Endpoint/Products/ProductBatchUpdateResponse/ProductBatchUpdateResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/ProductCopy.php b/src/Endpoint/Products/ProductCopy.php old mode 100644 new mode 100755 index 4fde4f6..5b40483 --- a/src/Endpoint/Products/ProductCopy.php +++ b/src/Endpoint/Products/ProductCopy.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Products\ProductCopyResponse\ProductCopyResponse; /** - * @see https://api.docs.shoptet.com/openapi/Products/productcopy + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/productcopy * * @method ProductCopy setBody(null|array|ProductCopyRequest $entity) * @method null|ProductCopyRequest getBody() diff --git a/src/Endpoint/Products/ProductCopyRequest/ProductCopyRequest.php b/src/Endpoint/Products/ProductCopyRequest/ProductCopyRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/ProductCopyRequest/ProductCopyRequest/Data.php b/src/Endpoint/Products/ProductCopyRequest/ProductCopyRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/ProductCopyRequest/ProductCopyRequest/Data/CopyProperties.php b/src/Endpoint/Products/ProductCopyRequest/ProductCopyRequest/Data/CopyProperties.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/ProductCopyResponse/ProductCopyResponse.php b/src/Endpoint/Products/ProductCopyResponse/ProductCopyResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/SetAlternativeProducts.php b/src/Endpoint/Products/SetAlternativeProducts.php deleted file mode 100644 index 83b87ae..0000000 --- a/src/Endpoint/Products/SetAlternativeProducts.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return SetAlternativeProductsRequest::class; - } - - public function getResponseEntityClass(): string - { - return SetAlternativeProductsResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/alternativeProducts'; - } -} diff --git a/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest.php b/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest.php deleted file mode 100644 index a8d45cf..0000000 --- a/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data.php b/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data.php deleted file mode 100644 index 3eb7411..0000000 --- a/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -alternativeProducts; - } - - public function setAlternativeProducts(AlternativeProducts $alternativeProducts): static - { - $this->alternativeProducts = $alternativeProducts; - return $this; - } -} diff --git a/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts.php b/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts.php deleted file mode 100644 index 502c0cf..0000000 --- a/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 AlternativeProducts extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\SetAlternativeProductsRequest\SetAlternativeProductsRequest\Data\AlternativeProducts\Item'; - } -} diff --git a/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts/Item.php b/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts/Item.php deleted file mode 100644 index ee5bc13..0000000 --- a/src/Endpoint/Products/SetAlternativeProductsRequest/SetAlternativeProductsRequest/Data/AlternativeProducts/Item.php +++ /dev/null @@ -1,22 +0,0 @@ -guid; - } - - public function setGuid(TypeGuidUnlimited $guid): static - { - $this->guid = $guid; - return $this; - } -} diff --git a/src/Endpoint/Products/SetAlternativeProductsResponse/SetAlternativeProductsResponse.php b/src/Endpoint/Products/SetAlternativeProductsResponse/SetAlternativeProductsResponse.php deleted file mode 100644 index 1afd55e..0000000 --- a/src/Endpoint/Products/SetAlternativeProductsResponse/SetAlternativeProductsResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data.php b/src/Endpoint/Products/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data.php deleted file mode 100644 index 3ca1fdc..0000000 --- a/src/Endpoint/Products/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -items; - } - - public function setItems(Items $items): static - { - $this->items = $items; - return $this; - } -} diff --git a/src/Endpoint/Products/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data/Items.php b/src/Endpoint/Products/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data/Items.php deleted file mode 100644 index 368ec49..0000000 --- a/src/Endpoint/Products/SetAlternativeProductsResponse/SetAlternativeProductsResponse/Data/Items.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property RelatedProduct[] $data - * @method RelatedProduct[] toArray() - * @method void set(int $key, RelatedProduct $item) - * @method null|RelatedProduct get(int $key) - * @method void add(RelatedProduct $item) - * @method null|RelatedProduct remove(int $key) - * @method bool removeItem(RelatedProduct $item, bool $strict = true) - * @method bool contains(RelatedProduct $item, bool $strict = true) - * @method null|RelatedProduct offsetGet(int $offset) - * @method void offsetSet(int $offset, RelatedProduct $value) - */ -class Items extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\RelatedProduct'; - } -} diff --git a/src/Endpoint/Products/SetProductSetItems.php b/src/Endpoint/Products/SetProductSetItems.php deleted file mode 100644 index 52b6b93..0000000 --- a/src/Endpoint/Products/SetProductSetItems.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return SetProductSetItemsRequest::class; - } - - public function getResponseEntityClass(): string - { - return SetProductSetItemsResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/set'; - } -} diff --git a/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest.php b/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest.php deleted file mode 100644 index 1f0698e..0000000 --- a/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest/Data.php b/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest/Data.php deleted file mode 100644 index cb36834..0000000 --- a/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -setItems; - } - - public function setSetItems(SetItems $setItems): static - { - $this->setItems = $setItems; - return $this; - } -} diff --git a/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems.php b/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems.php deleted file mode 100644 index 23c41d2..0000000 --- a/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 SetItems extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\SetProductSetItemsRequest\SetProductSetItemsRequest\Data\SetItems\Item'; - } -} diff --git a/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems/Item.php b/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems/Item.php deleted file mode 100644 index 2dd547e..0000000 --- a/src/Endpoint/Products/SetProductSetItemsRequest/SetProductSetItemsRequest/Data/SetItems/Item.php +++ /dev/null @@ -1,34 +0,0 @@ -code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getAmount(): TypePositiveAmount - { - return $this->amount; - } - - public function setAmount(TypePositiveAmount $amount): static - { - $this->amount = $amount; - return $this; - } -} diff --git a/src/Endpoint/Products/SetProductSetItemsResponse/SetProductSetItemsResponse/Data.php b/src/Endpoint/Products/SetProductSetItemsResponse/SetProductSetItemsResponse/Data.php deleted file mode 100644 index ab6c557..0000000 --- a/src/Endpoint/Products/SetProductSetItemsResponse/SetProductSetItemsResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -items; - } - - public function setItems(?Items $items): static - { - $this->items = $items; - return $this; - } -} diff --git a/src/Endpoint/Products/SetProductSetItemsResponse/SetProductSetItemsResponse/Data/Items.php b/src/Endpoint/Products/SetProductSetItemsResponse/SetProductSetItemsResponse/Data/Items.php deleted file mode 100644 index d3af92b..0000000 --- a/src/Endpoint/Products/SetProductSetItemsResponse/SetProductSetItemsResponse/Data/Items.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductSet[] $data - * @method ProductSet[] toArray() - * @method void set(int $key, ProductSet $item) - * @method null|ProductSet get(int $key) - * @method void add(ProductSet $item) - * @method null|ProductSet remove(int $key) - * @method bool removeItem(ProductSet $item, bool $strict = true) - * @method bool contains(ProductSet $item, bool $strict = true) - * @method null|ProductSet offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductSet $value) - */ -class Items extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductSet'; - } -} diff --git a/src/Endpoint/Products/SetRelatedProducts.php b/src/Endpoint/Products/SetRelatedProducts.php deleted file mode 100644 index 061d66e..0000000 --- a/src/Endpoint/Products/SetRelatedProducts.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return SetRelatedProductsRequest::class; - } - - public function getResponseEntityClass(): string - { - return SetRelatedProductsResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/relatedProducts'; - } -} diff --git a/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest.php b/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest.php deleted file mode 100644 index 5fdd775..0000000 --- a/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest/Data.php b/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest/Data.php deleted file mode 100644 index 52ecab5..0000000 --- a/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -relatedProducts; - } - - public function setRelatedProducts(RelatedProducts $relatedProducts): static - { - $this->relatedProducts = $relatedProducts; - return $this; - } -} diff --git a/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts.php b/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts.php deleted file mode 100644 index 6005f48..0000000 --- a/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 RelatedProducts extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\SetRelatedProductsRequest\SetRelatedProductsRequest\Data\RelatedProducts\Item'; - } -} diff --git a/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts/Item.php b/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts/Item.php deleted file mode 100644 index c0693c3..0000000 --- a/src/Endpoint/Products/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts/Item.php +++ /dev/null @@ -1,22 +0,0 @@ -guid; - } - - public function setGuid(TypeGuidUnlimited $guid): static - { - $this->guid = $guid; - return $this; - } -} diff --git a/src/Endpoint/Products/SetRelatedProductsResponse/SetRelatedProductsResponse/Data.php b/src/Endpoint/Products/SetRelatedProductsResponse/SetRelatedProductsResponse/Data.php deleted file mode 100644 index 44d919d..0000000 --- a/src/Endpoint/Products/SetRelatedProductsResponse/SetRelatedProductsResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -items; - } - - public function setItems(Items $items): static - { - $this->items = $items; - return $this; - } -} diff --git a/src/Endpoint/Products/SetRelatedProductsResponse/SetRelatedProductsResponse/Data/Items.php b/src/Endpoint/Products/SetRelatedProductsResponse/SetRelatedProductsResponse/Data/Items.php deleted file mode 100644 index 6343021..0000000 --- a/src/Endpoint/Products/SetRelatedProductsResponse/SetRelatedProductsResponse/Data/Items.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property RelatedProduct[] $data - * @method RelatedProduct[] toArray() - * @method void set(int $key, RelatedProduct $item) - * @method null|RelatedProduct get(int $key) - * @method void add(RelatedProduct $item) - * @method null|RelatedProduct remove(int $key) - * @method bool removeItem(RelatedProduct $item, bool $strict = true) - * @method bool contains(RelatedProduct $item, bool $strict = true) - * @method null|RelatedProduct offsetGet(int $offset) - * @method void offsetSet(int $offset, RelatedProduct $value) - */ -class Items extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\RelatedProduct'; - } -} diff --git a/src/Endpoint/Products/SteGiftsToProduct.php b/src/Endpoint/Products/SteGiftsToProduct.php deleted file mode 100644 index bef1e41..0000000 --- a/src/Endpoint/Products/SteGiftsToProduct.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return SteGiftsToProductRequest::class; - } - - public function getResponseEntityClass(): string - { - return SteGiftsToProductResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/gifts'; - } -} diff --git a/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest.php b/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest.php deleted file mode 100644 index 0d84f9b..0000000 --- a/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest/Data.php b/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest/Data.php deleted file mode 100644 index 3bec5f5..0000000 --- a/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -giftCodes; - } - - public function setGiftCodes(GiftCodes $giftCodes): static - { - $this->giftCodes = $giftCodes; - return $this; - } -} diff --git a/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes.php b/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes.php deleted file mode 100644 index b01ecb6..0000000 --- a/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 GiftCodes extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\SteGiftsToProductRequest\SteGiftsToProductRequest\Data\GiftCodes\Item'; - } -} diff --git a/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes/Item.php b/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes/Item.php deleted file mode 100644 index 8a63042..0000000 --- a/src/Endpoint/Products/SteGiftsToProductRequest/SteGiftsToProductRequest/Data/GiftCodes/Item.php +++ /dev/null @@ -1,21 +0,0 @@ -code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } -} diff --git a/src/Endpoint/Products/SteGiftsToProductResponse/SteGiftsToProductResponse/Data.php b/src/Endpoint/Products/SteGiftsToProductResponse/SteGiftsToProductResponse/Data.php deleted file mode 100644 index c40bdbf..0000000 --- a/src/Endpoint/Products/SteGiftsToProductResponse/SteGiftsToProductResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -items; - } - - public function setItems(ProductGifts $items): static - { - $this->items = $items; - return $this; - } -} diff --git a/src/Endpoint/Products/UnlinkAllProductRelatedFiles.php b/src/Endpoint/Products/UnlinkAllProductRelatedFiles.php new file mode 100755 index 0000000..6670180 --- /dev/null +++ b/src/Endpoint/Products/UnlinkAllProductRelatedFiles.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return UnlinkAllProductRelatedFilesResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/related-files'; + } +} diff --git a/src/Endpoint/Products/UnlinkAllProductRelatedFilesResponse/UnlinkAllProductRelatedFilesResponse.php b/src/Endpoint/Products/UnlinkAllProductRelatedFilesResponse/UnlinkAllProductRelatedFilesResponse.php new file mode 100755 index 0000000..12cc270 --- /dev/null +++ b/src/Endpoint/Products/UnlinkAllProductRelatedFilesResponse/UnlinkAllProductRelatedFilesResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Products/UnlinkAllProductRelatedFilesResponse/UnlinkAllProductRelatedFilesResponse/Data.php b/src/Endpoint/Products/UnlinkAllProductRelatedFilesResponse/UnlinkAllProductRelatedFilesResponse/Data.php new file mode 100755 index 0000000..b83fdc4 --- /dev/null +++ b/src/Endpoint/Products/UnlinkAllProductRelatedFilesResponse/UnlinkAllProductRelatedFilesResponse/Data.php @@ -0,0 +1,9 @@ + true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateConsumptionTaxRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateConsumptionTaxResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/consumption-taxes/{id}'; - } -} diff --git a/src/Endpoint/Products/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest.php b/src/Endpoint/Products/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest.php deleted file mode 100644 index 2b8f890..0000000 --- a/src/Endpoint/Products/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest/Data.php b/src/Endpoint/Products/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest/Data.php deleted file mode 100644 index ce0dfc0..0000000 --- a/src/Endpoint/Products/UpdateConsumptionTaxRequest/UpdateConsumptionTaxRequest/Data.php +++ /dev/null @@ -1,58 +0,0 @@ -name; - } - - public function setName(?string $name): static - { - $this->name = $name; - return $this; - } - - public function getPrice(): ?TypePrice - { - return $this->price; - } - - public function setPrice(?TypePrice $price): static - { - $this->price = $price; - return $this; - } - - public function getCurrency(): ?string - { - return $this->currency; - } - - public function setCurrency(?string $currency): static - { - $this->currency = $currency; - return $this; - } - - public function getIsVisible(): ?bool - { - return $this->isVisible; - } - - public function setIsVisible(?bool $isVisible): static - { - $this->isVisible = $isVisible; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateFilteringParameter.php b/src/Endpoint/Products/UpdateFilteringParameter.php deleted file mode 100644 index 9f8aca2..0000000 --- a/src/Endpoint/Products/UpdateFilteringParameter.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateFilteringParameterRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateFilteringParameterResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/filtering-parameters/{code}'; - } -} diff --git a/src/Endpoint/Products/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest.php b/src/Endpoint/Products/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest.php deleted file mode 100644 index 985c2fd..0000000 --- a/src/Endpoint/Products/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest/Data.php b/src/Endpoint/Products/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest/Data.php deleted file mode 100644 index 4ea9260..0000000 --- a/src/Endpoint/Products/UpdateFilteringParameterRequest/UpdateFilteringParameterRequest/Data.php +++ /dev/null @@ -1,81 +0,0 @@ -name; - } - - public function setName(?string $name): static - { - $this->name = $name; - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(?string $code): static - { - $this->code = $code; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getGoogleMapping(): ?string - { - return $this->googleMapping; - } - - public function setGoogleMapping(?string $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse.php b/src/Endpoint/Products/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse.php deleted file mode 100644 index 560bed1..0000000 --- a/src/Endpoint/Products/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data.php b/src/Endpoint/Products/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data.php deleted file mode 100644 index c154fef..0000000 --- a/src/Endpoint/Products/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data.php +++ /dev/null @@ -1,107 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getCode(): string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getGoogleMapping(): GoogleMappingType - { - return $this->googleMapping; - } - - public function setGoogleMapping(GoogleMappingType $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getValues(): ?Values - { - return $this->values; - } - - public function setValues(?Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data/Values.php b/src/Endpoint/Products/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data/Values.php deleted file mode 100644 index 13f4dd7..0000000 --- a/src/Endpoint/Products/UpdateFilteringParameterResponse/UpdateFilteringParameterResponse/Data/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductFilteringParameterValue[] $data - * @method ProductFilteringParameterValue[] toArray() - * @method void set(int $key, ProductFilteringParameterValue $item) - * @method null|ProductFilteringParameterValue get(int $key) - * @method void add(ProductFilteringParameterValue $item) - * @method null|ProductFilteringParameterValue remove(int $key) - * @method bool removeItem(ProductFilteringParameterValue $item, bool $strict = true) - * @method bool contains(ProductFilteringParameterValue $item, bool $strict = true) - * @method null|ProductFilteringParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductFilteringParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductFilteringParameterValue'; - } -} diff --git a/src/Endpoint/Products/UpdateFilteringParameterValue.php b/src/Endpoint/Products/UpdateFilteringParameterValue.php deleted file mode 100644 index 0e53857..0000000 --- a/src/Endpoint/Products/UpdateFilteringParameterValue.php +++ /dev/null @@ -1,34 +0,0 @@ - true, 'valueIndex' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateFilteringParameterValueRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateFilteringParameterValueResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/filtering-parameters/{code}/{valueIndex}'; - } -} diff --git a/src/Endpoint/Products/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest.php b/src/Endpoint/Products/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest.php deleted file mode 100644 index 06f64a3..0000000 --- a/src/Endpoint/Products/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest/Data.php b/src/Endpoint/Products/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest/Data.php deleted file mode 100644 index 404656a..0000000 --- a/src/Endpoint/Products/UpdateFilteringParameterValueRequest/UpdateFilteringParameterValueRequest/Data.php +++ /dev/null @@ -1,70 +0,0 @@ -name; - } - - public function setName(?string $name): static - { - $this->name = $name; - return $this; - } - - public function getValueIndex(): ?string - { - return $this->valueIndex; - } - - public function setValueIndex(?string $valueIndex): static - { - $this->valueIndex = $valueIndex; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getColor(): ?TypeColor - { - return $this->color; - } - - public function setColor(?TypeColor $color): static - { - $this->color = $color; - return $this; - } - - public function getImage(): ?string - { - return $this->image; - } - - public function setImage(?string $image): static - { - $this->image = $image; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse.php b/src/Endpoint/Products/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse.php deleted file mode 100644 index 4d7e831..0000000 --- a/src/Endpoint/Products/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data.php b/src/Endpoint/Products/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data.php deleted file mode 100644 index 2426179..0000000 --- a/src/Endpoint/Products/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data.php +++ /dev/null @@ -1,107 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getCode(): string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getGoogleMapping(): GoogleMappingType - { - return $this->googleMapping; - } - - public function setGoogleMapping(GoogleMappingType $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getValues(): ?Values - { - return $this->values; - } - - public function setValues(?Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data/Values.php b/src/Endpoint/Products/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data/Values.php deleted file mode 100644 index 4102e78..0000000 --- a/src/Endpoint/Products/UpdateFilteringParameterValueResponse/UpdateFilteringParameterValueResponse/Data/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductFilteringParameterValue[] $data - * @method ProductFilteringParameterValue[] toArray() - * @method void set(int $key, ProductFilteringParameterValue $item) - * @method null|ProductFilteringParameterValue get(int $key) - * @method void add(ProductFilteringParameterValue $item) - * @method null|ProductFilteringParameterValue remove(int $key) - * @method bool removeItem(ProductFilteringParameterValue $item, bool $strict = true) - * @method bool contains(ProductFilteringParameterValue $item, bool $strict = true) - * @method null|ProductFilteringParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductFilteringParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductFilteringParameterValue'; - } -} diff --git a/src/Endpoint/Products/UpdateProduct.php b/src/Endpoint/Products/UpdateProduct.php old mode 100644 new mode 100755 index e3fbdb5..86fa33c --- a/src/Endpoint/Products/UpdateProduct.php +++ b/src/Endpoint/Products/UpdateProduct.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductResponse\UpdateProductResponse; /** - * @see https://api.docs.shoptet.com/openapi/Products/updateproduct + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/updateproduct * * @method UpdateProduct setBody(null|array|UpdateProductRequest $entity) * @method null|UpdateProductRequest getBody() diff --git a/src/Endpoint/Products/UpdateProductByCode.php b/src/Endpoint/Products/UpdateProductByCode.php old mode 100644 new mode 100755 index 757c97a..0900348 --- a/src/Endpoint/Products/UpdateProductByCode.php +++ b/src/Endpoint/Products/UpdateProductByCode.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductByCodeResponse\UpdateProductByCodeResponse; /** - * @see https://api.docs.shoptet.com/openapi/Products/updateproductbycode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/updateproductbycode * * @method UpdateProductByCode setBody(null|array|UpdateProductByCodeRequest $entity) * @method null|UpdateProductByCodeRequest getBody() diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest.php old mode 100644 new mode 100755 index 09e1d43..2a326a2 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest.php +++ b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest.php @@ -3,18 +3,18 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductByCodeRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductByCodeRequest\UpdateProductByCodeRequest\Data; +use Shoptet\Api\Sdk\Php\Component\Entity\ProductUpdate; class UpdateProductByCodeRequest extends Entity { - protected Data $data; + protected ProductUpdate $data; - public function getData(): Data + public function getData(): ProductUpdate { return $this->data; } - public function setData(Data $data): static + public function setData(ProductUpdate $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data.php deleted file mode 100644 index efe1c11..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data.php +++ /dev/null @@ -1,305 +0,0 @@ -guid; - } - - public function setGuid(?TypeGuid $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): static - { - $this->type = $type; - return $this; - } - - public function getVisibility(): ?string - { - return $this->visibility; - } - - public function setVisibility(?string $visibility): static - { - $this->visibility = $visibility; - return $this; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(?string $name): static - { - $this->name = $name; - return $this; - } - - public function getAdult(): ?bool - { - return $this->adult; - } - - public function setAdult(?bool $adult): static - { - $this->adult = $adult; - return $this; - } - - public function getShortDescription(): ?string - { - return $this->shortDescription; - } - - public function setShortDescription(?string $shortDescription): static - { - $this->shortDescription = $shortDescription; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getMetaTitle(): ?string - { - return $this->metaTitle; - } - - public function setMetaTitle(?string $metaTitle): static - { - $this->metaTitle = $metaTitle; - return $this; - } - - public function getMetaDescription(): ?string - { - return $this->metaDescription; - } - - public function setMetaDescription(?string $metaDescription): static - { - $this->metaDescription = $metaDescription; - return $this; - } - - public function getConditionGrade(): ?string - { - return $this->conditionGrade; - } - - public function setConditionGrade(?string $conditionGrade): static - { - $this->conditionGrade = $conditionGrade; - return $this; - } - - public function getConditionDescription(): ?string - { - return $this->conditionDescription; - } - - public function setConditionDescription(?string $conditionDescription): static - { - $this->conditionDescription = $conditionDescription; - return $this; - } - - public function getDefaultCategoryGuid(): ?TypeGuid - { - return $this->defaultCategoryGuid; - } - - public function setDefaultCategoryGuid(?TypeGuid $defaultCategoryGuid): static - { - $this->defaultCategoryGuid = $defaultCategoryGuid; - return $this; - } - - public function getBrandCode(): ?string - { - return $this->brandCode; - } - - public function setBrandCode(?string $brandCode): static - { - $this->brandCode = $brandCode; - return $this; - } - - public function getInternalNote(): ?string - { - return $this->internalNote; - } - - public function setInternalNote(?string $internalNote): static - { - $this->internalNote = $internalNote; - return $this; - } - - public function getSupplierGuid(): ?TypeGuid - { - return $this->supplierGuid; - } - - public function setSupplierGuid(?TypeGuid $supplierGuid): static - { - $this->supplierGuid = $supplierGuid; - return $this; - } - - public function getCategoryGuids(): ?CategoryGuids - { - return $this->categoryGuids; - } - - public function setCategoryGuids(?CategoryGuids $categoryGuids): static - { - $this->categoryGuids = $categoryGuids; - return $this; - } - - public function getWarrantyId(): ?int - { - return $this->warrantyId; - } - - public function setWarrantyId(?int $warrantyId): static - { - $this->warrantyId = $warrantyId; - return $this; - } - - public function getFlags(): ?Flags - { - return $this->flags; - } - - public function setFlags(?Flags $flags): static - { - $this->flags = $flags; - return $this; - } - - public function getDescriptiveParameters(): ?DescriptiveParameters - { - return $this->descriptiveParameters; - } - - public function setDescriptiveParameters(?DescriptiveParameters $descriptiveParameters): static - { - $this->descriptiveParameters = $descriptiveParameters; - return $this; - } - - public function getFilteringParameters(): ?FilteringParameters - { - return $this->filteringParameters; - } - - public function setFilteringParameters(?FilteringParameters $filteringParameters): static - { - $this->filteringParameters = $filteringParameters; - return $this; - } - - public function getSurchargeParameters(): ?SurchargeParameters - { - return $this->surchargeParameters; - } - - public function setSurchargeParameters(?SurchargeParameters $surchargeParameters): static - { - $this->surchargeParameters = $surchargeParameters; - return $this; - } - - public function getVariants(): ?Variants - { - return $this->variants; - } - - public function setVariants(?Variants $variants): static - { - $this->variants = $variants; - return $this; - } - - public function getIndexName(): ?string - { - return $this->indexName; - } - - public function setIndexName(?string $indexName): static - { - $this->indexName = $indexName; - return $this; - } - - public function getRelatedVideos(): ?RelatedVideos - { - return $this->relatedVideos; - } - - public function setRelatedVideos(?RelatedVideos $relatedVideos): static - { - $this->relatedVideos = $relatedVideos; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/CategoryGuids.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/CategoryGuids.php deleted file mode 100644 index b901b5a..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/CategoryGuids.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property TypeGuid[] $data - * @method TypeGuid[] toArray() - * @method void set(int $key, TypeGuid $item) - * @method null|TypeGuid get(int $key) - * @method void add(TypeGuid $item) - * @method null|TypeGuid remove(int $key) - * @method bool removeItem(TypeGuid $item, bool $strict = true) - * @method bool contains(TypeGuid $item, bool $strict = true) - * @method null|TypeGuid offsetGet(int $offset) - * @method void offsetSet(int $offset, TypeGuid $value) - */ -class CategoryGuids extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid'; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/DescriptiveParameters.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/DescriptiveParameters.php deleted file mode 100644 index 0b90d28..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/DescriptiveParameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 DescriptiveParameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductByCodeRequest\UpdateProductByCodeRequest\Data\DescriptiveParameters\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/DescriptiveParameters/Item.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/DescriptiveParameters/Item.php deleted file mode 100644 index 839ac25..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/DescriptiveParameters/Item.php +++ /dev/null @@ -1,57 +0,0 @@ -name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getValue(): ?string - { - return $this->value; - } - - public function setValue(?string $value): static - { - $this->value = $value; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/FilteringParameters.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/FilteringParameters.php deleted file mode 100644 index ebdcd0f..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/FilteringParameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 FilteringParameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductByCodeRequest\UpdateProductByCodeRequest\Data\FilteringParameters\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/FilteringParameters/Item.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/FilteringParameters/Item.php deleted file mode 100644 index 2aed659..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/FilteringParameters/Item.php +++ /dev/null @@ -1,34 +0,0 @@ -code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getValues(): Values - { - return $this->values; - } - - public function setValues(Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/FilteringParameters/Item/Values.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/FilteringParameters/Item/Values.php deleted file mode 100644 index 9756b8a..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/FilteringParameters/Item/Values.php +++ /dev/null @@ -1,30 +0,0 @@ - - * @property string[] $data - * @method string[] toArray() - * @method void set(int $key, string $item) - * @method null|string get(int $key) - * @method void add(string $item) - * @method null|string remove(int $key) - * @method bool removeItem(string $item, bool $strict = true) - * @method bool contains(string $item, bool $strict = true) - * @method null|string offsetGet(int $offset) - * @method void offsetSet(int $offset, string $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return string - */ - public function getItemType(array $data): string - { - return 'string'; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Flags.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Flags.php deleted file mode 100644 index 880b1b3..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Flags.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Flags extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductByCodeRequest\UpdateProductByCodeRequest\Data\Flags\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Flags/Item.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Flags/Item.php deleted file mode 100644 index d86bb8d..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Flags/Item.php +++ /dev/null @@ -1,46 +0,0 @@ -code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getDateFrom(): ?TypeDate - { - return $this->dateFrom; - } - - public function setDateFrom(?TypeDate $dateFrom): static - { - $this->dateFrom = $dateFrom; - return $this; - } - - public function getDateTo(): ?TypeDate - { - return $this->dateTo; - } - - public function setDateTo(?TypeDate $dateTo): static - { - $this->dateTo = $dateTo; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/RelatedVideos.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/RelatedVideos.php deleted file mode 100644 index 03b470c..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/RelatedVideos.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 RelatedVideos extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductByCodeRequest\UpdateProductByCodeRequest\Data\RelatedVideos\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/RelatedVideos/Item.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/RelatedVideos/Item.php deleted file mode 100644 index e545274..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/RelatedVideos/Item.php +++ /dev/null @@ -1,45 +0,0 @@ -code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getTitle(): ?string - { - return $this->title; - } - - public function setTitle(?string $title): static - { - $this->title = $title; - return $this; - } - - public function getType(): string - { - return $this->type; - } - - public function setType(string $type): static - { - $this->type = $type; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/SurchargeParameters.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/SurchargeParameters.php deleted file mode 100644 index b104cfc..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/SurchargeParameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductRequestSurchargeParameter[] $data - * @method ProductRequestSurchargeParameter[] toArray() - * @method void set(int $key, ProductRequestSurchargeParameter $item) - * @method null|ProductRequestSurchargeParameter get(int $key) - * @method void add(ProductRequestSurchargeParameter $item) - * @method null|ProductRequestSurchargeParameter remove(int $key) - * @method bool removeItem(ProductRequestSurchargeParameter $item, bool $strict = true) - * @method bool contains(ProductRequestSurchargeParameter $item, bool $strict = true) - * @method null|ProductRequestSurchargeParameter offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductRequestSurchargeParameter $value) - */ -class SurchargeParameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductRequestSurchargeParameter'; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants.php deleted file mode 100644 index 738e85e..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Variants extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductByCodeRequest\UpdateProductByCodeRequest\Data\Variants\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item.php deleted file mode 100644 index e67cd78..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item.php +++ /dev/null @@ -1,339 +0,0 @@ -code; - } - - public function setCode(?string $code): static - { - $this->code = $code; - return $this; - } - - public function getNewCode(): ?string - { - return $this->newCode; - } - - public function setNewCode(?string $newCode): static - { - $this->newCode = $newCode; - return $this; - } - - public function getEan(): ?string - { - return $this->ean; - } - - public function setEan(?string $ean): static - { - $this->ean = $ean; - return $this; - } - - public function getUnitId(): ?int - { - return $this->unitId; - } - - public function setUnitId(?int $unitId): static - { - $this->unitId = $unitId; - return $this; - } - - public function getWeight(): ?TypeWeightRequest - { - return $this->weight; - } - - public function setWeight(?TypeWeightRequest $weight): static - { - $this->weight = $weight; - return $this; - } - - public function getWidth(): ?TypeDimension - { - return $this->width; - } - - public function setWidth(?TypeDimension $width): static - { - $this->width = $width; - return $this; - } - - public function getHeight(): ?TypeDimension - { - return $this->height; - } - - public function setHeight(?TypeDimension $height): static - { - $this->height = $height; - return $this; - } - - public function getDepth(): ?TypeDimension - { - return $this->depth; - } - - public function setDepth(?TypeDimension $depth): static - { - $this->depth = $depth; - return $this; - } - - public function getVisible(): ?bool - { - return $this->visible; - } - - public function setVisible(?bool $visible): static - { - $this->visible = $visible; - return $this; - } - - public function getManufacturerCode(): ?string - { - return $this->manufacturerCode; - } - - public function setManufacturerCode(?string $manufacturerCode): static - { - $this->manufacturerCode = $manufacturerCode; - return $this; - } - - public function getPluCode(): ?string - { - return $this->pluCode; - } - - public function setPluCode(?string $pluCode): static - { - $this->pluCode = $pluCode; - return $this; - } - - public function getIsbn(): ?string - { - return $this->isbn; - } - - public function setIsbn(?string $isbn): static - { - $this->isbn = $isbn; - return $this; - } - - public function getSerialNo(): ?string - { - return $this->serialNo; - } - - public function setSerialNo(?string $serialNo): static - { - $this->serialNo = $serialNo; - return $this; - } - - public function getMpn(): ?string - { - return $this->mpn; - } - - public function setMpn(?string $mpn): static - { - $this->mpn = $mpn; - return $this; - } - - public function getAvailabilityId(): ?float - { - return $this->availabilityId; - } - - public function setAvailabilityId(?float $availabilityId): static - { - $this->availabilityId = $availabilityId; - return $this; - } - - public function getAvailabilityWhenSoldOutId(): ?float - { - return $this->availabilityWhenSoldOutId; - } - - public function setAvailabilityWhenSoldOutId(?float $availabilityWhenSoldOutId): static - { - $this->availabilityWhenSoldOutId = $availabilityWhenSoldOutId; - return $this; - } - - public function getImage(): ?string - { - return $this->image; - } - - public function setImage(?string $image): static - { - $this->image = $image; - return $this; - } - - public function getParameters(): ?Parameters - { - return $this->parameters; - } - - public function setParameters(?Parameters $parameters): static - { - $this->parameters = $parameters; - return $this; - } - - public function getMinStockSupply(): ?TypePositiveAmount - { - return $this->minStockSupply; - } - - public function setMinStockSupply(?TypePositiveAmount $minStockSupply): static - { - $this->minStockSupply = $minStockSupply; - return $this; - } - - public function getStocksLocations(): ?StocksLocations - { - return $this->stocksLocations; - } - - public function setStocksLocations(?StocksLocations $stocksLocations): static - { - $this->stocksLocations = $stocksLocations; - return $this; - } - - public function getNegativeStockAllowed(): ?bool - { - return $this->negativeStockAllowed; - } - - public function setNegativeStockAllowed(?bool $negativeStockAllowed): static - { - $this->negativeStockAllowed = $negativeStockAllowed; - return $this; - } - - public function getMeasureUnit(): ?MeasureUnit - { - return $this->measureUnit; - } - - public function setMeasureUnit(?MeasureUnit $measureUnit): static - { - $this->measureUnit = $measureUnit; - return $this; - } - - public function getRecyclingFeeId(): ?int - { - return $this->recyclingFeeId; - } - - public function setRecyclingFeeId(?int $recyclingFeeId): static - { - $this->recyclingFeeId = $recyclingFeeId; - return $this; - } - - public function getConsumptionTaxId(): ?int - { - return $this->consumptionTaxId; - } - - public function setConsumptionTaxId(?int $consumptionTaxId): static - { - $this->consumptionTaxId = $consumptionTaxId; - return $this; - } - - public function getAmountDecimalPlaces(): ?int - { - return $this->amountDecimalPlaces; - } - - public function setAmountDecimalPlaces(?int $amountDecimalPlaces): static - { - $this->amountDecimalPlaces = $amountDecimalPlaces; - return $this; - } - - public function getAtypicalBilling(): ?bool - { - return $this->atypicalBilling; - } - - public function setAtypicalBilling(?bool $atypicalBilling): static - { - $this->atypicalBilling = $atypicalBilling; - return $this; - } - - public function getAtypicalShipping(): ?bool - { - return $this->atypicalShipping; - } - - public function setAtypicalShipping(?bool $atypicalShipping): static - { - $this->atypicalShipping = $atypicalShipping; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/Parameters.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/Parameters.php deleted file mode 100644 index 6225173..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/Parameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Parameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductByCodeRequest\UpdateProductByCodeRequest\Data\Variants\Item\Parameters\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/Parameters/Item.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/Parameters/Item.php deleted file mode 100644 index 680a15b..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/Parameters/Item.php +++ /dev/null @@ -1,33 +0,0 @@ -nameIndex; - } - - public function setNameIndex(string $nameIndex): static - { - $this->nameIndex = $nameIndex; - return $this; - } - - public function getValueIndex(): string - { - return $this->valueIndex; - } - - public function setValueIndex(string $valueIndex): static - { - $this->valueIndex = $valueIndex; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/StocksLocations.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/StocksLocations.php deleted file mode 100644 index 21125ac..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/StocksLocations.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 StocksLocations extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductByCodeRequest\UpdateProductByCodeRequest\Data\Variants\Item\StocksLocations\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/StocksLocations/Item.php b/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/StocksLocations/Item.php deleted file mode 100644 index 0250e2a..0000000 --- a/src/Endpoint/Products/UpdateProductByCodeRequest/UpdateProductByCodeRequest/Data/Variants/Item/StocksLocations/Item.php +++ /dev/null @@ -1,33 +0,0 @@ -stockId; - } - - public function setStockId(int $stockId): static - { - $this->stockId = $stockId; - return $this; - } - - public function getLocation(): ?string - { - return $this->location; - } - - public function setLocation(?string $location): static - { - $this->location = $location; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductByCodeResponse/UpdateProductByCodeResponse.php b/src/Endpoint/Products/UpdateProductByCodeResponse/UpdateProductByCodeResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/UpdateProductCategory.php b/src/Endpoint/Products/UpdateProductCategory.php deleted file mode 100644 index 7463840..0000000 --- a/src/Endpoint/Products/UpdateProductCategory.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateProductCategoryRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateProductCategoryResponse::class; - } - - public function getEndpoint(): string - { - return '/api/categories/{categoryGuid}'; - } -} diff --git a/src/Endpoint/Products/UpdateProductCategoryBatch.php b/src/Endpoint/Products/UpdateProductCategoryBatch.php deleted file mode 100644 index 4a15ee9..0000000 --- a/src/Endpoint/Products/UpdateProductCategoryBatch.php +++ /dev/null @@ -1,35 +0,0 @@ - false]; - - public function getRequestEntityClass(): string - { - return UpdateProductCategoryBatchRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateProductCategoryBatchResponse::class; - } - - public function getEndpoint(): string - { - return '/api/categories/batch'; - } -} diff --git a/src/Endpoint/Products/UpdateProductCategoryBatchResponse/UpdateProductCategoryBatchResponse/Data.php b/src/Endpoint/Products/UpdateProductCategoryBatchResponse/UpdateProductCategoryBatchResponse/Data.php deleted file mode 100644 index ed8087e..0000000 --- a/src/Endpoint/Products/UpdateProductCategoryBatchResponse/UpdateProductCategoryBatchResponse/Data.php +++ /dev/null @@ -1,21 +0,0 @@ -jobId; - } - - public function setJobId(string $jobId): static - { - $this->jobId = $jobId; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductCategoryRequest/UpdateProductCategoryRequest.php b/src/Endpoint/Products/UpdateProductCategoryRequest/UpdateProductCategoryRequest.php deleted file mode 100644 index 43fffba..0000000 --- a/src/Endpoint/Products/UpdateProductCategoryRequest/UpdateProductCategoryRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductCategoryRequest/UpdateProductCategoryRequest/Data.php b/src/Endpoint/Products/UpdateProductCategoryRequest/UpdateProductCategoryRequest/Data.php deleted file mode 100644 index 2854e57..0000000 --- a/src/Endpoint/Products/UpdateProductCategoryRequest/UpdateProductCategoryRequest/Data.php +++ /dev/null @@ -1,235 +0,0 @@ -guid; - } - - public function setGuid(?TypeGuid $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(?string $name): static - { - $this->name = $name; - return $this; - } - - public function getParentGuid(): ?TypeGuid - { - return $this->parentGuid; - } - - public function setParentGuid(?TypeGuid $parentGuid): static - { - $this->parentGuid = $parentGuid; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getSecondDescription(): ?string - { - return $this->secondDescription; - } - - public function setSecondDescription(?string $secondDescription): static - { - $this->secondDescription = $secondDescription; - return $this; - } - - /** - * @deprecated - */ - public function getImageName(): ?string - { - return $this->imageName; - } - - /** - * @deprecated - */ - public function setImageName(?string $imageName): static - { - $this->imageName = $imageName; - return $this; - } - - public function getSourceImageName(): ?TypeFilename - { - return $this->sourceImageName; - } - - public function setSourceImageName(?TypeFilename $sourceImageName): static - { - $this->sourceImageName = $sourceImageName; - return $this; - } - - public function getSortBefore(): ?TypeGuid - { - return $this->sortBefore; - } - - public function setSortBefore(?TypeGuid $sortBefore): static - { - $this->sortBefore = $sortBefore; - return $this; - } - - public function getSortAfter(): ?TypeGuid - { - return $this->sortAfter; - } - - public function setSortAfter(?TypeGuid $sortAfter): static - { - $this->sortAfter = $sortAfter; - return $this; - } - - public function getIndexName(): ?string - { - return $this->indexName; - } - - public function setIndexName(?string $indexName): static - { - $this->indexName = $indexName; - return $this; - } - - public function getMenuTitle(): ?string - { - return $this->menuTitle; - } - - public function setMenuTitle(?string $menuTitle): static - { - $this->menuTitle = $menuTitle; - return $this; - } - - public function getTitle(): ?string - { - return $this->title; - } - - public function setTitle(?string $title): static - { - $this->title = $title; - return $this; - } - - public function getMetaTagDescription(): ?string - { - return $this->metaTagDescription; - } - - public function setMetaTagDescription(?string $metaTagDescription): static - { - $this->metaTagDescription = $metaTagDescription; - return $this; - } - - public function getVisible(): ?bool - { - return $this->visible; - } - - public function setVisible(?bool $visible): static - { - $this->visible = $visible; - return $this; - } - - public function getCustomerVisibility(): ?string - { - return $this->customerVisibility; - } - - public function setCustomerVisibility(?string $customerVisibility): static - { - $this->customerVisibility = $customerVisibility; - return $this; - } - - public function getProductOrdering(): ?string - { - return $this->productOrdering; - } - - public function setProductOrdering(?string $productOrdering): static - { - $this->productOrdering = $productOrdering; - return $this; - } - - public function getSimilarProductsCategory(): ?TypeGuid - { - return $this->similarProductsCategory; - } - - public function setSimilarProductsCategory(?TypeGuid $similarProductsCategory): static - { - $this->similarProductsCategory = $similarProductsCategory; - return $this; - } - - public function getRelatedProductsCategory(): ?TypeGuid - { - return $this->relatedProductsCategory; - } - - public function setRelatedProductsCategory(?TypeGuid $relatedProductsCategory): static - { - $this->relatedProductsCategory = $relatedProductsCategory; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductFlag.php b/src/Endpoint/Products/UpdateProductFlag.php deleted file mode 100644 index 54939cf..0000000 --- a/src/Endpoint/Products/UpdateProductFlag.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateProductFlagRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateProductFlagResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/flags/{code}'; - } -} diff --git a/src/Endpoint/Products/UpdateProductFlagRequest/UpdateProductFlagRequest.php b/src/Endpoint/Products/UpdateProductFlagRequest/UpdateProductFlagRequest.php deleted file mode 100644 index f0f2a87..0000000 --- a/src/Endpoint/Products/UpdateProductFlagRequest/UpdateProductFlagRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductFlagRequest/UpdateProductFlagRequest/Data.php b/src/Endpoint/Products/UpdateProductFlagRequest/UpdateProductFlagRequest/Data.php deleted file mode 100644 index 8889e97..0000000 --- a/src/Endpoint/Products/UpdateProductFlagRequest/UpdateProductFlagRequest/Data.php +++ /dev/null @@ -1,34 +0,0 @@ -title; - } - - public function setTitle(?string $title): static - { - $this->title = $title; - return $this; - } - - public function getColor(): ?TypeColor - { - return $this->color; - } - - public function setColor(?TypeColor $color): static - { - $this->color = $color; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse/Data.php b/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse/Data.php deleted file mode 100644 index 6aeb3f4..0000000 --- a/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -flags; - } - - public function setFlags(Flags $flags): static - { - $this->flags = $flags; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags.php b/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags.php deleted file mode 100644 index 606d166..0000000 --- a/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Flags extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductFlagResponse\UpdateProductFlagResponse\Data\Flags\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags/Item.php b/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags/Item.php deleted file mode 100644 index 8a3516a..0000000 --- a/src/Endpoint/Products/UpdateProductFlagResponse/UpdateProductFlagResponse/Data/Flags/Item.php +++ /dev/null @@ -1,81 +0,0 @@ -code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getTitle(): string - { - return $this->title; - } - - public function setTitle(string $title): static - { - $this->title = $title; - return $this; - } - - public function isSystem(): bool - { - return $this->system; - } - - public function setSystem(bool $system): static - { - $this->system = $system; - return $this; - } - - public function getColor(): ?string - { - return $this->color; - } - - public function setColor(?string $color): static - { - $this->color = $color; - return $this; - } - - public function isShowInDetail(): bool - { - return $this->showInDetail; - } - - public function setShowInDetail(bool $showInDetail): static - { - $this->showInDetail = $showInDetail; - return $this; - } - - public function isShowInCategory(): bool - { - return $this->showInCategory; - } - - public function setShowInCategory(bool $showInCategory): static - { - $this->showInCategory = $showInCategory; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductImagesSource.php b/src/Endpoint/Products/UpdateProductImagesSource.php deleted file mode 100644 index 3a1b3fa..0000000 --- a/src/Endpoint/Products/UpdateProductImagesSource.php +++ /dev/null @@ -1,35 +0,0 @@ - true, 'gallery' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateProductImagesSourceRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateProductImagesSourceResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/{guid}/images/{gallery}/source'; - } -} diff --git a/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest.php b/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest.php deleted file mode 100644 index 5a463d9..0000000 --- a/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data.php b/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data.php deleted file mode 100644 index 990e090..0000000 --- a/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -images; - } - - public function setImages(Images $images): static - { - $this->images = $images; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images.php b/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images.php deleted file mode 100644 index 9feef2b..0000000 --- a/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Images extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductImagesSourceRequest\UpdateProductImagesSourceRequest\Data\Images\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images/Item.php b/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images/Item.php deleted file mode 100644 index 88c05e6..0000000 --- a/src/Endpoint/Products/UpdateProductImagesSourceRequest/UpdateProductImagesSourceRequest/Data/Images/Item.php +++ /dev/null @@ -1,57 +0,0 @@ -name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getSourceUrl(): string - { - return $this->sourceUrl; - } - - public function setSourceUrl(string $sourceUrl): static - { - $this->sourceUrl = $sourceUrl; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse.php b/src/Endpoint/Products/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse.php deleted file mode 100644 index f484522..0000000 --- a/src/Endpoint/Products/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse/Data.php b/src/Endpoint/Products/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse/Data.php deleted file mode 100644 index a81f57f..0000000 --- a/src/Endpoint/Products/UpdateProductImagesSourceResponse/UpdateProductImagesSourceResponse/Data.php +++ /dev/null @@ -1,21 +0,0 @@ -jobId; - } - - public function setJobId(string $jobId): static - { - $this->jobId = $jobId; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductOrderInCategory.php b/src/Endpoint/Products/UpdateProductOrderInCategory.php deleted file mode 100644 index b759ec5..0000000 --- a/src/Endpoint/Products/UpdateProductOrderInCategory.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateProductOrderInCategoryRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateProductOrderInCategoryResponse::class; - } - - public function getEndpoint(): string - { - return '/api/categories/{categoryGuid}/productsPriority'; - } -} diff --git a/src/Endpoint/Products/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest.php b/src/Endpoint/Products/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest.php deleted file mode 100644 index 88c6084..0000000 --- a/src/Endpoint/Products/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data.php b/src/Endpoint/Products/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data.php deleted file mode 100644 index 849e338..0000000 --- a/src/Endpoint/Products/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Data extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductOrderInCategoryRequest\UpdateProductOrderInCategoryRequest\Data\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data/Item.php b/src/Endpoint/Products/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data/Item.php deleted file mode 100644 index 563833f..0000000 --- a/src/Endpoint/Products/UpdateProductOrderInCategoryRequest/UpdateProductOrderInCategoryRequest/Data/Item.php +++ /dev/null @@ -1,34 +0,0 @@ -productGuid; - } - - public function setProductGuid(TypeGuidUnlimited $productGuid): static - { - $this->productGuid = $productGuid; - return $this; - } - - public function getPriority(): ?float - { - return $this->priority; - } - - public function setPriority(?float $priority): static - { - $this->priority = $priority; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductOrderInCategoryResponse/UpdateProductOrderInCategoryResponse.php b/src/Endpoint/Products/UpdateProductOrderInCategoryResponse/UpdateProductOrderInCategoryResponse.php deleted file mode 100644 index da6c7f2..0000000 --- a/src/Endpoint/Products/UpdateProductOrderInCategoryResponse/UpdateProductOrderInCategoryResponse.php +++ /dev/null @@ -1,34 +0,0 @@ -data; - } - - public function setData(null $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest.php old mode 100644 new mode 100755 index 1d2d3fc..ae67d69 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest.php +++ b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest.php @@ -3,18 +3,18 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductRequest\UpdateProductRequest\Data; +use Shoptet\Api\Sdk\Php\Component\Entity\ProductUpdate; class UpdateProductRequest extends Entity { - protected Data $data; + protected ProductUpdate $data; - public function getData(): Data + public function getData(): ProductUpdate { return $this->data; } - public function setData(Data $data): static + public function setData(ProductUpdate $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data.php deleted file mode 100644 index ef2b2f2..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data.php +++ /dev/null @@ -1,305 +0,0 @@ -guid; - } - - public function setGuid(?TypeGuid $guid): static - { - $this->guid = $guid; - return $this; - } - - public function getType(): ?string - { - return $this->type; - } - - public function setType(?string $type): static - { - $this->type = $type; - return $this; - } - - public function getVisibility(): ?string - { - return $this->visibility; - } - - public function setVisibility(?string $visibility): static - { - $this->visibility = $visibility; - return $this; - } - - public function getName(): ?string - { - return $this->name; - } - - public function setName(?string $name): static - { - $this->name = $name; - return $this; - } - - public function getAdult(): ?bool - { - return $this->adult; - } - - public function setAdult(?bool $adult): static - { - $this->adult = $adult; - return $this; - } - - public function getShortDescription(): ?string - { - return $this->shortDescription; - } - - public function setShortDescription(?string $shortDescription): static - { - $this->shortDescription = $shortDescription; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getMetaTitle(): ?string - { - return $this->metaTitle; - } - - public function setMetaTitle(?string $metaTitle): static - { - $this->metaTitle = $metaTitle; - return $this; - } - - public function getMetaDescription(): ?string - { - return $this->metaDescription; - } - - public function setMetaDescription(?string $metaDescription): static - { - $this->metaDescription = $metaDescription; - return $this; - } - - public function getConditionGrade(): ?string - { - return $this->conditionGrade; - } - - public function setConditionGrade(?string $conditionGrade): static - { - $this->conditionGrade = $conditionGrade; - return $this; - } - - public function getConditionDescription(): ?string - { - return $this->conditionDescription; - } - - public function setConditionDescription(?string $conditionDescription): static - { - $this->conditionDescription = $conditionDescription; - return $this; - } - - public function getDefaultCategoryGuid(): ?TypeGuid - { - return $this->defaultCategoryGuid; - } - - public function setDefaultCategoryGuid(?TypeGuid $defaultCategoryGuid): static - { - $this->defaultCategoryGuid = $defaultCategoryGuid; - return $this; - } - - public function getBrandCode(): ?string - { - return $this->brandCode; - } - - public function setBrandCode(?string $brandCode): static - { - $this->brandCode = $brandCode; - return $this; - } - - public function getInternalNote(): ?string - { - return $this->internalNote; - } - - public function setInternalNote(?string $internalNote): static - { - $this->internalNote = $internalNote; - return $this; - } - - public function getSupplierGuid(): ?TypeGuid - { - return $this->supplierGuid; - } - - public function setSupplierGuid(?TypeGuid $supplierGuid): static - { - $this->supplierGuid = $supplierGuid; - return $this; - } - - public function getCategoryGuids(): ?CategoryGuids - { - return $this->categoryGuids; - } - - public function setCategoryGuids(?CategoryGuids $categoryGuids): static - { - $this->categoryGuids = $categoryGuids; - return $this; - } - - public function getWarrantyId(): ?int - { - return $this->warrantyId; - } - - public function setWarrantyId(?int $warrantyId): static - { - $this->warrantyId = $warrantyId; - return $this; - } - - public function getFlags(): ?Flags - { - return $this->flags; - } - - public function setFlags(?Flags $flags): static - { - $this->flags = $flags; - return $this; - } - - public function getDescriptiveParameters(): ?DescriptiveParameters - { - return $this->descriptiveParameters; - } - - public function setDescriptiveParameters(?DescriptiveParameters $descriptiveParameters): static - { - $this->descriptiveParameters = $descriptiveParameters; - return $this; - } - - public function getFilteringParameters(): ?FilteringParameters - { - return $this->filteringParameters; - } - - public function setFilteringParameters(?FilteringParameters $filteringParameters): static - { - $this->filteringParameters = $filteringParameters; - return $this; - } - - public function getSurchargeParameters(): ?SurchargeParameters - { - return $this->surchargeParameters; - } - - public function setSurchargeParameters(?SurchargeParameters $surchargeParameters): static - { - $this->surchargeParameters = $surchargeParameters; - return $this; - } - - public function getVariants(): ?Variants - { - return $this->variants; - } - - public function setVariants(?Variants $variants): static - { - $this->variants = $variants; - return $this; - } - - public function getIndexName(): ?string - { - return $this->indexName; - } - - public function setIndexName(?string $indexName): static - { - $this->indexName = $indexName; - return $this; - } - - public function getRelatedVideos(): ?RelatedVideos - { - return $this->relatedVideos; - } - - public function setRelatedVideos(?RelatedVideos $relatedVideos): static - { - $this->relatedVideos = $relatedVideos; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/CategoryGuids.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/CategoryGuids.php deleted file mode 100644 index fc4233e..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/CategoryGuids.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property TypeGuid[] $data - * @method TypeGuid[] toArray() - * @method void set(int $key, TypeGuid $item) - * @method null|TypeGuid get(int $key) - * @method void add(TypeGuid $item) - * @method null|TypeGuid remove(int $key) - * @method bool removeItem(TypeGuid $item, bool $strict = true) - * @method bool contains(TypeGuid $item, bool $strict = true) - * @method null|TypeGuid offsetGet(int $offset) - * @method void offsetSet(int $offset, TypeGuid $value) - */ -class CategoryGuids extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuid'; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/DescriptiveParameters.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/DescriptiveParameters.php deleted file mode 100644 index 2df7e95..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/DescriptiveParameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 DescriptiveParameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductRequest\UpdateProductRequest\Data\DescriptiveParameters\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/DescriptiveParameters/Item.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/DescriptiveParameters/Item.php deleted file mode 100644 index 79f2c94..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/DescriptiveParameters/Item.php +++ /dev/null @@ -1,57 +0,0 @@ -name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getValue(): ?string - { - return $this->value; - } - - public function setValue(?string $value): static - { - $this->value = $value; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/FilteringParameters.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/FilteringParameters.php deleted file mode 100644 index f6ab80d..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/FilteringParameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 FilteringParameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductRequest\UpdateProductRequest\Data\FilteringParameters\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/FilteringParameters/Item.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/FilteringParameters/Item.php deleted file mode 100644 index 8cc972a..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/FilteringParameters/Item.php +++ /dev/null @@ -1,34 +0,0 @@ -code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getValues(): Values - { - return $this->values; - } - - public function setValues(Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/FilteringParameters/Item/Values.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/FilteringParameters/Item/Values.php deleted file mode 100644 index 1010d4e..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/FilteringParameters/Item/Values.php +++ /dev/null @@ -1,30 +0,0 @@ - - * @property string[] $data - * @method string[] toArray() - * @method void set(int $key, string $item) - * @method null|string get(int $key) - * @method void add(string $item) - * @method null|string remove(int $key) - * @method bool removeItem(string $item, bool $strict = true) - * @method bool contains(string $item, bool $strict = true) - * @method null|string offsetGet(int $offset) - * @method void offsetSet(int $offset, string $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return string - */ - public function getItemType(array $data): string - { - return 'string'; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Flags.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Flags.php deleted file mode 100644 index 0fd8323..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Flags.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Flags extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductRequest\UpdateProductRequest\Data\Flags\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Flags/Item.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Flags/Item.php deleted file mode 100644 index 26c86cf..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Flags/Item.php +++ /dev/null @@ -1,46 +0,0 @@ -code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getDateFrom(): ?TypeDate - { - return $this->dateFrom; - } - - public function setDateFrom(?TypeDate $dateFrom): static - { - $this->dateFrom = $dateFrom; - return $this; - } - - public function getDateTo(): ?TypeDate - { - return $this->dateTo; - } - - public function setDateTo(?TypeDate $dateTo): static - { - $this->dateTo = $dateTo; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/RelatedVideos.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/RelatedVideos.php deleted file mode 100644 index f1cccbe..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/RelatedVideos.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 RelatedVideos extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductRequest\UpdateProductRequest\Data\RelatedVideos\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/RelatedVideos/Item.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/RelatedVideos/Item.php deleted file mode 100644 index b0b90f2..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/RelatedVideos/Item.php +++ /dev/null @@ -1,45 +0,0 @@ -code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getTitle(): ?string - { - return $this->title; - } - - public function setTitle(?string $title): static - { - $this->title = $title; - return $this; - } - - public function getType(): string - { - return $this->type; - } - - public function setType(string $type): static - { - $this->type = $type; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/SurchargeParameters.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/SurchargeParameters.php deleted file mode 100644 index c6e578f..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/SurchargeParameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductRequestSurchargeParameter[] $data - * @method ProductRequestSurchargeParameter[] toArray() - * @method void set(int $key, ProductRequestSurchargeParameter $item) - * @method null|ProductRequestSurchargeParameter get(int $key) - * @method void add(ProductRequestSurchargeParameter $item) - * @method null|ProductRequestSurchargeParameter remove(int $key) - * @method bool removeItem(ProductRequestSurchargeParameter $item, bool $strict = true) - * @method bool contains(ProductRequestSurchargeParameter $item, bool $strict = true) - * @method null|ProductRequestSurchargeParameter offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductRequestSurchargeParameter $value) - */ -class SurchargeParameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductRequestSurchargeParameter'; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants.php deleted file mode 100644 index b020afa..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Variants extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductRequest\UpdateProductRequest\Data\Variants\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item.php deleted file mode 100644 index 0f14f2f..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item.php +++ /dev/null @@ -1,339 +0,0 @@ -code; - } - - public function setCode(?string $code): static - { - $this->code = $code; - return $this; - } - - public function getNewCode(): ?string - { - return $this->newCode; - } - - public function setNewCode(?string $newCode): static - { - $this->newCode = $newCode; - return $this; - } - - public function getEan(): ?string - { - return $this->ean; - } - - public function setEan(?string $ean): static - { - $this->ean = $ean; - return $this; - } - - public function getUnitId(): ?int - { - return $this->unitId; - } - - public function setUnitId(?int $unitId): static - { - $this->unitId = $unitId; - return $this; - } - - public function getWeight(): ?TypeWeightRequest - { - return $this->weight; - } - - public function setWeight(?TypeWeightRequest $weight): static - { - $this->weight = $weight; - return $this; - } - - public function getWidth(): ?TypeDimension - { - return $this->width; - } - - public function setWidth(?TypeDimension $width): static - { - $this->width = $width; - return $this; - } - - public function getHeight(): ?TypeDimension - { - return $this->height; - } - - public function setHeight(?TypeDimension $height): static - { - $this->height = $height; - return $this; - } - - public function getDepth(): ?TypeDimension - { - return $this->depth; - } - - public function setDepth(?TypeDimension $depth): static - { - $this->depth = $depth; - return $this; - } - - public function getVisible(): ?bool - { - return $this->visible; - } - - public function setVisible(?bool $visible): static - { - $this->visible = $visible; - return $this; - } - - public function getManufacturerCode(): ?string - { - return $this->manufacturerCode; - } - - public function setManufacturerCode(?string $manufacturerCode): static - { - $this->manufacturerCode = $manufacturerCode; - return $this; - } - - public function getPluCode(): ?string - { - return $this->pluCode; - } - - public function setPluCode(?string $pluCode): static - { - $this->pluCode = $pluCode; - return $this; - } - - public function getIsbn(): ?string - { - return $this->isbn; - } - - public function setIsbn(?string $isbn): static - { - $this->isbn = $isbn; - return $this; - } - - public function getSerialNo(): ?string - { - return $this->serialNo; - } - - public function setSerialNo(?string $serialNo): static - { - $this->serialNo = $serialNo; - return $this; - } - - public function getMpn(): ?string - { - return $this->mpn; - } - - public function setMpn(?string $mpn): static - { - $this->mpn = $mpn; - return $this; - } - - public function getAvailabilityId(): ?float - { - return $this->availabilityId; - } - - public function setAvailabilityId(?float $availabilityId): static - { - $this->availabilityId = $availabilityId; - return $this; - } - - public function getAvailabilityWhenSoldOutId(): ?float - { - return $this->availabilityWhenSoldOutId; - } - - public function setAvailabilityWhenSoldOutId(?float $availabilityWhenSoldOutId): static - { - $this->availabilityWhenSoldOutId = $availabilityWhenSoldOutId; - return $this; - } - - public function getImage(): ?string - { - return $this->image; - } - - public function setImage(?string $image): static - { - $this->image = $image; - return $this; - } - - public function getParameters(): ?Parameters - { - return $this->parameters; - } - - public function setParameters(?Parameters $parameters): static - { - $this->parameters = $parameters; - return $this; - } - - public function getMinStockSupply(): ?TypePositiveAmount - { - return $this->minStockSupply; - } - - public function setMinStockSupply(?TypePositiveAmount $minStockSupply): static - { - $this->minStockSupply = $minStockSupply; - return $this; - } - - public function getStocksLocations(): ?StocksLocations - { - return $this->stocksLocations; - } - - public function setStocksLocations(?StocksLocations $stocksLocations): static - { - $this->stocksLocations = $stocksLocations; - return $this; - } - - public function getNegativeStockAllowed(): ?bool - { - return $this->negativeStockAllowed; - } - - public function setNegativeStockAllowed(?bool $negativeStockAllowed): static - { - $this->negativeStockAllowed = $negativeStockAllowed; - return $this; - } - - public function getMeasureUnit(): ?MeasureUnit - { - return $this->measureUnit; - } - - public function setMeasureUnit(?MeasureUnit $measureUnit): static - { - $this->measureUnit = $measureUnit; - return $this; - } - - public function getRecyclingFeeId(): ?int - { - return $this->recyclingFeeId; - } - - public function setRecyclingFeeId(?int $recyclingFeeId): static - { - $this->recyclingFeeId = $recyclingFeeId; - return $this; - } - - public function getConsumptionTaxId(): ?int - { - return $this->consumptionTaxId; - } - - public function setConsumptionTaxId(?int $consumptionTaxId): static - { - $this->consumptionTaxId = $consumptionTaxId; - return $this; - } - - public function getAmountDecimalPlaces(): ?int - { - return $this->amountDecimalPlaces; - } - - public function setAmountDecimalPlaces(?int $amountDecimalPlaces): static - { - $this->amountDecimalPlaces = $amountDecimalPlaces; - return $this; - } - - public function getAtypicalBilling(): ?bool - { - return $this->atypicalBilling; - } - - public function setAtypicalBilling(?bool $atypicalBilling): static - { - $this->atypicalBilling = $atypicalBilling; - return $this; - } - - public function getAtypicalShipping(): ?bool - { - return $this->atypicalShipping; - } - - public function setAtypicalShipping(?bool $atypicalShipping): static - { - $this->atypicalShipping = $atypicalShipping; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/Parameters.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/Parameters.php deleted file mode 100644 index 9193ac5..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/Parameters.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Parameters extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductRequest\UpdateProductRequest\Data\Variants\Item\Parameters\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/Parameters/Item.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/Parameters/Item.php deleted file mode 100644 index 6ede087..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/Parameters/Item.php +++ /dev/null @@ -1,33 +0,0 @@ -nameIndex; - } - - public function setNameIndex(string $nameIndex): static - { - $this->nameIndex = $nameIndex; - return $this; - } - - public function getValueIndex(): string - { - return $this->valueIndex; - } - - public function setValueIndex(string $valueIndex): static - { - $this->valueIndex = $valueIndex; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/StocksLocations.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/StocksLocations.php deleted file mode 100644 index 11d36cd..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/StocksLocations.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 StocksLocations extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductRequest\UpdateProductRequest\Data\Variants\Item\StocksLocations\Item'; - } -} diff --git a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/StocksLocations/Item.php b/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/StocksLocations/Item.php deleted file mode 100644 index a729e89..0000000 --- a/src/Endpoint/Products/UpdateProductRequest/UpdateProductRequest/Data/Variants/Item/StocksLocations/Item.php +++ /dev/null @@ -1,33 +0,0 @@ -stockId; - } - - public function setStockId(int $stockId): static - { - $this->stockId = $stockId; - return $this; - } - - public function getLocation(): ?string - { - return $this->location; - } - - public function setLocation(?string $location): static - { - $this->location = $location; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateProductResponse/UpdateProductResponse.php b/src/Endpoint/Products/UpdateProductResponse/UpdateProductResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Products/UpdateSurchargeParameter.php b/src/Endpoint/Products/UpdateSurchargeParameter.php deleted file mode 100644 index 47b9b23..0000000 --- a/src/Endpoint/Products/UpdateSurchargeParameter.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateSurchargeParameterRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateSurchargeParameterResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/surcharge-parameters/{code}'; - } -} diff --git a/src/Endpoint/Products/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest.php b/src/Endpoint/Products/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest.php deleted file mode 100644 index a3fbd4d..0000000 --- a/src/Endpoint/Products/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest/Data.php b/src/Endpoint/Products/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest/Data.php deleted file mode 100644 index 8eb45f5..0000000 --- a/src/Endpoint/Products/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest/Data.php +++ /dev/null @@ -1,118 +0,0 @@ -name; - } - - public function setName(?string $name): static - { - $this->name = $name; - return $this; - } - - public function getCode(): ?string - { - return $this->code; - } - - public function setCode(?string $code): static - { - $this->code = $code; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getGoogleMapping(): ?string - { - return $this->googleMapping; - } - - public function setGoogleMapping(?string $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getCurrency(): ?TypeCurrencyCode - { - return $this->currency; - } - - public function setCurrency(?TypeCurrencyCode $currency): static - { - $this->currency = $currency; - return $this; - } - - public function getRequired(): ?bool - { - return $this->required; - } - - public function setRequired(?bool $required): static - { - $this->required = $required; - return $this; - } - - public function getIncludingVat(): ?bool - { - return $this->includingVat; - } - - public function setIncludingVat(?bool $includingVat): static - { - $this->includingVat = $includingVat; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse.php b/src/Endpoint/Products/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse.php deleted file mode 100644 index 935def8..0000000 --- a/src/Endpoint/Products/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data.php b/src/Endpoint/Products/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data.php deleted file mode 100644 index db207c6..0000000 --- a/src/Endpoint/Products/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -surchargeParameter; - } - - public function setSurchargeParameter(SurchargeParameter $surchargeParameter): static - { - $this->surchargeParameter = $surchargeParameter; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data/SurchargeParameter.php b/src/Endpoint/Products/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data/SurchargeParameter.php deleted file mode 100644 index 24639f1..0000000 --- a/src/Endpoint/Products/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data/SurchargeParameter.php +++ /dev/null @@ -1,130 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getCode(): string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function isRequired(): bool - { - return $this->required; - } - - public function setRequired(bool $required): static - { - $this->required = $required; - return $this; - } - - public function getCurrency(): string - { - return $this->currency; - } - - public function setCurrency(string $currency): static - { - $this->currency = $currency; - return $this; - } - - public function isIncludingVat(): bool - { - return $this->includingVat; - } - - public function setIncludingVat(bool $includingVat): static - { - $this->includingVat = $includingVat; - return $this; - } - - public function getGoogleMapping(): GoogleMappingType - { - return $this->googleMapping; - } - - public function setGoogleMapping(GoogleMappingType $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateSurchargeParameterValue.php b/src/Endpoint/Products/UpdateSurchargeParameterValue.php deleted file mode 100644 index debc08e..0000000 --- a/src/Endpoint/Products/UpdateSurchargeParameterValue.php +++ /dev/null @@ -1,34 +0,0 @@ - true, 'valueIndex' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateSurchargeParameterValueRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateSurchargeParameterValueResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/surcharge-parameters/{paramIndex}/{valueIndex}'; - } -} diff --git a/src/Endpoint/Products/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest.php b/src/Endpoint/Products/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest.php deleted file mode 100644 index 9d0f000..0000000 --- a/src/Endpoint/Products/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest/Data.php b/src/Endpoint/Products/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest/Data.php deleted file mode 100644 index d3f9122..0000000 --- a/src/Endpoint/Products/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest/Data.php +++ /dev/null @@ -1,58 +0,0 @@ -name; - } - - public function setName(?string $name): static - { - $this->name = $name; - return $this; - } - - public function getValueIndex(): ?string - { - return $this->valueIndex; - } - - public function setValueIndex(?string $valueIndex): static - { - $this->valueIndex = $valueIndex; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getPrice(): ?TypePrice - { - return $this->price; - } - - public function setPrice(?TypePrice $price): static - { - $this->price = $price; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse.php b/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse.php deleted file mode 100644 index 4b94cf5..0000000 --- a/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data.php b/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data.php deleted file mode 100644 index e6e2e42..0000000 --- a/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -surchargeParameter; - } - - public function setSurchargeParameter(SurchargeParameter $surchargeParameter): static - { - $this->surchargeParameter = $surchargeParameter; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter.php b/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter.php deleted file mode 100644 index 5ca251b..0000000 --- a/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter.php +++ /dev/null @@ -1,143 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getCode(): string - { - return $this->code; - } - - public function setCode(string $code): static - { - $this->code = $code; - return $this; - } - - public function getName(): string - { - return $this->name; - } - - public function setName(string $name): static - { - $this->name = $name; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getDescription(): ?string - { - return $this->description; - } - - public function setDescription(?string $description): static - { - $this->description = $description; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function isRequired(): bool - { - return $this->required; - } - - public function setRequired(bool $required): static - { - $this->required = $required; - return $this; - } - - public function getCurrency(): string - { - return $this->currency; - } - - public function setCurrency(string $currency): static - { - $this->currency = $currency; - return $this; - } - - public function isIncludingVat(): bool - { - return $this->includingVat; - } - - public function setIncludingVat(bool $includingVat): static - { - $this->includingVat = $includingVat; - return $this; - } - - public function getGoogleMapping(): GoogleMappingType - { - return $this->googleMapping; - } - - public function setGoogleMapping(GoogleMappingType $googleMapping): static - { - $this->googleMapping = $googleMapping; - return $this; - } - - public function getValues(): Values - { - return $this->values; - } - - public function setValues(Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php b/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php deleted file mode 100644 index 8ccbad4..0000000 --- a/src/Endpoint/Products/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property SurchargeParameterValue[] $data - * @method SurchargeParameterValue[] toArray() - * @method void set(int $key, SurchargeParameterValue $item) - * @method null|SurchargeParameterValue get(int $key) - * @method void add(SurchargeParameterValue $item) - * @method null|SurchargeParameterValue remove(int $key) - * @method bool removeItem(SurchargeParameterValue $item, bool $strict = true) - * @method bool contains(SurchargeParameterValue $item, bool $strict = true) - * @method null|SurchargeParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, SurchargeParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\SurchargeParameterValue'; - } -} diff --git a/src/Endpoint/Products/UpdateVariantParameter.php b/src/Endpoint/Products/UpdateVariantParameter.php deleted file mode 100644 index 096f7ee..0000000 --- a/src/Endpoint/Products/UpdateVariantParameter.php +++ /dev/null @@ -1,34 +0,0 @@ - true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateVariantParameterRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateVariantParameterResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/variant-parameters/{paramIndex}'; - } -} diff --git a/src/Endpoint/Products/UpdateVariantParameterRequest/UpdateVariantParameterRequest.php b/src/Endpoint/Products/UpdateVariantParameterRequest/UpdateVariantParameterRequest.php deleted file mode 100644 index aef45c5..0000000 --- a/src/Endpoint/Products/UpdateVariantParameterRequest/UpdateVariantParameterRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateVariantParameterRequest/UpdateVariantParameterRequest/Data.php b/src/Endpoint/Products/UpdateVariantParameterRequest/UpdateVariantParameterRequest/Data.php deleted file mode 100644 index a672930..0000000 --- a/src/Endpoint/Products/UpdateVariantParameterRequest/UpdateVariantParameterRequest/Data.php +++ /dev/null @@ -1,57 +0,0 @@ -paramName; - } - - public function setParamName(?string $paramName): static - { - $this->paramName = $paramName; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getParamIndex(): ?string - { - return $this->paramIndex; - } - - public function setParamIndex(?string $paramIndex): static - { - $this->paramIndex = $paramIndex; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateVariantParameterResponse/UpdateVariantParameterResponse.php b/src/Endpoint/Products/UpdateVariantParameterResponse/UpdateVariantParameterResponse.php deleted file mode 100644 index 56821e1..0000000 --- a/src/Endpoint/Products/UpdateVariantParameterResponse/UpdateVariantParameterResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data.php b/src/Endpoint/Products/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data.php deleted file mode 100644 index 7935602..0000000 --- a/src/Endpoint/Products/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data.php +++ /dev/null @@ -1,82 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getParamName(): ?string - { - return $this->paramName; - } - - public function setParamName(?string $paramName): static - { - $this->paramName = $paramName; - return $this; - } - - public function getParamIndex(): string - { - return $this->paramIndex; - } - - public function setParamIndex(string $paramIndex): static - { - $this->paramIndex = $paramIndex; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getValues(): ?Values - { - return $this->values; - } - - public function setValues(?Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data/Values.php b/src/Endpoint/Products/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data/Values.php deleted file mode 100644 index 0674fdc..0000000 --- a/src/Endpoint/Products/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductVariantParameterValue[] $data - * @method ProductVariantParameterValue[] toArray() - * @method void set(int $key, ProductVariantParameterValue $item) - * @method null|ProductVariantParameterValue get(int $key) - * @method void add(ProductVariantParameterValue $item) - * @method null|ProductVariantParameterValue remove(int $key) - * @method bool removeItem(ProductVariantParameterValue $item, bool $strict = true) - * @method bool contains(ProductVariantParameterValue $item, bool $strict = true) - * @method null|ProductVariantParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductVariantParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductVariantParameterValue'; - } -} diff --git a/src/Endpoint/Products/UpdateVariantParameterValue.php b/src/Endpoint/Products/UpdateVariantParameterValue.php deleted file mode 100644 index 710744a..0000000 --- a/src/Endpoint/Products/UpdateVariantParameterValue.php +++ /dev/null @@ -1,34 +0,0 @@ - true, 'rawValue' => true]; - protected array $supportedQueryParams = ['language' => false]; - - public function getRequestEntityClass(): string - { - return UpdateVariantParameterValueRequest::class; - } - - public function getResponseEntityClass(): string - { - return UpdateVariantParameterValueResponse::class; - } - - public function getEndpoint(): string - { - return '/api/products/variant-parameters/{paramIndex}/{rawValue}'; - } -} diff --git a/src/Endpoint/Products/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest.php b/src/Endpoint/Products/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest.php deleted file mode 100644 index e70b1c1..0000000 --- a/src/Endpoint/Products/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest.php +++ /dev/null @@ -1,22 +0,0 @@ -data; - } - - public function setData(Data $data): static - { - $this->data = $data; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest/Data.php b/src/Endpoint/Products/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest/Data.php deleted file mode 100644 index 2efa289..0000000 --- a/src/Endpoint/Products/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest/Data.php +++ /dev/null @@ -1,70 +0,0 @@ -paramValue; - } - - public function setParamValue(?string $paramValue): static - { - $this->paramValue = $paramValue; - return $this; - } - - public function getRawValue(): ?string - { - return $this->rawValue; - } - - public function setRawValue(?string $rawValue): static - { - $this->rawValue = $rawValue; - return $this; - } - - public function getColor(): ?TypeColor - { - return $this->color; - } - - public function setColor(?TypeColor $color): static - { - $this->color = $color; - return $this; - } - - public function getImage(): ?string - { - return $this->image; - } - - public function setImage(?string $image): static - { - $this->image = $image; - return $this; - } - - public function getValuePriority(): ?int - { - return $this->valuePriority; - } - - public function setValuePriority(?int $valuePriority): static - { - $this->valuePriority = $valuePriority; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse.php b/src/Endpoint/Products/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse.php deleted file mode 100644 index af19762..0000000 --- a/src/Endpoint/Products/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data.php b/src/Endpoint/Products/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data.php deleted file mode 100644 index e88235f..0000000 --- a/src/Endpoint/Products/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data.php +++ /dev/null @@ -1,82 +0,0 @@ -id; - } - - public function setId(int $id): static - { - $this->id = $id; - return $this; - } - - public function getParamName(): ?string - { - return $this->paramName; - } - - public function setParamName(?string $paramName): static - { - $this->paramName = $paramName; - return $this; - } - - public function getParamIndex(): string - { - return $this->paramIndex; - } - - public function setParamIndex(string $paramIndex): static - { - $this->paramIndex = $paramIndex; - return $this; - } - - public function getDisplayName(): ?string - { - return $this->displayName; - } - - public function setDisplayName(?string $displayName): static - { - $this->displayName = $displayName; - return $this; - } - - public function getPriority(): ?int - { - return $this->priority; - } - - public function setPriority(?int $priority): static - { - $this->priority = $priority; - return $this; - } - - public function getValues(): ?Values - { - return $this->values; - } - - public function setValues(?Values $values): static - { - $this->values = $values; - return $this; - } -} diff --git a/src/Endpoint/Products/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data/Values.php b/src/Endpoint/Products/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data/Values.php deleted file mode 100644 index 4948b3a..0000000 --- a/src/Endpoint/Products/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data/Values.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @property ProductVariantParameterValue[] $data - * @method ProductVariantParameterValue[] toArray() - * @method void set(int $key, ProductVariantParameterValue $item) - * @method null|ProductVariantParameterValue get(int $key) - * @method void add(ProductVariantParameterValue $item) - * @method null|ProductVariantParameterValue remove(int $key) - * @method bool removeItem(ProductVariantParameterValue $item, bool $strict = true) - * @method bool contains(ProductVariantParameterValue $item, bool $strict = true) - * @method null|ProductVariantParameterValue offsetGet(int $offset) - * @method void offsetSet(int $offset, ProductVariantParameterValue $value) - */ -class Values extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductVariantParameterValue'; - } -} diff --git a/src/Endpoint/ProformaInvoices/DownloadProformaInvoicePdf.php b/src/Endpoint/ProformaInvoices/DownloadProformaInvoicePdf.php old mode 100644 new mode 100755 index c2663b7..8aa3190 --- a/src/Endpoint/ProformaInvoices/DownloadProformaInvoicePdf.php +++ b/src/Endpoint/ProformaInvoices/DownloadProformaInvoicePdf.php @@ -5,7 +5,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Get; /** - * @see https://api.docs.shoptet.com/openapi/Proforma-invoices/downloadproformainvoicepdf + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proforma-invoices/downloadproformainvoicepdf * * @method DownloadProformaInvoicePdf setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChanges.php b/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChanges.php old mode 100644 new mode 100755 index a9f3c4e..205a4e1 --- a/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChanges.php +++ b/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChanges.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProformaInvoices\GetLastProformaInvoiceChangesResponse\GetLastProformaInvoiceChangesResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proforma-invoices/getlastproformainvoicechanges + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proforma-invoices/getlastproformainvoicechanges * * @method GetLastProformaInvoiceChanges setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChangesResponse/GetLastProformaInvoiceChangesResponse.php b/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChangesResponse/GetLastProformaInvoiceChangesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChangesResponse/GetLastProformaInvoiceChangesResponse/Data.php b/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChangesResponse/GetLastProformaInvoiceChangesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChangesResponse/GetLastProformaInvoiceChangesResponse/Data/Changes.php b/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChangesResponse/GetLastProformaInvoiceChangesResponse/Data/Changes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChangesResponse/GetLastProformaInvoiceChangesResponse/Data/Changes/Item.php b/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChangesResponse/GetLastProformaInvoiceChangesResponse/Data/Changes/Item.php old mode 100644 new mode 100755 index 1e4ebf1..0ef39f6 --- a/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChangesResponse/GetLastProformaInvoiceChangesResponse/Data/Changes/Item.php +++ b/src/Endpoint/ProformaInvoices/GetLastProformaInvoiceChangesResponse/GetLastProformaInvoiceChangesResponse/Data/Changes/Item.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\ProformaInvoices\GetLastProformaInvoiceChangesResponse\GetLastProformaInvoiceChangesResponse\Data\Changes; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Item extends Entity { protected string $code; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $changeTime; protected string $changeType; public function getCode(): string @@ -22,12 +22,12 @@ public function setCode(string $code): static return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; diff --git a/src/Endpoint/ProformaInvoices/GetListOfAllProformaInvoices.php b/src/Endpoint/ProformaInvoices/GetListOfAllProformaInvoices.php old mode 100644 new mode 100755 index 9b4f4a9..d9cf6f6 --- a/src/Endpoint/ProformaInvoices/GetListOfAllProformaInvoices.php +++ b/src/Endpoint/ProformaInvoices/GetListOfAllProformaInvoices.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\ProformaInvoices; use Shoptet\Api\Sdk\Php\Async\SnapshotEndpoint; -use Shoptet\Api\Sdk\Php\Component\Entity\ProformaInvoice; +use Shoptet\Api\Sdk\Php\Component\Entity\ProformaInvoiceSnapshot; use Shoptet\Api\Sdk\Php\Endpoint\Get; use Shoptet\Api\Sdk\Php\Endpoint\ProformaInvoices\GetListOfAllProformaInvoicesResponse\GetListOfAllProformaInvoicesResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proforma-invoices/getlistofallproformainvoices + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proforma-invoices/getlistofallproformainvoices * * @method GetListOfAllProformaInvoices setBody(null $entity) * @method null getBody() @@ -50,6 +50,6 @@ public function getEndpoint(): string public function getSnapshotResultEntityClass(): string { - return ProformaInvoice::class; + return ProformaInvoiceSnapshot::class; } } diff --git a/src/Endpoint/ProformaInvoices/GetListOfAllProformaInvoicesResponse/GetListOfAllProformaInvoicesResponse.php b/src/Endpoint/ProformaInvoices/GetListOfAllProformaInvoicesResponse/GetListOfAllProformaInvoicesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProformaInvoices/GetListOfAllProformaInvoicesResponse/GetListOfAllProformaInvoicesResponse/Data.php b/src/Endpoint/ProformaInvoices/GetListOfAllProformaInvoicesResponse/GetListOfAllProformaInvoicesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProformaInvoices/GetListOfProformaInvoices.php b/src/Endpoint/ProformaInvoices/GetListOfProformaInvoices.php old mode 100644 new mode 100755 index 35ba6ea..1cd1cb6 --- a/src/Endpoint/ProformaInvoices/GetListOfProformaInvoices.php +++ b/src/Endpoint/ProformaInvoices/GetListOfProformaInvoices.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProformaInvoices\GetListOfProformaInvoicesResponse\GetListOfProformaInvoicesResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proforma-invoices/getlistofproformainvoices + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proforma-invoices/getlistofproformainvoices * * @method GetListOfProformaInvoices setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse.php b/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse/Data.php b/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse/Data/ProformaInvoices.php b/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse/Data/ProformaInvoices.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse/Data/ProformaInvoices/Item.php b/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse/Data/ProformaInvoices/Item.php old mode 100644 new mode 100755 index d6d5ad6..3e9a95a --- a/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse/Data/ProformaInvoices/Item.php +++ b/src/Endpoint/ProformaInvoices/GetListOfProformaInvoicesResponse/GetListOfProformaInvoicesResponse/Data/ProformaInvoices/Item.php @@ -4,7 +4,7 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Price; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Item extends Entity { @@ -12,11 +12,11 @@ class Item extends Entity protected ?float $varSymbol; protected bool $isValid; protected ?string $orderCode; - protected TypeDateTime $creationTime; + protected TypeDateTimeNullable $creationTime; protected ?string $billCompany; protected ?string $billFullName; protected Price $price; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $changeTime; public function getCode(): string { @@ -62,12 +62,12 @@ public function setOrderCode(?string $orderCode): static return $this; } - public function getCreationTime(): TypeDateTime + public function getCreationTime(): TypeDateTimeNullable { return $this->creationTime; } - public function setCreationTime(TypeDateTime $creationTime): static + public function setCreationTime(TypeDateTimeNullable $creationTime): static { $this->creationTime = $creationTime; return $this; @@ -106,12 +106,12 @@ public function setPrice(Price $price): static return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; diff --git a/src/Endpoint/ProformaInvoices/GetProformaInvoiceDetail.php b/src/Endpoint/ProformaInvoices/GetProformaInvoiceDetail.php old mode 100644 new mode 100755 index c9d747e..40b20e1 --- a/src/Endpoint/ProformaInvoices/GetProformaInvoiceDetail.php +++ b/src/Endpoint/ProformaInvoices/GetProformaInvoiceDetail.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProformaInvoices\GetProformaInvoiceDetailResponse\GetProformaInvoiceDetailResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proforma-invoices/getproformainvoicedetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proforma-invoices/getproformainvoicedetail * * @method GetProformaInvoiceDetail setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ProformaInvoices/GetProformaInvoiceDetailResponse/GetProformaInvoiceDetailResponse.php b/src/Endpoint/ProformaInvoices/GetProformaInvoiceDetailResponse/GetProformaInvoiceDetailResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProformaInvoices/GetProformaInvoiceDetailResponse/GetProformaInvoiceDetailResponse/Data.php b/src/Endpoint/ProformaInvoices/GetProformaInvoiceDetailResponse/GetProformaInvoiceDetailResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Project/GetProjectDomainList.php b/src/Endpoint/Project/GetProjectDomainList.php new file mode 100755 index 0000000..5e5e754 --- /dev/null +++ b/src/Endpoint/Project/GetProjectDomainList.php @@ -0,0 +1,33 @@ + false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetProjectDomainListResponse::class; + } + + public function getEndpoint(): string + { + return '/api/project/domain'; + } +} diff --git a/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse.php b/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse.php new file mode 100755 index 0000000..375e55b --- /dev/null +++ b/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse/Data.php b/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse/Data.php new file mode 100755 index 0000000..7eb642b --- /dev/null +++ b/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse/Data.php @@ -0,0 +1,22 @@ +domains; + } + + public function setDomains(Domains $domains): static + { + $this->domains = $domains; + return $this; + } +} diff --git a/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse/Data/Domains.php b/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse/Data/Domains.php new file mode 100755 index 0000000..e0bb3e9 --- /dev/null +++ b/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse/Data/Domains.php @@ -0,0 +1,31 @@ + + * @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 Domains extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Project\GetProjectDomainListResponse\GetProjectDomainListResponse\Data\Domains\Item'; + } +} diff --git a/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse/Data/Domains/Item.php b/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse/Data/Domains/Item.php new file mode 100755 index 0000000..e61d829 --- /dev/null +++ b/src/Endpoint/Project/GetProjectDomainListResponse/GetProjectDomainListResponse/Data/Domains/Item.php @@ -0,0 +1,69 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getStatus(): string + { + return $this->status; + } + + public function setStatus(string $status): static + { + $this->status = $status; + return $this; + } + + public function getDomain(): string + { + return $this->domain; + } + + public function setDomain(string $domain): static + { + $this->domain = $domain; + return $this; + } + + public function getIsPrimary(): ?bool + { + return $this->isPrimary; + } + + public function setIsPrimary(?bool $isPrimary): static + { + $this->isPrimary = $isPrimary; + return $this; + } +} diff --git a/src/Endpoint/Project/GetProjectSalesChannels.php b/src/Endpoint/Project/GetProjectSalesChannels.php new file mode 100755 index 0000000..507859b --- /dev/null +++ b/src/Endpoint/Project/GetProjectSalesChannels.php @@ -0,0 +1,33 @@ + false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetProjectSalesChannelsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/project/sales-channels'; + } +} diff --git a/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse.php b/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse.php new file mode 100755 index 0000000..52b2aab --- /dev/null +++ b/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data.php b/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data.php new file mode 100755 index 0000000..ebeb939 --- /dev/null +++ b/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data.php @@ -0,0 +1,22 @@ +salesChannels; + } + + public function setSalesChannels(SalesChannels $salesChannels): static + { + $this->salesChannels = $salesChannels; + return $this; + } +} diff --git a/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels.php b/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels.php new file mode 100755 index 0000000..66502dd --- /dev/null +++ b/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels.php @@ -0,0 +1,31 @@ + + * @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 SalesChannels extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Project\GetProjectSalesChannelsResponse\GetProjectSalesChannelsResponse\Data\SalesChannels\Item'; + } +} diff --git a/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels/Item.php b/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels/Item.php new file mode 100755 index 0000000..2a7550f --- /dev/null +++ b/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels/Item.php @@ -0,0 +1,98 @@ +guid; + } + + public function setGuid(TypeGuid $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getType(): string + { + return $this->type; + } + + public function setType(string $type): static + { + $this->type = $type; + return $this; + } + + public function getCurrencies(): Currencies + { + return $this->currencies; + } + + public function setCurrencies(Currencies $currencies): static + { + $this->currencies = $currencies; + return $this; + } + + public function getLanguages(): Languages + { + return $this->languages; + } + + public function setLanguages(Languages $languages): static + { + $this->languages = $languages; + return $this; + } + + public function getCreatedAt(): TypeDateTime + { + return $this->createdAt; + } + + public function setCreatedAt(TypeDateTime $createdAt): static + { + $this->createdAt = $createdAt; + return $this; + } + + public function getUpdatedAt(): TypeDateTimeNullable + { + return $this->updatedAt; + } + + public function setUpdatedAt(TypeDateTimeNullable $updatedAt): static + { + $this->updatedAt = $updatedAt; + return $this; + } +} diff --git a/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels/Item/Currencies.php b/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels/Item/Currencies.php new file mode 100755 index 0000000..7904211 --- /dev/null +++ b/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels/Item/Currencies.php @@ -0,0 +1,31 @@ + + * @property TypeCurrency[] $data + * @method TypeCurrency[] toArray() + * @method void set(int $key, TypeCurrency $item) + * @method null|TypeCurrency get(int $key) + * @method void add(TypeCurrency $item) + * @method null|TypeCurrency remove(int $key) + * @method bool removeItem(TypeCurrency $item, bool $strict = true) + * @method bool contains(TypeCurrency $item, bool $strict = true) + * @method null|TypeCurrency offsetGet(int $offset) + * @method void offsetSet(int $offset, TypeCurrency $value) + */ +class Currencies extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\TypeCurrency'; + } +} diff --git a/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels/Item/Languages.php b/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels/Item/Languages.php new file mode 100755 index 0000000..daad73a --- /dev/null +++ b/src/Endpoint/Project/GetProjectSalesChannelsResponse/GetProjectSalesChannelsResponse/Data/SalesChannels/Item/Languages.php @@ -0,0 +1,31 @@ + + * @property TypeLanguage[] $data + * @method TypeLanguage[] toArray() + * @method void set(int $key, TypeLanguage $item) + * @method null|TypeLanguage get(int $key) + * @method void add(TypeLanguage $item) + * @method null|TypeLanguage remove(int $key) + * @method bool removeItem(TypeLanguage $item, bool $strict = true) + * @method bool contains(TypeLanguage $item, bool $strict = true) + * @method null|TypeLanguage offsetGet(int $offset) + * @method void offsetSet(int $offset, TypeLanguage $value) + */ +class Languages extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\TypeLanguage'; + } +} diff --git a/src/Endpoint/ProofPayments/CreateProofPayment.php b/src/Endpoint/ProofPayments/CreateProofPayment.php old mode 100644 new mode 100755 index 70e284a..9b1e143 --- a/src/Endpoint/ProofPayments/CreateProofPayment.php +++ b/src/Endpoint/ProofPayments/CreateProofPayment.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\CreateProofPaymentResponse\CreateProofPaymentResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proof-payments/createproofpayment + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/createproofpayment * * @method CreateProofPayment setBody(null|array|CreateProofPaymentRequest $entity) * @method null|CreateProofPaymentRequest getBody() diff --git a/src/Endpoint/ProofPayments/CreateProofPaymentByOrderCode.php b/src/Endpoint/ProofPayments/CreateProofPaymentByOrderCode.php old mode 100644 new mode 100755 index 0c7e953..56c8bfc --- a/src/Endpoint/ProofPayments/CreateProofPaymentByOrderCode.php +++ b/src/Endpoint/ProofPayments/CreateProofPaymentByOrderCode.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\CreateProofPaymentByOrderCodeResponse\CreateProofPaymentByOrderCodeResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proof-payments/createproofpaymentbyordercode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/createproofpaymentbyordercode * * @method CreateProofPaymentByOrderCode setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ProofPayments/CreateProofPaymentByOrderCodeResponse/CreateProofPaymentByOrderCodeResponse.php b/src/Endpoint/ProofPayments/CreateProofPaymentByOrderCodeResponse/CreateProofPaymentByOrderCodeResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/CreateProofPaymentByOrderCodeResponse/CreateProofPaymentByOrderCodeResponse/Data.php b/src/Endpoint/ProofPayments/CreateProofPaymentByOrderCodeResponse/CreateProofPaymentByOrderCodeResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/CreateProofPaymentByProformaInvoiceCode.php b/src/Endpoint/ProofPayments/CreateProofPaymentByProformaInvoiceCode.php old mode 100644 new mode 100755 index 08daebb..65b28b6 --- a/src/Endpoint/ProofPayments/CreateProofPaymentByProformaInvoiceCode.php +++ b/src/Endpoint/ProofPayments/CreateProofPaymentByProformaInvoiceCode.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\CreateProofPaymentByProformaInvoiceCodeResponse\CreateProofPaymentByProformaInvoiceCodeResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proof-payments/createproofpaymentbyproformainvoicecode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/createproofpaymentbyproformainvoicecode * * @method CreateProofPaymentByProformaInvoiceCode setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ProofPayments/CreateProofPaymentByProformaInvoiceCodeResponse/CreateProofPaymentByProformaInvoiceCodeResponse.php b/src/Endpoint/ProofPayments/CreateProofPaymentByProformaInvoiceCodeResponse/CreateProofPaymentByProformaInvoiceCodeResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/CreateProofPaymentByProformaInvoiceCodeResponse/CreateProofPaymentByProformaInvoiceCodeResponse/Data.php b/src/Endpoint/ProofPayments/CreateProofPaymentByProformaInvoiceCodeResponse/CreateProofPaymentByProformaInvoiceCodeResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/CreateProofPaymentRequest/CreateProofPaymentRequest.php b/src/Endpoint/ProofPayments/CreateProofPaymentRequest/CreateProofPaymentRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/CreateProofPaymentRequest/CreateProofPaymentRequest/Data.php b/src/Endpoint/ProofPayments/CreateProofPaymentRequest/CreateProofPaymentRequest/Data.php old mode 100644 new mode 100755 index 3107873..081ba52 --- a/src/Endpoint/ProofPayments/CreateProofPaymentRequest/CreateProofPaymentRequest/Data.php +++ b/src/Endpoint/ProofPayments/CreateProofPaymentRequest/CreateProofPaymentRequest/Data.php @@ -4,19 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCode; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeRequest; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; class Data extends Entity { protected ?string $proformaInvoiceCode; protected ?string $orderCode; - protected TypePrice $payment; + protected TypePriceNullable $payment; protected TypeCurrencyCode $currencyCode; protected float $varSymbol; protected ?TypeDateTimeRequest $issueDate; - protected ?TypeDate $taxDate; + protected ?TypeDateNullable $taxDate; protected ?string $constSymbol; protected ?float $specSymbol; protected ?int $invoiceBillingMethodId; @@ -47,12 +47,12 @@ public function setOrderCode(?string $orderCode): static return $this; } - public function getPayment(): TypePrice + public function getPayment(): TypePriceNullable { return $this->payment; } - public function setPayment(TypePrice $payment): static + public function setPayment(TypePriceNullable $payment): static { $this->payment = $payment; return $this; @@ -91,12 +91,12 @@ public function setIssueDate(?TypeDateTimeRequest $issueDate): static return $this; } - public function getTaxDate(): ?TypeDate + public function getTaxDate(): ?TypeDateNullable { return $this->taxDate; } - public function setTaxDate(?TypeDate $taxDate): static + public function setTaxDate(?TypeDateNullable $taxDate): static { $this->taxDate = $taxDate; return $this; diff --git a/src/Endpoint/ProofPayments/CreateProofPaymentResponse/CreateProofPaymentResponse.php b/src/Endpoint/ProofPayments/CreateProofPaymentResponse/CreateProofPaymentResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/CreateProofPaymentResponse/CreateProofPaymentResponse/Data.php b/src/Endpoint/ProofPayments/CreateProofPaymentResponse/CreateProofPaymentResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/DeleteProofPayment.php b/src/Endpoint/ProofPayments/DeleteProofPayment.php old mode 100644 new mode 100755 index 9c731c8..3fc5682 --- a/src/Endpoint/ProofPayments/DeleteProofPayment.php +++ b/src/Endpoint/ProofPayments/DeleteProofPayment.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\DeleteProofPaymentResponse\DeleteProofPaymentResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proof-payments/deleteproofpayment + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/deleteproofpayment * * @method DeleteProofPayment setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ProofPayments/DeleteProofPaymentResponse/DeleteProofPaymentResponse.php b/src/Endpoint/ProofPayments/DeleteProofPaymentResponse/DeleteProofPaymentResponse.php old mode 100644 new mode 100755 index b6607a2..1ed90ef --- a/src/Endpoint/ProofPayments/DeleteProofPaymentResponse/DeleteProofPaymentResponse.php +++ b/src/Endpoint/ProofPayments/DeleteProofPaymentResponse/DeleteProofPaymentResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\DeleteProofPaymentResponse\DeleteProofPaymentResponse\Data; class DeleteProofPaymentResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/ProofPayments/DeleteProofPaymentResponse/DeleteProofPaymentResponse/Data.php b/src/Endpoint/ProofPayments/DeleteProofPaymentResponse/DeleteProofPaymentResponse/Data.php new file mode 100755 index 0000000..0d5ba86 --- /dev/null +++ b/src/Endpoint/ProofPayments/DeleteProofPaymentResponse/DeleteProofPaymentResponse/Data.php @@ -0,0 +1,9 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): null + { + return null; + } + + public function getEndpoint(): string + { + return '/api/proof-payments/{code}/isdoc'; + } +} diff --git a/src/Endpoint/ProofPayments/GetLastProofPaymentsChanges.php b/src/Endpoint/ProofPayments/GetLastProofPaymentsChanges.php old mode 100644 new mode 100755 index 5549bed..706d0da --- a/src/Endpoint/ProofPayments/GetLastProofPaymentsChanges.php +++ b/src/Endpoint/ProofPayments/GetLastProofPaymentsChanges.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\GetLastProofPaymentsChangesResponse\GetLastProofPaymentsChangesResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proof-payments/getlastproofpaymentschanges + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/getlastproofpaymentschanges * * @method GetLastProofPaymentsChanges setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ProofPayments/GetLastProofPaymentsChangesResponse/GetLastProofPaymentsChangesResponse.php b/src/Endpoint/ProofPayments/GetLastProofPaymentsChangesResponse/GetLastProofPaymentsChangesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetLastProofPaymentsChangesResponse/GetLastProofPaymentsChangesResponse/Data.php b/src/Endpoint/ProofPayments/GetLastProofPaymentsChangesResponse/GetLastProofPaymentsChangesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetLastProofPaymentsChangesResponse/GetLastProofPaymentsChangesResponse/Data/Changes.php b/src/Endpoint/ProofPayments/GetLastProofPaymentsChangesResponse/GetLastProofPaymentsChangesResponse/Data/Changes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetLastProofPaymentsChangesResponse/GetLastProofPaymentsChangesResponse/Data/Changes/Item.php b/src/Endpoint/ProofPayments/GetLastProofPaymentsChangesResponse/GetLastProofPaymentsChangesResponse/Data/Changes/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetLastProofPaymentsChangesResponse/GetLastProofPaymentsChangesResponse/Data/Paginator.php b/src/Endpoint/ProofPayments/GetLastProofPaymentsChangesResponse/GetLastProofPaymentsChangesResponse/Data/Paginator.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetListOfAllProofPayments.php b/src/Endpoint/ProofPayments/GetListOfAllProofPayments.php old mode 100644 new mode 100755 index e7035e4..f86da34 --- a/src/Endpoint/ProofPayments/GetListOfAllProofPayments.php +++ b/src/Endpoint/ProofPayments/GetListOfAllProofPayments.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\ProofPayments; use Shoptet\Api\Sdk\Php\Async\SnapshotEndpoint; -use Shoptet\Api\Sdk\Php\Component\Entity\ProofPaymentDetail; +use Shoptet\Api\Sdk\Php\Component\Entity\ProofPaymentSnapshot; use Shoptet\Api\Sdk\Php\Endpoint\Get; use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\GetListOfAllProofPaymentsResponse\GetListOfAllProofPaymentsResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proof-payments/getlistofallproofpayments + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/getlistofallproofpayments * * @method GetListOfAllProofPayments setBody(null $entity) * @method null getBody() @@ -47,6 +47,6 @@ public function getEndpoint(): string public function getSnapshotResultEntityClass(): string { - return ProofPaymentDetail::class; + return ProofPaymentSnapshot::class; } } diff --git a/src/Endpoint/ProofPayments/GetListOfAllProofPaymentsResponse/GetListOfAllProofPaymentsResponse.php b/src/Endpoint/ProofPayments/GetListOfAllProofPaymentsResponse/GetListOfAllProofPaymentsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetListOfAllProofPaymentsResponse/GetListOfAllProofPaymentsResponse/Data.php b/src/Endpoint/ProofPayments/GetListOfAllProofPaymentsResponse/GetListOfAllProofPaymentsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetListOfProofPayments.php b/src/Endpoint/ProofPayments/GetListOfProofPayments.php old mode 100644 new mode 100755 index 4b261fc..fa5fd78 --- a/src/Endpoint/ProofPayments/GetListOfProofPayments.php +++ b/src/Endpoint/ProofPayments/GetListOfProofPayments.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\GetListOfProofPaymentsResponse\GetListOfProofPaymentsResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proof-payments/getlistofproofpayments + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/getlistofproofpayments * * @method GetListOfProofPayments setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ProofPayments/GetListOfProofPaymentsResponse/GetListOfProofPaymentsResponse.php b/src/Endpoint/ProofPayments/GetListOfProofPaymentsResponse/GetListOfProofPaymentsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetListOfProofPaymentsResponse/GetListOfProofPaymentsResponse/Data.php b/src/Endpoint/ProofPayments/GetListOfProofPaymentsResponse/GetListOfProofPaymentsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetListOfProofPaymentsResponse/GetListOfProofPaymentsResponse/Data/Items.php b/src/Endpoint/ProofPayments/GetListOfProofPaymentsResponse/GetListOfProofPaymentsResponse/Data/Items.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetProofPaymentDetail.php b/src/Endpoint/ProofPayments/GetProofPaymentDetail.php old mode 100644 new mode 100755 index d0028b4..aa6ad47 --- a/src/Endpoint/ProofPayments/GetProofPaymentDetail.php +++ b/src/Endpoint/ProofPayments/GetProofPaymentDetail.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\GetProofPaymentDetailResponse\GetProofPaymentDetailResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proof-payments/getproofpaymentdetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/getproofpaymentdetail * * @method GetProofPaymentDetail setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ProofPayments/GetProofPaymentDetailByOrderCode.php b/src/Endpoint/ProofPayments/GetProofPaymentDetailByOrderCode.php old mode 100644 new mode 100755 index 66e19fd..1dfbd07 --- a/src/Endpoint/ProofPayments/GetProofPaymentDetailByOrderCode.php +++ b/src/Endpoint/ProofPayments/GetProofPaymentDetailByOrderCode.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\GetProofPaymentDetailByOrderCodeResponse\GetProofPaymentDetailByOrderCodeResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proof-payments/getproofpaymentdetailbyordercode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/getproofpaymentdetailbyordercode * * @method GetProofPaymentDetailByOrderCode setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ProofPayments/GetProofPaymentDetailByOrderCodeResponse/GetProofPaymentDetailByOrderCodeResponse.php b/src/Endpoint/ProofPayments/GetProofPaymentDetailByOrderCodeResponse/GetProofPaymentDetailByOrderCodeResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetProofPaymentDetailByOrderCodeResponse/GetProofPaymentDetailByOrderCodeResponse/Data.php b/src/Endpoint/ProofPayments/GetProofPaymentDetailByOrderCodeResponse/GetProofPaymentDetailByOrderCodeResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetProofPaymentDetailByOrderCodeResponse/GetProofPaymentDetailByOrderCodeResponse/Data/ProofPayments.php b/src/Endpoint/ProofPayments/GetProofPaymentDetailByOrderCodeResponse/GetProofPaymentDetailByOrderCodeResponse/Data/ProofPayments.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetProofPaymentDetailByProformaInvoiceCode.php b/src/Endpoint/ProofPayments/GetProofPaymentDetailByProformaInvoiceCode.php old mode 100644 new mode 100755 index ace22b4..de951ff --- a/src/Endpoint/ProofPayments/GetProofPaymentDetailByProformaInvoiceCode.php +++ b/src/Endpoint/ProofPayments/GetProofPaymentDetailByProformaInvoiceCode.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\GetProofPaymentDetailByProformaInvoiceCodeResponse\GetProofPaymentDetailByProformaInvoiceCodeResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proof-payments/getproofpaymentdetailbyproformainvoicecode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/getproofpaymentdetailbyproformainvoicecode * * @method GetProofPaymentDetailByProformaInvoiceCode setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ProofPayments/GetProofPaymentDetailByProformaInvoiceCodeResponse/GetProofPaymentDetailByProformaInvoiceCodeResponse.php b/src/Endpoint/ProofPayments/GetProofPaymentDetailByProformaInvoiceCodeResponse/GetProofPaymentDetailByProformaInvoiceCodeResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetProofPaymentDetailByProformaInvoiceCodeResponse/GetProofPaymentDetailByProformaInvoiceCodeResponse/Data.php b/src/Endpoint/ProofPayments/GetProofPaymentDetailByProformaInvoiceCodeResponse/GetProofPaymentDetailByProformaInvoiceCodeResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetProofPaymentDetailByProformaInvoiceCodeResponse/GetProofPaymentDetailByProformaInvoiceCodeResponse/Data/ProofPayments.php b/src/Endpoint/ProofPayments/GetProofPaymentDetailByProformaInvoiceCodeResponse/GetProofPaymentDetailByProformaInvoiceCodeResponse/Data/ProofPayments.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetProofPaymentDetailResponse/GetProofPaymentDetailResponse.php b/src/Endpoint/ProofPayments/GetProofPaymentDetailResponse/GetProofPaymentDetailResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/GetProofPaymentDetailResponse/GetProofPaymentDetailResponse/Data.php b/src/Endpoint/ProofPayments/GetProofPaymentDetailResponse/GetProofPaymentDetailResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/ProofPaymentDocumentSettings.php b/src/Endpoint/ProofPayments/ProofPaymentDocumentSettings.php old mode 100644 new mode 100755 index 0fc4814..1407539 --- a/src/Endpoint/ProofPayments/ProofPaymentDocumentSettings.php +++ b/src/Endpoint/ProofPayments/ProofPaymentDocumentSettings.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\ProofPaymentDocumentSettingsResponse\ProofPaymentDocumentSettingsResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proof-payments/proofpaymentdocumentsettings + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/proofpaymentdocumentsettings * * @method ProofPaymentDocumentSettings setBody(null|array|ProofPaymentDocumentSettingsRequest $entity) * @method null|ProofPaymentDocumentSettingsRequest getBody() diff --git a/src/Endpoint/ProofPayments/ProofPaymentDocumentSettingsRequest/ProofPaymentDocumentSettingsRequest.php b/src/Endpoint/ProofPayments/ProofPaymentDocumentSettingsRequest/ProofPaymentDocumentSettingsRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/ProofPaymentDocumentSettingsRequest/ProofPaymentDocumentSettingsRequest/Data.php b/src/Endpoint/ProofPayments/ProofPaymentDocumentSettingsRequest/ProofPaymentDocumentSettingsRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/ProofPaymentDocumentSettingsResponse/ProofPaymentDocumentSettingsResponse.php b/src/Endpoint/ProofPayments/ProofPaymentDocumentSettingsResponse/ProofPaymentDocumentSettingsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/ProofPaymentDocumentSettingsResponse/ProofPaymentDocumentSettingsResponse/Data.php b/src/Endpoint/ProofPayments/ProofPaymentDocumentSettingsResponse/ProofPaymentDocumentSettingsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/UpdateProofPayment.php b/src/Endpoint/ProofPayments/UpdateProofPayment.php old mode 100644 new mode 100755 index 564335b..e543ab0 --- a/src/Endpoint/ProofPayments/UpdateProofPayment.php +++ b/src/Endpoint/ProofPayments/UpdateProofPayment.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\UpdateProofPaymentResponse\UpdateProofPaymentResponse; /** - * @see https://api.docs.shoptet.com/openapi/Proof-payments/updateproofpayment + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/updateproofpayment * * @method UpdateProofPayment setBody(null|array|UpdateProofPaymentRequest $entity) * @method null|UpdateProofPaymentRequest getBody() diff --git a/src/Endpoint/ProofPayments/UpdateProofPaymentRequest/UpdateProofPaymentRequest.php b/src/Endpoint/ProofPayments/UpdateProofPaymentRequest/UpdateProofPaymentRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/UpdateProofPaymentRequest/UpdateProofPaymentRequest/Data.php b/src/Endpoint/ProofPayments/UpdateProofPaymentRequest/UpdateProofPaymentRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/UpdateProofPaymentResponse/UpdateProofPaymentResponse.php b/src/Endpoint/ProofPayments/UpdateProofPaymentResponse/UpdateProofPaymentResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ProofPayments/UpdateProofPaymentResponse/UpdateProofPaymentResponse/Data.php b/src/Endpoint/ProofPayments/UpdateProofPaymentResponse/UpdateProofPaymentResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Put.php b/src/Endpoint/Put.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscount.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscount.php old mode 100644 new mode 100755 index 98093ec..a798519 --- a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscount.php +++ b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscount.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\CreateQuantityDiscountResponse\CreateQuantityDiscountResponse; /** - * @see https://api.docs.shoptet.com/openapi/Quantity-discounts/createquantitydiscount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Quantity-discounts/createquantitydiscount * * @method CreateQuantityDiscount setBody(null|array|CreateQuantityDiscountRequest $entity) * @method null|CreateQuantityDiscountRequest getBody() diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data.php old mode 100644 new mode 100755 index 285436d..8e40efb --- a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data.php +++ b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data.php @@ -4,7 +4,7 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeColor; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\CreateQuantityDiscountRequest\CreateQuantityDiscountRequest\Data\CustomerGroupCodes; use Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\CreateQuantityDiscountRequest\CreateQuantityDiscountRequest\Data\Settings; use Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\CreateQuantityDiscountRequest\CreateQuantityDiscountRequest\Data\Targeting; @@ -13,8 +13,8 @@ class Data extends Entity { protected string $title; protected ?bool $isActive; - protected ?TypeDate $validFrom; - protected ?TypeDate $validTo; + protected ?TypeDateNullable $validFrom; + protected ?TypeDateNullable $validTo; protected ?bool $displayFlag; protected ?TypeColor $flagColor; protected ?CustomerGroupCodes $customerGroupCodes; @@ -47,23 +47,23 @@ public function setIsActive(?bool $isActive): static return $this; } - public function getValidFrom(): ?TypeDate + public function getValidFrom(): ?TypeDateNullable { return $this->validFrom; } - public function setValidFrom(?TypeDate $validFrom): static + public function setValidFrom(?TypeDateNullable $validFrom): static { $this->validFrom = $validFrom; return $this; } - public function getValidTo(): ?TypeDate + public function getValidTo(): ?TypeDateNullable { return $this->validTo; } - public function setValidTo(?TypeDate $validTo): static + public function setValidTo(?TypeDateNullable $validTo): static { $this->validTo = $validTo; return $this; diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/CustomerGroupCodes.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/CustomerGroupCodes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Settings.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Settings.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Settings/Item.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Settings/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Settings/Item/DiscountValue.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Settings/Item/DiscountValue.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Targeting.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Targeting.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Targeting/BrandCodes.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Targeting/BrandCodes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Targeting/CategoryGuids.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Targeting/CategoryGuids.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Targeting/ProductGuids.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountRequest/CreateQuantityDiscountRequest/Data/Targeting/ProductGuids.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountResponse/CreateQuantityDiscountResponse.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountResponse/CreateQuantityDiscountResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountResponse/CreateQuantityDiscountResponse/Data.php b/src/Endpoint/QuantityDiscounts/CreateQuantityDiscountResponse/CreateQuantityDiscountResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscount.php b/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscount.php old mode 100644 new mode 100755 index 60fcaba..cc4f1d4 --- a/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscount.php +++ b/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscount.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\DeleteQuantityDiscountResponse\DeleteQuantityDiscountResponse; /** - * @see https://api.docs.shoptet.com/openapi/Quantity-discounts/deletequantitydiscount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Quantity-discounts/deletequantitydiscount * * @method DeleteQuantityDiscount setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscountResponse/DeleteQuantityDiscountResponse.php b/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscountResponse/DeleteQuantityDiscountResponse.php old mode 100644 new mode 100755 index 2c1492a..cd08e7a --- a/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscountResponse/DeleteQuantityDiscountResponse.php +++ b/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscountResponse/DeleteQuantityDiscountResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\DeleteQuantityDiscountResponse\DeleteQuantityDiscountResponse\Data; class DeleteQuantityDiscountResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscountResponse/DeleteQuantityDiscountResponse/Data.php b/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscountResponse/DeleteQuantityDiscountResponse/Data.php new file mode 100755 index 0000000..b16d076 --- /dev/null +++ b/src/Endpoint/QuantityDiscounts/DeleteQuantityDiscountResponse/DeleteQuantityDiscountResponse/Data.php @@ -0,0 +1,9 @@ +validFrom; } - public function setValidFrom(TypeDate $validFrom): static + public function setValidFrom(TypeDateNullable $validFrom): static { $this->validFrom = $validFrom; return $this; } - public function getValidTo(): TypeDate + public function getValidTo(): TypeDateNullable { return $this->validTo; } - public function setValidTo(TypeDate $validTo): static + public function setValidTo(TypeDateNullable $validTo): static { $this->validTo = $validTo; return $this; diff --git a/src/Endpoint/QuantityDiscounts/GetListOfQuantityDiscountsResponse/GetListOfQuantityDiscountsResponse/Data/Discounts/Item/CustomerGroups.php b/src/Endpoint/QuantityDiscounts/GetListOfQuantityDiscountsResponse/GetListOfQuantityDiscountsResponse/Data/Discounts/Item/CustomerGroups.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/GetListOfQuantityDiscountsResponse/GetListOfQuantityDiscountsResponse/Data/Discounts/Item/CustomerGroups/Item.php b/src/Endpoint/QuantityDiscounts/GetListOfQuantityDiscountsResponse/GetListOfQuantityDiscountsResponse/Data/Discounts/Item/CustomerGroups/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscount.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscount.php old mode 100644 new mode 100755 index 1e23356..f5f1065 --- a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscount.php +++ b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscount.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\UpdateQuantityDiscountResponse\UpdateQuantityDiscountResponse; /** - * @see https://api.docs.shoptet.com/openapi/Quantity-discounts/updatequantitydiscount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Quantity-discounts/updatequantitydiscount * * @method UpdateQuantityDiscount setBody(null|array|UpdateQuantityDiscountRequest $entity) * @method null|UpdateQuantityDiscountRequest getBody() diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data.php old mode 100644 new mode 100755 index aae3f20..28bf8de --- a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data.php +++ b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data.php @@ -4,7 +4,7 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeColor; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\UpdateQuantityDiscountRequest\UpdateQuantityDiscountRequest\Data\CustomerGroupCodes; use Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\UpdateQuantityDiscountRequest\UpdateQuantityDiscountRequest\Data\Settings; use Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\UpdateQuantityDiscountRequest\UpdateQuantityDiscountRequest\Data\Targeting; @@ -13,8 +13,8 @@ class Data extends Entity { protected ?string $title; protected ?bool $isActive; - protected ?TypeDate $validFrom; - protected ?TypeDate $validTo; + protected ?TypeDateNullable $validFrom; + protected ?TypeDateNullable $validTo; protected ?bool $displayFlag; protected ?TypeColor $flagColor; protected ?CustomerGroupCodes $customerGroupCodes; @@ -47,23 +47,23 @@ public function setIsActive(?bool $isActive): static return $this; } - public function getValidFrom(): ?TypeDate + public function getValidFrom(): ?TypeDateNullable { return $this->validFrom; } - public function setValidFrom(?TypeDate $validFrom): static + public function setValidFrom(?TypeDateNullable $validFrom): static { $this->validFrom = $validFrom; return $this; } - public function getValidTo(): ?TypeDate + public function getValidTo(): ?TypeDateNullable { return $this->validTo; } - public function setValidTo(?TypeDate $validTo): static + public function setValidTo(?TypeDateNullable $validTo): static { $this->validTo = $validTo; return $this; diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/CustomerGroupCodes.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/CustomerGroupCodes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Settings.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Settings.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Settings/Item.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Settings/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Settings/Item/DiscountValue.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Settings/Item/DiscountValue.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Targeting.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Targeting.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Targeting/BrandCodes.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Targeting/BrandCodes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Targeting/CategoryGuids.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Targeting/CategoryGuids.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Targeting/ProductGuids.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountRequest/UpdateQuantityDiscountRequest/Data/Targeting/ProductGuids.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountResponse/UpdateQuantityDiscountResponse.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountResponse/UpdateQuantityDiscountResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountResponse/UpdateQuantityDiscountResponse/Data.php b/src/Endpoint/QuantityDiscounts/UpdateQuantityDiscountResponse/UpdateQuantityDiscountResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategories.php b/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategories.php new file mode 100755 index 0000000..712988b --- /dev/null +++ b/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategories.php @@ -0,0 +1,33 @@ + false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfRecyclingFeeCategoriesResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/recycling-fee-categories'; + } +} diff --git a/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse.php b/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse.php new file mode 100755 index 0000000..730def1 --- /dev/null +++ b/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data.php b/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data.php new file mode 100755 index 0000000..667cfe0 --- /dev/null +++ b/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data.php @@ -0,0 +1,22 @@ +recyclingFeeCategories; + } + + public function setRecyclingFeeCategories(RecyclingFeeCategories $recyclingFeeCategories): static + { + $this->recyclingFeeCategories = $recyclingFeeCategories; + return $this; + } +} diff --git a/src/Endpoint/Products/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data/RecyclingFeeCategories.php b/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data/RecyclingFeeCategories.php old mode 100644 new mode 100755 similarity index 88% rename from src/Endpoint/Products/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data/RecyclingFeeCategories.php rename to src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data/RecyclingFeeCategories.php index c147cfc..b52eec5 --- a/src/Endpoint/Products/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data/RecyclingFeeCategories.php +++ b/src/Endpoint/RecyclingFees/GetListOfRecyclingFeeCategoriesResponse/GetListOfRecyclingFeeCategoriesResponse/Data/RecyclingFeeCategories.php @@ -1,6 +1,6 @@ true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return AddRelatedProductRequest::class; + } + + public function getResponseEntityClass(): string + { + return AddRelatedProductResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/relatedProducts'; + } +} diff --git a/src/Endpoint/RelatedProducts/AddRelatedProductRequest/AddRelatedProductRequest.php b/src/Endpoint/RelatedProducts/AddRelatedProductRequest/AddRelatedProductRequest.php new file mode 100755 index 0000000..b36d098 --- /dev/null +++ b/src/Endpoint/RelatedProducts/AddRelatedProductRequest/AddRelatedProductRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/RelatedProducts/AddRelatedProductRequest/AddRelatedProductRequest/Data.php b/src/Endpoint/RelatedProducts/AddRelatedProductRequest/AddRelatedProductRequest/Data.php new file mode 100755 index 0000000..39a1d12 --- /dev/null +++ b/src/Endpoint/RelatedProducts/AddRelatedProductRequest/AddRelatedProductRequest/Data.php @@ -0,0 +1,22 @@ +relatedProduct; + } + + public function setRelatedProduct(RelatedProduct $relatedProduct): static + { + $this->relatedProduct = $relatedProduct; + return $this; + } +} diff --git a/src/Endpoint/Products/AddRelatedProductRequest/AddRelatedProductRequest/Data/RelatedProduct.php b/src/Endpoint/RelatedProducts/AddRelatedProductRequest/AddRelatedProductRequest/Data/RelatedProduct.php old mode 100644 new mode 100755 similarity index 78% rename from src/Endpoint/Products/AddRelatedProductRequest/AddRelatedProductRequest/Data/RelatedProduct.php rename to src/Endpoint/RelatedProducts/AddRelatedProductRequest/AddRelatedProductRequest/Data/RelatedProduct.php index 8696a7b..63c4811 --- a/src/Endpoint/Products/AddRelatedProductRequest/AddRelatedProductRequest/Data/RelatedProduct.php +++ b/src/Endpoint/RelatedProducts/AddRelatedProductRequest/AddRelatedProductRequest/Data/RelatedProduct.php @@ -1,6 +1,6 @@ items; + } + + public function setItems(Items $items): static + { + $this->items = $items; + return $this; + } +} diff --git a/src/Endpoint/RelatedProducts/AddRelatedProductResponse/AddRelatedProductResponse/Data/Items.php b/src/Endpoint/RelatedProducts/AddRelatedProductResponse/AddRelatedProductResponse/Data/Items.php new file mode 100755 index 0000000..067c517 --- /dev/null +++ b/src/Endpoint/RelatedProducts/AddRelatedProductResponse/AddRelatedProductResponse/Data/Items.php @@ -0,0 +1,31 @@ + + * @property RelatedProduct[] $data + * @method RelatedProduct[] toArray() + * @method void set(int $key, RelatedProduct $item) + * @method null|RelatedProduct get(int $key) + * @method void add(RelatedProduct $item) + * @method null|RelatedProduct remove(int $key) + * @method bool removeItem(RelatedProduct $item, bool $strict = true) + * @method bool contains(RelatedProduct $item, bool $strict = true) + * @method null|RelatedProduct offsetGet(int $offset) + * @method void offsetSet(int $offset, RelatedProduct $value) + */ +class Items extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\RelatedProduct'; + } +} diff --git a/src/Endpoint/RelatedProducts/GetListOfProductRelatedProducts.php b/src/Endpoint/RelatedProducts/GetListOfProductRelatedProducts.php new file mode 100755 index 0000000..c76c391 --- /dev/null +++ b/src/Endpoint/RelatedProducts/GetListOfProductRelatedProducts.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false, 'visible' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfProductRelatedProductsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/relatedProducts'; + } +} diff --git a/src/Endpoint/RelatedProducts/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse.php b/src/Endpoint/RelatedProducts/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse.php new file mode 100755 index 0000000..a0d1dfb --- /dev/null +++ b/src/Endpoint/RelatedProducts/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/RelatedProducts/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data.php b/src/Endpoint/RelatedProducts/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data.php new file mode 100755 index 0000000..99bc85f --- /dev/null +++ b/src/Endpoint/RelatedProducts/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data.php @@ -0,0 +1,22 @@ +items; + } + + public function setItems(Items $items): static + { + $this->items = $items; + return $this; + } +} diff --git a/src/Endpoint/RelatedProducts/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data/Items.php b/src/Endpoint/RelatedProducts/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data/Items.php new file mode 100755 index 0000000..4ca6dba --- /dev/null +++ b/src/Endpoint/RelatedProducts/GetListOfProductRelatedProductsResponse/GetListOfProductRelatedProductsResponse/Data/Items.php @@ -0,0 +1,31 @@ + + * @property RelatedProduct[] $data + * @method RelatedProduct[] toArray() + * @method void set(int $key, RelatedProduct $item) + * @method null|RelatedProduct get(int $key) + * @method void add(RelatedProduct $item) + * @method null|RelatedProduct remove(int $key) + * @method bool removeItem(RelatedProduct $item, bool $strict = true) + * @method bool contains(RelatedProduct $item, bool $strict = true) + * @method null|RelatedProduct offsetGet(int $offset) + * @method void offsetSet(int $offset, RelatedProduct $value) + */ +class Items extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\RelatedProduct'; + } +} diff --git a/src/Endpoint/RelatedProducts/SetRelatedProducts.php b/src/Endpoint/RelatedProducts/SetRelatedProducts.php new file mode 100755 index 0000000..6233009 --- /dev/null +++ b/src/Endpoint/RelatedProducts/SetRelatedProducts.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return SetRelatedProductsRequest::class; + } + + public function getResponseEntityClass(): string + { + return SetRelatedProductsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/{guid}/relatedProducts'; + } +} diff --git a/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest.php b/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest.php new file mode 100755 index 0000000..608f608 --- /dev/null +++ b/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest/Data.php b/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest/Data.php new file mode 100755 index 0000000..11f60a9 --- /dev/null +++ b/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest/Data.php @@ -0,0 +1,22 @@ +relatedProducts; + } + + public function setRelatedProducts(RelatedProducts $relatedProducts): static + { + $this->relatedProducts = $relatedProducts; + return $this; + } +} diff --git a/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts.php b/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts.php new file mode 100755 index 0000000..25af3dc --- /dev/null +++ b/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts.php @@ -0,0 +1,31 @@ + + * @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 RelatedProducts extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\RelatedProducts\SetRelatedProductsRequest\SetRelatedProductsRequest\Data\RelatedProducts\Item'; + } +} diff --git a/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts/Item.php b/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts/Item.php new file mode 100755 index 0000000..706f620 --- /dev/null +++ b/src/Endpoint/RelatedProducts/SetRelatedProductsRequest/SetRelatedProductsRequest/Data/RelatedProducts/Item.php @@ -0,0 +1,22 @@ +guid; + } + + public function setGuid(TypeGuidUnlimited $guid): static + { + $this->guid = $guid; + return $this; + } +} diff --git a/src/Endpoint/Products/SetRelatedProductsResponse/SetRelatedProductsResponse.php b/src/Endpoint/RelatedProducts/SetRelatedProductsResponse/SetRelatedProductsResponse.php old mode 100644 new mode 100755 similarity index 76% rename from src/Endpoint/Products/SetRelatedProductsResponse/SetRelatedProductsResponse.php rename to src/Endpoint/RelatedProducts/SetRelatedProductsResponse/SetRelatedProductsResponse.php index 0cd93ca..9817b6d --- a/src/Endpoint/Products/SetRelatedProductsResponse/SetRelatedProductsResponse.php +++ b/src/Endpoint/RelatedProducts/SetRelatedProductsResponse/SetRelatedProductsResponse.php @@ -1,10 +1,10 @@ items; + } + + public function setItems(Items $items): static + { + $this->items = $items; + return $this; + } +} diff --git a/src/Endpoint/RelatedProducts/SetRelatedProductsResponse/SetRelatedProductsResponse/Data/Items.php b/src/Endpoint/RelatedProducts/SetRelatedProductsResponse/SetRelatedProductsResponse/Data/Items.php new file mode 100755 index 0000000..150e3b1 --- /dev/null +++ b/src/Endpoint/RelatedProducts/SetRelatedProductsResponse/SetRelatedProductsResponse/Data/Items.php @@ -0,0 +1,31 @@ + + * @property RelatedProduct[] $data + * @method RelatedProduct[] toArray() + * @method void set(int $key, RelatedProduct $item) + * @method null|RelatedProduct get(int $key) + * @method void add(RelatedProduct $item) + * @method null|RelatedProduct remove(int $key) + * @method bool removeItem(RelatedProduct $item, bool $strict = true) + * @method bool contains(RelatedProduct $item, bool $strict = true) + * @method null|RelatedProduct offsetGet(int $offset) + * @method void offsetSet(int $offset, RelatedProduct $value) + */ +class Items extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\RelatedProduct'; + } +} diff --git a/src/Endpoint/Reviews/GetListOfEshopReviews.php b/src/Endpoint/Reviews/GetListOfEshopReviews.php new file mode 100755 index 0000000..aa98e0d --- /dev/null +++ b/src/Endpoint/Reviews/GetListOfEshopReviews.php @@ -0,0 +1,33 @@ + false, 'page' => false, 'itemsPerPage' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfEshopReviewsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/eshop/reviews'; + } +} diff --git a/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse.php b/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse.php new file mode 100755 index 0000000..e03d692 --- /dev/null +++ b/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data.php b/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data.php new file mode 100755 index 0000000..8db8532 --- /dev/null +++ b/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data.php @@ -0,0 +1,35 @@ +reviews; + } + + public function setReviews(Reviews $reviews): static + { + $this->reviews = $reviews; + return $this; + } + + public function getPaginator(): Paginator + { + return $this->paginator; + } + + public function setPaginator(Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data/Reviews.php b/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data/Reviews.php new file mode 100755 index 0000000..c471bdc --- /dev/null +++ b/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data/Reviews.php @@ -0,0 +1,31 @@ + + * @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 Reviews extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Reviews\GetListOfEshopReviewsResponse\GetListOfEshopReviewsResponse\Data\Reviews\Item'; + } +} diff --git a/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data/Reviews/Item.php b/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data/Reviews/Item.php new file mode 100755 index 0000000..2cc3219 --- /dev/null +++ b/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data/Reviews/Item.php @@ -0,0 +1,119 @@ +date; + } + + public function setDate(TypeDateTimeNullable $date): static + { + $this->date = $date; + return $this; + } + + public function getOrderCode(): ?string + { + return $this->orderCode; + } + + public function setOrderCode(?string $orderCode): static + { + $this->orderCode = $orderCode; + return $this; + } + + public function getRating(): float + { + return $this->rating; + } + + public function setRating(float $rating): static + { + $this->rating = $rating; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getFullName(): ?string + { + return $this->fullName; + } + + public function setFullName(?string $fullName): static + { + $this->fullName = $fullName; + return $this; + } + + public function getEmail(): ?string + { + return $this->email; + } + + public function setEmail(?string $email): static + { + $this->email = $email; + return $this; + } + + public function getCustomerGuid(): ?string + { + return $this->customerGuid; + } + + public function setCustomerGuid(?string $customerGuid): static + { + $this->customerGuid = $customerGuid; + return $this; + } + + public function isVisible(): bool + { + return $this->visible; + } + + public function setVisible(bool $visible): static + { + $this->visible = $visible; + return $this; + } + + public function getReaction(): Reaction + { + return $this->reaction; + } + + public function setReaction(Reaction $reaction): static + { + $this->reaction = $reaction; + return $this; + } +} diff --git a/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data/Reviews/Item/Reaction.php b/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data/Reviews/Item/Reaction.php new file mode 100755 index 0000000..7ab4095 --- /dev/null +++ b/src/Endpoint/Reviews/GetListOfEshopReviewsResponse/GetListOfEshopReviewsResponse/Data/Reviews/Item/Reaction.php @@ -0,0 +1,58 @@ +reactionCreated; + } + + public function setReactionCreated(TypeDateTimeNullable $reactionCreated): static + { + $this->reactionCreated = $reactionCreated; + return $this; + } + + public function getReactionFullName(): ?string + { + return $this->reactionFullName; + } + + public function setReactionFullName(?string $reactionFullName): static + { + $this->reactionFullName = $reactionFullName; + return $this; + } + + public function getReactionEmail(): ?string + { + return $this->reactionEmail; + } + + public function setReactionEmail(?string $reactionEmail): static + { + $this->reactionEmail = $reactionEmail; + return $this; + } + + public function getReactionText(): ?string + { + return $this->reactionText; + } + + public function setReactionText(?string $reactionText): static + { + $this->reactionText = $reactionText; + return $this; + } +} diff --git a/src/Endpoint/Products/GetListOfProductsReviews.php b/src/Endpoint/Reviews/GetListOfProductsReviews.php old mode 100644 new mode 100755 similarity index 77% rename from src/Endpoint/Products/GetListOfProductsReviews.php rename to src/Endpoint/Reviews/GetListOfProductsReviews.php index f1eed08..f524951 --- a/src/Endpoint/Products/GetListOfProductsReviews.php +++ b/src/Endpoint/Reviews/GetListOfProductsReviews.php @@ -1,12 +1,12 @@ reviews; + } + + public function setReviews(Reviews $reviews): static + { + $this->reviews = $reviews; + return $this; + } + + public function getPaginator(): Paginator + { + return $this->paginator; + } + + public function setPaginator(Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews.php b/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews.php new file mode 100755 index 0000000..fe1b10a --- /dev/null +++ b/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews.php @@ -0,0 +1,31 @@ + + * @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 Reviews extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Reviews\GetListOfProductsReviewsResponse\GetListOfProductsReviewsResponse\Data\Reviews\Item'; + } +} diff --git a/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item.php b/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item.php new file mode 100755 index 0000000..7f091b7 --- /dev/null +++ b/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item.php @@ -0,0 +1,181 @@ +guid; + } + + public function setGuid(TypeGuid $guid): static + { + $this->guid = $guid; + return $this; + } + + public function getDate(): TypeDateTimeNullable + { + return $this->date; + } + + public function setDate(TypeDateTimeNullable $date): static + { + $this->date = $date; + return $this; + } + + public function getOrderCode(): ?string + { + return $this->orderCode; + } + + public function setOrderCode(?string $orderCode): static + { + $this->orderCode = $orderCode; + return $this; + } + + public function getRating(): float + { + return $this->rating; + } + + public function setRating(float $rating): static + { + $this->rating = $rating; + return $this; + } + + public function getProductName(): string + { + return $this->productName; + } + + public function setProductName(string $productName): static + { + $this->productName = $productName; + return $this; + } + + public function getProductGuid(): ?TypeGuidUnlimited + { + return $this->productGuid; + } + + public function setProductGuid(?TypeGuidUnlimited $productGuid): static + { + $this->productGuid = $productGuid; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getFullName(): ?string + { + return $this->fullName; + } + + public function setFullName(?string $fullName): static + { + $this->fullName = $fullName; + return $this; + } + + public function getEmail(): ?string + { + return $this->email; + } + + public function setEmail(?string $email): static + { + $this->email = $email; + return $this; + } + + public function getCustomerGuid(): ?string + { + return $this->customerGuid; + } + + public function setCustomerGuid(?string $customerGuid): static + { + $this->customerGuid = $customerGuid; + return $this; + } + + public function isAuthorized(): bool + { + return $this->authorized; + } + + public function setAuthorized(bool $authorized): static + { + $this->authorized = $authorized; + return $this; + } + + public function isVisible(): bool + { + return $this->visible; + } + + public function setVisible(bool $visible): static + { + $this->visible = $visible; + return $this; + } + + public function getReaction(): Reaction + { + return $this->reaction; + } + + public function setReaction(Reaction $reaction): static + { + $this->reaction = $reaction; + return $this; + } + + public function getUpdated(): TypeDateTimeNullable + { + return $this->updated; + } + + public function setUpdated(TypeDateTimeNullable $updated): static + { + $this->updated = $updated; + return $this; + } +} diff --git a/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item/Reaction.php b/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item/Reaction.php new file mode 100755 index 0000000..b899594 --- /dev/null +++ b/src/Endpoint/Reviews/GetListOfProductsReviewsResponse/GetListOfProductsReviewsResponse/Data/Reviews/Item/Reaction.php @@ -0,0 +1,58 @@ +reactionCreated; + } + + public function setReactionCreated(TypeDateTimeNullable $reactionCreated): static + { + $this->reactionCreated = $reactionCreated; + return $this; + } + + public function getReactionFullName(): ?string + { + return $this->reactionFullName; + } + + public function setReactionFullName(?string $reactionFullName): static + { + $this->reactionFullName = $reactionFullName; + return $this; + } + + public function getReactionEmail(): ?string + { + return $this->reactionEmail; + } + + public function setReactionEmail(?string $reactionEmail): static + { + $this->reactionEmail = $reactionEmail; + return $this; + } + + public function getReactionText(): ?string + { + return $this->reactionText; + } + + public function setReactionText(?string $reactionText): static + { + $this->reactionText = $reactionText; + return $this; + } +} diff --git a/src/Endpoint/ShippingMethods/CreateShippingMethod.php b/src/Endpoint/ShippingMethods/CreateShippingMethod.php old mode 100644 new mode 100755 index ffed3ee..8968da8 --- a/src/Endpoint/ShippingMethods/CreateShippingMethod.php +++ b/src/Endpoint/ShippingMethods/CreateShippingMethod.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ShippingMethods\CreateShippingMethodResponse\CreateShippingMethodResponse; /** - * @see https://api.docs.shoptet.com/openapi/Shipping-methods/createshippingmethod + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Shipping-methods/createshippingmethod * * @method CreateShippingMethod setBody(null|array|CreateShippingMethodRequest $entity) * @method null|CreateShippingMethodRequest getBody() diff --git a/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest.php b/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest/Data1.php b/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest/Data1.php old mode 100644 new mode 100755 index 301e39c..e4f527d --- a/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest/Data1.php +++ b/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest/Data1.php @@ -3,7 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\ShippingMethods\CreateShippingMethodRequest\CreateShippingMethodRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; use Shoptet\Api\Sdk\Php\Endpoint\ShippingMethods\CreateShippingMethodRequest\CreateShippingMethodRequest\Data1\Logo; class Data1 extends Entity @@ -17,7 +17,7 @@ class Data1 extends Entity protected ?bool $visibility; protected ?bool $wholesale; protected ?Logo $logo; - protected ?TypePrice $minimalShippingPrice; + protected ?TypePriceNullable $minimalShippingPrice; public function getName(): string { @@ -102,12 +102,12 @@ public function setLogo(?Logo $logo): static return $this; } - public function getMinimalShippingPrice(): ?TypePrice + public function getMinimalShippingPrice(): ?TypePriceNullable { return $this->minimalShippingPrice; } - public function setMinimalShippingPrice(?TypePrice $minimalShippingPrice): static + public function setMinimalShippingPrice(?TypePriceNullable $minimalShippingPrice): static { $this->minimalShippingPrice = $minimalShippingPrice; return $this; diff --git a/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest/Data1/Logo.php b/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest/Data1/Logo.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest/Data2.php b/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest/Data2.php old mode 100644 new mode 100755 index 7bd691e..a7567dd --- a/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest/Data2.php +++ b/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest/Data2.php @@ -3,7 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\ShippingMethods\CreateShippingMethodRequest\CreateShippingMethodRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePrice; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePriceNullable; use Shoptet\Api\Sdk\Php\Endpoint\ShippingMethods\CreateShippingMethodRequest\CreateShippingMethodRequest\Data2\Logo; class Data2 extends Entity @@ -17,7 +17,7 @@ class Data2 extends Entity protected ?bool $visibility; protected ?bool $wholesale; protected ?Logo $logo; - protected ?TypePrice $minimalShippingPrice; + protected ?TypePriceNullable $minimalShippingPrice; public function getName(): string { @@ -102,12 +102,12 @@ public function setLogo(?Logo $logo): static return $this; } - public function getMinimalShippingPrice(): ?TypePrice + public function getMinimalShippingPrice(): ?TypePriceNullable { return $this->minimalShippingPrice; } - public function setMinimalShippingPrice(?TypePrice $minimalShippingPrice): static + public function setMinimalShippingPrice(?TypePriceNullable $minimalShippingPrice): static { $this->minimalShippingPrice = $minimalShippingPrice; return $this; diff --git a/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest/Data2/Logo.php b/src/Endpoint/ShippingMethods/CreateShippingMethodRequest/CreateShippingMethodRequest/Data2/Logo.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingMethods/CreateShippingMethodResponse/CreateShippingMethodResponse.php b/src/Endpoint/ShippingMethods/CreateShippingMethodResponse/CreateShippingMethodResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingMethods/CreateShippingMethodResponse/CreateShippingMethodResponse/Data.php b/src/Endpoint/ShippingMethods/CreateShippingMethodResponse/CreateShippingMethodResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingMethods/CreateShippingMethodResponse/CreateShippingMethodResponse/Data/ShippingCompany.php b/src/Endpoint/ShippingMethods/CreateShippingMethodResponse/CreateShippingMethodResponse/Data/ShippingCompany.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingMethods/GetListOfShippingMethods.php b/src/Endpoint/ShippingMethods/GetListOfShippingMethods.php old mode 100644 new mode 100755 index 8220f6d..d4240b2 --- a/src/Endpoint/ShippingMethods/GetListOfShippingMethods.php +++ b/src/Endpoint/ShippingMethods/GetListOfShippingMethods.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ShippingMethods\GetListOfShippingMethodsResponse\GetListOfShippingMethodsResponse; /** - * @see https://api.docs.shoptet.com/openapi/Shipping-methods/getlistofshippingmethods + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Shipping-methods/getlistofshippingmethods * * @method GetListOfShippingMethods setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse.php b/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse/Data.php b/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse/Data.php old mode 100644 new mode 100755 index 49e4058..eb918bc --- a/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse/Data.php +++ b/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse/Data.php @@ -9,6 +9,7 @@ class Data extends Entity { protected ShippingMethods $shippingMethods; protected bool $wholesaleActive; + protected bool $wholesaleSplitActive; protected ?string $defaultRetailMethod; protected ?string $defaultWholesaleMethod; @@ -34,6 +35,17 @@ public function setWholesaleActive(bool $wholesaleActive): static return $this; } + public function isWholesaleSplitActive(): bool + { + return $this->wholesaleSplitActive; + } + + public function setWholesaleSplitActive(bool $wholesaleSplitActive): static + { + $this->wholesaleSplitActive = $wholesaleSplitActive; + return $this; + } + public function getDefaultRetailMethod(): ?string { return $this->defaultRetailMethod; diff --git a/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse/Data/ShippingMethods.php b/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse/Data/ShippingMethods.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse/Data/ShippingMethods/Item.php b/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse/Data/ShippingMethods/Item.php old mode 100644 new mode 100755 index 83edbc7..c300aaa --- a/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse/Data/ShippingMethods/Item.php +++ b/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse/Data/ShippingMethods/Item.php @@ -14,7 +14,7 @@ class Item extends Entity protected ?ShippingCompany $shippingCompany; protected ?string $trackingUrl; protected bool $visible; - protected int $priority; + protected ?int $priority; protected bool $wholesale; protected ?string $logoUrl; @@ -84,12 +84,12 @@ public function setVisible(bool $visible): static return $this; } - public function getPriority(): int + public function getPriority(): ?int { return $this->priority; } - public function setPriority(int $priority): static + public function setPriority(?int $priority): static { $this->priority = $priority; return $this; diff --git a/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse/Data/ShippingMethods/Item/ShippingCompany.php b/src/Endpoint/ShippingMethods/GetListOfShippingMethodsResponse/GetListOfShippingMethodsResponse/Data/ShippingMethods/Item/ShippingCompany.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetails.php b/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetails.php old mode 100644 new mode 100755 index 093d249..ba3e225 --- a/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetails.php +++ b/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetails.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ShippingRequests\GetShippingRequestForCartDetailsResponse\GetShippingRequestForCartDetailsResponse; /** - * @see https://api.docs.shoptet.com/openapi/Shipping-requests/getshippingrequestforcartdetails + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Shipping-requests/getshippingrequestforcartdetails * * @method GetShippingRequestForCartDetails setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse.php b/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse/Data.php b/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse/Data/Cart.php b/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse/Data/Cart.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse/Data/Eshop.php b/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse/Data/Eshop.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse/Data/Items.php b/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse/Data/Items.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse/Data/Items/Item.php b/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse/Data/Items/Item.php old mode 100644 new mode 100755 index 1cf76a9..87b43bb --- a/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse/Data/Items/Item.php +++ b/src/Endpoint/ShippingRequests/GetShippingRequestForCartDetailsResponse/GetShippingRequestForCartDetailsResponse/Data/Items/Item.php @@ -5,7 +5,7 @@ use Shoptet\Api\Sdk\Php\Component\Entity\BrandNamed; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmount; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmountNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeWeight; class Item extends Entity @@ -17,7 +17,7 @@ class Item extends Entity protected string $variantName; protected ?BrandNamed $brand; protected TypeWeight $weight; - protected TypePositiveAmount $amount; + protected TypePositiveAmountNullable $amount; protected ?string $amountUnit; public function getProductGuid(): TypeGuidUnlimited @@ -97,12 +97,12 @@ public function setWeight(TypeWeight $weight): static return $this; } - public function getAmount(): TypePositiveAmount + public function getAmount(): TypePositiveAmountNullable { return $this->amount; } - public function setAmount(TypePositiveAmount $amount): static + public function setAmount(TypePositiveAmountNullable $amount): static { $this->amount = $amount; return $this; diff --git a/src/Endpoint/ShippingRequests/GetShippingRequestForGettingOrderStatus.php b/src/Endpoint/ShippingRequests/GetShippingRequestForGettingOrderStatus.php old mode 100644 new mode 100755 index 9624f8e..1579bd3 --- a/src/Endpoint/ShippingRequests/GetShippingRequestForGettingOrderStatus.php +++ b/src/Endpoint/ShippingRequests/GetShippingRequestForGettingOrderStatus.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ShippingRequests\GetShippingRequestForGettingOrderStatusResponse\GetShippingRequestForGettingOrderStatusResponse; /** - * @see https://api.docs.shoptet.com/openapi/Shipping-requests/getshippingrequestforgettingorderstatus + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Shipping-requests/getshippingrequestforgettingorderstatus * * @method GetShippingRequestForGettingOrderStatus setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/ShippingRequests/GetShippingRequestForGettingOrderStatusResponse/GetShippingRequestForGettingOrderStatusResponse.php b/src/Endpoint/ShippingRequests/GetShippingRequestForGettingOrderStatusResponse/GetShippingRequestForGettingOrderStatusResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingRequests/GetShippingRequestForGettingOrderStatusResponse/GetShippingRequestForGettingOrderStatusResponse/Data.php b/src/Endpoint/ShippingRequests/GetShippingRequestForGettingOrderStatusResponse/GetShippingRequestForGettingOrderStatusResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingRequests/UpdateShippingData.php b/src/Endpoint/ShippingRequests/UpdateShippingData.php old mode 100644 new mode 100755 index 5299ab1..c82c3ad --- a/src/Endpoint/ShippingRequests/UpdateShippingData.php +++ b/src/Endpoint/ShippingRequests/UpdateShippingData.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\ShippingRequests\UpdateShippingDataResponse\UpdateShippingDataResponse; /** - * @see https://api.docs.shoptet.com/openapi/Shipping-requests/updateshippingdata + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Shipping-requests/updateshippingdata * * @method UpdateShippingData setBody(null|array|UpdateShippingDataRequest $entity) * @method null|UpdateShippingDataRequest getBody() diff --git a/src/Endpoint/ShippingRequests/UpdateShippingDataRequest/UpdateShippingDataRequest.php b/src/Endpoint/ShippingRequests/UpdateShippingDataRequest/UpdateShippingDataRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingRequests/UpdateShippingDataRequest/UpdateShippingDataRequest/Data.php b/src/Endpoint/ShippingRequests/UpdateShippingDataRequest/UpdateShippingDataRequest/Data.php old mode 100644 new mode 100755 index 45ba285..38958a9 --- a/src/Endpoint/ShippingRequests/UpdateShippingDataRequest/UpdateShippingDataRequest/Data.php +++ b/src/Endpoint/ShippingRequests/UpdateShippingDataRequest/UpdateShippingDataRequest/Data.php @@ -3,7 +3,7 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\ShippingRequests\UpdateShippingDataRequest\UpdateShippingDataRequest; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCode; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeCurrencyCodeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeRequest; use Shoptet\Api\Sdk\Php\Endpoint\ShippingRequests\UpdateShippingDataRequest\UpdateShippingDataRequest\Data\DeliveryAddress; use Shoptet\Api\Sdk\Php\Endpoint\ShippingRequests\UpdateShippingDataRequest\UpdateShippingDataRequest\Data\Price; @@ -13,7 +13,7 @@ class Data extends Entity protected ?string $description; protected ?string $additionalText; protected ?Price $price; - protected ?TypeCurrencyCode $currency; + protected ?TypeCurrencyCodeNullable $currency; protected TypeDateTimeRequest $expires; protected ?DeliveryAddress $deliveryAddress; protected string $trackingNumber; @@ -53,12 +53,12 @@ public function setPrice(?Price $price): static return $this; } - public function getCurrency(): ?TypeCurrencyCode + public function getCurrency(): ?TypeCurrencyCodeNullable { return $this->currency; } - public function setCurrency(?TypeCurrencyCode $currency): static + public function setCurrency(?TypeCurrencyCodeNullable $currency): static { $this->currency = $currency; return $this; diff --git a/src/Endpoint/ShippingRequests/UpdateShippingDataRequest/UpdateShippingDataRequest/Data/DeliveryAddress.php b/src/Endpoint/ShippingRequests/UpdateShippingDataRequest/UpdateShippingDataRequest/Data/DeliveryAddress.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingRequests/UpdateShippingDataRequest/UpdateShippingDataRequest/Data/Price.php b/src/Endpoint/ShippingRequests/UpdateShippingDataRequest/UpdateShippingDataRequest/Data/Price.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingRequests/UpdateShippingDataResponse/UpdateShippingDataResponse.php b/src/Endpoint/ShippingRequests/UpdateShippingDataResponse/UpdateShippingDataResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/ShippingRequests/UpdateShippingDataResponse/UpdateShippingDataResponse/Data.php b/src/Endpoint/ShippingRequests/UpdateShippingDataResponse/UpdateShippingDataResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/GetListOfStocks.php b/src/Endpoint/Stocks/GetListOfStocks.php old mode 100644 new mode 100755 index 08bb89b..3e7efc6 --- a/src/Endpoint/Stocks/GetListOfStocks.php +++ b/src/Endpoint/Stocks/GetListOfStocks.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Stocks\GetListOfStocksResponse\GetListOfStocksResponse; /** - * @see https://api.docs.shoptet.com/openapi/Stocks/getlistofstocks + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Stocks/getlistofstocks * * @method GetListOfStocks setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Stocks/GetListOfStocksResponse/GetListOfStocksResponse.php b/src/Endpoint/Stocks/GetListOfStocksResponse/GetListOfStocksResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/GetListOfStocksResponse/GetListOfStocksResponse/Data.php b/src/Endpoint/Stocks/GetListOfStocksResponse/GetListOfStocksResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/GetListOfStocksResponse/GetListOfStocksResponse/Data/Stocks.php b/src/Endpoint/Stocks/GetListOfStocksResponse/GetListOfStocksResponse/Data/Stocks.php old mode 100644 new mode 100755 index 01c68f9..2a63d6f --- a/src/Endpoint/Stocks/GetListOfStocksResponse/GetListOfStocksResponse/Data/Stocks.php +++ b/src/Endpoint/Stocks/GetListOfStocksResponse/GetListOfStocksResponse/Data/Stocks.php @@ -3,29 +3,29 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Stocks\GetListOfStocksResponse\GetListOfStocksResponse\Data; use Shoptet\Api\Sdk\Php\Component\Entity\EntityCollection; -use Shoptet\Api\Sdk\Php\Component\Entity\Stock; +use Shoptet\Api\Sdk\Php\Component\Entity\StockList; /** - * @extends EntityCollection - * @property Stock[] $data - * @method Stock[] toArray() - * @method void set(int $key, Stock $item) - * @method null|Stock get(int $key) - * @method void add(Stock $item) - * @method null|Stock remove(int $key) - * @method bool removeItem(Stock $item, bool $strict = true) - * @method bool contains(Stock $item, bool $strict = true) - * @method null|Stock offsetGet(int $offset) - * @method void offsetSet(int $offset, Stock $value) + * @extends EntityCollection + * @property StockList[] $data + * @method StockList[] toArray() + * @method void set(int $key, StockList $item) + * @method null|StockList get(int $key) + * @method void add(StockList $item) + * @method null|StockList remove(int $key) + * @method bool removeItem(StockList $item, bool $strict = true) + * @method bool contains(StockList $item, bool $strict = true) + * @method null|StockList offsetGet(int $offset) + * @method void offsetSet(int $offset, StockList $value) */ class Stocks extends EntityCollection { /** * @param array $data - * @return class-string + * @return class-string */ public function getItemType(array $data): string { - return 'Shoptet\Api\Sdk\Php\Component\Entity\Stock'; + return 'Shoptet\Api\Sdk\Php\Component\Entity\StockList'; } } diff --git a/src/Endpoint/Stocks/GetProductSuppliesInStock.php b/src/Endpoint/Stocks/GetProductSuppliesInStock.php old mode 100644 new mode 100755 index 0ad2246..f0bd1fd --- a/src/Endpoint/Stocks/GetProductSuppliesInStock.php +++ b/src/Endpoint/Stocks/GetProductSuppliesInStock.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Stocks\GetProductSuppliesInStockResponse\GetProductSuppliesInStockResponse; /** - * @see https://api.docs.shoptet.com/openapi/Stocks/getproductsuppliesinstock + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Stocks/getproductsuppliesinstock * * @method GetProductSuppliesInStock setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Stocks/GetProductSuppliesInStockResponse/GetProductSuppliesInStockResponse.php b/src/Endpoint/Stocks/GetProductSuppliesInStockResponse/GetProductSuppliesInStockResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/GetProductSuppliesInStockResponse/GetProductSuppliesInStockResponse/Data.php b/src/Endpoint/Stocks/GetProductSuppliesInStockResponse/GetProductSuppliesInStockResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/GetProductSuppliesInStockResponse/GetProductSuppliesInStockResponse/Data/Supplies.php b/src/Endpoint/Stocks/GetProductSuppliesInStockResponse/GetProductSuppliesInStockResponse/Data/Supplies.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/GetProductSuppliesInStockResponse/GetProductSuppliesInStockResponse/Data/Supplies/Item.php b/src/Endpoint/Stocks/GetProductSuppliesInStockResponse/GetProductSuppliesInStockResponse/Data/Supplies/Item.php old mode 100644 new mode 100755 index ff26161..132d2bb --- a/src/Endpoint/Stocks/GetProductSuppliesInStockResponse/GetProductSuppliesInStockResponse/Data/Supplies/Item.php +++ b/src/Endpoint/Stocks/GetProductSuppliesInStockResponse/GetProductSuppliesInStockResponse/Data/Supplies/Item.php @@ -3,18 +3,18 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Stocks\GetProductSuppliesInStockResponse\GetProductSuppliesInStockResponse\Data\Supplies; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmountNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; class Item extends Entity { protected TypeGuidUnlimited $productGuid; protected string $code; - protected TypeAmount $amount; - protected TypeAmount $claim; + protected TypeAmountNullable $amount; + protected TypeAmountNullable $claim; protected ?string $location; - protected ?TypeDateTime $changeTime; + protected ?TypeDateTimeNullable $changeTime; public function getProductGuid(): TypeGuidUnlimited { @@ -38,23 +38,23 @@ public function setCode(string $code): static return $this; } - public function getAmount(): TypeAmount + public function getAmount(): TypeAmountNullable { return $this->amount; } - public function setAmount(TypeAmount $amount): static + public function setAmount(TypeAmountNullable $amount): static { $this->amount = $amount; return $this; } - public function getClaim(): TypeAmount + public function getClaim(): TypeAmountNullable { return $this->claim; } - public function setClaim(TypeAmount $claim): static + public function setClaim(TypeAmountNullable $claim): static { $this->claim = $claim; return $this; @@ -71,12 +71,12 @@ public function setLocation(?string $location): static return $this; } - public function getChangeTime(): ?TypeDateTime + public function getChangeTime(): ?TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(?TypeDateTime $changeTime): static + public function setChangeTime(?TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; diff --git a/src/Endpoint/Stocks/GetStockDetail.php b/src/Endpoint/Stocks/GetStockDetail.php old mode 100644 new mode 100755 index 1e1a5bb..6b126b6 --- a/src/Endpoint/Stocks/GetStockDetail.php +++ b/src/Endpoint/Stocks/GetStockDetail.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Stocks\GetStockDetailResponse\GetStockDetailResponse; /** - * @see https://api.docs.shoptet.com/openapi/Stocks/getstockdetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Stocks/getstockdetail * * @method GetStockDetail setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Stocks/GetStockDetailResponse/GetStockDetailResponse.php b/src/Endpoint/Stocks/GetStockDetailResponse/GetStockDetailResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/GetStockDetailResponse/GetStockDetailResponse/Data.php b/src/Endpoint/Stocks/GetStockDetailResponse/GetStockDetailResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/GetStockMovements.php b/src/Endpoint/Stocks/GetStockMovements.php old mode 100644 new mode 100755 index 6187d23..8643d7d --- a/src/Endpoint/Stocks/GetStockMovements.php +++ b/src/Endpoint/Stocks/GetStockMovements.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Stocks\GetStockMovementsResponse\GetStockMovementsResponse; /** - * @see https://api.docs.shoptet.com/openapi/Stocks/getstockmovements + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Stocks/getstockmovements * * @method GetStockMovements setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Stocks/GetStockMovementsLastMove.php b/src/Endpoint/Stocks/GetStockMovementsLastMove.php old mode 100644 new mode 100755 index 7acd8b3..4881ce8 --- a/src/Endpoint/Stocks/GetStockMovementsLastMove.php +++ b/src/Endpoint/Stocks/GetStockMovementsLastMove.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Stocks\GetStockMovementsLastMoveResponse\GetStockMovementsLastMoveResponse; /** - * @see https://api.docs.shoptet.com/openapi/Stocks/getstockmovementslastmove + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Stocks/getstockmovementslastmove * * @method GetStockMovementsLastMove setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Stocks/GetStockMovementsLastMoveResponse/GetStockMovementsLastMoveResponse.php b/src/Endpoint/Stocks/GetStockMovementsLastMoveResponse/GetStockMovementsLastMoveResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/GetStockMovementsLastMoveResponse/GetStockMovementsLastMoveResponse/Data.php b/src/Endpoint/Stocks/GetStockMovementsLastMoveResponse/GetStockMovementsLastMoveResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/GetStockMovementsResponse/GetStockMovementsResponse.php b/src/Endpoint/Stocks/GetStockMovementsResponse/GetStockMovementsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/GetStockMovementsResponse/GetStockMovementsResponse/Data.php b/src/Endpoint/Stocks/GetStockMovementsResponse/GetStockMovementsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/GetStockMovementsResponse/GetStockMovementsResponse/Data/Movements.php b/src/Endpoint/Stocks/GetStockMovementsResponse/GetStockMovementsResponse/Data/Movements.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/GetStockMovementsResponse/GetStockMovementsResponse/Data/Movements/Item.php b/src/Endpoint/Stocks/GetStockMovementsResponse/GetStockMovementsResponse/Data/Movements/Item.php old mode 100644 new mode 100755 index 1dd7cff..8c8ca6d --- a/src/Endpoint/Stocks/GetStockMovementsResponse/GetStockMovementsResponse/Data/Movements/Item.php +++ b/src/Endpoint/Stocks/GetStockMovementsResponse/GetStockMovementsResponse/Data/Movements/Item.php @@ -3,21 +3,21 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\Stocks\GetStockMovementsResponse\GetStockMovementsResponse\Data\Movements; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmount; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeAmountNullable; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeGuidUnlimited; class Item extends Entity { protected int $id; protected string $productCode; - protected TypeAmount $actualAmount; - protected TypeAmount $amountChange; + protected TypeAmountNullable $actualAmount; + protected TypeAmountNullable $amountChange; protected ?string $changedBy; - protected TypeDateTime $changeTime; + protected TypeDateTimeNullable $changeTime; protected ?string $orderCode; protected ?TypeGuidUnlimited $productGuid; - protected ?TypeAmount $sumAmount; + protected ?TypeAmountNullable $sumAmount; public function getId(): int { @@ -41,23 +41,23 @@ public function setProductCode(string $productCode): static return $this; } - public function getActualAmount(): TypeAmount + public function getActualAmount(): TypeAmountNullable { return $this->actualAmount; } - public function setActualAmount(TypeAmount $actualAmount): static + public function setActualAmount(TypeAmountNullable $actualAmount): static { $this->actualAmount = $actualAmount; return $this; } - public function getAmountChange(): TypeAmount + public function getAmountChange(): TypeAmountNullable { return $this->amountChange; } - public function setAmountChange(TypeAmount $amountChange): static + public function setAmountChange(TypeAmountNullable $amountChange): static { $this->amountChange = $amountChange; return $this; @@ -74,12 +74,12 @@ public function setChangedBy(?string $changedBy): static return $this; } - public function getChangeTime(): TypeDateTime + public function getChangeTime(): TypeDateTimeNullable { return $this->changeTime; } - public function setChangeTime(TypeDateTime $changeTime): static + public function setChangeTime(TypeDateTimeNullable $changeTime): static { $this->changeTime = $changeTime; return $this; @@ -107,12 +107,12 @@ public function setProductGuid(?TypeGuidUnlimited $productGuid): static return $this; } - public function getSumAmount(): ?TypeAmount + public function getSumAmount(): ?TypeAmountNullable { return $this->sumAmount; } - public function setSumAmount(?TypeAmount $sumAmount): static + public function setSumAmount(?TypeAmountNullable $sumAmount): static { $this->sumAmount = $sumAmount; return $this; diff --git a/src/Endpoint/Stocks/UpdateQuantityInStock.php b/src/Endpoint/Stocks/UpdateQuantityInStock.php old mode 100644 new mode 100755 index 4e5b6ad..9c7f2e1 --- a/src/Endpoint/Stocks/UpdateQuantityInStock.php +++ b/src/Endpoint/Stocks/UpdateQuantityInStock.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Stocks\UpdateQuantityInStockResponse\UpdateQuantityInStockResponse; /** - * @see https://api.docs.shoptet.com/openapi/Stocks/updatequantityinstock + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Stocks/updatequantityinstock * * @method UpdateQuantityInStock setBody(null|array|UpdateQuantityInStockRequest $entity) * @method null|UpdateQuantityInStockRequest getBody() diff --git a/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest.php b/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data.php b/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data.php old mode 100644 new mode 100755 index 58d4f29..d02d040 --- a/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data.php +++ b/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data.php @@ -13,12 +13,12 @@ * @property ItemWithAmountChange|ItemWithQuantity|ItemWithRealStock[] $data * @method ItemWithAmountChange|ItemWithQuantity|ItemWithRealStock[] toArray() * @method void set(int $key, ItemWithAmountChange|ItemWithQuantity|ItemWithRealStock $item) - * @method null|ItemWithAmountChange|ItemWithQuantity|ItemWithRealStock get(int $key) + * @method ItemWithAmountChange|ItemWithQuantity|ItemWithRealStock|null get(int $key) * @method void add(ItemWithAmountChange|ItemWithQuantity|ItemWithRealStock $item) - * @method null|ItemWithAmountChange|ItemWithQuantity|ItemWithRealStock remove(int $key) + * @method ItemWithAmountChange|ItemWithQuantity|ItemWithRealStock|null remove(int $key) * @method bool removeItem(ItemWithAmountChange|ItemWithQuantity|ItemWithRealStock $item, bool $strict = true) * @method bool contains(ItemWithAmountChange|ItemWithQuantity|ItemWithRealStock $item, bool $strict = true) - * @method null|ItemWithAmountChange|ItemWithQuantity|ItemWithRealStock offsetGet(int $offset) + * @method ItemWithAmountChange|ItemWithQuantity|ItemWithRealStock|null offsetGet(int $offset) * @method void offsetSet(int $offset, ItemWithAmountChange|ItemWithQuantity|ItemWithRealStock $value) */ class Data extends EntityCollection diff --git a/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/Item1.php b/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/Item1.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/Item2.php b/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/Item2.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/Item3.php b/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/Item3.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/ItemWithAmountChange.php b/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/ItemWithAmountChange.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/ItemWithQuantity.php b/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/ItemWithQuantity.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/ItemWithRealStock.php b/src/Endpoint/Stocks/UpdateQuantityInStockRequest/UpdateQuantityInStockRequest/Data/ItemWithRealStock.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Stocks/UpdateQuantityInStockResponse/UpdateQuantityInStockResponse.php b/src/Endpoint/Stocks/UpdateQuantityInStockResponse/UpdateQuantityInStockResponse.php old mode 100644 new mode 100755 index fdc1a1f..719e427 --- a/src/Endpoint/Stocks/UpdateQuantityInStockResponse/UpdateQuantityInStockResponse.php +++ b/src/Endpoint/Stocks/UpdateQuantityInStockResponse/UpdateQuantityInStockResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\Stocks\UpdateQuantityInStockResponse\UpdateQuantityInStockResponse\Data; class UpdateQuantityInStockResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Stocks/UpdateQuantityInStockResponse/UpdateQuantityInStockResponse/Data.php b/src/Endpoint/Stocks/UpdateQuantityInStockResponse/UpdateQuantityInStockResponse/Data.php new file mode 100755 index 0000000..cd2d2e5 --- /dev/null +++ b/src/Endpoint/Stocks/UpdateQuantityInStockResponse/UpdateQuantityInStockResponse/Data.php @@ -0,0 +1,9 @@ + false]; + + public function getRequestEntityClass(): string + { + return CreateSurchargeParameterRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateSurchargeParameterResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/surcharge-parameters'; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest.php new file mode 100755 index 0000000..00c4589 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data.php new file mode 100755 index 0000000..698d2a0 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data.php @@ -0,0 +1,131 @@ +currency; + } + + public function setCurrency(?TypeCurrencyCodeNullable $currency): static + { + $this->currency = $currency; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): static + { + $this->code = $code; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): static + { + $this->required = $required; + return $this; + } + + public function getIncludingVat(): ?bool + { + return $this->includingVat; + } + + public function setIncludingVat(?bool $includingVat): static + { + $this->includingVat = $includingVat; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getGoogleMapping(): ?string + { + return $this->googleMapping; + } + + public function setGoogleMapping(?string $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getValues(): Values + { + return $this->values; + } + + public function setValues(Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values.php new file mode 100755 index 0000000..479416a --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values.php @@ -0,0 +1,31 @@ + + * @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 Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\CreateSurchargeParameterRequest\CreateSurchargeParameterRequest\Data\Values\Item'; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values/Item.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values/Item.php new file mode 100755 index 0000000..1f03433 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterRequest/CreateSurchargeParameterRequest/Data/Values/Item.php @@ -0,0 +1,58 @@ +name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getPrice(): TypePriceNullable + { + return $this->price; + } + + public function setPrice(TypePriceNullable $price): static + { + $this->price = $price; + return $this; + } + + public function getValueIndex(): ?string + { + return $this->valueIndex; + } + + public function setValueIndex(?string $valueIndex): static + { + $this->valueIndex = $valueIndex; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse.php new file mode 100755 index 0000000..e7bcb52 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data.php new file mode 100755 index 0000000..89ec131 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data.php @@ -0,0 +1,22 @@ +surchargeParameter; + } + + public function setSurchargeParameter(SurchargeParameter $surchargeParameter): static + { + $this->surchargeParameter = $surchargeParameter; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter.php new file mode 100755 index 0000000..1265a76 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter.php @@ -0,0 +1,143 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function isRequired(): bool + { + return $this->required; + } + + public function setRequired(bool $required): static + { + $this->required = $required; + return $this; + } + + public function getCurrency(): string + { + return $this->currency; + } + + public function setCurrency(string $currency): static + { + $this->currency = $currency; + return $this; + } + + public function isIncludingVat(): bool + { + return $this->includingVat; + } + + public function setIncludingVat(bool $includingVat): static + { + $this->includingVat = $includingVat; + return $this; + } + + public function getGoogleMapping(): GoogleMappingType + { + return $this->googleMapping; + } + + public function setGoogleMapping(GoogleMappingType $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getValues(): Values + { + return $this->values; + } + + public function setValues(Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter/Values.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter/Values.php new file mode 100755 index 0000000..4c0e7ef --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterResponse/CreateSurchargeParameterResponse/Data/SurchargeParameter/Values.php @@ -0,0 +1,31 @@ + + * @property SurchargeParameterValue[] $data + * @method SurchargeParameterValue[] toArray() + * @method void set(int $key, SurchargeParameterValue $item) + * @method null|SurchargeParameterValue get(int $key) + * @method void add(SurchargeParameterValue $item) + * @method null|SurchargeParameterValue remove(int $key) + * @method bool removeItem(SurchargeParameterValue $item, bool $strict = true) + * @method bool contains(SurchargeParameterValue $item, bool $strict = true) + * @method null|SurchargeParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, SurchargeParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\SurchargeParameterValue'; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValue.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValue.php new file mode 100755 index 0000000..30156d6 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValue.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return CreateSurchargeParameterValueRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateSurchargeParameterValueResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/surcharge-parameters/{code}'; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest.php new file mode 100755 index 0000000..de6bccc --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data.php new file mode 100755 index 0000000..173d0a0 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data.php @@ -0,0 +1,22 @@ +paramValues; + } + + public function setParamValues(ParamValues $paramValues): static + { + $this->paramValues = $paramValues; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues.php new file mode 100755 index 0000000..b860099 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues.php @@ -0,0 +1,31 @@ + + * @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 ParamValues extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\CreateSurchargeParameterValueRequest\CreateSurchargeParameterValueRequest\Data\ParamValues\Item'; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues/Item.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues/Item.php new file mode 100755 index 0000000..7140f5c --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueRequest/CreateSurchargeParameterValueRequest/Data/ParamValues/Item.php @@ -0,0 +1,58 @@ +name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getPrice(): TypePriceNullable + { + return $this->price; + } + + public function setPrice(TypePriceNullable $price): static + { + $this->price = $price; + return $this; + } + + public function getValueIndex(): ?string + { + return $this->valueIndex; + } + + public function setValueIndex(?string $valueIndex): static + { + $this->valueIndex = $valueIndex; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse.php new file mode 100755 index 0000000..579d494 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data.php new file mode 100755 index 0000000..c577c54 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data.php @@ -0,0 +1,22 @@ +surchargeParameter; + } + + public function setSurchargeParameter(SurchargeParameter $surchargeParameter): static + { + $this->surchargeParameter = $surchargeParameter; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter.php new file mode 100755 index 0000000..ad05eae --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter.php @@ -0,0 +1,143 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function isRequired(): bool + { + return $this->required; + } + + public function setRequired(bool $required): static + { + $this->required = $required; + return $this; + } + + public function getCurrency(): string + { + return $this->currency; + } + + public function setCurrency(string $currency): static + { + $this->currency = $currency; + return $this; + } + + public function isIncludingVat(): bool + { + return $this->includingVat; + } + + public function setIncludingVat(bool $includingVat): static + { + $this->includingVat = $includingVat; + return $this; + } + + public function getGoogleMapping(): GoogleMappingType + { + return $this->googleMapping; + } + + public function setGoogleMapping(GoogleMappingType $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getValues(): Values + { + return $this->values; + } + + public function setValues(Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php new file mode 100755 index 0000000..919e3f3 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/CreateSurchargeParameterValueResponse/CreateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php @@ -0,0 +1,31 @@ + + * @property SurchargeParameterValue[] $data + * @method SurchargeParameterValue[] toArray() + * @method void set(int $key, SurchargeParameterValue $item) + * @method null|SurchargeParameterValue get(int $key) + * @method void add(SurchargeParameterValue $item) + * @method null|SurchargeParameterValue remove(int $key) + * @method bool removeItem(SurchargeParameterValue $item, bool $strict = true) + * @method bool contains(SurchargeParameterValue $item, bool $strict = true) + * @method null|SurchargeParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, SurchargeParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\SurchargeParameterValue'; + } +} diff --git a/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterByIndex.php b/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterByIndex.php new file mode 100755 index 0000000..14c61f8 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterByIndex.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteSurchargeParameterByIndexResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/surcharge-parameters/{code}'; + } +} diff --git a/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterByIndexResponse/DeleteSurchargeParameterByIndexResponse.php b/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterByIndexResponse/DeleteSurchargeParameterByIndexResponse.php new file mode 100755 index 0000000..db99b3b --- /dev/null +++ b/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterByIndexResponse/DeleteSurchargeParameterByIndexResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterByIndexResponse/DeleteSurchargeParameterByIndexResponse/Data.php b/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterByIndexResponse/DeleteSurchargeParameterByIndexResponse/Data.php new file mode 100755 index 0000000..96df682 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterByIndexResponse/DeleteSurchargeParameterByIndexResponse/Data.php @@ -0,0 +1,9 @@ + true, 'valueIndex' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteSurchargeParameterValueResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/surcharge-parameters/{paramIndex}/{valueIndex}'; + } +} diff --git a/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterValueResponse/DeleteSurchargeParameterValueResponse.php b/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterValueResponse/DeleteSurchargeParameterValueResponse.php new file mode 100755 index 0000000..c5528a3 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterValueResponse/DeleteSurchargeParameterValueResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterValueResponse/DeleteSurchargeParameterValueResponse/Data.php b/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterValueResponse/DeleteSurchargeParameterValueResponse/Data.php new file mode 100755 index 0000000..c7607f8 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/DeleteSurchargeParameterValueResponse/DeleteSurchargeParameterValueResponse/Data.php @@ -0,0 +1,9 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetDetailOfSurchargeParameterResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/surcharge-parameters/{code}'; + } +} diff --git a/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse.php b/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse.php new file mode 100755 index 0000000..4223c03 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data.php b/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data.php new file mode 100755 index 0000000..486c21a --- /dev/null +++ b/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data.php @@ -0,0 +1,22 @@ +surchargeParameter; + } + + public function setSurchargeParameter(SurchargeParameter $surchargeParameter): static + { + $this->surchargeParameter = $surchargeParameter; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter.php b/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter.php new file mode 100755 index 0000000..d8c283d --- /dev/null +++ b/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter.php @@ -0,0 +1,143 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function isRequired(): bool + { + return $this->required; + } + + public function setRequired(bool $required): static + { + $this->required = $required; + return $this; + } + + public function getCurrency(): string + { + return $this->currency; + } + + public function setCurrency(string $currency): static + { + $this->currency = $currency; + return $this; + } + + public function isIncludingVat(): bool + { + return $this->includingVat; + } + + public function setIncludingVat(bool $includingVat): static + { + $this->includingVat = $includingVat; + return $this; + } + + public function getGoogleMapping(): GoogleMappingType + { + return $this->googleMapping; + } + + public function setGoogleMapping(GoogleMappingType $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getValues(): Values + { + return $this->values; + } + + public function setValues(Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter/Values.php b/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter/Values.php new file mode 100755 index 0000000..33ffdf0 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/GetDetailOfSurchargeParameterResponse/GetDetailOfSurchargeParameterResponse/Data/SurchargeParameter/Values.php @@ -0,0 +1,31 @@ + + * @property SurchargeParameterValue[] $data + * @method SurchargeParameterValue[] toArray() + * @method void set(int $key, SurchargeParameterValue $item) + * @method null|SurchargeParameterValue get(int $key) + * @method void add(SurchargeParameterValue $item) + * @method null|SurchargeParameterValue remove(int $key) + * @method bool removeItem(SurchargeParameterValue $item, bool $strict = true) + * @method bool contains(SurchargeParameterValue $item, bool $strict = true) + * @method null|SurchargeParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, SurchargeParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\SurchargeParameterValue'; + } +} diff --git a/src/Endpoint/SurchargeParameters/GetListOfSurchargeParameters.php b/src/Endpoint/SurchargeParameters/GetListOfSurchargeParameters.php new file mode 100755 index 0000000..ac209a4 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/GetListOfSurchargeParameters.php @@ -0,0 +1,33 @@ + false, 'page' => false, 'itemsPerPage' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfSurchargeParametersResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/surcharge-parameters'; + } +} diff --git a/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse.php b/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse.php new file mode 100755 index 0000000..8ff475f --- /dev/null +++ b/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data.php b/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data.php new file mode 100755 index 0000000..14c14c9 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data.php @@ -0,0 +1,35 @@ +surchargeParameters; + } + + public function setSurchargeParameters(SurchargeParameters $surchargeParameters): static + { + $this->surchargeParameters = $surchargeParameters; + return $this; + } + + public function getPaginator(): Paginator + { + return $this->paginator; + } + + public function setPaginator(Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters.php b/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters.php new file mode 100755 index 0000000..fe74088 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters.php @@ -0,0 +1,31 @@ + + * @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 SurchargeParameters extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\GetListOfSurchargeParametersResponse\GetListOfSurchargeParametersResponse\Data\SurchargeParameters\Item'; + } +} diff --git a/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item.php b/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item.php new file mode 100755 index 0000000..0c57595 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item.php @@ -0,0 +1,143 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function isRequired(): bool + { + return $this->required; + } + + public function setRequired(bool $required): static + { + $this->required = $required; + return $this; + } + + public function getCurrency(): string + { + return $this->currency; + } + + public function setCurrency(string $currency): static + { + $this->currency = $currency; + return $this; + } + + public function isIncludingVat(): bool + { + return $this->includingVat; + } + + public function setIncludingVat(bool $includingVat): static + { + $this->includingVat = $includingVat; + return $this; + } + + public function getGoogleMapping(): GoogleMappingType + { + return $this->googleMapping; + } + + public function setGoogleMapping(GoogleMappingType $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getValues(): Values + { + return $this->values; + } + + public function setValues(Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item/Values.php b/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item/Values.php new file mode 100755 index 0000000..cdd3b3e --- /dev/null +++ b/src/Endpoint/SurchargeParameters/GetListOfSurchargeParametersResponse/GetListOfSurchargeParametersResponse/Data/SurchargeParameters/Item/Values.php @@ -0,0 +1,31 @@ + + * @property SurchargeParameterValue[] $data + * @method SurchargeParameterValue[] toArray() + * @method void set(int $key, SurchargeParameterValue $item) + * @method null|SurchargeParameterValue get(int $key) + * @method void add(SurchargeParameterValue $item) + * @method null|SurchargeParameterValue remove(int $key) + * @method bool removeItem(SurchargeParameterValue $item, bool $strict = true) + * @method bool contains(SurchargeParameterValue $item, bool $strict = true) + * @method null|SurchargeParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, SurchargeParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\SurchargeParameterValue'; + } +} diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameter.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameter.php new file mode 100755 index 0000000..e665083 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameter.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateSurchargeParameterRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateSurchargeParameterResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/surcharge-parameters/{code}'; + } +} diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest.php new file mode 100755 index 0000000..03733b4 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest/Data.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest/Data.php new file mode 100755 index 0000000..a2ffb38 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterRequest/UpdateSurchargeParameterRequest/Data.php @@ -0,0 +1,118 @@ +name; + } + + public function setName(?string $name): static + { + $this->name = $name; + return $this; + } + + public function getCode(): ?string + { + return $this->code; + } + + public function setCode(?string $code): static + { + $this->code = $code; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getGoogleMapping(): ?string + { + return $this->googleMapping; + } + + public function setGoogleMapping(?string $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getCurrency(): ?TypeCurrencyCodeNullable + { + return $this->currency; + } + + public function setCurrency(?TypeCurrencyCodeNullable $currency): static + { + $this->currency = $currency; + return $this; + } + + public function getRequired(): ?bool + { + return $this->required; + } + + public function setRequired(?bool $required): static + { + $this->required = $required; + return $this; + } + + public function getIncludingVat(): ?bool + { + return $this->includingVat; + } + + public function setIncludingVat(?bool $includingVat): static + { + $this->includingVat = $includingVat; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse.php new file mode 100755 index 0000000..6d6a615 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data.php new file mode 100755 index 0000000..de51996 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data.php @@ -0,0 +1,22 @@ +surchargeParameter; + } + + public function setSurchargeParameter(SurchargeParameter $surchargeParameter): static + { + $this->surchargeParameter = $surchargeParameter; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data/SurchargeParameter.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data/SurchargeParameter.php new file mode 100755 index 0000000..6a8d399 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterResponse/UpdateSurchargeParameterResponse/Data/SurchargeParameter.php @@ -0,0 +1,130 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function isRequired(): bool + { + return $this->required; + } + + public function setRequired(bool $required): static + { + $this->required = $required; + return $this; + } + + public function getCurrency(): string + { + return $this->currency; + } + + public function setCurrency(string $currency): static + { + $this->currency = $currency; + return $this; + } + + public function isIncludingVat(): bool + { + return $this->includingVat; + } + + public function setIncludingVat(bool $includingVat): static + { + $this->includingVat = $includingVat; + return $this; + } + + public function getGoogleMapping(): GoogleMappingType + { + return $this->googleMapping; + } + + public function setGoogleMapping(GoogleMappingType $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValue.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValue.php new file mode 100755 index 0000000..72cc32d --- /dev/null +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValue.php @@ -0,0 +1,34 @@ + true, 'valueIndex' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateSurchargeParameterValueRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateSurchargeParameterValueResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/surcharge-parameters/{paramIndex}/{valueIndex}'; + } +} diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest.php new file mode 100755 index 0000000..93bf443 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest/Data.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest/Data.php new file mode 100755 index 0000000..619837d --- /dev/null +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueRequest/UpdateSurchargeParameterValueRequest/Data.php @@ -0,0 +1,58 @@ +name; + } + + public function setName(?string $name): static + { + $this->name = $name; + return $this; + } + + public function getValueIndex(): ?string + { + return $this->valueIndex; + } + + public function setValueIndex(?string $valueIndex): static + { + $this->valueIndex = $valueIndex; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getPrice(): ?TypePriceNullable + { + return $this->price; + } + + public function setPrice(?TypePriceNullable $price): static + { + $this->price = $price; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse.php new file mode 100755 index 0000000..30c5941 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data.php new file mode 100755 index 0000000..00114a4 --- /dev/null +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data.php @@ -0,0 +1,22 @@ +surchargeParameter; + } + + public function setSurchargeParameter(SurchargeParameter $surchargeParameter): static + { + $this->surchargeParameter = $surchargeParameter; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter.php new file mode 100755 index 0000000..10751ef --- /dev/null +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter.php @@ -0,0 +1,143 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getCode(): string + { + return $this->code; + } + + public function setCode(string $code): static + { + $this->code = $code; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getDescription(): ?string + { + return $this->description; + } + + public function setDescription(?string $description): static + { + $this->description = $description; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function isRequired(): bool + { + return $this->required; + } + + public function setRequired(bool $required): static + { + $this->required = $required; + return $this; + } + + public function getCurrency(): string + { + return $this->currency; + } + + public function setCurrency(string $currency): static + { + $this->currency = $currency; + return $this; + } + + public function isIncludingVat(): bool + { + return $this->includingVat; + } + + public function setIncludingVat(bool $includingVat): static + { + $this->includingVat = $includingVat; + return $this; + } + + public function getGoogleMapping(): GoogleMappingType + { + return $this->googleMapping; + } + + public function setGoogleMapping(GoogleMappingType $googleMapping): static + { + $this->googleMapping = $googleMapping; + return $this; + } + + public function getValues(): Values + { + return $this->values; + } + + public function setValues(Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php new file mode 100755 index 0000000..468daaf --- /dev/null +++ b/src/Endpoint/SurchargeParameters/UpdateSurchargeParameterValueResponse/UpdateSurchargeParameterValueResponse/Data/SurchargeParameter/Values.php @@ -0,0 +1,31 @@ + + * @property SurchargeParameterValue[] $data + * @method SurchargeParameterValue[] toArray() + * @method void set(int $key, SurchargeParameterValue $item) + * @method null|SurchargeParameterValue get(int $key) + * @method void add(SurchargeParameterValue $item) + * @method null|SurchargeParameterValue remove(int $key) + * @method bool removeItem(SurchargeParameterValue $item, bool $strict = true) + * @method bool contains(SurchargeParameterValue $item, bool $strict = true) + * @method null|SurchargeParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, SurchargeParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\SurchargeParameterValue'; + } +} diff --git a/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpoints.php b/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpoints.php deleted file mode 100644 index 34efa15..0000000 --- a/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpoints.php +++ /dev/null @@ -1,33 +0,0 @@ - false, 'status' => false]; - - public function getRequestEntityClass(): null - { - return null; - } - - public function getResponseEntityClass(): string - { - return GetListOfAvailableEndpointsResponse::class; - } - - public function getEndpoint(): string - { - return '/api/system/endpoints'; - } -} diff --git a/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse.php b/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse.php deleted file mode 100644 index 157de1b..0000000 --- a/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse.php +++ /dev/null @@ -1,35 +0,0 @@ -data; - } - - public function setData(?Data $data): static - { - $this->data = $data; - return $this; - } - - public function getErrors(): ?Errors - { - return $this->errors; - } - - public function setErrors(?Errors $errors): static - { - $this->errors = $errors; - return $this; - } -} diff --git a/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data.php b/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data.php deleted file mode 100644 index 9c82cd2..0000000 --- a/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data.php +++ /dev/null @@ -1,22 +0,0 @@ -endpoints; - } - - public function setEndpoints(Endpoints $endpoints): static - { - $this->endpoints = $endpoints; - return $this; - } -} diff --git a/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints.php b/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints.php deleted file mode 100644 index c362727..0000000 --- a/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints.php +++ /dev/null @@ -1,31 +0,0 @@ - - * @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 Endpoints extends EntityCollection -{ - /** - * @param array $data - * @return class-string - */ - public function getItemType(array $data): string - { - return 'Shoptet\Api\Sdk\Php\Endpoint\SystemEndpoints\GetListOfAvailableEndpointsResponse\GetListOfAvailableEndpointsResponse\Data\Endpoints\Item'; - } -} diff --git a/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item.php b/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item.php deleted file mode 100644 index ee62603..0000000 --- a/src/Endpoint/SystemEndpoints/GetListOfAvailableEndpointsResponse/GetListOfAvailableEndpointsResponse/Data/Endpoints/Item.php +++ /dev/null @@ -1,70 +0,0 @@ -endpoint; - } - - public function setEndpoint(string $endpoint): static - { - $this->endpoint = $endpoint; - return $this; - } - - public function getDescription(): string - { - return $this->description; - } - - public function setDescription(string $description): static - { - $this->description = $description; - return $this; - } - - public function getGroup(): Group - { - return $this->group; - } - - public function setGroup(Group $group): static - { - $this->group = $group; - return $this; - } - - public function getAccess(): string - { - return $this->access; - } - - public function setAccess(string $access): static - { - $this->access = $access; - return $this; - } - - public function getAction(): ?string - { - return $this->action; - } - - public function setAction(?string $action): static - { - $this->action = $action; - return $this; - } -} diff --git a/src/Endpoint/Templates/CreateAndEditHtmlCodes.php b/src/Endpoint/Templates/CreateAndEditHtmlCodes.php old mode 100644 new mode 100755 index 718f775..62df260 --- a/src/Endpoint/Templates/CreateAndEditHtmlCodes.php +++ b/src/Endpoint/Templates/CreateAndEditHtmlCodes.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Templates\CreateAndEditHtmlCodesResponse\CreateAndEditHtmlCodesResponse; /** - * @see https://api.docs.shoptet.com/openapi/Templates/createandedithtmlcodes + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Templates/createandedithtmlcodes * * @method CreateAndEditHtmlCodes setBody(null|array|CreateAndEditHtmlCodesRequest $entity) * @method null|CreateAndEditHtmlCodesRequest getBody() diff --git a/src/Endpoint/Templates/CreateAndEditHtmlCodesRequest/CreateAndEditHtmlCodesRequest.php b/src/Endpoint/Templates/CreateAndEditHtmlCodesRequest/CreateAndEditHtmlCodesRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Templates/CreateAndEditHtmlCodesRequest/CreateAndEditHtmlCodesRequest/Data.php b/src/Endpoint/Templates/CreateAndEditHtmlCodesRequest/CreateAndEditHtmlCodesRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Templates/CreateAndEditHtmlCodesRequest/CreateAndEditHtmlCodesRequest/Data/Snippets.php b/src/Endpoint/Templates/CreateAndEditHtmlCodesRequest/CreateAndEditHtmlCodesRequest/Data/Snippets.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Templates/CreateAndEditHtmlCodesRequest/CreateAndEditHtmlCodesRequest/Data/Snippets/Item.php b/src/Endpoint/Templates/CreateAndEditHtmlCodesRequest/CreateAndEditHtmlCodesRequest/Data/Snippets/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Templates/CreateAndEditHtmlCodesResponse/CreateAndEditHtmlCodesResponse.php b/src/Endpoint/Templates/CreateAndEditHtmlCodesResponse/CreateAndEditHtmlCodesResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Templates/CreateAndEditHtmlCodesResponse/CreateAndEditHtmlCodesResponse/Data.php b/src/Endpoint/Templates/CreateAndEditHtmlCodesResponse/CreateAndEditHtmlCodesResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Templates/CreateAndEditHtmlCodesResponse/CreateAndEditHtmlCodesResponse/Data/Snippets.php b/src/Endpoint/Templates/CreateAndEditHtmlCodesResponse/CreateAndEditHtmlCodesResponse/Data/Snippets.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Templates/CreateAndEditHtmlCodesResponse/CreateAndEditHtmlCodesResponse/Data/Snippets/Item.php b/src/Endpoint/Templates/CreateAndEditHtmlCodesResponse/CreateAndEditHtmlCodesResponse/Data/Snippets/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/Templates/DeleteHtmlCode.php b/src/Endpoint/Templates/DeleteHtmlCode.php old mode 100644 new mode 100755 index 813437c..47b4bc4 --- a/src/Endpoint/Templates/DeleteHtmlCode.php +++ b/src/Endpoint/Templates/DeleteHtmlCode.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Templates\DeleteHtmlCodeResponse\DeleteHtmlCodeResponse; /** - * @see https://api.docs.shoptet.com/openapi/Templates/deletehtmlcode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Templates/deletehtmlcode * * @method DeleteHtmlCode setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Templates/DeleteHtmlCodeResponse/DeleteHtmlCodeResponse.php b/src/Endpoint/Templates/DeleteHtmlCodeResponse/DeleteHtmlCodeResponse.php old mode 100644 new mode 100755 index e0b192c..67e03ae --- a/src/Endpoint/Templates/DeleteHtmlCodeResponse/DeleteHtmlCodeResponse.php +++ b/src/Endpoint/Templates/DeleteHtmlCodeResponse/DeleteHtmlCodeResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\Templates\DeleteHtmlCodeResponse\DeleteHtmlCodeResponse\Data; class DeleteHtmlCodeResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Templates/DeleteHtmlCodeResponse/DeleteHtmlCodeResponse/Data.php b/src/Endpoint/Templates/DeleteHtmlCodeResponse/DeleteHtmlCodeResponse/Data.php new file mode 100755 index 0000000..38327dd --- /dev/null +++ b/src/Endpoint/Templates/DeleteHtmlCodeResponse/DeleteHtmlCodeResponse/Data.php @@ -0,0 +1,9 @@ + false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfProductUnitsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/units'; + } +} diff --git a/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse.php b/src/Endpoint/Units/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse.php old mode 100644 new mode 100755 similarity index 76% rename from src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse.php rename to src/Endpoint/Units/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse.php index 7996be5..e967efa --- a/src/Endpoint/Products/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse.php +++ b/src/Endpoint/Units/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse.php @@ -1,10 +1,10 @@ units; + } + + public function setUnits(Units $units): static + { + $this->units = $units; + return $this; + } +} diff --git a/src/Endpoint/Units/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units.php b/src/Endpoint/Units/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units.php new file mode 100755 index 0000000..ddb585e --- /dev/null +++ b/src/Endpoint/Units/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units.php @@ -0,0 +1,31 @@ + + * @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 Units extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Units\GetListOfProductUnitsResponse\GetListOfProductUnitsResponse\Data\Units\Item'; + } +} diff --git a/src/Endpoint/Units/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units/Item.php b/src/Endpoint/Units/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units/Item.php new file mode 100755 index 0000000..e29ef72 --- /dev/null +++ b/src/Endpoint/Units/GetListOfProductUnitsResponse/GetListOfProductUnitsResponse/Data/Units/Item.php @@ -0,0 +1,45 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getName(): string + { + return $this->name; + } + + public function setName(string $name): static + { + $this->name = $name; + return $this; + } + + public function isSystem(): bool + { + return $this->system; + } + + public function setSystem(bool $system): static + { + $this->system = $system; + return $this; + } +} diff --git a/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmail.php b/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmail.php old mode 100644 new mode 100755 index b6979b7..f58ceb2 --- a/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmail.php +++ b/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmail.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\UnsubscribedEmails\CreateUnsubscribedEmailResponse\CreateUnsubscribedEmailResponse; /** - * @see https://api.docs.shoptet.com/openapi/Unsubscribed-emails/createunsubscribedemail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Unsubscribed-emails/createunsubscribedemail * * @method CreateUnsubscribedEmail setBody(null|array|CreateUnsubscribedEmailRequest $entity) * @method null|CreateUnsubscribedEmailRequest getBody() diff --git a/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailRequest/CreateUnsubscribedEmailRequest.php b/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailRequest/CreateUnsubscribedEmailRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailRequest/CreateUnsubscribedEmailRequest/Data.php b/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailRequest/CreateUnsubscribedEmailRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailResponse/CreateUnsubscribedEmailResponse.php b/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailResponse/CreateUnsubscribedEmailResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailResponse/CreateUnsubscribedEmailResponse/Data.php b/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailResponse/CreateUnsubscribedEmailResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailResponse/CreateUnsubscribedEmailResponse/Data/UnsubscribedEmail.php b/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailResponse/CreateUnsubscribedEmailResponse/Data/UnsubscribedEmail.php old mode 100644 new mode 100755 index 6a2a0c9..a9f89d8 --- a/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailResponse/CreateUnsubscribedEmailResponse/Data/UnsubscribedEmail.php +++ b/src/Endpoint/UnsubscribedEmails/CreateUnsubscribedEmailResponse/CreateUnsubscribedEmailResponse/Data/UnsubscribedEmail.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\UnsubscribedEmails\CreateUnsubscribedEmailResponse\CreateUnsubscribedEmailResponse\Data; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class UnsubscribedEmail extends Entity { protected string $email; - protected TypeDateTime $unsubscribedAt; + protected TypeDateTimeNullable $unsubscribedAt; public function getEmail(): string { @@ -21,12 +21,12 @@ public function setEmail(string $email): static return $this; } - public function getUnsubscribedAt(): TypeDateTime + public function getUnsubscribedAt(): TypeDateTimeNullable { return $this->unsubscribedAt; } - public function setUnsubscribedAt(TypeDateTime $unsubscribedAt): static + public function setUnsubscribedAt(TypeDateTimeNullable $unsubscribedAt): static { $this->unsubscribedAt = $unsubscribedAt; return $this; diff --git a/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmails.php b/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmails.php old mode 100644 new mode 100755 index 6215c89..533b455 --- a/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmails.php +++ b/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmails.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\UnsubscribedEmails\GetListingOfUnsubscribedEmailsResponse\GetListingOfUnsubscribedEmailsResponse; /** - * @see https://api.docs.shoptet.com/openapi/Unsubscribed-emails/getlistingofunsubscribedemails + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Unsubscribed-emails/getlistingofunsubscribedemails * * @method GetListingOfUnsubscribedEmails setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmailsResponse/GetListingOfUnsubscribedEmailsResponse.php b/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmailsResponse/GetListingOfUnsubscribedEmailsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmailsResponse/GetListingOfUnsubscribedEmailsResponse/Data.php b/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmailsResponse/GetListingOfUnsubscribedEmailsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmailsResponse/GetListingOfUnsubscribedEmailsResponse/Data/UnsubscribedEmails.php b/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmailsResponse/GetListingOfUnsubscribedEmailsResponse/Data/UnsubscribedEmails.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmailsResponse/GetListingOfUnsubscribedEmailsResponse/Data/UnsubscribedEmails/Item.php b/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmailsResponse/GetListingOfUnsubscribedEmailsResponse/Data/UnsubscribedEmails/Item.php old mode 100644 new mode 100755 index 985f5d4..5cb8f1d --- a/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmailsResponse/GetListingOfUnsubscribedEmailsResponse/Data/UnsubscribedEmails/Item.php +++ b/src/Endpoint/UnsubscribedEmails/GetListingOfUnsubscribedEmailsResponse/GetListingOfUnsubscribedEmailsResponse/Data/UnsubscribedEmails/Item.php @@ -3,12 +3,12 @@ namespace Shoptet\Api\Sdk\Php\Endpoint\UnsubscribedEmails\GetListingOfUnsubscribedEmailsResponse\GetListingOfUnsubscribedEmailsResponse\Data\UnsubscribedEmails; use Shoptet\Api\Sdk\Php\Component\Entity\Entity; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTime; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateTimeNullable; class Item extends Entity { protected string $email; - protected TypeDateTime $unsubscribedAt; + protected TypeDateTimeNullable $unsubscribedAt; public function getEmail(): string { @@ -21,12 +21,12 @@ public function setEmail(string $email): static return $this; } - public function getUnsubscribedAt(): TypeDateTime + public function getUnsubscribedAt(): TypeDateTimeNullable { return $this->unsubscribedAt; } - public function setUnsubscribedAt(TypeDateTime $unsubscribedAt): static + public function setUnsubscribedAt(TypeDateTimeNullable $unsubscribedAt): static { $this->unsubscribedAt = $unsubscribedAt; return $this; diff --git a/src/Endpoint/VariantParameters/CreateVariantParameter.php b/src/Endpoint/VariantParameters/CreateVariantParameter.php new file mode 100755 index 0000000..384014c --- /dev/null +++ b/src/Endpoint/VariantParameters/CreateVariantParameter.php @@ -0,0 +1,34 @@ + false]; + + public function getRequestEntityClass(): string + { + return CreateVariantParameterRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateVariantParameterResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/variant-parameters'; + } +} diff --git a/src/Endpoint/VariantParameters/CreateVariantParameterRequest/CreateVariantParameterRequest.php b/src/Endpoint/VariantParameters/CreateVariantParameterRequest/CreateVariantParameterRequest.php new file mode 100755 index 0000000..1ef5476 --- /dev/null +++ b/src/Endpoint/VariantParameters/CreateVariantParameterRequest/CreateVariantParameterRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/CreateVariantParameterRequest/CreateVariantParameterRequest/Data.php b/src/Endpoint/VariantParameters/CreateVariantParameterRequest/CreateVariantParameterRequest/Data.php new file mode 100755 index 0000000..a6f65fc --- /dev/null +++ b/src/Endpoint/VariantParameters/CreateVariantParameterRequest/CreateVariantParameterRequest/Data.php @@ -0,0 +1,70 @@ +paramName; + } + + public function setParamName(string $paramName): static + { + $this->paramName = $paramName; + return $this; + } + + public function getParamIndex(): ?string + { + return $this->paramIndex; + } + + public function setParamIndex(?string $paramIndex): static + { + $this->paramIndex = $paramIndex; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getValues(): ?ProductVariantParameterValues + { + return $this->values; + } + + public function setValues(?ProductVariantParameterValues $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/CreateVariantParameterResponse/CreateVariantParameterResponse.php b/src/Endpoint/VariantParameters/CreateVariantParameterResponse/CreateVariantParameterResponse.php new file mode 100755 index 0000000..4648b3c --- /dev/null +++ b/src/Endpoint/VariantParameters/CreateVariantParameterResponse/CreateVariantParameterResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/CreateVariantParameterResponse/CreateVariantParameterResponse/Data.php b/src/Endpoint/VariantParameters/CreateVariantParameterResponse/CreateVariantParameterResponse/Data.php new file mode 100755 index 0000000..6cc278e --- /dev/null +++ b/src/Endpoint/VariantParameters/CreateVariantParameterResponse/CreateVariantParameterResponse/Data.php @@ -0,0 +1,82 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getParamName(): ?string + { + return $this->paramName; + } + + public function setParamName(?string $paramName): static + { + $this->paramName = $paramName; + return $this; + } + + public function getParamIndex(): string + { + return $this->paramIndex; + } + + public function setParamIndex(string $paramIndex): static + { + $this->paramIndex = $paramIndex; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getValues(): ?Values + { + return $this->values; + } + + public function setValues(?Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/CreateVariantParameterResponse/CreateVariantParameterResponse/Data/Values.php b/src/Endpoint/VariantParameters/CreateVariantParameterResponse/CreateVariantParameterResponse/Data/Values.php new file mode 100755 index 0000000..2d4422d --- /dev/null +++ b/src/Endpoint/VariantParameters/CreateVariantParameterResponse/CreateVariantParameterResponse/Data/Values.php @@ -0,0 +1,31 @@ + + * @property ProductVariantParameterValue[] $data + * @method ProductVariantParameterValue[] toArray() + * @method void set(int $key, ProductVariantParameterValue $item) + * @method null|ProductVariantParameterValue get(int $key) + * @method void add(ProductVariantParameterValue $item) + * @method null|ProductVariantParameterValue remove(int $key) + * @method bool removeItem(ProductVariantParameterValue $item, bool $strict = true) + * @method bool contains(ProductVariantParameterValue $item, bool $strict = true) + * @method null|ProductVariantParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductVariantParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductVariantParameterValue'; + } +} diff --git a/src/Endpoint/VariantParameters/CreateVariantParameterValue.php b/src/Endpoint/VariantParameters/CreateVariantParameterValue.php new file mode 100755 index 0000000..5f8b506 --- /dev/null +++ b/src/Endpoint/VariantParameters/CreateVariantParameterValue.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return CreateVariantParameterValueRequest::class; + } + + public function getResponseEntityClass(): string + { + return CreateVariantParameterValueResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/variant-parameters/{paramIndex}'; + } +} diff --git a/src/Endpoint/VariantParameters/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest.php b/src/Endpoint/VariantParameters/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest.php new file mode 100755 index 0000000..7063a52 --- /dev/null +++ b/src/Endpoint/VariantParameters/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest/Data.php b/src/Endpoint/VariantParameters/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest/Data.php new file mode 100755 index 0000000..5d60264 --- /dev/null +++ b/src/Endpoint/VariantParameters/CreateVariantParameterValueRequest/CreateVariantParameterValueRequest/Data.php @@ -0,0 +1,22 @@ +paramValues; + } + + public function setParamValues(ProductVariantParameterValues $paramValues): static + { + $this->paramValues = $paramValues; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse.php b/src/Endpoint/VariantParameters/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse.php new file mode 100755 index 0000000..293b00b --- /dev/null +++ b/src/Endpoint/VariantParameters/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data.php b/src/Endpoint/VariantParameters/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data.php new file mode 100755 index 0000000..254197b --- /dev/null +++ b/src/Endpoint/VariantParameters/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data.php @@ -0,0 +1,82 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getParamName(): ?string + { + return $this->paramName; + } + + public function setParamName(?string $paramName): static + { + $this->paramName = $paramName; + return $this; + } + + public function getParamIndex(): string + { + return $this->paramIndex; + } + + public function setParamIndex(string $paramIndex): static + { + $this->paramIndex = $paramIndex; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getValues(): ?Values + { + return $this->values; + } + + public function setValues(?Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data/Values.php b/src/Endpoint/VariantParameters/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data/Values.php new file mode 100755 index 0000000..559b0bd --- /dev/null +++ b/src/Endpoint/VariantParameters/CreateVariantParameterValueResponse/CreateVariantParameterValueResponse/Data/Values.php @@ -0,0 +1,31 @@ + + * @property ProductVariantParameterValue[] $data + * @method ProductVariantParameterValue[] toArray() + * @method void set(int $key, ProductVariantParameterValue $item) + * @method null|ProductVariantParameterValue get(int $key) + * @method void add(ProductVariantParameterValue $item) + * @method null|ProductVariantParameterValue remove(int $key) + * @method bool removeItem(ProductVariantParameterValue $item, bool $strict = true) + * @method bool contains(ProductVariantParameterValue $item, bool $strict = true) + * @method null|ProductVariantParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductVariantParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductVariantParameterValue'; + } +} diff --git a/src/Endpoint/VariantParameters/DeleteVariantParameter.php b/src/Endpoint/VariantParameters/DeleteVariantParameter.php new file mode 100755 index 0000000..608df5c --- /dev/null +++ b/src/Endpoint/VariantParameters/DeleteVariantParameter.php @@ -0,0 +1,33 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteVariantParameterResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/variant-parameters/{paramIndex}'; + } +} diff --git a/src/Endpoint/VariantParameters/DeleteVariantParameterResponse/DeleteVariantParameterResponse.php b/src/Endpoint/VariantParameters/DeleteVariantParameterResponse/DeleteVariantParameterResponse.php new file mode 100755 index 0000000..f98ae7b --- /dev/null +++ b/src/Endpoint/VariantParameters/DeleteVariantParameterResponse/DeleteVariantParameterResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/DeleteVariantParameterResponse/DeleteVariantParameterResponse/Data.php b/src/Endpoint/VariantParameters/DeleteVariantParameterResponse/DeleteVariantParameterResponse/Data.php new file mode 100755 index 0000000..4897675 --- /dev/null +++ b/src/Endpoint/VariantParameters/DeleteVariantParameterResponse/DeleteVariantParameterResponse/Data.php @@ -0,0 +1,9 @@ + true, 'rawValue' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return DeleteVariantParameterValueResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/variant-parameters/{paramIndex}/{rawValue}'; + } +} diff --git a/src/Endpoint/VariantParameters/DeleteVariantParameterValueResponse/DeleteVariantParameterValueResponse.php b/src/Endpoint/VariantParameters/DeleteVariantParameterValueResponse/DeleteVariantParameterValueResponse.php new file mode 100755 index 0000000..b09a86a --- /dev/null +++ b/src/Endpoint/VariantParameters/DeleteVariantParameterValueResponse/DeleteVariantParameterValueResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/DeleteVariantParameterValueResponse/DeleteVariantParameterValueResponse/Data.php b/src/Endpoint/VariantParameters/DeleteVariantParameterValueResponse/DeleteVariantParameterValueResponse/Data.php new file mode 100755 index 0000000..0d6d36c --- /dev/null +++ b/src/Endpoint/VariantParameters/DeleteVariantParameterValueResponse/DeleteVariantParameterValueResponse/Data.php @@ -0,0 +1,9 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetDetailOfVariantParameterResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/variant-parameters/{paramIndex}'; + } +} diff --git a/src/Endpoint/VariantParameters/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse.php b/src/Endpoint/VariantParameters/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse.php new file mode 100755 index 0000000..6abcd61 --- /dev/null +++ b/src/Endpoint/VariantParameters/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data.php b/src/Endpoint/VariantParameters/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data.php new file mode 100755 index 0000000..150d442 --- /dev/null +++ b/src/Endpoint/VariantParameters/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data.php @@ -0,0 +1,82 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getParamName(): ?string + { + return $this->paramName; + } + + public function setParamName(?string $paramName): static + { + $this->paramName = $paramName; + return $this; + } + + public function getParamIndex(): string + { + return $this->paramIndex; + } + + public function setParamIndex(string $paramIndex): static + { + $this->paramIndex = $paramIndex; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getValues(): ?Values + { + return $this->values; + } + + public function setValues(?Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data/Values.php b/src/Endpoint/VariantParameters/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data/Values.php new file mode 100755 index 0000000..bedf0a1 --- /dev/null +++ b/src/Endpoint/VariantParameters/GetDetailOfVariantParameterResponse/GetDetailOfVariantParameterResponse/Data/Values.php @@ -0,0 +1,31 @@ + + * @property ProductVariantParameterValue[] $data + * @method ProductVariantParameterValue[] toArray() + * @method void set(int $key, ProductVariantParameterValue $item) + * @method null|ProductVariantParameterValue get(int $key) + * @method void add(ProductVariantParameterValue $item) + * @method null|ProductVariantParameterValue remove(int $key) + * @method bool removeItem(ProductVariantParameterValue $item, bool $strict = true) + * @method bool contains(ProductVariantParameterValue $item, bool $strict = true) + * @method null|ProductVariantParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductVariantParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductVariantParameterValue'; + } +} diff --git a/src/Endpoint/VariantParameters/GetListOfVariantParameters.php b/src/Endpoint/VariantParameters/GetListOfVariantParameters.php new file mode 100755 index 0000000..f625360 --- /dev/null +++ b/src/Endpoint/VariantParameters/GetListOfVariantParameters.php @@ -0,0 +1,39 @@ + false, + 'page' => false, + 'itemsPerPage' => false, + 'include' => false, + ]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfVariantParametersResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/variant-parameters'; + } +} diff --git a/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse.php b/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse.php new file mode 100755 index 0000000..0ea422a --- /dev/null +++ b/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data.php b/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data.php new file mode 100755 index 0000000..867f602 --- /dev/null +++ b/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data.php @@ -0,0 +1,35 @@ +parameters; + } + + public function setParameters(Parameters $parameters): static + { + $this->parameters = $parameters; + return $this; + } + + public function getPaginator(): Paginator + { + return $this->paginator; + } + + public function setPaginator(Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters.php b/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters.php new file mode 100755 index 0000000..6b1ec44 --- /dev/null +++ b/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters.php @@ -0,0 +1,31 @@ + + * @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 Parameters extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\GetListOfVariantParametersResponse\GetListOfVariantParametersResponse\Data\Parameters\Item'; + } +} diff --git a/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item.php b/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item.php new file mode 100755 index 0000000..907413c --- /dev/null +++ b/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item.php @@ -0,0 +1,82 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getParamName(): ?string + { + return $this->paramName; + } + + public function setParamName(?string $paramName): static + { + $this->paramName = $paramName; + return $this; + } + + public function getParamIndex(): string + { + return $this->paramIndex; + } + + public function setParamIndex(string $paramIndex): static + { + $this->paramIndex = $paramIndex; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getValues(): ?Values + { + return $this->values; + } + + public function setValues(?Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item/Values.php b/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item/Values.php new file mode 100755 index 0000000..8a623e5 --- /dev/null +++ b/src/Endpoint/VariantParameters/GetListOfVariantParametersResponse/GetListOfVariantParametersResponse/Data/Parameters/Item/Values.php @@ -0,0 +1,31 @@ + + * @property ProductVariantParameterValue[] $data + * @method ProductVariantParameterValue[] toArray() + * @method void set(int $key, ProductVariantParameterValue $item) + * @method null|ProductVariantParameterValue get(int $key) + * @method void add(ProductVariantParameterValue $item) + * @method null|ProductVariantParameterValue remove(int $key) + * @method bool removeItem(ProductVariantParameterValue $item, bool $strict = true) + * @method bool contains(ProductVariantParameterValue $item, bool $strict = true) + * @method null|ProductVariantParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductVariantParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductVariantParameterValue'; + } +} diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameter.php b/src/Endpoint/VariantParameters/UpdateVariantParameter.php new file mode 100755 index 0000000..7c3d91e --- /dev/null +++ b/src/Endpoint/VariantParameters/UpdateVariantParameter.php @@ -0,0 +1,34 @@ + true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateVariantParameterRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateVariantParameterResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/variant-parameters/{paramIndex}'; + } +} diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameterRequest/UpdateVariantParameterRequest.php b/src/Endpoint/VariantParameters/UpdateVariantParameterRequest/UpdateVariantParameterRequest.php new file mode 100755 index 0000000..7f8589f --- /dev/null +++ b/src/Endpoint/VariantParameters/UpdateVariantParameterRequest/UpdateVariantParameterRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameterRequest/UpdateVariantParameterRequest/Data.php b/src/Endpoint/VariantParameters/UpdateVariantParameterRequest/UpdateVariantParameterRequest/Data.php new file mode 100755 index 0000000..f928e1f --- /dev/null +++ b/src/Endpoint/VariantParameters/UpdateVariantParameterRequest/UpdateVariantParameterRequest/Data.php @@ -0,0 +1,57 @@ +paramName; + } + + public function setParamName(?string $paramName): static + { + $this->paramName = $paramName; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getParamIndex(): ?string + { + return $this->paramIndex; + } + + public function setParamIndex(?string $paramIndex): static + { + $this->paramIndex = $paramIndex; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameterResponse/UpdateVariantParameterResponse.php b/src/Endpoint/VariantParameters/UpdateVariantParameterResponse/UpdateVariantParameterResponse.php new file mode 100755 index 0000000..deb356d --- /dev/null +++ b/src/Endpoint/VariantParameters/UpdateVariantParameterResponse/UpdateVariantParameterResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data.php b/src/Endpoint/VariantParameters/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data.php new file mode 100755 index 0000000..1aebde0 --- /dev/null +++ b/src/Endpoint/VariantParameters/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data.php @@ -0,0 +1,82 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getParamName(): ?string + { + return $this->paramName; + } + + public function setParamName(?string $paramName): static + { + $this->paramName = $paramName; + return $this; + } + + public function getParamIndex(): string + { + return $this->paramIndex; + } + + public function setParamIndex(string $paramIndex): static + { + $this->paramIndex = $paramIndex; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getValues(): ?Values + { + return $this->values; + } + + public function setValues(?Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data/Values.php b/src/Endpoint/VariantParameters/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data/Values.php new file mode 100755 index 0000000..e189f69 --- /dev/null +++ b/src/Endpoint/VariantParameters/UpdateVariantParameterResponse/UpdateVariantParameterResponse/Data/Values.php @@ -0,0 +1,31 @@ + + * @property ProductVariantParameterValue[] $data + * @method ProductVariantParameterValue[] toArray() + * @method void set(int $key, ProductVariantParameterValue $item) + * @method null|ProductVariantParameterValue get(int $key) + * @method void add(ProductVariantParameterValue $item) + * @method null|ProductVariantParameterValue remove(int $key) + * @method bool removeItem(ProductVariantParameterValue $item, bool $strict = true) + * @method bool contains(ProductVariantParameterValue $item, bool $strict = true) + * @method null|ProductVariantParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductVariantParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductVariantParameterValue'; + } +} diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameterValue.php b/src/Endpoint/VariantParameters/UpdateVariantParameterValue.php new file mode 100755 index 0000000..01edb69 --- /dev/null +++ b/src/Endpoint/VariantParameters/UpdateVariantParameterValue.php @@ -0,0 +1,34 @@ + true, 'rawValue' => true]; + protected array $supportedQueryParams = ['language' => false]; + + public function getRequestEntityClass(): string + { + return UpdateVariantParameterValueRequest::class; + } + + public function getResponseEntityClass(): string + { + return UpdateVariantParameterValueResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/variant-parameters/{paramIndex}/{rawValue}'; + } +} diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest.php b/src/Endpoint/VariantParameters/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest.php new file mode 100755 index 0000000..88df2bd --- /dev/null +++ b/src/Endpoint/VariantParameters/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest.php @@ -0,0 +1,22 @@ +data; + } + + public function setData(Data $data): static + { + $this->data = $data; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest/Data.php b/src/Endpoint/VariantParameters/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest/Data.php new file mode 100755 index 0000000..6f82eda --- /dev/null +++ b/src/Endpoint/VariantParameters/UpdateVariantParameterValueRequest/UpdateVariantParameterValueRequest/Data.php @@ -0,0 +1,70 @@ +paramValue; + } + + public function setParamValue(?string $paramValue): static + { + $this->paramValue = $paramValue; + return $this; + } + + public function getRawValue(): ?string + { + return $this->rawValue; + } + + public function setRawValue(?string $rawValue): static + { + $this->rawValue = $rawValue; + return $this; + } + + public function getColor(): ?TypeColor + { + return $this->color; + } + + public function setColor(?TypeColor $color): static + { + $this->color = $color; + return $this; + } + + public function getImage(): ?string + { + return $this->image; + } + + public function setImage(?string $image): static + { + $this->image = $image; + return $this; + } + + public function getValuePriority(): ?int + { + return $this->valuePriority; + } + + public function setValuePriority(?int $valuePriority): static + { + $this->valuePriority = $valuePriority; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse.php b/src/Endpoint/VariantParameters/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse.php new file mode 100755 index 0000000..ae556d7 --- /dev/null +++ b/src/Endpoint/VariantParameters/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data.php b/src/Endpoint/VariantParameters/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data.php new file mode 100755 index 0000000..2d22cef --- /dev/null +++ b/src/Endpoint/VariantParameters/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data.php @@ -0,0 +1,82 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getParamName(): ?string + { + return $this->paramName; + } + + public function setParamName(?string $paramName): static + { + $this->paramName = $paramName; + return $this; + } + + public function getParamIndex(): string + { + return $this->paramIndex; + } + + public function setParamIndex(string $paramIndex): static + { + $this->paramIndex = $paramIndex; + return $this; + } + + public function getDisplayName(): ?string + { + return $this->displayName; + } + + public function setDisplayName(?string $displayName): static + { + $this->displayName = $displayName; + return $this; + } + + public function getPriority(): ?int + { + return $this->priority; + } + + public function setPriority(?int $priority): static + { + $this->priority = $priority; + return $this; + } + + public function getValues(): ?Values + { + return $this->values; + } + + public function setValues(?Values $values): static + { + $this->values = $values; + return $this; + } +} diff --git a/src/Endpoint/VariantParameters/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data/Values.php b/src/Endpoint/VariantParameters/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data/Values.php new file mode 100755 index 0000000..9b133c1 --- /dev/null +++ b/src/Endpoint/VariantParameters/UpdateVariantParameterValueResponse/UpdateVariantParameterValueResponse/Data/Values.php @@ -0,0 +1,31 @@ + + * @property ProductVariantParameterValue[] $data + * @method ProductVariantParameterValue[] toArray() + * @method void set(int $key, ProductVariantParameterValue $item) + * @method null|ProductVariantParameterValue get(int $key) + * @method void add(ProductVariantParameterValue $item) + * @method null|ProductVariantParameterValue remove(int $key) + * @method bool removeItem(ProductVariantParameterValue $item, bool $strict = true) + * @method bool contains(ProductVariantParameterValue $item, bool $strict = true) + * @method null|ProductVariantParameterValue offsetGet(int $offset) + * @method void offsetSet(int $offset, ProductVariantParameterValue $value) + */ +class Values extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Component\Entity\ProductVariantParameterValue'; + } +} diff --git a/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscounts.php b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscounts.php new file mode 100755 index 0000000..55cd9bc --- /dev/null +++ b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscounts.php @@ -0,0 +1,39 @@ + false, + 'page' => false, + 'itemsPerPage' => false, + 'customerGroupCode' => false, + ]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfVolumeDiscountsResponse::class; + } + + public function getEndpoint(): string + { + return '/api/volume-discounts'; + } +} diff --git a/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse.php b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse.php new file mode 100755 index 0000000..78e8c3b --- /dev/null +++ b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse.php @@ -0,0 +1,35 @@ +data; + } + + public function setData(?Data $data): static + { + $this->data = $data; + return $this; + } + + public function getErrors(): ?Errors + { + return $this->errors; + } + + public function setErrors(?Errors $errors): static + { + $this->errors = $errors; + return $this; + } +} diff --git a/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data.php b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data.php new file mode 100755 index 0000000..1d33b91 --- /dev/null +++ b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data.php @@ -0,0 +1,35 @@ +discounts; + } + + public function setDiscounts(Discounts $discounts): static + { + $this->discounts = $discounts; + return $this; + } + + public function getPaginator(): Paginator + { + return $this->paginator; + } + + public function setPaginator(Paginator $paginator): static + { + $this->paginator = $paginator; + return $this; + } +} diff --git a/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts.php b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts.php new file mode 100755 index 0000000..1569ed6 --- /dev/null +++ b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts.php @@ -0,0 +1,31 @@ + + * @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 Discounts extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\VolumeDiscounts\GetListOfVolumeDiscountsResponse\GetListOfVolumeDiscountsResponse\Data\Discounts\Item'; + } +} diff --git a/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts/Item.php b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts/Item.php new file mode 100755 index 0000000..18d856e --- /dev/null +++ b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts/Item.php @@ -0,0 +1,73 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getAmount(): TypeAmount + { + return $this->amount; + } + + public function setAmount(TypeAmount $amount): static + { + $this->amount = $amount; + return $this; + } + + public function getPriceRatio(): ?TypePriceRatio + { + return $this->priceRatio; + } + + public function setPriceRatio(?TypePriceRatio $priceRatio): static + { + $this->priceRatio = $priceRatio; + return $this; + } + + public function getCurrency(): TypeCurrencyCodeNullable + { + return $this->currency; + } + + public function setCurrency(TypeCurrencyCodeNullable $currency): static + { + $this->currency = $currency; + return $this; + } + + public function getCustomerGroups(): ?CustomerGroups + { + return $this->customerGroups; + } + + public function setCustomerGroups(?CustomerGroups $customerGroups): static + { + $this->customerGroups = $customerGroups; + return $this; + } +} diff --git a/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts/Item/CustomerGroups.php b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts/Item/CustomerGroups.php new file mode 100755 index 0000000..93d5713 --- /dev/null +++ b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts/Item/CustomerGroups.php @@ -0,0 +1,31 @@ + + * @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 CustomerGroups extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\VolumeDiscounts\GetListOfVolumeDiscountsResponse\GetListOfVolumeDiscountsResponse\Data\Discounts\Item\CustomerGroups\Item'; + } +} diff --git a/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts/Item/CustomerGroups/Item.php b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts/Item/CustomerGroups/Item.php new file mode 100755 index 0000000..c68dd44 --- /dev/null +++ b/src/Endpoint/VolumeDiscounts/GetListOfVolumeDiscountsResponse/GetListOfVolumeDiscountsResponse/Data/Discounts/Item/CustomerGroups/Item.php @@ -0,0 +1,33 @@ +code; + } + + public function setCode(string $code): static + { + $this->code = $code; + 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/Warranties/GetListOfProductWarranties.php b/src/Endpoint/Warranties/GetListOfProductWarranties.php new file mode 100755 index 0000000..f2bf65f --- /dev/null +++ b/src/Endpoint/Warranties/GetListOfProductWarranties.php @@ -0,0 +1,33 @@ + false]; + + public function getRequestEntityClass(): null + { + return null; + } + + public function getResponseEntityClass(): string + { + return GetListOfProductWarrantiesResponse::class; + } + + public function getEndpoint(): string + { + return '/api/products/warranties'; + } +} diff --git a/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse.php b/src/Endpoint/Warranties/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse.php old mode 100644 new mode 100755 similarity index 75% rename from src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse.php rename to src/Endpoint/Warranties/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse.php index b70fa75..41464ff --- a/src/Endpoint/Products/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse.php +++ b/src/Endpoint/Warranties/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse.php @@ -1,10 +1,10 @@ warranties; + } + + public function setWarranties(Warranties $warranties): static + { + $this->warranties = $warranties; + return $this; + } +} diff --git a/src/Endpoint/Warranties/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties.php b/src/Endpoint/Warranties/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties.php new file mode 100755 index 0000000..dbcf3d3 --- /dev/null +++ b/src/Endpoint/Warranties/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties.php @@ -0,0 +1,31 @@ + + * @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 Warranties extends EntityCollection +{ + /** + * @param array $data + * @return class-string + */ + public function getItemType(array $data): string + { + return 'Shoptet\Api\Sdk\Php\Endpoint\Warranties\GetListOfProductWarrantiesResponse\GetListOfProductWarrantiesResponse\Data\Warranties\Item'; + } +} diff --git a/src/Endpoint/Warranties/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties/Item.php b/src/Endpoint/Warranties/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties/Item.php new file mode 100755 index 0000000..437575b --- /dev/null +++ b/src/Endpoint/Warranties/GetListOfProductWarrantiesResponse/GetListOfProductWarrantiesResponse/Data/Warranties/Item.php @@ -0,0 +1,57 @@ +id; + } + + public function setId(int $id): static + { + $this->id = $id; + return $this; + } + + public function getInMonths(): ?int + { + return $this->inMonths; + } + + public function setInMonths(?int $inMonths): static + { + $this->inMonths = $inMonths; + return $this; + } + + public function getDescription(): string + { + return $this->description; + } + + public function setDescription(string $description): static + { + $this->description = $description; + return $this; + } + + public function isSystem(): bool + { + return $this->system; + } + + public function setSystem(bool $system): static + { + $this->system = $system; + return $this; + } +} diff --git a/src/Endpoint/Webhooks/DeleteRegisteredWebhook.php b/src/Endpoint/Webhooks/DeleteRegisteredWebhook.php old mode 100644 new mode 100755 index 4ee0c8f..3dfc4ac --- a/src/Endpoint/Webhooks/DeleteRegisteredWebhook.php +++ b/src/Endpoint/Webhooks/DeleteRegisteredWebhook.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\Webhooks\DeleteRegisteredWebhookResponse\DeleteRegisteredWebhookResponse; /** - * @see https://api.docs.shoptet.com/openapi/Webhooks/deleteregisteredwebhook + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Webhooks/deleteregisteredwebhook * * @method DeleteRegisteredWebhook setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/Webhooks/DeleteRegisteredWebhookResponse/DeleteRegisteredWebhookResponse.php b/src/Endpoint/Webhooks/DeleteRegisteredWebhookResponse/DeleteRegisteredWebhookResponse.php old mode 100644 new mode 100755 index 2381452..0d11cd9 --- a/src/Endpoint/Webhooks/DeleteRegisteredWebhookResponse/DeleteRegisteredWebhookResponse.php +++ b/src/Endpoint/Webhooks/DeleteRegisteredWebhookResponse/DeleteRegisteredWebhookResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\Webhooks\DeleteRegisteredWebhookResponse\DeleteRegisteredWebhookResponse\Data; class DeleteRegisteredWebhookResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Webhooks/DeleteRegisteredWebhookResponse/DeleteRegisteredWebhookResponse/Data.php b/src/Endpoint/Webhooks/DeleteRegisteredWebhookResponse/DeleteRegisteredWebhookResponse/Data.php new file mode 100755 index 0000000..eb9a5ef --- /dev/null +++ b/src/Endpoint/Webhooks/DeleteRegisteredWebhookResponse/DeleteRegisteredWebhookResponse/Data.php @@ -0,0 +1,9 @@ +data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/Webhooks/UpdateExistingWebhookResponse/UpdateExistingWebhookResponse/Data.php b/src/Endpoint/Webhooks/UpdateExistingWebhookResponse/UpdateExistingWebhookResponse/Data.php new file mode 100755 index 0000000..31938a0 --- /dev/null +++ b/src/Endpoint/Webhooks/UpdateExistingWebhookResponse/UpdateExistingWebhookResponse/Data.php @@ -0,0 +1,9 @@ +validFrom; } - public function setValidFrom(?TypeDate $validFrom): static + public function setValidFrom(?TypeDateNullable $validFrom): static { $this->validFrom = $validFrom; return $this; } - public function getValidTo(): ?TypeDate + public function getValidTo(): ?TypeDateNullable { return $this->validTo; } - public function setValidTo(?TypeDate $validTo): static + public function setValidTo(?TypeDateNullable $validTo): static { $this->validTo = $validTo; return $this; diff --git a/src/Endpoint/XYDiscounts/CreateXYDiscountRequest/CreateXYDiscountRequest/Data/CustomerGroupCodes.php b/src/Endpoint/XYDiscounts/CreateXYDiscountRequest/CreateXYDiscountRequest/Data/CustomerGroupCodes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/CreateXYDiscountResponse/CreateXYDiscountResponse.php b/src/Endpoint/XYDiscounts/CreateXYDiscountResponse/CreateXYDiscountResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/CreateXYDiscountResponse/CreateXYDiscountResponse/Data.php b/src/Endpoint/XYDiscounts/CreateXYDiscountResponse/CreateXYDiscountResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/DeleteXYDiscount.php b/src/Endpoint/XYDiscounts/DeleteXYDiscount.php old mode 100644 new mode 100755 index 2532984..f406e7b --- a/src/Endpoint/XYDiscounts/DeleteXYDiscount.php +++ b/src/Endpoint/XYDiscounts/DeleteXYDiscount.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\XYDiscounts\DeleteXYDiscountResponse\DeleteXYDiscountResponse; /** - * @see https://api.docs.shoptet.com/openapi/XY-discounts/deletexydiscount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/deletexydiscount * * @method DeleteXYDiscount setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/XYDiscounts/DeleteXYDiscountResponse/DeleteXYDiscountResponse.php b/src/Endpoint/XYDiscounts/DeleteXYDiscountResponse/DeleteXYDiscountResponse.php old mode 100644 new mode 100755 index bb92d6b..ff789c1 --- a/src/Endpoint/XYDiscounts/DeleteXYDiscountResponse/DeleteXYDiscountResponse.php +++ b/src/Endpoint/XYDiscounts/DeleteXYDiscountResponse/DeleteXYDiscountResponse.php @@ -4,18 +4,19 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\Errors; +use Shoptet\Api\Sdk\Php\Endpoint\XYDiscounts\DeleteXYDiscountResponse\DeleteXYDiscountResponse\Data; class DeleteXYDiscountResponse extends Entity { - protected null $data; + protected ?Data $data; protected ?Errors $errors; - public function getData(): null + public function getData(): ?Data { return $this->data; } - public function setData(null $data): static + public function setData(?Data $data): static { $this->data = $data; return $this; diff --git a/src/Endpoint/XYDiscounts/DeleteXYDiscountResponse/DeleteXYDiscountResponse/Data.php b/src/Endpoint/XYDiscounts/DeleteXYDiscountResponse/DeleteXYDiscountResponse/Data.php new file mode 100755 index 0000000..ccf9868 --- /dev/null +++ b/src/Endpoint/XYDiscounts/DeleteXYDiscountResponse/DeleteXYDiscountResponse/Data.php @@ -0,0 +1,9 @@ +validFrom; } - public function setValidFrom(TypeDate $validFrom): static + public function setValidFrom(TypeDateNullable $validFrom): static { $this->validFrom = $validFrom; return $this; } - public function getValidTo(): TypeDate + public function getValidTo(): TypeDateNullable { return $this->validTo; } - public function setValidTo(TypeDate $validTo): static + public function setValidTo(TypeDateNullable $validTo): static { $this->validTo = $validTo; return $this; diff --git a/src/Endpoint/XYDiscounts/GetListOfXYDiscountsResponse/GetListOfXYDiscountsResponse/Data/Discounts/Item/CustomerGroups.php b/src/Endpoint/XYDiscounts/GetListOfXYDiscountsResponse/GetListOfXYDiscountsResponse/Data/Discounts/Item/CustomerGroups.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/GetListOfXYDiscountsResponse/GetListOfXYDiscountsResponse/Data/Discounts/Item/CustomerGroups/Item.php b/src/Endpoint/XYDiscounts/GetListOfXYDiscountsResponse/GetListOfXYDiscountsResponse/Data/Discounts/Item/CustomerGroups/Item.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/GetXYDiscountsSettings.php b/src/Endpoint/XYDiscounts/GetXYDiscountsSettings.php old mode 100644 new mode 100755 index de6cdaf..9e92c5a --- a/src/Endpoint/XYDiscounts/GetXYDiscountsSettings.php +++ b/src/Endpoint/XYDiscounts/GetXYDiscountsSettings.php @@ -6,7 +6,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\XYDiscounts\GetXYDiscountsSettingsResponse\GetXYDiscountsSettingsResponse; /** - * @see https://api.docs.shoptet.com/openapi/XY-discounts/getxydiscountssettings + * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/getxydiscountssettings * * @method GetXYDiscountsSettings setBody(null $entity) * @method null getBody() diff --git a/src/Endpoint/XYDiscounts/GetXYDiscountsSettingsResponse/GetXYDiscountsSettingsResponse.php b/src/Endpoint/XYDiscounts/GetXYDiscountsSettingsResponse/GetXYDiscountsSettingsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/GetXYDiscountsSettingsResponse/GetXYDiscountsSettingsResponse/Data.php b/src/Endpoint/XYDiscounts/GetXYDiscountsSettingsResponse/GetXYDiscountsSettingsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/UpdateXYDiscount.php b/src/Endpoint/XYDiscounts/UpdateXYDiscount.php old mode 100644 new mode 100755 index 956aec4..71f8906 --- a/src/Endpoint/XYDiscounts/UpdateXYDiscount.php +++ b/src/Endpoint/XYDiscounts/UpdateXYDiscount.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\XYDiscounts\UpdateXYDiscountResponse\UpdateXYDiscountResponse; /** - * @see https://api.docs.shoptet.com/openapi/XY-discounts/updatexydiscount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/updatexydiscount * * @method UpdateXYDiscount setBody(null|array|UpdateXYDiscountRequest $entity) * @method null|UpdateXYDiscountRequest getBody() diff --git a/src/Endpoint/XYDiscounts/UpdateXYDiscountRequest/UpdateXYDiscountRequest.php b/src/Endpoint/XYDiscounts/UpdateXYDiscountRequest/UpdateXYDiscountRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/UpdateXYDiscountRequest/UpdateXYDiscountRequest/Data.php b/src/Endpoint/XYDiscounts/UpdateXYDiscountRequest/UpdateXYDiscountRequest/Data.php old mode 100644 new mode 100755 index c937671..0ee7d3a --- a/src/Endpoint/XYDiscounts/UpdateXYDiscountRequest/UpdateXYDiscountRequest/Data.php +++ b/src/Endpoint/XYDiscounts/UpdateXYDiscountRequest/UpdateXYDiscountRequest/Data.php @@ -5,15 +5,15 @@ use Shoptet\Api\Sdk\Php\Component\Entity\Entity; use Shoptet\Api\Sdk\Php\Component\Entity\XyDiscountTargetingPostRequest; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeColor; -use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDate; +use Shoptet\Api\Sdk\Php\Component\ValueObject\TypeDateNullable; use Shoptet\Api\Sdk\Php\Component\ValueObject\TypePositiveAmount; use Shoptet\Api\Sdk\Php\Endpoint\XYDiscounts\UpdateXYDiscountRequest\UpdateXYDiscountRequest\Data\CustomerGroupCodes; class Data extends Entity { protected ?string $title; - protected ?TypeDate $validFrom; - protected ?TypeDate $validTo; + protected ?TypeDateNullable $validFrom; + protected ?TypeDateNullable $validTo; protected ?CustomerGroupCodes $customerGroupCodes; protected ?bool $includeUnregisteredCustomers; protected ?TypePositiveAmount $xAmount; @@ -41,23 +41,23 @@ public function setTitle(?string $title): static return $this; } - public function getValidFrom(): ?TypeDate + public function getValidFrom(): ?TypeDateNullable { return $this->validFrom; } - public function setValidFrom(?TypeDate $validFrom): static + public function setValidFrom(?TypeDateNullable $validFrom): static { $this->validFrom = $validFrom; return $this; } - public function getValidTo(): ?TypeDate + public function getValidTo(): ?TypeDateNullable { return $this->validTo; } - public function setValidTo(?TypeDate $validTo): static + public function setValidTo(?TypeDateNullable $validTo): static { $this->validTo = $validTo; return $this; diff --git a/src/Endpoint/XYDiscounts/UpdateXYDiscountRequest/UpdateXYDiscountRequest/Data/CustomerGroupCodes.php b/src/Endpoint/XYDiscounts/UpdateXYDiscountRequest/UpdateXYDiscountRequest/Data/CustomerGroupCodes.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/UpdateXYDiscountResponse/UpdateXYDiscountResponse.php b/src/Endpoint/XYDiscounts/UpdateXYDiscountResponse/UpdateXYDiscountResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/UpdateXYDiscountResponse/UpdateXYDiscountResponse/Data.php b/src/Endpoint/XYDiscounts/UpdateXYDiscountResponse/UpdateXYDiscountResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/UpdateXYDiscountSettings.php b/src/Endpoint/XYDiscounts/UpdateXYDiscountSettings.php old mode 100644 new mode 100755 index bd44837..918c0c0 --- a/src/Endpoint/XYDiscounts/UpdateXYDiscountSettings.php +++ b/src/Endpoint/XYDiscounts/UpdateXYDiscountSettings.php @@ -7,7 +7,7 @@ use Shoptet\Api\Sdk\Php\Endpoint\XYDiscounts\UpdateXYDiscountSettingsResponse\UpdateXYDiscountSettingsResponse; /** - * @see https://api.docs.shoptet.com/openapi/XY-discounts/updatexydiscountsettings + * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/updatexydiscountsettings * * @method UpdateXYDiscountSettings setBody(null|array|UpdateXYDiscountSettingsRequest $entity) * @method null|UpdateXYDiscountSettingsRequest getBody() diff --git a/src/Endpoint/XYDiscounts/UpdateXYDiscountSettingsRequest/UpdateXYDiscountSettingsRequest.php b/src/Endpoint/XYDiscounts/UpdateXYDiscountSettingsRequest/UpdateXYDiscountSettingsRequest.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/UpdateXYDiscountSettingsRequest/UpdateXYDiscountSettingsRequest/Data.php b/src/Endpoint/XYDiscounts/UpdateXYDiscountSettingsRequest/UpdateXYDiscountSettingsRequest/Data.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/UpdateXYDiscountSettingsResponse/UpdateXYDiscountSettingsResponse.php b/src/Endpoint/XYDiscounts/UpdateXYDiscountSettingsResponse/UpdateXYDiscountSettingsResponse.php old mode 100644 new mode 100755 diff --git a/src/Endpoint/XYDiscounts/UpdateXYDiscountSettingsResponse/UpdateXYDiscountSettingsResponse/Data.php b/src/Endpoint/XYDiscounts/UpdateXYDiscountSettingsResponse/UpdateXYDiscountSettingsResponse/Data.php old mode 100644 new mode 100755 diff --git a/src/Exception/BadMethodCallException.php b/src/Exception/BadMethodCallException.php old mode 100644 new mode 100755 diff --git a/src/Exception/EndpointValidationException.php b/src/Exception/EndpointValidationException.php old mode 100644 new mode 100755 diff --git a/src/Exception/Exception.php b/src/Exception/Exception.php old mode 100644 new mode 100755 diff --git a/src/Exception/InvalidArgumentException.php b/src/Exception/InvalidArgumentException.php old mode 100644 new mode 100755 diff --git a/src/Exception/LogicException.php b/src/Exception/LogicException.php old mode 100644 new mode 100755 diff --git a/src/Exception/NetworkException.php b/src/Exception/NetworkException.php old mode 100644 new mode 100755 diff --git a/src/Exception/OutOfRangeException.php b/src/Exception/OutOfRangeException.php old mode 100644 new mode 100755 diff --git a/src/Exception/RateLimitExceededException.php b/src/Exception/RateLimitExceededException.php old mode 100644 new mode 100755 diff --git a/src/Exception/ReflectionException.php b/src/Exception/ReflectionException.php old mode 100644 new mode 100755 diff --git a/src/Exception/RequestException.php b/src/Exception/RequestException.php old mode 100644 new mode 100755 diff --git a/src/Exception/RuntimeException.php b/src/Exception/RuntimeException.php old mode 100644 new mode 100755 diff --git a/src/Factory/Endpoint/EndpointFactory.php b/src/Factory/Endpoint/EndpointFactory.php old mode 100644 new mode 100755 diff --git a/src/Factory/Entity/EntityCollectionFactory.php b/src/Factory/Entity/EntityCollectionFactory.php old mode 100644 new mode 100755 diff --git a/src/Factory/Entity/EntityFactory.php b/src/Factory/Entity/EntityFactory.php old mode 100644 new mode 100755 diff --git a/src/Factory/Response/ArrayResponseFactory.php b/src/Factory/Response/ArrayResponseFactory.php old mode 100644 new mode 100755 diff --git a/src/Factory/Response/EntityResponseFactory.php b/src/Factory/Response/EntityResponseFactory.php old mode 100644 new mode 100755 diff --git a/src/Factory/Response/RawResponseFactory.php b/src/Factory/Response/RawResponseFactory.php old mode 100644 new mode 100755 diff --git a/src/Factory/Response/ResponseFactoryInterface.php b/src/Factory/Response/ResponseFactoryInterface.php old mode 100644 new mode 100755 diff --git a/src/Factory/ValueObject/DateFactory.php b/src/Factory/ValueObject/DateFactory.php old mode 100644 new mode 100755 diff --git a/src/Helper/StringConverter.php b/src/Helper/StringConverter.php old mode 100644 new mode 100755 diff --git a/src/HttpClient/ClientInterface.php b/src/HttpClient/ClientInterface.php old mode 100644 new mode 100755 diff --git a/src/HttpClient/CurlClient.php b/src/HttpClient/CurlClient.php old mode 100644 new mode 100755 index c1507f2..6ac9cec --- a/src/HttpClient/CurlClient.php +++ b/src/HttpClient/CurlClient.php @@ -94,7 +94,7 @@ public function request(Endpoint $endpoint): ResponseInterface 'body' => $endpoint->getBody(), ] ); - /** @var false|string $rBody */ + /** @var string|false $rBody */ $rBody = curl_exec($this->handle); $errno = curl_errno($this->handle); diff --git a/src/Response/AbstractResponse.php b/src/Response/AbstractResponse.php old mode 100644 new mode 100755 diff --git a/src/Response/ArrayResponse.php b/src/Response/ArrayResponse.php old mode 100644 new mode 100755 index d4a20ff..9a08889 --- a/src/Response/ArrayResponse.php +++ b/src/Response/ArrayResponse.php @@ -23,7 +23,7 @@ public function getBody(): ?array return null; } if (!isset($this->body)) { - /** @var null|array $body */ + /** @var array|null $body */ $body = json_decode($this->rawBody, true); $this->body = $body; } diff --git a/src/Response/EntityResponse.php b/src/Response/EntityResponse.php old mode 100644 new mode 100755 index 7b660df..7ca8b16 --- a/src/Response/EntityResponse.php +++ b/src/Response/EntityResponse.php @@ -37,7 +37,7 @@ protected function castBodyToEntity(): ?Entity return null; } - /** @var null|array $arrBody */ + /** @var array|null $arrBody */ $arrBody = json_decode($this->rawBody, true); if ($arrBody === null) { //cannot be processed - why? diff --git a/src/Response/RawResponse.php b/src/Response/RawResponse.php old mode 100644 new mode 100755 diff --git a/src/Response/ResponseInterface.php b/src/Response/ResponseInterface.php old mode 100644 new mode 100755 diff --git a/src/Sdk.php b/src/Sdk.php old mode 100644 new mode 100755 index 4ee4f8c..a9b0ac6 --- a/src/Sdk.php +++ b/src/Sdk.php @@ -11,6 +11,11 @@ use Shoptet\Api\Sdk\Php\Authorization\OAuth; use Shoptet\Api\Sdk\Php\Authorization\Token\FileTokenStorage; use Shoptet\Api\Sdk\Php\Authorization\Token\TokenStorage; +use Shoptet\Api\Sdk\Php\Endpoint\AlternativeProducts\AddAlternativeProduct; +use Shoptet\Api\Sdk\Php\Endpoint\AlternativeProducts\AddAlternativeProductRequest\AddAlternativeProductRequest; +use Shoptet\Api\Sdk\Php\Endpoint\AlternativeProducts\GetListOfProductAlternativeProducts; +use Shoptet\Api\Sdk\Php\Endpoint\AlternativeProducts\SetAlternativeProducts; +use Shoptet\Api\Sdk\Php\Endpoint\AlternativeProducts\SetAlternativeProductsRequest\SetAlternativeProductsRequest; use Shoptet\Api\Sdk\Php\Endpoint\Articles\CreateArticle; use Shoptet\Api\Sdk\Php\Endpoint\Articles\CreateArticleRequest\CreateArticleRequest; use Shoptet\Api\Sdk\Php\Endpoint\Articles\CreateArticleSection; @@ -35,6 +40,24 @@ use Shoptet\Api\Sdk\Php\Endpoint\Brands\GetListofBrands; use Shoptet\Api\Sdk\Php\Endpoint\Brands\UpdateBrand; use Shoptet\Api\Sdk\Php\Endpoint\Brands\UpdateBrandRequest\UpdateBrandRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Categories\CreateProductCategory; +use Shoptet\Api\Sdk\Php\Endpoint\Categories\CreateProductCategoryRequest\CreateProductCategoryRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Categories\DeleteProductCategory; +use Shoptet\Api\Sdk\Php\Endpoint\Categories\GetListOfProductCategories; +use Shoptet\Api\Sdk\Php\Endpoint\Categories\GetListOfProductsOrderInCategory; +use Shoptet\Api\Sdk\Php\Endpoint\Categories\GetProductCategoryDetail; +use Shoptet\Api\Sdk\Php\Endpoint\Categories\UpdateProductCategory; +use Shoptet\Api\Sdk\Php\Endpoint\Categories\UpdateProductCategoryBatch; +use Shoptet\Api\Sdk\Php\Endpoint\Categories\UpdateProductCategoryBatchRequest\UpdateProductCategoryBatchRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Categories\UpdateProductCategoryRequest\UpdateProductCategoryRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Categories\UpdateProductOrderInCategory; +use Shoptet\Api\Sdk\Php\Endpoint\Categories\UpdateProductOrderInCategoryRequest\UpdateProductOrderInCategoryRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ConsumptionTaxes\CreateConsumptionTax; +use Shoptet\Api\Sdk\Php\Endpoint\ConsumptionTaxes\CreateConsumptionTaxRequest\CreateConsumptionTaxRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ConsumptionTaxes\DeleteConsumptionTax; +use Shoptet\Api\Sdk\Php\Endpoint\ConsumptionTaxes\GetListOfConsumptionTaxes; +use Shoptet\Api\Sdk\Php\Endpoint\ConsumptionTaxes\UpdateConsumptionTax; +use Shoptet\Api\Sdk\Php\Endpoint\ConsumptionTaxes\UpdateConsumptionTaxRequest\UpdateConsumptionTaxRequest; use Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\CreateCreditNoteFromInvoice; use Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\CreateCreditNoteFromInvoiceRequest\CreateCreditNoteFromInvoiceRequest; use Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\CreateCreditNoteFromProofOfPayment; @@ -54,37 +77,37 @@ use Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\UpdateCreditNoteItem; use Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\UpdateCreditNoteItemRequest\UpdateCreditNoteItemRequest; use Shoptet\Api\Sdk\Php\Endpoint\CreditNotes\UpdateCreditNoteRequest\UpdateCreditNoteRequest; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\CreateCustomerAccount; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\CreateCustomerAccountRequest\CreateCustomerAccountRequest; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\DeleteCustomerAccount; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\GetDetailOfCustomerAccount; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\GetListOfCustomerAccounts; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\UpdateCustomerAccount; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerAccounts\UpdateCustomerAccountRequest\UpdateCustomerAccountRequest; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\CreateDeliveryAddress; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\CreateDeliveryAddressRequest\CreateDeliveryAddressRequest; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\DeleteCustomerDeliveryAddress; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\GeListOfCustomerDeliveryAddresses; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\GetDetailOfCustomerDeliveryAddress; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\UpdateCustomerDeliveryAddress; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerDeliveryAddresses\UpdateCustomerDeliveryAddressRequest\UpdateCustomerDeliveryAddressRequest; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\CreateCustomerRemark; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\CreateCustomerRemarkRequest\CreateCustomerRemarkRequest; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\DeleteCustomerRemark; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\GetDetailOfCustomerRemark; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\GetListOfCustomerRemarks; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\UpdateCustomerRemark; +use Shoptet\Api\Sdk\Php\Endpoint\CustomerRemarks\UpdateCustomerRemarkRequest\UpdateCustomerRemarkRequest; use Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomer; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomerAccount; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomerAccountRequest\CreateCustomerAccountRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomerRemark; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomerRemarkRequest\CreateCustomerRemarkRequest; use Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateCustomerRequest\CreateCustomerRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateDeliveryAddress; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\CreateDeliveryAddressRequest\CreateDeliveryAddressRequest; use Shoptet\Api\Sdk\Php\Endpoint\Customers\DeleteCustomer; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\DeleteCustomerAccount; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\DeleteCustomerDeliveryAddress; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\DeleteCustomerRemark; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\GeListOfCustomerDeliveryAddresses; use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetCustomerDetail; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetDetailOfCustomerAccount; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetDetailOfCustomerDeliveryAddress; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetDetailOfCustomerRemark; use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetLastCustomerChanges; use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfAllCustomers; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerAccounts; use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerGroups; use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerRegions; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomerRemarks; use Shoptet\Api\Sdk\Php\Endpoint\Customers\GetListOfCustomers; use Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomer; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerAccount; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerAccountRequest\UpdateCustomerAccountRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerDeliveryAddress; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerDeliveryAddressRequest\UpdateCustomerDeliveryAddressRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerRemark; -use Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerRemarkRequest\UpdateCustomerRemarkRequest; use Shoptet\Api\Sdk\Php\Endpoint\Customers\UpdateCustomerRequest\UpdateCustomerRequest; use Shoptet\Api\Sdk\Php\Endpoint\DeliveryNotes\DownloadDeliveryNoteAsPdf; use Shoptet\Api\Sdk\Php\Endpoint\DeliveryNotes\GetDetailOfDeliveryNote; @@ -107,7 +130,6 @@ use Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\UpdateDiscountCouponsUsage; use Shoptet\Api\Sdk\Php\Endpoint\DiscountCoupons\UpdateDiscountCouponsUsageRequest\UpdateDiscountCouponsUsageRequest; use Shoptet\Api\Sdk\Php\Endpoint\Discussions\GetListOfDiscussionPosts; -use Shoptet\Api\Sdk\Php\Endpoint\DocumentExport\GeneralDocumentDownload; use Shoptet\Api\Sdk\Php\Endpoint\EmailDistributionLists\CreateEmailDistributionList; use Shoptet\Api\Sdk\Php\Endpoint\EmailDistributionLists\CreateEmailDistributionListRequest\CreateEmailDistributionListRequest; use Shoptet\Api\Sdk\Php\Endpoint\EmailDistributionLists\CreateEmailsDistributionList; @@ -115,76 +137,116 @@ use Shoptet\Api\Sdk\Php\Endpoint\EmailDistributionLists\GetDetailOfEmailDistributionList; use Shoptet\Api\Sdk\Php\Endpoint\EmailDistributionLists\GetLastChangesInDistributionList; use Shoptet\Api\Sdk\Php\Endpoint\EmailDistributionLists\GetListingOfEmailDistributionLists; +use Shoptet\Api\Sdk\Php\Endpoint\Endpoints\GetListOfAvailableEndpoints; use Shoptet\Api\Sdk\Php\Endpoint\Eshop\GetEshopDesign; +use Shoptet\Api\Sdk\Php\Endpoint\Eshop\GetEshopDocumentSettings; use Shoptet\Api\Sdk\Php\Endpoint\Eshop\GetEshopInfo; use Shoptet\Api\Sdk\Php\Endpoint\Eshop\GetEshopMandatoryFields; +use Shoptet\Api\Sdk\Php\Endpoint\Exports\GeneralDocumentDownload; use Shoptet\Api\Sdk\Php\Endpoint\Files\GetListOfUploadedFiles; use Shoptet\Api\Sdk\Php\Endpoint\Files\UploadFile; use Shoptet\Api\Sdk\Php\Endpoint\Files\UploadFileRequest\UploadFileRequest; use Shoptet\Api\Sdk\Php\Endpoint\Files\UploadFiles; use Shoptet\Api\Sdk\Php\Endpoint\Files\UploadFilesRequest\UploadFilesRequest; +use Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\CreateFilteringParameter; +use Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\CreateFilteringParameterRequest\CreateFilteringParameterRequest; +use Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\CreateFilteringParameterValue; +use Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\CreateFilteringParameterValueRequest\CreateFilteringParameterValueRequest; +use Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\DeleteFilteringParameter; +use Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\DeleteFilteringParameterValue; +use Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\GetDetailOfFilteringParameter; +use Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\GetListOfFilteringParameters; +use Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\UpdateFilteringParameter; +use Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\UpdateFilteringParameterRequest\UpdateFilteringParameterRequest; +use Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\UpdateFilteringParameterValue; +use Shoptet\Api\Sdk\Php\Endpoint\FilteringParameters\UpdateFilteringParameterValueRequest\UpdateFilteringParameterValueRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Flags\CreateProductFlag; +use Shoptet\Api\Sdk\Php\Endpoint\Flags\CreateProductFlagRequest\CreateProductFlagRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Flags\DeleteProductFlag; +use Shoptet\Api\Sdk\Php\Endpoint\Flags\GetListOfProductsFlags; +use Shoptet\Api\Sdk\Php\Endpoint\Flags\UpdateProductFlag; +use Shoptet\Api\Sdk\Php\Endpoint\Flags\UpdateProductFlagRequest\UpdateProductFlagRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Gifts\GetOrderGiftSettings; +use Shoptet\Api\Sdk\Php\Endpoint\Gifts\UpdateOrderGiftSettings; +use Shoptet\Api\Sdk\Php\Endpoint\Gifts\UpdateOrderGiftSettingsRequest\UpdateOrderGiftSettingsRequest; use Shoptet\Api\Sdk\Php\Endpoint\Invoices\CreateInvoiceFromOrder; use Shoptet\Api\Sdk\Php\Endpoint\Invoices\CreateInvoiceFromOrderRequest\CreateInvoiceFromOrderRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Invoices\CreateInvoiceFromProformaInvoice; +use Shoptet\Api\Sdk\Php\Endpoint\Invoices\CreateInvoiceFromProformaInvoiceRequest\CreateInvoiceFromProformaInvoiceRequest; use Shoptet\Api\Sdk\Php\Endpoint\Invoices\DownloadInvoiceAsIsdoc; use Shoptet\Api\Sdk\Php\Endpoint\Invoices\DownloadInvoiceAsPdf; use Shoptet\Api\Sdk\Php\Endpoint\Invoices\GetInvoiceDetail; use Shoptet\Api\Sdk\Php\Endpoint\Invoices\GetLastInvoiceChanges; use Shoptet\Api\Sdk\Php\Endpoint\Invoices\GetListOfAllInvoices; use Shoptet\Api\Sdk\Php\Endpoint\Invoices\GetListOfInvoices; +use Shoptet\Api\Sdk\Php\Endpoint\Invoices\InvoiceLinkProformaInvoices; +use Shoptet\Api\Sdk\Php\Endpoint\Invoices\InvoiceLinkProformaInvoicesRequest\InvoiceLinkProformaInvoicesRequest; use Shoptet\Api\Sdk\Php\Endpoint\Invoices\InvoiceLinkProofPayments; use Shoptet\Api\Sdk\Php\Endpoint\Invoices\InvoiceLinkProofPaymentsRequest\InvoiceLinkProofPaymentsRequest; -use Shoptet\Api\Sdk\Php\Endpoint\JobEndpoints\GetJobDetail; -use Shoptet\Api\Sdk\Php\Endpoint\JobEndpoints\GetJobDetailResponse\GetJobDetailResponse; -use Shoptet\Api\Sdk\Php\Endpoint\JobEndpoints\GetListOfJobs; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\AddOrderGift; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\AddOrderGiftRequest\AddOrderGiftRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\AddOrderShipping; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\AddOrderShippingRequest\AddOrderShippingRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Jobs\GetJobDetail; +use Shoptet\Api\Sdk\Php\Endpoint\Jobs\GetJobDetailResponse\GetJobDetailResponse; +use Shoptet\Api\Sdk\Php\Endpoint\Jobs\GetListOfJobs; +use Shoptet\Api\Sdk\Php\Endpoint\MeasureUnits\GetListOfProductsMeasureUnits; +use Shoptet\Api\Sdk\Php\Endpoint\OrderGifts\AddOrderGift; +use Shoptet\Api\Sdk\Php\Endpoint\OrderGifts\AddOrderGiftRequest\AddOrderGiftRequest; +use Shoptet\Api\Sdk\Php\Endpoint\OrderGifts\DeleteOrderGift; +use Shoptet\Api\Sdk\Php\Endpoint\OrderGifts\GetOrderGiftsList; +use Shoptet\Api\Sdk\Php\Endpoint\OrderHistory\CreateOrderRemark; +use Shoptet\Api\Sdk\Php\Endpoint\OrderHistory\CreateOrderRemarkRequest\CreateOrderRemarkRequest; +use Shoptet\Api\Sdk\Php\Endpoint\OrderHistory\DeleteOrderHistoryItem; +use Shoptet\Api\Sdk\Php\Endpoint\OrderHistory\GetListOfAllRemarks; +use Shoptet\Api\Sdk\Php\Endpoint\OrderHistory\GetListOfRemarksForOrder; +use Shoptet\Api\Sdk\Php\Endpoint\OrderItems\CreateOrderItem; +use Shoptet\Api\Sdk\Php\Endpoint\OrderItems\CreateOrderItemRequest\CreateOrderItemRequest; +use Shoptet\Api\Sdk\Php\Endpoint\OrderItems\CreateOrderItemSurchargeParameters; +use Shoptet\Api\Sdk\Php\Endpoint\OrderItems\CreateOrderItemSurchargeParametersRequest\CreateOrderItemSurchargeParametersRequest; +use Shoptet\Api\Sdk\Php\Endpoint\OrderItems\DeleteOrderItem; +use Shoptet\Api\Sdk\Php\Endpoint\OrderItems\DeleteOrderItemSurchargeParameters; +use Shoptet\Api\Sdk\Php\Endpoint\OrderItems\UpdateOrderItem; +use Shoptet\Api\Sdk\Php\Endpoint\OrderItems\UpdateOrderItemRequest\UpdateOrderItemRequest; +use Shoptet\Api\Sdk\Php\Endpoint\OrderPayment\CreateOrderPayment; +use Shoptet\Api\Sdk\Php\Endpoint\OrderPayment\CreateOrderPaymentRequest\CreateOrderPaymentRequest; +use Shoptet\Api\Sdk\Php\Endpoint\OrderPayment\UpdateOrderPayment; +use Shoptet\Api\Sdk\Php\Endpoint\OrderPayment\UpdateOrderPaymentRequest\UpdateOrderPaymentRequest; +use Shoptet\Api\Sdk\Php\Endpoint\OrderShipping\AddOrderShipping; +use Shoptet\Api\Sdk\Php\Endpoint\OrderShipping\AddOrderShippingRequest\AddOrderShippingRequest; +use Shoptet\Api\Sdk\Php\Endpoint\OrderShipping\UpdateOrderShipping; +use Shoptet\Api\Sdk\Php\Endpoint\OrderShipping\UpdateOrderShippingRequest\UpdateOrderShippingRequest; use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrder; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderItem; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderItemRequest\CreateOrderItemRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderItemSurchargeParameters; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderItemSurchargeParametersRequest\CreateOrderItemSurchargeParametersRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderPayment; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderPaymentRequest\CreateOrderPaymentRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderRemark; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderRemarkRequest\CreateOrderRemarkRequest; use Shoptet\Api\Sdk\Php\Endpoint\Orders\CreateOrderRequest\CreateOrderRequest; use Shoptet\Api\Sdk\Php\Endpoint\Orders\DeleteOrder; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\DeleteOrderGift; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\DeleteOrderHistoryItem; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\DeleteOrderItem; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\DeleteOrderItemSurchargeParameters; use Shoptet\Api\Sdk\Php\Endpoint\Orders\DownloadOrderAsPdf; use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetLastOrderChanges; use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfAllOrders; use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfOrderSources; use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfOrderStatuses; use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfOrders; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetListOfRemarksForOrder; +use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetOrderClaims; use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetOrderDetail; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetOrderGiftSettings; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\GetOrderGiftsList; use Shoptet\Api\Sdk\Php\Endpoint\Orders\OrderBatchInsertion; use Shoptet\Api\Sdk\Php\Endpoint\Orders\OrderBatchInsertionRequest\OrderBatchInsertionRequest; use Shoptet\Api\Sdk\Php\Endpoint\Orders\OrderCopy; use Shoptet\Api\Sdk\Php\Endpoint\Orders\OrderCopyRequest\OrderCopyRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderGiftSettings; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderGiftSettingsRequest\UpdateOrderGiftSettingsRequest; use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderHead; use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderHeadRequest\UpdateOrderHeadRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderItem; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderItemRequest\UpdateOrderItemRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderPayment; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderPaymentRequest\UpdateOrderPaymentRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderShipping; -use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderShippingRequest\UpdateOrderShippingRequest; use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderStatus; use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateOrderStatusRequest\UpdateOrderStatusRequest; use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateRemarksForOrder; use Shoptet\Api\Sdk\Php\Endpoint\Orders\UpdateRemarksForOrderRequest\UpdateRemarksForOrderRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Pages\CreatePage; +use Shoptet\Api\Sdk\Php\Endpoint\Pages\CreatePageRequest\CreatePageRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Pages\DeletePage; use Shoptet\Api\Sdk\Php\Endpoint\Pages\GetDetailOfPage; use Shoptet\Api\Sdk\Php\Endpoint\Pages\GetListOfPages; +use Shoptet\Api\Sdk\Php\Endpoint\Pages\UpdatePage; +use Shoptet\Api\Sdk\Php\Endpoint\Pages\UpdatePageRequest\UpdatePageRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ParametricCategories\CreateParametricCategory; +use Shoptet\Api\Sdk\Php\Endpoint\ParametricCategories\CreateParametricCategoryRequest\CreateParametricCategoryRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ParametricCategories\DeleteParametricCategory; +use Shoptet\Api\Sdk\Php\Endpoint\ParametricCategories\GetListOfParametricCategories; +use Shoptet\Api\Sdk\Php\Endpoint\ParametricCategories\GetParametricCategoryDetail; +use Shoptet\Api\Sdk\Php\Endpoint\ParametricCategories\UpdateParametricCategory; +use Shoptet\Api\Sdk\Php\Endpoint\ParametricCategories\UpdateParametricCategoryRequest\UpdateParametricCategoryRequest; use Shoptet\Api\Sdk\Php\Endpoint\PaymentGateways\GetInformationAboutPayment; use Shoptet\Api\Sdk\Php\Endpoint\PaymentGateways\UpdatePaymentStatus; use Shoptet\Api\Sdk\Php\Endpoint\PaymentGateways\UpdatePaymentStatusRequest\UpdatePaymentStatusRequest; @@ -200,130 +262,66 @@ use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\GetPricelistDetail; use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelist; use Shoptet\Api\Sdk\Php\Endpoint\PriceLists\UpdatePricelistRequest\UpdatePricelistRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\AddAlternativeProduct; -use Shoptet\Api\Sdk\Php\Endpoint\Products\AddAlternativeProductRequest\AddAlternativeProductRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\AddItemToProductSet; -use Shoptet\Api\Sdk\Php\Endpoint\Products\AddItemToProductSetRequest\AddItemToProductSetRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\AddRelatedProduct; -use Shoptet\Api\Sdk\Php\Endpoint\Products\AddRelatedProductRequest\AddRelatedProductRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateConsumptionTax; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateConsumptionTaxRequest\CreateConsumptionTaxRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateFilteringParameter; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateFilteringParameterRequest\CreateFilteringParameterRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateFilteringParameterValue; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateFilteringParameterValueRequest\CreateFilteringParameterValueRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ProductAvailabilities\CreateProductAvailability; +use Shoptet\Api\Sdk\Php\Endpoint\ProductAvailabilities\CreateProductAvailabilityRequest\CreateProductAvailabilityRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ProductAvailabilities\DeleteProductAvailability; +use Shoptet\Api\Sdk\Php\Endpoint\ProductAvailabilities\GetListOfProductsAvailabilities; +use Shoptet\Api\Sdk\Php\Endpoint\ProductAvailabilities\UpdateProductAvailability; +use Shoptet\Api\Sdk\Php\Endpoint\ProductAvailabilities\UpdateProductAvailabilityRequest\UpdateProductAvailabilityRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ProductGifts\CreateProductGift; +use Shoptet\Api\Sdk\Php\Endpoint\ProductGifts\CreateProductGiftRequest\CreateProductGiftRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ProductGifts\GetListOfProductGifts; +use Shoptet\Api\Sdk\Php\Endpoint\ProductGifts\SteGiftsToProduct; +use Shoptet\Api\Sdk\Php\Endpoint\ProductGifts\SteGiftsToProductRequest\SteGiftsToProductRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ProductImages\CreateProductImages; +use Shoptet\Api\Sdk\Php\Endpoint\ProductImages\CreateProductImagesRequest\CreateProductImagesRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ProductImages\DeleteAllProductImagesInGallery; +use Shoptet\Api\Sdk\Php\Endpoint\ProductImages\DeleteOneProductImage; +use Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetListOfProductImages; +use Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetProductImagesUpdate; +use Shoptet\Api\Sdk\Php\Endpoint\ProductImages\GetProductImagesUpdateRequest\GetProductImagesUpdateRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ProductImages\UpdateProductImagesSource; +use Shoptet\Api\Sdk\Php\Endpoint\ProductImages\UpdateProductImagesSourceRequest\UpdateProductImagesSourceRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ProductRelatedFiles\CreateRelatedFileLink; +use Shoptet\Api\Sdk\Php\Endpoint\ProductRelatedFiles\CreateRelatedFileLinkRequest\CreateRelatedFileLinkRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ProductRelatedFiles\DeleteOneProductRelatedFile; +use Shoptet\Api\Sdk\Php\Endpoint\ProductSets\AddItemToProductSet; +use Shoptet\Api\Sdk\Php\Endpoint\ProductSets\AddItemToProductSetRequest\AddItemToProductSetRequest; +use Shoptet\Api\Sdk\Php\Endpoint\ProductSets\SetProductSetItems; +use Shoptet\Api\Sdk\Php\Endpoint\ProductSets\SetProductSetItemsRequest\SetProductSetItemsRequest; use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProduct; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductCategory; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductCategoryRequest\CreateProductCategoryRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductFlag; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductFlagRequest\CreateProductFlagRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductGift; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductGiftRequest\CreateProductGiftRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductImages; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductImagesRequest\CreateProductImagesRequest; use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateProductRequest\CreateProductRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateSurchargeParameter; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateSurchargeParameterRequest\CreateSurchargeParameterRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateSurchargeParameterValue; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateSurchargeParameterValueRequest\CreateSurchargeParameterValueRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateVariantParameter; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateVariantParameterRequest\CreateVariantParameterRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateVariantParameterValue; -use Shoptet\Api\Sdk\Php\Endpoint\Products\CreateVariantParameterValueRequest\CreateVariantParameterValueRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteAllProductImagesInGallery; -use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteConsumptionTax; -use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteFilteringParameter; -use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteFilteringParameterValue; -use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteOneProductImage; use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteProduct; -use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteProductCategory; -use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteProductFlag; use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteProductVariant; -use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteSurchargeParameterByIndex; -use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteSurchargeParameterValue; -use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteVariantParameter; -use Shoptet\Api\Sdk\Php\Endpoint\Products\DeleteVariantParameterValue; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetDetailOfFilteringParameter; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetDetailOfSurchargeParameter; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetDetailOfVariantParameter; use Shoptet\Api\Sdk\Php\Endpoint\Products\GetLastProductChanges; use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfAllProducts; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfConsumptionTaxes; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfFilteringParameters; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfParametricCategories; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductAlternativeProducts; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductCategories; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductGifts; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductImages; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductRelatedProducts; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductUnits; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductWarranties; +use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfAllProductsAndPricelistPrices; use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProducts; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsAvailabilities; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsFlags; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsMeasureUnits; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsOrderInCategory; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfProductsReviews; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfRecyclingFeeCategories; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfSurchargeParameters; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetListOfVariantParameters; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetParametricCategoryDetail; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetProductCategoryDetail; use Shoptet\Api\Sdk\Php\Endpoint\Products\GetProductDetail; use Shoptet\Api\Sdk\Php\Endpoint\Products\GetProductDetailByCode; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetProductImagesUpdate; -use Shoptet\Api\Sdk\Php\Endpoint\Products\GetProductImagesUpdateRequest\GetProductImagesUpdateRequest; use Shoptet\Api\Sdk\Php\Endpoint\Products\ProductBatchUpdate; use Shoptet\Api\Sdk\Php\Endpoint\Products\ProductBatchUpdateRequest\ProductBatchUpdateRequest; use Shoptet\Api\Sdk\Php\Endpoint\Products\ProductCopy; use Shoptet\Api\Sdk\Php\Endpoint\Products\ProductCopyRequest\ProductCopyRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\SetAlternativeProducts; -use Shoptet\Api\Sdk\Php\Endpoint\Products\SetAlternativeProductsRequest\SetAlternativeProductsRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\SetProductSetItems; -use Shoptet\Api\Sdk\Php\Endpoint\Products\SetProductSetItemsRequest\SetProductSetItemsRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\SetRelatedProducts; -use Shoptet\Api\Sdk\Php\Endpoint\Products\SetRelatedProductsRequest\SetRelatedProductsRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\SteGiftsToProduct; -use Shoptet\Api\Sdk\Php\Endpoint\Products\SteGiftsToProductRequest\SteGiftsToProductRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateConsumptionTax; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateConsumptionTaxRequest\UpdateConsumptionTaxRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateFilteringParameter; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateFilteringParameterRequest\UpdateFilteringParameterRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateFilteringParameterValue; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateFilteringParameterValueRequest\UpdateFilteringParameterValueRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Products\UnlinkAllProductRelatedFiles; use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProduct; use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductByCode; use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductByCodeRequest\UpdateProductByCodeRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductCategory; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductCategoryBatch; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductCategoryBatchRequest\UpdateProductCategoryBatchRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductCategoryRequest\UpdateProductCategoryRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductFlag; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductFlagRequest\UpdateProductFlagRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductImagesSource; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductImagesSourceRequest\UpdateProductImagesSourceRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductOrderInCategory; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductOrderInCategoryRequest\UpdateProductOrderInCategoryRequest; use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateProductRequest\UpdateProductRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateSurchargeParameter; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateSurchargeParameterRequest\UpdateSurchargeParameterRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateSurchargeParameterValue; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateSurchargeParameterValueRequest\UpdateSurchargeParameterValueRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateVariantParameter; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateVariantParameterRequest\UpdateVariantParameterRequest; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateVariantParameterValue; -use Shoptet\Api\Sdk\Php\Endpoint\Products\UpdateVariantParameterValueRequest\UpdateVariantParameterValueRequest; use Shoptet\Api\Sdk\Php\Endpoint\ProformaInvoices\DownloadProformaInvoicePdf; use Shoptet\Api\Sdk\Php\Endpoint\ProformaInvoices\GetLastProformaInvoiceChanges; use Shoptet\Api\Sdk\Php\Endpoint\ProformaInvoices\GetListOfAllProformaInvoices; use Shoptet\Api\Sdk\Php\Endpoint\ProformaInvoices\GetListOfProformaInvoices; use Shoptet\Api\Sdk\Php\Endpoint\ProformaInvoices\GetProformaInvoiceDetail; +use Shoptet\Api\Sdk\Php\Endpoint\Project\GetProjectDomainList; +use Shoptet\Api\Sdk\Php\Endpoint\Project\GetProjectSalesChannels; use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\CreateProofPayment; use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\CreateProofPaymentByOrderCode; use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\CreateProofPaymentByProformaInvoiceCode; use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\CreateProofPaymentRequest\CreateProofPaymentRequest; use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\DeleteProofPayment; use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\DownloadProofOfPaymentPdf; +use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\DownloadProofPaymentAsIsdoc; use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\GetLastProofPaymentsChanges; use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\GetListOfAllProofPayments; use Shoptet\Api\Sdk\Php\Endpoint\ProofPayments\GetListOfProofPayments; @@ -342,6 +340,14 @@ use Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\GetListOfQuantityDiscounts; use Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\UpdateQuantityDiscount; use Shoptet\Api\Sdk\Php\Endpoint\QuantityDiscounts\UpdateQuantityDiscountRequest\UpdateQuantityDiscountRequest; +use Shoptet\Api\Sdk\Php\Endpoint\RecyclingFees\GetListOfRecyclingFeeCategories; +use Shoptet\Api\Sdk\Php\Endpoint\RelatedProducts\AddRelatedProduct; +use Shoptet\Api\Sdk\Php\Endpoint\RelatedProducts\AddRelatedProductRequest\AddRelatedProductRequest; +use Shoptet\Api\Sdk\Php\Endpoint\RelatedProducts\GetListOfProductRelatedProducts; +use Shoptet\Api\Sdk\Php\Endpoint\RelatedProducts\SetRelatedProducts; +use Shoptet\Api\Sdk\Php\Endpoint\RelatedProducts\SetRelatedProductsRequest\SetRelatedProductsRequest; +use Shoptet\Api\Sdk\Php\Endpoint\Reviews\GetListOfEshopReviews; +use Shoptet\Api\Sdk\Php\Endpoint\Reviews\GetListOfProductsReviews; use Shoptet\Api\Sdk\Php\Endpoint\ShippingMethods\CreateShippingMethod; use Shoptet\Api\Sdk\Php\Endpoint\ShippingMethods\CreateShippingMethodRequest\CreateShippingMethodRequest; use Shoptet\Api\Sdk\Php\Endpoint\ShippingMethods\GetListOfShippingMethods; @@ -357,14 +363,40 @@ use Shoptet\Api\Sdk\Php\Endpoint\Stocks\UpdateQuantityInStock; use Shoptet\Api\Sdk\Php\Endpoint\Stocks\UpdateQuantityInStockRequest\UpdateQuantityInStockRequest; use Shoptet\Api\Sdk\Php\Endpoint\Suppliers\GetListOfSuppliers; -use Shoptet\Api\Sdk\Php\Endpoint\SystemEndpoints\GetListOfAvailableEndpoints; +use Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\CreateSurchargeParameter; +use Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\CreateSurchargeParameterRequest\CreateSurchargeParameterRequest; +use Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\CreateSurchargeParameterValue; +use Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\CreateSurchargeParameterValueRequest\CreateSurchargeParameterValueRequest; +use Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\DeleteSurchargeParameterByIndex; +use Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\DeleteSurchargeParameterValue; +use Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\GetDetailOfSurchargeParameter; +use Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\GetListOfSurchargeParameters; +use Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\UpdateSurchargeParameter; +use Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\UpdateSurchargeParameterRequest\UpdateSurchargeParameterRequest; +use Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\UpdateSurchargeParameterValue; +use Shoptet\Api\Sdk\Php\Endpoint\SurchargeParameters\UpdateSurchargeParameterValueRequest\UpdateSurchargeParameterValueRequest; use Shoptet\Api\Sdk\Php\Endpoint\Templates\CreateAndEditHtmlCodes; use Shoptet\Api\Sdk\Php\Endpoint\Templates\CreateAndEditHtmlCodesRequest\CreateAndEditHtmlCodesRequest; use Shoptet\Api\Sdk\Php\Endpoint\Templates\DeleteHtmlCode; use Shoptet\Api\Sdk\Php\Endpoint\Templates\GetListingOfHtmlCodes; +use Shoptet\Api\Sdk\Php\Endpoint\Units\GetListOfProductUnits; use Shoptet\Api\Sdk\Php\Endpoint\UnsubscribedEmails\CreateUnsubscribedEmail; use Shoptet\Api\Sdk\Php\Endpoint\UnsubscribedEmails\CreateUnsubscribedEmailRequest\CreateUnsubscribedEmailRequest; use Shoptet\Api\Sdk\Php\Endpoint\UnsubscribedEmails\GetListingOfUnsubscribedEmails; +use Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\CreateVariantParameter; +use Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\CreateVariantParameterRequest\CreateVariantParameterRequest; +use Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\CreateVariantParameterValue; +use Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\CreateVariantParameterValueRequest\CreateVariantParameterValueRequest; +use Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\DeleteVariantParameter; +use Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\DeleteVariantParameterValue; +use Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\GetDetailOfVariantParameter; +use Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\GetListOfVariantParameters; +use Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\UpdateVariantParameter; +use Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\UpdateVariantParameterRequest\UpdateVariantParameterRequest; +use Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\UpdateVariantParameterValue; +use Shoptet\Api\Sdk\Php\Endpoint\VariantParameters\UpdateVariantParameterValueRequest\UpdateVariantParameterValueRequest; +use Shoptet\Api\Sdk\Php\Endpoint\VolumeDiscounts\GetListOfVolumeDiscounts; +use Shoptet\Api\Sdk\Php\Endpoint\Warranties\GetListOfProductWarranties; use Shoptet\Api\Sdk\Php\Endpoint\Webhooks\DeleteRegisteredWebhook; use Shoptet\Api\Sdk\Php\Endpoint\Webhooks\GenerateWebhookSignatureKey; use Shoptet\Api\Sdk\Php\Endpoint\Webhooks\GetDetailOfRegisteredWebhooks; @@ -517,7 +549,7 @@ public static function setLogger(LoggerInterface $logger): void * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Eshop/geteshopinfo + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Eshop/geteshopinfo */ public static function getEshopInfo(array $queryParams = []): ResponseInterface { @@ -537,7 +569,7 @@ public static function getEshopInfo(array $queryParams = []): ResponseInterface * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Eshop/geteshopdesign + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Eshop/geteshopdesign */ public static function getEshopDesign(array $queryParams = []): ResponseInterface { @@ -557,7 +589,27 @@ public static function getEshopDesign(array $queryParams = []): ResponseInterfac * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Eshop/geteshopmandatoryfields + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Eshop/geteshopdocumentsettings + */ + public static function getEshopDocumentSettings(array $queryParams = []): ResponseInterface + { + return self::getEndpointFactory() + ->createEndpoint(GetEshopDocumentSettings::class) + ->setQueryParams($queryParams) + ->execute(); + } + + /** + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Eshop/geteshopmandatoryfields */ public static function getEshopMandatoryFields(array $queryParams = []): ResponseInterface { @@ -572,6 +624,30 @@ public static function getEshopMandatoryFields(array $queryParams = []): Respons * language?: string, * page?: int, * itemsPerPage?: int, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Reviews/getlistofeshopreviews + */ + public static function getListOfEshopReviews(array $queryParams = []): ResponseInterface + { + return self::getEndpointFactory() + ->createEndpoint(GetListOfEshopReviews::class) + ->setQueryParams($queryParams) + ->execute(); + } + + /** + * @param array{ + * language?: string, + * page?: int, + * itemsPerPage?: int, + * availabilityId?: string, + * availabilityWhenSoldOutId?: string, * creationTimeFrom?: string, * creationTimeTo?: string, * visibility?: string, @@ -582,6 +658,8 @@ public static function getEshopMandatoryFields(array $queryParams = []): Respons * categoryGuid?: string, * flag?: string, * include?: string, + * productCodes?: string, + * productGuids?: string, * supplierGuid?: string, * changeTimeFrom?: string, * changeTimeTo?: string, @@ -592,7 +670,7 @@ public static function getEshopMandatoryFields(array $queryParams = []): Respons * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproducts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/getlistofproducts */ public static function getListOfProducts(array $queryParams = []): ResponseInterface { @@ -615,7 +693,7 @@ public static function getListOfProducts(array $queryParams = []): ResponseInter * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/createproduct + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/createproduct */ public static function createProduct( array|CreateProductRequest $requestBody, @@ -641,7 +719,7 @@ public static function createProduct( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/productcopy + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/productcopy */ public static function productCopy( string $guid, @@ -660,6 +738,10 @@ public static function productCopy( * @param array{ * language?: string, * include?: string, + * productCodes?: string, + * productGuids?: string, + * availabilityId?: string, + * availabilityWhenSoldOutId?: string, * creationTimeFrom?: string, * creationTimeTo?: string, * visibility?: string, @@ -679,7 +761,7 @@ public static function productCopy( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofallproducts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/getlistofallproducts */ public static function getListOfAllProducts(array $queryParams = []): ResponseInterface { @@ -689,6 +771,26 @@ public static function getListOfAllProducts(array $queryParams = []): ResponseIn ->execute(); } + /** + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/getlistofallproductsandpricelistprices + */ + public static function getListOfAllProductsAndPricelistPrices(array $queryParams = []): ResponseInterface + { + return self::getEndpointFactory() + ->createEndpoint(GetListOfAllProductsAndPricelistPrices::class) + ->setQueryParams($queryParams) + ->execute(); + } + /** * @param string $guid [93bc0dbe-7481-11e8-8216-002590dad85e] Product guid * @param array{ @@ -701,7 +803,7 @@ public static function getListOfAllProducts(array $queryParams = []): ResponseIn * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getproductdetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/getproductdetail */ public static function getProductDetail(string $guid, array $queryParams = []): ResponseInterface { @@ -726,7 +828,7 @@ public static function getProductDetail(string $guid, array $queryParams = []): * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updateproduct + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/updateproduct */ public static function updateProduct( string $guid, @@ -752,7 +854,7 @@ public static function updateProduct( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/deleteproduct + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/deleteproduct */ public static function deleteProduct(string $guid, array $queryParams = []): ResponseInterface { @@ -775,7 +877,7 @@ public static function deleteProduct(string $guid, array $queryParams = []): Res * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/productbatchupdate + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/productbatchupdate */ public static function productBatchUpdate( array|ProductBatchUpdateRequest $requestBody, @@ -800,7 +902,7 @@ public static function productBatchUpdate( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getproductdetailbycode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/getproductdetailbycode */ public static function getProductDetailByCode(string $code, array $queryParams = []): ResponseInterface { @@ -825,7 +927,7 @@ public static function getProductDetailByCode(string $code, array $queryParams = * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updateproductbycode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/updateproductbycode */ public static function updateProductByCode( string $code, @@ -851,7 +953,7 @@ public static function updateProductByCode( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/deleteproductvariant + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/deleteproductvariant */ public static function deleteProductVariant(string $code, array $queryParams = []): ResponseInterface { @@ -874,7 +976,7 @@ public static function deleteProductVariant(string $code, array $queryParams = [ * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproductimages + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-images/getlistofproductimages */ public static function getListOfProductImages( string $guid, @@ -902,7 +1004,7 @@ public static function getListOfProductImages( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/deleteallproductimagesingallery + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-images/deleteallproductimagesingallery */ public static function deleteAllProductImagesInGallery( string $guid, @@ -931,7 +1033,7 @@ public static function deleteAllProductImagesInGallery( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/getproductimagesupdate + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-images/getproductimagesupdate */ public static function getProductImagesUpdate( string $guid, @@ -962,7 +1064,7 @@ public static function getProductImagesUpdate( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/createproductimages + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-images/createproductimages */ public static function createProductImages( string $guid, @@ -993,7 +1095,7 @@ public static function createProductImages( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updateproductimagessource + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-images/updateproductimagessource */ public static function updateProductImagesSource( string $guid, @@ -1024,7 +1126,7 @@ public static function updateProductImagesSource( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/deleteoneproductimage + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-images/deleteoneproductimage */ public static function deleteOneProductImage( string $guid, @@ -1041,6 +1143,83 @@ public static function deleteOneProductImage( ->execute(); } + /** + * @param string $guid [93bc0dbe-7481-11e8-8216-002590dad85e] Product guid + * @param array|CreateRelatedFileLinkRequest $requestBody + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * @throws ReflectionException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-related-files/createrelatedfilelink + */ + public static function createRelatedFileLink( + string $guid, + array|CreateRelatedFileLinkRequest $requestBody, + array $queryParams = [], + ): ResponseInterface { + return self::getEndpointFactory() + ->createEndpoint(CreateRelatedFileLink::class) + ->addPathParam('guid', $guid) + ->setBody($requestBody) + ->setQueryParams($queryParams) + ->execute(); + } + + /** + * @param string $guid [93bc0dbe-7481-11e8-8216-002590dad85e] Product guid + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/unlinkallproductrelatedfiles + */ + public static function unlinkAllProductRelatedFiles(string $guid, array $queryParams = []): ResponseInterface + { + return self::getEndpointFactory() + ->createEndpoint(UnlinkAllProductRelatedFiles::class) + ->addPathParam('guid', $guid) + ->setQueryParams($queryParams) + ->execute(); + } + + /** + * @param string $guid [92d77e60-7481-11e8-8216-002590dad85e] Product's guid + * @param string $id [232] Related file id + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-related-files/deleteoneproductrelatedfile + */ + public static function deleteOneProductRelatedFile( + string $guid, + string $id, + array $queryParams = [], + ): ResponseInterface { + return self::getEndpointFactory() + ->createEndpoint(DeleteOneProductRelatedFile::class) + ->addPathParam('guid', $guid) + ->addPathParam('id', $id) + ->setQueryParams($queryParams) + ->execute(); + } + /** * @param array{ * language?: string, @@ -1055,7 +1234,7 @@ public static function deleteOneProductImage( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlastproductchanges + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Products/getlastproductchanges */ public static function getLastProductChanges(array $queryParams): ResponseInterface { @@ -1077,7 +1256,7 @@ public static function getLastProductChanges(array $queryParams): ResponseInterf * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproductcategories + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/getlistofproductcategories */ public static function getListOfProductCategories(array $queryParams = []): ResponseInterface { @@ -1099,7 +1278,7 @@ public static function getListOfProductCategories(array $queryParams = []): Resp * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/createproductcategory + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/createproductcategory */ public static function createProductCategory( array|CreateProductCategoryRequest $requestBody, @@ -1123,7 +1302,7 @@ public static function createProductCategory( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getproductcategorydetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/getproductcategorydetail */ public static function getProductCategoryDetail(string $categoryGuid, array $queryParams = []): ResponseInterface { @@ -1147,7 +1326,7 @@ public static function getProductCategoryDetail(string $categoryGuid, array $que * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updateproductcategory + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/updateproductcategory */ public static function updateProductCategory( string $categoryGuid, @@ -1175,7 +1354,7 @@ public static function updateProductCategory( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/deleteproductcategory + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/deleteproductcategory */ public static function deleteProductCategory(string $categoryGuid, array $queryParams = []): ResponseInterface { @@ -1198,7 +1377,7 @@ public static function deleteProductCategory(string $categoryGuid, array $queryP * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updateproductcategorybatch + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/updateproductcategorybatch */ public static function updateProductCategoryBatch( array|UpdateProductCategoryBatchRequest $requestBody, @@ -1224,7 +1403,7 @@ public static function updateProductCategoryBatch( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproductsorderincategory + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/getlistofproductsorderincategory */ public static function getListOfProductsOrderInCategory( string $categoryGuid, @@ -1250,7 +1429,7 @@ public static function getListOfProductsOrderInCategory( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updateproductorderincategory + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Categories/updateproductorderincategory */ public static function updateProductOrderInCategory( string $categoryGuid, @@ -1278,7 +1457,7 @@ public static function updateProductOrderInCategory( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofparametriccategories + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Parametric-categories/getlistofparametriccategories */ public static function getListOfParametricCategories(array $queryParams = []): ResponseInterface { @@ -1288,6 +1467,32 @@ public static function getListOfParametricCategories(array $queryParams = []): R ->execute(); } + /** + * @param array|CreateParametricCategoryRequest $requestBody + * @param array{ + * language?: string, + * include?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * @throws ReflectionException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Parametric-categories/createparametriccategory + */ + public static function createParametricCategory( + array|CreateParametricCategoryRequest $requestBody, + array $queryParams = [], + ): ResponseInterface { + return self::getEndpointFactory() + ->createEndpoint(CreateParametricCategory::class) + ->setBody($requestBody) + ->setQueryParams($queryParams) + ->execute(); + } + /** * @param string $categoryGuid [5c498fb7-70ac-11e9-9208-08002774f818] Guid of parametric category. * @param array{ @@ -1299,7 +1504,7 @@ public static function getListOfParametricCategories(array $queryParams = []): R * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getparametriccategorydetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Parametric-categories/getparametriccategorydetail */ public static function getParametricCategoryDetail( string $categoryGuid, @@ -1312,6 +1517,56 @@ public static function getParametricCategoryDetail( ->execute(); } + /** + * @param string $categoryGuid [5c498fb7-70ac-11e9-9208-08002774f818] Guid of parametric category. + * @param array|UpdateParametricCategoryRequest $requestBody + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * @throws ReflectionException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Parametric-categories/updateparametriccategory + */ + public static function updateParametricCategory( + string $categoryGuid, + array|UpdateParametricCategoryRequest $requestBody, + array $queryParams = [], + ): ResponseInterface { + return self::getEndpointFactory() + ->createEndpoint(UpdateParametricCategory::class) + ->addPathParam('categoryGuid', $categoryGuid) + ->setBody($requestBody) + ->setQueryParams($queryParams) + ->execute(); + } + + /** + * @param string $categoryGuid [5c498fb7-70ac-11e9-9208-08002774f818] Guid of parametric category. + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Parametric-categories/deleteparametriccategory + */ + public static function deleteParametricCategory(string $categoryGuid, array $queryParams = []): ResponseInterface + { + return self::getEndpointFactory() + ->createEndpoint(DeleteParametricCategory::class) + ->addPathParam('categoryGuid', $categoryGuid) + ->setQueryParams($queryParams) + ->execute(); + } + /** * @param array{ * language?: string, @@ -1322,7 +1577,7 @@ public static function getParametricCategoryDetail( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproductsflags + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Flags/getlistofproductsflags */ public static function getListOfProductsFlags(array $queryParams = []): ResponseInterface { @@ -1344,7 +1599,7 @@ public static function getListOfProductsFlags(array $queryParams = []): Response * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/createproductflag + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Flags/createproductflag */ public static function createProductFlag( array|CreateProductFlagRequest $requestBody, @@ -1370,7 +1625,7 @@ public static function createProductFlag( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updateproductflag + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Flags/updateproductflag */ public static function updateProductFlag( string $code, @@ -1396,7 +1651,7 @@ public static function updateProductFlag( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/deleteproductflag + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Flags/deleteproductflag */ public static function deleteProductFlag(string $code, array $queryParams = []): ResponseInterface { @@ -1417,7 +1672,7 @@ public static function deleteProductFlag(string $code, array $queryParams = []): * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproductsmeasureunits + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Measure-units/getlistofproductsmeasureunits */ public static function getListOfProductsMeasureUnits(array $queryParams = []): ResponseInterface { @@ -1437,7 +1692,7 @@ public static function getListOfProductsMeasureUnits(array $queryParams = []): R * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproductsavailabilities + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-availabilities/getlistofproductsavailabilities */ public static function getListOfProductsAvailabilities(array $queryParams = []): ResponseInterface { @@ -1447,6 +1702,81 @@ public static function getListOfProductsAvailabilities(array $queryParams = []): ->execute(); } + /** + * @param array|CreateProductAvailabilityRequest $requestBody + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * @throws ReflectionException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-availabilities/createproductavailability + */ + public static function createProductAvailability( + array|CreateProductAvailabilityRequest $requestBody, + array $queryParams = [], + ): ResponseInterface { + return self::getEndpointFactory() + ->createEndpoint(CreateProductAvailability::class) + ->setBody($requestBody) + ->setQueryParams($queryParams) + ->execute(); + } + + /** + * @param string $id [123] product availability ID + * @param array|UpdateProductAvailabilityRequest $requestBody + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * @throws ReflectionException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-availabilities/updateproductavailability + */ + public static function updateProductAvailability( + string $id, + array|UpdateProductAvailabilityRequest $requestBody, + array $queryParams = [], + ): ResponseInterface { + return self::getEndpointFactory() + ->createEndpoint(UpdateProductAvailability::class) + ->addPathParam('id', $id) + ->setBody($requestBody) + ->setQueryParams($queryParams) + ->execute(); + } + + /** + * @param string $id [123] product availability ID + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-availabilities/deleteproductavailability + */ + public static function deleteProductAvailability(string $id, array $queryParams = []): ResponseInterface + { + return self::getEndpointFactory() + ->createEndpoint(DeleteProductAvailability::class) + ->addPathParam('id', $id) + ->setQueryParams($queryParams) + ->execute(); + } + /** * @param array{ * language?: string, @@ -1459,7 +1789,7 @@ public static function getListOfProductsAvailabilities(array $queryParams = []): * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofsurchargeparameters + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Surcharge-parameters/getlistofsurchargeparameters */ public static function getListOfSurchargeParameters(array $queryParams = []): ResponseInterface { @@ -1481,7 +1811,7 @@ public static function getListOfSurchargeParameters(array $queryParams = []): Re * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/createsurchargeparameter + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Surcharge-parameters/createsurchargeparameter */ public static function createSurchargeParameter( array|CreateSurchargeParameterRequest $requestBody, @@ -1505,7 +1835,7 @@ public static function createSurchargeParameter( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getdetailofsurchargeparameter + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Surcharge-parameters/getdetailofsurchargeparameter */ public static function getDetailOfSurchargeParameter(string $code, array $queryParams = []): ResponseInterface { @@ -1529,7 +1859,7 @@ public static function getDetailOfSurchargeParameter(string $code, array $queryP * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updatesurchargeparameter + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Surcharge-parameters/updatesurchargeparameter */ public static function updateSurchargeParameter( string $code, @@ -1557,7 +1887,7 @@ public static function updateSurchargeParameter( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/createsurchargeparametervalue + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Surcharge-parameters/createsurchargeparametervalue */ public static function createSurchargeParameterValue( string $code, @@ -1583,7 +1913,7 @@ public static function createSurchargeParameterValue( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/deletesurchargeparameterbyindex + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Surcharge-parameters/deletesurchargeparameterbyindex */ public static function deleteSurchargeParameterByIndex(string $code, array $queryParams = []): ResponseInterface { @@ -1606,7 +1936,7 @@ public static function deleteSurchargeParameterByIndex(string $code, array $quer * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/deletesurchargeparametervalue + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Surcharge-parameters/deletesurchargeparametervalue */ public static function deleteSurchargeParameterValue( string $paramIndex, @@ -1635,7 +1965,7 @@ public static function deleteSurchargeParameterValue( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updatesurchargeparametervalue + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Surcharge-parameters/updatesurchargeparametervalue */ public static function updateSurchargeParameterValue( string $paramIndex, @@ -1664,7 +1994,7 @@ public static function updateSurchargeParameterValue( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistoffilteringparameters + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Filtering-parameters/getlistoffilteringparameters */ public static function getListOfFilteringParameters(array $queryParams = []): ResponseInterface { @@ -1686,7 +2016,7 @@ public static function getListOfFilteringParameters(array $queryParams = []): Re * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/createfilteringparameter + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Filtering-parameters/createfilteringparameter */ public static function createFilteringParameter( array|CreateFilteringParameterRequest $requestBody, @@ -1710,7 +2040,7 @@ public static function createFilteringParameter( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getdetailoffilteringparameter + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Filtering-parameters/getdetailoffilteringparameter */ public static function getDetailOfFilteringParameter(string $code, array $queryParams = []): ResponseInterface { @@ -1734,7 +2064,7 @@ public static function getDetailOfFilteringParameter(string $code, array $queryP * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updatefilteringparameter + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Filtering-parameters/updatefilteringparameter */ public static function updateFilteringParameter( string $code, @@ -1762,7 +2092,7 @@ public static function updateFilteringParameter( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/createfilteringparametervalue + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Filtering-parameters/createfilteringparametervalue */ public static function createFilteringParameterValue( string $code, @@ -1788,7 +2118,7 @@ public static function createFilteringParameterValue( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/deletefilteringparameter + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Filtering-parameters/deletefilteringparameter */ public static function deleteFilteringParameter(string $code, array $queryParams = []): ResponseInterface { @@ -1811,7 +2141,7 @@ public static function deleteFilteringParameter(string $code, array $queryParams * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/deletefilteringparametervalue + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Filtering-parameters/deletefilteringparametervalue */ public static function deleteFilteringParameterValue( string $code, @@ -1840,7 +2170,7 @@ public static function deleteFilteringParameterValue( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updatefilteringparametervalue + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Filtering-parameters/updatefilteringparametervalue */ public static function updateFilteringParameterValue( string $code, @@ -1870,7 +2200,7 @@ public static function updateFilteringParameterValue( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofvariantparameters + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Variant-parameters/getlistofvariantparameters */ public static function getListOfVariantParameters(array $queryParams = []): ResponseInterface { @@ -1892,7 +2222,7 @@ public static function getListOfVariantParameters(array $queryParams = []): Resp * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/createvariantparameter + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Variant-parameters/createvariantparameter */ public static function createVariantParameter( array|CreateVariantParameterRequest $requestBody, @@ -1916,7 +2246,7 @@ public static function createVariantParameter( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getdetailofvariantparameter + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Variant-parameters/getdetailofvariantparameter */ public static function getDetailOfVariantParameter(string $paramIndex, array $queryParams = []): ResponseInterface { @@ -1940,7 +2270,7 @@ public static function getDetailOfVariantParameter(string $paramIndex, array $qu * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updatevariantparameter + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Variant-parameters/updatevariantparameter */ public static function updateVariantParameter( string $paramIndex, @@ -1968,7 +2298,7 @@ public static function updateVariantParameter( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/createvariantparametervalue + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Variant-parameters/createvariantparametervalue */ public static function createVariantParameterValue( string $paramIndex, @@ -1994,7 +2324,7 @@ public static function createVariantParameterValue( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/deletevariantparameter + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Variant-parameters/deletevariantparameter */ public static function deleteVariantParameter(string $paramIndex, array $queryParams = []): ResponseInterface { @@ -2017,7 +2347,7 @@ public static function deleteVariantParameter(string $paramIndex, array $queryPa * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/deletevariantparametervalue + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Variant-parameters/deletevariantparametervalue */ public static function deleteVariantParameterValue( string $paramIndex, @@ -2046,7 +2376,7 @@ public static function deleteVariantParameterValue( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updatevariantparametervalue + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Variant-parameters/updatevariantparametervalue */ public static function updateVariantParameterValue( string $paramIndex, @@ -2073,7 +2403,7 @@ public static function updateVariantParameterValue( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofconsumptiontaxes + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Consumption-taxes/getlistofconsumptiontaxes */ public static function getListOfConsumptionTaxes(array $queryParams = []): ResponseInterface { @@ -2095,7 +2425,7 @@ public static function getListOfConsumptionTaxes(array $queryParams = []): Respo * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/createconsumptiontax + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Consumption-taxes/createconsumptiontax */ public static function createConsumptionTax( array|CreateConsumptionTaxRequest $requestBody, @@ -2121,7 +2451,7 @@ public static function createConsumptionTax( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/updateconsumptiontax + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Consumption-taxes/updateconsumptiontax */ public static function updateConsumptionTax( string $id, @@ -2147,7 +2477,7 @@ public static function updateConsumptionTax( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/deleteconsumptiontax + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Consumption-taxes/deleteconsumptiontax */ public static function deleteConsumptionTax(string $id, array $queryParams = []): ResponseInterface { @@ -2168,7 +2498,7 @@ public static function deleteConsumptionTax(string $id, array $queryParams = []) * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofrecyclingfeecategories + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Recycling-fees/getlistofrecyclingfeecategories */ public static function getListOfRecyclingFeeCategories(array $queryParams = []): ResponseInterface { @@ -2188,7 +2518,7 @@ public static function getListOfRecyclingFeeCategories(array $queryParams = []): * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproductwarranties + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Warranties/getlistofproductwarranties */ public static function getListOfProductWarranties(array $queryParams = []): ResponseInterface { @@ -2210,7 +2540,7 @@ public static function getListOfProductWarranties(array $queryParams = []): Resp * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproductalternativeproducts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Alternative-products/getlistofproductalternativeproducts */ public static function getListOfProductAlternativeProducts( string $guid, @@ -2236,7 +2566,7 @@ public static function getListOfProductAlternativeProducts( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/addalternativeproduct + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Alternative-products/addalternativeproduct */ public static function addAlternativeProduct( string $guid, @@ -2264,7 +2594,7 @@ public static function addAlternativeProduct( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/setalternativeproducts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Alternative-products/setalternativeproducts */ public static function setAlternativeProducts( string $guid, @@ -2291,7 +2621,7 @@ public static function setAlternativeProducts( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproductrelatedproducts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Related-products/getlistofproductrelatedproducts */ public static function getListOfProductRelatedProducts(string $guid, array $queryParams = []): ResponseInterface { @@ -2315,7 +2645,7 @@ public static function getListOfProductRelatedProducts(string $guid, array $quer * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/addrelatedproduct + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Related-products/addrelatedproduct */ public static function addRelatedProduct( string $guid, @@ -2343,7 +2673,7 @@ public static function addRelatedProduct( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/setrelatedproducts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Related-products/setrelatedproducts */ public static function setRelatedProducts( string $guid, @@ -2371,7 +2701,7 @@ public static function setRelatedProducts( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/additemtoproductset + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-sets/additemtoproductset */ public static function addItemToProductSet( string $guid, @@ -2399,7 +2729,7 @@ public static function addItemToProductSet( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/setproductsetitems + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-sets/setproductsetitems */ public static function setProductSetItems( string $guid, @@ -2424,7 +2754,7 @@ public static function setProductSetItems( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproductunits + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Units/getlistofproductunits */ public static function getListOfProductUnits(array $queryParams = []): ResponseInterface { @@ -2445,7 +2775,7 @@ public static function getListOfProductUnits(array $queryParams = []): ResponseI * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproductgifts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-gifts/getlistofproductgifts */ public static function getListOfProductGifts(string $guid, array $queryParams = []): ResponseInterface { @@ -2469,7 +2799,7 @@ public static function getListOfProductGifts(string $guid, array $queryParams = * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/createproductgift + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-gifts/createproductgift */ public static function createProductGift( string $guid, @@ -2497,7 +2827,7 @@ public static function createProductGift( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Products/stegiftstoproduct + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Product-gifts/stegiftstoproduct */ public static function steGiftsToProduct( string $guid, @@ -2529,7 +2859,7 @@ public static function steGiftsToProduct( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Products/getlistofproductsreviews + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Reviews/getlistofproductsreviews */ public static function getListOfProductsReviews(array $queryParams): ResponseInterface { @@ -2549,7 +2879,7 @@ public static function getListOfProductsReviews(array $queryParams): ResponseInt * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Price-lists/getlistofpricelists + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Price-lists/getlistofpricelists */ public static function getListOfPriceLists(array $queryParams = []): ResponseInterface { @@ -2571,7 +2901,7 @@ public static function getListOfPriceLists(array $queryParams = []): ResponseInt * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Price-lists/createpricelist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Price-lists/createpricelist */ public static function createPricelist( array|CreatePricelistRequest $requestBody, @@ -2599,7 +2929,7 @@ public static function createPricelist( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Price-lists/getpricelistdetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Price-lists/getpricelistdetail */ public static function getPricelistDetail(string $id, array $queryParams = []): ResponseInterface { @@ -2623,7 +2953,7 @@ public static function getPricelistDetail(string $id, array $queryParams = []): * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Price-lists/updatepricelist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Price-lists/updatepricelist */ public static function updatePricelist( string $id, @@ -2649,7 +2979,7 @@ public static function updatePricelist( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Price-lists/deletepricelist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Price-lists/deletepricelist */ public static function deletePricelist(string $id, array $queryParams = []): ResponseInterface { @@ -2683,7 +3013,7 @@ public static function deletePricelist(string $id, array $queryParams = []): Res * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Price-lists/getlistofallpricelistdetails + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Price-lists/getlistofallpricelistdetails */ public static function getListOfAllPricelistDetails(string $id, array $queryParams = []): ResponseInterface { @@ -2694,6 +3024,46 @@ public static function getListOfAllPricelistDetails(string $id, array $queryPara ->execute(); } + /** + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Project/getprojectdomainlist + */ + public static function getProjectDomainList(array $queryParams = []): ResponseInterface + { + return self::getEndpointFactory() + ->createEndpoint(GetProjectDomainList::class) + ->setQueryParams($queryParams) + ->execute(); + } + + /** + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Project/getprojectsaleschannels + */ + public static function getProjectSalesChannels(array $queryParams = []): ResponseInterface + { + return self::getEndpointFactory() + ->createEndpoint(GetProjectSalesChannels::class) + ->setQueryParams($queryParams) + ->execute(); + } + /** * @param array{ * language?: string, @@ -2714,6 +3084,7 @@ public static function getListOfAllPricelistDetails(string $id, array $queryPara * changeTimeFrom?: string, * changeTimeTo?: string, * sourceId?: string, + * orderCodes?: string, * } $queryParams * * @return ResponseInterface @@ -2721,7 +3092,7 @@ public static function getListOfAllPricelistDetails(string $id, array $queryPara * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/getlistoforders + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/getlistoforders */ public static function getListOfOrders(array $queryParams = []): ResponseInterface { @@ -2750,7 +3121,7 @@ public static function getListOfOrders(array $queryParams = []): ResponseInterfa * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/createorder + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/createorder */ public static function createOrder( array|CreateOrderRequest $requestBody, @@ -2763,10 +3134,35 @@ public static function createOrder( ->execute(); } + /** + * @param array{ + * language?: string, + * orderCodes?: string, + * creationTimeFrom?: string, + * creationTimeTo?: string, + * userId?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-history/getlistofallremarks + */ + public static function getListOfAllRemarks(array $queryParams = []): ResponseInterface + { + return self::getEndpointFactory() + ->createEndpoint(GetListOfAllRemarks::class) + ->setQueryParams($queryParams) + ->execute(); + } + /** * @param array{ * language?: string, * include?: string, + * orderCodes?: string, * statusId?: string, * shippingGuid?: string, * shippingCompanyCode?: string, @@ -2789,7 +3185,7 @@ public static function createOrder( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/getlistofallorders + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/getlistofallorders */ public static function getListOfAllOrders(array $queryParams = []): ResponseInterface { @@ -2811,7 +3207,7 @@ public static function getListOfAllOrders(array $queryParams = []): ResponseInte * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/getorderdetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/getorderdetail */ public static function getOrderDetail(string $code, array $queryParams = []): ResponseInterface { @@ -2833,7 +3229,7 @@ public static function getOrderDetail(string $code, array $queryParams = []): Re * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/deleteorder + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/deleteorder */ public static function deleteOrder(string $code, array $queryParams = []): ResponseInterface { @@ -2857,7 +3253,7 @@ public static function deleteOrder(string $code, array $queryParams = []): Respo * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/updateorderhead + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/updateorderhead */ public static function updateOrderHead( string $code, @@ -2887,7 +3283,7 @@ public static function updateOrderHead( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/createorderitem + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-items/createorderitem */ public static function createOrderItem( string $code, @@ -2917,7 +3313,7 @@ public static function createOrderItem( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/updateorderitem + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-items/updateorderitem */ public static function updateOrderItem( string $code, @@ -2946,7 +3342,7 @@ public static function updateOrderItem( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/deleteorderitem + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-items/deleteorderitem */ public static function deleteOrderItem(string $code, string $id, array $queryParams = []): ResponseInterface { @@ -2972,7 +3368,7 @@ public static function deleteOrderItem(string $code, string $id, array $queryPar * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/createorderitemsurchargeparameters + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-items/createorderitemsurchargeparameters */ public static function createOrderItemSurchargeParameters( string $code, @@ -3002,7 +3398,7 @@ public static function createOrderItemSurchargeParameters( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/deleteorderitemsurchargeparameters + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-items/deleteorderitemsurchargeparameters */ public static function deleteOrderItemSurchargeParameters( string $code, @@ -3032,7 +3428,7 @@ public static function deleteOrderItemSurchargeParameters( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/createorderpayment + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-payment/createorderpayment */ public static function createOrderPayment( string $code, @@ -3061,7 +3457,7 @@ public static function createOrderPayment( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/updateorderpayment + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-payment/updateorderpayment */ public static function updateOrderPayment( string $code, @@ -3091,7 +3487,7 @@ public static function updateOrderPayment( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/addordershipping + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-shipping/addordershipping */ public static function addOrderShipping( string $code, @@ -3120,7 +3516,7 @@ public static function addOrderShipping( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/updateordershipping + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-shipping/updateordershipping */ public static function updateOrderShipping( string $code, @@ -3148,7 +3544,7 @@ public static function updateOrderShipping( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/downloadorderaspdf + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/downloadorderaspdf */ public static function downloadOrderAsPdf(string $code, array $queryParams = []): ResponseInterface { @@ -3171,7 +3567,7 @@ public static function downloadOrderAsPdf(string $code, array $queryParams = []) * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/getlistofremarksfororder + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-history/getlistofremarksfororder */ public static function getListOfRemarksForOrder(string $code, array $queryParams = []): ResponseInterface { @@ -3195,7 +3591,7 @@ public static function getListOfRemarksForOrder(string $code, array $queryParams * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/createorderremark + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-history/createorderremark */ public static function createOrderRemark( string $code, @@ -3222,7 +3618,7 @@ public static function createOrderRemark( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/deleteorderhistoryitem + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-history/deleteorderhistoryitem */ public static function deleteOrderHistoryItem( string $code, @@ -3250,7 +3646,7 @@ public static function deleteOrderHistoryItem( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/updateremarksfororder + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/updateremarksfororder */ public static function updateRemarksForOrder( string $code, @@ -3281,7 +3677,7 @@ public static function updateRemarksForOrder( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/updateorderstatus + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/updateorderstatus */ public static function updateOrderStatus( string $code, @@ -3310,7 +3706,7 @@ public static function updateOrderStatus( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/ordercopy + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/ordercopy */ public static function orderCopy( string $code, @@ -3335,7 +3731,7 @@ public static function orderCopy( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/getlistoforderstatuses + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/getlistoforderstatuses */ public static function getListOfOrderStatuses(array $queryParams = []): ResponseInterface { @@ -3355,7 +3751,7 @@ public static function getListOfOrderStatuses(array $queryParams = []): Response * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/getlistofordersources + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/getlistofordersources */ public static function getListOfOrderSources(array $queryParams = []): ResponseInterface { @@ -3379,7 +3775,7 @@ public static function getListOfOrderSources(array $queryParams = []): ResponseI * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/getlastorderchanges + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/getlastorderchanges */ public static function getLastOrderChanges(array $queryParams): ResponseInterface { @@ -3389,6 +3785,31 @@ public static function getLastOrderChanges(array $queryParams): ResponseInterfac ->execute(); } + /** + * @param array{ + * language?: string, + * page?: int, + * itemsPerPage?: int, + * includeClosedAndCancelledOrders?: string, + * productCode?: string, + * orderCode?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/getorderclaims + */ + public static function getOrderClaims(array $queryParams = []): ResponseInterface + { + return self::getEndpointFactory() + ->createEndpoint(GetOrderClaims::class) + ->setQueryParams($queryParams) + ->execute(); + } + /** * @param array|OrderBatchInsertionRequest $requestBody * @param array{ @@ -3401,7 +3822,7 @@ public static function getLastOrderChanges(array $queryParams): ResponseInterfac * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/orderbatchinsertion + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Orders/orderbatchinsertion */ public static function orderBatchInsertion( array|OrderBatchInsertionRequest $requestBody, @@ -3424,7 +3845,7 @@ public static function orderBatchInsertion( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/getordergiftslist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-gifts/getordergiftslist */ public static function getOrderGiftsList(array $queryParams = []): ResponseInterface { @@ -3446,7 +3867,7 @@ public static function getOrderGiftsList(array $queryParams = []): ResponseInter * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/addordergift + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-gifts/addordergift */ public static function addOrderGift( array|AddOrderGiftRequest $requestBody, @@ -3470,7 +3891,7 @@ public static function addOrderGift( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/deleteordergift + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Order-gifts/deleteordergift */ public static function deleteOrderGift(string $id, array $queryParams = []): ResponseInterface { @@ -3491,7 +3912,7 @@ public static function deleteOrderGift(string $id, array $queryParams = []): Res * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Orders/getordergiftsettings + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Gifts/getordergiftsettings */ public static function getOrderGiftSettings(array $queryParams = []): ResponseInterface { @@ -3513,7 +3934,7 @@ public static function getOrderGiftSettings(array $queryParams = []): ResponseIn * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Orders/updateordergiftsettings + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Gifts/updateordergiftsettings */ public static function updateOrderGiftSettings( array|UpdateOrderGiftSettingsRequest $requestBody, @@ -3547,7 +3968,7 @@ public static function updateOrderGiftSettings( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Invoices/getlistofinvoices + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/getlistofinvoices */ public static function getListOfInvoices(array $queryParams = []): ResponseInterface { @@ -3588,7 +4009,7 @@ public static function getListOfInvoices(array $queryParams = []): ResponseInter * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Invoices/getlistofallinvoices + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/getlistofallinvoices */ public static function getListOfAllInvoices(array $queryParams = []): ResponseInterface { @@ -3609,7 +4030,7 @@ public static function getListOfAllInvoices(array $queryParams = []): ResponseIn * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Invoices/getinvoicedetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/getinvoicedetail */ public static function getInvoiceDetail(string $code, array $queryParams = []): ResponseInterface { @@ -3634,7 +4055,7 @@ public static function getInvoiceDetail(string $code, array $queryParams = []): * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Invoices/createinvoicefromorder + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/createinvoicefromorder */ public static function createInvoiceFromOrder( string $code, @@ -3650,7 +4071,65 @@ public static function createInvoiceFromOrder( } /** - * @param string $code [2018000053] Code of order + * @param string $code [2018000053] Code of proforma invoice + * @param array|CreateInvoiceFromProformaInvoiceRequest $requestBody + * @param array{ + * language?: string, + * suppressExistenceCheck?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * @throws ReflectionException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/createinvoicefromproformainvoice + */ + public static function createInvoiceFromProformaInvoice( + string $code, + array|CreateInvoiceFromProformaInvoiceRequest $requestBody, + array $queryParams = [], + ): ResponseInterface { + return self::getEndpointFactory() + ->createEndpoint(CreateInvoiceFromProformaInvoice::class) + ->addPathParam('code', $code) + ->setBody($requestBody) + ->setQueryParams($queryParams) + ->execute(); + } + + /** + * @param string $code [2018000053] Code of the invoice + * @param array|InvoiceLinkProformaInvoicesRequest $requestBody + * @param array{ + * language?: string, + * include?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * @throws ReflectionException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/invoicelinkproformainvoices + */ + public static function invoiceLinkProformaInvoices( + string $code, + array|InvoiceLinkProformaInvoicesRequest $requestBody, + array $queryParams = [], + ): ResponseInterface { + return self::getEndpointFactory() + ->createEndpoint(InvoiceLinkProformaInvoices::class) + ->addPathParam('code', $code) + ->setBody($requestBody) + ->setQueryParams($queryParams) + ->execute(); + } + + /** + * @param string $code [2018000053] Code of the invoice * @param array|InvoiceLinkProofPaymentsRequest $requestBody * @param array{ * language?: string, @@ -3663,7 +4142,7 @@ public static function createInvoiceFromOrder( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Invoices/invoicelinkproofpayments + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/invoicelinkproofpayments */ public static function invoiceLinkProofPayments( string $code, @@ -3689,7 +4168,7 @@ public static function invoiceLinkProofPayments( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Invoices/downloadinvoiceaspdf + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/downloadinvoiceaspdf */ public static function downloadInvoiceAsPdf(string $code, array $queryParams = []): ResponseInterface { @@ -3711,7 +4190,7 @@ public static function downloadInvoiceAsPdf(string $code, array $queryParams = [ * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Invoices/downloadinvoiceasisdoc + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/downloadinvoiceasisdoc */ public static function downloadInvoiceAsIsdoc(string $code, array $queryParams = []): ResponseInterface { @@ -3736,7 +4215,7 @@ public static function downloadInvoiceAsIsdoc(string $code, array $queryParams = * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Invoices/getlastinvoicechanges + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Invoices/getlastinvoicechanges */ public static function getLastInvoiceChanges(array $queryParams): ResponseInterface { @@ -3763,7 +4242,7 @@ public static function getLastInvoiceChanges(array $queryParams): ResponseInterf * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proforma-invoices/getlistofproformainvoices + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proforma-invoices/getlistofproformainvoices */ public static function getListOfProformaInvoices(array $queryParams = []): ResponseInterface { @@ -3795,7 +4274,7 @@ public static function getListOfProformaInvoices(array $queryParams = []): Respo * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proforma-invoices/getlistofallproformainvoices + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proforma-invoices/getlistofallproformainvoices */ public static function getListOfAllProformaInvoices(array $queryParams = []): ResponseInterface { @@ -3817,7 +4296,7 @@ public static function getListOfAllProformaInvoices(array $queryParams = []): Re * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proforma-invoices/getproformainvoicedetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proforma-invoices/getproformainvoicedetail */ public static function getProformaInvoiceDetail(string $code, array $queryParams = []): ResponseInterface { @@ -3839,7 +4318,7 @@ public static function getProformaInvoiceDetail(string $code, array $queryParams * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proforma-invoices/downloadproformainvoicepdf + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proforma-invoices/downloadproformainvoicepdf */ public static function downloadProformaInvoicePdf(string $code, array $queryParams = []): ResponseInterface { @@ -3864,7 +4343,7 @@ public static function downloadProformaInvoicePdf(string $code, array $queryPara * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proforma-invoices/getlastproformainvoicechanges + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proforma-invoices/getlastproformainvoicechanges */ public static function getLastProformaInvoiceChanges(array $queryParams): ResponseInterface { @@ -3893,7 +4372,7 @@ public static function getLastProformaInvoiceChanges(array $queryParams): Respon * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proof-payments/getlistofproofpayments + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/getlistofproofpayments */ public static function getListOfProofPayments(array $queryParams = []): ResponseInterface { @@ -3915,7 +4394,7 @@ public static function getListOfProofPayments(array $queryParams = []): Response * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Proof-payments/createproofpayment + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/createproofpayment */ public static function createProofPayment( array|CreateProofPaymentRequest $requestBody, @@ -3939,7 +4418,7 @@ public static function createProofPayment( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proof-payments/getproofpaymentdetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/getproofpaymentdetail */ public static function getProofPaymentDetail(string $code, array $queryParams = []): ResponseInterface { @@ -3963,7 +4442,7 @@ public static function getProofPaymentDetail(string $code, array $queryParams = * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Proof-payments/updateproofpayment + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/updateproofpayment */ public static function updateProofPayment( string $code, @@ -3989,7 +4468,7 @@ public static function updateProofPayment( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proof-payments/deleteproofpayment + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/deleteproofpayment */ public static function deleteProofPayment(string $code, array $queryParams = []): ResponseInterface { @@ -4019,7 +4498,7 @@ public static function deleteProofPayment(string $code, array $queryParams = []) * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proof-payments/getlistofallproofpayments + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/getlistofallproofpayments */ public static function getListOfAllProofPayments(array $queryParams = []): ResponseInterface { @@ -4040,7 +4519,7 @@ public static function getListOfAllProofPayments(array $queryParams = []): Respo * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proof-payments/getproofpaymentdetailbyordercode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/getproofpaymentdetailbyordercode */ public static function getProofPaymentDetailByOrderCode(string $code, array $queryParams = []): ResponseInterface { @@ -4062,7 +4541,7 @@ public static function getProofPaymentDetailByOrderCode(string $code, array $que * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proof-payments/createproofpaymentbyordercode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/createproofpaymentbyordercode */ public static function createProofPaymentByOrderCode(string $code, array $queryParams = []): ResponseInterface { @@ -4084,7 +4563,7 @@ public static function createProofPaymentByOrderCode(string $code, array $queryP * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proof-payments/getproofpaymentdetailbyproformainvoicecode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/getproofpaymentdetailbyproformainvoicecode */ public static function getProofPaymentDetailByProformaInvoiceCode( string $code, @@ -4108,7 +4587,7 @@ public static function getProofPaymentDetailByProformaInvoiceCode( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proof-payments/createproofpaymentbyproformainvoicecode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/createproofpaymentbyproformainvoicecode */ public static function createProofPaymentByProformaInvoiceCode( string $code, @@ -4134,7 +4613,7 @@ public static function createProofPaymentByProformaInvoiceCode( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Proof-payments/proofpaymentdocumentsettings + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/proofpaymentdocumentsettings */ public static function proofPaymentDocumentSettings( string $code, @@ -4160,7 +4639,7 @@ public static function proofPaymentDocumentSettings( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proof-payments/downloadproofofpaymentpdf + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/downloadproofofpaymentpdf */ public static function downloadProofOfPaymentPdf(string $code, array $queryParams = []): ResponseInterface { @@ -4171,6 +4650,28 @@ public static function downloadProofOfPaymentPdf(string $code, array $queryParam ->execute(); } + /** + * @param string $code [P-2015000248-01] + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/downloadproofpaymentasisdoc + */ + public static function downloadProofPaymentAsIsdoc(string $code, array $queryParams = []): ResponseInterface + { + return self::getEndpointFactory() + ->createEndpoint(DownloadProofPaymentAsIsdoc::class) + ->addPathParam('code', $code) + ->setQueryParams($queryParams) + ->execute(); + } + /** * @param array{ * language?: string, @@ -4185,7 +4686,7 @@ public static function downloadProofOfPaymentPdf(string $code, array $queryParam * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Proof-payments/getlastproofpaymentschanges + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Proof-payments/getlastproofpaymentschanges */ public static function getLastProofPaymentsChanges(array $queryParams): ResponseInterface { @@ -4213,7 +4714,7 @@ public static function getLastProofPaymentsChanges(array $queryParams): Response * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/getlistofcreditnotes + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/getlistofcreditnotes */ public static function getListOfCreditNotes(array $queryParams = []): ResponseInterface { @@ -4253,7 +4754,7 @@ public static function getListOfCreditNotes(array $queryParams = []): ResponseIn * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/getlistofallcreditnotes + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/getlistofallcreditnotes */ public static function getListOfAllCreditNotes(array $queryParams = []): ResponseInterface { @@ -4275,7 +4776,7 @@ public static function getListOfAllCreditNotes(array $queryParams = []): Respons * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/getcreditnotedetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/getcreditnotedetail */ public static function getCreditNoteDetail(string $code, array $queryParams = []): ResponseInterface { @@ -4299,7 +4800,7 @@ public static function getCreditNoteDetail(string $code, array $queryParams = [] * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/updatecreditnote + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/updatecreditnote */ public static function updateCreditNote( string $code, @@ -4325,7 +4826,7 @@ public static function updateCreditNote( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/deletecreditnote + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/deletecreditnote */ public static function deleteCreditNote(string $code, array $queryParams = []): ResponseInterface { @@ -4347,7 +4848,7 @@ public static function deleteCreditNote(string $code, array $queryParams = []): * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/restockcreditnote + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/restockcreditnote */ public static function restockCreditNote(string $code, array $queryParams = []): ResponseInterface { @@ -4372,7 +4873,7 @@ public static function restockCreditNote(string $code, array $queryParams = []): * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/createcreditnotefrominvoice + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/createcreditnotefrominvoice */ public static function createCreditNoteFromInvoice( string $code, @@ -4400,7 +4901,7 @@ public static function createCreditNoteFromInvoice( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/createcreditnotefromproofofpayment + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/createcreditnotefromproofofpayment */ public static function createCreditNoteFromProofOfPayment( string $code, @@ -4428,7 +4929,7 @@ public static function createCreditNoteFromProofOfPayment( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/createcreditnoteitem + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/createcreditnoteitem */ public static function createCreditNoteItem( string $code, @@ -4457,7 +4958,7 @@ public static function createCreditNoteItem( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/updatecreditnoteitem + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/updatecreditnoteitem */ public static function updateCreditNoteItem( string $code, @@ -4486,7 +4987,7 @@ public static function updateCreditNoteItem( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/deletecreditnoteitem + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/deletecreditnoteitem */ public static function deleteCreditNoteItem(string $code, string $id, array $queryParams = []): ResponseInterface { @@ -4509,7 +5010,7 @@ public static function deleteCreditNoteItem(string $code, string $id, array $que * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/downloadcreditnotepdf + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/downloadcreditnotepdf */ public static function downloadCreditNotePdf(string $code, array $queryParams = []): ResponseInterface { @@ -4531,7 +5032,7 @@ public static function downloadCreditNotePdf(string $code, array $queryParams = * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/downloadcreditnoteasisdoc + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/downloadcreditnoteasisdoc */ public static function downloadCreditNoteAsIsdoc(string $code, array $queryParams = []): ResponseInterface { @@ -4556,7 +5057,7 @@ public static function downloadCreditNoteAsIsdoc(string $code, array $queryParam * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Credit-notes/getlastcreditnotechanges + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Credit-notes/getlastcreditnotechanges */ public static function getLastCreditNoteChanges(array $queryParams): ResponseInterface { @@ -4580,7 +5081,7 @@ public static function getLastCreditNoteChanges(array $queryParams): ResponseInt * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Delivery-notes/getlistofdeliverynotes + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Delivery-notes/getlistofdeliverynotes */ public static function getListOfDeliveryNotes(array $queryParams = []): ResponseInterface { @@ -4610,7 +5111,7 @@ public static function getListOfDeliveryNotes(array $queryParams = []): Response * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Delivery-notes/getlistofalldeliverynotes + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Delivery-notes/getlistofalldeliverynotes */ public static function getListOfAllDeliveryNotes(array $queryParams = []): ResponseInterface { @@ -4632,7 +5133,7 @@ public static function getListOfAllDeliveryNotes(array $queryParams = []): Respo * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Delivery-notes/getdetailofdeliverynote + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Delivery-notes/getdetailofdeliverynote */ public static function getDetailOfDeliveryNote(string $code, array $queryParams = []): ResponseInterface { @@ -4654,7 +5155,7 @@ public static function getDetailOfDeliveryNote(string $code, array $queryParams * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Delivery-notes/downloaddeliverynoteaspdf + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Delivery-notes/downloaddeliverynoteaspdf */ public static function downloadDeliveryNoteAsPdf(string $code, array $queryParams = []): ResponseInterface { @@ -4685,7 +5186,7 @@ public static function downloadDeliveryNoteAsPdf(string $code, array $queryParam * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Document-export/generaldocumentdownload + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Exports/generaldocumentdownload */ public static function generalDocumentDownload( string $type, @@ -4710,7 +5211,7 @@ public static function generalDocumentDownload( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Stocks/getlistofstocks + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Stocks/getlistofstocks */ public static function getListOfStocks(array $queryParams = []): ResponseInterface { @@ -4731,7 +5232,7 @@ public static function getListOfStocks(array $queryParams = []): ResponseInterfa * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Stocks/getstockdetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Stocks/getstockdetail */ public static function getStockDetail(string $stockId, array $queryParams = []): ResponseInterface { @@ -4759,7 +5260,7 @@ public static function getStockDetail(string $stockId, array $queryParams = []): * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Stocks/getstockmovements + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Stocks/getstockmovements */ public static function getStockMovements(string $stockId, array $queryParams = []): ResponseInterface { @@ -4783,7 +5284,7 @@ public static function getStockMovements(string $stockId, array $queryParams = [ * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Stocks/updatequantityinstock + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Stocks/updatequantityinstock */ public static function updateQuantityInStock( string $stockId, @@ -4809,7 +5310,7 @@ public static function updateQuantityInStock( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Stocks/getstockmovementslastmove + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Stocks/getstockmovementslastmove */ public static function getStockMovementsLastMove(string $stockId, array $queryParams = []): ResponseInterface { @@ -4837,7 +5338,7 @@ public static function getStockMovementsLastMove(string $stockId, array $queryPa * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Stocks/getproductsuppliesinstock + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Stocks/getproductsuppliesinstock */ public static function getProductSuppliesInStock(string $stockId, array $queryParams = []): ResponseInterface { @@ -4860,7 +5361,7 @@ public static function getProductSuppliesInStock(string $stockId, array $queryPa * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Suppliers/getlistofsuppliers + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Suppliers/getlistofsuppliers */ public static function getListOfSuppliers(array $queryParams = []): ResponseInterface { @@ -4882,7 +5383,7 @@ public static function getListOfSuppliers(array $queryParams = []): ResponseInte * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Brands/getlistofbrands + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/getlistofbrands */ public static function getListofBrands(array $queryParams = []): ResponseInterface { @@ -4904,7 +5405,7 @@ public static function getListofBrands(array $queryParams = []): ResponseInterfa * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Brands/createbrand + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/createbrand */ public static function createBrand( array|CreateBrandRequest $requestBody, @@ -4928,7 +5429,7 @@ public static function createBrand( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Brands/getdetailofbrand + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/getdetailofbrand */ public static function getDetailOfBrand(string $code, array $queryParams = []): ResponseInterface { @@ -4952,7 +5453,7 @@ public static function getDetailOfBrand(string $code, array $queryParams = []): * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Brands/updatebrand + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/updatebrand */ public static function updateBrand( string $code, @@ -4979,7 +5480,7 @@ public static function updateBrand( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Brands/deletebrand + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/deletebrand */ public static function deleteBrand(string $code, array $queryParams = []): ResponseInterface { @@ -5002,7 +5503,7 @@ public static function deleteBrand(string $code, array $queryParams = []): Respo * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Brands/createbrandbatch + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Brands/createbrandbatch */ public static function createBrandBatch( array|CreateBrandBatchRequest $requestBody, @@ -5029,7 +5530,7 @@ public static function createBrandBatch( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/getlistofcustomers + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/getlistofcustomers */ public static function getListOfCustomers(array $queryParams = []): ResponseInterface { @@ -5044,6 +5545,8 @@ public static function getListOfCustomers(array $queryParams = []): ResponseInte * @param array{ * language?: string, * suppressMandatoryFieldsCheck?: string, + * sendRegistrationEmail?: string, + * language?: string, * } $queryParams * * @return ResponseInterface @@ -5052,7 +5555,7 @@ public static function getListOfCustomers(array $queryParams = []): ResponseInte * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Customers/createcustomer + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/createcustomer */ public static function createCustomer( array|CreateCustomerRequest $requestBody, @@ -5079,7 +5582,7 @@ public static function createCustomer( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/getlistofallcustomers + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/getlistofallcustomers */ public static function getListOfAllCustomers(array $queryParams = []): ResponseInterface { @@ -5100,7 +5603,7 @@ public static function getListOfAllCustomers(array $queryParams = []): ResponseI * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/getcustomerdetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/getcustomerdetail */ public static function getCustomerDetail(string $guid, array $queryParams = []): ResponseInterface { @@ -5124,7 +5627,7 @@ public static function getCustomerDetail(string $guid, array $queryParams = []): * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Customers/updatecustomer + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/updatecustomer */ public static function updateCustomer( string $guid, @@ -5150,7 +5653,7 @@ public static function updateCustomer( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/deletecustomer + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/deletecustomer */ public static function deleteCustomer(string $guid, array $queryParams = []): ResponseInterface { @@ -5174,7 +5677,7 @@ public static function deleteCustomer(string $guid, array $queryParams = []): Re * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/getlistofcustomeraccounts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-accounts/getlistofcustomeraccounts */ public static function getListOfCustomerAccounts(string $guid, array $queryParams = []): ResponseInterface { @@ -5198,7 +5701,7 @@ public static function getListOfCustomerAccounts(string $guid, array $queryParam * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Customers/createcustomeraccount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-accounts/createcustomeraccount */ public static function createCustomerAccount( string $guid, @@ -5225,7 +5728,7 @@ public static function createCustomerAccount( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/getdetailofcustomeraccount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-accounts/getdetailofcustomeraccount */ public static function getDetailOfCustomerAccount( string $guid, @@ -5254,7 +5757,7 @@ public static function getDetailOfCustomerAccount( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Customers/updatecustomeraccount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-accounts/updatecustomeraccount */ public static function updateCustomerAccount( string $guid, @@ -5283,7 +5786,7 @@ public static function updateCustomerAccount( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/deletecustomeraccount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-accounts/deletecustomeraccount */ public static function deleteCustomerAccount( string $guid, @@ -5311,7 +5814,7 @@ public static function deleteCustomerAccount( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/gelistofcustomerdeliveryaddresses + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-delivery-addresses/gelistofcustomerdeliveryaddresses */ public static function geListOfCustomerDeliveryAddresses(string $guid, array $queryParams = []): ResponseInterface { @@ -5335,7 +5838,7 @@ public static function geListOfCustomerDeliveryAddresses(string $guid, array $qu * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Customers/createdeliveryaddress + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-delivery-addresses/createdeliveryaddress */ public static function createDeliveryAddress( string $guid, @@ -5362,7 +5865,7 @@ public static function createDeliveryAddress( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/getdetailofcustomerdeliveryaddress + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-delivery-addresses/getdetailofcustomerdeliveryaddress */ public static function getDetailOfCustomerDeliveryAddress( string $guid, @@ -5391,7 +5894,7 @@ public static function getDetailOfCustomerDeliveryAddress( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Customers/updatecustomerdeliveryaddress + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-delivery-addresses/updatecustomerdeliveryaddress */ public static function updateCustomerDeliveryAddress( string $guid, @@ -5420,7 +5923,7 @@ public static function updateCustomerDeliveryAddress( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/deletecustomerdeliveryaddress + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-delivery-addresses/deletecustomerdeliveryaddress */ public static function deleteCustomerDeliveryAddress( string $guid, @@ -5448,7 +5951,7 @@ public static function deleteCustomerDeliveryAddress( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/getlistofcustomerremarks + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-remarks/getlistofcustomerremarks */ public static function getListOfCustomerRemarks(string $guid, array $queryParams = []): ResponseInterface { @@ -5472,7 +5975,7 @@ public static function getListOfCustomerRemarks(string $guid, array $queryParams * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Customers/createcustomerremark + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-remarks/createcustomerremark */ public static function createCustomerRemark( string $guid, @@ -5499,7 +6002,7 @@ public static function createCustomerRemark( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/getdetailofcustomerremark + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-remarks/getdetailofcustomerremark */ public static function getDetailOfCustomerRemark( string $guid, @@ -5528,7 +6031,7 @@ public static function getDetailOfCustomerRemark( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Customers/updatecustomerremark + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-remarks/updatecustomerremark */ public static function updateCustomerRemark( string $guid, @@ -5557,7 +6060,7 @@ public static function updateCustomerRemark( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/deletecustomerremark + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customer-remarks/deletecustomerremark */ public static function deleteCustomerRemark(string $guid, string $id, array $queryParams = []): ResponseInterface { @@ -5583,7 +6086,7 @@ public static function deleteCustomerRemark(string $guid, string $id, array $que * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/getlastcustomerchanges + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/getlastcustomerchanges */ public static function getLastCustomerChanges(array $queryParams): ResponseInterface { @@ -5603,7 +6106,7 @@ public static function getLastCustomerChanges(array $queryParams): ResponseInter * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/getlistofcustomerregions + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/getlistofcustomerregions */ public static function getListOfCustomerRegions(array $queryParams = []): ResponseInterface { @@ -5623,7 +6126,7 @@ public static function getListOfCustomerRegions(array $queryParams = []): Respon * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Customers/getlistofcustomergroups + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Customers/getlistofcustomergroups */ public static function getListOfCustomerGroups(array $queryParams = []): ResponseInterface { @@ -5643,7 +6146,7 @@ public static function getListOfCustomerGroups(array $queryParams = []): Respons * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Templates/getlistingofhtmlcodes + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Templates/getlistingofhtmlcodes */ public static function getListingOfHtmlCodes(array $queryParams = []): ResponseInterface { @@ -5665,7 +6168,7 @@ public static function getListingOfHtmlCodes(array $queryParams = []): ResponseI * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Templates/createandedithtmlcodes + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Templates/createandedithtmlcodes */ public static function createAndEditHtmlCodes( array|CreateAndEditHtmlCodesRequest $requestBody, @@ -5689,7 +6192,7 @@ public static function createAndEditHtmlCodes( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Templates/deletehtmlcode + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Templates/deletehtmlcode */ public static function deleteHtmlCode(string $location, array $queryParams = []): ResponseInterface { @@ -5711,7 +6214,7 @@ public static function deleteHtmlCode(string $location, array $queryParams = []) * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Payment-gateways/getinformationaboutpayment + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Payment-gateways/getinformationaboutpayment */ public static function getInformationAboutPayment(string $paymentCode, array $queryParams = []): ResponseInterface { @@ -5727,6 +6230,8 @@ public static function getInformationAboutPayment(string $paymentCode, array $qu * @param array|UpdatePaymentStatusRequest $requestBody * @param array{ * language?: string, + * suppressDocumentGeneration?: string, + * suppressEmailSending?: string, * } $queryParams * * @return ResponseInterface @@ -5735,7 +6240,7 @@ public static function getInformationAboutPayment(string $paymentCode, array $qu * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Payment-gateways/updatepaymentstatus + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Payment-gateways/updatepaymentstatus */ public static function updatePaymentStatus( string $paymentCode, @@ -5762,7 +6267,7 @@ public static function updatePaymentStatus( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Webhooks/getoverviewofregisteredwebhooks + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Webhooks/getoverviewofregisteredwebhooks */ public static function getOverviewOfRegisteredWebhooks(array $queryParams = []): ResponseInterface { @@ -5784,7 +6289,7 @@ public static function getOverviewOfRegisteredWebhooks(array $queryParams = []): * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Webhooks/registernewwebhook + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Webhooks/registernewwebhook */ public static function registerNewWebhook( array|RegisterNewWebhookRequest $requestBody, @@ -5808,7 +6313,7 @@ public static function registerNewWebhook( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Webhooks/getdetailofregisteredwebhooks + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Webhooks/getdetailofregisteredwebhooks */ public static function getDetailOfRegisteredWebhooks(string $id, array $queryParams = []): ResponseInterface { @@ -5832,7 +6337,7 @@ public static function getDetailOfRegisteredWebhooks(string $id, array $queryPar * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Webhooks/updateexistingwebhook + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Webhooks/updateexistingwebhook */ public static function updateExistingWebhook( string $id, @@ -5858,7 +6363,7 @@ public static function updateExistingWebhook( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Webhooks/deleteregisteredwebhook + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Webhooks/deleteregisteredwebhook */ public static function deleteRegisteredWebhook(string $id, array $queryParams = []): ResponseInterface { @@ -5879,7 +6384,7 @@ public static function deleteRegisteredWebhook(string $id, array $queryParams = * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Webhooks/generatewebhooksignaturekey + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Webhooks/generatewebhooksignaturekey */ public static function generateWebhookSignatureKey(array $queryParams = []): ResponseInterface { @@ -5905,7 +6410,7 @@ public static function generateWebhookSignatureKey(array $queryParams = []): Res * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Webhooks/getwebhooknotification + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Webhooks/getwebhooknotification */ public static function getWebhookNotification(array $queryParams = []): ResponseInterface { @@ -5925,7 +6430,7 @@ public static function getWebhookNotification(array $queryParams = []): Response * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Shipping-methods/getlistofshippingmethods + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Shipping-methods/getlistofshippingmethods */ public static function getListOfShippingMethods(array $queryParams = []): ResponseInterface { @@ -5947,7 +6452,7 @@ public static function getListOfShippingMethods(array $queryParams = []): Respon * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Shipping-methods/createshippingmethod + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Shipping-methods/createshippingmethod */ public static function createShippingMethod( array|CreateShippingMethodRequest $requestBody, @@ -5972,7 +6477,7 @@ public static function createShippingMethod( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Shipping-requests/getshippingrequestforcartdetails + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Shipping-requests/getshippingrequestforcartdetails */ public static function getShippingRequestForCartDetails( string $shippingRequestCode, @@ -6001,7 +6506,7 @@ public static function getShippingRequestForCartDetails( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Shipping-requests/updateshippingdata + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Shipping-requests/updateshippingdata */ public static function updateShippingData( string $shippingRequestCode, @@ -6030,7 +6535,7 @@ public static function updateShippingData( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Shipping-requests/getshippingrequestforgettingorderstatus + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Shipping-requests/getshippingrequestforgettingorderstatus */ public static function getShippingRequestForGettingOrderStatus( string $shippingRequestCode, @@ -6055,7 +6560,7 @@ public static function getShippingRequestForGettingOrderStatus( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Payment-methods/getlistingofpaymentmethods + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Payment-methods/getlistingofpaymentmethods */ public static function getListingOfPaymentMethods(array $queryParams = []): ResponseInterface { @@ -6077,7 +6582,7 @@ public static function getListingOfPaymentMethods(array $queryParams = []): Resp * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Payment-methods/createpaymentmethod + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Payment-methods/createpaymentmethod */ public static function createPaymentMethod( array|CreatePaymentMethodRequest $requestBody, @@ -6101,7 +6606,7 @@ public static function createPaymentMethod( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Payment-methods/deletepaymentmethod + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Payment-methods/deletepaymentmethod */ public static function deletePaymentMethod(string $guid, array $queryParams = []): ResponseInterface { @@ -6125,7 +6630,7 @@ public static function deletePaymentMethod(string $guid, array $queryParams = [] * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Unsubscribed-emails/getlistingofunsubscribedemails + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Unsubscribed-emails/getlistingofunsubscribedemails */ public static function getListingOfUnsubscribedEmails(array $queryParams = []): ResponseInterface { @@ -6147,7 +6652,7 @@ public static function getListingOfUnsubscribedEmails(array $queryParams = []): * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Unsubscribed-emails/createunsubscribedemail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Unsubscribed-emails/createunsubscribedemail */ public static function createUnsubscribedEmail( array|CreateUnsubscribedEmailRequest $requestBody, @@ -6170,7 +6675,7 @@ public static function createUnsubscribedEmail( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/E-mail-distribution-lists/getlistingofemaildistributionlists + * @see https://api.docs.shoptet.com/shoptet-api/openapi/E-mail-distribution-lists/getlistingofemaildistributionlists */ public static function getListingOfEmailDistributionLists(array $queryParams = []): ResponseInterface { @@ -6192,7 +6697,7 @@ public static function getListingOfEmailDistributionLists(array $queryParams = [ * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/E-mail-distribution-lists/createemaildistributionlist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/E-mail-distribution-lists/createemaildistributionlist */ public static function createEmailDistributionList( array|CreateEmailDistributionListRequest $requestBody, @@ -6218,7 +6723,7 @@ public static function createEmailDistributionList( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/E-mail-distribution-lists/getdetailofemaildistributionlist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/E-mail-distribution-lists/getdetailofemaildistributionlist */ public static function getDetailOfEmailDistributionList(string $code, array $queryParams = []): ResponseInterface { @@ -6242,7 +6747,7 @@ public static function getDetailOfEmailDistributionList(string $code, array $que * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/E-mail-distribution-lists/createemailsdistributionlist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/E-mail-distribution-lists/createemailsdistributionlist */ public static function createEmailsDistributionList( string $code, @@ -6272,7 +6777,7 @@ public static function createEmailsDistributionList( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/E-mail-distribution-lists/getlastchangesindistributionlist + * @see https://api.docs.shoptet.com/shoptet-api/openapi/E-mail-distribution-lists/getlastchangesindistributionlist */ public static function getLastChangesInDistributionList(string $code, array $queryParams): ResponseInterface { @@ -6301,7 +6806,7 @@ public static function getLastChangesInDistributionList(string $code, array $que * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/getlistofdiscountcoupons + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/getlistofdiscountcoupons */ public static function getListOfDiscountCoupons(array $queryParams = []): ResponseInterface { @@ -6323,7 +6828,7 @@ public static function getListOfDiscountCoupons(array $queryParams = []): Respon * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/creatediscountcoupons + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/creatediscountcoupons */ public static function createDiscountCoupons( array|CreateDiscountCouponsRequest $requestBody, @@ -6348,7 +6853,7 @@ public static function createDiscountCoupons( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/bulkdeletediscountcoupons + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/bulkdeletediscountcoupons */ public static function bulkDeleteDiscountCoupons( array|BulkDeleteDiscountCouponsRequest $requestBody, @@ -6382,7 +6887,7 @@ public static function bulkDeleteDiscountCoupons( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/getlistofalldiscountcoupons + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/getlistofalldiscountcoupons */ public static function getListOfAllDiscountCoupons(array $queryParams): ResponseInterface { @@ -6403,7 +6908,7 @@ public static function getListOfAllDiscountCoupons(array $queryParams): Response * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/getdetailofdiscountcoupon + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/getdetailofdiscountcoupon */ public static function getDetailOfDiscountCoupon(string $code, array $queryParams = []): ResponseInterface { @@ -6425,7 +6930,7 @@ public static function getDetailOfDiscountCoupon(string $code, array $queryParam * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/deletediscountcoupon + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/deletediscountcoupon */ public static function deleteDiscountCoupon(string $code, array $queryParams = []): ResponseInterface { @@ -6448,7 +6953,7 @@ public static function deleteDiscountCoupon(string $code, array $queryParams = [ * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/creatediscountcouponsset + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/creatediscountcouponsset */ public static function createDiscountCouponsSet( array|CreateDiscountCouponsSetRequest $requestBody, @@ -6475,7 +6980,7 @@ public static function createDiscountCouponsSet( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/updatediscountcouponsusage + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/updatediscountcouponsusage */ public static function updateDiscountCouponsUsage( string $code, @@ -6500,7 +7005,7 @@ public static function updateDiscountCouponsUsage( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/gettemplatesofdiscountcoupons + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/gettemplatesofdiscountcoupons */ public static function getTemplatesOfDiscountCoupons(array $queryParams = []): ResponseInterface { @@ -6522,7 +7027,7 @@ public static function getTemplatesOfDiscountCoupons(array $queryParams = []): R * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/creatediscountcouponstemplate + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/creatediscountcouponstemplate */ public static function createDiscountCouponsTemplate( array|CreateDiscountCouponsTemplateRequest $requestBody, @@ -6546,7 +7051,7 @@ public static function createDiscountCouponsTemplate( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Discount-coupons/deletediscountcouponstemplate + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discount-coupons/deletediscountcouponstemplate */ public static function deleteDiscountCouponsTemplate(string $guid, array $queryParams = []): ResponseInterface { @@ -6572,7 +7077,7 @@ public static function deleteDiscountCouponsTemplate(string $guid, array $queryP * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/XY-discounts/getlistofxydiscounts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/getlistofxydiscounts */ public static function getListOfXYDiscounts(array $queryParams = []): ResponseInterface { @@ -6594,7 +7099,7 @@ public static function getListOfXYDiscounts(array $queryParams = []): ResponseIn * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/XY-discounts/createxydiscount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/createxydiscount */ public static function createXYDiscount( array|CreateXYDiscountRequest $requestBody, @@ -6618,7 +7123,7 @@ public static function createXYDiscount( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/XY-discounts/getdetailofxydiscounts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/getdetailofxydiscounts */ public static function getDetailOfXYDiscounts(string $id, array $queryParams = []): ResponseInterface { @@ -6642,7 +7147,7 @@ public static function getDetailOfXYDiscounts(string $id, array $queryParams = [ * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/XY-discounts/updatexydiscount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/updatexydiscount */ public static function updateXYDiscount( string $id, @@ -6668,7 +7173,7 @@ public static function updateXYDiscount( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/XY-discounts/deletexydiscount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/deletexydiscount */ public static function deleteXYDiscount(string $id, array $queryParams = []): ResponseInterface { @@ -6689,7 +7194,7 @@ public static function deleteXYDiscount(string $id, array $queryParams = []): Re * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/XY-discounts/getxydiscountssettings + * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/getxydiscountssettings */ public static function getXYDiscountsSettings(array $queryParams = []): ResponseInterface { @@ -6711,7 +7216,7 @@ public static function getXYDiscountsSettings(array $queryParams = []): Response * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/XY-discounts/updatexydiscountsettings + * @see https://api.docs.shoptet.com/shoptet-api/openapi/XY-discounts/updatexydiscountsettings */ public static function updateXYDiscountSettings( array|UpdateXYDiscountSettingsRequest $requestBody, @@ -6742,7 +7247,7 @@ public static function updateXYDiscountSettings( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Quantity-discounts/getlistofquantitydiscounts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Quantity-discounts/getlistofquantitydiscounts */ public static function getListOfQuantityDiscounts(array $queryParams = []): ResponseInterface { @@ -6764,7 +7269,7 @@ public static function getListOfQuantityDiscounts(array $queryParams = []): Resp * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Quantity-discounts/createquantitydiscount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Quantity-discounts/createquantitydiscount */ public static function createQuantityDiscount( array|CreateQuantityDiscountRequest $requestBody, @@ -6793,7 +7298,7 @@ public static function createQuantityDiscount( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Quantity-discounts/getlistofallquantitydiscounts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Quantity-discounts/getlistofallquantitydiscounts */ public static function getListOfAllQuantityDiscounts(array $queryParams = []): ResponseInterface { @@ -6814,7 +7319,7 @@ public static function getListOfAllQuantityDiscounts(array $queryParams = []): R * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Quantity-discounts/getdetailofquantitydiscounts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Quantity-discounts/getdetailofquantitydiscounts */ public static function getDetailOfQuantityDiscounts(string $id, array $queryParams = []): ResponseInterface { @@ -6838,7 +7343,7 @@ public static function getDetailOfQuantityDiscounts(string $id, array $queryPara * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Quantity-discounts/updatequantitydiscount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Quantity-discounts/updatequantitydiscount */ public static function updateQuantityDiscount( string $id, @@ -6864,7 +7369,7 @@ public static function updateQuantityDiscount( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Quantity-discounts/deletequantitydiscount + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Quantity-discounts/deletequantitydiscount */ public static function deleteQuantityDiscount(string $id, array $queryParams = []): ResponseInterface { @@ -6880,6 +7385,7 @@ public static function deleteQuantityDiscount(string $id, array $queryParams = [ * language?: string, * page?: int, * itemsPerPage?: int, + * customerGroupCode?: string, * } $queryParams * * @return ResponseInterface @@ -6887,7 +7393,29 @@ public static function deleteQuantityDiscount(string $id, array $queryParams = [ * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Articles/getlistofarticles + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Volume-discounts/getlistofvolumediscounts + */ + public static function getListOfVolumeDiscounts(array $queryParams = []): ResponseInterface + { + return self::getEndpointFactory() + ->createEndpoint(GetListOfVolumeDiscounts::class) + ->setQueryParams($queryParams) + ->execute(); + } + + /** + * @param array{ + * language?: string, + * page?: int, + * itemsPerPage?: int, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/getlistofarticles */ public static function getListOfArticles(array $queryParams = []): ResponseInterface { @@ -6909,7 +7437,7 @@ public static function getListOfArticles(array $queryParams = []): ResponseInter * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Articles/createarticle + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/createarticle */ public static function createArticle( array|CreateArticleRequest $requestBody, @@ -6940,7 +7468,7 @@ public static function createArticle( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Articles/getlistallarticles + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/getlistallarticles */ public static function getListAllArticles(array $queryParams = []): ResponseInterface { @@ -6961,7 +7489,7 @@ public static function getListAllArticles(array $queryParams = []): ResponseInte * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Articles/getdetailofarticle + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/getdetailofarticle */ public static function getDetailOfArticle(string $articleId, array $queryParams = []): ResponseInterface { @@ -6985,7 +7513,7 @@ public static function getDetailOfArticle(string $articleId, array $queryParams * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Articles/updatearticle + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/updatearticle */ public static function updateArticle( string $articleId, @@ -7011,7 +7539,7 @@ public static function updateArticle( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Articles/deletearticle + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/deletearticle */ public static function deleteArticle(string $articleId, array $queryParams = []): ResponseInterface { @@ -7032,7 +7560,7 @@ public static function deleteArticle(string $articleId, array $queryParams = []) * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Articles/getlistofarticlesections + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/getlistofarticlesections */ public static function getListOfArticleSections(array $queryParams = []): ResponseInterface { @@ -7054,7 +7582,7 @@ public static function getListOfArticleSections(array $queryParams = []): Respon * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Articles/createarticlesection + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/createarticlesection */ public static function createArticleSection( array|CreateArticleSectionRequest $requestBody, @@ -7078,7 +7606,7 @@ public static function createArticleSection( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Articles/getdetailofarticlesection + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/getdetailofarticlesection */ public static function getDetailOfArticleSection( string $articleSectionId, @@ -7104,7 +7632,7 @@ public static function getDetailOfArticleSection( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Articles/updatearticlesection + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/updatearticlesection */ public static function updateArticleSection( string $articleSectionId, @@ -7131,7 +7659,7 @@ public static function updateArticleSection( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Articles/deletearticlesection + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Articles/deletearticlesection */ public static function deleteArticleSection(string $articleSectionId, array $queryParams = []): ResponseInterface { @@ -7154,7 +7682,7 @@ public static function deleteArticleSection(string $articleSectionId, array $que * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Pages/getlistofpages + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Pages/getlistofpages */ public static function getListOfPages(array $queryParams = []): ResponseInterface { @@ -7164,6 +7692,31 @@ public static function getListOfPages(array $queryParams = []): ResponseInterfac ->execute(); } + /** + * @param array|CreatePageRequest $requestBody + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * @throws ReflectionException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Pages/createpage + */ + public static function createPage( + array|CreatePageRequest $requestBody, + array $queryParams = [], + ): ResponseInterface { + return self::getEndpointFactory() + ->createEndpoint(CreatePage::class) + ->setBody($requestBody) + ->setQueryParams($queryParams) + ->execute(); + } + /** * @param string $pageId [1] page ID * @param array{ @@ -7175,7 +7728,7 @@ public static function getListOfPages(array $queryParams = []): ResponseInterfac * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Pages/getdetailofpage + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Pages/getdetailofpage */ public static function getDetailOfPage(string $pageId, array $queryParams = []): ResponseInterface { @@ -7186,6 +7739,56 @@ public static function getDetailOfPage(string $pageId, array $queryParams = []): ->execute(); } + /** + * @param string $pageId [1] page ID + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Pages/deletepage + */ + public static function deletePage(string $pageId, array $queryParams = []): ResponseInterface + { + return self::getEndpointFactory() + ->createEndpoint(DeletePage::class) + ->addPathParam('pageId', $pageId) + ->setQueryParams($queryParams) + ->execute(); + } + + /** + * @param string $pageId [1] page ID + * @param array|UpdatePageRequest $requestBody + * @param array{ + * language?: string, + * } $queryParams + * + * @return ResponseInterface + * + * @throws LogicException + * @throws RuntimeException + * @throws ReflectionException + * + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Pages/updatepage + */ + public static function updatePage( + string $pageId, + array|UpdatePageRequest $requestBody, + array $queryParams = [], + ): ResponseInterface { + return self::getEndpointFactory() + ->createEndpoint(UpdatePage::class) + ->addPathParam('pageId', $pageId) + ->setBody($requestBody) + ->setQueryParams($queryParams) + ->execute(); + } + /** * @param array{ * language?: string, @@ -7202,7 +7805,7 @@ public static function getDetailOfPage(string $pageId, array $queryParams = []): * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Discussions/getlistofdiscussionposts + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Discussions/getlistofdiscussionposts */ public static function getListOfDiscussionPosts(array $queryParams = []): ResponseInterface { @@ -7227,7 +7830,7 @@ public static function getListOfDiscussionPosts(array $queryParams = []): Respon * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Job-endpoints/getlistofjobs + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Jobs/getlistofjobs */ public static function getListOfJobs(array $queryParams = []): ResponseInterface { @@ -7248,7 +7851,7 @@ public static function getListOfJobs(array $queryParams = []): ResponseInterface * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Job-endpoints/getjobdetail + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Jobs/getjobdetail */ public static function getJobDetail(string $jobId, array $queryParams = []): ResponseInterface { @@ -7269,7 +7872,7 @@ public static function getJobDetail(string $jobId, array $queryParams = []): Res * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/Files/getlistofuploadedfiles + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Files/getlistofuploadedfiles */ public static function getListOfUploadedFiles(array $queryParams = []): ResponseInterface { @@ -7291,7 +7894,7 @@ public static function getListOfUploadedFiles(array $queryParams = []): Response * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Files/uploadfiles + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Files/uploadfiles */ public static function uploadFiles( array|UploadFilesRequest $requestBody, @@ -7316,7 +7919,7 @@ public static function uploadFiles( * @throws RuntimeException * @throws ReflectionException * - * @see https://api.docs.shoptet.com/openapi/Files/uploadfile + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Files/uploadfile */ public static function uploadFile( array|UploadFileRequest $requestBody, @@ -7340,7 +7943,7 @@ public static function uploadFile( * @throws LogicException * @throws RuntimeException * - * @see https://api.docs.shoptet.com/openapi/System-endpoints/getlistofavailableendpoints + * @see https://api.docs.shoptet.com/shoptet-api/openapi/Endpoints/getlistofavailableendpoints */ public static function getListOfAvailableEndpoints(array $queryParams = []): ResponseInterface { diff --git a/src/Webhook/Event.php b/src/Webhook/Event.php old mode 100644 new mode 100755 index ac07cff..5cb6313 --- a/src/Webhook/Event.php +++ b/src/Webhook/Event.php @@ -54,6 +54,7 @@ enum Event: string case DISCOUNT_COUPON_MASS_CREATE = 'discountCoupon:massCreate'; case DISCOUNT_COUPON_MASS_DELETE = 'discountCoupon:massDelete'; case INVOICE_MASS_UPDATE = 'invoice:massUpdate'; + case ORDER_MASS_CREATE = 'order:massCreate'; case ORDER_MASS_UPDATE = 'order:massUpdate'; case ADDON_SUSPEND = 'addon:suspend'; case ADDON_APPROVE = 'addon:approve'; diff --git a/tests/Unit/Authorization/AuthorizationTest.php b/tests/Unit/Authorization/AuthorizationTest.php old mode 100644 new mode 100755 diff --git a/tests/Unit/Authorization/OAuthTest.php b/tests/Unit/Authorization/OAuthTest.php old mode 100644 new mode 100755 diff --git a/tests/Unit/Factory/DummyEntity.php b/tests/Unit/Factory/DummyEntity.php old mode 100644 new mode 100755 diff --git a/tests/Unit/Factory/DummySubEntity.php b/tests/Unit/Factory/DummySubEntity.php old mode 100644 new mode 100755 diff --git a/tests/Unit/Factory/EndpointFactoryTest.php b/tests/Unit/Factory/EndpointFactoryTest.php old mode 100644 new mode 100755 diff --git a/tests/Unit/Factory/EntityFactoryTest.php b/tests/Unit/Factory/EntityFactoryTest.php old mode 100644 new mode 100755 diff --git a/tests/Unit/FakeResponseFactory.php b/tests/Unit/FakeResponseFactory.php old mode 100644 new mode 100755 diff --git a/tests/Unit/Helper/DummyValueObject.php b/tests/Unit/Helper/DummyValueObject.php old mode 100644 new mode 100755 diff --git a/tests/Unit/Helper/StringConverterTest.php b/tests/Unit/Helper/StringConverterTest.php old mode 100644 new mode 100755 diff --git a/tests/Unit/TestHttpClient.php b/tests/Unit/TestHttpClient.php old mode 100644 new mode 100755