Skip to content

Commit

Permalink
Upgrade after onfido-openapi-spec change 9ab76fa
Browse files Browse the repository at this point in the history
  • Loading branch information
dvacca-onfido authored and github-actions[bot] committed Dec 19, 2024
1 parent c578738 commit f2bc46a
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .release.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"source": {
"repo_url": "https://github.com/onfido/onfido-openapi-spec",
"short_sha": "8c793a1",
"long_sha": "8c793a1c8307dcd92fa657edb2a1e9b184c15278",
"version": "v4.3.0"
"short_sha": "9ab76fa",
"long_sha": "9ab76fa6174c86cb255b24501607b27ba304153c",
"version": "v4.4.0"
},
"release": "v8.3.0"
"release": "v8.4.0"
}
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onfido/onfido-php",
"version": "8.3.0",
"version": "8.4.0",
"description": "The Onfido API (v3.6)",
"keywords": [
"openapitools",
Expand Down
2 changes: 1 addition & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 24 additions & 9 deletions lib/Api/DefaultApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -17800,15 +17800,16 @@ public function listWebhooksRequest(string $contentType = self::contentTypes['li
* @param \DateTime $created_at_gt A ISO-8601 date to filter results with a created date greater than (after) the one provided. (optional)
* @param \DateTime $created_at_lt A ISO-8601 date to filter results with a created date less than (before) the one provided. (optional)
* @param string $sort A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (optional, default to 'desc')
* @param string $applicant_id the applicant's id. (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listWorkflowRuns'] to see the possible values for this operation
*
* @throws \Onfido\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return \Onfido\Model\WorkflowRun[]|\Onfido\Model\Error
*/
public function listWorkflowRuns($page = 1, $status = null, $created_at_gt = null, $created_at_lt = null, $sort = 'desc', string $contentType = self::contentTypes['listWorkflowRuns'][0])
public function listWorkflowRuns($page = 1, $status = null, $created_at_gt = null, $created_at_lt = null, $sort = 'desc', $applicant_id = null, string $contentType = self::contentTypes['listWorkflowRuns'][0])
{
list($response) = $this->listWorkflowRunsWithHttpInfo($page, $status, $created_at_gt, $created_at_lt, $sort, $contentType);
list($response) = $this->listWorkflowRunsWithHttpInfo($page, $status, $created_at_gt, $created_at_lt, $sort, $applicant_id, $contentType);
return $response;
}

Expand All @@ -17822,15 +17823,16 @@ public function listWorkflowRuns($page = 1, $status = null, $created_at_gt = nul
* @param \DateTime $created_at_gt A ISO-8601 date to filter results with a created date greater than (after) the one provided. (optional)
* @param \DateTime $created_at_lt A ISO-8601 date to filter results with a created date less than (before) the one provided. (optional)
* @param string $sort A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (optional, default to 'desc')
* @param string $applicant_id the applicant's id. (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listWorkflowRuns'] to see the possible values for this operation
*
* @throws \Onfido\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return array of \Onfido\Model\WorkflowRun[]|\Onfido\Model\Error, HTTP status code, HTTP response headers (array of strings)
*/
public function listWorkflowRunsWithHttpInfo($page = 1, $status = null, $created_at_gt = null, $created_at_lt = null, $sort = 'desc', string $contentType = self::contentTypes['listWorkflowRuns'][0])
public function listWorkflowRunsWithHttpInfo($page = 1, $status = null, $created_at_gt = null, $created_at_lt = null, $sort = 'desc', $applicant_id = null, string $contentType = self::contentTypes['listWorkflowRuns'][0])
{
$request = $this->listWorkflowRunsRequest($page, $status, $created_at_gt, $created_at_lt, $sort, $contentType);
$request = $this->listWorkflowRunsRequest($page, $status, $created_at_gt, $created_at_lt, $sort, $applicant_id, $contentType);

try {
$options = $this->createHttpClientOption();
Expand Down Expand Up @@ -17986,14 +17988,15 @@ public function listWorkflowRunsWithHttpInfo($page = 1, $status = null, $created
* @param \DateTime $created_at_gt A ISO-8601 date to filter results with a created date greater than (after) the one provided. (optional)
* @param \DateTime $created_at_lt A ISO-8601 date to filter results with a created date less than (before) the one provided. (optional)
* @param string $sort A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (optional, default to 'desc')
* @param string $applicant_id the applicant's id. (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listWorkflowRuns'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function listWorkflowRunsAsync($page = 1, $status = null, $created_at_gt = null, $created_at_lt = null, $sort = 'desc', string $contentType = self::contentTypes['listWorkflowRuns'][0])
public function listWorkflowRunsAsync($page = 1, $status = null, $created_at_gt = null, $created_at_lt = null, $sort = 'desc', $applicant_id = null, string $contentType = self::contentTypes['listWorkflowRuns'][0])
{
return $this->listWorkflowRunsAsyncWithHttpInfo($page, $status, $created_at_gt, $created_at_lt, $sort, $contentType)
return $this->listWorkflowRunsAsyncWithHttpInfo($page, $status, $created_at_gt, $created_at_lt, $sort, $applicant_id, $contentType)
->then(
function ($response) {
return $response[0];
Expand All @@ -18011,15 +18014,16 @@ function ($response) {
* @param \DateTime $created_at_gt A ISO-8601 date to filter results with a created date greater than (after) the one provided. (optional)
* @param \DateTime $created_at_lt A ISO-8601 date to filter results with a created date less than (before) the one provided. (optional)
* @param string $sort A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (optional, default to 'desc')
* @param string $applicant_id the applicant's id. (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listWorkflowRuns'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Promise\PromiseInterface
*/
public function listWorkflowRunsAsyncWithHttpInfo($page = 1, $status = null, $created_at_gt = null, $created_at_lt = null, $sort = 'desc', string $contentType = self::contentTypes['listWorkflowRuns'][0])
public function listWorkflowRunsAsyncWithHttpInfo($page = 1, $status = null, $created_at_gt = null, $created_at_lt = null, $sort = 'desc', $applicant_id = null, string $contentType = self::contentTypes['listWorkflowRuns'][0])
{
$returnType = '\Onfido\Model\WorkflowRun[]';
$request = $this->listWorkflowRunsRequest($page, $status, $created_at_gt, $created_at_lt, $sort, $contentType);
$request = $this->listWorkflowRunsRequest($page, $status, $created_at_gt, $created_at_lt, $sort, $applicant_id, $contentType);

return $this->client
->sendAsync($request, $this->createHttpClientOption())
Expand Down Expand Up @@ -18065,12 +18069,13 @@ function ($exception) {
* @param \DateTime $created_at_gt A ISO-8601 date to filter results with a created date greater than (after) the one provided. (optional)
* @param \DateTime $created_at_lt A ISO-8601 date to filter results with a created date less than (before) the one provided. (optional)
* @param string $sort A string with the value 'desc' or 'asc' that allows to sort the returned list by the completed datetime either descending or ascending, respectively. If not specified, defaults to 'desc'. (optional, default to 'desc')
* @param string $applicant_id the applicant's id. (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listWorkflowRuns'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
* @return \GuzzleHttp\Psr7\Request
*/
public function listWorkflowRunsRequest($page = 1, $status = null, $created_at_gt = null, $created_at_lt = null, $sort = 'desc', string $contentType = self::contentTypes['listWorkflowRuns'][0])
public function listWorkflowRunsRequest($page = 1, $status = null, $created_at_gt = null, $created_at_lt = null, $sort = 'desc', $applicant_id = null, string $contentType = self::contentTypes['listWorkflowRuns'][0])
{


Expand All @@ -18079,6 +18084,7 @@ public function listWorkflowRunsRequest($page = 1, $status = null, $created_at_g




$resourcePath = '/workflow_runs';
$formParams = [];
$queryParams = [];
Expand Down Expand Up @@ -18131,6 +18137,15 @@ public function listWorkflowRunsRequest($page = 1, $status = null, $created_at_g
false, // explode
false // required
) ?? []);
// query params
$queryParams = array_merge($queryParams, ObjectSerializer::toQueryValue(
$applicant_id,
'applicant_id', // param base name
'string', // openApiType
'', // style
false, // explode
false // required
) ?? []);



Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'onfido-php/8.3.0';
protected $userAgent = 'onfido-php/8.4.0';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -404,7 +404,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: v3.6' . PHP_EOL;
$report .= ' SDK Package Version: 8.3.0' . PHP_EOL;
$report .= ' SDK Package Version: 8.4.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
6 changes: 6 additions & 0 deletions lib/Model/WebhookEventResourceType.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ class WebhookEventResourceType

public const WATCHLIST_MONITOR = 'watchlist_monitor';

public const WORKFLOW_TIMELINE_FILE = 'workflow_timeline_file';

public const WORKFLOW_RUN_EVIDENCE_FOLDER = 'workflow_run_evidence_folder';

public const UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api';

/**
Expand All @@ -69,6 +73,8 @@ public static function getAllowableEnumValues()
self::WORKFLOW_RUN,
self::WORKFLOW_TASK,
self::WATCHLIST_MONITOR,
self::WORKFLOW_TIMELINE_FILE,
self::WORKFLOW_RUN_EVIDENCE_FOLDER,
self::UNKNOWN_DEFAULT_OPEN_API
];
}
Expand Down
3 changes: 3 additions & 0 deletions lib/Model/WebhookEventType.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ class WebhookEventType

public const WORKFLOW_SIGNED_EVIDENCE_FILE_CREATED = 'workflow_signed_evidence_file.created';

public const WORKFLOW_RUN_EVIDENCE_FOLDER_CREATED = 'workflow_run_evidence_folder.created';

public const UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api';

/**
Expand All @@ -102,6 +104,7 @@ public static function getAllowableEnumValues()
self::REPORT_COMPLETED,
self::WORKFLOW_TIMELINE_FILE_CREATED,
self::WORKFLOW_SIGNED_EVIDENCE_FILE_CREATED,
self::WORKFLOW_RUN_EVIDENCE_FOLDER_CREATED,
self::UNKNOWN_DEFAULT_OPEN_API
];
}
Expand Down

0 comments on commit f2bc46a

Please sign in to comment.