Skip to content

Commit

Permalink
Update client to specs
Browse files Browse the repository at this point in the history
  • Loading branch information
casperbakker committed Nov 11, 2024
1 parent 9d21020 commit 1307aae
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 7 deletions.
8 changes: 8 additions & 0 deletions src/Model/CreateOfferRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ],
Expand All @@ -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
*/
Expand Down
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 ],
'category' => [ 'model' => null, 'enum' => null, 'array' => false ],
'search' => [ 'model' => null, 'enum' => null, 'array' => false ],
'category' => [ 'model' => null, 'enum' => null, 'array' => false ],
];
}

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

/**
* @var string
*/
public $search;
public $category;
}
8 changes: 8 additions & 0 deletions src/Model/RetailerOffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ],
Expand Down Expand Up @@ -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.
Expand Down
8 changes: 8 additions & 0 deletions src/Model/UpdateOfferRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,21 @@ 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 ],
'fulfilment' => [ 'model' => Fulfilment::class, 'enum' => null, 'array' => false ],
];
}

/**
* @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.
Expand Down
21 changes: 17 additions & 4 deletions src/OpenApi/retailer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4515,7 +4515,6 @@
"enum": [
"PROCESS_STATUS",
"SHIPMENT",
"OFFER",
"PRICE_STAR_BOUNDARY",
"COMPETING_OFFER"
]
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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"
},
Expand Down Expand Up @@ -6413,7 +6422,6 @@
"TEST",
"PROCESS_STATUS",
"SHIPMENT",
"OFFER",
"PRICE_STAR_BOUNDARY",
"COMPETING_OFFER"
]
Expand Down Expand Up @@ -8961,10 +8969,10 @@
"type": "string",
"writeOnly": true
},
"category": {
"search": {
"type": "string"
},
"search": {
"category": {
"type": "string"
}
}
Expand Down Expand Up @@ -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.",
Expand Down

0 comments on commit 1307aae

Please sign in to comment.