Skip to content

Commit 819f346

Browse files
committed
Update to latest OpenApi specs
1 parent ac78f26 commit 819f346

File tree

5 files changed

+45
-11
lines changed

5 files changed

+45
-11
lines changed

src/Client.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,10 @@ public function updateOfferStock(string $offerId, Model\UpdateOfferStockRequest
729729
* @param int|null $page The requested page number with a page size of 50 items.
730730
* @param Enum\GetOrdersFulfilmentMethod|null $fulfilmentMethod Fulfilled by the retailer (FBR) or fulfilled by
731731
* bol.com (FBB). In order to retrieve both FBR and FBB orders, ALL can be used as a parameter.
732-
* @param Enum\GetOrdersStatus|null $status To filter on order status. You can filter on either all orders
733-
* independent from their status, open orders (excluding shipped and cancelled orders), and shipped orders.
732+
* @param Enum\GetOrdersStatus|null $status You can filter orders based on their status with the following options:
733+
* all orders, which include every order regardless of its current status; open orders, which show only the active
734+
* orders excluding those that have been shipped or cancelled; and shipped orders, which display only the orders
735+
* that have been shipped.
734736
* @param int|null $changeIntervalMinute To filter on the period in minutes during which the latest change was
735737
* performed on an order item.
736738
* @param string|null $latestChangeDate To filter on the date on which the latest change was performed on an order
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Picqer\BolRetailerV10\Enum;
4+
5+
// This class is auto generated by OpenApi\ModelGenerator
6+
enum ReducedOrderItemFulfilmentMethod: string
7+
{
8+
case FBR = 'FBR';
9+
case FBB = 'FBB';
10+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
namespace Picqer\BolRetailerV10\Enum;
4+
5+
// This class is auto generated by OpenApi\ModelGenerator
6+
enum ReducedOrderItemFulfilmentStatus: string
7+
{
8+
case OPEN = 'OPEN';
9+
case HANDLED = 'HANDLED';
10+
}

src/Model/ReducedOrderItem.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ public function getModelDefinition(): array
1919
return [
2020
'orderItemId' => [ 'model' => null, 'enum' => null, 'array' => false ],
2121
'ean' => [ 'model' => null, 'enum' => null, 'array' => false ],
22-
'fulfilmentMethod' => [ 'model' => null, 'enum' => null, 'array' => false ],
23-
'fulfilmentStatus' => [ 'model' => null, 'enum' => null, 'array' => false ],
22+
'fulfilmentMethod' => [ 'model' => null, 'enum' => Enum\ReducedOrderItemFulfilmentMethod::class, 'array' => false ],
23+
'fulfilmentStatus' => [ 'model' => null, 'enum' => Enum\ReducedOrderItemFulfilmentStatus::class, 'array' => false ],
2424
'quantity' => [ 'model' => null, 'enum' => null, 'array' => false ],
2525
'quantityShipped' => [ 'model' => null, 'enum' => null, 'array' => false ],
2626
'quantityCancelled' => [ 'model' => null, 'enum' => null, 'array' => false ],
@@ -41,13 +41,15 @@ public function getModelDefinition(): array
4141
public $ean;
4242

4343
/**
44-
* @var string The fulfilment method. Fulfilled by the retailer (FBR) or fulfilled by bol.com (FBB).
44+
* @var Enum\ReducedOrderItemFulfilmentMethod The fulfilment method. Fulfilled by the retailer (FBR) or fulfilled by
45+
* bol.com (FBB).
4546
*/
4647
public $fulfilmentMethod;
4748

4849
/**
49-
* @var string To filter on order status. You can filter on either all orders independent from their status, open
50-
* orders (excluding shipped and cancelled orders), and shipped orders.
50+
* @var Enum\ReducedOrderItemFulfilmentStatus This field indicates the processing state of an order. It can have two
51+
* values: "OPEN," which corresponds to active order items excluding those that have been shipped or cancelled, and
52+
* "HANDLED," which means the order item has either been shipped or cancelled.
5153
*/
5254
public $fulfilmentStatus;
5355

src/OpenApi/retailer.json

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1638,6 +1638,7 @@
16381638
"required": false,
16391639
"schema": {
16401640
"type": "string",
1641+
"default": "FBR",
16411642
"enum": [
16421643
"FBR",
16431644
"FBB",
@@ -1648,10 +1649,11 @@
16481649
{
16491650
"name": "status",
16501651
"in": "query",
1651-
"description": "To filter on order status. You can filter on either all orders independent from their status, open orders (excluding shipped and cancelled orders), and shipped orders.",
1652+
"description": "You can filter orders based on their status with the following options: all orders, which include every order regardless of its current status; open orders, which show only the active orders excluding those that have been shipped or cancelled; and shipped orders, which display only the orders that have been shipped.",
16521653
"required": false,
16531654
"schema": {
16541655
"type": "string",
1656+
"default": "OPEN",
16551657
"enum": [
16561658
"OPEN",
16571659
"SHIPPED",
@@ -9108,12 +9110,20 @@
91089110
"fulfilmentMethod": {
91099111
"type": "string",
91109112
"description": "The fulfilment method. Fulfilled by the retailer (FBR) or fulfilled by bol.com (FBB).",
9111-
"example": "FBR"
9113+
"example": "FBR",
9114+
"enum": [
9115+
"FBR",
9116+
"FBB"
9117+
]
91129118
},
91139119
"fulfilmentStatus": {
91149120
"type": "string",
9115-
"description": "To filter on order status. You can filter on either all orders independent from their status, open orders (excluding shipped and cancelled orders), and shipped orders.",
9116-
"example": "OPEN"
9121+
"description": "This field indicates the processing state of an order. It can have two values: \"OPEN,\" which corresponds to active order items excluding those that have been shipped or cancelled, and \"HANDLED,\" which means the order item has either been shipped or cancelled.",
9122+
"example": "OPEN",
9123+
"enum": [
9124+
"OPEN",
9125+
"HANDLED"
9126+
]
91179127
},
91189128
"quantity": {
91199129
"type": "integer",

0 commit comments

Comments
 (0)