Skip to content

Commit

Permalink
Merge pull request #59 from onfido/release-upgrade
Browse files Browse the repository at this point in the history
Refresh onfido-php after onfido-openapi-spec update (f941ec8)
  • Loading branch information
dvacca-onfido authored Jul 24, 2024
2 parents 16fe613 + b22476e commit 6c6f09b
Show file tree
Hide file tree
Showing 9 changed files with 234 additions and 26 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": "40b86a1",
"long_sha": "40b86a1c8ec8687c15514470f60428b3e7633968",
"version": "v3.2.0"
"short_sha": "f941ec8",
"long_sha": "f941ec84c3aeb0d3fcceea537991ba7e1ac96414",
"version": "v3.3.0"
},
"release": "v7.2.0"
"release": "v7.3.0"
}
12 changes: 6 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
## v7.2.0 17th July 2024

- Release based on Onfido OpenAPI spec version [v3.2.0](https://github.com/onfido/onfido-openapi-spec/releases/tag/v3.2.0):
- [CAT-1289] Document report's properties: Add middle name
- chore(qes): add documents endpoint
- [CAT-1297] Webhook Event: remove uuid format from object.id
- fix(qes): fix download document http method
- Add started_at_iso8601 field in webhook event
- add jpeg file type for documents
- [CAT-1289] Document report's properties: Add middle name
- chore(qes): add documents endpoint
- [CAT-1297] Webhook Event: remove uuid format from object.id
- fix(qes): fix download document http method
- Add started_at_iso8601 field in webhook event
- add jpeg file type for documents

## v7.1.0 3rd July 2024

Expand Down
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": "7.2.0",
"version": "7.3.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.

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/7.2.0';
protected $userAgent = 'onfido-php/7.3.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: 7.2.0' . PHP_EOL;
$report .= ' SDK Package Version: 7.3.0' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
95 changes: 89 additions & 6 deletions lib/Model/WorkflowRun.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class WorkflowRun implements ModelInterface, ArrayAccess, \JsonSerializable
'applicant_id' => 'string',
'workflow_id' => 'string',
'tags' => 'string[]',
'customer_user_id' => 'string',
'link' => '\Onfido\Model\WorkflowRunSharedLink',
'created_at' => '\DateTime',
'updated_at' => '\DateTime',
Expand All @@ -69,7 +70,8 @@ class WorkflowRun implements ModelInterface, ArrayAccess, \JsonSerializable
'status' => 'string',
'output' => 'object',
'reasons' => 'string[]',
'error' => '\Onfido\Model\WorkflowRunResponseError'
'error' => '\Onfido\Model\WorkflowRunResponseError',
'sdk_token' => 'string'
];

