-
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.
Update to latest version API definition
- Loading branch information
1 parent
04c7ad5
commit cec9569
Showing
23 changed files
with
1,000 additions
and
127 deletions.
There are no files selected for viewing
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,13 @@ | ||
<?php | ||
|
||
namespace Picqer\BolRetailerV10\Enum; | ||
|
||
// This class is auto generated by OpenApi\ModelGenerator | ||
enum GetProductRanksAcceptLanguage: string | ||
{ | ||
case NL_NL = 'nl-NL'; | ||
case NL = 'nl'; | ||
case NL_BE = 'nl-BE'; | ||
case FR = 'fr'; | ||
case FR_BE = 'fr-BE'; | ||
} |
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,10 @@ | ||
<?php | ||
|
||
namespace Picqer\BolRetailerV10\Enum; | ||
|
||
// This class is auto generated by OpenApi\ModelGenerator | ||
enum GetProductRanksType: string | ||
{ | ||
case SEARCH = 'SEARCH'; | ||
case BROWSE = 'BROWSE'; | ||
} |
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,34 @@ | ||
<?php | ||
|
||
namespace Picqer\BolRetailerV10\Model; | ||
|
||
use Picqer\BolRetailerV10\Enum; | ||
|
||
// This class is auto generated by OpenApi\ModelGenerator | ||
class BulkCommissionRatesMultiStatusResponse 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 [ | ||
'successfulQueries' => [ 'model' => CommissionSuccessfulQuery::class, 'enum' => null, 'array' => true ], | ||
'failedQueries' => [ 'model' => CommissionFailedQuery::class, 'enum' => null, 'array' => true ], | ||
]; | ||
} | ||
|
||
/** | ||
* @var CommissionSuccessfulQuery[] | ||
*/ | ||
public $successfulQueries = []; | ||
|
||
/** | ||
* @var CommissionFailedQuery[] | ||
*/ | ||
public $failedQueries = []; | ||
} |
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,40 @@ | ||
<?php | ||
|
||
namespace Picqer\BolRetailerV10\Model; | ||
|
||
use Picqer\BolRetailerV10\Enum; | ||
|
||
// This class is auto generated by OpenApi\ModelGenerator | ||
class CommissionDateRange 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 [ | ||
'startDate' => [ 'model' => null, 'enum' => null, 'array' => false ], | ||
'endDate' => [ 'model' => null, 'enum' => null, 'array' => false ], | ||
'rates' => [ 'model' => CommissionDateRate::class, 'enum' => null, 'array' => true ], | ||
]; | ||
} | ||
|
||
/** | ||
* @var string The inclusive start date (in ISO 8601 format) from which the commission applies | ||
*/ | ||
public $startDate; | ||
|
||
/** | ||
* @var string The exclusive end date (in ISO 8601 format) after which the commission no longer applies. | ||
*/ | ||
public $endDate; | ||
|
||
/** | ||
* @var CommissionDateRate[] An array of objects, each describing commission rates for a specific condition. | ||
*/ | ||
public $rates = []; | ||
} |
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,34 @@ | ||
<?php | ||
|
||
namespace Picqer\BolRetailerV10\Model; | ||
|
||
use Picqer\BolRetailerV10\Enum; | ||
|
||
// This class is auto generated by OpenApi\ModelGenerator | ||
class CommissionDateRate 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 [ | ||
'condition' => [ 'model' => null, 'enum' => null, 'array' => false ], | ||
'priceRanges' => [ 'model' => CommissionPriceRange::class, 'enum' => null, 'array' => true ], | ||
]; | ||
} | ||
|
||
/** | ||
* @var string Condition of the product. | ||
*/ | ||
public $condition; | ||
|
||
/** | ||
* @var CommissionPriceRange[] | ||
*/ | ||
public $priceRanges = []; | ||
} |
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; | ||
|
||
use Picqer\BolRetailerV10\Enum; | ||
|
||
// This class is auto generated by OpenApi\ModelGenerator | ||
class CommissionFailedQuery 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 [ | ||
'index' => [ 'model' => null, 'enum' => null, 'array' => false ], | ||
'status' => [ 'model' => null, 'enum' => null, 'array' => false ], | ||
'violations' => [ 'model' => Violation::class, 'enum' => null, 'array' => true ], | ||
]; | ||
} | ||
|
||
/** | ||
* @var float This provides the location of the entity where it was provided in the original response body. | ||
*/ | ||
public $index; | ||
|
||
/** | ||
* @var int HTTP status code for individual entity operation. | ||
*/ | ||
public $status; | ||
|
||
/** | ||
* @var Violation[] Outlines the list of violations encountered in the API for the specific index detailing the | ||
* nature and reason for the issue. | ||
*/ | ||
public $violations = []; | ||
} |
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,46 @@ | ||
<?php | ||
|
||
namespace Picqer\BolRetailerV10\Model; | ||
|
||
use Picqer\BolRetailerV10\Enum; | ||
|
||
// This class is auto generated by OpenApi\ModelGenerator | ||
class CommissionPriceRange 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 [ | ||
'range' => [ 'model' => CommissionRange::class, 'enum' => null, 'array' => false ], | ||
'fixedAmount' => [ 'model' => null, 'enum' => null, 'array' => false ], | ||
'percentage' => [ 'model' => null, 'enum' => null, 'array' => false ], | ||
'reductionApplied' => [ 'model' => null, 'enum' => null, 'array' => false ], | ||
]; | ||
} | ||
|
||
/** | ||
* @var CommissionRange Defines a specific price range for which the commission rates apply including VAT. | ||
*/ | ||
public $range; | ||
|
||
/** | ||
* @var float The fixed commission amount excluding VAT. | ||
*/ | ||
public $fixedAmount; | ||
|
||
/** | ||
* @var float A percentage of commission, based on the intended selling price per unit, excluding VAT. | ||
*/ | ||
public $percentage; | ||
|
||
/** | ||
* @var bool A boolean flag indicating whether a reduction is applied to the commission or not. | ||
*/ | ||
public $reductionApplied; | ||
} |
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,59 @@ | ||
<?php | ||
|
||
namespace Picqer\BolRetailerV10\Model; | ||
|
||
use Picqer\BolRetailerV10\Enum; | ||
|
||
// This class is auto generated by OpenApi\ModelGenerator | ||
class CommissionProducts 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 [ | ||
'products' => [ 'model' => Ean::class, 'enum' => null, 'array' => true ], | ||
]; | ||
} | ||
|
||
/** | ||
* @var Ean[] | ||
*/ | ||
public $products = []; | ||
|
||
/** | ||
* Returns an array with the eans from products. | ||
* @return string[] Eans from products. | ||
*/ | ||
public function getProductsEans(): array | ||
{ | ||
return array_map(function ($model) { | ||
return $model->ean; | ||
}, $this->products); | ||
} | ||
|
||
/** | ||
* Sets products by an array of eans. | ||
* @param string[] $eans Eans for products. | ||
*/ | ||
public function setProductsEans(array $eans): void | ||
{ | ||
$this->products = array_map(function ($ean) { | ||
return Ean::constructFromArray(['ean' => $ean]); | ||
}, $eans); | ||
} | ||
|
||
/** | ||
* Adds a new Ean to products by ean. | ||
* @param string $ean Ean for the Ean to add. | ||
*/ | ||
public function addProductsEan(string $ean): void | ||
{ | ||
$this->products[] = Ean::constructFromArray(['ean' => $ean]); | ||
} | ||
} |
Oops, something went wrong.