Skip to content

Commit

Permalink
Update to latest OpenApi specs
Browse files Browse the repository at this point in the history
  • Loading branch information
casperbakker committed Jul 5, 2024
1 parent ac78f26 commit 819f346
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 11 deletions.
6 changes: 4 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -729,8 +729,10 @@ public function updateOfferStock(string $offerId, Model\UpdateOfferStockRequest
* @param int|null $page The requested page number with a page size of 50 items.
* @param Enum\GetOrdersFulfilmentMethod|null $fulfilmentMethod Fulfilled by the retailer (FBR) or fulfilled by
* bol.com (FBB). In order to retrieve both FBR and FBB orders, ALL can be used as a parameter.
* @param Enum\GetOrdersStatus|null $status 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.
* @param Enum\GetOrdersStatus|null $status 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.
* @param int|null $changeIntervalMinute To filter on the period in minutes during which the latest change was
* performed on an order item.
* @param string|null $latestChangeDate To filter on the date on which the latest change was performed on an order
Expand Down
10 changes: 10 additions & 0 deletions src/Enum/ReducedOrderItemFulfilmentMethod.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Picqer\BolRetailerV10\Enum;

// This class is auto generated by OpenApi\ModelGenerator
enum ReducedOrderItemFulfilmentMethod: string
{
case FBR = 'FBR';
case FBB = 'FBB';
}
10 changes: 10 additions & 0 deletions src/Enum/ReducedOrderItemFulfilmentStatus.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

namespace Picqer\BolRetailerV10\Enum;

// This class is auto generated by OpenApi\ModelGenerator
enum ReducedOrderItemFulfilmentStatus: string
{
case OPEN = 'OPEN';
case HANDLED = 'HANDLED';
}
12 changes: 7 additions & 5 deletions src/Model/ReducedOrderItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ public function getModelDefinition(): array
return [
'orderItemId' => [ 'model' => null, 'enum' => null, 'array' => false ],
'ean' => [ 'model' => null, 'enum' => null, 'array' => false ],
'fulfilmentMethod' => [ 'model' => null, 'enum' => null, 'array' => false ],
'fulfilmentStatus' => [ 'model' => null, 'enum' => null, 'array' => false ],
'fulfilmentMethod' => [ 'model' => null, 'enum' => Enum\ReducedOrderItemFulfilmentMethod::class, 'array' => false ],
'fulfilmentStatus' => [ 'model' => null, 'enum' => Enum\ReducedOrderItemFulfilmentStatus::class, 'array' => false ],
'quantity' => [ 'model' => null, 'enum' => null, 'array' => false ],
'quantityShipped' => [ 'model' => null, 'enum' => null, 'array' => false ],
'quantityCancelled' => [ 'model' => null, 'enum' => null, 'array' => false ],
Expand All @@ -41,13 +41,15 @@ public function getModelDefinition(): array
public $ean;

/**
* @var string The fulfilment method. Fulfilled by the retailer (FBR) or fulfilled by bol.com (FBB).
* @var Enum\ReducedOrderItemFulfilmentMethod The fulfilment method. Fulfilled by the retailer (FBR) or fulfilled by
* bol.com (FBB).
*/
public $fulfilmentMethod;

/**
* @var string 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.
* @var Enum\ReducedOrderItemFulfilmentStatus 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.
*/
public $fulfilmentStatus;

Expand Down
18 changes: 14 additions & 4 deletions src/OpenApi/retailer.json
Original file line number Diff line number Diff line change
Expand Up @@ -1638,6 +1638,7 @@
"required": false,
"schema": {
"type": "string",
"default": "FBR",
"enum": [
"FBR",
"FBB",
Expand All @@ -1648,10 +1649,11 @@
{
"name": "status",
"in": "query",
"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.",
"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.",
"required": false,
"schema": {
"type": "string",
"default": "OPEN",
"enum": [
"OPEN",
"SHIPPED",
Expand Down Expand Up @@ -9108,12 +9110,20 @@
"fulfilmentMethod": {
"type": "string",
"description": "The fulfilment method. Fulfilled by the retailer (FBR) or fulfilled by bol.com (FBB).",
"example": "FBR"
"example": "FBR",
"enum": [
"FBR",
"FBB"
]
},
"fulfilmentStatus": {
"type": "string",
"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.",
"example": "OPEN"
"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.",
"example": "OPEN",
"enum": [
"OPEN",
"HANDLED"
]
},
"quantity": {
"type": "integer",
Expand Down

0 comments on commit 819f346

Please sign in to comment.