Skip to content

Commit

Permalink
Update models to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
casperbakker committed Sep 18, 2024
1 parent 60ace51 commit 9d3b8d5
Show file tree
Hide file tree
Showing 9 changed files with 96 additions and 9 deletions.
12 changes: 12 additions & 0 deletions src/Enum/GetProductCategoriesAcceptLanguage.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

namespace Picqer\BolRetailerV10\Enum;

// This class is auto generated by OpenApi\ModelGenerator
enum GetProductCategoriesAcceptLanguage: string
{
case NL = 'nl';
case NL_BE = 'nl-BE';
case NL_NL = 'nl-NL';
case FR_BE = 'fr-BE';
}
2 changes: 1 addition & 1 deletion src/Model/CreateOfferRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,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;

Expand Down
3 changes: 2 additions & 1 deletion src/Model/OrderOffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ public function getModelDefinition(): array
public $offerId;

/**
* @var string A user-defined reference tied to the offer upon creating the offer.
* @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 100 characters.
*/
public $reference;
}
28 changes: 28 additions & 0 deletions src/Model/ProductCategoriesResponse.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace Picqer\BolRetailerV10\Model;

use Picqer\BolRetailerV10\Enum;

// This class is auto generated by OpenApi\ModelGenerator
class ProductCategoriesResponse extends AbstractModel
{
/**
* Returns the definition of the model: an associative array with field names as key and
* field definition as value. The field definition contains of
* model: Model class or null if it is a scalar type
* array: Boolean whether it is an array
* @return array The model definition
*/
public function getModelDefinition(): array
{
return [
'categories' => [ 'model' => ProductCategory::class, 'enum' => null, 'array' => true ],
];
}

/**
* @var ProductCategory[] A list of product categories and its children.
*/
public $categories = [];
}
46 changes: 46 additions & 0 deletions src/Model/ProductCategory.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<?php

namespace Picqer\BolRetailerV10\Model;

use Picqer\BolRetailerV10\Enum;

// This class is auto generated by OpenApi\ModelGenerator
class ProductCategory extends AbstractModel
{
/**
* Returns the definition of the model: an associative array with field names as key and
* field definition as value. The field definition contains of
* model: Model class or null if it is a scalar type
* array: Boolean whether it is an array
* @return array The model definition
*/
public function getModelDefinition(): array
{
return [
'categoryId' => [ '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 = [];
}
6 changes: 3 additions & 3 deletions src/Model/ProductListFiltersRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ],
];
}

Expand All @@ -37,10 +37,10 @@ public function getModelDefinition(): array
/**
* @var string
*/
public $search;
public $category;

/**
* @var string
*/
public $category;
public $search;
}
2 changes: 1 addition & 1 deletion src/Model/RetailerOffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion src/Model/UpdateOfferRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
4 changes: 2 additions & 2 deletions src/OpenApi/retailer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8961,10 +8961,10 @@
"type": "string",
"writeOnly": true
},
"search": {
"category": {
"type": "string"
},
"category": {
"search": {
"type": "string"
}
}
Expand Down

0 comments on commit 9d3b8d5

Please sign in to comment.