/**
Expand All @@ -83,6 +85,7 @@ class WorkflowRun implements ModelInterface, ArrayAccess, \JsonSerializable
'applicant_id' => 'uuid',
'workflow_id' => 'uuid',
'tags' => null,
'customer_user_id' => null,
'link' => null,
'created_at' => 'date-time',
'updated_at' => 'date-time',
Expand All @@ -92,7 +95,8 @@ class WorkflowRun implements ModelInterface, ArrayAccess, \JsonSerializable
'status' => null,
'output' => null,
'reasons' => null,
'error' => null
'error' => null,
'sdk_token' => null
];

/**
Expand All @@ -104,6 +108,7 @@ class WorkflowRun implements ModelInterface, ArrayAccess, \JsonSerializable
'applicant_id' => false,
'workflow_id' => false,
'tags' => true,
'customer_user_id' => false,
'link' => false,
'created_at' => false,
'updated_at' => false,
Expand All @@ -113,7 +118,8 @@ class WorkflowRun implements ModelInterface, ArrayAccess, \JsonSerializable
'status' => false,
'output' => false,
'reasons' => false,
'error' => false
'error' => false,
'sdk_token' => true
];

/**
Expand Down Expand Up @@ -205,6 +211,7 @@ public function isNullableSetToNull(string $property): bool
'applicant_id' => 'applicant_id',
'workflow_id' => 'workflow_id',
'tags' => 'tags',
'customer_user_id' => 'customer_user_id',
'link' => 'link',
'created_at' => 'created_at',
'updated_at' => 'updated_at',
Expand All @@ -214,7 +221,8 @@ public function isNullableSetToNull(string $property): bool
'status' => 'status',
'output' => 'output',
'reasons' => 'reasons',
'error' => 'error'
'error' => 'error',
'sdk_token' => 'sdk_token'
];

/**
Expand All @@ -226,6 +234,7 @@ public function isNullableSetToNull(string $property): bool
'applicant_id' => 'setApplicantId',
'workflow_id' => 'setWorkflowId',
'tags' => 'setTags',
'customer_user_id' => 'setCustomerUserId',
'link' => 'setLink',
'created_at' => 'setCreatedAt',
'updated_at' => 'setUpdatedAt',
Expand All @@ -235,7 +244,8 @@ public function isNullableSetToNull(string $property): bool
'status' => 'setStatus',
'output' => 'setOutput',
'reasons' => 'setReasons',
'error' => 'setError'
'error' => 'setError',
'sdk_token' => 'setSdkToken'
];

/**
Expand All @@ -247,6 +257,7 @@ public function isNullableSetToNull(string $property): bool
'applicant_id' => 'getApplicantId',
'workflow_id' => 'getWorkflowId',
'tags' => 'getTags',
'customer_user_id' => 'getCustomerUserId',
'link' => 'getLink',
'created_at' => 'getCreatedAt',
'updated_at' => 'getUpdatedAt',
Expand All @@ -256,7 +267,8 @@ public function isNullableSetToNull(string $property): bool
'status' => 'getStatus',
'output' => 'getOutput',
'reasons' => 'getReasons',
'error' => 'getError'
'error' => 'getError',
'sdk_token' => 'getSdkToken'
];

/**
Expand Down Expand Up @@ -346,6 +358,7 @@ public function __construct(array $data = null)
$this->setIfExists('applicant_id', $data ?? [], null);
$this->setIfExists('workflow_id', $data ?? [], null);
$this->setIfExists('tags', $data ?? [], null);
$this->setIfExists('customer_user_id', $data ?? [], null);
$this->setIfExists('link', $data ?? [], null);
$this->setIfExists('created_at', $data ?? [], null);
$this->setIfExists('updated_at', $data ?? [], null);
Expand All @@ -356,6 +369,7 @@ public function __construct(array $data = null)
$this->setIfExists('output', $data ?? [], null);
$this->setIfExists('reasons', $data ?? [], null);
$this->setIfExists('error', $data ?? [], null);
$this->setIfExists('sdk_token', $data ?? [], null);
}

/**
Expand Down Expand Up @@ -395,6 +409,10 @@ public function listInvalidProperties()
$invalidProperties[] = "invalid value for 'tags', number of items must be less than or equal to 30.";
}

if (!is_null($this->container['customer_user_id']) && (mb_strlen($this->container['customer_user_id']) > 256)) {
$invalidProperties[] = "invalid value for 'customer_user_id', the character length must be smaller than or equal to 256.";
}

if ($this->container['id'] === null) {
$invalidProperties[] = "'id' can't be null";
}
Expand Down Expand Up @@ -514,6 +532,37 @@ public function setTags($tags)
return $this;
}

/**
* Gets customer_user_id
*
* @return string|null
*/
public function getCustomerUserId()
{
return $this->container['customer_user_id'];
}

/**
* Sets customer_user_id
*
* @param string|null $customer_user_id Customer-provided user identifier.
*
* @return self
*/
public function setCustomerUserId($customer_user_id)
{
if (is_null($customer_user_id)) {
throw new \InvalidArgumentException('non-nullable customer_user_id cannot be null');
}
if ((mb_strlen($customer_user_id) > 256)) {
throw new \InvalidArgumentException('invalid length for $customer_user_id when calling WorkflowRun., must be smaller than or equal to 256.');
}

$this->container['customer_user_id'] = $customer_user_id;

return $this;
}

/**
* Gets link
*
Expand Down Expand Up @@ -793,6 +842,40 @@ public function setError($error)

return $this;
}

/**
* Gets sdk_token
*
* @return string|null
*/
public function getSdkToken()
{
return $this->container['sdk_token'];
}

