From 1307aae5ce5fd5e7bdb5199c0af1da319c3bb99d Mon Sep 17 00:00:00 2001 From: Casper Bakker Date: Mon, 11 Nov 2024 15:47:49 +0100 Subject: [PATCH] Update client to specs --- src/Model/CreateOfferRequest.php | 8 ++++++++ src/Model/ProductListFiltersRequest.php | 6 +++--- src/Model/RetailerOffer.php | 8 ++++++++ src/Model/UpdateOfferRequest.php | 8 ++++++++ src/OpenApi/retailer.json | 21 +++++++++++++++++---- 5 files changed, 44 insertions(+), 7 deletions(-) diff --git a/src/Model/CreateOfferRequest.php b/src/Model/CreateOfferRequest.php index 81842dc..f7b5d0a 100644 --- a/src/Model/CreateOfferRequest.php +++ b/src/Model/CreateOfferRequest.php @@ -18,6 +18,7 @@ public function getModelDefinition(): array { return [ 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'economicOperatorId' => [ 'model' => null, 'enum' => null, 'array' => false ], 'condition' => [ 'model' => Condition::class, 'enum' => null, 'array' => false ], 'reference' => [ 'model' => null, 'enum' => null, 'array' => false ], 'onHoldByRetailer' => [ 'model' => null, 'enum' => null, 'array' => false ], @@ -34,6 +35,13 @@ public function getModelDefinition(): array */ public $ean; + /** + * @var string An identifier referring to the Economic operator entity (manufacturer, authorized party, importer, + * distributor or other natural person or legal entity for whom the obligations apply with regards to the + * manufacturing, or making available on the market of the product in line with the applicable EU laws). + */ + public $economicOperatorId; + /** * @var Condition */ diff --git a/src/Model/ProductListFiltersRequest.php b/src/Model/ProductListFiltersRequest.php index 28ca4e8..feb0db1 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 ], - 'category' => [ 'model' => null, 'enum' => null, 'array' => false ], 'search' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'category' => [ 'model' => null, 'enum' => null, 'array' => false ], ]; } @@ -37,10 +37,10 @@ public function getModelDefinition(): array /** * @var string */ - public $category; + public $search; /** * @var string */ - public $search; + public $category; } diff --git a/src/Model/RetailerOffer.php b/src/Model/RetailerOffer.php index 266e37d..eec6e7b 100644 --- a/src/Model/RetailerOffer.php +++ b/src/Model/RetailerOffer.php @@ -21,6 +21,7 @@ public function getModelDefinition(): array 'ean' => [ 'model' => null, 'enum' => null, 'array' => false ], 'reference' => [ 'model' => null, 'enum' => null, 'array' => false ], 'onHoldByRetailer' => [ 'model' => null, 'enum' => null, 'array' => false ], + 'economicOperatorId' => [ 'model' => null, 'enum' => null, 'array' => false ], 'unknownProductTitle' => [ 'model' => null, 'enum' => null, 'array' => false ], 'pricing' => [ 'model' => Pricing::class, 'enum' => null, 'array' => false ], 'stock' => [ 'model' => Stock::class, 'enum' => null, 'array' => false ], @@ -56,6 +57,13 @@ public function getModelDefinition(): array */ public $onHoldByRetailer; + /** + * @var string An identifier referring to the Economic operator entity (manufacturer, authorized party, importer, + * distributor or other natural person or legal entity for whom the obligations apply with regards to the + * manufacturing, or making available on the market of the product in line with the applicable EU laws). + */ + public $economicOperatorId; + /** * @var string In case the item is not known to bol.com you can use this field to identify this particular product. * Note: in case the product is known to bol.com, the unknown product title will not be stored. diff --git a/src/Model/UpdateOfferRequest.php b/src/Model/UpdateOfferRequest.php index 808378e..8ffea9a 100644 --- a/src/Model/UpdateOfferRequest.php +++ b/src/Model/UpdateOfferRequest.php @@ -17,6 +17,7 @@ class UpdateOfferRequest extends AbstractModel public function getModelDefinition(): array { return [ + 'economicOperatorId' => [ 'model' => null, 'enum' => null, 'array' => false ], 'reference' => [ 'model' => null, 'enum' => null, 'array' => false ], 'onHoldByRetailer' => [ 'model' => null, 'enum' => null, 'array' => false ], 'unknownProductTitle' => [ 'model' => null, 'enum' => null, 'array' => false ], @@ -24,6 +25,13 @@ public function getModelDefinition(): array ]; } + /** + * @var string An identifier referring to the Economic operator entity (manufacturer, authorized party, importer, + * distributor or other natural person or legal entity for whom the obligations apply with regards to the + * manufacturing, or making available on the market of the product in line with the applicable EU laws). + */ + public $economicOperatorId; + /** * @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. diff --git a/src/OpenApi/retailer.json b/src/OpenApi/retailer.json index 8812149..4a15247 100644 --- a/src/OpenApi/retailer.json +++ b/src/OpenApi/retailer.json @@ -4515,7 +4515,6 @@ "enum": [ "PROCESS_STATUS", "SHIPMENT", - "OFFER", "PRICE_STAR_BOUNDARY", "COMPETING_OFFER" ] @@ -4731,6 +4730,11 @@ ], "type": "object", "properties": { + "economicOperatorId": { + "type": "string", + "description": "An identifier referring to the Economic operator entity (manufacturer, authorized party, importer, distributor or other natural person or legal entity for whom the obligations apply with regards to the manufacturing, or making available on the market of the product in line with the applicable EU laws).", + "example": "90bfddc5-a6d0-4986-9253-407b3a6850ca" + }, "reference": { "maxLength": 100, "minLength": 0, @@ -5714,6 +5718,11 @@ "description": "The EAN number associated with this product. Note: in case an ISBN is provided, the ISBN will be replaced with the actual EAN belonging to this ISBN.", "example": "0000007740404" }, + "economicOperatorId": { + "type": "string", + "description": "An identifier referring to the Economic operator entity (manufacturer, authorized party, importer, distributor or other natural person or legal entity for whom the obligations apply with regards to the manufacturing, or making available on the market of the product in line with the applicable EU laws).", + "example": "90bfddc5-a6d0-4986-9253-407b3a6850ca" + }, "condition": { "$ref": "#/components/schemas/Condition" }, @@ -6413,7 +6422,6 @@ "TEST", "PROCESS_STATUS", "SHIPMENT", - "OFFER", "PRICE_STAR_BOUNDARY", "COMPETING_OFFER" ] @@ -8961,10 +8969,10 @@ "type": "string", "writeOnly": true }, - "category": { + "search": { "type": "string" }, - "search": { + "category": { "type": "string" } } @@ -9525,6 +9533,11 @@ "description": "This field specifies whether the retailer has temporarily suspended the listing of this offer on the bol.com website. When set to true, the offer becomes invisible to customers and is not available for purchase. The default setting, false, indicates that the offer is active and visible on the website. This feature is useful for managing inventory or making updates to the offer without permanently removing it from the site.", "example": false }, + "economicOperatorId": { + "type": "string", + "description": "An identifier referring to the Economic operator entity (manufacturer, authorized party, importer, distributor or other natural person or legal entity for whom the obligations apply with regards to the manufacturing, or making available on the market of the product in line with the applicable EU laws).", + "example": "90bfddc5-a6d0-4986-9253-407b3a6850ca" + }, "unknownProductTitle": { "type": "string", "description": "In case the item is not known to bol.com you can use this field to identify this particular product. Note: in case the product is known to bol.com, the unknown product title will not be stored.",