From 9d3b8d5724384310d05ebd63469d0e221f1c2377 Mon Sep 17 00:00:00 2001 From: Casper Bakker Date: Wed, 18 Sep 2024 10:35:56 +0200 Subject: [PATCH] Update models to latest version --- .../GetProductCategoriesAcceptLanguage.php | 12 +++++ src/Model/CreateOfferRequest.php | 2 +- src/Model/OrderOffer.php | 3 +- src/Model/ProductCategoriesResponse.php | 28 +++++++++++ src/Model/ProductCategory.php | 46 +++++++++++++++++++ src/Model/ProductListFiltersRequest.php | 6 +-- src/Model/RetailerOffer.php | 2 +- src/Model/UpdateOfferRequest.php | 2 +- src/OpenApi/retailer.json | 4 +- 9 files changed, 96 insertions(+), 9 deletions(-) create mode 100644 src/Enum/GetProductCategoriesAcceptLanguage.php create mode 100644 src/Model/ProductCategoriesResponse.php create mode 100644 src/Model/ProductCategory.php diff --git a/src/Enum/GetProductCategoriesAcceptLanguage.php b/src/Enum/GetProductCategoriesAcceptLanguage.php new file mode 100644 index 0000000..cd05789 --- /dev/null +++ b/src/Enum/GetProductCategoriesAcceptLanguage.php @@ -0,0 +1,12 @@ + [ 'model' => ProductCategory::class, 'enum' => null, 'array' => true ], + ]; + } + + /** + * @var ProductCategory[] A list of product categories and its children. + */ + public $categories = []; +} diff --git a/src/Model/ProductCategory.php b/src/Model/ProductCategory.php new file mode 100644 index 0000000..d0294f9 --- /dev/null +++ b/src/Model/ProductCategory.php @@ -0,0 +1,46 @@ + [ 'model' => null, 'enum' => null, 'array' => false ], + 'categoryName' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'order' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'subcategories' => [ 'model' => ProductCategory::class, 'enum' => null, 'array' => true ], + ]; + } + + /** + * @var string The id of the category. + */ + public $categoryId; + + /** + * @var string The name of the category. + */ + public $categoryName; + + /** + * @var int The order of the category in the tree. + */ + public $order; + + /** + * @var ProductCategory[] A list of product subcategories and its children. + */ + public $subcategories = []; +} diff --git a/src/Model/ProductListFiltersRequest.php b/src/Model/ProductListFiltersRequest.php index feb0db1..28ca4e8 100644 --- a/src/Model/ProductListFiltersRequest.php +++ b/src/Model/ProductListFiltersRequest.php @@ -19,8 +19,8 @@ public function getModelDefinition(): array return [ 'searchTerm' => [ 'model' => null, 'enum' => null, 'array' => false ], 'categoryId' => [ 'model' => null, 'enum' => null, 'array' => false ], - 'search' => [ 'model' => null, 'enum' => null, 'array' => false ], 'category' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'search' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } @@ -37,10 +37,10 @@ public function getModelDefinition(): array /** * @var string */ - public $search; + public $category; /** * @var string */ - public $category; + public $search; } diff --git a/src/Model/RetailerOffer.php b/src/Model/RetailerOffer.php index bc8b4aa..266e37d 100644 --- a/src/Model/RetailerOffer.php +++ b/src/Model/RetailerOffer.php @@ -44,7 +44,7 @@ public function getModelDefinition(): array /** * @var string A user-defined reference that helps you identify this particular offer when receiving data from us. - * This element can optionally be left empty and has a maximum amount of 20 characters. + * This element can optionally be left empty and has a maximum amount of 100 characters. */ public $reference; diff --git a/src/Model/UpdateOfferRequest.php b/src/Model/UpdateOfferRequest.php index 02a6cff..808378e 100644 --- a/src/Model/UpdateOfferRequest.php +++ b/src/Model/UpdateOfferRequest.php @@ -26,7 +26,7 @@ public function getModelDefinition(): array /** * @var string A user-defined reference that helps you identify this particular offer when receiving data from us. - * This element can optionally be left empty and has a maximum amount of 20 characters. + * This element can optionally be left empty and has a maximum amount of 100 characters. */ public $reference; diff --git a/src/OpenApi/retailer.json b/src/OpenApi/retailer.json index 3e24212..8812149 100644 --- a/src/OpenApi/retailer.json +++ b/src/OpenApi/retailer.json @@ -8961,10 +8961,10 @@ "type": "string", "writeOnly": true }, - "search": { + "category": { "type": "string" }, - "category": { + "search": { "type": "string" } }