chore(kiota): regenerate Kiota client models and request builders from updated OpenAPI spec
This commit is contained in:
parent
f586142417
commit
dbed9bf305
85 changed files with 5720 additions and 5036 deletions
0
client/.kiota.log
Executable file → Normal file
0
client/.kiota.log
Executable file → Normal file
43
client/ApiClient.php
Executable file → Normal file
43
client/ApiClient.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\ApiClientBuilder;
|
||||
|
|
@ -19,42 +21,48 @@ use Uwil\ArcadiaKiotaOpenApiClient\IncoSheets\IncoSheetsRequestBuilder;
|
|||
|
||||
/**
|
||||
* The main entry point of the SDK, exposes the configuration and the fluent API.
|
||||
*/
|
||||
class ApiClient extends BaseRequestBuilder
|
||||
*/
|
||||
class ApiClient extends BaseRequestBuilder
|
||||
{
|
||||
/**
|
||||
* The brands property
|
||||
*/
|
||||
public function brands(): BrandsRequestBuilder {
|
||||
*/
|
||||
public function brands(): BrandsRequestBuilder
|
||||
{
|
||||
return new BrandsRequestBuilder($this->pathParameters, $this->requestAdapter);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The employees property
|
||||
*/
|
||||
public function employees(): EmployeesRequestBuilder {
|
||||
*/
|
||||
public function employees(): EmployeesRequestBuilder
|
||||
{
|
||||
return new EmployeesRequestBuilder($this->pathParameters, $this->requestAdapter);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The health property
|
||||
*/
|
||||
public function health(): HealthRequestBuilder {
|
||||
*/
|
||||
public function health(): HealthRequestBuilder
|
||||
{
|
||||
return new HealthRequestBuilder($this->pathParameters, $this->requestAdapter);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The incoSheets property
|
||||
*/
|
||||
public function incoSheets(): IncoSheetsRequestBuilder {
|
||||
*/
|
||||
public function incoSheets(): IncoSheetsRequestBuilder
|
||||
{
|
||||
return new IncoSheetsRequestBuilder($this->pathParameters, $this->requestAdapter);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new ApiClient and sets the default values.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct(RequestAdapter $requestAdapter) {
|
||||
*
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct(RequestAdapter $requestAdapter)
|
||||
{
|
||||
parent::__construct($requestAdapter, [], '{+baseurl}');
|
||||
ApiClientBuilder::registerDefaultSerializer(JsonSerializationWriterFactory::class);
|
||||
ApiClientBuilder::registerDefaultSerializer(TextSerializationWriterFactory::class);
|
||||
|
|
@ -68,5 +76,4 @@ class ApiClient extends BaseRequestBuilder
|
|||
}
|
||||
$this->pathParameters['baseurl'] = $this->requestAdapter->getBaseUrl();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
82
client/Brands/BrandsRequestBuilder.php
Executable file → Normal file
82
client/Brands/BrandsRequestBuilder.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Brands;
|
||||
|
||||
use Exception;
|
||||
|
|
@ -15,26 +17,30 @@ use Uwil\ArcadiaKiotaOpenApiClient\Models\ValidationErrorProblemDetails;
|
|||
|
||||
/**
|
||||
* Builds and executes requests for operations under /brands
|
||||
*/
|
||||
class BrandsRequestBuilder extends BaseRequestBuilder
|
||||
*/
|
||||
class BrandsRequestBuilder extends BaseRequestBuilder
|
||||
{
|
||||
/**
|
||||
* Gets an item from the Uwil/ArcadiaKiotaOpenApiClient.brands.item collection
|
||||
* @param string $brandCode Code public unique trigramme + 2 chiffres de la marque (ex. LGL01).
|
||||
* @return WithBrandCodeItemRequestBuilder
|
||||
*/
|
||||
public function byBrandCode(string $brandCode): WithBrandCodeItemRequestBuilder {
|
||||
$urlTplParams = $this->pathParameters;
|
||||
*
|
||||
* @param string $brandCode Code public unique trigramme + 2 chiffres de la marque (ex. LGL01).
|
||||
*/
|
||||
public function byBrandCode(string $brandCode): WithBrandCodeItemRequestBuilder
|
||||
{
|
||||
$urlTplParams = $this->pathParameters;
|
||||
$urlTplParams['brandCode'] = $brandCode;
|
||||
|
||||
return new WithBrandCodeItemRequestBuilder($urlTplParams, $this->requestAdapter);
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a new BrandsRequestBuilder and sets the default values.
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
|
||||
*
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter)
|
||||
{
|
||||
parent::__construct($requestAdapter, [], '{+baseurl}/brands{?limit*,offset*,page*,pageSize*}');
|
||||
if (is_array($pathParametersOrRawUrl)) {
|
||||
$this->pathParameters = $pathParametersOrRawUrl;
|
||||
|
|
@ -45,34 +51,39 @@ class BrandsRequestBuilder extends BaseRequestBuilder
|
|||
|
||||
/**
|
||||
* Retourne la liste de toutes les marques connues du système Arcadia.Les marques non encore enregistrées localement sont automatiquement initialiséeset pourvues d'un code public unique (trigramme + 2 chiffres).
|
||||
* @param BrandsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*
|
||||
* @param BrandsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return Promise<BrandListResponse|null>
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public function get(?BrandsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
*/
|
||||
public function get(?BrandsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise
|
||||
{
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
$errorMappings = [
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
];
|
||||
|
||||
return $this->requestAdapter->sendAsync($requestInfo, [BrandListResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retourne la liste de toutes les marques connues du système Arcadia.Les marques non encore enregistrées localement sont automatiquement initialiséeset pourvues d'un code public unique (trigramme + 2 chiffres).
|
||||
* @param BrandsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return RequestInformation
|
||||
*/
|
||||
public function toGetRequestInformation(?BrandsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
*
|
||||
* @param BrandsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
public function toGetRequestInformation(?BrandsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation
|
||||
{
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
$requestInfo->pathParameters = $this->pathParameters;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
if ($requestConfiguration !== null) {
|
||||
$requestInfo->addHeaders($requestConfiguration->headers);
|
||||
if ($requestConfiguration->queryParameters !== null) {
|
||||
|
|
@ -80,17 +91,18 @@ class BrandsRequestBuilder extends BaseRequestBuilder
|
|||
}
|
||||
$requestInfo->addRequestOptions(...$requestConfiguration->options);
|
||||
}
|
||||
$requestInfo->tryAddHeader('Accept', "application/json");
|
||||
$requestInfo->tryAddHeader('Accept', 'application/json');
|
||||
|
||||
return $requestInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
* @return BrandsRequestBuilder
|
||||
*/
|
||||
public function withUrl(string $rawUrl): BrandsRequestBuilder {
|
||||
*
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
*/
|
||||
public function withUrl(string $rawUrl): BrandsRequestBuilder
|
||||
{
|
||||
return new BrandsRequestBuilder($rawUrl, $this->requestAdapter);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
51
client/Brands/BrandsRequestBuilderGetQueryParameters.php
Executable file → Normal file
51
client/Brands/BrandsRequestBuilderGetQueryParameters.php
Executable file → Normal file
|
|
@ -1,44 +1,47 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Brands;
|
||||
|
||||
/**
|
||||
* Retourne la liste de toutes les marques connues du système Arcadia.Les marques non encore enregistrées localement sont automatiquement initialiséeset pourvues d'un code public unique (trigramme + 2 chiffres).
|
||||
*/
|
||||
class BrandsRequestBuilderGetQueryParameters
|
||||
*/
|
||||
class BrandsRequestBuilderGetQueryParameters
|
||||
{
|
||||
/**
|
||||
* @var int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
* @var int|null Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
public ?int $limit = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
*/
|
||||
* @var int|null Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
*/
|
||||
public ?int $offset = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
* @var int|null Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
public ?int $page = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
* @var int|null Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
public ?int $pageSize = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new BrandsRequestBuilderGetQueryParameters and sets the default values.
|
||||
* @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
* @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
public function __construct(?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null) {
|
||||
$this->limit = $limit;
|
||||
$this->offset = $offset;
|
||||
$this->page = $page;
|
||||
*
|
||||
* @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
* @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
public function __construct(?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null)
|
||||
{
|
||||
$this->limit = $limit;
|
||||
$this->offset = $offset;
|
||||
$this->page = $page;
|
||||
$this->pageSize = $pageSize;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
40
client/Brands/BrandsRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
40
client/Brands/BrandsRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Brands;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
|
||||
|
|
@ -7,35 +9,37 @@ use Microsoft\Kiota\Abstractions\RequestOption;
|
|||
|
||||
/**
|
||||
* Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
class BrandsRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
*/
|
||||
class BrandsRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
{
|
||||
/**
|
||||
* @var BrandsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
|
||||
*/
|
||||
* @var BrandsRequestBuilderGetQueryParameters|null Request query parameters
|
||||
*/
|
||||
public ?BrandsRequestBuilderGetQueryParameters $queryParameters = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new BrandsRequestBuilderGetRequestConfiguration and sets the default values.
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
* @param BrandsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null, ?BrandsRequestBuilderGetQueryParameters $queryParameters = null) {
|
||||
*
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
* @param BrandsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null, ?BrandsRequestBuilderGetQueryParameters $queryParameters = null)
|
||||
{
|
||||
parent::__construct($headers ?? [], $options ?? []);
|
||||
$this->queryParameters = $queryParameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a new BrandsRequestBuilderGetQueryParameters.
|
||||
* @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
* @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @return BrandsRequestBuilderGetQueryParameters
|
||||
*/
|
||||
public static function createQueryParameters(?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null): BrandsRequestBuilderGetQueryParameters {
|
||||
*
|
||||
* @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
* @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
public static function createQueryParameters(?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null): BrandsRequestBuilderGetQueryParameters
|
||||
{
|
||||
return new BrandsRequestBuilderGetQueryParameters($limit, $offset, $page, $pageSize);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
72
client/Brands/Item/WithBrandCodeItemRequestBuilder.php
Executable file → Normal file
72
client/Brands/Item/WithBrandCodeItemRequestBuilder.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Brands\Item;
|
||||
|
||||
use Exception;
|
||||
|
|
@ -14,15 +16,17 @@ use Uwil\ArcadiaKiotaOpenApiClient\Models\ValidationErrorProblemDetails;
|
|||
|
||||
/**
|
||||
* Builds and executes requests for operations under /brands/{brandCode}
|
||||
*/
|
||||
class WithBrandCodeItemRequestBuilder extends BaseRequestBuilder
|
||||
*/
|
||||
class WithBrandCodeItemRequestBuilder extends BaseRequestBuilder
|
||||
{
|
||||
/**
|
||||
* Instantiates a new WithBrandCodeItemRequestBuilder and sets the default values.
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
|
||||
*
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter)
|
||||
{
|
||||
parent::__construct($requestAdapter, [], '{+baseurl}/brands/{brandCode}');
|
||||
if (is_array($pathParametersOrRawUrl)) {
|
||||
$this->pathParameters = $pathParametersOrRawUrl;
|
||||
|
|
@ -33,50 +37,56 @@ class WithBrandCodeItemRequestBuilder extends BaseRequestBuilder
|
|||
|
||||
/**
|
||||
* Retourne la fiche d'une marque spécifiée par son code public (ex: LGL01).
|
||||
* @param WithBrandCodeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*
|
||||
* @param WithBrandCodeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return Promise<BrandItemResponse|null>
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public function get(?WithBrandCodeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
*/
|
||||
public function get(?WithBrandCodeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise
|
||||
{
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
$errorMappings = [
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'404' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'404' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
];
|
||||
|
||||
return $this->requestAdapter->sendAsync($requestInfo, [BrandItemResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retourne la fiche d'une marque spécifiée par son code public (ex: LGL01).
|
||||
* @param WithBrandCodeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return RequestInformation
|
||||
*/
|
||||
public function toGetRequestInformation(?WithBrandCodeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
*
|
||||
* @param WithBrandCodeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
public function toGetRequestInformation(?WithBrandCodeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation
|
||||
{
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
$requestInfo->pathParameters = $this->pathParameters;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
if ($requestConfiguration !== null) {
|
||||
$requestInfo->addHeaders($requestConfiguration->headers);
|
||||
$requestInfo->addRequestOptions(...$requestConfiguration->options);
|
||||
}
|
||||
$requestInfo->tryAddHeader('Accept', "application/json");
|
||||
$requestInfo->tryAddHeader('Accept', 'application/json');
|
||||
|
||||
return $requestInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
* @return WithBrandCodeItemRequestBuilder
|
||||
*/
|
||||
public function withUrl(string $rawUrl): WithBrandCodeItemRequestBuilder {
|
||||
*
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
*/
|
||||
public function withUrl(string $rawUrl): WithBrandCodeItemRequestBuilder
|
||||
{
|
||||
return new WithBrandCodeItemRequestBuilder($rawUrl, $this->requestAdapter);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
17
client/Brands/Item/WithBrandCodeItemRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
17
client/Brands/Item/WithBrandCodeItemRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Brands\Item;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
|
||||
|
|
@ -7,16 +9,17 @@ use Microsoft\Kiota\Abstractions\RequestOption;
|
|||
|
||||
/**
|
||||
* Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
class WithBrandCodeItemRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
*/
|
||||
class WithBrandCodeItemRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
{
|
||||
/**
|
||||
* Instantiates a new WithBrandCodeItemRequestBuilderGetRequestConfiguration and sets the default values.
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null) {
|
||||
*
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null)
|
||||
{
|
||||
parent::__construct($headers ?? [], $options ?? []);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
82
client/Employees/EmployeesRequestBuilder.php
Executable file → Normal file
82
client/Employees/EmployeesRequestBuilder.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Employees;
|
||||
|
||||
use Exception;
|
||||
|
|
@ -15,26 +17,30 @@ use Uwil\ArcadiaKiotaOpenApiClient\Models\ValidationErrorProblemDetails;
|
|||
|
||||
/**
|
||||
* Builds and executes requests for operations under /employees
|
||||
*/
|
||||
class EmployeesRequestBuilder extends BaseRequestBuilder
|
||||
*/
|
||||
class EmployeesRequestBuilder extends BaseRequestBuilder
|
||||
{
|
||||
/**
|
||||
* Gets an item from the Uwil/ArcadiaKiotaOpenApiClient.employees.item collection
|
||||
* @param string $employeeId Matricule public unique de l'employé (7 ou 8 chiffres).
|
||||
* @return WithEmployeeItemRequestBuilder
|
||||
*/
|
||||
public function byEmployeeId(string $employeeId): WithEmployeeItemRequestBuilder {
|
||||
$urlTplParams = $this->pathParameters;
|
||||
*
|
||||
* @param string $employeeId Matricule public unique de l'employé (7 ou 8 chiffres).
|
||||
*/
|
||||
public function byEmployeeId(string $employeeId): WithEmployeeItemRequestBuilder
|
||||
{
|
||||
$urlTplParams = $this->pathParameters;
|
||||
$urlTplParams['employeeId'] = $employeeId;
|
||||
|
||||
return new WithEmployeeItemRequestBuilder($urlTplParams, $this->requestAdapter);
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a new EmployeesRequestBuilder and sets the default values.
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
|
||||
*
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter)
|
||||
{
|
||||
parent::__construct($requestAdapter, [], '{+baseurl}/employees{?establishment*,limit*,offset*,page*,pageSize*,serviceId*,since*,siteId*,siteIds*,sortBy*,sortDirection*}');
|
||||
if (is_array($pathParametersOrRawUrl)) {
|
||||
$this->pathParameters = $pathParametersOrRawUrl;
|
||||
|
|
@ -45,34 +51,39 @@ class EmployeesRequestBuilder extends BaseRequestBuilder
|
|||
|
||||
/**
|
||||
* Retourne la liste paginée des employés du système Arcadia.Prend en charge le filtrage par date de modification (`since`), code établissement (`establishment`),code site (`siteId`), code service (`serviceId`), ainsi que le tri et la pagination HATEOAS.
|
||||
* @param EmployeesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*
|
||||
* @param EmployeesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return Promise<EmployeeListResponse|null>
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public function get(?EmployeesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
*/
|
||||
public function get(?EmployeesRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise
|
||||
{
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
$errorMappings = [
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
];
|
||||
|
||||
return $this->requestAdapter->sendAsync($requestInfo, [EmployeeListResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retourne la liste paginée des employés du système Arcadia.Prend en charge le filtrage par date de modification (`since`), code établissement (`establishment`),code site (`siteId`), code service (`serviceId`), ainsi que le tri et la pagination HATEOAS.
|
||||
* @param EmployeesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return RequestInformation
|
||||
*/
|
||||
public function toGetRequestInformation(?EmployeesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
*
|
||||
* @param EmployeesRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
public function toGetRequestInformation(?EmployeesRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation
|
||||
{
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
$requestInfo->pathParameters = $this->pathParameters;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
if ($requestConfiguration !== null) {
|
||||
$requestInfo->addHeaders($requestConfiguration->headers);
|
||||
if ($requestConfiguration->queryParameters !== null) {
|
||||
|
|
@ -80,17 +91,18 @@ class EmployeesRequestBuilder extends BaseRequestBuilder
|
|||
}
|
||||
$requestInfo->addRequestOptions(...$requestConfiguration->options);
|
||||
}
|
||||
$requestInfo->tryAddHeader('Accept', "application/json");
|
||||
$requestInfo->tryAddHeader('Accept', 'application/json');
|
||||
|
||||
return $requestInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
* @return EmployeesRequestBuilder
|
||||
*/
|
||||
public function withUrl(string $rawUrl): EmployeesRequestBuilder {
|
||||
*
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
*/
|
||||
public function withUrl(string $rawUrl): EmployeesRequestBuilder
|
||||
{
|
||||
return new EmployeesRequestBuilder($rawUrl, $this->requestAdapter);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
119
client/Employees/EmployeesRequestBuilderGetQueryParameters.php
Executable file → Normal file
119
client/Employees/EmployeesRequestBuilderGetQueryParameters.php
Executable file → Normal file
|
|
@ -1,95 +1,98 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Employees;
|
||||
|
||||
use DateTime;
|
||||
|
||||
/**
|
||||
* Retourne la liste paginée des employés du système Arcadia.Prend en charge le filtrage par date de modification (`since`), code établissement (`establishment`),code site (`siteId`), code service (`serviceId`), ainsi que le tri et la pagination HATEOAS.
|
||||
*/
|
||||
class EmployeesRequestBuilderGetQueryParameters
|
||||
*/
|
||||
class EmployeesRequestBuilderGetQueryParameters
|
||||
{
|
||||
/**
|
||||
* @var string|null $establishment Filtrer par code établissement (ex: 01, PA, LY).
|
||||
*/
|
||||
* @var string|null Filtrer par code établissement (ex: 01, PA, LY).
|
||||
*/
|
||||
public ?string $establishment = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
* @var int|null Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
public ?int $limit = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
*/
|
||||
* @var int|null Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
*/
|
||||
public ?int $offset = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
* @var int|null Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
public ?int $page = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
* @var int|null Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
public ?int $pageSize = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $serviceId Filtrer par identifiant de service (ex: 097, 101).
|
||||
*/
|
||||
* @var string|null Filtrer par identifiant de service (ex: 097, 101).
|
||||
*/
|
||||
public ?string $serviceId = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt).
|
||||
*/
|
||||
* @var DateTime|null Horodatage au format RFC3339 (borne inférieure sur updatedAt).
|
||||
*/
|
||||
public ?DateTime $since = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $siteId Filtrer par code site (ex: LDCSER, SLELA).
|
||||
*/
|
||||
* @var string|null Filtrer par code site (ex: LDCSER, SLELA).
|
||||
*/
|
||||
public ?string $siteId = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var array<string>|null $siteIds Filtrer par un ou plusieurs codes site (ex: siteIds[]=LDCSER&siteIds[]=SLELA).
|
||||
*/
|
||||
* @var array<string>|null Filtrer par un ou plusieurs codes site (ex: siteIds[]=LDCSER&siteIds[]=SLELA).
|
||||
*/
|
||||
public ?array $siteIds = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des employés.
|
||||
*/
|
||||
* @var GetSortByQueryParameterType|null Champ d'ordonnancement des employés.
|
||||
*/
|
||||
public ?GetSortByQueryParameterType $sortBy = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var GetSortDirectionQueryParameterType|null $sortDirection Sens du tri.
|
||||
*/
|
||||
* @var GetSortDirectionQueryParameterType|null Sens du tri.
|
||||
*/
|
||||
public ?GetSortDirectionQueryParameterType $sortDirection = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new EmployeesRequestBuilderGetQueryParameters and sets the default values.
|
||||
* @param string|null $establishment Filtrer par code établissement (ex: 01, PA, LY).
|
||||
* @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
* @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param string|null $serviceId Filtrer par identifiant de service (ex: 097, 101).
|
||||
* @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt).
|
||||
* @param string|null $siteId Filtrer par code site (ex: LDCSER, SLELA).
|
||||
* @param array<string>|null $siteIds Filtrer par un ou plusieurs codes site (ex: siteIds[]=LDCSER&siteIds[]=SLELA).
|
||||
* @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des employés.
|
||||
* @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri.
|
||||
*/
|
||||
public function __construct(?string $establishment = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?string $serviceId = null, ?DateTime $since = null, ?string $siteId = null, ?array $siteIds = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null) {
|
||||
*
|
||||
* @param string|null $establishment Filtrer par code établissement (ex: 01, PA, LY).
|
||||
* @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
* @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param string|null $serviceId Filtrer par identifiant de service (ex: 097, 101).
|
||||
* @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt).
|
||||
* @param string|null $siteId Filtrer par code site (ex: LDCSER, SLELA).
|
||||
* @param array<string>|null $siteIds Filtrer par un ou plusieurs codes site (ex: siteIds[]=LDCSER&siteIds[]=SLELA).
|
||||
* @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des employés.
|
||||
* @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri.
|
||||
*/
|
||||
public function __construct(?string $establishment = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?string $serviceId = null, ?DateTime $since = null, ?string $siteId = null, ?array $siteIds = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null)
|
||||
{
|
||||
$this->establishment = $establishment;
|
||||
$this->limit = $limit;
|
||||
$this->offset = $offset;
|
||||
$this->page = $page;
|
||||
$this->pageSize = $pageSize;
|
||||
$this->serviceId = $serviceId;
|
||||
$this->since = $since;
|
||||
$this->siteId = $siteId;
|
||||
$this->siteIds = $siteIds;
|
||||
$this->sortBy = $sortBy;
|
||||
$this->limit = $limit;
|
||||
$this->offset = $offset;
|
||||
$this->page = $page;
|
||||
$this->pageSize = $pageSize;
|
||||
$this->serviceId = $serviceId;
|
||||
$this->since = $since;
|
||||
$this->siteId = $siteId;
|
||||
$this->siteIds = $siteIds;
|
||||
$this->sortBy = $sortBy;
|
||||
$this->sortDirection = $sortDirection;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
54
client/Employees/EmployeesRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
54
client/Employees/EmployeesRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Employees;
|
||||
|
||||
use DateTime;
|
||||
|
|
@ -8,42 +10,44 @@ use Microsoft\Kiota\Abstractions\RequestOption;
|
|||
|
||||
/**
|
||||
* Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
class EmployeesRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
*/
|
||||
class EmployeesRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
{
|
||||
/**
|
||||
* @var EmployeesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
|
||||
*/
|
||||
* @var EmployeesRequestBuilderGetQueryParameters|null Request query parameters
|
||||
*/
|
||||
public ?EmployeesRequestBuilderGetQueryParameters $queryParameters = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new EmployeesRequestBuilderGetRequestConfiguration and sets the default values.
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
* @param EmployeesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null, ?EmployeesRequestBuilderGetQueryParameters $queryParameters = null) {
|
||||
*
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
* @param EmployeesRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null, ?EmployeesRequestBuilderGetQueryParameters $queryParameters = null)
|
||||
{
|
||||
parent::__construct($headers ?? [], $options ?? []);
|
||||
$this->queryParameters = $queryParameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a new EmployeesRequestBuilderGetQueryParameters.
|
||||
* @param string|null $establishment Filtrer par code établissement (ex: 01, PA, LY).
|
||||
* @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
* @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param string|null $serviceId Filtrer par identifiant de service (ex: 097, 101).
|
||||
* @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt).
|
||||
* @param string|null $siteId Filtrer par code site (ex: LDCSER, SLELA).
|
||||
* @param array<string>|null $siteIds Filtrer par un ou plusieurs codes site (ex: siteIds[]=LDCSER&siteIds[]=SLELA).
|
||||
* @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des employés.
|
||||
* @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri.
|
||||
* @return EmployeesRequestBuilderGetQueryParameters
|
||||
*/
|
||||
public static function createQueryParameters(?string $establishment = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?string $serviceId = null, ?DateTime $since = null, ?string $siteId = null, ?array $siteIds = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null): EmployeesRequestBuilderGetQueryParameters {
|
||||
*
|
||||
* @param string|null $establishment Filtrer par code établissement (ex: 01, PA, LY).
|
||||
* @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
* @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param string|null $serviceId Filtrer par identifiant de service (ex: 097, 101).
|
||||
* @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt).
|
||||
* @param string|null $siteId Filtrer par code site (ex: LDCSER, SLELA).
|
||||
* @param array<string>|null $siteIds Filtrer par un ou plusieurs codes site (ex: siteIds[]=LDCSER&siteIds[]=SLELA).
|
||||
* @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des employés.
|
||||
* @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri.
|
||||
*/
|
||||
public static function createQueryParameters(?string $establishment = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?string $serviceId = null, ?DateTime $since = null, ?string $siteId = null, ?array $siteIds = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null): EmployeesRequestBuilderGetQueryParameters
|
||||
{
|
||||
return new EmployeesRequestBuilderGetQueryParameters($establishment, $limit, $offset, $page, $pageSize, $serviceId, $since, $siteId, $siteIds, $sortBy, $sortDirection);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
22
client/Employees/GetSortByQueryParameterType.php
Executable file → Normal file
22
client/Employees/GetSortByQueryParameterType.php
Executable file → Normal file
|
|
@ -1,14 +1,22 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Employees;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Enum;
|
||||
|
||||
class GetSortByQueryParameterType extends Enum {
|
||||
public const ARCADIA_ID = "arcadiaId";
|
||||
public const START_DATE = "startDate";
|
||||
public const END_DATE = "endDate";
|
||||
public const PLANNED_END_DATE = "plannedEndDate";
|
||||
public const CREATED_AT = "createdAt";
|
||||
public const UPDATED_AT = "updatedAt";
|
||||
class GetSortByQueryParameterType extends Enum
|
||||
{
|
||||
public const ARCADIA_ID = 'arcadiaId';
|
||||
|
||||
public const START_DATE = 'startDate';
|
||||
|
||||
public const END_DATE = 'endDate';
|
||||
|
||||
public const PLANNED_END_DATE = 'plannedEndDate';
|
||||
|
||||
public const CREATED_AT = 'createdAt';
|
||||
|
||||
public const UPDATED_AT = 'updatedAt';
|
||||
}
|
||||
|
|
|
|||
10
client/Employees/GetSortDirectionQueryParameterType.php
Executable file → Normal file
10
client/Employees/GetSortDirectionQueryParameterType.php
Executable file → Normal file
|
|
@ -1,10 +1,14 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Employees;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Enum;
|
||||
|
||||
class GetSortDirectionQueryParameterType extends Enum {
|
||||
public const ASCENDING = "Ascending";
|
||||
public const DESCENDING = "Descending";
|
||||
class GetSortDirectionQueryParameterType extends Enum
|
||||
{
|
||||
public const ASCENDING = 'Ascending';
|
||||
|
||||
public const DESCENDING = 'Descending';
|
||||
}
|
||||
|
|
|
|||
72
client/Employees/Item/WithEmployeeItemRequestBuilder.php
Executable file → Normal file
72
client/Employees/Item/WithEmployeeItemRequestBuilder.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Employees\Item;
|
||||
|
||||
use Exception;
|
||||
|
|
@ -14,15 +16,17 @@ use Uwil\ArcadiaKiotaOpenApiClient\Models\ValidationErrorProblemDetails;
|
|||
|
||||
/**
|
||||
* Builds and executes requests for operations under /employees/{employeeId}
|
||||
*/
|
||||
class WithEmployeeItemRequestBuilder extends BaseRequestBuilder
|
||||
*/
|
||||
class WithEmployeeItemRequestBuilder extends BaseRequestBuilder
|
||||
{
|
||||
/**
|
||||
* Instantiates a new WithEmployeeItemRequestBuilder and sets the default values.
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
|
||||
*
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter)
|
||||
{
|
||||
parent::__construct($requestAdapter, [], '{+baseurl}/employees/{employeeId}');
|
||||
if (is_array($pathParametersOrRawUrl)) {
|
||||
$this->pathParameters = $pathParametersOrRawUrl;
|
||||
|
|
@ -33,50 +37,56 @@ class WithEmployeeItemRequestBuilder extends BaseRequestBuilder
|
|||
|
||||
/**
|
||||
* Retourne la fiche détaillée d'un employé spécifié par son matricule public unique.
|
||||
* @param WithEmployeeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*
|
||||
* @param WithEmployeeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return Promise<EmployeeItemResponse|null>
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public function get(?WithEmployeeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
*/
|
||||
public function get(?WithEmployeeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise
|
||||
{
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
$errorMappings = [
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'404' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'404' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
];
|
||||
|
||||
return $this->requestAdapter->sendAsync($requestInfo, [EmployeeItemResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retourne la fiche détaillée d'un employé spécifié par son matricule public unique.
|
||||
* @param WithEmployeeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return RequestInformation
|
||||
*/
|
||||
public function toGetRequestInformation(?WithEmployeeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
*
|
||||
* @param WithEmployeeItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
public function toGetRequestInformation(?WithEmployeeItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation
|
||||
{
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
$requestInfo->pathParameters = $this->pathParameters;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
if ($requestConfiguration !== null) {
|
||||
$requestInfo->addHeaders($requestConfiguration->headers);
|
||||
$requestInfo->addRequestOptions(...$requestConfiguration->options);
|
||||
}
|
||||
$requestInfo->tryAddHeader('Accept', "application/json");
|
||||
$requestInfo->tryAddHeader('Accept', 'application/json');
|
||||
|
||||
return $requestInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
* @return WithEmployeeItemRequestBuilder
|
||||
*/
|
||||
public function withUrl(string $rawUrl): WithEmployeeItemRequestBuilder {
|
||||
*
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
*/
|
||||
public function withUrl(string $rawUrl): WithEmployeeItemRequestBuilder
|
||||
{
|
||||
return new WithEmployeeItemRequestBuilder($rawUrl, $this->requestAdapter);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
17
client/Employees/Item/WithEmployeeItemRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
17
client/Employees/Item/WithEmployeeItemRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Employees\Item;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
|
||||
|
|
@ -7,16 +9,17 @@ use Microsoft\Kiota\Abstractions\RequestOption;
|
|||
|
||||
/**
|
||||
* Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
class WithEmployeeItemRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
*/
|
||||
class WithEmployeeItemRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
{
|
||||
/**
|
||||
* Instantiates a new WithEmployeeItemRequestBuilderGetRequestConfiguration and sets the default values.
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null) {
|
||||
*
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null)
|
||||
{
|
||||
parent::__construct($headers ?? [], $options ?? []);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
58
client/Health/HealthRequestBuilder.php
Executable file → Normal file
58
client/Health/HealthRequestBuilder.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Health;
|
||||
|
||||
use Exception;
|
||||
|
|
@ -12,15 +14,17 @@ use Uwil\ArcadiaKiotaOpenApiClient\Models\HealthCheckResponse;
|
|||
|
||||
/**
|
||||
* Builds and executes requests for operations under /health
|
||||
*/
|
||||
class HealthRequestBuilder extends BaseRequestBuilder
|
||||
*/
|
||||
class HealthRequestBuilder extends BaseRequestBuilder
|
||||
{
|
||||
/**
|
||||
* Instantiates a new HealthRequestBuilder and sets the default values.
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
|
||||
*
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter)
|
||||
{
|
||||
parent::__construct($requestAdapter, [], '{+baseurl}/health');
|
||||
if (is_array($pathParametersOrRawUrl)) {
|
||||
$this->pathParameters = $pathParametersOrRawUrl;
|
||||
|
|
@ -31,43 +35,49 @@ class HealthRequestBuilder extends BaseRequestBuilder
|
|||
|
||||
/**
|
||||
* Vérifie l'état de fonctionnement et la connectivité de l'ensemble des dépendances d'infrastructure (base de données par défaut, base de données Arcadia, cache et serveur SMTP).
|
||||
* @param HealthRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*
|
||||
* @param HealthRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return Promise<HealthCheckResponse|null>
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public function get(?HealthRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
*/
|
||||
public function get(?HealthRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise
|
||||
{
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
$errorMappings = [
|
||||
'503' => [HealthCheckResponse::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [HealthCheckResponse::class, 'createFromDiscriminatorValue'],
|
||||
];
|
||||
|
||||
return $this->requestAdapter->sendAsync($requestInfo, [HealthCheckResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Vérifie l'état de fonctionnement et la connectivité de l'ensemble des dépendances d'infrastructure (base de données par défaut, base de données Arcadia, cache et serveur SMTP).
|
||||
* @param HealthRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return RequestInformation
|
||||
*/
|
||||
public function toGetRequestInformation(?HealthRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
*
|
||||
* @param HealthRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
public function toGetRequestInformation(?HealthRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation
|
||||
{
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
$requestInfo->pathParameters = $this->pathParameters;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
if ($requestConfiguration !== null) {
|
||||
$requestInfo->addHeaders($requestConfiguration->headers);
|
||||
$requestInfo->addRequestOptions(...$requestConfiguration->options);
|
||||
}
|
||||
$requestInfo->tryAddHeader('Accept', "application/json");
|
||||
$requestInfo->tryAddHeader('Accept', 'application/json');
|
||||
|
||||
return $requestInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
* @return HealthRequestBuilder
|
||||
*/
|
||||
public function withUrl(string $rawUrl): HealthRequestBuilder {
|
||||
*
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
*/
|
||||
public function withUrl(string $rawUrl): HealthRequestBuilder
|
||||
{
|
||||
return new HealthRequestBuilder($rawUrl, $this->requestAdapter);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
17
client/Health/HealthRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
17
client/Health/HealthRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Health;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
|
||||
|
|
@ -7,16 +9,17 @@ use Microsoft\Kiota\Abstractions\RequestOption;
|
|||
|
||||
/**
|
||||
* Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
class HealthRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
*/
|
||||
class HealthRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
{
|
||||
/**
|
||||
* Instantiates a new HealthRequestBuilderGetRequestConfiguration and sets the default values.
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null) {
|
||||
*
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null)
|
||||
{
|
||||
parent::__construct($headers ?? [], $options ?? []);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
13
client/IncoSheets/GetSortByQueryParameterType.php
Executable file → Normal file
13
client/IncoSheets/GetSortByQueryParameterType.php
Executable file → Normal file
|
|
@ -1,11 +1,16 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\IncoSheets;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Enum;
|
||||
|
||||
class GetSortByQueryParameterType extends Enum {
|
||||
public const INCO_SHEET_ID = "incoSheetId";
|
||||
public const CREATED_AT = "createdAt";
|
||||
public const UPDATED_AT = "updatedAt";
|
||||
class GetSortByQueryParameterType extends Enum
|
||||
{
|
||||
public const INCO_SHEET_ID = 'incoSheetId';
|
||||
|
||||
public const CREATED_AT = 'createdAt';
|
||||
|
||||
public const UPDATED_AT = 'updatedAt';
|
||||
}
|
||||
|
|
|
|||
10
client/IncoSheets/GetSortDirectionQueryParameterType.php
Executable file → Normal file
10
client/IncoSheets/GetSortDirectionQueryParameterType.php
Executable file → Normal file
|
|
@ -1,10 +1,14 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\IncoSheets;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Enum;
|
||||
|
||||
class GetSortDirectionQueryParameterType extends Enum {
|
||||
public const ASCENDING = "Ascending";
|
||||
public const DESCENDING = "Descending";
|
||||
class GetSortDirectionQueryParameterType extends Enum
|
||||
{
|
||||
public const ASCENDING = 'Ascending';
|
||||
|
||||
public const DESCENDING = 'Descending';
|
||||
}
|
||||
|
|
|
|||
89
client/IncoSheets/IncoSheetsRequestBuilder.php
Executable file → Normal file
89
client/IncoSheets/IncoSheetsRequestBuilder.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\IncoSheets;
|
||||
|
||||
use Exception;
|
||||
|
|
@ -16,33 +18,38 @@ use Uwil\ArcadiaKiotaOpenApiClient\Models\ValidationErrorProblemDetails;
|
|||
|
||||
/**
|
||||
* Builds and executes requests for operations under /inco-sheets
|
||||
*/
|
||||
class IncoSheetsRequestBuilder extends BaseRequestBuilder
|
||||
*/
|
||||
class IncoSheetsRequestBuilder extends BaseRequestBuilder
|
||||
{
|
||||
/**
|
||||
* The search property
|
||||
*/
|
||||
public function search(): SearchRequestBuilder {
|
||||
*/
|
||||
public function search(): SearchRequestBuilder
|
||||
{
|
||||
return new SearchRequestBuilder($this->pathParameters, $this->requestAdapter);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets an item from the Uwil/ArcadiaKiotaOpenApiClient.incoSheets.item collection
|
||||
* @param string $incoId Identifiant numérique unique de la fiche INCO.
|
||||
* @return WithIncoItemRequestBuilder
|
||||
*/
|
||||
public function byIncoId(string $incoId): WithIncoItemRequestBuilder {
|
||||
$urlTplParams = $this->pathParameters;
|
||||
*
|
||||
* @param string $incoId Identifiant numérique unique de la fiche INCO.
|
||||
*/
|
||||
public function byIncoId(string $incoId): WithIncoItemRequestBuilder
|
||||
{
|
||||
$urlTplParams = $this->pathParameters;
|
||||
$urlTplParams['incoId'] = $incoId;
|
||||
|
||||
return new WithIncoItemRequestBuilder($urlTplParams, $this->requestAdapter);
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoSheetsRequestBuilder and sets the default values.
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
|
||||
*
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter)
|
||||
{
|
||||
parent::__construct($requestAdapter, [], '{+baseurl}/inco-sheets{?brands*,limit*,offset*,page*,pageSize*,short*,since*,sortBy*,sortDirection*}');
|
||||
if (is_array($pathParametersOrRawUrl)) {
|
||||
$this->pathParameters = $pathParametersOrRawUrl;
|
||||
|
|
@ -53,34 +60,39 @@ class IncoSheetsRequestBuilder extends BaseRequestBuilder
|
|||
|
||||
/**
|
||||
* Retourne la liste paginée des fiches produits INCO.Prend en charge le filtrage par marques (`brands`), la date de modification (`since`), la projection au format court (`short=true`), ainsi que le tri et la pagination.
|
||||
* @param IncoSheetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*
|
||||
* @param IncoSheetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return Promise<IncoListResponse|null>
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public function get(?IncoSheetsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
*/
|
||||
public function get(?IncoSheetsRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise
|
||||
{
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
$errorMappings = [
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
];
|
||||
|
||||
return $this->requestAdapter->sendAsync($requestInfo, [IncoListResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retourne la liste paginée des fiches produits INCO.Prend en charge le filtrage par marques (`brands`), la date de modification (`since`), la projection au format court (`short=true`), ainsi que le tri et la pagination.
|
||||
* @param IncoSheetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return RequestInformation
|
||||
*/
|
||||
public function toGetRequestInformation(?IncoSheetsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
*
|
||||
* @param IncoSheetsRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
public function toGetRequestInformation(?IncoSheetsRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation
|
||||
{
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
$requestInfo->pathParameters = $this->pathParameters;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
if ($requestConfiguration !== null) {
|
||||
$requestInfo->addHeaders($requestConfiguration->headers);
|
||||
if ($requestConfiguration->queryParameters !== null) {
|
||||
|
|
@ -88,17 +100,18 @@ class IncoSheetsRequestBuilder extends BaseRequestBuilder
|
|||
}
|
||||
$requestInfo->addRequestOptions(...$requestConfiguration->options);
|
||||
}
|
||||
$requestInfo->tryAddHeader('Accept', "application/json");
|
||||
$requestInfo->tryAddHeader('Accept', 'application/json');
|
||||
|
||||
return $requestInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
* @return IncoSheetsRequestBuilder
|
||||
*/
|
||||
public function withUrl(string $rawUrl): IncoSheetsRequestBuilder {
|
||||
*
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
*/
|
||||
public function withUrl(string $rawUrl): IncoSheetsRequestBuilder
|
||||
{
|
||||
return new IncoSheetsRequestBuilder($rawUrl, $this->requestAdapter);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
101
client/IncoSheets/IncoSheetsRequestBuilderGetQueryParameters.php
Executable file → Normal file
101
client/IncoSheets/IncoSheetsRequestBuilderGetQueryParameters.php
Executable file → Normal file
|
|
@ -1,81 +1,84 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\IncoSheets;
|
||||
|
||||
use DateTime;
|
||||
|
||||
/**
|
||||
* Retourne la liste paginée des fiches produits INCO.Prend en charge le filtrage par marques (`brands`), la date de modification (`since`), la projection au format court (`short=true`), ainsi que le tri et la pagination.
|
||||
*/
|
||||
class IncoSheetsRequestBuilderGetQueryParameters
|
||||
*/
|
||||
class IncoSheetsRequestBuilderGetQueryParameters
|
||||
{
|
||||
/**
|
||||
* @var array<string>|null $brands Filtrer par un ou plusieurs codes marque.
|
||||
*/
|
||||
* @var array<string>|null Filtrer par un ou plusieurs codes marque.
|
||||
*/
|
||||
public ?array $brands = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
* @var int|null Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
public ?int $limit = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
*/
|
||||
* @var int|null Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
*/
|
||||
public ?int $offset = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
* @var int|null Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
public ?int $page = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
* @var int|null Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
*/
|
||||
public ?int $pageSize = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var bool|null $short Retourne la projection courte si true.
|
||||
*/
|
||||
* @var bool|null Retourne la projection courte si true.
|
||||
*/
|
||||
public ?bool $short = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt).
|
||||
*/
|
||||
* @var DateTime|null Horodatage au format RFC3339 (borne inférieure sur updatedAt).
|
||||
*/
|
||||
public ?DateTime $since = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des fiches INCO.
|
||||
*/
|
||||
* @var GetSortByQueryParameterType|null Champ d'ordonnancement des fiches INCO.
|
||||
*/
|
||||
public ?GetSortByQueryParameterType $sortBy = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var GetSortDirectionQueryParameterType|null $sortDirection Sens du tri.
|
||||
*/
|
||||
* @var GetSortDirectionQueryParameterType|null Sens du tri.
|
||||
*/
|
||||
public ?GetSortDirectionQueryParameterType $sortDirection = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoSheetsRequestBuilderGetQueryParameters and sets the default values.
|
||||
* @param array<string>|null $brands Filtrer par un ou plusieurs codes marque.
|
||||
* @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
* @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param bool|null $short Retourne la projection courte si true.
|
||||
* @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt).
|
||||
* @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des fiches INCO.
|
||||
* @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri.
|
||||
*/
|
||||
public function __construct(?array $brands = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?bool $short = null, ?DateTime $since = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null) {
|
||||
$this->brands = $brands;
|
||||
$this->limit = $limit;
|
||||
$this->offset = $offset;
|
||||
$this->page = $page;
|
||||
$this->pageSize = $pageSize;
|
||||
$this->short = $short;
|
||||
$this->since = $since;
|
||||
$this->sortBy = $sortBy;
|
||||
*
|
||||
* @param array<string>|null $brands Filtrer par un ou plusieurs codes marque.
|
||||
* @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
* @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param bool|null $short Retourne la projection courte si true.
|
||||
* @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt).
|
||||
* @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des fiches INCO.
|
||||
* @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri.
|
||||
*/
|
||||
public function __construct(?array $brands = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?bool $short = null, ?DateTime $since = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null)
|
||||
{
|
||||
$this->brands = $brands;
|
||||
$this->limit = $limit;
|
||||
$this->offset = $offset;
|
||||
$this->page = $page;
|
||||
$this->pageSize = $pageSize;
|
||||
$this->short = $short;
|
||||
$this->since = $since;
|
||||
$this->sortBy = $sortBy;
|
||||
$this->sortDirection = $sortDirection;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
50
client/IncoSheets/IncoSheetsRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
50
client/IncoSheets/IncoSheetsRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\IncoSheets;
|
||||
|
||||
use DateTime;
|
||||
|
|
@ -8,40 +10,42 @@ use Microsoft\Kiota\Abstractions\RequestOption;
|
|||
|
||||
/**
|
||||
* Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
class IncoSheetsRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
*/
|
||||
class IncoSheetsRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
{
|
||||
/**
|
||||
* @var IncoSheetsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
|
||||
*/
|
||||
* @var IncoSheetsRequestBuilderGetQueryParameters|null Request query parameters
|
||||
*/
|
||||
public ?IncoSheetsRequestBuilderGetQueryParameters $queryParameters = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoSheetsRequestBuilderGetRequestConfiguration and sets the default values.
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
* @param IncoSheetsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null, ?IncoSheetsRequestBuilderGetQueryParameters $queryParameters = null) {
|
||||
*
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
* @param IncoSheetsRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null, ?IncoSheetsRequestBuilderGetQueryParameters $queryParameters = null)
|
||||
{
|
||||
parent::__construct($headers ?? [], $options ?? []);
|
||||
$this->queryParameters = $queryParameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoSheetsRequestBuilderGetQueryParameters.
|
||||
* @param array<string>|null $brands Filtrer par un ou plusieurs codes marque.
|
||||
* @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
* @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param bool|null $short Retourne la projection courte si true.
|
||||
* @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt).
|
||||
* @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des fiches INCO.
|
||||
* @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri.
|
||||
* @return IncoSheetsRequestBuilderGetQueryParameters
|
||||
*/
|
||||
public static function createQueryParameters(?array $brands = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?bool $short = null, ?DateTime $since = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null): IncoSheetsRequestBuilderGetQueryParameters {
|
||||
*
|
||||
* @param array<string>|null $brands Filtrer par un ou plusieurs codes marque.
|
||||
* @param int|null $limit Nombre maximal d'enregistrements pour la pagination par offset. Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $offset Décalage d'index pour la pagination basée sur l'offset. Les valeurs négatives sont silencieusement corrigées à 0.
|
||||
* @param int|null $page Numéro de page (1-based). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param int|null $pageSize Nombre d'éléments par page (max 10000). Les valeurs hors bornes sont silencieusement corrigées par l'API.
|
||||
* @param bool|null $short Retourne la projection courte si true.
|
||||
* @param DateTime|null $since Horodatage au format RFC3339 (borne inférieure sur updatedAt).
|
||||
* @param GetSortByQueryParameterType|null $sortBy Champ d'ordonnancement des fiches INCO.
|
||||
* @param GetSortDirectionQueryParameterType|null $sortDirection Sens du tri.
|
||||
*/
|
||||
public static function createQueryParameters(?array $brands = null, ?int $limit = null, ?int $offset = null, ?int $page = null, ?int $pageSize = null, ?bool $short = null, ?DateTime $since = null, ?GetSortByQueryParameterType $sortBy = null, ?GetSortDirectionQueryParameterType $sortDirection = null): IncoSheetsRequestBuilderGetQueryParameters
|
||||
{
|
||||
return new IncoSheetsRequestBuilderGetQueryParameters($brands, $limit, $offset, $page, $pageSize, $short, $since, $sortBy, $sortDirection);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
72
client/IncoSheets/Item/Composition/CompositionRequestBuilder.php
Executable file → Normal file
72
client/IncoSheets/Item/Composition/CompositionRequestBuilder.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\IncoSheets\Item\Composition;
|
||||
|
||||
use Exception;
|
||||
|
|
@ -14,15 +16,17 @@ use Uwil\ArcadiaKiotaOpenApiClient\Models\ValidationErrorProblemDetails;
|
|||
|
||||
/**
|
||||
* Builds and executes requests for operations under /inco-sheets/{incoId}/composition
|
||||
*/
|
||||
class CompositionRequestBuilder extends BaseRequestBuilder
|
||||
*/
|
||||
class CompositionRequestBuilder extends BaseRequestBuilder
|
||||
{
|
||||
/**
|
||||
* Instantiates a new CompositionRequestBuilder and sets the default values.
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
|
||||
*
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter)
|
||||
{
|
||||
parent::__construct($requestAdapter, [], '{+baseurl}/inco-sheets/{incoId}/composition');
|
||||
if (is_array($pathParametersOrRawUrl)) {
|
||||
$this->pathParameters = $pathParametersOrRawUrl;
|
||||
|
|
@ -33,50 +37,56 @@ class CompositionRequestBuilder extends BaseRequestBuilder
|
|||
|
||||
/**
|
||||
* Retourne le détail de la composition nutritionnelle et des ingrédients liés à une fiche INCO.
|
||||
* @param CompositionRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*
|
||||
* @param CompositionRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return Promise<IncoCompoItemResponse|null>
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public function get(?CompositionRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
*/
|
||||
public function get(?CompositionRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise
|
||||
{
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
$errorMappings = [
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'404' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'404' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
];
|
||||
|
||||
return $this->requestAdapter->sendAsync($requestInfo, [IncoCompoItemResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retourne le détail de la composition nutritionnelle et des ingrédients liés à une fiche INCO.
|
||||
* @param CompositionRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return RequestInformation
|
||||
*/
|
||||
public function toGetRequestInformation(?CompositionRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
*
|
||||
* @param CompositionRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
public function toGetRequestInformation(?CompositionRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation
|
||||
{
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
$requestInfo->pathParameters = $this->pathParameters;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
if ($requestConfiguration !== null) {
|
||||
$requestInfo->addHeaders($requestConfiguration->headers);
|
||||
$requestInfo->addRequestOptions(...$requestConfiguration->options);
|
||||
}
|
||||
$requestInfo->tryAddHeader('Accept', "application/json");
|
||||
$requestInfo->tryAddHeader('Accept', 'application/json');
|
||||
|
||||
return $requestInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
* @return CompositionRequestBuilder
|
||||
*/
|
||||
public function withUrl(string $rawUrl): CompositionRequestBuilder {
|
||||
*
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
*/
|
||||
public function withUrl(string $rawUrl): CompositionRequestBuilder
|
||||
{
|
||||
return new CompositionRequestBuilder($rawUrl, $this->requestAdapter);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
17
client/IncoSheets/Item/Composition/CompositionRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
17
client/IncoSheets/Item/Composition/CompositionRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\IncoSheets\Item\Composition;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
|
||||
|
|
@ -7,16 +9,17 @@ use Microsoft\Kiota\Abstractions\RequestOption;
|
|||
|
||||
/**
|
||||
* Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
class CompositionRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
*/
|
||||
class CompositionRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
{
|
||||
/**
|
||||
* Instantiates a new CompositionRequestBuilderGetRequestConfiguration and sets the default values.
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null) {
|
||||
*
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null)
|
||||
{
|
||||
parent::__construct($headers ?? [], $options ?? []);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
79
client/IncoSheets/Item/WithIncoItemRequestBuilder.php
Executable file → Normal file
79
client/IncoSheets/Item/WithIncoItemRequestBuilder.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\IncoSheets\Item;
|
||||
|
||||
use Exception;
|
||||
|
|
@ -15,22 +17,25 @@ use Uwil\ArcadiaKiotaOpenApiClient\Models\ValidationErrorProblemDetails;
|
|||
|
||||
/**
|
||||
* Builds and executes requests for operations under /inco-sheets/{incoId}
|
||||
*/
|
||||
class WithIncoItemRequestBuilder extends BaseRequestBuilder
|
||||
*/
|
||||
class WithIncoItemRequestBuilder extends BaseRequestBuilder
|
||||
{
|
||||
/**
|
||||
* The composition property
|
||||
*/
|
||||
public function composition(): CompositionRequestBuilder {
|
||||
*/
|
||||
public function composition(): CompositionRequestBuilder
|
||||
{
|
||||
return new CompositionRequestBuilder($this->pathParameters, $this->requestAdapter);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new WithIncoItemRequestBuilder and sets the default values.
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
|
||||
*
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter)
|
||||
{
|
||||
parent::__construct($requestAdapter, [], '{+baseurl}/inco-sheets/{incoId}');
|
||||
if (is_array($pathParametersOrRawUrl)) {
|
||||
$this->pathParameters = $pathParametersOrRawUrl;
|
||||
|
|
@ -41,50 +46,56 @@ class WithIncoItemRequestBuilder extends BaseRequestBuilder
|
|||
|
||||
/**
|
||||
* Retourne la fiche produit INCO détaillée correspondant à l'identifiant spécifié.
|
||||
* @param WithIncoItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*
|
||||
* @param WithIncoItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return Promise<IncoItemResponse|null>
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public function get(?WithIncoItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
*/
|
||||
public function get(?WithIncoItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise
|
||||
{
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
$errorMappings = [
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'404' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'404' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
];
|
||||
|
||||
return $this->requestAdapter->sendAsync($requestInfo, [IncoItemResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Retourne la fiche produit INCO détaillée correspondant à l'identifiant spécifié.
|
||||
* @param WithIncoItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return RequestInformation
|
||||
*/
|
||||
public function toGetRequestInformation(?WithIncoItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
*
|
||||
* @param WithIncoItemRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
public function toGetRequestInformation(?WithIncoItemRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation
|
||||
{
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
$requestInfo->pathParameters = $this->pathParameters;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
if ($requestConfiguration !== null) {
|
||||
$requestInfo->addHeaders($requestConfiguration->headers);
|
||||
$requestInfo->addRequestOptions(...$requestConfiguration->options);
|
||||
}
|
||||
$requestInfo->tryAddHeader('Accept', "application/json");
|
||||
$requestInfo->tryAddHeader('Accept', 'application/json');
|
||||
|
||||
return $requestInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
* @return WithIncoItemRequestBuilder
|
||||
*/
|
||||
public function withUrl(string $rawUrl): WithIncoItemRequestBuilder {
|
||||
*
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
*/
|
||||
public function withUrl(string $rawUrl): WithIncoItemRequestBuilder
|
||||
{
|
||||
return new WithIncoItemRequestBuilder($rawUrl, $this->requestAdapter);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
17
client/IncoSheets/Item/WithIncoItemRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
17
client/IncoSheets/Item/WithIncoItemRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\IncoSheets\Item;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
|
||||
|
|
@ -7,16 +9,17 @@ use Microsoft\Kiota\Abstractions\RequestOption;
|
|||
|
||||
/**
|
||||
* Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
class WithIncoItemRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
*/
|
||||
class WithIncoItemRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
{
|
||||
/**
|
||||
* Instantiates a new WithIncoItemRequestBuilderGetRequestConfiguration and sets the default values.
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null) {
|
||||
*
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null)
|
||||
{
|
||||
parent::__construct($headers ?? [], $options ?? []);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
70
client/IncoSheets/Search/SearchRequestBuilder.php
Executable file → Normal file
70
client/IncoSheets/Search/SearchRequestBuilder.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\IncoSheets\Search;
|
||||
|
||||
use Exception;
|
||||
|
|
@ -14,15 +16,17 @@ use Uwil\ArcadiaKiotaOpenApiClient\Models\ValidationErrorProblemDetails;
|
|||
|
||||
/**
|
||||
* Builds and executes requests for operations under /inco-sheets/search
|
||||
*/
|
||||
class SearchRequestBuilder extends BaseRequestBuilder
|
||||
*/
|
||||
class SearchRequestBuilder extends BaseRequestBuilder
|
||||
{
|
||||
/**
|
||||
* Instantiates a new SearchRequestBuilder and sets the default values.
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter) {
|
||||
*
|
||||
* @param array<string, mixed>|string $pathParametersOrRawUrl Path parameters for the request or a String representing the raw URL.
|
||||
* @param RequestAdapter $requestAdapter The request adapter to use to execute the requests.
|
||||
*/
|
||||
public function __construct($pathParametersOrRawUrl, RequestAdapter $requestAdapter)
|
||||
{
|
||||
parent::__construct($requestAdapter, [], '{+baseurl}/inco-sheets/search?incoIdLike={incoIdLike}{&brands*,short*}');
|
||||
if (is_array($pathParametersOrRawUrl)) {
|
||||
$this->pathParameters = $pathParametersOrRawUrl;
|
||||
|
|
@ -33,34 +37,39 @@ class SearchRequestBuilder extends BaseRequestBuilder
|
|||
|
||||
/**
|
||||
* Recherche des fiches INCO dont l'ID correspond à un motif (`incoIdLike`).Prend également en charge la projection au format court (`short=true`).
|
||||
* @param SearchRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*
|
||||
* @param SearchRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return Promise<IncoListResponse|null>
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
public function get(?SearchRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise {
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
*/
|
||||
public function get(?SearchRequestBuilderGetRequestConfiguration $requestConfiguration = null): Promise
|
||||
{
|
||||
$requestInfo = $this->toGetRequestInformation($requestConfiguration);
|
||||
$errorMappings = [
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'400' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'401' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'403' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'422' => [ValidationErrorProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'429' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'500' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
'503' => [ProblemDetails::class, 'createFromDiscriminatorValue'],
|
||||
];
|
||||
|
||||
return $this->requestAdapter->sendAsync($requestInfo, [IncoListResponse::class, 'createFromDiscriminatorValue'], $errorMappings);
|
||||
}
|
||||
|
||||
/**
|
||||
* Recherche des fiches INCO dont l'ID correspond à un motif (`incoIdLike`).Prend également en charge la projection au format court (`short=true`).
|
||||
* @param SearchRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
* @return RequestInformation
|
||||
*/
|
||||
public function toGetRequestInformation(?SearchRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation {
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
*
|
||||
* @param SearchRequestBuilderGetRequestConfiguration|null $requestConfiguration Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
public function toGetRequestInformation(?SearchRequestBuilderGetRequestConfiguration $requestConfiguration = null): RequestInformation
|
||||
{
|
||||
$requestInfo = new RequestInformation();
|
||||
$requestInfo->urlTemplate = $this->urlTemplate;
|
||||
$requestInfo->pathParameters = $this->pathParameters;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
$requestInfo->httpMethod = HttpMethod::GET;
|
||||
if ($requestConfiguration !== null) {
|
||||
$requestInfo->addHeaders($requestConfiguration->headers);
|
||||
if ($requestConfiguration->queryParameters !== null) {
|
||||
|
|
@ -68,17 +77,18 @@ class SearchRequestBuilder extends BaseRequestBuilder
|
|||
}
|
||||
$requestInfo->addRequestOptions(...$requestConfiguration->options);
|
||||
}
|
||||
$requestInfo->tryAddHeader('Accept', "application/json");
|
||||
$requestInfo->tryAddHeader('Accept', 'application/json');
|
||||
|
||||
return $requestInfo;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
* @return SearchRequestBuilder
|
||||
*/
|
||||
public function withUrl(string $rawUrl): SearchRequestBuilder {
|
||||
*
|
||||
* @param string $rawUrl The raw URL to use for the request builder.
|
||||
*/
|
||||
public function withUrl(string $rawUrl): SearchRequestBuilder
|
||||
{
|
||||
return new SearchRequestBuilder($rawUrl, $this->requestAdapter);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
41
client/IncoSheets/Search/SearchRequestBuilderGetQueryParameters.php
Executable file → Normal file
41
client/IncoSheets/Search/SearchRequestBuilderGetQueryParameters.php
Executable file → Normal file
|
|
@ -1,37 +1,40 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\IncoSheets\Search;
|
||||
|
||||
/**
|
||||
* Recherche des fiches INCO dont l'ID correspond à un motif (`incoIdLike`).Prend également en charge la projection au format court (`short=true`).
|
||||
*/
|
||||
class SearchRequestBuilderGetQueryParameters
|
||||
*/
|
||||
class SearchRequestBuilderGetQueryParameters
|
||||
{
|
||||
/**
|
||||
* @var array<string>|null $brands Filtrer par un ou plusieurs codes marque.
|
||||
*/
|
||||
* @var array<string>|null Filtrer par un ou plusieurs codes marque.
|
||||
*/
|
||||
public ?array $brands = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $incoIdLike Motif de recherche d'ID (SQL LIKE).
|
||||
*/
|
||||
* @var string|null Motif de recherche d'ID (SQL LIKE).
|
||||
*/
|
||||
public ?string $incoIdLike = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var bool|null $short Retourne la projection courte si true.
|
||||
*/
|
||||
* @var bool|null Retourne la projection courte si true.
|
||||
*/
|
||||
public ?bool $short = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new SearchRequestBuilderGetQueryParameters and sets the default values.
|
||||
* @param array<string>|null $brands Filtrer par un ou plusieurs codes marque.
|
||||
* @param string|null $incoIdLike Motif de recherche d'ID (SQL LIKE).
|
||||
* @param bool|null $short Retourne la projection courte si true.
|
||||
*/
|
||||
public function __construct(?array $brands = null, ?string $incoIdLike = null, ?bool $short = null) {
|
||||
$this->brands = $brands;
|
||||
*
|
||||
* @param array<string>|null $brands Filtrer par un ou plusieurs codes marque.
|
||||
* @param string|null $incoIdLike Motif de recherche d'ID (SQL LIKE).
|
||||
* @param bool|null $short Retourne la projection courte si true.
|
||||
*/
|
||||
public function __construct(?array $brands = null, ?string $incoIdLike = null, ?bool $short = null)
|
||||
{
|
||||
$this->brands = $brands;
|
||||
$this->incoIdLike = $incoIdLike;
|
||||
$this->short = $short;
|
||||
$this->short = $short;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
38
client/IncoSheets/Search/SearchRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
38
client/IncoSheets/Search/SearchRequestBuilderGetRequestConfiguration.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\IncoSheets\Search;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\BaseRequestConfiguration;
|
||||
|
|
@ -7,34 +9,36 @@ use Microsoft\Kiota\Abstractions\RequestOption;
|
|||
|
||||
/**
|
||||
* Configuration for the request such as headers, query parameters, and middleware options.
|
||||
*/
|
||||
class SearchRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
*/
|
||||
class SearchRequestBuilderGetRequestConfiguration extends BaseRequestConfiguration
|
||||
{
|
||||
/**
|
||||
* @var SearchRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
|
||||
*/
|
||||
* @var SearchRequestBuilderGetQueryParameters|null Request query parameters
|
||||
*/
|
||||
public ?SearchRequestBuilderGetQueryParameters $queryParameters = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new SearchRequestBuilderGetRequestConfiguration and sets the default values.
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
* @param SearchRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null, ?SearchRequestBuilderGetQueryParameters $queryParameters = null) {
|
||||
*
|
||||
* @param array<string, array<string>|string>|null $headers Request headers
|
||||
* @param array<RequestOption>|null $options Request options
|
||||
* @param SearchRequestBuilderGetQueryParameters|null $queryParameters Request query parameters
|
||||
*/
|
||||
public function __construct(?array $headers = null, ?array $options = null, ?SearchRequestBuilderGetQueryParameters $queryParameters = null)
|
||||
{
|
||||
parent::__construct($headers ?? [], $options ?? []);
|
||||
$this->queryParameters = $queryParameters;
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a new SearchRequestBuilderGetQueryParameters.
|
||||
* @param array<string>|null $brands Filtrer par un ou plusieurs codes marque.
|
||||
* @param string|null $incoIdLike Motif de recherche d'ID (SQL LIKE).
|
||||
* @param bool|null $short Retourne la projection courte si true.
|
||||
* @return SearchRequestBuilderGetQueryParameters
|
||||
*/
|
||||
public static function createQueryParameters(?array $brands = null, ?string $incoIdLike = null, ?bool $short = null): SearchRequestBuilderGetQueryParameters {
|
||||
*
|
||||
* @param array<string>|null $brands Filtrer par un ou plusieurs codes marque.
|
||||
* @param string|null $incoIdLike Motif de recherche d'ID (SQL LIKE).
|
||||
* @param bool|null $short Retourne la projection courte si true.
|
||||
*/
|
||||
public static function createQueryParameters(?array $brands = null, ?string $incoIdLike = null, ?bool $short = null): SearchRequestBuilderGetQueryParameters
|
||||
{
|
||||
return new SearchRequestBuilderGetQueryParameters($brands, $incoIdLike, $short);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
146
client/Models/Brand.php
Executable file → Normal file
146
client/Models/Brand.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use DateTime;
|
||||
|
|
@ -10,109 +12,118 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Représentation canonique d'une marque dans Arcadia API.
|
||||
*/
|
||||
class Brand implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class Brand implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $arcadiaId Identifiant numérique amont Arcadia.
|
||||
*/
|
||||
* @var string|null Identifiant numérique amont Arcadia.
|
||||
*/
|
||||
private ?string $arcadiaId = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $code Code public unique trigramme + 2 chiffres.
|
||||
*/
|
||||
* @var string|null Code public unique trigramme + 2 chiffres.
|
||||
*/
|
||||
private ?string $code = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var DateTime|null $createdAt Date et heure de création (ISO 8601).
|
||||
*/
|
||||
* @var DateTime|null Date et heure de création (ISO 8601).
|
||||
*/
|
||||
private ?DateTime $createdAt = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $name Nom / libellé de la marque.
|
||||
*/
|
||||
* @var string|null Nom / libellé de la marque.
|
||||
*/
|
||||
private ?string $name = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new Brand and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return Brand
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Brand {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Brand
|
||||
{
|
||||
return new Brand();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the arcadiaId property value. Identifiant numérique amont Arcadia.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getArcadiaId(): ?string {
|
||||
*/
|
||||
public function getArcadiaId(): ?string
|
||||
{
|
||||
return $this->arcadiaId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the code property value. Code public unique trigramme + 2 chiffres.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCode(): ?string {
|
||||
*/
|
||||
public function getCode(): ?string
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the createdAt property value. Date et heure de création (ISO 8601).
|
||||
* @return DateTime|null
|
||||
*/
|
||||
public function getCreatedAt(): ?DateTime {
|
||||
*/
|
||||
public function getCreatedAt(): ?DateTime
|
||||
{
|
||||
return $this->createdAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'arcadiaId' => fn(ParseNode $n) => $o->setArcadiaId($n->getStringValue()),
|
||||
'code' => fn(ParseNode $n) => $o->setCode($n->getStringValue()),
|
||||
'createdAt' => fn(ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()),
|
||||
'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'arcadiaId' => fn (ParseNode $n) => $o->setArcadiaId($n->getStringValue()),
|
||||
'code' => fn (ParseNode $n) => $o->setCode($n->getStringValue()),
|
||||
'createdAt' => fn (ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()),
|
||||
'name' => fn (ParseNode $n) => $o->setName($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name property value. Nom / libellé de la marque.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getName(): ?string {
|
||||
*/
|
||||
public function getName(): ?string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('arcadiaId', $this->getArcadiaId());
|
||||
$writer->writeStringValue('code', $this->getCode());
|
||||
$writer->writeDateTimeValue('createdAt', $this->getCreatedAt());
|
||||
|
|
@ -122,42 +133,51 @@ class Brand implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the arcadiaId property value. Identifiant numérique amont Arcadia.
|
||||
* @param string|null $value Value to set for the arcadiaId property.
|
||||
*/
|
||||
public function setArcadiaId(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the arcadiaId property.
|
||||
*/
|
||||
public function setArcadiaId(?string $value): void
|
||||
{
|
||||
$this->arcadiaId = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the code property value. Code public unique trigramme + 2 chiffres.
|
||||
* @param string|null $value Value to set for the code property.
|
||||
*/
|
||||
public function setCode(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the code property.
|
||||
*/
|
||||
public function setCode(?string $value): void
|
||||
{
|
||||
$this->code = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the createdAt property value. Date et heure de création (ISO 8601).
|
||||
* @param DateTime|null $value Value to set for the createdAt property.
|
||||
*/
|
||||
public function setCreatedAt(?DateTime $value): void {
|
||||
*
|
||||
* @param DateTime|null $value Value to set for the createdAt property.
|
||||
*/
|
||||
public function setCreatedAt(?DateTime $value): void
|
||||
{
|
||||
$this->createdAt = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name property value. Nom / libellé de la marque.
|
||||
* @param string|null $value Value to set for the name property.
|
||||
*/
|
||||
public function setName(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the name property.
|
||||
*/
|
||||
public function setName(?string $value): void
|
||||
{
|
||||
$this->name = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
80
client/Models/BrandItemResponse.php
Executable file → Normal file
80
client/Models/BrandItemResponse.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,85 +11,97 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Enveloppe de réponse pour le détail d'une marque.
|
||||
*/
|
||||
class BrandItemResponse implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class BrandItemResponse implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Brand|null $brand Représentation canonique d'une marque dans Arcadia API.
|
||||
*/
|
||||
* @var Brand|null Représentation canonique d'une marque dans Arcadia API.
|
||||
*/
|
||||
private ?Brand $brand = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new BrandItemResponse and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return BrandItemResponse
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): BrandItemResponse {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): BrandItemResponse
|
||||
{
|
||||
return new BrandItemResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the brand property value. Représentation canonique d'une marque dans Arcadia API.
|
||||
* @return Brand|null
|
||||
*/
|
||||
public function getBrand(): ?Brand {
|
||||
*/
|
||||
public function getBrand(): ?Brand
|
||||
{
|
||||
return $this->brand;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'brand' => fn(ParseNode $n) => $o->setBrand($n->getObjectValue([Brand::class, 'createFromDiscriminatorValue'])),
|
||||
|
||||
return [
|
||||
'brand' => fn (ParseNode $n) => $o->setBrand($n->getObjectValue([Brand::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeObjectValue('brand', $this->getBrand());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the brand property value. Représentation canonique d'une marque dans Arcadia API.
|
||||
* @param Brand|null $value Value to set for the brand property.
|
||||
*/
|
||||
public function setBrand(?Brand $value): void {
|
||||
*
|
||||
* @param Brand|null $value Value to set for the brand property.
|
||||
*/
|
||||
public function setBrand(?Brand $value): void
|
||||
{
|
||||
$this->brand = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
102
client/Models/BrandListResponse.php
Executable file → Normal file
102
client/Models/BrandListResponse.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,81 +11,92 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Enveloppe de réponse pour la liste paginée des marques.
|
||||
*/
|
||||
class BrandListResponse implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class BrandListResponse implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var array<Brand>|null $brands Collection des marques de la page.
|
||||
*/
|
||||
* @var array<Brand>|null Collection des marques de la page.
|
||||
*/
|
||||
private ?array $brands = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PaginationMeta|null $pagination Métadonnées de pagination.
|
||||
*/
|
||||
* @var PaginationMeta|null Métadonnées de pagination.
|
||||
*/
|
||||
private ?PaginationMeta $pagination = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new BrandListResponse and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return BrandListResponse
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): BrandListResponse {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): BrandListResponse
|
||||
{
|
||||
return new BrandListResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the brands property value. Collection des marques de la page.
|
||||
*
|
||||
* @return array<Brand>|null
|
||||
*/
|
||||
public function getBrands(): ?array {
|
||||
*/
|
||||
public function getBrands(): ?array
|
||||
{
|
||||
return $this->brands;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'brands' => fn(ParseNode $n) => $o->setBrands($n->getCollectionOfObjectValues([Brand::class, 'createFromDiscriminatorValue'])),
|
||||
'pagination' => fn(ParseNode $n) => $o->setPagination($n->getObjectValue([PaginationMeta::class, 'createFromDiscriminatorValue'])),
|
||||
|
||||
return [
|
||||
'brands' => fn (ParseNode $n) => $o->setBrands($n->getCollectionOfObjectValues([Brand::class, 'createFromDiscriminatorValue'])),
|
||||
'pagination' => fn (ParseNode $n) => $o->setPagination($n->getObjectValue([PaginationMeta::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the pagination property value. Métadonnées de pagination.
|
||||
* @return PaginationMeta|null
|
||||
*/
|
||||
public function getPagination(): ?PaginationMeta {
|
||||
*/
|
||||
public function getPagination(): ?PaginationMeta
|
||||
{
|
||||
return $this->pagination;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeCollectionOfObjectValues('brands', $this->getBrands());
|
||||
$writer->writeObjectValue('pagination', $this->getPagination());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
|
|
@ -91,26 +104,31 @@ class BrandListResponse implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the brands property value. Collection des marques de la page.
|
||||
* @param array<Brand>|null $value Value to set for the brands property.
|
||||
*/
|
||||
public function setBrands(?array $value): void {
|
||||
*
|
||||
* @param array<Brand>|null $value Value to set for the brands property.
|
||||
*/
|
||||
public function setBrands(?array $value): void
|
||||
{
|
||||
$this->brands = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the pagination property value. Métadonnées de pagination.
|
||||
* @param PaginationMeta|null $value Value to set for the pagination property.
|
||||
*/
|
||||
public function setPagination(?PaginationMeta $value): void {
|
||||
*
|
||||
* @param PaginationMeta|null $value Value to set for the pagination property.
|
||||
*/
|
||||
public function setPagination(?PaginationMeta $value): void
|
||||
{
|
||||
$this->pagination = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
300
client/Models/Employee.php
Executable file → Normal file
300
client/Models/Employee.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use DateTime;
|
||||
|
|
@ -11,207 +13,216 @@ use Microsoft\Kiota\Abstractions\Types\Date;
|
|||
|
||||
/**
|
||||
* Représentation canonique d'un employé dans le métamodèle Arcadia.
|
||||
*/
|
||||
class Employee implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class Employee implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var DateTime|null $createdAt Date d'enregistrement dans le système.
|
||||
*/
|
||||
* @var DateTime|null Date d'enregistrement dans le système.
|
||||
*/
|
||||
private ?DateTime $createdAt = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Date|null $endDate Date de fin de contrat effective (optionnelle).
|
||||
*/
|
||||
* @var Date|null Date de fin de contrat effective (optionnelle).
|
||||
*/
|
||||
private ?Date $endDate = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $establishment Code de l'établissement d'affectation.
|
||||
*/
|
||||
* @var string|null Code de l'établissement d'affectation.
|
||||
*/
|
||||
private ?string $establishment = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $firstName Prénom de l'employé.
|
||||
*/
|
||||
* @var string|null Prénom de l'employé.
|
||||
*/
|
||||
private ?string $firstName = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $lastName Nom de famille de l'employé.
|
||||
*/
|
||||
* @var string|null Nom de famille de l'employé.
|
||||
*/
|
||||
private ?string $lastName = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $matricule Matricule public unique de l'employé (SIRH).
|
||||
*/
|
||||
* @var string|null Matricule public unique de l'employé (SIRH).
|
||||
*/
|
||||
private ?string $matricule = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Date|null $plannedEndDate Date de fin de contrat prévue (optionnelle).
|
||||
*/
|
||||
* @var Date|null Date de fin de contrat prévue (optionnelle).
|
||||
*/
|
||||
private ?Date $plannedEndDate = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $service Identifiant du service interne.
|
||||
*/
|
||||
* @var string|null Identifiant du service interne.
|
||||
*/
|
||||
private ?string $service = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $site Code du site géographique.
|
||||
*/
|
||||
* @var string|null Code du site géographique.
|
||||
*/
|
||||
private ?string $site = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Date|null $startDate Date de prise de poste (YYYY-MM-DD).
|
||||
*/
|
||||
* @var Date|null Date de prise de poste (YYYY-MM-DD).
|
||||
*/
|
||||
private ?Date $startDate = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var DateTime|null $updatedAt Date de dernière mise à jour.
|
||||
*/
|
||||
* @var DateTime|null Date de dernière mise à jour.
|
||||
*/
|
||||
private ?DateTime $updatedAt = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new Employee and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return Employee
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Employee {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Employee
|
||||
{
|
||||
return new Employee();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the createdAt property value. Date d'enregistrement dans le système.
|
||||
* @return DateTime|null
|
||||
*/
|
||||
public function getCreatedAt(): ?DateTime {
|
||||
*/
|
||||
public function getCreatedAt(): ?DateTime
|
||||
{
|
||||
return $this->createdAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the endDate property value. Date de fin de contrat effective (optionnelle).
|
||||
* @return Date|null
|
||||
*/
|
||||
public function getEndDate(): ?Date {
|
||||
*/
|
||||
public function getEndDate(): ?Date
|
||||
{
|
||||
return $this->endDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the establishment property value. Code de l'établissement d'affectation.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getEstablishment(): ?string {
|
||||
*/
|
||||
public function getEstablishment(): ?string
|
||||
{
|
||||
return $this->establishment;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'createdAt' => fn(ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()),
|
||||
'endDate' => fn(ParseNode $n) => $o->setEndDate($n->getDateValue()),
|
||||
'establishment' => fn(ParseNode $n) => $o->setEstablishment($n->getStringValue()),
|
||||
'firstName' => fn(ParseNode $n) => $o->setFirstName($n->getStringValue()),
|
||||
'lastName' => fn(ParseNode $n) => $o->setLastName($n->getStringValue()),
|
||||
'matricule' => fn(ParseNode $n) => $o->setMatricule($n->getStringValue()),
|
||||
'plannedEndDate' => fn(ParseNode $n) => $o->setPlannedEndDate($n->getDateValue()),
|
||||
'service' => fn(ParseNode $n) => $o->setService($n->getStringValue()),
|
||||
'site' => fn(ParseNode $n) => $o->setSite($n->getStringValue()),
|
||||
'startDate' => fn(ParseNode $n) => $o->setStartDate($n->getDateValue()),
|
||||
'updatedAt' => fn(ParseNode $n) => $o->setUpdatedAt($n->getDateTimeValue()),
|
||||
|
||||
return [
|
||||
'createdAt' => fn (ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()),
|
||||
'endDate' => fn (ParseNode $n) => $o->setEndDate($n->getDateValue()),
|
||||
'establishment' => fn (ParseNode $n) => $o->setEstablishment($n->getStringValue()),
|
||||
'firstName' => fn (ParseNode $n) => $o->setFirstName($n->getStringValue()),
|
||||
'lastName' => fn (ParseNode $n) => $o->setLastName($n->getStringValue()),
|
||||
'matricule' => fn (ParseNode $n) => $o->setMatricule($n->getStringValue()),
|
||||
'plannedEndDate' => fn (ParseNode $n) => $o->setPlannedEndDate($n->getDateValue()),
|
||||
'service' => fn (ParseNode $n) => $o->setService($n->getStringValue()),
|
||||
'site' => fn (ParseNode $n) => $o->setSite($n->getStringValue()),
|
||||
'startDate' => fn (ParseNode $n) => $o->setStartDate($n->getDateValue()),
|
||||
'updatedAt' => fn (ParseNode $n) => $o->setUpdatedAt($n->getDateTimeValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the firstName property value. Prénom de l'employé.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFirstName(): ?string {
|
||||
*/
|
||||
public function getFirstName(): ?string
|
||||
{
|
||||
return $this->firstName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the lastName property value. Nom de famille de l'employé.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getLastName(): ?string {
|
||||
*/
|
||||
public function getLastName(): ?string
|
||||
{
|
||||
return $this->lastName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the matricule property value. Matricule public unique de l'employé (SIRH).
|
||||
* @return string|null
|
||||
*/
|
||||
public function getMatricule(): ?string {
|
||||
*/
|
||||
public function getMatricule(): ?string
|
||||
{
|
||||
return $this->matricule;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the plannedEndDate property value. Date de fin de contrat prévue (optionnelle).
|
||||
* @return Date|null
|
||||
*/
|
||||
public function getPlannedEndDate(): ?Date {
|
||||
*/
|
||||
public function getPlannedEndDate(): ?Date
|
||||
{
|
||||
return $this->plannedEndDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the service property value. Identifiant du service interne.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getService(): ?string {
|
||||
*/
|
||||
public function getService(): ?string
|
||||
{
|
||||
return $this->service;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the site property value. Code du site géographique.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSite(): ?string {
|
||||
*/
|
||||
public function getSite(): ?string
|
||||
{
|
||||
return $this->site;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the startDate property value. Date de prise de poste (YYYY-MM-DD).
|
||||
* @return Date|null
|
||||
*/
|
||||
public function getStartDate(): ?Date {
|
||||
*/
|
||||
public function getStartDate(): ?Date
|
||||
{
|
||||
return $this->startDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the updatedAt property value. Date de dernière mise à jour.
|
||||
* @return DateTime|null
|
||||
*/
|
||||
public function getUpdatedAt(): ?DateTime {
|
||||
*/
|
||||
public function getUpdatedAt(): ?DateTime
|
||||
{
|
||||
return $this->updatedAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeDateTimeValue('createdAt', $this->getCreatedAt());
|
||||
$writer->writeDateValue('endDate', $this->getEndDate());
|
||||
$writer->writeStringValue('establishment', $this->getEstablishment());
|
||||
|
|
@ -228,98 +239,121 @@ class Employee implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the createdAt property value. Date d'enregistrement dans le système.
|
||||
* @param DateTime|null $value Value to set for the createdAt property.
|
||||
*/
|
||||
public function setCreatedAt(?DateTime $value): void {
|
||||
*
|
||||
* @param DateTime|null $value Value to set for the createdAt property.
|
||||
*/
|
||||
public function setCreatedAt(?DateTime $value): void
|
||||
{
|
||||
$this->createdAt = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the endDate property value. Date de fin de contrat effective (optionnelle).
|
||||
* @param Date|null $value Value to set for the endDate property.
|
||||
*/
|
||||
public function setEndDate(?Date $value): void {
|
||||
*
|
||||
* @param Date|null $value Value to set for the endDate property.
|
||||
*/
|
||||
public function setEndDate(?Date $value): void
|
||||
{
|
||||
$this->endDate = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the establishment property value. Code de l'établissement d'affectation.
|
||||
* @param string|null $value Value to set for the establishment property.
|
||||
*/
|
||||
public function setEstablishment(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the establishment property.
|
||||
*/
|
||||
public function setEstablishment(?string $value): void
|
||||
{
|
||||
$this->establishment = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the firstName property value. Prénom de l'employé.
|
||||
* @param string|null $value Value to set for the firstName property.
|
||||
*/
|
||||
public function setFirstName(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the firstName property.
|
||||
*/
|
||||
public function setFirstName(?string $value): void
|
||||
{
|
||||
$this->firstName = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the lastName property value. Nom de famille de l'employé.
|
||||
* @param string|null $value Value to set for the lastName property.
|
||||
*/
|
||||
public function setLastName(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the lastName property.
|
||||
*/
|
||||
public function setLastName(?string $value): void
|
||||
{
|
||||
$this->lastName = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the matricule property value. Matricule public unique de l'employé (SIRH).
|
||||
* @param string|null $value Value to set for the matricule property.
|
||||
*/
|
||||
public function setMatricule(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the matricule property.
|
||||
*/
|
||||
public function setMatricule(?string $value): void
|
||||
{
|
||||
$this->matricule = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the plannedEndDate property value. Date de fin de contrat prévue (optionnelle).
|
||||
* @param Date|null $value Value to set for the plannedEndDate property.
|
||||
*/
|
||||
public function setPlannedEndDate(?Date $value): void {
|
||||
*
|
||||
* @param Date|null $value Value to set for the plannedEndDate property.
|
||||
*/
|
||||
public function setPlannedEndDate(?Date $value): void
|
||||
{
|
||||
$this->plannedEndDate = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the service property value. Identifiant du service interne.
|
||||
* @param string|null $value Value to set for the service property.
|
||||
*/
|
||||
public function setService(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the service property.
|
||||
*/
|
||||
public function setService(?string $value): void
|
||||
{
|
||||
$this->service = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the site property value. Code du site géographique.
|
||||
* @param string|null $value Value to set for the site property.
|
||||
*/
|
||||
public function setSite(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the site property.
|
||||
*/
|
||||
public function setSite(?string $value): void
|
||||
{
|
||||
$this->site = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the startDate property value. Date de prise de poste (YYYY-MM-DD).
|
||||
* @param Date|null $value Value to set for the startDate property.
|
||||
*/
|
||||
public function setStartDate(?Date $value): void {
|
||||
*
|
||||
* @param Date|null $value Value to set for the startDate property.
|
||||
*/
|
||||
public function setStartDate(?Date $value): void
|
||||
{
|
||||
$this->startDate = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the updatedAt property value. Date de dernière mise à jour.
|
||||
* @param DateTime|null $value Value to set for the updatedAt property.
|
||||
*/
|
||||
public function setUpdatedAt(?DateTime $value): void {
|
||||
*
|
||||
* @param DateTime|null $value Value to set for the updatedAt property.
|
||||
*/
|
||||
public function setUpdatedAt(?DateTime $value): void
|
||||
{
|
||||
$this->updatedAt = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
80
client/Models/EmployeeItemResponse.php
Executable file → Normal file
80
client/Models/EmployeeItemResponse.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,85 +11,97 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Enveloppe de réponse pour le détail d'un employé.
|
||||
*/
|
||||
class EmployeeItemResponse implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class EmployeeItemResponse implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Employee|null $employee Représentation canonique d'un employé dans le métamodèle Arcadia.
|
||||
*/
|
||||
* @var Employee|null Représentation canonique d'un employé dans le métamodèle Arcadia.
|
||||
*/
|
||||
private ?Employee $employee = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new EmployeeItemResponse and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return EmployeeItemResponse
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): EmployeeItemResponse {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): EmployeeItemResponse
|
||||
{
|
||||
return new EmployeeItemResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the employee property value. Représentation canonique d'un employé dans le métamodèle Arcadia.
|
||||
* @return Employee|null
|
||||
*/
|
||||
public function getEmployee(): ?Employee {
|
||||
*/
|
||||
public function getEmployee(): ?Employee
|
||||
{
|
||||
return $this->employee;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'employee' => fn(ParseNode $n) => $o->setEmployee($n->getObjectValue([Employee::class, 'createFromDiscriminatorValue'])),
|
||||
|
||||
return [
|
||||
'employee' => fn (ParseNode $n) => $o->setEmployee($n->getObjectValue([Employee::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeObjectValue('employee', $this->getEmployee());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the employee property value. Représentation canonique d'un employé dans le métamodèle Arcadia.
|
||||
* @param Employee|null $value Value to set for the employee property.
|
||||
*/
|
||||
public function setEmployee(?Employee $value): void {
|
||||
*
|
||||
* @param Employee|null $value Value to set for the employee property.
|
||||
*/
|
||||
public function setEmployee(?Employee $value): void
|
||||
{
|
||||
$this->employee = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
102
client/Models/EmployeeListResponse.php
Executable file → Normal file
102
client/Models/EmployeeListResponse.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,81 +11,92 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Enveloppe de réponse pour la liste paginée des employés.
|
||||
*/
|
||||
class EmployeeListResponse implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class EmployeeListResponse implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var array<Employee>|null $employees Collection des employés de la page.
|
||||
*/
|
||||
* @var array<Employee>|null Collection des employés de la page.
|
||||
*/
|
||||
private ?array $employees = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PaginationMeta|null $pagination Métadonnées de pagination.
|
||||
*/
|
||||
* @var PaginationMeta|null Métadonnées de pagination.
|
||||
*/
|
||||
private ?PaginationMeta $pagination = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new EmployeeListResponse and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return EmployeeListResponse
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): EmployeeListResponse {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): EmployeeListResponse
|
||||
{
|
||||
return new EmployeeListResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the employees property value. Collection des employés de la page.
|
||||
*
|
||||
* @return array<Employee>|null
|
||||
*/
|
||||
public function getEmployees(): ?array {
|
||||
*/
|
||||
public function getEmployees(): ?array
|
||||
{
|
||||
return $this->employees;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'employees' => fn(ParseNode $n) => $o->setEmployees($n->getCollectionOfObjectValues([Employee::class, 'createFromDiscriminatorValue'])),
|
||||
'pagination' => fn(ParseNode $n) => $o->setPagination($n->getObjectValue([PaginationMeta::class, 'createFromDiscriminatorValue'])),
|
||||
|
||||
return [
|
||||
'employees' => fn (ParseNode $n) => $o->setEmployees($n->getCollectionOfObjectValues([Employee::class, 'createFromDiscriminatorValue'])),
|
||||
'pagination' => fn (ParseNode $n) => $o->setPagination($n->getObjectValue([PaginationMeta::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the pagination property value. Métadonnées de pagination.
|
||||
* @return PaginationMeta|null
|
||||
*/
|
||||
public function getPagination(): ?PaginationMeta {
|
||||
*/
|
||||
public function getPagination(): ?PaginationMeta
|
||||
{
|
||||
return $this->pagination;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeCollectionOfObjectValues('employees', $this->getEmployees());
|
||||
$writer->writeObjectValue('pagination', $this->getPagination());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
|
|
@ -91,26 +104,31 @@ class EmployeeListResponse implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the employees property value. Collection des employés de la page.
|
||||
* @param array<Employee>|null $value Value to set for the employees property.
|
||||
*/
|
||||
public function setEmployees(?array $value): void {
|
||||
*
|
||||
* @param array<Employee>|null $value Value to set for the employees property.
|
||||
*/
|
||||
public function setEmployees(?array $value): void
|
||||
{
|
||||
$this->employees = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the pagination property value. Métadonnées de pagination.
|
||||
* @param PaginationMeta|null $value Value to set for the pagination property.
|
||||
*/
|
||||
public function setPagination(?PaginationMeta $value): void {
|
||||
*
|
||||
* @param PaginationMeta|null $value Value to set for the pagination property.
|
||||
*/
|
||||
public function setPagination(?PaginationMeta $value): void
|
||||
{
|
||||
$this->pagination = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
124
client/Models/EnergyValues.php
Executable file → Normal file
124
client/Models/EnergyValues.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,95 +11,104 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Quantités d'énergie (portion ou référence).
|
||||
*/
|
||||
class EnergyValues implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class EnergyValues implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $energyKcal The energyKcal property
|
||||
*/
|
||||
* @var string|null The energyKcal property
|
||||
*/
|
||||
private ?string $energyKcal = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $energyKj The energyKj property
|
||||
*/
|
||||
* @var string|null The energyKj property
|
||||
*/
|
||||
private ?string $energyKj = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $size The size property
|
||||
*/
|
||||
* @var string|null The size property
|
||||
*/
|
||||
private ?string $size = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new EnergyValues and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return EnergyValues
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): EnergyValues {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): EnergyValues
|
||||
{
|
||||
return new EnergyValues();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the energyKcal property value. The energyKcal property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getEnergyKcal(): ?string {
|
||||
*/
|
||||
public function getEnergyKcal(): ?string
|
||||
{
|
||||
return $this->energyKcal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the energyKj property value. The energyKj property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getEnergyKj(): ?string {
|
||||
*/
|
||||
public function getEnergyKj(): ?string
|
||||
{
|
||||
return $this->energyKj;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'energyKcal' => fn(ParseNode $n) => $o->setEnergyKcal($n->getStringValue()),
|
||||
'energyKj' => fn(ParseNode $n) => $o->setEnergyKj($n->getStringValue()),
|
||||
'size' => fn(ParseNode $n) => $o->setSize($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'energyKcal' => fn (ParseNode $n) => $o->setEnergyKcal($n->getStringValue()),
|
||||
'energyKj' => fn (ParseNode $n) => $o->setEnergyKj($n->getStringValue()),
|
||||
'size' => fn (ParseNode $n) => $o->setSize($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the size property value. The size property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSize(): ?string {
|
||||
*/
|
||||
public function getSize(): ?string
|
||||
{
|
||||
return $this->size;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('energyKcal', $this->getEnergyKcal());
|
||||
$writer->writeStringValue('energyKj', $this->getEnergyKj());
|
||||
$writer->writeStringValue('size', $this->getSize());
|
||||
|
|
@ -106,34 +117,41 @@ class EnergyValues implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the energyKcal property value. The energyKcal property
|
||||
* @param string|null $value Value to set for the energyKcal property.
|
||||
*/
|
||||
public function setEnergyKcal(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the energyKcal property.
|
||||
*/
|
||||
public function setEnergyKcal(?string $value): void
|
||||
{
|
||||
$this->energyKcal = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the energyKj property value. The energyKj property
|
||||
* @param string|null $value Value to set for the energyKj property.
|
||||
*/
|
||||
public function setEnergyKj(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the energyKj property.
|
||||
*/
|
||||
public function setEnergyKj(?string $value): void
|
||||
{
|
||||
$this->energyKj = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the size property value. The size property
|
||||
* @param string|null $value Value to set for the size property.
|
||||
*/
|
||||
public function setSize(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the size property.
|
||||
*/
|
||||
public function setSize(?string $value): void
|
||||
{
|
||||
$this->size = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
124
client/Models/FruitAndNutAmount.php
Executable file → Normal file
124
client/Models/FruitAndNutAmount.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,95 +11,104 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Quantités de fruits, noix et FNL.
|
||||
*/
|
||||
class FruitAndNutAmount implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class FruitAndNutAmount implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $freshFnl The freshFnl property
|
||||
*/
|
||||
* @var string|null The freshFnl property
|
||||
*/
|
||||
private ?string $freshFnl = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $fruits The fruits property
|
||||
*/
|
||||
* @var string|null The fruits property
|
||||
*/
|
||||
private ?string $fruits = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $nuts The nuts property
|
||||
*/
|
||||
* @var string|null The nuts property
|
||||
*/
|
||||
private ?string $nuts = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new FruitAndNutAmount and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return FruitAndNutAmount
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): FruitAndNutAmount {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): FruitAndNutAmount
|
||||
{
|
||||
return new FruitAndNutAmount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'freshFnl' => fn(ParseNode $n) => $o->setFreshFnl($n->getStringValue()),
|
||||
'fruits' => fn(ParseNode $n) => $o->setFruits($n->getStringValue()),
|
||||
'nuts' => fn(ParseNode $n) => $o->setNuts($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'freshFnl' => fn (ParseNode $n) => $o->setFreshFnl($n->getStringValue()),
|
||||
'fruits' => fn (ParseNode $n) => $o->setFruits($n->getStringValue()),
|
||||
'nuts' => fn (ParseNode $n) => $o->setNuts($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the freshFnl property value. The freshFnl property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFreshFnl(): ?string {
|
||||
*/
|
||||
public function getFreshFnl(): ?string
|
||||
{
|
||||
return $this->freshFnl;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the fruits property value. The fruits property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFruits(): ?string {
|
||||
*/
|
||||
public function getFruits(): ?string
|
||||
{
|
||||
return $this->fruits;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the nuts property value. The nuts property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getNuts(): ?string {
|
||||
*/
|
||||
public function getNuts(): ?string
|
||||
{
|
||||
return $this->nuts;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('freshFnl', $this->getFreshFnl());
|
||||
$writer->writeStringValue('fruits', $this->getFruits());
|
||||
$writer->writeStringValue('nuts', $this->getNuts());
|
||||
|
|
@ -106,34 +117,41 @@ class FruitAndNutAmount implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the freshFnl property value. The freshFnl property
|
||||
* @param string|null $value Value to set for the freshFnl property.
|
||||
*/
|
||||
public function setFreshFnl(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the freshFnl property.
|
||||
*/
|
||||
public function setFreshFnl(?string $value): void
|
||||
{
|
||||
$this->freshFnl = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the fruits property value. The fruits property
|
||||
* @param string|null $value Value to set for the fruits property.
|
||||
*/
|
||||
public function setFruits(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the fruits property.
|
||||
*/
|
||||
public function setFruits(?string $value): void
|
||||
{
|
||||
$this->fruits = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the nuts property value. The nuts property
|
||||
* @param string|null $value Value to set for the nuts property.
|
||||
*/
|
||||
public function setNuts(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the nuts property.
|
||||
*/
|
||||
public function setNuts(?string $value): void
|
||||
{
|
||||
$this->nuts = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
131
client/Models/HealthCheckResponse.php
Executable file → Normal file
131
client/Models/HealthCheckResponse.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use DateTime;
|
||||
|
|
@ -11,104 +13,112 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Résultat de la sonde d'état et de disponibilité des services.
|
||||
*/
|
||||
class HealthCheckResponse extends ApiException implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class HealthCheckResponse extends ApiException implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var HealthCheckResponse_checks|null $checks Détails des vérifications par composant.
|
||||
*/
|
||||
* @var HealthCheckResponse_checks|null Détails des vérifications par composant.
|
||||
*/
|
||||
private ?HealthCheckResponse_checks $checks = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var HealthCheckResponse_status|null $status État de santé global du système.
|
||||
*/
|
||||
* @var HealthCheckResponse_status|null État de santé global du système.
|
||||
*/
|
||||
private ?HealthCheckResponse_status $status = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var DateTime|null $timestamp Horodatage de la vérification au format RFC 3339 UTC.
|
||||
*/
|
||||
* @var DateTime|null Horodatage de la vérification au format RFC 3339 UTC.
|
||||
*/
|
||||
private ?DateTime $timestamp = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new HealthCheckResponse and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return HealthCheckResponse
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): HealthCheckResponse {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): HealthCheckResponse
|
||||
{
|
||||
return new HealthCheckResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the checks property value. Détails des vérifications par composant.
|
||||
* @return HealthCheckResponse_checks|null
|
||||
*/
|
||||
public function getChecks(): ?HealthCheckResponse_checks {
|
||||
*/
|
||||
public function getChecks(): ?HealthCheckResponse_checks
|
||||
{
|
||||
return $this->checks;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'checks' => fn(ParseNode $n) => $o->setChecks($n->getObjectValue([HealthCheckResponse_checks::class, 'createFromDiscriminatorValue'])),
|
||||
'status' => fn(ParseNode $n) => $o->setStatus($n->getEnumValue(HealthCheckResponse_status::class)),
|
||||
'timestamp' => fn(ParseNode $n) => $o->setTimestamp($n->getDateTimeValue()),
|
||||
|
||||
return [
|
||||
'checks' => fn (ParseNode $n) => $o->setChecks($n->getObjectValue([HealthCheckResponse_checks::class, 'createFromDiscriminatorValue'])),
|
||||
'status' => fn (ParseNode $n) => $o->setStatus($n->getEnumValue(HealthCheckResponse_status::class)),
|
||||
'timestamp' => fn (ParseNode $n) => $o->setTimestamp($n->getDateTimeValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* The primary error message.
|
||||
* @return string
|
||||
*/
|
||||
public function getPrimaryErrorMessage(): string {
|
||||
*/
|
||||
public function getPrimaryErrorMessage(): string
|
||||
{
|
||||
return parent::getMessage();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the status property value. État de santé global du système.
|
||||
* @return HealthCheckResponse_status|null
|
||||
*/
|
||||
public function getStatus(): ?HealthCheckResponse_status {
|
||||
*/
|
||||
public function getStatus(): ?HealthCheckResponse_status
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the timestamp property value. Horodatage de la vérification au format RFC 3339 UTC.
|
||||
* @return DateTime|null
|
||||
*/
|
||||
public function getTimestamp(): ?DateTime {
|
||||
*/
|
||||
public function getTimestamp(): ?DateTime
|
||||
{
|
||||
return $this->timestamp;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeObjectValue('checks', $this->getChecks());
|
||||
$writer->writeEnumValue('status', $this->getStatus());
|
||||
$writer->writeDateTimeValue('timestamp', $this->getTimestamp());
|
||||
|
|
@ -117,34 +127,41 @@ class HealthCheckResponse extends ApiException implements AdditionalDataHolder,
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the checks property value. Détails des vérifications par composant.
|
||||
* @param HealthCheckResponse_checks|null $value Value to set for the checks property.
|
||||
*/
|
||||
public function setChecks(?HealthCheckResponse_checks $value): void {
|
||||
*
|
||||
* @param HealthCheckResponse_checks|null $value Value to set for the checks property.
|
||||
*/
|
||||
public function setChecks(?HealthCheckResponse_checks $value): void
|
||||
{
|
||||
$this->checks = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the status property value. État de santé global du système.
|
||||
* @param HealthCheckResponse_status|null $value Value to set for the status property.
|
||||
*/
|
||||
public function setStatus(?HealthCheckResponse_status $value): void {
|
||||
*
|
||||
* @param HealthCheckResponse_status|null $value Value to set for the status property.
|
||||
*/
|
||||
public function setStatus(?HealthCheckResponse_status $value): void
|
||||
{
|
||||
$this->status = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the timestamp property value. Horodatage de la vérification au format RFC 3339 UTC.
|
||||
* @param DateTime|null $value Value to set for the timestamp property.
|
||||
*/
|
||||
public function setTimestamp(?DateTime $value): void {
|
||||
*
|
||||
* @param DateTime|null $value Value to set for the timestamp property.
|
||||
*/
|
||||
public function setTimestamp(?DateTime $value): void
|
||||
{
|
||||
$this->timestamp = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
58
client/Models/HealthCheckResponse_checks.php
Executable file → Normal file
58
client/Models/HealthCheckResponse_checks.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,62 +11,72 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Détails des vérifications par composant.
|
||||
*/
|
||||
class HealthCheckResponse_checks implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class HealthCheckResponse_checks implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new HealthCheckResponse_checks and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return HealthCheckResponse_checks
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): HealthCheckResponse_checks {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): HealthCheckResponse_checks
|
||||
{
|
||||
return new HealthCheckResponse_checks();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
|
||||
return [
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
10
client/Models/HealthCheckResponse_status.php
Executable file → Normal file
10
client/Models/HealthCheckResponse_status.php
Executable file → Normal file
|
|
@ -1,10 +1,14 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Enum;
|
||||
|
||||
class HealthCheckResponse_status extends Enum {
|
||||
public const HEALTHY = "healthy";
|
||||
public const UNHEALTHY = "unhealthy";
|
||||
class HealthCheckResponse_status extends Enum
|
||||
{
|
||||
public const HEALTHY = 'healthy';
|
||||
|
||||
public const UNHEALTHY = 'unhealthy';
|
||||
}
|
||||
|
|
|
|||
528
client/Models/Inco.php
Executable file → Normal file
528
client/Models/Inco.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use DateTime;
|
||||
|
|
@ -11,201 +13,212 @@ use Microsoft\Kiota\Abstractions\Types\TypeUtils;
|
|||
|
||||
/**
|
||||
* Fiche produit INCO complète.
|
||||
*/
|
||||
class Inco implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class Inco implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var array<IncoAdditive>|null $additives The additives property
|
||||
*/
|
||||
* @var array<IncoAdditive>|null The additives property
|
||||
*/
|
||||
private ?array $additives = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoAllegations|null $allegations Allégations associées au produit (santé, nutrition, etc.).
|
||||
*/
|
||||
* @var IncoAllegations|null Allégations associées au produit (santé, nutrition, etc.).
|
||||
*/
|
||||
private ?IncoAllegations $allegations = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var array<string>|null $allergens The allergens property
|
||||
*/
|
||||
* @var array<string>|null The allergens property
|
||||
*/
|
||||
private ?array $allergens = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoBrand|null $brand Marque associée à la fiche produit INCO.
|
||||
*/
|
||||
* @var IncoBrand|null Marque associée à la fiche produit INCO.
|
||||
*/
|
||||
private ?IncoBrand $brand = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var DateTime|null $createdAt The createdAt property
|
||||
*/
|
||||
* @var DateTime|null The createdAt property
|
||||
*/
|
||||
private ?DateTime $createdAt = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $description The description property
|
||||
*/
|
||||
* @var string|null The description property
|
||||
*/
|
||||
private ?string $description = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $incoCompoId The incoCompoId property
|
||||
*/
|
||||
* @var string|null The incoCompoId property
|
||||
*/
|
||||
private ?string $incoCompoId = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $incoId The incoId property
|
||||
*/
|
||||
* @var string|null The incoId property
|
||||
*/
|
||||
private ?string $incoId = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoIngredients|null $ingredients Liste structurée des ingrédients groupés par section.
|
||||
*/
|
||||
* @var IncoIngredients|null Liste structurée des ingrédients groupés par section.
|
||||
*/
|
||||
private ?IncoIngredients $ingredients = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var bool|null $isSeasonal The isSeasonal property
|
||||
*/
|
||||
* @var bool|null The isSeasonal property
|
||||
*/
|
||||
private ?bool $isSeasonal = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $label The label property
|
||||
*/
|
||||
* @var string|null The label property
|
||||
*/
|
||||
private ?string $label = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $name The name property
|
||||
*/
|
||||
* @var string|null The name property
|
||||
*/
|
||||
private ?string $name = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Inco_nutriscore|null $nutriscore The nutriscore property
|
||||
*/
|
||||
private ?Inco_nutriscore $nutriscore = null;
|
||||
|
||||
* @var IncoNutriscore|null The nutriscore property
|
||||
*/
|
||||
private ?IncoNutriscore $nutriscore = null;
|
||||
|
||||
/**
|
||||
* @var Inco_portions|null $portions The portions property
|
||||
*/
|
||||
private ?Inco_portions $portions = null;
|
||||
|
||||
* @var IncoPortionAmount|null The portions property
|
||||
*/
|
||||
private ?IncoPortionAmount $portions = null;
|
||||
|
||||
/**
|
||||
* @var string|null $preparationAdvices The preparationAdvices property
|
||||
*/
|
||||
* @var string|null The preparationAdvices property
|
||||
*/
|
||||
private ?string $preparationAdvices = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $sellArguments The sellArguments property
|
||||
*/
|
||||
* @var string|null The sellArguments property
|
||||
*/
|
||||
private ?string $sellArguments = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $sellFamilly The sellFamilly property
|
||||
*/
|
||||
* @var string|null The sellFamilly property
|
||||
*/
|
||||
private ?string $sellFamilly = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Inco_storageCondition|null $storageCondition The storageCondition property
|
||||
*/
|
||||
private ?Inco_storageCondition $storageCondition = null;
|
||||
|
||||
* @var IncoStorageCondition|null The storageCondition property
|
||||
*/
|
||||
private ?IncoStorageCondition $storageCondition = null;
|
||||
|
||||
/**
|
||||
* @var string|null $tips The tips property
|
||||
*/
|
||||
* @var string|null The tips property
|
||||
*/
|
||||
private ?string $tips = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var DateTime|null $updatedAt The updatedAt property
|
||||
*/
|
||||
* @var DateTime|null The updatedAt property
|
||||
*/
|
||||
private ?DateTime $updatedAt = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Inco_weight|null $weight The weight property
|
||||
*/
|
||||
private ?Inco_weight $weight = null;
|
||||
|
||||
* @var IncoWeight|null The weight property
|
||||
*/
|
||||
private ?IncoWeight $weight = null;
|
||||
|
||||
/**
|
||||
* Instantiates a new Inco and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return Inco
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco
|
||||
{
|
||||
return new Inco();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the additives property value. The additives property
|
||||
*
|
||||
* @return array<IncoAdditive>|null
|
||||
*/
|
||||
public function getAdditives(): ?array {
|
||||
*/
|
||||
public function getAdditives(): ?array
|
||||
{
|
||||
return $this->additives;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the allegations property value. Allégations associées au produit (santé, nutrition, etc.).
|
||||
* @return IncoAllegations|null
|
||||
*/
|
||||
public function getAllegations(): ?IncoAllegations {
|
||||
*/
|
||||
public function getAllegations(): ?IncoAllegations
|
||||
{
|
||||
return $this->allegations;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the allergens property value. The allergens property
|
||||
*
|
||||
* @return array<string>|null
|
||||
*/
|
||||
public function getAllergens(): ?array {
|
||||
*/
|
||||
public function getAllergens(): ?array
|
||||
{
|
||||
return $this->allergens;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the brand property value. Marque associée à la fiche produit INCO.
|
||||
* @return IncoBrand|null
|
||||
*/
|
||||
public function getBrand(): ?IncoBrand {
|
||||
*/
|
||||
public function getBrand(): ?IncoBrand
|
||||
{
|
||||
return $this->brand;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the createdAt property value. The createdAt property
|
||||
* @return DateTime|null
|
||||
*/
|
||||
public function getCreatedAt(): ?DateTime {
|
||||
*/
|
||||
public function getCreatedAt(): ?DateTime
|
||||
{
|
||||
return $this->createdAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the description property value. The description property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getDescription(): ?string {
|
||||
*/
|
||||
public function getDescription(): ?string
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'additives' => fn(ParseNode $n) => $o->setAdditives($n->getCollectionOfObjectValues([IncoAdditive::class, 'createFromDiscriminatorValue'])),
|
||||
'allegations' => fn(ParseNode $n) => $o->setAllegations($n->getObjectValue([IncoAllegations::class, 'createFromDiscriminatorValue'])),
|
||||
'allergens' => function (ParseNode $n) {
|
||||
|
||||
return [
|
||||
'additives' => fn (ParseNode $n) => $o->setAdditives($n->getCollectionOfObjectValues([IncoAdditive::class, 'createFromDiscriminatorValue'])),
|
||||
'allegations' => fn (ParseNode $n) => $o->setAllegations($n->getObjectValue([IncoAllegations::class, 'createFromDiscriminatorValue'])),
|
||||
'allergens' => function (ParseNode $n) {
|
||||
$val = $n->getCollectionOfPrimitiveValues();
|
||||
if (is_array($val)) {
|
||||
TypeUtils::validateCollectionValues($val, 'string');
|
||||
|
|
@ -213,152 +226,154 @@ class Inco implements AdditionalDataHolder, Parsable
|
|||
/** @var array<string>|null $val */
|
||||
$this->setAllergens($val);
|
||||
},
|
||||
'brand' => fn(ParseNode $n) => $o->setBrand($n->getObjectValue([IncoBrand::class, 'createFromDiscriminatorValue'])),
|
||||
'createdAt' => fn(ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()),
|
||||
'description' => fn(ParseNode $n) => $o->setDescription($n->getStringValue()),
|
||||
'incoCompoId' => fn(ParseNode $n) => $o->setIncoCompoId($n->getStringValue()),
|
||||
'incoId' => fn(ParseNode $n) => $o->setIncoId($n->getStringValue()),
|
||||
'ingredients' => fn(ParseNode $n) => $o->setIngredients($n->getObjectValue([IncoIngredients::class, 'createFromDiscriminatorValue'])),
|
||||
'isSeasonal' => fn(ParseNode $n) => $o->setIsSeasonal($n->getBooleanValue()),
|
||||
'label' => fn(ParseNode $n) => $o->setLabel($n->getStringValue()),
|
||||
'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),
|
||||
'nutriscore' => fn(ParseNode $n) => $o->setNutriscore($n->getObjectValue([Inco_nutriscore::class, 'createFromDiscriminatorValue'])),
|
||||
'portions' => fn(ParseNode $n) => $o->setPortions($n->getObjectValue([Inco_portions::class, 'createFromDiscriminatorValue'])),
|
||||
'preparationAdvices' => fn(ParseNode $n) => $o->setPreparationAdvices($n->getStringValue()),
|
||||
'sellArguments' => fn(ParseNode $n) => $o->setSellArguments($n->getStringValue()),
|
||||
'sellFamilly' => fn(ParseNode $n) => $o->setSellFamilly($n->getStringValue()),
|
||||
'storageCondition' => fn(ParseNode $n) => $o->setStorageCondition($n->getObjectValue([Inco_storageCondition::class, 'createFromDiscriminatorValue'])),
|
||||
'tips' => fn(ParseNode $n) => $o->setTips($n->getStringValue()),
|
||||
'updatedAt' => fn(ParseNode $n) => $o->setUpdatedAt($n->getDateTimeValue()),
|
||||
'weight' => fn(ParseNode $n) => $o->setWeight($n->getObjectValue([Inco_weight::class, 'createFromDiscriminatorValue'])),
|
||||
'brand' => fn (ParseNode $n) => $o->setBrand($n->getObjectValue([IncoBrand::class, 'createFromDiscriminatorValue'])),
|
||||
'createdAt' => fn (ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()),
|
||||
'description' => fn (ParseNode $n) => $o->setDescription($n->getStringValue()),
|
||||
'incoCompoId' => fn (ParseNode $n) => $o->setIncoCompoId($n->getStringValue()),
|
||||
'incoId' => fn (ParseNode $n) => $o->setIncoId($n->getStringValue()),
|
||||
'ingredients' => fn (ParseNode $n) => $o->setIngredients($n->getObjectValue([IncoIngredients::class, 'createFromDiscriminatorValue'])),
|
||||
'isSeasonal' => fn (ParseNode $n) => $o->setIsSeasonal($n->getBooleanValue()),
|
||||
'label' => fn (ParseNode $n) => $o->setLabel($n->getStringValue()),
|
||||
'name' => fn (ParseNode $n) => $o->setName($n->getStringValue()),
|
||||
'nutriscore' => fn (ParseNode $n) => $o->setNutriscore($n->getObjectValue([IncoNutriscore::class, 'createFromDiscriminatorValue'])),
|
||||
'portions' => fn (ParseNode $n) => $o->setPortions($n->getObjectValue([IncoPortionAmount::class, 'createFromDiscriminatorValue'])),
|
||||
'preparationAdvices' => fn (ParseNode $n) => $o->setPreparationAdvices($n->getStringValue()),
|
||||
'sellArguments' => fn (ParseNode $n) => $o->setSellArguments($n->getStringValue()),
|
||||
'sellFamilly' => fn (ParseNode $n) => $o->setSellFamilly($n->getStringValue()),
|
||||
'storageCondition' => fn (ParseNode $n) => $o->setStorageCondition($n->getObjectValue([IncoStorageCondition::class, 'createFromDiscriminatorValue'])),
|
||||
'tips' => fn (ParseNode $n) => $o->setTips($n->getStringValue()),
|
||||
'updatedAt' => fn (ParseNode $n) => $o->setUpdatedAt($n->getDateTimeValue()),
|
||||
'weight' => fn (ParseNode $n) => $o->setWeight($n->getObjectValue([IncoWeight::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the incoCompoId property value. The incoCompoId property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getIncoCompoId(): ?string {
|
||||
*/
|
||||
public function getIncoCompoId(): ?string
|
||||
{
|
||||
return $this->incoCompoId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the incoId property value. The incoId property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getIncoId(): ?string {
|
||||
*/
|
||||
public function getIncoId(): ?string
|
||||
{
|
||||
return $this->incoId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the ingredients property value. Liste structurée des ingrédients groupés par section.
|
||||
* @return IncoIngredients|null
|
||||
*/
|
||||
public function getIngredients(): ?IncoIngredients {
|
||||
*/
|
||||
public function getIngredients(): ?IncoIngredients
|
||||
{
|
||||
return $this->ingredients;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the isSeasonal property value. The isSeasonal property
|
||||
* @return bool|null
|
||||
*/
|
||||
public function getIsSeasonal(): ?bool {
|
||||
*/
|
||||
public function getIsSeasonal(): ?bool
|
||||
{
|
||||
return $this->isSeasonal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the label property value. The label property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getLabel(): ?string {
|
||||
*/
|
||||
public function getLabel(): ?string
|
||||
{
|
||||
return $this->label;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name property value. The name property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getName(): ?string {
|
||||
*/
|
||||
public function getName(): ?string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the nutriscore property value. The nutriscore property
|
||||
* @return Inco_nutriscore|null
|
||||
*/
|
||||
public function getNutriscore(): ?Inco_nutriscore {
|
||||
*/
|
||||
public function getNutriscore(): ?IncoNutriscore
|
||||
{
|
||||
return $this->nutriscore;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the portions property value. The portions property
|
||||
* @return Inco_portions|null
|
||||
*/
|
||||
public function getPortions(): ?Inco_portions {
|
||||
*/
|
||||
public function getPortions(): ?IncoPortionAmount
|
||||
{
|
||||
return $this->portions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the preparationAdvices property value. The preparationAdvices property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getPreparationAdvices(): ?string {
|
||||
*/
|
||||
public function getPreparationAdvices(): ?string
|
||||
{
|
||||
return $this->preparationAdvices;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the sellArguments property value. The sellArguments property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSellArguments(): ?string {
|
||||
*/
|
||||
public function getSellArguments(): ?string
|
||||
{
|
||||
return $this->sellArguments;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the sellFamilly property value. The sellFamilly property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSellFamilly(): ?string {
|
||||
*/
|
||||
public function getSellFamilly(): ?string
|
||||
{
|
||||
return $this->sellFamilly;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the storageCondition property value. The storageCondition property
|
||||
* @return Inco_storageCondition|null
|
||||
*/
|
||||
public function getStorageCondition(): ?Inco_storageCondition {
|
||||
*/
|
||||
public function getStorageCondition(): ?IncoStorageCondition
|
||||
{
|
||||
return $this->storageCondition;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the tips property value. The tips property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getTips(): ?string {
|
||||
*/
|
||||
public function getTips(): ?string
|
||||
{
|
||||
return $this->tips;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the updatedAt property value. The updatedAt property
|
||||
* @return DateTime|null
|
||||
*/
|
||||
public function getUpdatedAt(): ?DateTime {
|
||||
*/
|
||||
public function getUpdatedAt(): ?DateTime
|
||||
{
|
||||
return $this->updatedAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the weight property value. The weight property
|
||||
* @return Inco_weight|null
|
||||
*/
|
||||
public function getWeight(): ?Inco_weight {
|
||||
*/
|
||||
public function getWeight(): ?IncoWeight
|
||||
{
|
||||
return $this->weight;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeCollectionOfObjectValues('additives', $this->getAdditives());
|
||||
$writer->writeObjectValue('allegations', $this->getAllegations());
|
||||
$writer->writeCollectionOfPrimitiveValues('allergens', $this->getAllergens());
|
||||
|
|
@ -385,178 +400,221 @@ class Inco implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the additives property value. The additives property
|
||||
* @param array<IncoAdditive>|null $value Value to set for the additives property.
|
||||
*/
|
||||
public function setAdditives(?array $value): void {
|
||||
*
|
||||
* @param array<IncoAdditive>|null $value Value to set for the additives property.
|
||||
*/
|
||||
public function setAdditives(?array $value): void
|
||||
{
|
||||
$this->additives = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the allegations property value. Allégations associées au produit (santé, nutrition, etc.).
|
||||
* @param IncoAllegations|null $value Value to set for the allegations property.
|
||||
*/
|
||||
public function setAllegations(?IncoAllegations $value): void {
|
||||
*
|
||||
* @param IncoAllegations|null $value Value to set for the allegations property.
|
||||
*/
|
||||
public function setAllegations(?IncoAllegations $value): void
|
||||
{
|
||||
$this->allegations = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the allergens property value. The allergens property
|
||||
* @param array<string>|null $value Value to set for the allergens property.
|
||||
*/
|
||||
public function setAllergens(?array $value): void {
|
||||
*
|
||||
* @param array<string>|null $value Value to set for the allergens property.
|
||||
*/
|
||||
public function setAllergens(?array $value): void
|
||||
{
|
||||
$this->allergens = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the brand property value. Marque associée à la fiche produit INCO.
|
||||
* @param IncoBrand|null $value Value to set for the brand property.
|
||||
*/
|
||||
public function setBrand(?IncoBrand $value): void {
|
||||
*
|
||||
* @param IncoBrand|null $value Value to set for the brand property.
|
||||
*/
|
||||
public function setBrand(?IncoBrand $value): void
|
||||
{
|
||||
$this->brand = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the createdAt property value. The createdAt property
|
||||
* @param DateTime|null $value Value to set for the createdAt property.
|
||||
*/
|
||||
public function setCreatedAt(?DateTime $value): void {
|
||||
*
|
||||
* @param DateTime|null $value Value to set for the createdAt property.
|
||||
*/
|
||||
public function setCreatedAt(?DateTime $value): void
|
||||
{
|
||||
$this->createdAt = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the description property value. The description property
|
||||
* @param string|null $value Value to set for the description property.
|
||||
*/
|
||||
public function setDescription(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the description property.
|
||||
*/
|
||||
public function setDescription(?string $value): void
|
||||
{
|
||||
$this->description = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the incoCompoId property value. The incoCompoId property
|
||||
* @param string|null $value Value to set for the incoCompoId property.
|
||||
*/
|
||||
public function setIncoCompoId(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the incoCompoId property.
|
||||
*/
|
||||
public function setIncoCompoId(?string $value): void
|
||||
{
|
||||
$this->incoCompoId = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the incoId property value. The incoId property
|
||||
* @param string|null $value Value to set for the incoId property.
|
||||
*/
|
||||
public function setIncoId(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the incoId property.
|
||||
*/
|
||||
public function setIncoId(?string $value): void
|
||||
{
|
||||
$this->incoId = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the ingredients property value. Liste structurée des ingrédients groupés par section.
|
||||
* @param IncoIngredients|null $value Value to set for the ingredients property.
|
||||
*/
|
||||
public function setIngredients(?IncoIngredients $value): void {
|
||||
*
|
||||
* @param IncoIngredients|null $value Value to set for the ingredients property.
|
||||
*/
|
||||
public function setIngredients(?IncoIngredients $value): void
|
||||
{
|
||||
$this->ingredients = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the isSeasonal property value. The isSeasonal property
|
||||
* @param bool|null $value Value to set for the isSeasonal property.
|
||||
*/
|
||||
public function setIsSeasonal(?bool $value): void {
|
||||
*
|
||||
* @param bool|null $value Value to set for the isSeasonal property.
|
||||
*/
|
||||
public function setIsSeasonal(?bool $value): void
|
||||
{
|
||||
$this->isSeasonal = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the label property value. The label property
|
||||
* @param string|null $value Value to set for the label property.
|
||||
*/
|
||||
public function setLabel(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the label property.
|
||||
*/
|
||||
public function setLabel(?string $value): void
|
||||
{
|
||||
$this->label = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name property value. The name property
|
||||
* @param string|null $value Value to set for the name property.
|
||||
*/
|
||||
public function setName(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the name property.
|
||||
*/
|
||||
public function setName(?string $value): void
|
||||
{
|
||||
$this->name = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the nutriscore property value. The nutriscore property
|
||||
* @param Inco_nutriscore|null $value Value to set for the nutriscore property.
|
||||
*/
|
||||
public function setNutriscore(?Inco_nutriscore $value): void {
|
||||
*
|
||||
* @param IncoNutriscore|null $value Value to set for the nutriscore property.
|
||||
*/
|
||||
public function setNutriscore(?IncoNutriscore $value): void
|
||||
{
|
||||
$this->nutriscore = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the portions property value. The portions property
|
||||
* @param Inco_portions|null $value Value to set for the portions property.
|
||||
*/
|
||||
public function setPortions(?Inco_portions $value): void {
|
||||
*
|
||||
* @param IncoPortionAmount|null $value Value to set for the portions property.
|
||||
*/
|
||||
public function setPortions(?IncoPortionAmount $value): void
|
||||
{
|
||||
$this->portions = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the preparationAdvices property value. The preparationAdvices property
|
||||
* @param string|null $value Value to set for the preparationAdvices property.
|
||||
*/
|
||||
public function setPreparationAdvices(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the preparationAdvices property.
|
||||
*/
|
||||
public function setPreparationAdvices(?string $value): void
|
||||
{
|
||||
$this->preparationAdvices = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the sellArguments property value. The sellArguments property
|
||||
* @param string|null $value Value to set for the sellArguments property.
|
||||
*/
|
||||
public function setSellArguments(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the sellArguments property.
|
||||
*/
|
||||
public function setSellArguments(?string $value): void
|
||||
{
|
||||
$this->sellArguments = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the sellFamilly property value. The sellFamilly property
|
||||
* @param string|null $value Value to set for the sellFamilly property.
|
||||
*/
|
||||
public function setSellFamilly(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the sellFamilly property.
|
||||
*/
|
||||
public function setSellFamilly(?string $value): void
|
||||
{
|
||||
$this->sellFamilly = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the storageCondition property value. The storageCondition property
|
||||
* @param Inco_storageCondition|null $value Value to set for the storageCondition property.
|
||||
*/
|
||||
public function setStorageCondition(?Inco_storageCondition $value): void {
|
||||
*
|
||||
* @param IncoStorageCondition|null $value Value to set for the storageCondition property.
|
||||
*/
|
||||
public function setStorageCondition(?IncoStorageCondition $value): void
|
||||
{
|
||||
$this->storageCondition = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the tips property value. The tips property
|
||||
* @param string|null $value Value to set for the tips property.
|
||||
*/
|
||||
public function setTips(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the tips property.
|
||||
*/
|
||||
public function setTips(?string $value): void
|
||||
{
|
||||
$this->tips = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the updatedAt property value. The updatedAt property
|
||||
* @param DateTime|null $value Value to set for the updatedAt property.
|
||||
*/
|
||||
public function setUpdatedAt(?DateTime $value): void {
|
||||
*
|
||||
* @param DateTime|null $value Value to set for the updatedAt property.
|
||||
*/
|
||||
public function setUpdatedAt(?DateTime $value): void
|
||||
{
|
||||
$this->updatedAt = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the weight property value. The weight property
|
||||
* @param Inco_weight|null $value Value to set for the weight property.
|
||||
*/
|
||||
public function setWeight(?Inco_weight $value): void {
|
||||
*
|
||||
* @param IncoWeight|null $value Value to set for the weight property.
|
||||
*/
|
||||
public function setWeight(?IncoWeight $value): void
|
||||
{
|
||||
$this->weight = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
102
client/Models/IncoAdditive.php
Executable file → Normal file
102
client/Models/IncoAdditive.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,81 +11,90 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Additif alimentaire (code E-number et libellé).
|
||||
*/
|
||||
class IncoAdditive implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoAdditive implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $code The code property
|
||||
*/
|
||||
* @var string|null The code property
|
||||
*/
|
||||
private ?string $code = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $label The label property
|
||||
*/
|
||||
* @var string|null The label property
|
||||
*/
|
||||
private ?string $label = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoAdditive and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoAdditive
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoAdditive {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoAdditive
|
||||
{
|
||||
return new IncoAdditive();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the code property value. The code property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCode(): ?string {
|
||||
*/
|
||||
public function getCode(): ?string
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'code' => fn(ParseNode $n) => $o->setCode($n->getStringValue()),
|
||||
'label' => fn(ParseNode $n) => $o->setLabel($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'code' => fn (ParseNode $n) => $o->setCode($n->getStringValue()),
|
||||
'label' => fn (ParseNode $n) => $o->setLabel($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the label property value. The label property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getLabel(): ?string {
|
||||
*/
|
||||
public function getLabel(): ?string
|
||||
{
|
||||
return $this->label;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('code', $this->getCode());
|
||||
$writer->writeStringValue('label', $this->getLabel());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
|
|
@ -91,26 +102,31 @@ class IncoAdditive implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the code property value. The code property
|
||||
* @param string|null $value Value to set for the code property.
|
||||
*/
|
||||
public function setCode(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the code property.
|
||||
*/
|
||||
public function setCode(?string $value): void
|
||||
{
|
||||
$this->code = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the label property value. The label property
|
||||
* @param string|null $value Value to set for the label property.
|
||||
*/
|
||||
public function setLabel(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the label property.
|
||||
*/
|
||||
public function setLabel(?string $value): void
|
||||
{
|
||||
$this->label = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
138
client/Models/IncoAllegations.php
Executable file → Normal file
138
client/Models/IncoAllegations.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -10,73 +12,82 @@ use Microsoft\Kiota\Abstractions\Types\TypeUtils;
|
|||
|
||||
/**
|
||||
* Allégations associées au produit (santé, nutrition, etc.).
|
||||
*/
|
||||
class IncoAllegations implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoAllegations implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var array<string>|null $allegations The allegations property
|
||||
*/
|
||||
* @var array<string>|null The allegations property
|
||||
*/
|
||||
private ?array $allegations = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var array<string>|null $health The health property
|
||||
*/
|
||||
* @var array<string>|null The health property
|
||||
*/
|
||||
private ?array $health = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var array<string>|null $nutrition The nutrition property
|
||||
*/
|
||||
* @var array<string>|null The nutrition property
|
||||
*/
|
||||
private ?array $nutrition = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var array<string>|null $other The other property
|
||||
*/
|
||||
* @var array<string>|null The other property
|
||||
*/
|
||||
private ?array $other = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoAllegations and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoAllegations
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoAllegations {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoAllegations
|
||||
{
|
||||
return new IncoAllegations();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the allegations property value. The allegations property
|
||||
*
|
||||
* @return array<string>|null
|
||||
*/
|
||||
public function getAllegations(): ?array {
|
||||
*/
|
||||
public function getAllegations(): ?array
|
||||
{
|
||||
return $this->allegations;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
|
||||
return [
|
||||
'allegations' => function (ParseNode $n) {
|
||||
$val = $n->getCollectionOfPrimitiveValues();
|
||||
if (is_array($val)) {
|
||||
|
|
@ -114,33 +125,41 @@ class IncoAllegations implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Gets the health property value. The health property
|
||||
*
|
||||
* @return array<string>|null
|
||||
*/
|
||||
public function getHealth(): ?array {
|
||||
*/
|
||||
public function getHealth(): ?array
|
||||
{
|
||||
return $this->health;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the nutrition property value. The nutrition property
|
||||
*
|
||||
* @return array<string>|null
|
||||
*/
|
||||
public function getNutrition(): ?array {
|
||||
*/
|
||||
public function getNutrition(): ?array
|
||||
{
|
||||
return $this->nutrition;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the other property value. The other property
|
||||
*
|
||||
* @return array<string>|null
|
||||
*/
|
||||
public function getOther(): ?array {
|
||||
*/
|
||||
public function getOther(): ?array
|
||||
{
|
||||
return $this->other;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeCollectionOfPrimitiveValues('allegations', $this->getAllegations());
|
||||
$writer->writeCollectionOfPrimitiveValues('health', $this->getHealth());
|
||||
$writer->writeCollectionOfPrimitiveValues('nutrition', $this->getNutrition());
|
||||
|
|
@ -150,42 +169,51 @@ class IncoAllegations implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the allegations property value. The allegations property
|
||||
* @param array<string>|null $value Value to set for the allegations property.
|
||||
*/
|
||||
public function setAllegations(?array $value): void {
|
||||
*
|
||||
* @param array<string>|null $value Value to set for the allegations property.
|
||||
*/
|
||||
public function setAllegations(?array $value): void
|
||||
{
|
||||
$this->allegations = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the health property value. The health property
|
||||
* @param array<string>|null $value Value to set for the health property.
|
||||
*/
|
||||
public function setHealth(?array $value): void {
|
||||
*
|
||||
* @param array<string>|null $value Value to set for the health property.
|
||||
*/
|
||||
public function setHealth(?array $value): void
|
||||
{
|
||||
$this->health = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the nutrition property value. The nutrition property
|
||||
* @param array<string>|null $value Value to set for the nutrition property.
|
||||
*/
|
||||
public function setNutrition(?array $value): void {
|
||||
*
|
||||
* @param array<string>|null $value Value to set for the nutrition property.
|
||||
*/
|
||||
public function setNutrition(?array $value): void
|
||||
{
|
||||
$this->nutrition = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the other property value. The other property
|
||||
* @param array<string>|null $value Value to set for the other property.
|
||||
*/
|
||||
public function setOther(?array $value): void {
|
||||
*
|
||||
* @param array<string>|null $value Value to set for the other property.
|
||||
*/
|
||||
public function setOther(?array $value): void
|
||||
{
|
||||
$this->other = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
102
client/Models/IncoBrand.php
Executable file → Normal file
102
client/Models/IncoBrand.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,81 +11,90 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Marque associée à la fiche produit INCO.
|
||||
*/
|
||||
class IncoBrand implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoBrand implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $code The code property
|
||||
*/
|
||||
* @var string|null The code property
|
||||
*/
|
||||
private ?string $code = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $label The label property
|
||||
*/
|
||||
* @var string|null The label property
|
||||
*/
|
||||
private ?string $label = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoBrand and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoBrand
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoBrand {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoBrand
|
||||
{
|
||||
return new IncoBrand();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the code property value. The code property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCode(): ?string {
|
||||
*/
|
||||
public function getCode(): ?string
|
||||
{
|
||||
return $this->code;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'code' => fn(ParseNode $n) => $o->setCode($n->getStringValue()),
|
||||
'label' => fn(ParseNode $n) => $o->setLabel($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'code' => fn (ParseNode $n) => $o->setCode($n->getStringValue()),
|
||||
'label' => fn (ParseNode $n) => $o->setLabel($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the label property value. The label property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getLabel(): ?string {
|
||||
*/
|
||||
public function getLabel(): ?string
|
||||
{
|
||||
return $this->label;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('code', $this->getCode());
|
||||
$writer->writeStringValue('label', $this->getLabel());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
|
|
@ -91,26 +102,31 @@ class IncoBrand implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the code property value. The code property
|
||||
* @param string|null $value Value to set for the code property.
|
||||
*/
|
||||
public function setCode(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the code property.
|
||||
*/
|
||||
public function setCode(?string $value): void
|
||||
{
|
||||
$this->code = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the label property value. The label property
|
||||
* @param string|null $value Value to set for the label property.
|
||||
*/
|
||||
public function setLabel(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the label property.
|
||||
*/
|
||||
public function setLabel(?string $value): void
|
||||
{
|
||||
$this->label = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
410
client/Models/IncoCompo.php
Executable file → Normal file
410
client/Models/IncoCompo.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,277 +11,286 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Composition nutritionnelle détaillée d'une fiche INCO.
|
||||
*/
|
||||
class IncoCompo implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompo implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompoAminoAcids|null $aminoAcids Teneur en acides aminés et protéines de lait.
|
||||
*/
|
||||
* @var IncoCompoAminoAcids|null Teneur en acides aminés et protéines de lait.
|
||||
*/
|
||||
private ?IncoCompoAminoAcids $aminoAcids = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompoCarbohydratesDetail|null $carbohydratesDetail Composition détaillée des glucides et fibres.
|
||||
*/
|
||||
* @var IncoCompoCarbohydratesDetail|null Composition détaillée des glucides et fibres.
|
||||
*/
|
||||
private ?IncoCompoCarbohydratesDetail $carbohydratesDetail = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompoEnergy|null $energy Valeurs énergétiques.
|
||||
*/
|
||||
* @var IncoCompoEnergy|null Valeurs énergétiques.
|
||||
*/
|
||||
private ?IncoCompoEnergy $energy = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompoFattyAcids|null $fattyAcids Teneur détaillée en acides gras (AGS, AGMI, AGPI).
|
||||
*/
|
||||
* @var IncoCompoFattyAcids|null Teneur détaillée en acides gras (AGS, AGMI, AGPI).
|
||||
*/
|
||||
private ?IncoCompoFattyAcids $fattyAcids = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompoFreshProduceAndNuts|null $freshProduceAndNuts Teneur en fruits, légumes et noix (FNL).
|
||||
*/
|
||||
* @var IncoCompoFreshProduceAndNuts|null Teneur en fruits, légumes et noix (FNL).
|
||||
*/
|
||||
private ?IncoCompoFreshProduceAndNuts $freshProduceAndNuts = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompositionIdentification|null $identification Informations d'identification de la composition INCO.
|
||||
*/
|
||||
* @var IncoCompositionIdentification|null Informations d'identification de la composition INCO.
|
||||
*/
|
||||
private ?IncoCompositionIdentification $identification = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $incoCompoId The incoCompoId property
|
||||
*/
|
||||
* @var string|null The incoCompoId property
|
||||
*/
|
||||
private ?string $incoCompoId = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $incoId The incoId property
|
||||
*/
|
||||
* @var string|null The incoId property
|
||||
*/
|
||||
private ?string $incoId = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompoMinerals|null $minerals Teneur détaillée en minéraux et oligo-éléments.
|
||||
*/
|
||||
* @var IncoCompoMinerals|null Teneur détaillée en minéraux et oligo-éléments.
|
||||
*/
|
||||
private ?IncoCompoMinerals $minerals = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompoNutriScore|null $nutriScore Détail des composantes et classement Nutri-Score.
|
||||
*/
|
||||
* @var IncoCompoNutriScore|null Détail des composantes et classement Nutri-Score.
|
||||
*/
|
||||
private ?IncoCompoNutriScore $nutriScore = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompoNutriScorePoints|null $nutriScorePoints Points élémentaires du calcul Nutri-Score.
|
||||
*/
|
||||
* @var IncoCompoNutriScorePoints|null Points élémentaires du calcul Nutri-Score.
|
||||
*/
|
||||
private ?IncoCompoNutriScorePoints $nutriScorePoints = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompoPortionMacronutrients|null $portionMacronutrients Macronutriments par portion.
|
||||
*/
|
||||
* @var IncoCompoPortionMacronutrients|null Macronutriments par portion.
|
||||
*/
|
||||
private ?IncoCompoPortionMacronutrients $portionMacronutrients = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompoReferenceIntakes|null $referenceIntakes Pourcentages des apports de référence (AR / ARIC).
|
||||
*/
|
||||
* @var IncoCompoReferenceIntakes|null Pourcentages des apports de référence (AR / ARIC).
|
||||
*/
|
||||
private ?IncoCompoReferenceIntakes $referenceIntakes = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompoReferenceMacronutrients|null $referenceMacronutrients Macronutriments de référence pour 100g/ml.
|
||||
*/
|
||||
* @var IncoCompoReferenceMacronutrients|null Macronutriments de référence pour 100g/ml.
|
||||
*/
|
||||
private ?IncoCompoReferenceMacronutrients $referenceMacronutrients = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompoSpecialCompounds|null $specialCompounds Composés spéciaux (Choline, Carnitine, Taurine, Nucléotides).
|
||||
*/
|
||||
* @var IncoCompoSpecialCompounds|null Composés spéciaux (Choline, Carnitine, Taurine, Nucléotides).
|
||||
*/
|
||||
private ?IncoCompoSpecialCompounds $specialCompounds = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompoVitamins|null $vitamins Teneur détaillée en vitamines.
|
||||
*/
|
||||
* @var IncoCompoVitamins|null Teneur détaillée en vitamines.
|
||||
*/
|
||||
private ?IncoCompoVitamins $vitamins = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompo and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompo
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompo {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompo
|
||||
{
|
||||
return new IncoCompo();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the aminoAcids property value. Teneur en acides aminés et protéines de lait.
|
||||
* @return IncoCompoAminoAcids|null
|
||||
*/
|
||||
public function getAminoAcids(): ?IncoCompoAminoAcids {
|
||||
*/
|
||||
public function getAminoAcids(): ?IncoCompoAminoAcids
|
||||
{
|
||||
return $this->aminoAcids;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the carbohydratesDetail property value. Composition détaillée des glucides et fibres.
|
||||
* @return IncoCompoCarbohydratesDetail|null
|
||||
*/
|
||||
public function getCarbohydratesDetail(): ?IncoCompoCarbohydratesDetail {
|
||||
*/
|
||||
public function getCarbohydratesDetail(): ?IncoCompoCarbohydratesDetail
|
||||
{
|
||||
return $this->carbohydratesDetail;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the energy property value. Valeurs énergétiques.
|
||||
* @return IncoCompoEnergy|null
|
||||
*/
|
||||
public function getEnergy(): ?IncoCompoEnergy {
|
||||
*/
|
||||
public function getEnergy(): ?IncoCompoEnergy
|
||||
{
|
||||
return $this->energy;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the fattyAcids property value. Teneur détaillée en acides gras (AGS, AGMI, AGPI).
|
||||
* @return IncoCompoFattyAcids|null
|
||||
*/
|
||||
public function getFattyAcids(): ?IncoCompoFattyAcids {
|
||||
*/
|
||||
public function getFattyAcids(): ?IncoCompoFattyAcids
|
||||
{
|
||||
return $this->fattyAcids;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'aminoAcids' => fn(ParseNode $n) => $o->setAminoAcids($n->getObjectValue([IncoCompoAminoAcids::class, 'createFromDiscriminatorValue'])),
|
||||
'carbohydratesDetail' => fn(ParseNode $n) => $o->setCarbohydratesDetail($n->getObjectValue([IncoCompoCarbohydratesDetail::class, 'createFromDiscriminatorValue'])),
|
||||
'energy' => fn(ParseNode $n) => $o->setEnergy($n->getObjectValue([IncoCompoEnergy::class, 'createFromDiscriminatorValue'])),
|
||||
'fattyAcids' => fn(ParseNode $n) => $o->setFattyAcids($n->getObjectValue([IncoCompoFattyAcids::class, 'createFromDiscriminatorValue'])),
|
||||
'freshProduceAndNuts' => fn(ParseNode $n) => $o->setFreshProduceAndNuts($n->getObjectValue([IncoCompoFreshProduceAndNuts::class, 'createFromDiscriminatorValue'])),
|
||||
'identification' => fn(ParseNode $n) => $o->setIdentification($n->getObjectValue([IncoCompositionIdentification::class, 'createFromDiscriminatorValue'])),
|
||||
'incoCompoId' => fn(ParseNode $n) => $o->setIncoCompoId($n->getStringValue()),
|
||||
'incoId' => fn(ParseNode $n) => $o->setIncoId($n->getStringValue()),
|
||||
'minerals' => fn(ParseNode $n) => $o->setMinerals($n->getObjectValue([IncoCompoMinerals::class, 'createFromDiscriminatorValue'])),
|
||||
'nutriScore' => fn(ParseNode $n) => $o->setNutriScore($n->getObjectValue([IncoCompoNutriScore::class, 'createFromDiscriminatorValue'])),
|
||||
'nutriScorePoints' => fn(ParseNode $n) => $o->setNutriScorePoints($n->getObjectValue([IncoCompoNutriScorePoints::class, 'createFromDiscriminatorValue'])),
|
||||
'portionMacronutrients' => fn(ParseNode $n) => $o->setPortionMacronutrients($n->getObjectValue([IncoCompoPortionMacronutrients::class, 'createFromDiscriminatorValue'])),
|
||||
'referenceIntakes' => fn(ParseNode $n) => $o->setReferenceIntakes($n->getObjectValue([IncoCompoReferenceIntakes::class, 'createFromDiscriminatorValue'])),
|
||||
'referenceMacronutrients' => fn(ParseNode $n) => $o->setReferenceMacronutrients($n->getObjectValue([IncoCompoReferenceMacronutrients::class, 'createFromDiscriminatorValue'])),
|
||||
'specialCompounds' => fn(ParseNode $n) => $o->setSpecialCompounds($n->getObjectValue([IncoCompoSpecialCompounds::class, 'createFromDiscriminatorValue'])),
|
||||
'vitamins' => fn(ParseNode $n) => $o->setVitamins($n->getObjectValue([IncoCompoVitamins::class, 'createFromDiscriminatorValue'])),
|
||||
|
||||
return [
|
||||
'aminoAcids' => fn (ParseNode $n) => $o->setAminoAcids($n->getObjectValue([IncoCompoAminoAcids::class, 'createFromDiscriminatorValue'])),
|
||||
'carbohydratesDetail' => fn (ParseNode $n) => $o->setCarbohydratesDetail($n->getObjectValue([IncoCompoCarbohydratesDetail::class, 'createFromDiscriminatorValue'])),
|
||||
'energy' => fn (ParseNode $n) => $o->setEnergy($n->getObjectValue([IncoCompoEnergy::class, 'createFromDiscriminatorValue'])),
|
||||
'fattyAcids' => fn (ParseNode $n) => $o->setFattyAcids($n->getObjectValue([IncoCompoFattyAcids::class, 'createFromDiscriminatorValue'])),
|
||||
'freshProduceAndNuts' => fn (ParseNode $n) => $o->setFreshProduceAndNuts($n->getObjectValue([IncoCompoFreshProduceAndNuts::class, 'createFromDiscriminatorValue'])),
|
||||
'identification' => fn (ParseNode $n) => $o->setIdentification($n->getObjectValue([IncoCompositionIdentification::class, 'createFromDiscriminatorValue'])),
|
||||
'incoCompoId' => fn (ParseNode $n) => $o->setIncoCompoId($n->getStringValue()),
|
||||
'incoId' => fn (ParseNode $n) => $o->setIncoId($n->getStringValue()),
|
||||
'minerals' => fn (ParseNode $n) => $o->setMinerals($n->getObjectValue([IncoCompoMinerals::class, 'createFromDiscriminatorValue'])),
|
||||
'nutriScore' => fn (ParseNode $n) => $o->setNutriScore($n->getObjectValue([IncoCompoNutriScore::class, 'createFromDiscriminatorValue'])),
|
||||
'nutriScorePoints' => fn (ParseNode $n) => $o->setNutriScorePoints($n->getObjectValue([IncoCompoNutriScorePoints::class, 'createFromDiscriminatorValue'])),
|
||||
'portionMacronutrients' => fn (ParseNode $n) => $o->setPortionMacronutrients($n->getObjectValue([IncoCompoPortionMacronutrients::class, 'createFromDiscriminatorValue'])),
|
||||
'referenceIntakes' => fn (ParseNode $n) => $o->setReferenceIntakes($n->getObjectValue([IncoCompoReferenceIntakes::class, 'createFromDiscriminatorValue'])),
|
||||
'referenceMacronutrients' => fn (ParseNode $n) => $o->setReferenceMacronutrients($n->getObjectValue([IncoCompoReferenceMacronutrients::class, 'createFromDiscriminatorValue'])),
|
||||
'specialCompounds' => fn (ParseNode $n) => $o->setSpecialCompounds($n->getObjectValue([IncoCompoSpecialCompounds::class, 'createFromDiscriminatorValue'])),
|
||||
'vitamins' => fn (ParseNode $n) => $o->setVitamins($n->getObjectValue([IncoCompoVitamins::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the freshProduceAndNuts property value. Teneur en fruits, légumes et noix (FNL).
|
||||
* @return IncoCompoFreshProduceAndNuts|null
|
||||
*/
|
||||
public function getFreshProduceAndNuts(): ?IncoCompoFreshProduceAndNuts {
|
||||
*/
|
||||
public function getFreshProduceAndNuts(): ?IncoCompoFreshProduceAndNuts
|
||||
{
|
||||
return $this->freshProduceAndNuts;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the identification property value. Informations d'identification de la composition INCO.
|
||||
* @return IncoCompositionIdentification|null
|
||||
*/
|
||||
public function getIdentification(): ?IncoCompositionIdentification {
|
||||
*/
|
||||
public function getIdentification(): ?IncoCompositionIdentification
|
||||
{
|
||||
return $this->identification;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the incoCompoId property value. The incoCompoId property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getIncoCompoId(): ?string {
|
||||
*/
|
||||
public function getIncoCompoId(): ?string
|
||||
{
|
||||
return $this->incoCompoId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the incoId property value. The incoId property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getIncoId(): ?string {
|
||||
*/
|
||||
public function getIncoId(): ?string
|
||||
{
|
||||
return $this->incoId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the minerals property value. Teneur détaillée en minéraux et oligo-éléments.
|
||||
* @return IncoCompoMinerals|null
|
||||
*/
|
||||
public function getMinerals(): ?IncoCompoMinerals {
|
||||
*/
|
||||
public function getMinerals(): ?IncoCompoMinerals
|
||||
{
|
||||
return $this->minerals;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the nutriScore property value. Détail des composantes et classement Nutri-Score.
|
||||
* @return IncoCompoNutriScore|null
|
||||
*/
|
||||
public function getNutriScore(): ?IncoCompoNutriScore {
|
||||
*/
|
||||
public function getNutriScore(): ?IncoCompoNutriScore
|
||||
{
|
||||
return $this->nutriScore;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the nutriScorePoints property value. Points élémentaires du calcul Nutri-Score.
|
||||
* @return IncoCompoNutriScorePoints|null
|
||||
*/
|
||||
public function getNutriScorePoints(): ?IncoCompoNutriScorePoints {
|
||||
*/
|
||||
public function getNutriScorePoints(): ?IncoCompoNutriScorePoints
|
||||
{
|
||||
return $this->nutriScorePoints;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the portionMacronutrients property value. Macronutriments par portion.
|
||||
* @return IncoCompoPortionMacronutrients|null
|
||||
*/
|
||||
public function getPortionMacronutrients(): ?IncoCompoPortionMacronutrients {
|
||||
*/
|
||||
public function getPortionMacronutrients(): ?IncoCompoPortionMacronutrients
|
||||
{
|
||||
return $this->portionMacronutrients;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the referenceIntakes property value. Pourcentages des apports de référence (AR / ARIC).
|
||||
* @return IncoCompoReferenceIntakes|null
|
||||
*/
|
||||
public function getReferenceIntakes(): ?IncoCompoReferenceIntakes {
|
||||
*/
|
||||
public function getReferenceIntakes(): ?IncoCompoReferenceIntakes
|
||||
{
|
||||
return $this->referenceIntakes;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the referenceMacronutrients property value. Macronutriments de référence pour 100g/ml.
|
||||
* @return IncoCompoReferenceMacronutrients|null
|
||||
*/
|
||||
public function getReferenceMacronutrients(): ?IncoCompoReferenceMacronutrients {
|
||||
*/
|
||||
public function getReferenceMacronutrients(): ?IncoCompoReferenceMacronutrients
|
||||
{
|
||||
return $this->referenceMacronutrients;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the specialCompounds property value. Composés spéciaux (Choline, Carnitine, Taurine, Nucléotides).
|
||||
* @return IncoCompoSpecialCompounds|null
|
||||
*/
|
||||
public function getSpecialCompounds(): ?IncoCompoSpecialCompounds {
|
||||
*/
|
||||
public function getSpecialCompounds(): ?IncoCompoSpecialCompounds
|
||||
{
|
||||
return $this->specialCompounds;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the vitamins property value. Teneur détaillée en vitamines.
|
||||
* @return IncoCompoVitamins|null
|
||||
*/
|
||||
public function getVitamins(): ?IncoCompoVitamins {
|
||||
*/
|
||||
public function getVitamins(): ?IncoCompoVitamins
|
||||
{
|
||||
return $this->vitamins;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeObjectValue('aminoAcids', $this->getAminoAcids());
|
||||
$writer->writeObjectValue('carbohydratesDetail', $this->getCarbohydratesDetail());
|
||||
$writer->writeObjectValue('energy', $this->getEnergy());
|
||||
|
|
@ -301,138 +312,171 @@ class IncoCompo implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the aminoAcids property value. Teneur en acides aminés et protéines de lait.
|
||||
* @param IncoCompoAminoAcids|null $value Value to set for the aminoAcids property.
|
||||
*/
|
||||
public function setAminoAcids(?IncoCompoAminoAcids $value): void {
|
||||
*
|
||||
* @param IncoCompoAminoAcids|null $value Value to set for the aminoAcids property.
|
||||
*/
|
||||
public function setAminoAcids(?IncoCompoAminoAcids $value): void
|
||||
{
|
||||
$this->aminoAcids = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the carbohydratesDetail property value. Composition détaillée des glucides et fibres.
|
||||
* @param IncoCompoCarbohydratesDetail|null $value Value to set for the carbohydratesDetail property.
|
||||
*/
|
||||
public function setCarbohydratesDetail(?IncoCompoCarbohydratesDetail $value): void {
|
||||
*
|
||||
* @param IncoCompoCarbohydratesDetail|null $value Value to set for the carbohydratesDetail property.
|
||||
*/
|
||||
public function setCarbohydratesDetail(?IncoCompoCarbohydratesDetail $value): void
|
||||
{
|
||||
$this->carbohydratesDetail = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the energy property value. Valeurs énergétiques.
|
||||
* @param IncoCompoEnergy|null $value Value to set for the energy property.
|
||||
*/
|
||||
public function setEnergy(?IncoCompoEnergy $value): void {
|
||||
*
|
||||
* @param IncoCompoEnergy|null $value Value to set for the energy property.
|
||||
*/
|
||||
public function setEnergy(?IncoCompoEnergy $value): void
|
||||
{
|
||||
$this->energy = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the fattyAcids property value. Teneur détaillée en acides gras (AGS, AGMI, AGPI).
|
||||
* @param IncoCompoFattyAcids|null $value Value to set for the fattyAcids property.
|
||||
*/
|
||||
public function setFattyAcids(?IncoCompoFattyAcids $value): void {
|
||||
*
|
||||
* @param IncoCompoFattyAcids|null $value Value to set for the fattyAcids property.
|
||||
*/
|
||||
public function setFattyAcids(?IncoCompoFattyAcids $value): void
|
||||
{
|
||||
$this->fattyAcids = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the freshProduceAndNuts property value. Teneur en fruits, légumes et noix (FNL).
|
||||
* @param IncoCompoFreshProduceAndNuts|null $value Value to set for the freshProduceAndNuts property.
|
||||
*/
|
||||
public function setFreshProduceAndNuts(?IncoCompoFreshProduceAndNuts $value): void {
|
||||
*
|
||||
* @param IncoCompoFreshProduceAndNuts|null $value Value to set for the freshProduceAndNuts property.
|
||||
*/
|
||||
public function setFreshProduceAndNuts(?IncoCompoFreshProduceAndNuts $value): void
|
||||
{
|
||||
$this->freshProduceAndNuts = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the identification property value. Informations d'identification de la composition INCO.
|
||||
* @param IncoCompositionIdentification|null $value Value to set for the identification property.
|
||||
*/
|
||||
public function setIdentification(?IncoCompositionIdentification $value): void {
|
||||
*
|
||||
* @param IncoCompositionIdentification|null $value Value to set for the identification property.
|
||||
*/
|
||||
public function setIdentification(?IncoCompositionIdentification $value): void
|
||||
{
|
||||
$this->identification = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the incoCompoId property value. The incoCompoId property
|
||||
* @param string|null $value Value to set for the incoCompoId property.
|
||||
*/
|
||||
public function setIncoCompoId(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the incoCompoId property.
|
||||
*/
|
||||
public function setIncoCompoId(?string $value): void
|
||||
{
|
||||
$this->incoCompoId = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the incoId property value. The incoId property
|
||||
* @param string|null $value Value to set for the incoId property.
|
||||
*/
|
||||
public function setIncoId(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the incoId property.
|
||||
*/
|
||||
public function setIncoId(?string $value): void
|
||||
{
|
||||
$this->incoId = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the minerals property value. Teneur détaillée en minéraux et oligo-éléments.
|
||||
* @param IncoCompoMinerals|null $value Value to set for the minerals property.
|
||||
*/
|
||||
public function setMinerals(?IncoCompoMinerals $value): void {
|
||||
*
|
||||
* @param IncoCompoMinerals|null $value Value to set for the minerals property.
|
||||
*/
|
||||
public function setMinerals(?IncoCompoMinerals $value): void
|
||||
{
|
||||
$this->minerals = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the nutriScore property value. Détail des composantes et classement Nutri-Score.
|
||||
* @param IncoCompoNutriScore|null $value Value to set for the nutriScore property.
|
||||
*/
|
||||
public function setNutriScore(?IncoCompoNutriScore $value): void {
|
||||
*
|
||||
* @param IncoCompoNutriScore|null $value Value to set for the nutriScore property.
|
||||
*/
|
||||
public function setNutriScore(?IncoCompoNutriScore $value): void
|
||||
{
|
||||
$this->nutriScore = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the nutriScorePoints property value. Points élémentaires du calcul Nutri-Score.
|
||||
* @param IncoCompoNutriScorePoints|null $value Value to set for the nutriScorePoints property.
|
||||
*/
|
||||
public function setNutriScorePoints(?IncoCompoNutriScorePoints $value): void {
|
||||
*
|
||||
* @param IncoCompoNutriScorePoints|null $value Value to set for the nutriScorePoints property.
|
||||
*/
|
||||
public function setNutriScorePoints(?IncoCompoNutriScorePoints $value): void
|
||||
{
|
||||
$this->nutriScorePoints = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the portionMacronutrients property value. Macronutriments par portion.
|
||||
* @param IncoCompoPortionMacronutrients|null $value Value to set for the portionMacronutrients property.
|
||||
*/
|
||||
public function setPortionMacronutrients(?IncoCompoPortionMacronutrients $value): void {
|
||||
*
|
||||
* @param IncoCompoPortionMacronutrients|null $value Value to set for the portionMacronutrients property.
|
||||
*/
|
||||
public function setPortionMacronutrients(?IncoCompoPortionMacronutrients $value): void
|
||||
{
|
||||
$this->portionMacronutrients = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the referenceIntakes property value. Pourcentages des apports de référence (AR / ARIC).
|
||||
* @param IncoCompoReferenceIntakes|null $value Value to set for the referenceIntakes property.
|
||||
*/
|
||||
public function setReferenceIntakes(?IncoCompoReferenceIntakes $value): void {
|
||||
*
|
||||
* @param IncoCompoReferenceIntakes|null $value Value to set for the referenceIntakes property.
|
||||
*/
|
||||
public function setReferenceIntakes(?IncoCompoReferenceIntakes $value): void
|
||||
{
|
||||
$this->referenceIntakes = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the referenceMacronutrients property value. Macronutriments de référence pour 100g/ml.
|
||||
* @param IncoCompoReferenceMacronutrients|null $value Value to set for the referenceMacronutrients property.
|
||||
*/
|
||||
public function setReferenceMacronutrients(?IncoCompoReferenceMacronutrients $value): void {
|
||||
*
|
||||
* @param IncoCompoReferenceMacronutrients|null $value Value to set for the referenceMacronutrients property.
|
||||
*/
|
||||
public function setReferenceMacronutrients(?IncoCompoReferenceMacronutrients $value): void
|
||||
{
|
||||
$this->referenceMacronutrients = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the specialCompounds property value. Composés spéciaux (Choline, Carnitine, Taurine, Nucléotides).
|
||||
* @param IncoCompoSpecialCompounds|null $value Value to set for the specialCompounds property.
|
||||
*/
|
||||
public function setSpecialCompounds(?IncoCompoSpecialCompounds $value): void {
|
||||
*
|
||||
* @param IncoCompoSpecialCompounds|null $value Value to set for the specialCompounds property.
|
||||
*/
|
||||
public function setSpecialCompounds(?IncoCompoSpecialCompounds $value): void
|
||||
{
|
||||
$this->specialCompounds = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the vitamins property value. Teneur détaillée en vitamines.
|
||||
* @param IncoCompoVitamins|null $value Value to set for the vitamins property.
|
||||
*/
|
||||
public function setVitamins(?IncoCompoVitamins $value): void {
|
||||
*
|
||||
* @param IncoCompoVitamins|null $value Value to set for the vitamins property.
|
||||
*/
|
||||
public function setVitamins(?IncoCompoVitamins $value): void
|
||||
{
|
||||
$this->vitamins = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
124
client/Models/IncoCompoAminoAcids.php
Executable file → Normal file
124
client/Models/IncoCompoAminoAcids.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,95 +11,104 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Teneur en acides aminés et protéines de lait.
|
||||
*/
|
||||
class IncoCompoAminoAcids implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompoAminoAcids implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $caseins Caséines (g/100g).
|
||||
*/
|
||||
* @var string|null Caséines (g/100g).
|
||||
*/
|
||||
private ?string $caseins = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $essentialAminoAcids Acides aminés essentiels (total g/100g).
|
||||
*/
|
||||
* @var string|null Acides aminés essentiels (total g/100g).
|
||||
*/
|
||||
private ?string $essentialAminoAcids = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $wheyProtein Protéines de lactosérum (g/100g).
|
||||
*/
|
||||
* @var string|null Protéines de lactosérum (g/100g).
|
||||
*/
|
||||
private ?string $wheyProtein = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompoAminoAcids and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompoAminoAcids
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoAminoAcids {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoAminoAcids
|
||||
{
|
||||
return new IncoCompoAminoAcids();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the caseins property value. Caséines (g/100g).
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCaseins(): ?string {
|
||||
*/
|
||||
public function getCaseins(): ?string
|
||||
{
|
||||
return $this->caseins;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the essentialAminoAcids property value. Acides aminés essentiels (total g/100g).
|
||||
* @return string|null
|
||||
*/
|
||||
public function getEssentialAminoAcids(): ?string {
|
||||
*/
|
||||
public function getEssentialAminoAcids(): ?string
|
||||
{
|
||||
return $this->essentialAminoAcids;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'caseins' => fn(ParseNode $n) => $o->setCaseins($n->getStringValue()),
|
||||
'essentialAminoAcids' => fn(ParseNode $n) => $o->setEssentialAminoAcids($n->getStringValue()),
|
||||
'wheyProtein' => fn(ParseNode $n) => $o->setWheyProtein($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'caseins' => fn (ParseNode $n) => $o->setCaseins($n->getStringValue()),
|
||||
'essentialAminoAcids' => fn (ParseNode $n) => $o->setEssentialAminoAcids($n->getStringValue()),
|
||||
'wheyProtein' => fn (ParseNode $n) => $o->setWheyProtein($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the wheyProtein property value. Protéines de lactosérum (g/100g).
|
||||
* @return string|null
|
||||
*/
|
||||
public function getWheyProtein(): ?string {
|
||||
*/
|
||||
public function getWheyProtein(): ?string
|
||||
{
|
||||
return $this->wheyProtein;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('caseins', $this->getCaseins());
|
||||
$writer->writeStringValue('essentialAminoAcids', $this->getEssentialAminoAcids());
|
||||
$writer->writeStringValue('wheyProtein', $this->getWheyProtein());
|
||||
|
|
@ -106,34 +117,41 @@ class IncoCompoAminoAcids implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the caseins property value. Caséines (g/100g).
|
||||
* @param string|null $value Value to set for the caseins property.
|
||||
*/
|
||||
public function setCaseins(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the caseins property.
|
||||
*/
|
||||
public function setCaseins(?string $value): void
|
||||
{
|
||||
$this->caseins = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the essentialAminoAcids property value. Acides aminés essentiels (total g/100g).
|
||||
* @param string|null $value Value to set for the essentialAminoAcids property.
|
||||
*/
|
||||
public function setEssentialAminoAcids(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the essentialAminoAcids property.
|
||||
*/
|
||||
public function setEssentialAminoAcids(?string $value): void
|
||||
{
|
||||
$this->essentialAminoAcids = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the wheyProtein property value. Protéines de lactosérum (g/100g).
|
||||
* @param string|null $value Value to set for the wheyProtein property.
|
||||
*/
|
||||
public function setWheyProtein(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the wheyProtein property.
|
||||
*/
|
||||
public function setWheyProtein(?string $value): void
|
||||
{
|
||||
$this->wheyProtein = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
366
client/Models/IncoCompoCarbohydratesDetail.php
Executable file → Normal file
366
client/Models/IncoCompoCarbohydratesDetail.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,249 +11,258 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Composition détaillée des glucides et fibres.
|
||||
*/
|
||||
class IncoCompoCarbohydratesDetail implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompoCarbohydratesDetail implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $boundFructose The boundFructose property
|
||||
*/
|
||||
* @var string|null The boundFructose property
|
||||
*/
|
||||
private ?string $boundFructose = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $carbohydrateHydrates The carbohydrateHydrates property
|
||||
*/
|
||||
* @var string|null The carbohydrateHydrates property
|
||||
*/
|
||||
private ?string $carbohydrateHydrates = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $freeFructose The freeFructose property
|
||||
*/
|
||||
* @var string|null The freeFructose property
|
||||
*/
|
||||
private ?string $freeFructose = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $galactose The galactose property
|
||||
*/
|
||||
* @var string|null The galactose property
|
||||
*/
|
||||
private ?string $galactose = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $glucose The glucose property
|
||||
*/
|
||||
* @var string|null The glucose property
|
||||
*/
|
||||
private ?string $glucose = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $inositol The inositol property
|
||||
*/
|
||||
* @var string|null The inositol property
|
||||
*/
|
||||
private ?string $inositol = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $lactose The lactose property
|
||||
*/
|
||||
* @var string|null The lactose property
|
||||
*/
|
||||
private ?string $lactose = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $maltodextrin The maltodextrin property
|
||||
*/
|
||||
* @var string|null The maltodextrin property
|
||||
*/
|
||||
private ?string $maltodextrin = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $maltose The maltose property
|
||||
*/
|
||||
* @var string|null The maltose property
|
||||
*/
|
||||
private ?string $maltose = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $oligosaccharides The oligosaccharides property
|
||||
*/
|
||||
* @var string|null The oligosaccharides property
|
||||
*/
|
||||
private ?string $oligosaccharides = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $polyols The polyols property
|
||||
*/
|
||||
* @var string|null The polyols property
|
||||
*/
|
||||
private ?string $polyols = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $solubleFiber The solubleFiber property
|
||||
*/
|
||||
* @var string|null The solubleFiber property
|
||||
*/
|
||||
private ?string $solubleFiber = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $starch The starch property
|
||||
*/
|
||||
* @var string|null The starch property
|
||||
*/
|
||||
private ?string $starch = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $sucrose The sucrose property
|
||||
*/
|
||||
* @var string|null The sucrose property
|
||||
*/
|
||||
private ?string $sucrose = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompoCarbohydratesDetail and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompoCarbohydratesDetail
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoCarbohydratesDetail {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoCarbohydratesDetail
|
||||
{
|
||||
return new IncoCompoCarbohydratesDetail();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the boundFructose property value. The boundFructose property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getBoundFructose(): ?string {
|
||||
*/
|
||||
public function getBoundFructose(): ?string
|
||||
{
|
||||
return $this->boundFructose;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the carbohydrateHydrates property value. The carbohydrateHydrates property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCarbohydrateHydrates(): ?string {
|
||||
*/
|
||||
public function getCarbohydrateHydrates(): ?string
|
||||
{
|
||||
return $this->carbohydrateHydrates;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'boundFructose' => fn(ParseNode $n) => $o->setBoundFructose($n->getStringValue()),
|
||||
'carbohydrateHydrates' => fn(ParseNode $n) => $o->setCarbohydrateHydrates($n->getStringValue()),
|
||||
'freeFructose' => fn(ParseNode $n) => $o->setFreeFructose($n->getStringValue()),
|
||||
'galactose' => fn(ParseNode $n) => $o->setGalactose($n->getStringValue()),
|
||||
'glucose' => fn(ParseNode $n) => $o->setGlucose($n->getStringValue()),
|
||||
'inositol' => fn(ParseNode $n) => $o->setInositol($n->getStringValue()),
|
||||
'lactose' => fn(ParseNode $n) => $o->setLactose($n->getStringValue()),
|
||||
'maltodextrin' => fn(ParseNode $n) => $o->setMaltodextrin($n->getStringValue()),
|
||||
'maltose' => fn(ParseNode $n) => $o->setMaltose($n->getStringValue()),
|
||||
'oligosaccharides' => fn(ParseNode $n) => $o->setOligosaccharides($n->getStringValue()),
|
||||
'polyols' => fn(ParseNode $n) => $o->setPolyols($n->getStringValue()),
|
||||
'solubleFiber' => fn(ParseNode $n) => $o->setSolubleFiber($n->getStringValue()),
|
||||
'starch' => fn(ParseNode $n) => $o->setStarch($n->getStringValue()),
|
||||
'sucrose' => fn(ParseNode $n) => $o->setSucrose($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'boundFructose' => fn (ParseNode $n) => $o->setBoundFructose($n->getStringValue()),
|
||||
'carbohydrateHydrates' => fn (ParseNode $n) => $o->setCarbohydrateHydrates($n->getStringValue()),
|
||||
'freeFructose' => fn (ParseNode $n) => $o->setFreeFructose($n->getStringValue()),
|
||||
'galactose' => fn (ParseNode $n) => $o->setGalactose($n->getStringValue()),
|
||||
'glucose' => fn (ParseNode $n) => $o->setGlucose($n->getStringValue()),
|
||||
'inositol' => fn (ParseNode $n) => $o->setInositol($n->getStringValue()),
|
||||
'lactose' => fn (ParseNode $n) => $o->setLactose($n->getStringValue()),
|
||||
'maltodextrin' => fn (ParseNode $n) => $o->setMaltodextrin($n->getStringValue()),
|
||||
'maltose' => fn (ParseNode $n) => $o->setMaltose($n->getStringValue()),
|
||||
'oligosaccharides' => fn (ParseNode $n) => $o->setOligosaccharides($n->getStringValue()),
|
||||
'polyols' => fn (ParseNode $n) => $o->setPolyols($n->getStringValue()),
|
||||
'solubleFiber' => fn (ParseNode $n) => $o->setSolubleFiber($n->getStringValue()),
|
||||
'starch' => fn (ParseNode $n) => $o->setStarch($n->getStringValue()),
|
||||
'sucrose' => fn (ParseNode $n) => $o->setSucrose($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the freeFructose property value. The freeFructose property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFreeFructose(): ?string {
|
||||
*/
|
||||
public function getFreeFructose(): ?string
|
||||
{
|
||||
return $this->freeFructose;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the galactose property value. The galactose property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getGalactose(): ?string {
|
||||
*/
|
||||
public function getGalactose(): ?string
|
||||
{
|
||||
return $this->galactose;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the glucose property value. The glucose property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getGlucose(): ?string {
|
||||
*/
|
||||
public function getGlucose(): ?string
|
||||
{
|
||||
return $this->glucose;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the inositol property value. The inositol property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getInositol(): ?string {
|
||||
*/
|
||||
public function getInositol(): ?string
|
||||
{
|
||||
return $this->inositol;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the lactose property value. The lactose property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getLactose(): ?string {
|
||||
*/
|
||||
public function getLactose(): ?string
|
||||
{
|
||||
return $this->lactose;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the maltodextrin property value. The maltodextrin property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getMaltodextrin(): ?string {
|
||||
*/
|
||||
public function getMaltodextrin(): ?string
|
||||
{
|
||||
return $this->maltodextrin;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the maltose property value. The maltose property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getMaltose(): ?string {
|
||||
*/
|
||||
public function getMaltose(): ?string
|
||||
{
|
||||
return $this->maltose;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the oligosaccharides property value. The oligosaccharides property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getOligosaccharides(): ?string {
|
||||
*/
|
||||
public function getOligosaccharides(): ?string
|
||||
{
|
||||
return $this->oligosaccharides;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the polyols property value. The polyols property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getPolyols(): ?string {
|
||||
*/
|
||||
public function getPolyols(): ?string
|
||||
{
|
||||
return $this->polyols;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the solubleFiber property value. The solubleFiber property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSolubleFiber(): ?string {
|
||||
*/
|
||||
public function getSolubleFiber(): ?string
|
||||
{
|
||||
return $this->solubleFiber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the starch property value. The starch property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getStarch(): ?string {
|
||||
*/
|
||||
public function getStarch(): ?string
|
||||
{
|
||||
return $this->starch;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the sucrose property value. The sucrose property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSucrose(): ?string {
|
||||
*/
|
||||
public function getSucrose(): ?string
|
||||
{
|
||||
return $this->sucrose;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('boundFructose', $this->getBoundFructose());
|
||||
$writer->writeStringValue('carbohydrateHydrates', $this->getCarbohydrateHydrates());
|
||||
$writer->writeStringValue('freeFructose', $this->getFreeFructose());
|
||||
|
|
@ -271,122 +282,151 @@ class IncoCompoCarbohydratesDetail implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the boundFructose property value. The boundFructose property
|
||||
* @param string|null $value Value to set for the boundFructose property.
|
||||
*/
|
||||
public function setBoundFructose(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the boundFructose property.
|
||||
*/
|
||||
public function setBoundFructose(?string $value): void
|
||||
{
|
||||
$this->boundFructose = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the carbohydrateHydrates property value. The carbohydrateHydrates property
|
||||
* @param string|null $value Value to set for the carbohydrateHydrates property.
|
||||
*/
|
||||
public function setCarbohydrateHydrates(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the carbohydrateHydrates property.
|
||||
*/
|
||||
public function setCarbohydrateHydrates(?string $value): void
|
||||
{
|
||||
$this->carbohydrateHydrates = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the freeFructose property value. The freeFructose property
|
||||
* @param string|null $value Value to set for the freeFructose property.
|
||||
*/
|
||||
public function setFreeFructose(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the freeFructose property.
|
||||
*/
|
||||
public function setFreeFructose(?string $value): void
|
||||
{
|
||||
$this->freeFructose = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the galactose property value. The galactose property
|
||||
* @param string|null $value Value to set for the galactose property.
|
||||
*/
|
||||
public function setGalactose(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the galactose property.
|
||||
*/
|
||||
public function setGalactose(?string $value): void
|
||||
{
|
||||
$this->galactose = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the glucose property value. The glucose property
|
||||
* @param string|null $value Value to set for the glucose property.
|
||||
*/
|
||||
public function setGlucose(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the glucose property.
|
||||
*/
|
||||
public function setGlucose(?string $value): void
|
||||
{
|
||||
$this->glucose = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the inositol property value. The inositol property
|
||||
* @param string|null $value Value to set for the inositol property.
|
||||
*/
|
||||
public function setInositol(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the inositol property.
|
||||
*/
|
||||
public function setInositol(?string $value): void
|
||||
{
|
||||
$this->inositol = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the lactose property value. The lactose property
|
||||
* @param string|null $value Value to set for the lactose property.
|
||||
*/
|
||||
public function setLactose(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the lactose property.
|
||||
*/
|
||||
public function setLactose(?string $value): void
|
||||
{
|
||||
$this->lactose = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the maltodextrin property value. The maltodextrin property
|
||||
* @param string|null $value Value to set for the maltodextrin property.
|
||||
*/
|
||||
public function setMaltodextrin(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the maltodextrin property.
|
||||
*/
|
||||
public function setMaltodextrin(?string $value): void
|
||||
{
|
||||
$this->maltodextrin = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the maltose property value. The maltose property
|
||||
* @param string|null $value Value to set for the maltose property.
|
||||
*/
|
||||
public function setMaltose(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the maltose property.
|
||||
*/
|
||||
public function setMaltose(?string $value): void
|
||||
{
|
||||
$this->maltose = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the oligosaccharides property value. The oligosaccharides property
|
||||
* @param string|null $value Value to set for the oligosaccharides property.
|
||||
*/
|
||||
public function setOligosaccharides(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the oligosaccharides property.
|
||||
*/
|
||||
public function setOligosaccharides(?string $value): void
|
||||
{
|
||||
$this->oligosaccharides = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the polyols property value. The polyols property
|
||||
* @param string|null $value Value to set for the polyols property.
|
||||
*/
|
||||
public function setPolyols(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the polyols property.
|
||||
*/
|
||||
public function setPolyols(?string $value): void
|
||||
{
|
||||
$this->polyols = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the solubleFiber property value. The solubleFiber property
|
||||
* @param string|null $value Value to set for the solubleFiber property.
|
||||
*/
|
||||
public function setSolubleFiber(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the solubleFiber property.
|
||||
*/
|
||||
public function setSolubleFiber(?string $value): void
|
||||
{
|
||||
$this->solubleFiber = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the starch property value. The starch property
|
||||
* @param string|null $value Value to set for the starch property.
|
||||
*/
|
||||
public function setStarch(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the starch property.
|
||||
*/
|
||||
public function setStarch(?string $value): void
|
||||
{
|
||||
$this->starch = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the sucrose property value. The sucrose property
|
||||
* @param string|null $value Value to set for the sucrose property.
|
||||
*/
|
||||
public function setSucrose(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the sucrose property.
|
||||
*/
|
||||
public function setSucrose(?string $value): void
|
||||
{
|
||||
$this->sucrose = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
102
client/Models/IncoCompoEnergy.php
Executable file → Normal file
102
client/Models/IncoCompoEnergy.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,81 +11,90 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Valeurs énergétiques.
|
||||
*/
|
||||
class IncoCompoEnergy implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompoEnergy implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var EnergyValues|null $portion Quantités d'énergie (portion ou référence).
|
||||
*/
|
||||
* @var EnergyValues|null Quantités d'énergie (portion ou référence).
|
||||
*/
|
||||
private ?EnergyValues $portion = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var EnergyValues|null $reference Quantités d'énergie (portion ou référence).
|
||||
*/
|
||||
* @var EnergyValues|null Quantités d'énergie (portion ou référence).
|
||||
*/
|
||||
private ?EnergyValues $reference = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompoEnergy and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompoEnergy
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoEnergy {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoEnergy
|
||||
{
|
||||
return new IncoCompoEnergy();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'portion' => fn(ParseNode $n) => $o->setPortion($n->getObjectValue([EnergyValues::class, 'createFromDiscriminatorValue'])),
|
||||
'reference' => fn(ParseNode $n) => $o->setReference($n->getObjectValue([EnergyValues::class, 'createFromDiscriminatorValue'])),
|
||||
|
||||
return [
|
||||
'portion' => fn (ParseNode $n) => $o->setPortion($n->getObjectValue([EnergyValues::class, 'createFromDiscriminatorValue'])),
|
||||
'reference' => fn (ParseNode $n) => $o->setReference($n->getObjectValue([EnergyValues::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the portion property value. Quantités d'énergie (portion ou référence).
|
||||
* @return EnergyValues|null
|
||||
*/
|
||||
public function getPortion(): ?EnergyValues {
|
||||
*/
|
||||
public function getPortion(): ?EnergyValues
|
||||
{
|
||||
return $this->portion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the reference property value. Quantités d'énergie (portion ou référence).
|
||||
* @return EnergyValues|null
|
||||
*/
|
||||
public function getReference(): ?EnergyValues {
|
||||
*/
|
||||
public function getReference(): ?EnergyValues
|
||||
{
|
||||
return $this->reference;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeObjectValue('portion', $this->getPortion());
|
||||
$writer->writeObjectValue('reference', $this->getReference());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
|
|
@ -91,26 +102,31 @@ class IncoCompoEnergy implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the portion property value. Quantités d'énergie (portion ou référence).
|
||||
* @param EnergyValues|null $value Value to set for the portion property.
|
||||
*/
|
||||
public function setPortion(?EnergyValues $value): void {
|
||||
*
|
||||
* @param EnergyValues|null $value Value to set for the portion property.
|
||||
*/
|
||||
public function setPortion(?EnergyValues $value): void
|
||||
{
|
||||
$this->portion = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the reference property value. Quantités d'énergie (portion ou référence).
|
||||
* @param EnergyValues|null $value Value to set for the reference property.
|
||||
*/
|
||||
public function setReference(?EnergyValues $value): void {
|
||||
*
|
||||
* @param EnergyValues|null $value Value to set for the reference property.
|
||||
*/
|
||||
public function setReference(?EnergyValues $value): void
|
||||
{
|
||||
$this->reference = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
1356
client/Models/IncoCompoFattyAcids.php
Executable file → Normal file
1356
client/Models/IncoCompoFattyAcids.php
Executable file → Normal file
File diff suppressed because it is too large
Load diff
146
client/Models/IncoCompoFreshProduceAndNuts.php
Executable file → Normal file
146
client/Models/IncoCompoFreshProduceAndNuts.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,109 +11,118 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Teneur en fruits, légumes et noix (FNL).
|
||||
*/
|
||||
class IncoCompoFreshProduceAndNuts implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompoFreshProduceAndNuts implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PercentageValue|null $freshFnlPercentage Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
* @var PercentageValue|null Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
private ?PercentageValue $freshFnlPercentage = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PercentageValue|null $fruitsPercentage Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
* @var PercentageValue|null Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
private ?PercentageValue $fruitsPercentage = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var FruitAndNutAmount|null $portion Quantités de fruits, noix et FNL.
|
||||
*/
|
||||
* @var FruitAndNutAmount|null Quantités de fruits, noix et FNL.
|
||||
*/
|
||||
private ?FruitAndNutAmount $portion = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var FruitAndNutAmount|null $reference Quantités de fruits, noix et FNL.
|
||||
*/
|
||||
* @var FruitAndNutAmount|null Quantités de fruits, noix et FNL.
|
||||
*/
|
||||
private ?FruitAndNutAmount $reference = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompoFreshProduceAndNuts and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompoFreshProduceAndNuts
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoFreshProduceAndNuts {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoFreshProduceAndNuts
|
||||
{
|
||||
return new IncoCompoFreshProduceAndNuts();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'freshFnlPercentage' => fn(ParseNode $n) => $o->setFreshFnlPercentage($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'fruitsPercentage' => fn(ParseNode $n) => $o->setFruitsPercentage($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'portion' => fn(ParseNode $n) => $o->setPortion($n->getObjectValue([FruitAndNutAmount::class, 'createFromDiscriminatorValue'])),
|
||||
'reference' => fn(ParseNode $n) => $o->setReference($n->getObjectValue([FruitAndNutAmount::class, 'createFromDiscriminatorValue'])),
|
||||
|
||||
return [
|
||||
'freshFnlPercentage' => fn (ParseNode $n) => $o->setFreshFnlPercentage($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'fruitsPercentage' => fn (ParseNode $n) => $o->setFruitsPercentage($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'portion' => fn (ParseNode $n) => $o->setPortion($n->getObjectValue([FruitAndNutAmount::class, 'createFromDiscriminatorValue'])),
|
||||
'reference' => fn (ParseNode $n) => $o->setReference($n->getObjectValue([FruitAndNutAmount::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the freshFnlPercentage property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @return PercentageValue|null
|
||||
*/
|
||||
public function getFreshFnlPercentage(): ?PercentageValue {
|
||||
*/
|
||||
public function getFreshFnlPercentage(): ?PercentageValue
|
||||
{
|
||||
return $this->freshFnlPercentage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the fruitsPercentage property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @return PercentageValue|null
|
||||
*/
|
||||
public function getFruitsPercentage(): ?PercentageValue {
|
||||
*/
|
||||
public function getFruitsPercentage(): ?PercentageValue
|
||||
{
|
||||
return $this->fruitsPercentage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the portion property value. Quantités de fruits, noix et FNL.
|
||||
* @return FruitAndNutAmount|null
|
||||
*/
|
||||
public function getPortion(): ?FruitAndNutAmount {
|
||||
*/
|
||||
public function getPortion(): ?FruitAndNutAmount
|
||||
{
|
||||
return $this->portion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the reference property value. Quantités de fruits, noix et FNL.
|
||||
* @return FruitAndNutAmount|null
|
||||
*/
|
||||
public function getReference(): ?FruitAndNutAmount {
|
||||
*/
|
||||
public function getReference(): ?FruitAndNutAmount
|
||||
{
|
||||
return $this->reference;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeObjectValue('freshFnlPercentage', $this->getFreshFnlPercentage());
|
||||
$writer->writeObjectValue('fruitsPercentage', $this->getFruitsPercentage());
|
||||
$writer->writeObjectValue('portion', $this->getPortion());
|
||||
|
|
@ -121,42 +132,51 @@ class IncoCompoFreshProduceAndNuts implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the freshFnlPercentage property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @param PercentageValue|null $value Value to set for the freshFnlPercentage property.
|
||||
*/
|
||||
public function setFreshFnlPercentage(?PercentageValue $value): void {
|
||||
*
|
||||
* @param PercentageValue|null $value Value to set for the freshFnlPercentage property.
|
||||
*/
|
||||
public function setFreshFnlPercentage(?PercentageValue $value): void
|
||||
{
|
||||
$this->freshFnlPercentage = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the fruitsPercentage property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @param PercentageValue|null $value Value to set for the fruitsPercentage property.
|
||||
*/
|
||||
public function setFruitsPercentage(?PercentageValue $value): void {
|
||||
*
|
||||
* @param PercentageValue|null $value Value to set for the fruitsPercentage property.
|
||||
*/
|
||||
public function setFruitsPercentage(?PercentageValue $value): void
|
||||
{
|
||||
$this->fruitsPercentage = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the portion property value. Quantités de fruits, noix et FNL.
|
||||
* @param FruitAndNutAmount|null $value Value to set for the portion property.
|
||||
*/
|
||||
public function setPortion(?FruitAndNutAmount $value): void {
|
||||
*
|
||||
* @param FruitAndNutAmount|null $value Value to set for the portion property.
|
||||
*/
|
||||
public function setPortion(?FruitAndNutAmount $value): void
|
||||
{
|
||||
$this->portion = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the reference property value. Quantités de fruits, noix et FNL.
|
||||
* @param FruitAndNutAmount|null $value Value to set for the reference property.
|
||||
*/
|
||||
public function setReference(?FruitAndNutAmount $value): void {
|
||||
*
|
||||
* @param FruitAndNutAmount|null $value Value to set for the reference property.
|
||||
*/
|
||||
public function setReference(?FruitAndNutAmount $value): void
|
||||
{
|
||||
$this->reference = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
80
client/Models/IncoCompoItemResponse.php
Executable file → Normal file
80
client/Models/IncoCompoItemResponse.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,85 +11,97 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Enveloppe de réponse pour le détail d'une composition INCO.
|
||||
*/
|
||||
class IncoCompoItemResponse implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompoItemResponse implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoCompo|null $composition Composition nutritionnelle détaillée d'une fiche INCO.
|
||||
*/
|
||||
* @var IncoCompo|null Composition nutritionnelle détaillée d'une fiche INCO.
|
||||
*/
|
||||
private ?IncoCompo $composition = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompoItemResponse and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompoItemResponse
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoItemResponse {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoItemResponse
|
||||
{
|
||||
return new IncoCompoItemResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the composition property value. Composition nutritionnelle détaillée d'une fiche INCO.
|
||||
* @return IncoCompo|null
|
||||
*/
|
||||
public function getComposition(): ?IncoCompo {
|
||||
*/
|
||||
public function getComposition(): ?IncoCompo
|
||||
{
|
||||
return $this->composition;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'composition' => fn(ParseNode $n) => $o->setComposition($n->getObjectValue([IncoCompo::class, 'createFromDiscriminatorValue'])),
|
||||
|
||||
return [
|
||||
'composition' => fn (ParseNode $n) => $o->setComposition($n->getObjectValue([IncoCompo::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeObjectValue('composition', $this->getComposition());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the composition property value. Composition nutritionnelle détaillée d'une fiche INCO.
|
||||
* @param IncoCompo|null $value Value to set for the composition property.
|
||||
*/
|
||||
public function setComposition(?IncoCompo $value): void {
|
||||
*
|
||||
* @param IncoCompo|null $value Value to set for the composition property.
|
||||
*/
|
||||
public function setComposition(?IncoCompo $value): void
|
||||
{
|
||||
$this->composition = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
388
client/Models/IncoCompoMinerals.php
Executable file → Normal file
388
client/Models/IncoCompoMinerals.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,263 +11,272 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Teneur détaillée en minéraux et oligo-éléments.
|
||||
*/
|
||||
class IncoCompoMinerals implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompoMinerals implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $calcium The calcium property
|
||||
*/
|
||||
* @var string|null The calcium property
|
||||
*/
|
||||
private ?string $calcium = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $chloride The chloride property
|
||||
*/
|
||||
* @var string|null The chloride property
|
||||
*/
|
||||
private ?string $chloride = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $chromium The chromium property
|
||||
*/
|
||||
* @var string|null The chromium property
|
||||
*/
|
||||
private ?string $chromium = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $copper The copper property
|
||||
*/
|
||||
* @var string|null The copper property
|
||||
*/
|
||||
private ?string $copper = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $iodine The iodine property
|
||||
*/
|
||||
* @var string|null The iodine property
|
||||
*/
|
||||
private ?string $iodine = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $iron The iron property
|
||||
*/
|
||||
* @var string|null The iron property
|
||||
*/
|
||||
private ?string $iron = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $magnesium The magnesium property
|
||||
*/
|
||||
* @var string|null The magnesium property
|
||||
*/
|
||||
private ?string $magnesium = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $manganese The manganese property
|
||||
*/
|
||||
* @var string|null The manganese property
|
||||
*/
|
||||
private ?string $manganese = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $molybdenum The molybdenum property
|
||||
*/
|
||||
* @var string|null The molybdenum property
|
||||
*/
|
||||
private ?string $molybdenum = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $nitrates The nitrates property
|
||||
*/
|
||||
* @var string|null The nitrates property
|
||||
*/
|
||||
private ?string $nitrates = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $phosphorus The phosphorus property
|
||||
*/
|
||||
* @var string|null The phosphorus property
|
||||
*/
|
||||
private ?string $phosphorus = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $potassium The potassium property
|
||||
*/
|
||||
* @var string|null The potassium property
|
||||
*/
|
||||
private ?string $potassium = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $selenium The selenium property
|
||||
*/
|
||||
* @var string|null The selenium property
|
||||
*/
|
||||
private ?string $selenium = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $sulfur The sulfur property
|
||||
*/
|
||||
* @var string|null The sulfur property
|
||||
*/
|
||||
private ?string $sulfur = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $zinc The zinc property
|
||||
*/
|
||||
* @var string|null The zinc property
|
||||
*/
|
||||
private ?string $zinc = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompoMinerals and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompoMinerals
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoMinerals {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoMinerals
|
||||
{
|
||||
return new IncoCompoMinerals();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the calcium property value. The calcium property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCalcium(): ?string {
|
||||
*/
|
||||
public function getCalcium(): ?string
|
||||
{
|
||||
return $this->calcium;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the chloride property value. The chloride property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getChloride(): ?string {
|
||||
*/
|
||||
public function getChloride(): ?string
|
||||
{
|
||||
return $this->chloride;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the chromium property value. The chromium property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getChromium(): ?string {
|
||||
*/
|
||||
public function getChromium(): ?string
|
||||
{
|
||||
return $this->chromium;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the copper property value. The copper property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCopper(): ?string {
|
||||
*/
|
||||
public function getCopper(): ?string
|
||||
{
|
||||
return $this->copper;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'calcium' => fn(ParseNode $n) => $o->setCalcium($n->getStringValue()),
|
||||
'chloride' => fn(ParseNode $n) => $o->setChloride($n->getStringValue()),
|
||||
'chromium' => fn(ParseNode $n) => $o->setChromium($n->getStringValue()),
|
||||
'copper' => fn(ParseNode $n) => $o->setCopper($n->getStringValue()),
|
||||
'iodine' => fn(ParseNode $n) => $o->setIodine($n->getStringValue()),
|
||||
'iron' => fn(ParseNode $n) => $o->setIron($n->getStringValue()),
|
||||
'magnesium' => fn(ParseNode $n) => $o->setMagnesium($n->getStringValue()),
|
||||
'manganese' => fn(ParseNode $n) => $o->setManganese($n->getStringValue()),
|
||||
'molybdenum' => fn(ParseNode $n) => $o->setMolybdenum($n->getStringValue()),
|
||||
'nitrates' => fn(ParseNode $n) => $o->setNitrates($n->getStringValue()),
|
||||
'phosphorus' => fn(ParseNode $n) => $o->setPhosphorus($n->getStringValue()),
|
||||
'potassium' => fn(ParseNode $n) => $o->setPotassium($n->getStringValue()),
|
||||
'selenium' => fn(ParseNode $n) => $o->setSelenium($n->getStringValue()),
|
||||
'sulfur' => fn(ParseNode $n) => $o->setSulfur($n->getStringValue()),
|
||||
'zinc' => fn(ParseNode $n) => $o->setZinc($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'calcium' => fn (ParseNode $n) => $o->setCalcium($n->getStringValue()),
|
||||
'chloride' => fn (ParseNode $n) => $o->setChloride($n->getStringValue()),
|
||||
'chromium' => fn (ParseNode $n) => $o->setChromium($n->getStringValue()),
|
||||
'copper' => fn (ParseNode $n) => $o->setCopper($n->getStringValue()),
|
||||
'iodine' => fn (ParseNode $n) => $o->setIodine($n->getStringValue()),
|
||||
'iron' => fn (ParseNode $n) => $o->setIron($n->getStringValue()),
|
||||
'magnesium' => fn (ParseNode $n) => $o->setMagnesium($n->getStringValue()),
|
||||
'manganese' => fn (ParseNode $n) => $o->setManganese($n->getStringValue()),
|
||||
'molybdenum' => fn (ParseNode $n) => $o->setMolybdenum($n->getStringValue()),
|
||||
'nitrates' => fn (ParseNode $n) => $o->setNitrates($n->getStringValue()),
|
||||
'phosphorus' => fn (ParseNode $n) => $o->setPhosphorus($n->getStringValue()),
|
||||
'potassium' => fn (ParseNode $n) => $o->setPotassium($n->getStringValue()),
|
||||
'selenium' => fn (ParseNode $n) => $o->setSelenium($n->getStringValue()),
|
||||
'sulfur' => fn (ParseNode $n) => $o->setSulfur($n->getStringValue()),
|
||||
'zinc' => fn (ParseNode $n) => $o->setZinc($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the iodine property value. The iodine property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getIodine(): ?string {
|
||||
*/
|
||||
public function getIodine(): ?string
|
||||
{
|
||||
return $this->iodine;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the iron property value. The iron property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getIron(): ?string {
|
||||
*/
|
||||
public function getIron(): ?string
|
||||
{
|
||||
return $this->iron;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the magnesium property value. The magnesium property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getMagnesium(): ?string {
|
||||
*/
|
||||
public function getMagnesium(): ?string
|
||||
{
|
||||
return $this->magnesium;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the manganese property value. The manganese property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getManganese(): ?string {
|
||||
*/
|
||||
public function getManganese(): ?string
|
||||
{
|
||||
return $this->manganese;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the molybdenum property value. The molybdenum property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getMolybdenum(): ?string {
|
||||
*/
|
||||
public function getMolybdenum(): ?string
|
||||
{
|
||||
return $this->molybdenum;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the nitrates property value. The nitrates property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getNitrates(): ?string {
|
||||
*/
|
||||
public function getNitrates(): ?string
|
||||
{
|
||||
return $this->nitrates;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the phosphorus property value. The phosphorus property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getPhosphorus(): ?string {
|
||||
*/
|
||||
public function getPhosphorus(): ?string
|
||||
{
|
||||
return $this->phosphorus;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the potassium property value. The potassium property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getPotassium(): ?string {
|
||||
*/
|
||||
public function getPotassium(): ?string
|
||||
{
|
||||
return $this->potassium;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the selenium property value. The selenium property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSelenium(): ?string {
|
||||
*/
|
||||
public function getSelenium(): ?string
|
||||
{
|
||||
return $this->selenium;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the sulfur property value. The sulfur property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSulfur(): ?string {
|
||||
*/
|
||||
public function getSulfur(): ?string
|
||||
{
|
||||
return $this->sulfur;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the zinc property value. The zinc property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getZinc(): ?string {
|
||||
*/
|
||||
public function getZinc(): ?string
|
||||
{
|
||||
return $this->zinc;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('calcium', $this->getCalcium());
|
||||
$writer->writeStringValue('chloride', $this->getChloride());
|
||||
$writer->writeStringValue('chromium', $this->getChromium());
|
||||
|
|
@ -286,130 +297,161 @@ class IncoCompoMinerals implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the calcium property value. The calcium property
|
||||
* @param string|null $value Value to set for the calcium property.
|
||||
*/
|
||||
public function setCalcium(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the calcium property.
|
||||
*/
|
||||
public function setCalcium(?string $value): void
|
||||
{
|
||||
$this->calcium = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the chloride property value. The chloride property
|
||||
* @param string|null $value Value to set for the chloride property.
|
||||
*/
|
||||
public function setChloride(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the chloride property.
|
||||
*/
|
||||
public function setChloride(?string $value): void
|
||||
{
|
||||
$this->chloride = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the chromium property value. The chromium property
|
||||
* @param string|null $value Value to set for the chromium property.
|
||||
*/
|
||||
public function setChromium(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the chromium property.
|
||||
*/
|
||||
public function setChromium(?string $value): void
|
||||
{
|
||||
$this->chromium = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the copper property value. The copper property
|
||||
* @param string|null $value Value to set for the copper property.
|
||||
*/
|
||||
public function setCopper(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the copper property.
|
||||
*/
|
||||
public function setCopper(?string $value): void
|
||||
{
|
||||
$this->copper = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the iodine property value. The iodine property
|
||||
* @param string|null $value Value to set for the iodine property.
|
||||
*/
|
||||
public function setIodine(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the iodine property.
|
||||
*/
|
||||
public function setIodine(?string $value): void
|
||||
{
|
||||
$this->iodine = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the iron property value. The iron property
|
||||
* @param string|null $value Value to set for the iron property.
|
||||
*/
|
||||
public function setIron(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the iron property.
|
||||
*/
|
||||
public function setIron(?string $value): void
|
||||
{
|
||||
$this->iron = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the magnesium property value. The magnesium property
|
||||
* @param string|null $value Value to set for the magnesium property.
|
||||
*/
|
||||
public function setMagnesium(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the magnesium property.
|
||||
*/
|
||||
public function setMagnesium(?string $value): void
|
||||
{
|
||||
$this->magnesium = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the manganese property value. The manganese property
|
||||
* @param string|null $value Value to set for the manganese property.
|
||||
*/
|
||||
public function setManganese(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the manganese property.
|
||||
*/
|
||||
public function setManganese(?string $value): void
|
||||
{
|
||||
$this->manganese = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the molybdenum property value. The molybdenum property
|
||||
* @param string|null $value Value to set for the molybdenum property.
|
||||
*/
|
||||
public function setMolybdenum(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the molybdenum property.
|
||||
*/
|
||||
public function setMolybdenum(?string $value): void
|
||||
{
|
||||
$this->molybdenum = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the nitrates property value. The nitrates property
|
||||
* @param string|null $value Value to set for the nitrates property.
|
||||
*/
|
||||
public function setNitrates(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the nitrates property.
|
||||
*/
|
||||
public function setNitrates(?string $value): void
|
||||
{
|
||||
$this->nitrates = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the phosphorus property value. The phosphorus property
|
||||
* @param string|null $value Value to set for the phosphorus property.
|
||||
*/
|
||||
public function setPhosphorus(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the phosphorus property.
|
||||
*/
|
||||
public function setPhosphorus(?string $value): void
|
||||
{
|
||||
$this->phosphorus = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the potassium property value. The potassium property
|
||||
* @param string|null $value Value to set for the potassium property.
|
||||
*/
|
||||
public function setPotassium(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the potassium property.
|
||||
*/
|
||||
public function setPotassium(?string $value): void
|
||||
{
|
||||
$this->potassium = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the selenium property value. The selenium property
|
||||
* @param string|null $value Value to set for the selenium property.
|
||||
*/
|
||||
public function setSelenium(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the selenium property.
|
||||
*/
|
||||
public function setSelenium(?string $value): void
|
||||
{
|
||||
$this->selenium = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the sulfur property value. The sulfur property
|
||||
* @param string|null $value Value to set for the sulfur property.
|
||||
*/
|
||||
public function setSulfur(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the sulfur property.
|
||||
*/
|
||||
public function setSulfur(?string $value): void
|
||||
{
|
||||
$this->sulfur = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the zinc property value. The zinc property
|
||||
* @param string|null $value Value to set for the zinc property.
|
||||
*/
|
||||
public function setZinc(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the zinc property.
|
||||
*/
|
||||
public function setZinc(?string $value): void
|
||||
{
|
||||
$this->zinc = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
278
client/Models/IncoCompoNutriScore.php
Executable file → Normal file
278
client/Models/IncoCompoNutriScore.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,193 +11,202 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Détail des composantes et classement Nutri-Score.
|
||||
*/
|
||||
class IncoCompoNutriScore implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompoNutriScore implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $grade The grade property
|
||||
*/
|
||||
* @var string|null The grade property
|
||||
*/
|
||||
private ?string $grade = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $grade2022 The grade2022 property
|
||||
*/
|
||||
* @var string|null The grade2022 property
|
||||
*/
|
||||
private ?string $grade2022 = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $isGradeAArticle The isGradeAArticle property
|
||||
*/
|
||||
* @var string|null The isGradeAArticle property
|
||||
*/
|
||||
private ?string $isGradeAArticle = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $isRedMeat The isRedMeat property
|
||||
*/
|
||||
* @var string|null The isRedMeat property
|
||||
*/
|
||||
private ?string $isRedMeat = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $negativeComponent The negativeComponent property
|
||||
*/
|
||||
* @var string|null The negativeComponent property
|
||||
*/
|
||||
private ?string $negativeComponent = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $negativeComponent2022 The negativeComponent2022 property
|
||||
*/
|
||||
* @var string|null The negativeComponent2022 property
|
||||
*/
|
||||
private ?string $negativeComponent2022 = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $positiveComponent The positiveComponent property
|
||||
*/
|
||||
* @var string|null The positiveComponent property
|
||||
*/
|
||||
private ?string $positiveComponent = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $positiveComponent2022 The positiveComponent2022 property
|
||||
*/
|
||||
* @var string|null The positiveComponent2022 property
|
||||
*/
|
||||
private ?string $positiveComponent2022 = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $score The score property
|
||||
*/
|
||||
* @var string|null The score property
|
||||
*/
|
||||
private ?string $score = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $score2022 The score2022 property
|
||||
*/
|
||||
* @var string|null The score2022 property
|
||||
*/
|
||||
private ?string $score2022 = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompoNutriScore and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompoNutriScore
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoNutriScore {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoNutriScore
|
||||
{
|
||||
return new IncoCompoNutriScore();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'grade' => fn(ParseNode $n) => $o->setGrade($n->getStringValue()),
|
||||
'grade2022' => fn(ParseNode $n) => $o->setGrade2022($n->getStringValue()),
|
||||
'isGradeAArticle' => fn(ParseNode $n) => $o->setIsGradeAArticle($n->getStringValue()),
|
||||
'isRedMeat' => fn(ParseNode $n) => $o->setIsRedMeat($n->getStringValue()),
|
||||
'negativeComponent' => fn(ParseNode $n) => $o->setNegativeComponent($n->getStringValue()),
|
||||
'negativeComponent2022' => fn(ParseNode $n) => $o->setNegativeComponent2022($n->getStringValue()),
|
||||
'positiveComponent' => fn(ParseNode $n) => $o->setPositiveComponent($n->getStringValue()),
|
||||
'positiveComponent2022' => fn(ParseNode $n) => $o->setPositiveComponent2022($n->getStringValue()),
|
||||
'score' => fn(ParseNode $n) => $o->setScore($n->getStringValue()),
|
||||
'score2022' => fn(ParseNode $n) => $o->setScore2022($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'grade' => fn (ParseNode $n) => $o->setGrade($n->getStringValue()),
|
||||
'grade2022' => fn (ParseNode $n) => $o->setGrade2022($n->getStringValue()),
|
||||
'isGradeAArticle' => fn (ParseNode $n) => $o->setIsGradeAArticle($n->getStringValue()),
|
||||
'isRedMeat' => fn (ParseNode $n) => $o->setIsRedMeat($n->getStringValue()),
|
||||
'negativeComponent' => fn (ParseNode $n) => $o->setNegativeComponent($n->getStringValue()),
|
||||
'negativeComponent2022' => fn (ParseNode $n) => $o->setNegativeComponent2022($n->getStringValue()),
|
||||
'positiveComponent' => fn (ParseNode $n) => $o->setPositiveComponent($n->getStringValue()),
|
||||
'positiveComponent2022' => fn (ParseNode $n) => $o->setPositiveComponent2022($n->getStringValue()),
|
||||
'score' => fn (ParseNode $n) => $o->setScore($n->getStringValue()),
|
||||
'score2022' => fn (ParseNode $n) => $o->setScore2022($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the grade property value. The grade property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getGrade(): ?string {
|
||||
*/
|
||||
public function getGrade(): ?string
|
||||
{
|
||||
return $this->grade;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the grade2022 property value. The grade2022 property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getGrade2022(): ?string {
|
||||
*/
|
||||
public function getGrade2022(): ?string
|
||||
{
|
||||
return $this->grade2022;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the isGradeAArticle property value. The isGradeAArticle property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getIsGradeAArticle(): ?string {
|
||||
*/
|
||||
public function getIsGradeAArticle(): ?string
|
||||
{
|
||||
return $this->isGradeAArticle;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the isRedMeat property value. The isRedMeat property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getIsRedMeat(): ?string {
|
||||
*/
|
||||
public function getIsRedMeat(): ?string
|
||||
{
|
||||
return $this->isRedMeat;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the negativeComponent property value. The negativeComponent property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getNegativeComponent(): ?string {
|
||||
*/
|
||||
public function getNegativeComponent(): ?string
|
||||
{
|
||||
return $this->negativeComponent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the negativeComponent2022 property value. The negativeComponent2022 property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getNegativeComponent2022(): ?string {
|
||||
*/
|
||||
public function getNegativeComponent2022(): ?string
|
||||
{
|
||||
return $this->negativeComponent2022;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the positiveComponent property value. The positiveComponent property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getPositiveComponent(): ?string {
|
||||
*/
|
||||
public function getPositiveComponent(): ?string
|
||||
{
|
||||
return $this->positiveComponent;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the positiveComponent2022 property value. The positiveComponent2022 property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getPositiveComponent2022(): ?string {
|
||||
*/
|
||||
public function getPositiveComponent2022(): ?string
|
||||
{
|
||||
return $this->positiveComponent2022;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the score property value. The score property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getScore(): ?string {
|
||||
*/
|
||||
public function getScore(): ?string
|
||||
{
|
||||
return $this->score;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the score2022 property value. The score2022 property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getScore2022(): ?string {
|
||||
*/
|
||||
public function getScore2022(): ?string
|
||||
{
|
||||
return $this->score2022;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('grade', $this->getGrade());
|
||||
$writer->writeStringValue('grade2022', $this->getGrade2022());
|
||||
$writer->writeStringValue('isGradeAArticle', $this->getIsGradeAArticle());
|
||||
|
|
@ -211,90 +222,111 @@ class IncoCompoNutriScore implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the grade property value. The grade property
|
||||
* @param string|null $value Value to set for the grade property.
|
||||
*/
|
||||
public function setGrade(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the grade property.
|
||||
*/
|
||||
public function setGrade(?string $value): void
|
||||
{
|
||||
$this->grade = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the grade2022 property value. The grade2022 property
|
||||
* @param string|null $value Value to set for the grade2022 property.
|
||||
*/
|
||||
public function setGrade2022(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the grade2022 property.
|
||||
*/
|
||||
public function setGrade2022(?string $value): void
|
||||
{
|
||||
$this->grade2022 = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the isGradeAArticle property value. The isGradeAArticle property
|
||||
* @param string|null $value Value to set for the isGradeAArticle property.
|
||||
*/
|
||||
public function setIsGradeAArticle(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the isGradeAArticle property.
|
||||
*/
|
||||
public function setIsGradeAArticle(?string $value): void
|
||||
{
|
||||
$this->isGradeAArticle = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the isRedMeat property value. The isRedMeat property
|
||||
* @param string|null $value Value to set for the isRedMeat property.
|
||||
*/
|
||||
public function setIsRedMeat(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the isRedMeat property.
|
||||
*/
|
||||
public function setIsRedMeat(?string $value): void
|
||||
{
|
||||
$this->isRedMeat = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the negativeComponent property value. The negativeComponent property
|
||||
* @param string|null $value Value to set for the negativeComponent property.
|
||||
*/
|
||||
public function setNegativeComponent(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the negativeComponent property.
|
||||
*/
|
||||
public function setNegativeComponent(?string $value): void
|
||||
{
|
||||
$this->negativeComponent = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the negativeComponent2022 property value. The negativeComponent2022 property
|
||||
* @param string|null $value Value to set for the negativeComponent2022 property.
|
||||
*/
|
||||
public function setNegativeComponent2022(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the negativeComponent2022 property.
|
||||
*/
|
||||
public function setNegativeComponent2022(?string $value): void
|
||||
{
|
||||
$this->negativeComponent2022 = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the positiveComponent property value. The positiveComponent property
|
||||
* @param string|null $value Value to set for the positiveComponent property.
|
||||
*/
|
||||
public function setPositiveComponent(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the positiveComponent property.
|
||||
*/
|
||||
public function setPositiveComponent(?string $value): void
|
||||
{
|
||||
$this->positiveComponent = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the positiveComponent2022 property value. The positiveComponent2022 property
|
||||
* @param string|null $value Value to set for the positiveComponent2022 property.
|
||||
*/
|
||||
public function setPositiveComponent2022(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the positiveComponent2022 property.
|
||||
*/
|
||||
public function setPositiveComponent2022(?string $value): void
|
||||
{
|
||||
$this->positiveComponent2022 = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the score property value. The score property
|
||||
* @param string|null $value Value to set for the score property.
|
||||
*/
|
||||
public function setScore(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the score property.
|
||||
*/
|
||||
public function setScore(?string $value): void
|
||||
{
|
||||
$this->score = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the score2022 property value. The score2022 property
|
||||
* @param string|null $value Value to set for the score2022 property.
|
||||
*/
|
||||
public function setScore2022(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the score2022 property.
|
||||
*/
|
||||
public function setScore2022(?string $value): void
|
||||
{
|
||||
$this->score2022 = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
212
client/Models/IncoCompoNutriScorePoints.php
Executable file → Normal file
212
client/Models/IncoCompoNutriScorePoints.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,151 +11,160 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Points élémentaires du calcul Nutri-Score.
|
||||
*/
|
||||
class IncoCompoNutriScorePoints implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompoNutriScorePoints implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $energyPoints The energyPoints property
|
||||
*/
|
||||
* @var string|null The energyPoints property
|
||||
*/
|
||||
private ?string $energyPoints = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $fiberPoints The fiberPoints property
|
||||
*/
|
||||
* @var string|null The fiberPoints property
|
||||
*/
|
||||
private ?string $fiberPoints = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $freshFnlPoints The freshFnlPoints property
|
||||
*/
|
||||
* @var string|null The freshFnlPoints property
|
||||
*/
|
||||
private ?string $freshFnlPoints = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $proteinPoints The proteinPoints property
|
||||
*/
|
||||
* @var string|null The proteinPoints property
|
||||
*/
|
||||
private ?string $proteinPoints = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $saltPoints The saltPoints property
|
||||
*/
|
||||
* @var string|null The saltPoints property
|
||||
*/
|
||||
private ?string $saltPoints = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $saturatedFatPoints The saturatedFatPoints property
|
||||
*/
|
||||
* @var string|null The saturatedFatPoints property
|
||||
*/
|
||||
private ?string $saturatedFatPoints = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $sugarsPoints The sugarsPoints property
|
||||
*/
|
||||
* @var string|null The sugarsPoints property
|
||||
*/
|
||||
private ?string $sugarsPoints = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompoNutriScorePoints and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompoNutriScorePoints
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoNutriScorePoints {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoNutriScorePoints
|
||||
{
|
||||
return new IncoCompoNutriScorePoints();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the energyPoints property value. The energyPoints property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getEnergyPoints(): ?string {
|
||||
*/
|
||||
public function getEnergyPoints(): ?string
|
||||
{
|
||||
return $this->energyPoints;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the fiberPoints property value. The fiberPoints property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFiberPoints(): ?string {
|
||||
*/
|
||||
public function getFiberPoints(): ?string
|
||||
{
|
||||
return $this->fiberPoints;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'energyPoints' => fn(ParseNode $n) => $o->setEnergyPoints($n->getStringValue()),
|
||||
'fiberPoints' => fn(ParseNode $n) => $o->setFiberPoints($n->getStringValue()),
|
||||
'freshFnlPoints' => fn(ParseNode $n) => $o->setFreshFnlPoints($n->getStringValue()),
|
||||
'proteinPoints' => fn(ParseNode $n) => $o->setProteinPoints($n->getStringValue()),
|
||||
'saltPoints' => fn(ParseNode $n) => $o->setSaltPoints($n->getStringValue()),
|
||||
'saturatedFatPoints' => fn(ParseNode $n) => $o->setSaturatedFatPoints($n->getStringValue()),
|
||||
'sugarsPoints' => fn(ParseNode $n) => $o->setSugarsPoints($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'energyPoints' => fn (ParseNode $n) => $o->setEnergyPoints($n->getStringValue()),
|
||||
'fiberPoints' => fn (ParseNode $n) => $o->setFiberPoints($n->getStringValue()),
|
||||
'freshFnlPoints' => fn (ParseNode $n) => $o->setFreshFnlPoints($n->getStringValue()),
|
||||
'proteinPoints' => fn (ParseNode $n) => $o->setProteinPoints($n->getStringValue()),
|
||||
'saltPoints' => fn (ParseNode $n) => $o->setSaltPoints($n->getStringValue()),
|
||||
'saturatedFatPoints' => fn (ParseNode $n) => $o->setSaturatedFatPoints($n->getStringValue()),
|
||||
'sugarsPoints' => fn (ParseNode $n) => $o->setSugarsPoints($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the freshFnlPoints property value. The freshFnlPoints property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFreshFnlPoints(): ?string {
|
||||
*/
|
||||
public function getFreshFnlPoints(): ?string
|
||||
{
|
||||
return $this->freshFnlPoints;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the proteinPoints property value. The proteinPoints property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getProteinPoints(): ?string {
|
||||
*/
|
||||
public function getProteinPoints(): ?string
|
||||
{
|
||||
return $this->proteinPoints;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the saltPoints property value. The saltPoints property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSaltPoints(): ?string {
|
||||
*/
|
||||
public function getSaltPoints(): ?string
|
||||
{
|
||||
return $this->saltPoints;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the saturatedFatPoints property value. The saturatedFatPoints property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSaturatedFatPoints(): ?string {
|
||||
*/
|
||||
public function getSaturatedFatPoints(): ?string
|
||||
{
|
||||
return $this->saturatedFatPoints;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the sugarsPoints property value. The sugarsPoints property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSugarsPoints(): ?string {
|
||||
*/
|
||||
public function getSugarsPoints(): ?string
|
||||
{
|
||||
return $this->sugarsPoints;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('energyPoints', $this->getEnergyPoints());
|
||||
$writer->writeStringValue('fiberPoints', $this->getFiberPoints());
|
||||
$writer->writeStringValue('freshFnlPoints', $this->getFreshFnlPoints());
|
||||
|
|
@ -166,66 +177,81 @@ class IncoCompoNutriScorePoints implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the energyPoints property value. The energyPoints property
|
||||
* @param string|null $value Value to set for the energyPoints property.
|
||||
*/
|
||||
public function setEnergyPoints(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the energyPoints property.
|
||||
*/
|
||||
public function setEnergyPoints(?string $value): void
|
||||
{
|
||||
$this->energyPoints = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the fiberPoints property value. The fiberPoints property
|
||||
* @param string|null $value Value to set for the fiberPoints property.
|
||||
*/
|
||||
public function setFiberPoints(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the fiberPoints property.
|
||||
*/
|
||||
public function setFiberPoints(?string $value): void
|
||||
{
|
||||
$this->fiberPoints = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the freshFnlPoints property value. The freshFnlPoints property
|
||||
* @param string|null $value Value to set for the freshFnlPoints property.
|
||||
*/
|
||||
public function setFreshFnlPoints(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the freshFnlPoints property.
|
||||
*/
|
||||
public function setFreshFnlPoints(?string $value): void
|
||||
{
|
||||
$this->freshFnlPoints = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the proteinPoints property value. The proteinPoints property
|
||||
* @param string|null $value Value to set for the proteinPoints property.
|
||||
*/
|
||||
public function setProteinPoints(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the proteinPoints property.
|
||||
*/
|
||||
public function setProteinPoints(?string $value): void
|
||||
{
|
||||
$this->proteinPoints = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the saltPoints property value. The saltPoints property
|
||||
* @param string|null $value Value to set for the saltPoints property.
|
||||
*/
|
||||
public function setSaltPoints(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the saltPoints property.
|
||||
*/
|
||||
public function setSaltPoints(?string $value): void
|
||||
{
|
||||
$this->saltPoints = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the saturatedFatPoints property value. The saturatedFatPoints property
|
||||
* @param string|null $value Value to set for the saturatedFatPoints property.
|
||||
*/
|
||||
public function setSaturatedFatPoints(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the saturatedFatPoints property.
|
||||
*/
|
||||
public function setSaturatedFatPoints(?string $value): void
|
||||
{
|
||||
$this->saturatedFatPoints = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the sugarsPoints property value. The sugarsPoints property
|
||||
* @param string|null $value Value to set for the sugarsPoints property.
|
||||
*/
|
||||
public function setSugarsPoints(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the sugarsPoints property.
|
||||
*/
|
||||
public function setSugarsPoints(?string $value): void
|
||||
{
|
||||
$this->sugarsPoints = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
234
client/Models/IncoCompoPortionMacronutrients.php
Executable file → Normal file
234
client/Models/IncoCompoPortionMacronutrients.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,165 +11,174 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Macronutriments par portion.
|
||||
*/
|
||||
class IncoCompoPortionMacronutrients implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompoPortionMacronutrients implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $carbohydrates Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $carbohydrates = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $fat Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $fat = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $fiber Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $fiber = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $protein Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $protein = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $salt Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $salt = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $saturatedFat Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $saturatedFat = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $sodium The sodium property
|
||||
*/
|
||||
* @var string|null The sodium property
|
||||
*/
|
||||
private ?string $sodium = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $sugars Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $sugars = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompoPortionMacronutrients and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompoPortionMacronutrients
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoPortionMacronutrients {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoPortionMacronutrients
|
||||
{
|
||||
return new IncoCompoPortionMacronutrients();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the carbohydrates property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getCarbohydrates(): ?NutrientValue {
|
||||
*/
|
||||
public function getCarbohydrates(): ?NutrientValue
|
||||
{
|
||||
return $this->carbohydrates;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the fat property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getFat(): ?NutrientValue {
|
||||
*/
|
||||
public function getFat(): ?NutrientValue
|
||||
{
|
||||
return $this->fat;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the fiber property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getFiber(): ?NutrientValue {
|
||||
*/
|
||||
public function getFiber(): ?NutrientValue
|
||||
{
|
||||
return $this->fiber;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'carbohydrates' => fn(ParseNode $n) => $o->setCarbohydrates($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'fat' => fn(ParseNode $n) => $o->setFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'fiber' => fn(ParseNode $n) => $o->setFiber($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'protein' => fn(ParseNode $n) => $o->setProtein($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'salt' => fn(ParseNode $n) => $o->setSalt($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'saturatedFat' => fn(ParseNode $n) => $o->setSaturatedFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'sodium' => fn(ParseNode $n) => $o->setSodium($n->getStringValue()),
|
||||
'sugars' => fn(ParseNode $n) => $o->setSugars($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
|
||||
return [
|
||||
'carbohydrates' => fn (ParseNode $n) => $o->setCarbohydrates($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'fat' => fn (ParseNode $n) => $o->setFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'fiber' => fn (ParseNode $n) => $o->setFiber($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'protein' => fn (ParseNode $n) => $o->setProtein($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'salt' => fn (ParseNode $n) => $o->setSalt($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'saturatedFat' => fn (ParseNode $n) => $o->setSaturatedFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'sodium' => fn (ParseNode $n) => $o->setSodium($n->getStringValue()),
|
||||
'sugars' => fn (ParseNode $n) => $o->setSugars($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the protein property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getProtein(): ?NutrientValue {
|
||||
*/
|
||||
public function getProtein(): ?NutrientValue
|
||||
{
|
||||
return $this->protein;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the salt property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getSalt(): ?NutrientValue {
|
||||
*/
|
||||
public function getSalt(): ?NutrientValue
|
||||
{
|
||||
return $this->salt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the saturatedFat property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getSaturatedFat(): ?NutrientValue {
|
||||
*/
|
||||
public function getSaturatedFat(): ?NutrientValue
|
||||
{
|
||||
return $this->saturatedFat;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the sodium property value. The sodium property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSodium(): ?string {
|
||||
*/
|
||||
public function getSodium(): ?string
|
||||
{
|
||||
return $this->sodium;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the sugars property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getSugars(): ?NutrientValue {
|
||||
*/
|
||||
public function getSugars(): ?NutrientValue
|
||||
{
|
||||
return $this->sugars;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeObjectValue('carbohydrates', $this->getCarbohydrates());
|
||||
$writer->writeObjectValue('fat', $this->getFat());
|
||||
$writer->writeObjectValue('fiber', $this->getFiber());
|
||||
|
|
@ -181,74 +192,91 @@ class IncoCompoPortionMacronutrients implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the carbohydrates property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the carbohydrates property.
|
||||
*/
|
||||
public function setCarbohydrates(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the carbohydrates property.
|
||||
*/
|
||||
public function setCarbohydrates(?NutrientValue $value): void
|
||||
{
|
||||
$this->carbohydrates = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the fat property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the fat property.
|
||||
*/
|
||||
public function setFat(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the fat property.
|
||||
*/
|
||||
public function setFat(?NutrientValue $value): void
|
||||
{
|
||||
$this->fat = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the fiber property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the fiber property.
|
||||
*/
|
||||
public function setFiber(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the fiber property.
|
||||
*/
|
||||
public function setFiber(?NutrientValue $value): void
|
||||
{
|
||||
$this->fiber = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the protein property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the protein property.
|
||||
*/
|
||||
public function setProtein(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the protein property.
|
||||
*/
|
||||
public function setProtein(?NutrientValue $value): void
|
||||
{
|
||||
$this->protein = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the salt property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the salt property.
|
||||
*/
|
||||
public function setSalt(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the salt property.
|
||||
*/
|
||||
public function setSalt(?NutrientValue $value): void
|
||||
{
|
||||
$this->salt = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the saturatedFat property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the saturatedFat property.
|
||||
*/
|
||||
public function setSaturatedFat(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the saturatedFat property.
|
||||
*/
|
||||
public function setSaturatedFat(?NutrientValue $value): void
|
||||
{
|
||||
$this->saturatedFat = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the sodium property value. The sodium property
|
||||
* @param string|null $value Value to set for the sodium property.
|
||||
*/
|
||||
public function setSodium(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the sodium property.
|
||||
*/
|
||||
public function setSodium(?string $value): void
|
||||
{
|
||||
$this->sodium = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the sugars property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the sugars property.
|
||||
*/
|
||||
public function setSugars(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the sugars property.
|
||||
*/
|
||||
public function setSugars(?NutrientValue $value): void
|
||||
{
|
||||
$this->sugars = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
278
client/Models/IncoCompoReferenceIntakes.php
Executable file → Normal file
278
client/Models/IncoCompoReferenceIntakes.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,193 +11,202 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Pourcentages des apports de référence (AR / ARIC).
|
||||
*/
|
||||
class IncoCompoReferenceIntakes implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompoReferenceIntakes implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PercentageValue|null $carbohydrates Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
* @var PercentageValue|null Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
private ?PercentageValue $carbohydrates = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PercentageValue|null $energyE14 Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
* @var PercentageValue|null Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
private ?PercentageValue $energyE14 = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PercentageValue|null $energyKj Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
* @var PercentageValue|null Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
private ?PercentageValue $energyKj = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PercentageValue|null $fat Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
* @var PercentageValue|null Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
private ?PercentageValue $fat = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $portionAmount The portionAmount property
|
||||
*/
|
||||
* @var string|null The portionAmount property
|
||||
*/
|
||||
private ?string $portionAmount = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PercentageValue|null $protein Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
* @var PercentageValue|null Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
private ?PercentageValue $protein = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $proteinToLipidRatio The proteinToLipidRatio property
|
||||
*/
|
||||
* @var string|null The proteinToLipidRatio property
|
||||
*/
|
||||
private ?string $proteinToLipidRatio = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PercentageValue|null $salt Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
* @var PercentageValue|null Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
private ?PercentageValue $salt = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PercentageValue|null $saturatedFat Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
* @var PercentageValue|null Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
private ?PercentageValue $saturatedFat = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PercentageValue|null $sugars Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
* @var PercentageValue|null Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
private ?PercentageValue $sugars = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompoReferenceIntakes and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompoReferenceIntakes
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoReferenceIntakes {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoReferenceIntakes
|
||||
{
|
||||
return new IncoCompoReferenceIntakes();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the carbohydrates property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @return PercentageValue|null
|
||||
*/
|
||||
public function getCarbohydrates(): ?PercentageValue {
|
||||
*/
|
||||
public function getCarbohydrates(): ?PercentageValue
|
||||
{
|
||||
return $this->carbohydrates;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the energyE14 property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @return PercentageValue|null
|
||||
*/
|
||||
public function getEnergyE14(): ?PercentageValue {
|
||||
*/
|
||||
public function getEnergyE14(): ?PercentageValue
|
||||
{
|
||||
return $this->energyE14;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the energyKj property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @return PercentageValue|null
|
||||
*/
|
||||
public function getEnergyKj(): ?PercentageValue {
|
||||
*/
|
||||
public function getEnergyKj(): ?PercentageValue
|
||||
{
|
||||
return $this->energyKj;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the fat property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @return PercentageValue|null
|
||||
*/
|
||||
public function getFat(): ?PercentageValue {
|
||||
*/
|
||||
public function getFat(): ?PercentageValue
|
||||
{
|
||||
return $this->fat;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'carbohydrates' => fn(ParseNode $n) => $o->setCarbohydrates($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'energyE14' => fn(ParseNode $n) => $o->setEnergyE14($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'energyKj' => fn(ParseNode $n) => $o->setEnergyKj($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'fat' => fn(ParseNode $n) => $o->setFat($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'portionAmount' => fn(ParseNode $n) => $o->setPortionAmount($n->getStringValue()),
|
||||
'protein' => fn(ParseNode $n) => $o->setProtein($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'proteinToLipidRatio' => fn(ParseNode $n) => $o->setProteinToLipidRatio($n->getStringValue()),
|
||||
'salt' => fn(ParseNode $n) => $o->setSalt($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'saturatedFat' => fn(ParseNode $n) => $o->setSaturatedFat($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'sugars' => fn(ParseNode $n) => $o->setSugars($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
|
||||
return [
|
||||
'carbohydrates' => fn (ParseNode $n) => $o->setCarbohydrates($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'energyE14' => fn (ParseNode $n) => $o->setEnergyE14($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'energyKj' => fn (ParseNode $n) => $o->setEnergyKj($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'fat' => fn (ParseNode $n) => $o->setFat($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'portionAmount' => fn (ParseNode $n) => $o->setPortionAmount($n->getStringValue()),
|
||||
'protein' => fn (ParseNode $n) => $o->setProtein($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'proteinToLipidRatio' => fn (ParseNode $n) => $o->setProteinToLipidRatio($n->getStringValue()),
|
||||
'salt' => fn (ParseNode $n) => $o->setSalt($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'saturatedFat' => fn (ParseNode $n) => $o->setSaturatedFat($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
'sugars' => fn (ParseNode $n) => $o->setSugars($n->getObjectValue([PercentageValue::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the portionAmount property value. The portionAmount property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getPortionAmount(): ?string {
|
||||
*/
|
||||
public function getPortionAmount(): ?string
|
||||
{
|
||||
return $this->portionAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the protein property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @return PercentageValue|null
|
||||
*/
|
||||
public function getProtein(): ?PercentageValue {
|
||||
*/
|
||||
public function getProtein(): ?PercentageValue
|
||||
{
|
||||
return $this->protein;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the proteinToLipidRatio property value. The proteinToLipidRatio property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getProteinToLipidRatio(): ?string {
|
||||
*/
|
||||
public function getProteinToLipidRatio(): ?string
|
||||
{
|
||||
return $this->proteinToLipidRatio;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the salt property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @return PercentageValue|null
|
||||
*/
|
||||
public function getSalt(): ?PercentageValue {
|
||||
*/
|
||||
public function getSalt(): ?PercentageValue
|
||||
{
|
||||
return $this->salt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the saturatedFat property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @return PercentageValue|null
|
||||
*/
|
||||
public function getSaturatedFat(): ?PercentageValue {
|
||||
*/
|
||||
public function getSaturatedFat(): ?PercentageValue
|
||||
{
|
||||
return $this->saturatedFat;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the sugars property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @return PercentageValue|null
|
||||
*/
|
||||
public function getSugars(): ?PercentageValue {
|
||||
*/
|
||||
public function getSugars(): ?PercentageValue
|
||||
{
|
||||
return $this->sugars;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeObjectValue('carbohydrates', $this->getCarbohydrates());
|
||||
$writer->writeObjectValue('energyE14', $this->getEnergyE14());
|
||||
$writer->writeObjectValue('energyKj', $this->getEnergyKj());
|
||||
|
|
@ -211,90 +222,111 @@ class IncoCompoReferenceIntakes implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the carbohydrates property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @param PercentageValue|null $value Value to set for the carbohydrates property.
|
||||
*/
|
||||
public function setCarbohydrates(?PercentageValue $value): void {
|
||||
*
|
||||
* @param PercentageValue|null $value Value to set for the carbohydrates property.
|
||||
*/
|
||||
public function setCarbohydrates(?PercentageValue $value): void
|
||||
{
|
||||
$this->carbohydrates = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the energyE14 property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @param PercentageValue|null $value Value to set for the energyE14 property.
|
||||
*/
|
||||
public function setEnergyE14(?PercentageValue $value): void {
|
||||
*
|
||||
* @param PercentageValue|null $value Value to set for the energyE14 property.
|
||||
*/
|
||||
public function setEnergyE14(?PercentageValue $value): void
|
||||
{
|
||||
$this->energyE14 = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the energyKj property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @param PercentageValue|null $value Value to set for the energyKj property.
|
||||
*/
|
||||
public function setEnergyKj(?PercentageValue $value): void {
|
||||
*
|
||||
* @param PercentageValue|null $value Value to set for the energyKj property.
|
||||
*/
|
||||
public function setEnergyKj(?PercentageValue $value): void
|
||||
{
|
||||
$this->energyKj = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the fat property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @param PercentageValue|null $value Value to set for the fat property.
|
||||
*/
|
||||
public function setFat(?PercentageValue $value): void {
|
||||
*
|
||||
* @param PercentageValue|null $value Value to set for the fat property.
|
||||
*/
|
||||
public function setFat(?PercentageValue $value): void
|
||||
{
|
||||
$this->fat = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the portionAmount property value. The portionAmount property
|
||||
* @param string|null $value Value to set for the portionAmount property.
|
||||
*/
|
||||
public function setPortionAmount(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the portionAmount property.
|
||||
*/
|
||||
public function setPortionAmount(?string $value): void
|
||||
{
|
||||
$this->portionAmount = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the protein property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @param PercentageValue|null $value Value to set for the protein property.
|
||||
*/
|
||||
public function setProtein(?PercentageValue $value): void {
|
||||
*
|
||||
* @param PercentageValue|null $value Value to set for the protein property.
|
||||
*/
|
||||
public function setProtein(?PercentageValue $value): void
|
||||
{
|
||||
$this->protein = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the proteinToLipidRatio property value. The proteinToLipidRatio property
|
||||
* @param string|null $value Value to set for the proteinToLipidRatio property.
|
||||
*/
|
||||
public function setProteinToLipidRatio(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the proteinToLipidRatio property.
|
||||
*/
|
||||
public function setProteinToLipidRatio(?string $value): void
|
||||
{
|
||||
$this->proteinToLipidRatio = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the salt property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @param PercentageValue|null $value Value to set for the salt property.
|
||||
*/
|
||||
public function setSalt(?PercentageValue $value): void {
|
||||
*
|
||||
* @param PercentageValue|null $value Value to set for the salt property.
|
||||
*/
|
||||
public function setSalt(?PercentageValue $value): void
|
||||
{
|
||||
$this->salt = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the saturatedFat property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @param PercentageValue|null $value Value to set for the saturatedFat property.
|
||||
*/
|
||||
public function setSaturatedFat(?PercentageValue $value): void {
|
||||
*
|
||||
* @param PercentageValue|null $value Value to set for the saturatedFat property.
|
||||
*/
|
||||
public function setSaturatedFat(?PercentageValue $value): void
|
||||
{
|
||||
$this->saturatedFat = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the sugars property value. Valeur sous forme de pourcentage (0-100%).
|
||||
* @param PercentageValue|null $value Value to set for the sugars property.
|
||||
*/
|
||||
public function setSugars(?PercentageValue $value): void {
|
||||
*
|
||||
* @param PercentageValue|null $value Value to set for the sugars property.
|
||||
*/
|
||||
public function setSugars(?PercentageValue $value): void
|
||||
{
|
||||
$this->sugars = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
234
client/Models/IncoCompoReferenceMacronutrients.php
Executable file → Normal file
234
client/Models/IncoCompoReferenceMacronutrients.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,165 +11,174 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Macronutriments de référence pour 100g/ml.
|
||||
*/
|
||||
class IncoCompoReferenceMacronutrients implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompoReferenceMacronutrients implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $carbohydrates Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $carbohydrates = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $fat Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $fat = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $fiber Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $fiber = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $protein Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $protein = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $salt Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $salt = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $saturatedFat Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $saturatedFat = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $sodium The sodium property
|
||||
*/
|
||||
* @var string|null The sodium property
|
||||
*/
|
||||
private ?string $sodium = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var NutrientValue|null $sugars Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
* @var NutrientValue|null Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
private ?NutrientValue $sugars = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompoReferenceMacronutrients and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompoReferenceMacronutrients
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoReferenceMacronutrients {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoReferenceMacronutrients
|
||||
{
|
||||
return new IncoCompoReferenceMacronutrients();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the carbohydrates property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getCarbohydrates(): ?NutrientValue {
|
||||
*/
|
||||
public function getCarbohydrates(): ?NutrientValue
|
||||
{
|
||||
return $this->carbohydrates;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the fat property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getFat(): ?NutrientValue {
|
||||
*/
|
||||
public function getFat(): ?NutrientValue
|
||||
{
|
||||
return $this->fat;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the fiber property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getFiber(): ?NutrientValue {
|
||||
*/
|
||||
public function getFiber(): ?NutrientValue
|
||||
{
|
||||
return $this->fiber;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'carbohydrates' => fn(ParseNode $n) => $o->setCarbohydrates($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'fat' => fn(ParseNode $n) => $o->setFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'fiber' => fn(ParseNode $n) => $o->setFiber($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'protein' => fn(ParseNode $n) => $o->setProtein($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'salt' => fn(ParseNode $n) => $o->setSalt($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'saturatedFat' => fn(ParseNode $n) => $o->setSaturatedFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'sodium' => fn(ParseNode $n) => $o->setSodium($n->getStringValue()),
|
||||
'sugars' => fn(ParseNode $n) => $o->setSugars($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
|
||||
return [
|
||||
'carbohydrates' => fn (ParseNode $n) => $o->setCarbohydrates($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'fat' => fn (ParseNode $n) => $o->setFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'fiber' => fn (ParseNode $n) => $o->setFiber($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'protein' => fn (ParseNode $n) => $o->setProtein($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'salt' => fn (ParseNode $n) => $o->setSalt($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'saturatedFat' => fn (ParseNode $n) => $o->setSaturatedFat($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
'sodium' => fn (ParseNode $n) => $o->setSodium($n->getStringValue()),
|
||||
'sugars' => fn (ParseNode $n) => $o->setSugars($n->getObjectValue([NutrientValue::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the protein property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getProtein(): ?NutrientValue {
|
||||
*/
|
||||
public function getProtein(): ?NutrientValue
|
||||
{
|
||||
return $this->protein;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the salt property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getSalt(): ?NutrientValue {
|
||||
*/
|
||||
public function getSalt(): ?NutrientValue
|
||||
{
|
||||
return $this->salt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the saturatedFat property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getSaturatedFat(): ?NutrientValue {
|
||||
*/
|
||||
public function getSaturatedFat(): ?NutrientValue
|
||||
{
|
||||
return $this->saturatedFat;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the sodium property value. The sodium property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSodium(): ?string {
|
||||
*/
|
||||
public function getSodium(): ?string
|
||||
{
|
||||
return $this->sodium;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the sugars property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @return NutrientValue|null
|
||||
*/
|
||||
public function getSugars(): ?NutrientValue {
|
||||
*/
|
||||
public function getSugars(): ?NutrientValue
|
||||
{
|
||||
return $this->sugars;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeObjectValue('carbohydrates', $this->getCarbohydrates());
|
||||
$writer->writeObjectValue('fat', $this->getFat());
|
||||
$writer->writeObjectValue('fiber', $this->getFiber());
|
||||
|
|
@ -181,74 +192,91 @@ class IncoCompoReferenceMacronutrients implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the carbohydrates property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the carbohydrates property.
|
||||
*/
|
||||
public function setCarbohydrates(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the carbohydrates property.
|
||||
*/
|
||||
public function setCarbohydrates(?NutrientValue $value): void
|
||||
{
|
||||
$this->carbohydrates = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the fat property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the fat property.
|
||||
*/
|
||||
public function setFat(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the fat property.
|
||||
*/
|
||||
public function setFat(?NutrientValue $value): void
|
||||
{
|
||||
$this->fat = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the fiber property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the fiber property.
|
||||
*/
|
||||
public function setFiber(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the fiber property.
|
||||
*/
|
||||
public function setFiber(?NutrientValue $value): void
|
||||
{
|
||||
$this->fiber = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the protein property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the protein property.
|
||||
*/
|
||||
public function setProtein(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the protein property.
|
||||
*/
|
||||
public function setProtein(?NutrientValue $value): void
|
||||
{
|
||||
$this->protein = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the salt property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the salt property.
|
||||
*/
|
||||
public function setSalt(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the salt property.
|
||||
*/
|
||||
public function setSalt(?NutrientValue $value): void
|
||||
{
|
||||
$this->salt = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the saturatedFat property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the saturatedFat property.
|
||||
*/
|
||||
public function setSaturatedFat(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the saturatedFat property.
|
||||
*/
|
||||
public function setSaturatedFat(?NutrientValue $value): void
|
||||
{
|
||||
$this->saturatedFat = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the sodium property value. The sodium property
|
||||
* @param string|null $value Value to set for the sodium property.
|
||||
*/
|
||||
public function setSodium(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the sodium property.
|
||||
*/
|
||||
public function setSodium(?string $value): void
|
||||
{
|
||||
$this->sodium = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the sugars property value. Valeur d'un nutriment avec quantité et précision facultative.
|
||||
* @param NutrientValue|null $value Value to set for the sugars property.
|
||||
*/
|
||||
public function setSugars(?NutrientValue $value): void {
|
||||
*
|
||||
* @param NutrientValue|null $value Value to set for the sugars property.
|
||||
*/
|
||||
public function setSugars(?NutrientValue $value): void
|
||||
{
|
||||
$this->sugars = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
146
client/Models/IncoCompoSpecialCompounds.php
Executable file → Normal file
146
client/Models/IncoCompoSpecialCompounds.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,109 +11,118 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Composés spéciaux (Choline, Carnitine, Taurine, Nucléotides).
|
||||
*/
|
||||
class IncoCompoSpecialCompounds implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompoSpecialCompounds implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $carnitine Carnitine (mg/100g).
|
||||
*/
|
||||
* @var string|null Carnitine (mg/100g).
|
||||
*/
|
||||
private ?string $carnitine = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $choline Choline (mg/100g).
|
||||
*/
|
||||
* @var string|null Choline (mg/100g).
|
||||
*/
|
||||
private ?string $choline = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $nucleotides Nucléotides (mg/100g).
|
||||
*/
|
||||
* @var string|null Nucléotides (mg/100g).
|
||||
*/
|
||||
private ?string $nucleotides = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $taurine Taurine (mg/100g).
|
||||
*/
|
||||
* @var string|null Taurine (mg/100g).
|
||||
*/
|
||||
private ?string $taurine = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompoSpecialCompounds and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompoSpecialCompounds
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoSpecialCompounds {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoSpecialCompounds
|
||||
{
|
||||
return new IncoCompoSpecialCompounds();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the carnitine property value. Carnitine (mg/100g).
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCarnitine(): ?string {
|
||||
*/
|
||||
public function getCarnitine(): ?string
|
||||
{
|
||||
return $this->carnitine;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the choline property value. Choline (mg/100g).
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCholine(): ?string {
|
||||
*/
|
||||
public function getCholine(): ?string
|
||||
{
|
||||
return $this->choline;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'carnitine' => fn(ParseNode $n) => $o->setCarnitine($n->getStringValue()),
|
||||
'choline' => fn(ParseNode $n) => $o->setCholine($n->getStringValue()),
|
||||
'nucleotides' => fn(ParseNode $n) => $o->setNucleotides($n->getStringValue()),
|
||||
'taurine' => fn(ParseNode $n) => $o->setTaurine($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'carnitine' => fn (ParseNode $n) => $o->setCarnitine($n->getStringValue()),
|
||||
'choline' => fn (ParseNode $n) => $o->setCholine($n->getStringValue()),
|
||||
'nucleotides' => fn (ParseNode $n) => $o->setNucleotides($n->getStringValue()),
|
||||
'taurine' => fn (ParseNode $n) => $o->setTaurine($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the nucleotides property value. Nucléotides (mg/100g).
|
||||
* @return string|null
|
||||
*/
|
||||
public function getNucleotides(): ?string {
|
||||
*/
|
||||
public function getNucleotides(): ?string
|
||||
{
|
||||
return $this->nucleotides;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the taurine property value. Taurine (mg/100g).
|
||||
* @return string|null
|
||||
*/
|
||||
public function getTaurine(): ?string {
|
||||
*/
|
||||
public function getTaurine(): ?string
|
||||
{
|
||||
return $this->taurine;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('carnitine', $this->getCarnitine());
|
||||
$writer->writeStringValue('choline', $this->getCholine());
|
||||
$writer->writeStringValue('nucleotides', $this->getNucleotides());
|
||||
|
|
@ -121,42 +132,51 @@ class IncoCompoSpecialCompounds implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the carnitine property value. Carnitine (mg/100g).
|
||||
* @param string|null $value Value to set for the carnitine property.
|
||||
*/
|
||||
public function setCarnitine(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the carnitine property.
|
||||
*/
|
||||
public function setCarnitine(?string $value): void
|
||||
{
|
||||
$this->carnitine = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the choline property value. Choline (mg/100g).
|
||||
* @param string|null $value Value to set for the choline property.
|
||||
*/
|
||||
public function setCholine(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the choline property.
|
||||
*/
|
||||
public function setCholine(?string $value): void
|
||||
{
|
||||
$this->choline = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the nucleotides property value. Nucléotides (mg/100g).
|
||||
* @param string|null $value Value to set for the nucleotides property.
|
||||
*/
|
||||
public function setNucleotides(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the nucleotides property.
|
||||
*/
|
||||
public function setNucleotides(?string $value): void
|
||||
{
|
||||
$this->nucleotides = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the taurine property value. Taurine (mg/100g).
|
||||
* @param string|null $value Value to set for the taurine property.
|
||||
*/
|
||||
public function setTaurine(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the taurine property.
|
||||
*/
|
||||
public function setTaurine(?string $value): void
|
||||
{
|
||||
$this->taurine = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
256
client/Models/IncoCompoVitamins.php
Executable file → Normal file
256
client/Models/IncoCompoVitamins.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,179 +11,188 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Teneur détaillée en vitamines.
|
||||
*/
|
||||
class IncoCompoVitamins implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompoVitamins implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $cholecalciferol The cholecalciferol property
|
||||
*/
|
||||
* @var string|null The cholecalciferol property
|
||||
*/
|
||||
private ?string $cholecalciferol = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $niacin The niacin property
|
||||
*/
|
||||
* @var string|null The niacin property
|
||||
*/
|
||||
private ?string $niacin = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $vitaminA The vitaminA property
|
||||
*/
|
||||
* @var string|null The vitaminA property
|
||||
*/
|
||||
private ?string $vitaminA = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $vitaminB12 The vitaminB12 property
|
||||
*/
|
||||
* @var string|null The vitaminB12 property
|
||||
*/
|
||||
private ?string $vitaminB12 = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $vitaminB6 The vitaminB6 property
|
||||
*/
|
||||
* @var string|null The vitaminB6 property
|
||||
*/
|
||||
private ?string $vitaminB6 = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $vitaminC The vitaminC property
|
||||
*/
|
||||
* @var string|null The vitaminC property
|
||||
*/
|
||||
private ?string $vitaminC = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $vitaminD The vitaminD property
|
||||
*/
|
||||
* @var string|null The vitaminD property
|
||||
*/
|
||||
private ?string $vitaminD = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $vitaminE The vitaminE property
|
||||
*/
|
||||
* @var string|null The vitaminE property
|
||||
*/
|
||||
private ?string $vitaminE = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $vitaminK The vitaminK property
|
||||
*/
|
||||
* @var string|null The vitaminK property
|
||||
*/
|
||||
private ?string $vitaminK = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompoVitamins and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompoVitamins
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoVitamins {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompoVitamins
|
||||
{
|
||||
return new IncoCompoVitamins();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the cholecalciferol property value. The cholecalciferol property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getCholecalciferol(): ?string {
|
||||
*/
|
||||
public function getCholecalciferol(): ?string
|
||||
{
|
||||
return $this->cholecalciferol;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'cholecalciferol' => fn(ParseNode $n) => $o->setCholecalciferol($n->getStringValue()),
|
||||
'niacin' => fn(ParseNode $n) => $o->setNiacin($n->getStringValue()),
|
||||
'vitaminA' => fn(ParseNode $n) => $o->setVitaminA($n->getStringValue()),
|
||||
'vitaminB12' => fn(ParseNode $n) => $o->setVitaminB12($n->getStringValue()),
|
||||
'vitaminB6' => fn(ParseNode $n) => $o->setVitaminB6($n->getStringValue()),
|
||||
'vitaminC' => fn(ParseNode $n) => $o->setVitaminC($n->getStringValue()),
|
||||
'vitaminD' => fn(ParseNode $n) => $o->setVitaminD($n->getStringValue()),
|
||||
'vitaminE' => fn(ParseNode $n) => $o->setVitaminE($n->getStringValue()),
|
||||
'vitaminK' => fn(ParseNode $n) => $o->setVitaminK($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'cholecalciferol' => fn (ParseNode $n) => $o->setCholecalciferol($n->getStringValue()),
|
||||
'niacin' => fn (ParseNode $n) => $o->setNiacin($n->getStringValue()),
|
||||
'vitaminA' => fn (ParseNode $n) => $o->setVitaminA($n->getStringValue()),
|
||||
'vitaminB12' => fn (ParseNode $n) => $o->setVitaminB12($n->getStringValue()),
|
||||
'vitaminB6' => fn (ParseNode $n) => $o->setVitaminB6($n->getStringValue()),
|
||||
'vitaminC' => fn (ParseNode $n) => $o->setVitaminC($n->getStringValue()),
|
||||
'vitaminD' => fn (ParseNode $n) => $o->setVitaminD($n->getStringValue()),
|
||||
'vitaminE' => fn (ParseNode $n) => $o->setVitaminE($n->getStringValue()),
|
||||
'vitaminK' => fn (ParseNode $n) => $o->setVitaminK($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the niacin property value. The niacin property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getNiacin(): ?string {
|
||||
*/
|
||||
public function getNiacin(): ?string
|
||||
{
|
||||
return $this->niacin;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the vitaminA property value. The vitaminA property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getVitaminA(): ?string {
|
||||
*/
|
||||
public function getVitaminA(): ?string
|
||||
{
|
||||
return $this->vitaminA;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the vitaminB12 property value. The vitaminB12 property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getVitaminB12(): ?string {
|
||||
*/
|
||||
public function getVitaminB12(): ?string
|
||||
{
|
||||
return $this->vitaminB12;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the vitaminB6 property value. The vitaminB6 property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getVitaminB6(): ?string {
|
||||
*/
|
||||
public function getVitaminB6(): ?string
|
||||
{
|
||||
return $this->vitaminB6;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the vitaminC property value. The vitaminC property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getVitaminC(): ?string {
|
||||
*/
|
||||
public function getVitaminC(): ?string
|
||||
{
|
||||
return $this->vitaminC;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the vitaminD property value. The vitaminD property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getVitaminD(): ?string {
|
||||
*/
|
||||
public function getVitaminD(): ?string
|
||||
{
|
||||
return $this->vitaminD;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the vitaminE property value. The vitaminE property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getVitaminE(): ?string {
|
||||
*/
|
||||
public function getVitaminE(): ?string
|
||||
{
|
||||
return $this->vitaminE;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the vitaminK property value. The vitaminK property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getVitaminK(): ?string {
|
||||
*/
|
||||
public function getVitaminK(): ?string
|
||||
{
|
||||
return $this->vitaminK;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('cholecalciferol', $this->getCholecalciferol());
|
||||
$writer->writeStringValue('niacin', $this->getNiacin());
|
||||
$writer->writeStringValue('vitaminA', $this->getVitaminA());
|
||||
|
|
@ -196,82 +207,101 @@ class IncoCompoVitamins implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the cholecalciferol property value. The cholecalciferol property
|
||||
* @param string|null $value Value to set for the cholecalciferol property.
|
||||
*/
|
||||
public function setCholecalciferol(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the cholecalciferol property.
|
||||
*/
|
||||
public function setCholecalciferol(?string $value): void
|
||||
{
|
||||
$this->cholecalciferol = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the niacin property value. The niacin property
|
||||
* @param string|null $value Value to set for the niacin property.
|
||||
*/
|
||||
public function setNiacin(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the niacin property.
|
||||
*/
|
||||
public function setNiacin(?string $value): void
|
||||
{
|
||||
$this->niacin = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the vitaminA property value. The vitaminA property
|
||||
* @param string|null $value Value to set for the vitaminA property.
|
||||
*/
|
||||
public function setVitaminA(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the vitaminA property.
|
||||
*/
|
||||
public function setVitaminA(?string $value): void
|
||||
{
|
||||
$this->vitaminA = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the vitaminB12 property value. The vitaminB12 property
|
||||
* @param string|null $value Value to set for the vitaminB12 property.
|
||||
*/
|
||||
public function setVitaminB12(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the vitaminB12 property.
|
||||
*/
|
||||
public function setVitaminB12(?string $value): void
|
||||
{
|
||||
$this->vitaminB12 = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the vitaminB6 property value. The vitaminB6 property
|
||||
* @param string|null $value Value to set for the vitaminB6 property.
|
||||
*/
|
||||
public function setVitaminB6(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the vitaminB6 property.
|
||||
*/
|
||||
public function setVitaminB6(?string $value): void
|
||||
{
|
||||
$this->vitaminB6 = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the vitaminC property value. The vitaminC property
|
||||
* @param string|null $value Value to set for the vitaminC property.
|
||||
*/
|
||||
public function setVitaminC(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the vitaminC property.
|
||||
*/
|
||||
public function setVitaminC(?string $value): void
|
||||
{
|
||||
$this->vitaminC = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the vitaminD property value. The vitaminD property
|
||||
* @param string|null $value Value to set for the vitaminD property.
|
||||
*/
|
||||
public function setVitaminD(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the vitaminD property.
|
||||
*/
|
||||
public function setVitaminD(?string $value): void
|
||||
{
|
||||
$this->vitaminD = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the vitaminE property value. The vitaminE property
|
||||
* @param string|null $value Value to set for the vitaminE property.
|
||||
*/
|
||||
public function setVitaminE(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the vitaminE property.
|
||||
*/
|
||||
public function setVitaminE(?string $value): void
|
||||
{
|
||||
$this->vitaminE = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the vitaminK property value. The vitaminK property
|
||||
* @param string|null $value Value to set for the vitaminK property.
|
||||
*/
|
||||
public function setVitaminK(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the vitaminK property.
|
||||
*/
|
||||
public function setVitaminK(?string $value): void
|
||||
{
|
||||
$this->vitaminK = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
124
client/Models/IncoCompositionIdentification.php
Executable file → Normal file
124
client/Models/IncoCompositionIdentification.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,95 +11,104 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Informations d'identification de la composition INCO.
|
||||
*/
|
||||
class IncoCompositionIdentification implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoCompositionIdentification implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $name The name property
|
||||
*/
|
||||
* @var string|null The name property
|
||||
*/
|
||||
private ?string $name = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $number The number property
|
||||
*/
|
||||
* @var string|null The number property
|
||||
*/
|
||||
private ?string $number = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $source The source property
|
||||
*/
|
||||
* @var string|null The source property
|
||||
*/
|
||||
private ?string $source = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoCompositionIdentification and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoCompositionIdentification
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompositionIdentification {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoCompositionIdentification
|
||||
{
|
||||
return new IncoCompositionIdentification();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),
|
||||
'number' => fn(ParseNode $n) => $o->setNumber($n->getStringValue()),
|
||||
'source' => fn(ParseNode $n) => $o->setSource($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'name' => fn (ParseNode $n) => $o->setName($n->getStringValue()),
|
||||
'number' => fn (ParseNode $n) => $o->setNumber($n->getStringValue()),
|
||||
'source' => fn (ParseNode $n) => $o->setSource($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name property value. The name property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getName(): ?string {
|
||||
*/
|
||||
public function getName(): ?string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the number property value. The number property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getNumber(): ?string {
|
||||
*/
|
||||
public function getNumber(): ?string
|
||||
{
|
||||
return $this->number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the source property value. The source property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getSource(): ?string {
|
||||
*/
|
||||
public function getSource(): ?string
|
||||
{
|
||||
return $this->source;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('name', $this->getName());
|
||||
$writer->writeStringValue('number', $this->getNumber());
|
||||
$writer->writeStringValue('source', $this->getSource());
|
||||
|
|
@ -106,34 +117,41 @@ class IncoCompositionIdentification implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name property value. The name property
|
||||
* @param string|null $value Value to set for the name property.
|
||||
*/
|
||||
public function setName(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the name property.
|
||||
*/
|
||||
public function setName(?string $value): void
|
||||
{
|
||||
$this->name = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the number property value. The number property
|
||||
* @param string|null $value Value to set for the number property.
|
||||
*/
|
||||
public function setNumber(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the number property.
|
||||
*/
|
||||
public function setNumber(?string $value): void
|
||||
{
|
||||
$this->number = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the source property value. The source property
|
||||
* @param string|null $value Value to set for the source property.
|
||||
*/
|
||||
public function setSource(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the source property.
|
||||
*/
|
||||
public function setSource(?string $value): void
|
||||
{
|
||||
$this->source = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
58
client/Models/IncoIngredients.php
Executable file → Normal file
58
client/Models/IncoIngredients.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,62 +11,72 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Liste structurée des ingrédients groupés par section.
|
||||
*/
|
||||
class IncoIngredients implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoIngredients implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoIngredients and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoIngredients
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoIngredients {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoIngredients
|
||||
{
|
||||
return new IncoIngredients();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
|
||||
return [
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
80
client/Models/IncoItemResponse.php
Executable file → Normal file
80
client/Models/IncoItemResponse.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,85 +11,97 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Enveloppe de réponse pour le détail d'une fiche INCO.
|
||||
*/
|
||||
class IncoItemResponse implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoItemResponse implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Inco|null $incoSheet Fiche produit INCO complète.
|
||||
*/
|
||||
* @var Inco|null Fiche produit INCO complète.
|
||||
*/
|
||||
private ?Inco $incoSheet = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoItemResponse and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoItemResponse
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoItemResponse {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoItemResponse
|
||||
{
|
||||
return new IncoItemResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'incoSheet' => fn(ParseNode $n) => $o->setIncoSheet($n->getObjectValue([Inco::class, 'createFromDiscriminatorValue'])),
|
||||
|
||||
return [
|
||||
'incoSheet' => fn (ParseNode $n) => $o->setIncoSheet($n->getObjectValue([Inco::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the incoSheet property value. Fiche produit INCO complète.
|
||||
* @return Inco|null
|
||||
*/
|
||||
public function getIncoSheet(): ?Inco {
|
||||
*/
|
||||
public function getIncoSheet(): ?Inco
|
||||
{
|
||||
return $this->incoSheet;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeObjectValue('incoSheet', $this->getIncoSheet());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the incoSheet property value. Fiche produit INCO complète.
|
||||
* @param Inco|null $value Value to set for the incoSheet property.
|
||||
*/
|
||||
public function setIncoSheet(?Inco $value): void {
|
||||
*
|
||||
* @param Inco|null $value Value to set for the incoSheet property.
|
||||
*/
|
||||
public function setIncoSheet(?Inco $value): void
|
||||
{
|
||||
$this->incoSheet = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
102
client/Models/IncoListResponse.php
Executable file → Normal file
102
client/Models/IncoListResponse.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,81 +11,92 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Enveloppe de réponse pour la liste des fiches INCO.
|
||||
*/
|
||||
class IncoListResponse implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoListResponse implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var array<IncoListResponse_incoSheets>|null $incoSheets Collection des fiches INCO (format complet ou court).
|
||||
*/
|
||||
* @var array<IncoListResponse_incoSheets>|null Collection des fiches INCO (format complet ou court).
|
||||
*/
|
||||
private ?array $incoSheets = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PaginationMeta|null $pagination Métadonnées de pagination.
|
||||
*/
|
||||
* @var PaginationMeta|null Métadonnées de pagination.
|
||||
*/
|
||||
private ?PaginationMeta $pagination = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoListResponse and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoListResponse
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoListResponse {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoListResponse
|
||||
{
|
||||
return new IncoListResponse();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'incoSheets' => fn(ParseNode $n) => $o->setIncoSheets($n->getCollectionOfObjectValues([IncoListResponse_incoSheets::class, 'createFromDiscriminatorValue'])),
|
||||
'pagination' => fn(ParseNode $n) => $o->setPagination($n->getObjectValue([PaginationMeta::class, 'createFromDiscriminatorValue'])),
|
||||
|
||||
return [
|
||||
'incoSheets' => fn (ParseNode $n) => $o->setIncoSheets($n->getCollectionOfObjectValues([IncoListResponse_incoSheets::class, 'createFromDiscriminatorValue'])),
|
||||
'pagination' => fn (ParseNode $n) => $o->setPagination($n->getObjectValue([PaginationMeta::class, 'createFromDiscriminatorValue'])),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the incoSheets property value. Collection des fiches INCO (format complet ou court).
|
||||
*
|
||||
* @return array<IncoListResponse_incoSheets>|null
|
||||
*/
|
||||
public function getIncoSheets(): ?array {
|
||||
*/
|
||||
public function getIncoSheets(): ?array
|
||||
{
|
||||
return $this->incoSheets;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the pagination property value. Métadonnées de pagination.
|
||||
* @return PaginationMeta|null
|
||||
*/
|
||||
public function getPagination(): ?PaginationMeta {
|
||||
*/
|
||||
public function getPagination(): ?PaginationMeta
|
||||
{
|
||||
return $this->pagination;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeCollectionOfObjectValues('incoSheets', $this->getIncoSheets());
|
||||
$writer->writeObjectValue('pagination', $this->getPagination());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
|
|
@ -91,26 +104,31 @@ class IncoListResponse implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the incoSheets property value. Collection des fiches INCO (format complet ou court).
|
||||
* @param array<IncoListResponse_incoSheets>|null $value Value to set for the incoSheets property.
|
||||
*/
|
||||
public function setIncoSheets(?array $value): void {
|
||||
*
|
||||
* @param array<IncoListResponse_incoSheets>|null $value Value to set for the incoSheets property.
|
||||
*/
|
||||
public function setIncoSheets(?array $value): void
|
||||
{
|
||||
$this->incoSheets = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the pagination property value. Métadonnées de pagination.
|
||||
* @param PaginationMeta|null $value Value to set for the pagination property.
|
||||
*/
|
||||
public function setPagination(?PaginationMeta $value): void {
|
||||
*
|
||||
* @param PaginationMeta|null $value Value to set for the pagination property.
|
||||
*/
|
||||
public function setPagination(?PaginationMeta $value): void
|
||||
{
|
||||
$this->pagination = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
72
client/Models/IncoListResponse_incoSheets.php
Executable file → Normal file
72
client/Models/IncoListResponse_incoSheets.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\ComposedTypeWrapper;
|
||||
|
|
@ -10,80 +12,90 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Composed type wrapper for classes Inco, IncoShort
|
||||
*/
|
||||
class IncoListResponse_incoSheets implements ComposedTypeWrapper, Parsable
|
||||
*/
|
||||
class IncoListResponse_incoSheets implements ComposedTypeWrapper, Parsable
|
||||
{
|
||||
/**
|
||||
* @var Inco|null $inco Composed type representation for type Inco
|
||||
*/
|
||||
* @var Inco|null Composed type representation for type Inco
|
||||
*/
|
||||
private ?Inco $inco = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoShort|null $incoShort Composed type representation for type IncoShort
|
||||
*/
|
||||
* @var IncoShort|null Composed type representation for type IncoShort
|
||||
*/
|
||||
private ?IncoShort $incoShort = null;
|
||||
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoListResponse_incoSheets
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoListResponse_incoSheets {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoListResponse_incoSheets
|
||||
{
|
||||
$result = new IncoListResponse_incoSheets();
|
||||
$result->setInco(new Inco());
|
||||
$result->setIncoShort(new IncoShort());
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
if ($this->getInco() !== null || $this->getIncoShort() !== null) {
|
||||
return ParseNodeHelper::mergeDeserializersForIntersectionWrapper($this->getInco(), $this->getIncoShort());
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Inco property value. Composed type representation for type Inco
|
||||
* @return Inco|null
|
||||
*/
|
||||
public function getInco(): ?Inco {
|
||||
*/
|
||||
public function getInco(): ?Inco
|
||||
{
|
||||
return $this->inco;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the IncoShort property value. Composed type representation for type IncoShort
|
||||
* @return IncoShort|null
|
||||
*/
|
||||
public function getIncoShort(): ?IncoShort {
|
||||
*/
|
||||
public function getIncoShort(): ?IncoShort
|
||||
{
|
||||
return $this->incoShort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeObjectValue(null, $this->getInco(), $this->getIncoShort());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Inco property value. Composed type representation for type Inco
|
||||
* @param Inco|null $value Value to set for the Inco property.
|
||||
*/
|
||||
public function setInco(?Inco $value): void {
|
||||
*
|
||||
* @param Inco|null $value Value to set for the Inco property.
|
||||
*/
|
||||
public function setInco(?Inco $value): void
|
||||
{
|
||||
$this->inco = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the IncoShort property value. Composed type representation for type IncoShort
|
||||
* @param IncoShort|null $value Value to set for the IncoShort property.
|
||||
*/
|
||||
public function setIncoShort(?IncoShort $value): void {
|
||||
*
|
||||
* @param IncoShort|null $value Value to set for the IncoShort property.
|
||||
*/
|
||||
public function setIncoShort(?IncoShort $value): void
|
||||
{
|
||||
$this->incoShort = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
80
client/Models/IncoNutriscore.php
Executable file → Normal file
80
client/Models/IncoNutriscore.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,85 +11,97 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Note Nutri-Score affichée sur l'emballage.
|
||||
*/
|
||||
class IncoNutriscore implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoNutriscore implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var IncoNutriscore_grade|null $grade The grade property
|
||||
*/
|
||||
* @var IncoNutriscore_grade|null The grade property
|
||||
*/
|
||||
private ?IncoNutriscore_grade $grade = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoNutriscore and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoNutriscore
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoNutriscore {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoNutriscore
|
||||
{
|
||||
return new IncoNutriscore();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'grade' => fn(ParseNode $n) => $o->setGrade($n->getEnumValue(IncoNutriscore_grade::class)),
|
||||
|
||||
return [
|
||||
'grade' => fn (ParseNode $n) => $o->setGrade($n->getEnumValue(IncoNutriscore_grade::class)),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the grade property value. The grade property
|
||||
* @return IncoNutriscore_grade|null
|
||||
*/
|
||||
public function getGrade(): ?IncoNutriscore_grade {
|
||||
*/
|
||||
public function getGrade(): ?IncoNutriscore_grade
|
||||
{
|
||||
return $this->grade;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeEnumValue('grade', $this->getGrade());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the grade property value. The grade property
|
||||
* @param IncoNutriscore_grade|null $value Value to set for the grade property.
|
||||
*/
|
||||
public function setGrade(?IncoNutriscore_grade $value): void {
|
||||
*
|
||||
* @param IncoNutriscore_grade|null $value Value to set for the grade property.
|
||||
*/
|
||||
public function setGrade(?IncoNutriscore_grade $value): void
|
||||
{
|
||||
$this->grade = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
19
client/Models/IncoNutriscore_grade.php
Executable file → Normal file
19
client/Models/IncoNutriscore_grade.php
Executable file → Normal file
|
|
@ -1,13 +1,20 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Enum;
|
||||
|
||||
class IncoNutriscore_grade extends Enum {
|
||||
public const A = "A";
|
||||
public const B = "B";
|
||||
public const C = "C";
|
||||
public const D = "D";
|
||||
public const E = "E";
|
||||
class IncoNutriscore_grade extends Enum
|
||||
{
|
||||
public const A = 'A';
|
||||
|
||||
public const B = 'B';
|
||||
|
||||
public const C = 'C';
|
||||
|
||||
public const D = 'D';
|
||||
|
||||
public const E = 'E';
|
||||
}
|
||||
|
|
|
|||
124
client/Models/IncoPortionAmount.php
Executable file → Normal file
124
client/Models/IncoPortionAmount.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,95 +11,104 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Informations de quantité par portion.
|
||||
*/
|
||||
class IncoPortionAmount implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoPortionAmount implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var bool|null $approximative Indique si la portion est approximative.
|
||||
*/
|
||||
* @var bool|null Indique si la portion est approximative.
|
||||
*/
|
||||
private ?bool $approximative = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $highPart Valeur maximale.
|
||||
*/
|
||||
* @var int|null Valeur maximale.
|
||||
*/
|
||||
private ?int $highPart = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $lowPart Valeur minimale ou exacte (en centièmes ou grammes).
|
||||
*/
|
||||
* @var int|null Valeur minimale ou exacte (en centièmes ou grammes).
|
||||
*/
|
||||
private ?int $lowPart = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoPortionAmount and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoPortionAmount
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoPortionAmount {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoPortionAmount
|
||||
{
|
||||
return new IncoPortionAmount();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the approximative property value. Indique si la portion est approximative.
|
||||
* @return bool|null
|
||||
*/
|
||||
public function getApproximative(): ?bool {
|
||||
*/
|
||||
public function getApproximative(): ?bool
|
||||
{
|
||||
return $this->approximative;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'approximative' => fn(ParseNode $n) => $o->setApproximative($n->getBooleanValue()),
|
||||
'highPart' => fn(ParseNode $n) => $o->setHighPart($n->getIntegerValue()),
|
||||
'lowPart' => fn(ParseNode $n) => $o->setLowPart($n->getIntegerValue()),
|
||||
|
||||
return [
|
||||
'approximative' => fn (ParseNode $n) => $o->setApproximative($n->getBooleanValue()),
|
||||
'highPart' => fn (ParseNode $n) => $o->setHighPart($n->getIntegerValue()),
|
||||
'lowPart' => fn (ParseNode $n) => $o->setLowPart($n->getIntegerValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the highPart property value. Valeur maximale.
|
||||
* @return int|null
|
||||
*/
|
||||
public function getHighPart(): ?int {
|
||||
*/
|
||||
public function getHighPart(): ?int
|
||||
{
|
||||
return $this->highPart;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the lowPart property value. Valeur minimale ou exacte (en centièmes ou grammes).
|
||||
* @return int|null
|
||||
*/
|
||||
public function getLowPart(): ?int {
|
||||
*/
|
||||
public function getLowPart(): ?int
|
||||
{
|
||||
return $this->lowPart;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeBooleanValue('approximative', $this->getApproximative());
|
||||
$writer->writeIntegerValue('highPart', $this->getHighPart());
|
||||
$writer->writeIntegerValue('lowPart', $this->getLowPart());
|
||||
|
|
@ -106,34 +117,41 @@ class IncoPortionAmount implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the approximative property value. Indique si la portion est approximative.
|
||||
* @param bool|null $value Value to set for the approximative property.
|
||||
*/
|
||||
public function setApproximative(?bool $value): void {
|
||||
*
|
||||
* @param bool|null $value Value to set for the approximative property.
|
||||
*/
|
||||
public function setApproximative(?bool $value): void
|
||||
{
|
||||
$this->approximative = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the highPart property value. Valeur maximale.
|
||||
* @param int|null $value Value to set for the highPart property.
|
||||
*/
|
||||
public function setHighPart(?int $value): void {
|
||||
*
|
||||
* @param int|null $value Value to set for the highPart property.
|
||||
*/
|
||||
public function setHighPart(?int $value): void
|
||||
{
|
||||
$this->highPart = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the lowPart property value. Valeur minimale ou exacte (en centièmes ou grammes).
|
||||
* @param int|null $value Value to set for the lowPart property.
|
||||
*/
|
||||
public function setLowPart(?int $value): void {
|
||||
*
|
||||
* @param int|null $value Value to set for the lowPart property.
|
||||
*/
|
||||
public function setLowPart(?int $value): void
|
||||
{
|
||||
$this->lowPart = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
193
client/Models/IncoShort.php
Executable file → Normal file
193
client/Models/IncoShort.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use DateTime;
|
||||
|
|
@ -10,124 +12,148 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Fiche produit INCO projetée en format court.
|
||||
*/
|
||||
class IncoShort implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoShort implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var DateTime|null $createdAt The createdAt property
|
||||
*/
|
||||
* @var DateTime|null The createdAt property
|
||||
*/
|
||||
private ?DateTime $createdAt = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $incoId The incoId property
|
||||
*/
|
||||
* @var string|null The description property
|
||||
*/
|
||||
private ?string $description = null;
|
||||
|
||||
/**
|
||||
* @var string|null The incoId property
|
||||
*/
|
||||
private ?string $incoId = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $label The label property
|
||||
*/
|
||||
* @var string|null The label property
|
||||
*/
|
||||
private ?string $label = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $name The name property
|
||||
*/
|
||||
* @var string|null The name property
|
||||
*/
|
||||
private ?string $name = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var DateTime|null $updatedAt The updatedAt property
|
||||
*/
|
||||
* @var DateTime|null The updatedAt property
|
||||
*/
|
||||
private ?DateTime $updatedAt = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoShort and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoShort
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoShort {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoShort
|
||||
{
|
||||
return new IncoShort();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the createdAt property value. The createdAt property
|
||||
* @return DateTime|null
|
||||
*/
|
||||
public function getCreatedAt(): ?DateTime {
|
||||
*/
|
||||
public function getCreatedAt(): ?DateTime
|
||||
{
|
||||
return $this->createdAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the description property value. The description property
|
||||
*/
|
||||
public function getDescription(): ?string
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'createdAt' => fn(ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()),
|
||||
'incoId' => fn(ParseNode $n) => $o->setIncoId($n->getStringValue()),
|
||||
'label' => fn(ParseNode $n) => $o->setLabel($n->getStringValue()),
|
||||
'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),
|
||||
'updatedAt' => fn(ParseNode $n) => $o->setUpdatedAt($n->getDateTimeValue()),
|
||||
|
||||
return [
|
||||
'createdAt' => fn (ParseNode $n) => $o->setCreatedAt($n->getDateTimeValue()),
|
||||
'description' => fn (ParseNode $n) => $o->setDescription($n->getStringValue()),
|
||||
'incoId' => fn (ParseNode $n) => $o->setIncoId($n->getStringValue()),
|
||||
'label' => fn (ParseNode $n) => $o->setLabel($n->getStringValue()),
|
||||
'name' => fn (ParseNode $n) => $o->setName($n->getStringValue()),
|
||||
'updatedAt' => fn (ParseNode $n) => $o->setUpdatedAt($n->getDateTimeValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the incoId property value. The incoId property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getIncoId(): ?string {
|
||||
*/
|
||||
public function getIncoId(): ?string
|
||||
{
|
||||
return $this->incoId;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the label property value. The label property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getLabel(): ?string {
|
||||
*/
|
||||
public function getLabel(): ?string
|
||||
{
|
||||
return $this->label;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name property value. The name property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getName(): ?string {
|
||||
*/
|
||||
public function getName(): ?string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the updatedAt property value. The updatedAt property
|
||||
* @return DateTime|null
|
||||
*/
|
||||
public function getUpdatedAt(): ?DateTime {
|
||||
*/
|
||||
public function getUpdatedAt(): ?DateTime
|
||||
{
|
||||
return $this->updatedAt;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeDateTimeValue('createdAt', $this->getCreatedAt());
|
||||
$writer->writeStringValue('description', $this->getDescription());
|
||||
$writer->writeStringValue('incoId', $this->getIncoId());
|
||||
$writer->writeStringValue('label', $this->getLabel());
|
||||
$writer->writeStringValue('name', $this->getName());
|
||||
|
|
@ -137,50 +163,71 @@ class IncoShort implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the createdAt property value. The createdAt property
|
||||
* @param DateTime|null $value Value to set for the createdAt property.
|
||||
*/
|
||||
public function setCreatedAt(?DateTime $value): void {
|
||||
*
|
||||
* @param DateTime|null $value Value to set for the createdAt property.
|
||||
*/
|
||||
public function setCreatedAt(?DateTime $value): void
|
||||
{
|
||||
$this->createdAt = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the description property value. The description property
|
||||
*
|
||||
* @param string|null $value Value to set for the description property.
|
||||
*/
|
||||
public function setDescription(?string $value): void
|
||||
{
|
||||
$this->description = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the incoId property value. The incoId property
|
||||
* @param string|null $value Value to set for the incoId property.
|
||||
*/
|
||||
public function setIncoId(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the incoId property.
|
||||
*/
|
||||
public function setIncoId(?string $value): void
|
||||
{
|
||||
$this->incoId = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the label property value. The label property
|
||||
* @param string|null $value Value to set for the label property.
|
||||
*/
|
||||
public function setLabel(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the label property.
|
||||
*/
|
||||
public function setLabel(?string $value): void
|
||||
{
|
||||
$this->label = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name property value. The name property
|
||||
* @param string|null $value Value to set for the name property.
|
||||
*/
|
||||
public function setName(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the name property.
|
||||
*/
|
||||
public function setName(?string $value): void
|
||||
{
|
||||
$this->name = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the updatedAt property value. The updatedAt property
|
||||
* @param DateTime|null $value Value to set for the updatedAt property.
|
||||
*/
|
||||
public function setUpdatedAt(?DateTime $value): void {
|
||||
*
|
||||
* @param DateTime|null $value Value to set for the updatedAt property.
|
||||
*/
|
||||
public function setUpdatedAt(?DateTime $value): void
|
||||
{
|
||||
$this->updatedAt = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
80
client/Models/IncoStorageCondition.php
Executable file → Normal file
80
client/Models/IncoStorageCondition.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,85 +11,97 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Conditions de conservation du produit.
|
||||
*/
|
||||
class IncoStorageCondition implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoStorageCondition implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $instructions The instructions property
|
||||
*/
|
||||
* @var string|null The instructions property
|
||||
*/
|
||||
private ?string $instructions = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoStorageCondition and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoStorageCondition
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoStorageCondition {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoStorageCondition
|
||||
{
|
||||
return new IncoStorageCondition();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'instructions' => fn(ParseNode $n) => $o->setInstructions($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'instructions' => fn (ParseNode $n) => $o->setInstructions($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the instructions property value. The instructions property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getInstructions(): ?string {
|
||||
*/
|
||||
public function getInstructions(): ?string
|
||||
{
|
||||
return $this->instructions;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('instructions', $this->getInstructions());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the instructions property value. The instructions property
|
||||
* @param string|null $value Value to set for the instructions property.
|
||||
*/
|
||||
public function setInstructions(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the instructions property.
|
||||
*/
|
||||
public function setInstructions(?string $value): void
|
||||
{
|
||||
$this->instructions = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
124
client/Models/IncoWeight.php
Executable file → Normal file
124
client/Models/IncoWeight.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,95 +11,104 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Poids du produit en grammes.
|
||||
*/
|
||||
class IncoWeight implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class IncoWeight implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $grossWeight Poids brut UVC (g).
|
||||
*/
|
||||
* @var int|null Poids brut UVC (g).
|
||||
*/
|
||||
private ?int $grossWeight = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $netWeight Poids net UVC (g).
|
||||
*/
|
||||
* @var int|null Poids net UVC (g).
|
||||
*/
|
||||
private ?int $netWeight = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $theoreticalAverage Moyenne théorique du poids (g).
|
||||
*/
|
||||
* @var int|null Moyenne théorique du poids (g).
|
||||
*/
|
||||
private ?int $theoreticalAverage = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new IncoWeight and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return IncoWeight
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoWeight {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): IncoWeight
|
||||
{
|
||||
return new IncoWeight();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'grossWeight' => fn(ParseNode $n) => $o->setGrossWeight($n->getIntegerValue()),
|
||||
'netWeight' => fn(ParseNode $n) => $o->setNetWeight($n->getIntegerValue()),
|
||||
'theoreticalAverage' => fn(ParseNode $n) => $o->setTheoreticalAverage($n->getIntegerValue()),
|
||||
|
||||
return [
|
||||
'grossWeight' => fn (ParseNode $n) => $o->setGrossWeight($n->getIntegerValue()),
|
||||
'netWeight' => fn (ParseNode $n) => $o->setNetWeight($n->getIntegerValue()),
|
||||
'theoreticalAverage' => fn (ParseNode $n) => $o->setTheoreticalAverage($n->getIntegerValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the grossWeight property value. Poids brut UVC (g).
|
||||
* @return int|null
|
||||
*/
|
||||
public function getGrossWeight(): ?int {
|
||||
*/
|
||||
public function getGrossWeight(): ?int
|
||||
{
|
||||
return $this->grossWeight;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the netWeight property value. Poids net UVC (g).
|
||||
* @return int|null
|
||||
*/
|
||||
public function getNetWeight(): ?int {
|
||||
*/
|
||||
public function getNetWeight(): ?int
|
||||
{
|
||||
return $this->netWeight;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the theoreticalAverage property value. Moyenne théorique du poids (g).
|
||||
* @return int|null
|
||||
*/
|
||||
public function getTheoreticalAverage(): ?int {
|
||||
*/
|
||||
public function getTheoreticalAverage(): ?int
|
||||
{
|
||||
return $this->theoreticalAverage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeIntegerValue('grossWeight', $this->getGrossWeight());
|
||||
$writer->writeIntegerValue('netWeight', $this->getNetWeight());
|
||||
$writer->writeIntegerValue('theoreticalAverage', $this->getTheoreticalAverage());
|
||||
|
|
@ -106,34 +117,41 @@ class IncoWeight implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the grossWeight property value. Poids brut UVC (g).
|
||||
* @param int|null $value Value to set for the grossWeight property.
|
||||
*/
|
||||
public function setGrossWeight(?int $value): void {
|
||||
*
|
||||
* @param int|null $value Value to set for the grossWeight property.
|
||||
*/
|
||||
public function setGrossWeight(?int $value): void
|
||||
{
|
||||
$this->grossWeight = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the netWeight property value. Poids net UVC (g).
|
||||
* @param int|null $value Value to set for the netWeight property.
|
||||
*/
|
||||
public function setNetWeight(?int $value): void {
|
||||
*
|
||||
* @param int|null $value Value to set for the netWeight property.
|
||||
*/
|
||||
public function setNetWeight(?int $value): void
|
||||
{
|
||||
$this->netWeight = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the theoreticalAverage property value. Moyenne théorique du poids (g).
|
||||
* @param int|null $value Value to set for the theoreticalAverage property.
|
||||
*/
|
||||
public function setTheoreticalAverage(?int $value): void {
|
||||
*
|
||||
* @param int|null $value Value to set for the theoreticalAverage property.
|
||||
*/
|
||||
public function setTheoreticalAverage(?int $value): void
|
||||
{
|
||||
$this->theoreticalAverage = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,92 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\ComposedTypeWrapper;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
||||
|
||||
/**
|
||||
* Composed type wrapper for classes IncoNutriscore, Inco_nutriscoreMember1
|
||||
*/
|
||||
class Inco_nutriscore implements ComposedTypeWrapper, Parsable
|
||||
{
|
||||
/**
|
||||
* @var Inco_nutriscoreMember1|null $inco_nutriscoreMember1 Composed type representation for type Inco_nutriscoreMember1
|
||||
*/
|
||||
private ?Inco_nutriscoreMember1 $inco_nutriscoreMember1 = null;
|
||||
|
||||
/**
|
||||
* @var IncoNutriscore|null $incoNutriscore Composed type representation for type IncoNutriscore
|
||||
*/
|
||||
private ?IncoNutriscore $incoNutriscore = null;
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return Inco_nutriscore
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_nutriscore {
|
||||
$result = new Inco_nutriscore();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
if ($this->getIncoNutriscoreMember1() !== null) {
|
||||
return $this->getIncoNutriscoreMember1()->getFieldDeserializers();
|
||||
} else if ($this->getIncoNutriscore() !== null) {
|
||||
return $this->getIncoNutriscore()->getFieldDeserializers();
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the IncoNutriscore property value. Composed type representation for type IncoNutriscore
|
||||
* @return IncoNutriscore|null
|
||||
*/
|
||||
public function getIncoNutriscore(): ?IncoNutriscore {
|
||||
return $this->incoNutriscore;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Inco_nutriscoreMember1 property value. Composed type representation for type Inco_nutriscoreMember1
|
||||
* @return Inco_nutriscoreMember1|null
|
||||
*/
|
||||
public function getIncoNutriscoreMember1(): ?Inco_nutriscoreMember1 {
|
||||
return $this->inco_nutriscoreMember1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
if ($this->getIncoNutriscoreMember1() !== null) {
|
||||
$writer->writeObjectValue(null, $this->getIncoNutriscoreMember1());
|
||||
} else if ($this->getIncoNutriscore() !== null) {
|
||||
$writer->writeObjectValue(null, $this->getIncoNutriscore());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the IncoNutriscore property value. Composed type representation for type IncoNutriscore
|
||||
* @param IncoNutriscore|null $value Value to set for the IncoNutriscore property.
|
||||
*/
|
||||
public function setIncoNutriscore(?IncoNutriscore $value): void {
|
||||
$this->incoNutriscore = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Inco_nutriscoreMember1 property value. Composed type representation for type Inco_nutriscoreMember1
|
||||
* @param Inco_nutriscoreMember1|null $value Value to set for the Inco_nutriscoreMember1 property.
|
||||
*/
|
||||
public function setIncoNutriscoreMember1(?Inco_nutriscoreMember1 $value): void {
|
||||
$this->inco_nutriscoreMember1 = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
||||
|
||||
class Inco_nutriscoreMember1 implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
/**
|
||||
* Instantiates a new Inco_nutriscoreMember1 and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return Inco_nutriscoreMember1
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_nutriscoreMember1 {
|
||||
return new Inco_nutriscoreMember1();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
$o = $this;
|
||||
return [
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,92 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\ComposedTypeWrapper;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
||||
|
||||
/**
|
||||
* Composed type wrapper for classes IncoPortionAmount, Inco_portionsMember1
|
||||
*/
|
||||
class Inco_portions implements ComposedTypeWrapper, Parsable
|
||||
{
|
||||
/**
|
||||
* @var Inco_portionsMember1|null $inco_portionsMember1 Composed type representation for type Inco_portionsMember1
|
||||
*/
|
||||
private ?Inco_portionsMember1 $inco_portionsMember1 = null;
|
||||
|
||||
/**
|
||||
* @var IncoPortionAmount|null $incoPortionAmount Composed type representation for type IncoPortionAmount
|
||||
*/
|
||||
private ?IncoPortionAmount $incoPortionAmount = null;
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return Inco_portions
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_portions {
|
||||
$result = new Inco_portions();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
if ($this->getIncoPortionsMember1() !== null) {
|
||||
return $this->getIncoPortionsMember1()->getFieldDeserializers();
|
||||
} else if ($this->getIncoPortionAmount() !== null) {
|
||||
return $this->getIncoPortionAmount()->getFieldDeserializers();
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the IncoPortionAmount property value. Composed type representation for type IncoPortionAmount
|
||||
* @return IncoPortionAmount|null
|
||||
*/
|
||||
public function getIncoPortionAmount(): ?IncoPortionAmount {
|
||||
return $this->incoPortionAmount;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Inco_portionsMember1 property value. Composed type representation for type Inco_portionsMember1
|
||||
* @return Inco_portionsMember1|null
|
||||
*/
|
||||
public function getIncoPortionsMember1(): ?Inco_portionsMember1 {
|
||||
return $this->inco_portionsMember1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
if ($this->getIncoPortionsMember1() !== null) {
|
||||
$writer->writeObjectValue(null, $this->getIncoPortionsMember1());
|
||||
} else if ($this->getIncoPortionAmount() !== null) {
|
||||
$writer->writeObjectValue(null, $this->getIncoPortionAmount());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the IncoPortionAmount property value. Composed type representation for type IncoPortionAmount
|
||||
* @param IncoPortionAmount|null $value Value to set for the IncoPortionAmount property.
|
||||
*/
|
||||
public function setIncoPortionAmount(?IncoPortionAmount $value): void {
|
||||
$this->incoPortionAmount = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Inco_portionsMember1 property value. Composed type representation for type Inco_portionsMember1
|
||||
* @param Inco_portionsMember1|null $value Value to set for the Inco_portionsMember1 property.
|
||||
*/
|
||||
public function setIncoPortionsMember1(?Inco_portionsMember1 $value): void {
|
||||
$this->inco_portionsMember1 = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
||||
|
||||
class Inco_portionsMember1 implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
/**
|
||||
* Instantiates a new Inco_portionsMember1 and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return Inco_portionsMember1
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_portionsMember1 {
|
||||
return new Inco_portionsMember1();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
$o = $this;
|
||||
return [
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,92 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\ComposedTypeWrapper;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
||||
|
||||
/**
|
||||
* Composed type wrapper for classes IncoStorageCondition, Inco_storageConditionMember1
|
||||
*/
|
||||
class Inco_storageCondition implements ComposedTypeWrapper, Parsable
|
||||
{
|
||||
/**
|
||||
* @var Inco_storageConditionMember1|null $inco_storageConditionMember1 Composed type representation for type Inco_storageConditionMember1
|
||||
*/
|
||||
private ?Inco_storageConditionMember1 $inco_storageConditionMember1 = null;
|
||||
|
||||
/**
|
||||
* @var IncoStorageCondition|null $incoStorageCondition Composed type representation for type IncoStorageCondition
|
||||
*/
|
||||
private ?IncoStorageCondition $incoStorageCondition = null;
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return Inco_storageCondition
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_storageCondition {
|
||||
$result = new Inco_storageCondition();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
if ($this->getIncoStorageConditionMember1() !== null) {
|
||||
return $this->getIncoStorageConditionMember1()->getFieldDeserializers();
|
||||
} else if ($this->getIncoStorageCondition() !== null) {
|
||||
return $this->getIncoStorageCondition()->getFieldDeserializers();
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the IncoStorageCondition property value. Composed type representation for type IncoStorageCondition
|
||||
* @return IncoStorageCondition|null
|
||||
*/
|
||||
public function getIncoStorageCondition(): ?IncoStorageCondition {
|
||||
return $this->incoStorageCondition;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Inco_storageConditionMember1 property value. Composed type representation for type Inco_storageConditionMember1
|
||||
* @return Inco_storageConditionMember1|null
|
||||
*/
|
||||
public function getIncoStorageConditionMember1(): ?Inco_storageConditionMember1 {
|
||||
return $this->inco_storageConditionMember1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
if ($this->getIncoStorageConditionMember1() !== null) {
|
||||
$writer->writeObjectValue(null, $this->getIncoStorageConditionMember1());
|
||||
} else if ($this->getIncoStorageCondition() !== null) {
|
||||
$writer->writeObjectValue(null, $this->getIncoStorageCondition());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the IncoStorageCondition property value. Composed type representation for type IncoStorageCondition
|
||||
* @param IncoStorageCondition|null $value Value to set for the IncoStorageCondition property.
|
||||
*/
|
||||
public function setIncoStorageCondition(?IncoStorageCondition $value): void {
|
||||
$this->incoStorageCondition = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Inco_storageConditionMember1 property value. Composed type representation for type Inco_storageConditionMember1
|
||||
* @param Inco_storageConditionMember1|null $value Value to set for the Inco_storageConditionMember1 property.
|
||||
*/
|
||||
public function setIncoStorageConditionMember1(?Inco_storageConditionMember1 $value): void {
|
||||
$this->inco_storageConditionMember1 = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
||||
|
||||
class Inco_storageConditionMember1 implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
/**
|
||||
* Instantiates a new Inco_storageConditionMember1 and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return Inco_storageConditionMember1
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_storageConditionMember1 {
|
||||
return new Inco_storageConditionMember1();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
$o = $this;
|
||||
return [
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,92 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\ComposedTypeWrapper;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
||||
|
||||
/**
|
||||
* Composed type wrapper for classes IncoWeight, Inco_weightMember1
|
||||
*/
|
||||
class Inco_weight implements ComposedTypeWrapper, Parsable
|
||||
{
|
||||
/**
|
||||
* @var Inco_weightMember1|null $inco_weightMember1 Composed type representation for type Inco_weightMember1
|
||||
*/
|
||||
private ?Inco_weightMember1 $inco_weightMember1 = null;
|
||||
|
||||
/**
|
||||
* @var IncoWeight|null $incoWeight Composed type representation for type IncoWeight
|
||||
*/
|
||||
private ?IncoWeight $incoWeight = null;
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return Inco_weight
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_weight {
|
||||
$result = new Inco_weight();
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
if ($this->getIncoWeightMember1() !== null) {
|
||||
return $this->getIncoWeightMember1()->getFieldDeserializers();
|
||||
} else if ($this->getIncoWeight() !== null) {
|
||||
return $this->getIncoWeight()->getFieldDeserializers();
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the IncoWeight property value. Composed type representation for type IncoWeight
|
||||
* @return IncoWeight|null
|
||||
*/
|
||||
public function getIncoWeight(): ?IncoWeight {
|
||||
return $this->incoWeight;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Inco_weightMember1 property value. Composed type representation for type Inco_weightMember1
|
||||
* @return Inco_weightMember1|null
|
||||
*/
|
||||
public function getIncoWeightMember1(): ?Inco_weightMember1 {
|
||||
return $this->inco_weightMember1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
if ($this->getIncoWeightMember1() !== null) {
|
||||
$writer->writeObjectValue(null, $this->getIncoWeightMember1());
|
||||
} else if ($this->getIncoWeight() !== null) {
|
||||
$writer->writeObjectValue(null, $this->getIncoWeight());
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the IncoWeight property value. Composed type representation for type IncoWeight
|
||||
* @param IncoWeight|null $value Value to set for the IncoWeight property.
|
||||
*/
|
||||
public function setIncoWeight(?IncoWeight $value): void {
|
||||
$this->incoWeight = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Inco_weightMember1 property value. Composed type representation for type Inco_weightMember1
|
||||
* @param Inco_weightMember1|null $value Value to set for the Inco_weightMember1 property.
|
||||
*/
|
||||
public function setIncoWeightMember1(?Inco_weightMember1 $value): void {
|
||||
$this->inco_weightMember1 = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
@ -1,67 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\Parsable;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\ParseNode;
|
||||
use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
||||
|
||||
class Inco_weightMember1 implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
/**
|
||||
* Instantiates a new Inco_weightMember1 and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return Inco_weightMember1
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): Inco_weightMember1 {
|
||||
return new Inco_weightMember1();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
$o = $this;
|
||||
return [
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
}
|
||||
102
client/Models/InvalidParamItem.php
Executable file → Normal file
102
client/Models/InvalidParamItem.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,81 +11,90 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Détail d'une erreur de validation sur un paramètre.
|
||||
*/
|
||||
class InvalidParamItem implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class InvalidParamItem implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $name Nom du champ ou paramètre invalide.
|
||||
*/
|
||||
* @var string|null Nom du champ ou paramètre invalide.
|
||||
*/
|
||||
private ?string $name = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $reason Raison du rejet de validation.
|
||||
*/
|
||||
* @var string|null Raison du rejet de validation.
|
||||
*/
|
||||
private ?string $reason = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new InvalidParamItem and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return InvalidParamItem
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): InvalidParamItem {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): InvalidParamItem
|
||||
{
|
||||
return new InvalidParamItem();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'name' => fn(ParseNode $n) => $o->setName($n->getStringValue()),
|
||||
'reason' => fn(ParseNode $n) => $o->setReason($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'name' => fn (ParseNode $n) => $o->setName($n->getStringValue()),
|
||||
'reason' => fn (ParseNode $n) => $o->setReason($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the name property value. Nom du champ ou paramètre invalide.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getName(): ?string {
|
||||
*/
|
||||
public function getName(): ?string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the reason property value. Raison du rejet de validation.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getReason(): ?string {
|
||||
*/
|
||||
public function getReason(): ?string
|
||||
{
|
||||
return $this->reason;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('name', $this->getName());
|
||||
$writer->writeStringValue('reason', $this->getReason());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
|
|
@ -91,26 +102,31 @@ class InvalidParamItem implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name property value. Nom du champ ou paramètre invalide.
|
||||
* @param string|null $value Value to set for the name property.
|
||||
*/
|
||||
public function setName(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the name property.
|
||||
*/
|
||||
public function setName(?string $value): void
|
||||
{
|
||||
$this->name = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the reason property value. Raison du rejet de validation.
|
||||
* @param string|null $value Value to set for the reason property.
|
||||
*/
|
||||
public function setReason(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the reason property.
|
||||
*/
|
||||
public function setReason(?string $value): void
|
||||
{
|
||||
$this->reason = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
102
client/Models/NutrientValue.php
Executable file → Normal file
102
client/Models/NutrientValue.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,81 +11,90 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Valeur d'un nutriment avec quantité et précision facultative.
|
||||
*/
|
||||
class NutrientValue implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class NutrientValue implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $amount The amount property
|
||||
*/
|
||||
* @var string|null The amount property
|
||||
*/
|
||||
private ?string $amount = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $precision The precision property
|
||||
*/
|
||||
* @var string|null The precision property
|
||||
*/
|
||||
private ?string $precision = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new NutrientValue and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return NutrientValue
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): NutrientValue {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): NutrientValue
|
||||
{
|
||||
return new NutrientValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the amount property value. The amount property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getAmount(): ?string {
|
||||
*/
|
||||
public function getAmount(): ?string
|
||||
{
|
||||
return $this->amount;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'amount' => fn(ParseNode $n) => $o->setAmount($n->getStringValue()),
|
||||
'precision' => fn(ParseNode $n) => $o->setPrecision($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'amount' => fn (ParseNode $n) => $o->setAmount($n->getStringValue()),
|
||||
'precision' => fn (ParseNode $n) => $o->setPrecision($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the precision property value. The precision property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getPrecision(): ?string {
|
||||
*/
|
||||
public function getPrecision(): ?string
|
||||
{
|
||||
return $this->precision;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('amount', $this->getAmount());
|
||||
$writer->writeStringValue('precision', $this->getPrecision());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
|
|
@ -91,26 +102,31 @@ class NutrientValue implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the amount property value. The amount property
|
||||
* @param string|null $value Value to set for the amount property.
|
||||
*/
|
||||
public function setAmount(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the amount property.
|
||||
*/
|
||||
public function setAmount(?string $value): void
|
||||
{
|
||||
$this->amount = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the precision property value. The precision property
|
||||
* @param string|null $value Value to set for the precision property.
|
||||
*/
|
||||
public function setPrecision(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the precision property.
|
||||
*/
|
||||
public function setPrecision(?string $value): void
|
||||
{
|
||||
$this->precision = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
168
client/Models/PaginationLinks.php
Executable file → Normal file
168
client/Models/PaginationLinks.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,123 +11,132 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Liens de navigation HATEOAS pour la pagination.
|
||||
*/
|
||||
class PaginationLinks implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class PaginationLinks implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $escapedSelf Lien vers la page courante.
|
||||
*/
|
||||
* @var string|null Lien vers la page courante.
|
||||
*/
|
||||
private ?string $escapedSelf = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $first Lien vers la première page.
|
||||
*/
|
||||
* @var string|null Lien vers la première page.
|
||||
*/
|
||||
private ?string $first = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $last Lien vers la dernière page.
|
||||
*/
|
||||
* @var string|null Lien vers la dernière page.
|
||||
*/
|
||||
private ?string $last = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $next Lien vers la page suivante (null si dernière page).
|
||||
*/
|
||||
* @var string|null Lien vers la page suivante (null si dernière page).
|
||||
*/
|
||||
private ?string $next = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $prev Lien vers la page précédente (null si première page).
|
||||
*/
|
||||
* @var string|null Lien vers la page précédente (null si première page).
|
||||
*/
|
||||
private ?string $prev = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new PaginationLinks and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return PaginationLinks
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): PaginationLinks {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): PaginationLinks
|
||||
{
|
||||
return new PaginationLinks();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the self property value. Lien vers la page courante.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getEscapedSelf(): ?string {
|
||||
*/
|
||||
public function getEscapedSelf(): ?string
|
||||
{
|
||||
return $this->escapedSelf;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'self' => fn(ParseNode $n) => $o->setEscapedSelf($n->getStringValue()),
|
||||
'first' => fn(ParseNode $n) => $o->setFirst($n->getStringValue()),
|
||||
'last' => fn(ParseNode $n) => $o->setLast($n->getStringValue()),
|
||||
'next' => fn(ParseNode $n) => $o->setNext($n->getStringValue()),
|
||||
'prev' => fn(ParseNode $n) => $o->setPrev($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'self' => fn (ParseNode $n) => $o->setEscapedSelf($n->getStringValue()),
|
||||
'first' => fn (ParseNode $n) => $o->setFirst($n->getStringValue()),
|
||||
'last' => fn (ParseNode $n) => $o->setLast($n->getStringValue()),
|
||||
'next' => fn (ParseNode $n) => $o->setNext($n->getStringValue()),
|
||||
'prev' => fn (ParseNode $n) => $o->setPrev($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the first property value. Lien vers la première page.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getFirst(): ?string {
|
||||
*/
|
||||
public function getFirst(): ?string
|
||||
{
|
||||
return $this->first;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the last property value. Lien vers la dernière page.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getLast(): ?string {
|
||||
*/
|
||||
public function getLast(): ?string
|
||||
{
|
||||
return $this->last;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the next property value. Lien vers la page suivante (null si dernière page).
|
||||
* @return string|null
|
||||
*/
|
||||
public function getNext(): ?string {
|
||||
*/
|
||||
public function getNext(): ?string
|
||||
{
|
||||
return $this->next;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the prev property value. Lien vers la page précédente (null si première page).
|
||||
* @return string|null
|
||||
*/
|
||||
public function getPrev(): ?string {
|
||||
*/
|
||||
public function getPrev(): ?string
|
||||
{
|
||||
return $this->prev;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('self', $this->getEscapedSelf());
|
||||
$writer->writeStringValue('first', $this->getFirst());
|
||||
$writer->writeStringValue('last', $this->getLast());
|
||||
|
|
@ -136,50 +147,61 @@ class PaginationLinks implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the self property value. Lien vers la page courante.
|
||||
* @param string|null $value Value to set for the self property.
|
||||
*/
|
||||
public function setEscapedSelf(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the self property.
|
||||
*/
|
||||
public function setEscapedSelf(?string $value): void
|
||||
{
|
||||
$this->escapedSelf = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the first property value. Lien vers la première page.
|
||||
* @param string|null $value Value to set for the first property.
|
||||
*/
|
||||
public function setFirst(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the first property.
|
||||
*/
|
||||
public function setFirst(?string $value): void
|
||||
{
|
||||
$this->first = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the last property value. Lien vers la dernière page.
|
||||
* @param string|null $value Value to set for the last property.
|
||||
*/
|
||||
public function setLast(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the last property.
|
||||
*/
|
||||
public function setLast(?string $value): void
|
||||
{
|
||||
$this->last = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the next property value. Lien vers la page suivante (null si dernière page).
|
||||
* @param string|null $value Value to set for the next property.
|
||||
*/
|
||||
public function setNext(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the next property.
|
||||
*/
|
||||
public function setNext(?string $value): void
|
||||
{
|
||||
$this->next = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the prev property value. Lien vers la page précédente (null si première page).
|
||||
* @param string|null $value Value to set for the prev property.
|
||||
*/
|
||||
public function setPrev(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the prev property.
|
||||
*/
|
||||
public function setPrev(?string $value): void
|
||||
{
|
||||
$this->prev = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
168
client/Models/PaginationMeta.php
Executable file → Normal file
168
client/Models/PaginationMeta.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,123 +11,132 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Métadonnées de pagination.
|
||||
*/
|
||||
class PaginationMeta implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class PaginationMeta implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var PaginationLinks|null $links Liens de navigation HATEOAS pour la pagination.
|
||||
*/
|
||||
* @var PaginationLinks|null Liens de navigation HATEOAS pour la pagination.
|
||||
*/
|
||||
private ?PaginationLinks $links = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $page Index de la page courante (1-based).
|
||||
*/
|
||||
* @var int|null Index de la page courante (1-based).
|
||||
*/
|
||||
private ?int $page = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $pageSize Nombre d'éléments par page.
|
||||
*/
|
||||
* @var int|null Nombre d'éléments par page.
|
||||
*/
|
||||
private ?int $pageSize = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $totalItems Nombre total d'éléments correspondant aux filtres.
|
||||
*/
|
||||
* @var int|null Nombre total d'éléments correspondant aux filtres.
|
||||
*/
|
||||
private ?int $totalItems = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $totalPages Nombre total de pages disponibles.
|
||||
*/
|
||||
* @var int|null Nombre total de pages disponibles.
|
||||
*/
|
||||
private ?int $totalPages = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new PaginationMeta and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return PaginationMeta
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): PaginationMeta {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): PaginationMeta
|
||||
{
|
||||
return new PaginationMeta();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'links' => fn(ParseNode $n) => $o->setLinks($n->getObjectValue([PaginationLinks::class, 'createFromDiscriminatorValue'])),
|
||||
'page' => fn(ParseNode $n) => $o->setPage($n->getIntegerValue()),
|
||||
'pageSize' => fn(ParseNode $n) => $o->setPageSize($n->getIntegerValue()),
|
||||
'totalItems' => fn(ParseNode $n) => $o->setTotalItems($n->getIntegerValue()),
|
||||
'totalPages' => fn(ParseNode $n) => $o->setTotalPages($n->getIntegerValue()),
|
||||
|
||||
return [
|
||||
'links' => fn (ParseNode $n) => $o->setLinks($n->getObjectValue([PaginationLinks::class, 'createFromDiscriminatorValue'])),
|
||||
'page' => fn (ParseNode $n) => $o->setPage($n->getIntegerValue()),
|
||||
'pageSize' => fn (ParseNode $n) => $o->setPageSize($n->getIntegerValue()),
|
||||
'totalItems' => fn (ParseNode $n) => $o->setTotalItems($n->getIntegerValue()),
|
||||
'totalPages' => fn (ParseNode $n) => $o->setTotalPages($n->getIntegerValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the links property value. Liens de navigation HATEOAS pour la pagination.
|
||||
* @return PaginationLinks|null
|
||||
*/
|
||||
public function getLinks(): ?PaginationLinks {
|
||||
*/
|
||||
public function getLinks(): ?PaginationLinks
|
||||
{
|
||||
return $this->links;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the page property value. Index de la page courante (1-based).
|
||||
* @return int|null
|
||||
*/
|
||||
public function getPage(): ?int {
|
||||
*/
|
||||
public function getPage(): ?int
|
||||
{
|
||||
return $this->page;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the pageSize property value. Nombre d'éléments par page.
|
||||
* @return int|null
|
||||
*/
|
||||
public function getPageSize(): ?int {
|
||||
*/
|
||||
public function getPageSize(): ?int
|
||||
{
|
||||
return $this->pageSize;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the totalItems property value. Nombre total d'éléments correspondant aux filtres.
|
||||
* @return int|null
|
||||
*/
|
||||
public function getTotalItems(): ?int {
|
||||
*/
|
||||
public function getTotalItems(): ?int
|
||||
{
|
||||
return $this->totalItems;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the totalPages property value. Nombre total de pages disponibles.
|
||||
* @return int|null
|
||||
*/
|
||||
public function getTotalPages(): ?int {
|
||||
*/
|
||||
public function getTotalPages(): ?int
|
||||
{
|
||||
return $this->totalPages;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeObjectValue('links', $this->getLinks());
|
||||
$writer->writeIntegerValue('page', $this->getPage());
|
||||
$writer->writeIntegerValue('pageSize', $this->getPageSize());
|
||||
|
|
@ -136,50 +147,61 @@ class PaginationMeta implements AdditionalDataHolder, Parsable
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the links property value. Liens de navigation HATEOAS pour la pagination.
|
||||
* @param PaginationLinks|null $value Value to set for the links property.
|
||||
*/
|
||||
public function setLinks(?PaginationLinks $value): void {
|
||||
*
|
||||
* @param PaginationLinks|null $value Value to set for the links property.
|
||||
*/
|
||||
public function setLinks(?PaginationLinks $value): void
|
||||
{
|
||||
$this->links = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the page property value. Index de la page courante (1-based).
|
||||
* @param int|null $value Value to set for the page property.
|
||||
*/
|
||||
public function setPage(?int $value): void {
|
||||
*
|
||||
* @param int|null $value Value to set for the page property.
|
||||
*/
|
||||
public function setPage(?int $value): void
|
||||
{
|
||||
$this->page = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the pageSize property value. Nombre d'éléments par page.
|
||||
* @param int|null $value Value to set for the pageSize property.
|
||||
*/
|
||||
public function setPageSize(?int $value): void {
|
||||
*
|
||||
* @param int|null $value Value to set for the pageSize property.
|
||||
*/
|
||||
public function setPageSize(?int $value): void
|
||||
{
|
||||
$this->pageSize = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the totalItems property value. Nombre total d'éléments correspondant aux filtres.
|
||||
* @param int|null $value Value to set for the totalItems property.
|
||||
*/
|
||||
public function setTotalItems(?int $value): void {
|
||||
*
|
||||
* @param int|null $value Value to set for the totalItems property.
|
||||
*/
|
||||
public function setTotalItems(?int $value): void
|
||||
{
|
||||
$this->totalItems = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the totalPages property value. Nombre total de pages disponibles.
|
||||
* @param int|null $value Value to set for the totalPages property.
|
||||
*/
|
||||
public function setTotalPages(?int $value): void {
|
||||
*
|
||||
* @param int|null $value Value to set for the totalPages property.
|
||||
*/
|
||||
public function setTotalPages(?int $value): void
|
||||
{
|
||||
$this->totalPages = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
80
client/Models/PercentageValue.php
Executable file → Normal file
80
client/Models/PercentageValue.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\Serialization\AdditionalDataHolder;
|
||||
|
|
@ -9,85 +11,97 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Valeur sous forme de pourcentage (0-100%).
|
||||
*/
|
||||
class PercentageValue implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class PercentageValue implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $value The value property
|
||||
*/
|
||||
* @var string|null The value property
|
||||
*/
|
||||
private ?string $value = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new PercentageValue and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return PercentageValue
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): PercentageValue {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): PercentageValue
|
||||
{
|
||||
return new PercentageValue();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'value' => fn(ParseNode $n) => $o->setValue($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'value' => fn (ParseNode $n) => $o->setValue($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the value property value. The value property
|
||||
* @return string|null
|
||||
*/
|
||||
public function getValue(): ?string {
|
||||
*/
|
||||
public function getValue(): ?string
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('value', $this->getValue());
|
||||
$writer->writeAdditionalData($this->getAdditionalData());
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the value property value. The value property
|
||||
* @param string|null $value Value to set for the value property.
|
||||
*/
|
||||
public function setValue(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the value property.
|
||||
*/
|
||||
public function setValue(?string $value): void
|
||||
{
|
||||
$this->value = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
175
client/Models/ProblemDetails.php
Executable file → Normal file
175
client/Models/ProblemDetails.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\ApiException;
|
||||
|
|
@ -10,132 +12,140 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Format d'erreur standardisé RFC 7807 (Problem Details for HTTP APIs).
|
||||
*/
|
||||
class ProblemDetails extends ApiException implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class ProblemDetails extends ApiException implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $detail Explication humaine détaillée de l'erreur.
|
||||
*/
|
||||
* @var string|null Explication humaine détaillée de l'erreur.
|
||||
*/
|
||||
private ?string $detail = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $instance URI de l'endpoint ayant généré l'erreur.
|
||||
*/
|
||||
* @var string|null URI de l'endpoint ayant généré l'erreur.
|
||||
*/
|
||||
private ?string $instance = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $status Code statut HTTP.
|
||||
*/
|
||||
* @var int|null Code statut HTTP.
|
||||
*/
|
||||
private ?int $status = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $title Titre court lisible résumant le problème.
|
||||
*/
|
||||
* @var string|null Titre court lisible résumant le problème.
|
||||
*/
|
||||
private ?string $title = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $type URI identifiant le type de problème.
|
||||
*/
|
||||
* @var string|null URI identifiant le type de problème.
|
||||
*/
|
||||
private ?string $type = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new ProblemDetails and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return ProblemDetails
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): ProblemDetails {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): ProblemDetails
|
||||
{
|
||||
return new ProblemDetails();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the detail property value. Explication humaine détaillée de l'erreur.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getDetail(): ?string {
|
||||
*/
|
||||
public function getDetail(): ?string
|
||||
{
|
||||
return $this->detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'detail' => fn(ParseNode $n) => $o->setDetail($n->getStringValue()),
|
||||
'instance' => fn(ParseNode $n) => $o->setInstance($n->getStringValue()),
|
||||
'status' => fn(ParseNode $n) => $o->setStatus($n->getIntegerValue()),
|
||||
'title' => fn(ParseNode $n) => $o->setTitle($n->getStringValue()),
|
||||
'type' => fn(ParseNode $n) => $o->setType($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'detail' => fn (ParseNode $n) => $o->setDetail($n->getStringValue()),
|
||||
'instance' => fn (ParseNode $n) => $o->setInstance($n->getStringValue()),
|
||||
'status' => fn (ParseNode $n) => $o->setStatus($n->getIntegerValue()),
|
||||
'title' => fn (ParseNode $n) => $o->setTitle($n->getStringValue()),
|
||||
'type' => fn (ParseNode $n) => $o->setType($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the instance property value. URI de l'endpoint ayant généré l'erreur.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getInstance(): ?string {
|
||||
*/
|
||||
public function getInstance(): ?string
|
||||
{
|
||||
return $this->instance;
|
||||
}
|
||||
|
||||
/**
|
||||
* The primary error message.
|
||||
* @return string
|
||||
*/
|
||||
public function getPrimaryErrorMessage(): string {
|
||||
*/
|
||||
public function getPrimaryErrorMessage(): string
|
||||
{
|
||||
return parent::getMessage();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the status property value. Code statut HTTP.
|
||||
* @return int|null
|
||||
*/
|
||||
public function getStatus(): ?int {
|
||||
*/
|
||||
public function getStatus(): ?int
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the title property value. Titre court lisible résumant le problème.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getTitle(): ?string {
|
||||
*/
|
||||
public function getTitle(): ?string
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the type property value. URI identifiant le type de problème.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getType(): ?string {
|
||||
*/
|
||||
public function getType(): ?string
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('detail', $this->getDetail());
|
||||
$writer->writeStringValue('instance', $this->getInstance());
|
||||
$writer->writeIntegerValue('status', $this->getStatus());
|
||||
|
|
@ -146,50 +156,61 @@ class ProblemDetails extends ApiException implements AdditionalDataHolder, Parsa
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the detail property value. Explication humaine détaillée de l'erreur.
|
||||
* @param string|null $value Value to set for the detail property.
|
||||
*/
|
||||
public function setDetail(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the detail property.
|
||||
*/
|
||||
public function setDetail(?string $value): void
|
||||
{
|
||||
$this->detail = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the instance property value. URI de l'endpoint ayant généré l'erreur.
|
||||
* @param string|null $value Value to set for the instance property.
|
||||
*/
|
||||
public function setInstance(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the instance property.
|
||||
*/
|
||||
public function setInstance(?string $value): void
|
||||
{
|
||||
$this->instance = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the status property value. Code statut HTTP.
|
||||
* @param int|null $value Value to set for the status property.
|
||||
*/
|
||||
public function setStatus(?int $value): void {
|
||||
*
|
||||
* @param int|null $value Value to set for the status property.
|
||||
*/
|
||||
public function setStatus(?int $value): void
|
||||
{
|
||||
$this->status = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the title property value. Titre court lisible résumant le problème.
|
||||
* @param string|null $value Value to set for the title property.
|
||||
*/
|
||||
public function setTitle(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the title property.
|
||||
*/
|
||||
public function setTitle(?string $value): void
|
||||
{
|
||||
$this->title = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the type property value. URI identifiant le type de problème.
|
||||
* @param string|null $value Value to set for the type property.
|
||||
*/
|
||||
public function setType(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the type property.
|
||||
*/
|
||||
public function setType(?string $value): void
|
||||
{
|
||||
$this->type = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
175
client/Models/ValidationErrorProblemDetails.php
Executable file → Normal file
175
client/Models/ValidationErrorProblemDetails.php
Executable file → Normal file
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Uwil\ArcadiaKiotaOpenApiClient\Models;
|
||||
|
||||
use Microsoft\Kiota\Abstractions\ApiException;
|
||||
|
|
@ -10,132 +12,142 @@ use Microsoft\Kiota\Abstractions\Serialization\SerializationWriter;
|
|||
|
||||
/**
|
||||
* Format RFC 7807 pour les erreurs de validation HTTP (422 Unprocessable Entity).
|
||||
*/
|
||||
class ValidationErrorProblemDetails extends ApiException implements AdditionalDataHolder, Parsable
|
||||
*/
|
||||
class ValidationErrorProblemDetails extends ApiException implements AdditionalDataHolder, Parsable
|
||||
{
|
||||
/**
|
||||
* @var array<string, mixed>|null $additionalData Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
* @var array<string, mixed>|null Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*/
|
||||
private ?array $additionalData = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $detail Message d'ensemble.
|
||||
*/
|
||||
* @var string|null Message d'ensemble.
|
||||
*/
|
||||
private ?string $detail = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var array<InvalidParamItem>|null $invalidParams Liste des paramètres invalides et motifs.
|
||||
*/
|
||||
* @var array<InvalidParamItem>|null Liste des paramètres invalides et motifs.
|
||||
*/
|
||||
private ?array $invalidParams = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var int|null $status Code HTTP (422).
|
||||
*/
|
||||
* @var int|null Code HTTP (422).
|
||||
*/
|
||||
private ?int $status = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $title Titre de l'erreur.
|
||||
*/
|
||||
* @var string|null Titre de l'erreur.
|
||||
*/
|
||||
private ?string $title = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string|null $type URI identifiant l'erreur de validation.
|
||||
*/
|
||||
* @var string|null URI identifiant l'erreur de validation.
|
||||
*/
|
||||
private ?string $type = null;
|
||||
|
||||
|
||||
/**
|
||||
* Instantiates a new ValidationErrorProblemDetails and sets the default values.
|
||||
*/
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setAdditionalData([]);
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new instance of the appropriate class based on discriminator value
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
* @return ValidationErrorProblemDetails
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): ValidationErrorProblemDetails {
|
||||
*
|
||||
* @param ParseNode $parseNode The parse node to use to read the discriminator value and create the object
|
||||
*/
|
||||
public static function createFromDiscriminatorValue(ParseNode $parseNode): ValidationErrorProblemDetails
|
||||
{
|
||||
return new ValidationErrorProblemDetails();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
*
|
||||
* @return array<string, mixed>|null
|
||||
*/
|
||||
public function getAdditionalData(): ?array {
|
||||
*/
|
||||
public function getAdditionalData(): ?array
|
||||
{
|
||||
return $this->additionalData;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the detail property value. Message d'ensemble.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getDetail(): ?string {
|
||||
*/
|
||||
public function getDetail(): ?string
|
||||
{
|
||||
return $this->detail;
|
||||
}
|
||||
|
||||
/**
|
||||
* The deserialization information for the current model
|
||||
*
|
||||
* @return array<string, callable(ParseNode): void>
|
||||
*/
|
||||
public function getFieldDeserializers(): array {
|
||||
*/
|
||||
public function getFieldDeserializers(): array
|
||||
{
|
||||
$o = $this;
|
||||
return [
|
||||
'detail' => fn(ParseNode $n) => $o->setDetail($n->getStringValue()),
|
||||
'invalidParams' => fn(ParseNode $n) => $o->setInvalidParams($n->getCollectionOfObjectValues([InvalidParamItem::class, 'createFromDiscriminatorValue'])),
|
||||
'status' => fn(ParseNode $n) => $o->setStatus($n->getIntegerValue()),
|
||||
'title' => fn(ParseNode $n) => $o->setTitle($n->getStringValue()),
|
||||
'type' => fn(ParseNode $n) => $o->setType($n->getStringValue()),
|
||||
|
||||
return [
|
||||
'detail' => fn (ParseNode $n) => $o->setDetail($n->getStringValue()),
|
||||
'invalidParams' => fn (ParseNode $n) => $o->setInvalidParams($n->getCollectionOfObjectValues([InvalidParamItem::class, 'createFromDiscriminatorValue'])),
|
||||
'status' => fn (ParseNode $n) => $o->setStatus($n->getIntegerValue()),
|
||||
'title' => fn (ParseNode $n) => $o->setTitle($n->getStringValue()),
|
||||
'type' => fn (ParseNode $n) => $o->setType($n->getStringValue()),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the invalidParams property value. Liste des paramètres invalides et motifs.
|
||||
*
|
||||
* @return array<InvalidParamItem>|null
|
||||
*/
|
||||
public function getInvalidParams(): ?array {
|
||||
*/
|
||||
public function getInvalidParams(): ?array
|
||||
{
|
||||
return $this->invalidParams;
|
||||
}
|
||||
|
||||
/**
|
||||
* The primary error message.
|
||||
* @return string
|
||||
*/
|
||||
public function getPrimaryErrorMessage(): string {
|
||||
*/
|
||||
public function getPrimaryErrorMessage(): string
|
||||
{
|
||||
return parent::getMessage();
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the status property value. Code HTTP (422).
|
||||
* @return int|null
|
||||
*/
|
||||
public function getStatus(): ?int {
|
||||
*/
|
||||
public function getStatus(): ?int
|
||||
{
|
||||
return $this->status;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the title property value. Titre de l'erreur.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getTitle(): ?string {
|
||||
*/
|
||||
public function getTitle(): ?string
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the type property value. URI identifiant l'erreur de validation.
|
||||
* @return string|null
|
||||
*/
|
||||
public function getType(): ?string {
|
||||
*/
|
||||
public function getType(): ?string
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Serializes information the current object
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void {
|
||||
*
|
||||
* @param SerializationWriter $writer Serialization writer to use to serialize this model
|
||||
*/
|
||||
public function serialize(SerializationWriter $writer): void
|
||||
{
|
||||
$writer->writeStringValue('detail', $this->getDetail());
|
||||
$writer->writeCollectionOfObjectValues('invalidParams', $this->getInvalidParams());
|
||||
$writer->writeIntegerValue('status', $this->getStatus());
|
||||
|
|
@ -146,50 +158,61 @@ class ValidationErrorProblemDetails extends ApiException implements AdditionalDa
|
|||
|
||||
/**
|
||||
* Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void {
|
||||
*
|
||||
* @param array<string,mixed> $value Value to set for the AdditionalData property.
|
||||
*/
|
||||
public function setAdditionalData(?array $value): void
|
||||
{
|
||||
$this->additionalData = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the detail property value. Message d'ensemble.
|
||||
* @param string|null $value Value to set for the detail property.
|
||||
*/
|
||||
public function setDetail(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the detail property.
|
||||
*/
|
||||
public function setDetail(?string $value): void
|
||||
{
|
||||
$this->detail = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the invalidParams property value. Liste des paramètres invalides et motifs.
|
||||
* @param array<InvalidParamItem>|null $value Value to set for the invalidParams property.
|
||||
*/
|
||||
public function setInvalidParams(?array $value): void {
|
||||
*
|
||||
* @param array<InvalidParamItem>|null $value Value to set for the invalidParams property.
|
||||
*/
|
||||
public function setInvalidParams(?array $value): void
|
||||
{
|
||||
$this->invalidParams = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the status property value. Code HTTP (422).
|
||||
* @param int|null $value Value to set for the status property.
|
||||
*/
|
||||
public function setStatus(?int $value): void {
|
||||
*
|
||||
* @param int|null $value Value to set for the status property.
|
||||
*/
|
||||
public function setStatus(?int $value): void
|
||||
{
|
||||
$this->status = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the title property value. Titre de l'erreur.
|
||||
* @param string|null $value Value to set for the title property.
|
||||
*/
|
||||
public function setTitle(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the title property.
|
||||
*/
|
||||
public function setTitle(?string $value): void
|
||||
{
|
||||
$this->title = $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the type property value. URI identifiant l'erreur de validation.
|
||||
* @param string|null $value Value to set for the type property.
|
||||
*/
|
||||
public function setType(?string $value): void {
|
||||
*
|
||||
* @param string|null $value Value to set for the type property.
|
||||
*/
|
||||
public function setType(?string $value): void
|
||||
{
|
||||
$this->type = $value;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
4
client/kiota-lock.json
Executable file → Normal file
4
client/kiota-lock.json
Executable file → Normal file
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"descriptionHash": "1A08D0E5AD3E60A83AC393F49D7FA575A18BF25E507ACAA9794E009C8AC0CCF4BE88DA7CCE4520E9C037E7567F4612B606371E758C187A8F9255F0A7FB8FF0BA",
|
||||
"descriptionHash": "A3C82067F8B5D2502F30C767911FBC7BA124839F21620CA6560D67066F53AE8F4D897148A76368730F67369448BFF3F1CD36932561DFC5E8E356B57EA71F5608",
|
||||
"descriptionLocation": "../openapi.yaml",
|
||||
"lockFileVersion": "1.0.0",
|
||||
"kiotaVersion": "1.29.1",
|
||||
"kiotaVersion": "1.34.1-Version suffix set to preview.202608200001",
|
||||
"clientClassName": "ApiClient",
|
||||
"typeAccessModifier": "Private",
|
||||
"clientNamespaceName": "Uwil\\ArcadiaKiotaOpenApiClient",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue