-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from WoutervanderLoopNL/develop-openapi-v3
Support new Bol.com OpenAPI V3 format
- Loading branch information
Showing
21 changed files
with
12,031 additions
and
8,646 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace Picqer\BolRetailerV10\Model; | ||
|
||
// This class is auto generated by OpenApi\ModelGenerator | ||
class CancellationRequest 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 [ | ||
'orderItems' => [ 'model' => OrderItemCancellation::class, 'array' => true ], | ||
]; | ||
} | ||
|
||
/** | ||
* @var OrderItemCancellation[] List of order items to cancel. Order item id's must belong to the same order. | ||
*/ | ||
public $orderItems = []; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
namespace Picqer\BolRetailerV10\Model; | ||
|
||
// This class is auto generated by OpenApi\ModelGenerator | ||
class ProductListFiltersRequest 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 [ | ||
'searchTerm' => [ 'model' => null, 'array' => false ], | ||
'categoryId' => [ 'model' => null, 'array' => false ], | ||
'search' => [ 'model' => null, 'array' => false ], | ||
'category' => [ 'model' => null, 'array' => false ], | ||
]; | ||
} | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $searchTerm; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $categoryId; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $search; | ||
|
||
/** | ||
* @var string | ||
*/ | ||
public $category; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<?php | ||
|
||
namespace Picqer\BolRetailerV10\Model; | ||
|
||
// This class is auto generated by OpenApi\ModelGenerator | ||
class SubscriptionRequest 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 [ | ||
'resources' => [ 'model' => null, 'array' => true ], | ||
'url' => [ 'model' => null, 'array' => false ], | ||
'subscriptionType' => [ 'model' => null, 'array' => false ], | ||
]; | ||
} | ||
|
||
/** | ||
* @var array Array of event types for which the subscription is set. Note that some event types are only available | ||
* for certain subscription types. | ||
*/ | ||
public $resources = []; | ||
|
||
/** | ||
* @var string The destination for event notifications. For WEBHOOK subscription types, this is the URL where | ||
* messages are posted to. For GCP_PUBSUB, this is the topic name. | ||
*/ | ||
public $url; | ||
|
||
/** | ||
* @var string The type of subscription. It indicates the platform where the events will be subscribed to. Be aware | ||
* that certain event types are only available for specific types. | ||
*/ | ||
public $subscriptionType; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.