/**
* Sets sdk_token
*
* @param string|null $sdk_token Client token to use when loading this workflow run in the Onfido SDK.
*
* @return self
*/
public function setSdkToken($sdk_token)
{
if (is_null($sdk_token)) {
array_push($this->openAPINullablesSetToNull, 'sdk_token');
} else {
$nullablesSetToNull = $this->getOpenAPINullablesSetToNull();
$index = array_search('sdk_token', $nullablesSetToNull);
if ($index !== FALSE) {
unset($nullablesSetToNull[$index]);
$this->setOpenAPINullablesSetToNull($nullablesSetToNull);
}
}
$this->container['sdk_token'] = $sdk_token;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down
42 changes: 42 additions & 0 deletions lib/Model/WorkflowRunBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class WorkflowRunBuilder implements ModelInterface, ArrayAccess, \JsonSerializab
'applicant_id' => 'string',
'workflow_id' => 'string',
'tags' => 'string[]',
'customer_user_id' => 'string',
'link' => '\Onfido\Model\WorkflowRunSharedLink',
'created_at' => '\DateTime',
'updated_at' => '\DateTime',
Expand All @@ -77,6 +78,7 @@ class WorkflowRunBuilder implements ModelInterface, ArrayAccess, \JsonSerializab
'applicant_id' => 'uuid',
'workflow_id' => 'uuid',
'tags' => null,
'customer_user_id' => null,
'link' => null,
'created_at' => 'date-time',
'updated_at' => 'date-time',
Expand All @@ -92,6 +94,7 @@ class WorkflowRunBuilder implements ModelInterface, ArrayAccess, \JsonSerializab
'applicant_id' => false,
'workflow_id' => false,
'tags' => true,
'customer_user_id' => false,
'link' => false,
'created_at' => false,
'updated_at' => false,
Expand Down Expand Up @@ -187,6 +190,7 @@ public function isNullableSetToNull(string $property): bool
'applicant_id' => 'applicant_id',
'workflow_id' => 'workflow_id',
'tags' => 'tags',
'customer_user_id' => 'customer_user_id',
'link' => 'link',
'created_at' => 'created_at',
'updated_at' => 'updated_at',
Expand All @@ -202,6 +206,7 @@ public function isNullableSetToNull(string $property): bool
'applicant_id' => 'setApplicantId',
'workflow_id' => 'setWorkflowId',
'tags' => 'setTags',
'customer_user_id' => 'setCustomerUserId',
'link' => 'setLink',
'created_at' => 'setCreatedAt',
'updated_at' => 'setUpdatedAt',
Expand All @@ -217,6 +222,7 @@ public function isNullableSetToNull(string $property): bool
'applicant_id' => 'getApplicantId',
'workflow_id' => 'getWorkflowId',
'tags' => 'getTags',
'customer_user_id' => 'getCustomerUserId',
'link' => 'getLink',
'created_at' => 'getCreatedAt',
'updated_at' => 'getUpdatedAt',
Expand Down Expand Up @@ -283,6 +289,7 @@ public function __construct(array $data = null)
$this->setIfExists('applicant_id', $data ?? [], null);
$this->setIfExists('workflow_id', $data ?? [], null);
$this->setIfExists('tags', $data ?? [], null);
$this->setIfExists('customer_user_id', $data ?? [], null);
$this->setIfExists('link', $data ?? [], null);
$this->setIfExists('created_at', $data ?? [], null);
$this->setIfExists('updated_at', $data ?? [], null);
Expand Down Expand Up @@ -326,6 +333,10 @@ public function listInvalidProperties()
$invalidProperties[] = "invalid value for 'tags', number of items must be less than or equal to 30.";
}

if (!is_null($this->container['customer_user_id']) && (mb_strlen($this->container['customer_user_id']) > 256)) {
$invalidProperties[] = "invalid value for 'customer_user_id', the character length must be smaller than or equal to 256.";
}

return $invalidProperties;
}

Expand Down Expand Up @@ -433,6 +444,37 @@ public function setTags($tags)
return $this;
}

/**
* Gets customer_user_id
*
* @return string|null
*/
public function getCustomerUserId()
{
return $this->container['customer_user_id'];
}

/**
* Sets customer_user_id
*
* @param string|null $customer_user_id Customer-provided user identifier.
*
* @return self
*/
public function setCustomerUserId($customer_user_id)
{
if (is_null($customer_user_id)) {
throw new \InvalidArgumentException('non-nullable customer_user_id cannot be null');
}
if ((mb_strlen($customer_user_id) > 256)) {
throw new \InvalidArgumentException('invalid length for $customer_user_id when calling WorkflowRunBuilder., must be smaller than or equal to 256.');
}

$this->container['customer_user_id'] = $customer_user_id;

return $this;
}

/**
* Gets link
*
Expand Down
Loading

0 comments on commit 6c6f09b

Please sign in to comment.