Skip to content

Commit

Permalink
Merge pull request #57 from onfido/release-upgrade
Browse files Browse the repository at this point in the history
Refresh onfido-php after onfido-openapi-spec update (40b86a1)
  • Loading branch information
dvacca-onfido authored Jul 17, 2024
2 parents 740dc25 + 1b9a0b2 commit 61a7728
Show file tree
Hide file tree
Showing 12 changed files with 636 additions and 80 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": "01ed1b5",
"long_sha": "01ed1b5fe0f7490bfce54816504a9fec13b33862",
"version": "v3.1.0"
"short_sha": "40b86a1",
"long_sha": "40b86a1c8ec8687c15514470f60428b3e7633968",
"version": "v3.2.0"
},
"release": "v7.1.0"
"release": "v7.2.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": "7.1.0",
"version": "7.2.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.

372 changes: 372 additions & 0 deletions lib/Api/DefaultApi.php

Large diffs are not rendered by default.

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

return $report;
Expand Down
2 changes: 2 additions & 0 deletions lib/Model/Document.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ public function getModelName()
}

public const FILE_TYPE_JPG = 'jpg';
public const FILE_TYPE_JPEG = 'jpeg';
public const FILE_TYPE_PNG = 'png';
public const FILE_TYPE_PDF = 'pdf';
public const FILE_TYPE_UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api';
Expand All @@ -305,6 +306,7 @@ public function getFileTypeAllowableValues()
{
return [
self::FILE_TYPE_JPG,
self::FILE_TYPE_JPEG,
self::FILE_TYPE_PNG,
self::FILE_TYPE_PDF,
self::FILE_TYPE_UNKNOWN_DEFAULT_OPEN_API,
Expand Down
102 changes: 68 additions & 34 deletions lib/Model/DocumentProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,10 @@ class DocumentProperties implements ModelInterface, ArrayAccess, \JsonSerializab
'document_numbers' => '\Onfido\Model\DocumentPropertiesDocumentNumbersInner[]',
'document_type' => 'string',
'first_name' => 'string',
'middle_name' => 'string',
'last_name' => 'string',
'gender' => 'string',
'issuing_country' => 'string',
'last_name' => 'string',
'nationality' => 'string',
'issuing_state' => 'string',
'issuing_date' => '\DateTime',
Expand Down Expand Up @@ -117,9 +118,10 @@ class DocumentProperties implements ModelInterface, ArrayAccess, \JsonSerializab
'document_numbers' => null,
'document_type' => null,
'first_name' => null,
'middle_name' => null,
'last_name' => null,
'gender' => null,
'issuing_country' => null,
'last_name' => null,
'nationality' => null,
'issuing_state' => null,
'issuing_date' => 'date',
Expand Down Expand Up @@ -169,9 +171,10 @@ class DocumentProperties implements ModelInterface, ArrayAccess, \JsonSerializab
'document_numbers' => false,
'document_type' => false,
'first_name' => false,
'middle_name' => false,
'last_name' => false,
'gender' => false,
'issuing_country' => false,
'last_name' => false,
'nationality' => false,
'issuing_state' => false,
'issuing_date' => false,
Expand Down Expand Up @@ -301,9 +304,10 @@ public function isNullableSetToNull(string $property): bool
'document_numbers' => 'document_numbers',
'document_type' => 'document_type',
'first_name' => 'first_name',
'middle_name' => 'middle_name',
'last_name' => 'last_name',
'gender' => 'gender',
'issuing_country' => 'issuing_country',
'last_name' => 'last_name',
'nationality' => 'nationality',
'issuing_state' => 'issuing_state',
'issuing_date' => 'issuing_date',
Expand Down Expand Up @@ -353,9 +357,10 @@ public function isNullableSetToNull(string $property): bool
'document_numbers' => 'setDocumentNumbers',
'document_type' => 'setDocumentType',
'first_name' => 'setFirstName',
'middle_name' => 'setMiddleName',
'last_name' => 'setLastName',
'gender' => 'setGender',
'issuing_country' => 'setIssuingCountry',
'last_name' => 'setLastName',
'nationality' => 'setNationality',
'issuing_state' => 'setIssuingState',
'issuing_date' => 'setIssuingDate',
Expand Down Expand Up @@ -405,9 +410,10 @@ public function isNullableSetToNull(string $property): bool
'document_numbers' => 'getDocumentNumbers',
'document_type' => 'getDocumentType',
'first_name' => 'getFirstName',
'middle_name' => 'getMiddleName',
'last_name' => 'getLastName',
'gender' => 'getGender',
'issuing_country' => 'getIssuingCountry',
'last_name' => 'getLastName',
'nationality' => 'getNationality',
'issuing_state' => 'getIssuingState',
'issuing_date' => 'getIssuingDate',
Expand Down Expand Up @@ -577,9 +583,10 @@ public function __construct(array $data = null)
$this->setIfExists('document_numbers', $data ?? [], null);
$this->setIfExists('document_type', $data ?? [], null);
$this->setIfExists('first_name', $data ?? [], null);
$this->setIfExists('middle_name', $data ?? [], null);
$this->setIfExists('last_name', $data ?? [], null);
$this->setIfExists('gender', $data ?? [], null);
$this->setIfExists('issuing_country', $data ?? [], null);
$this->setIfExists('last_name', $data ?? [], null);
$this->setIfExists('nationality', $data ?? [], null);
$this->setIfExists('issuing_state', $data ?? [], null);
$this->setIfExists('issuing_date', $data ?? [], null);
Expand Down Expand Up @@ -849,82 +856,109 @@ public function setFirstName($first_name)
}

/**
* Gets gender
* Gets middle_name
*
* @return string|null
*/
public function getGender()
public function getMiddleName()
{
return $this->container['gender'];
return $this->container['middle_name'];
}

/**
* Sets gender
* Sets middle_name
*
* @param string|null $gender gender
* @param string|null $middle_name middle_name
*
* @return self
*/
public function setGender($gender)
public function setMiddleName($middle_name)
{
if (is_null($gender)) {
throw new \InvalidArgumentException('non-nullable gender cannot be null');
if (is_null($middle_name)) {
throw new \InvalidArgumentException('non-nullable middle_name cannot be null');
}
$this->container['gender'] = $gender;
$this->container['middle_name'] = $middle_name;

return $this;
}

/**
* Gets issuing_country
* Gets last_name
*
* @return string|null
*/
public function getIssuingCountry()
public function getLastName()
{
return $this->container['issuing_country'];
return $this->container['last_name'];
}

/**
* Sets issuing_country
* Sets last_name
*
* @param string|null $issuing_country issuing_country
* @param string|null $last_name last_name
*
* @return self
*/
public function setIssuingCountry($issuing_country)
public function setLastName($last_name)
{
if (is_null($issuing_country)) {
throw new \InvalidArgumentException('non-nullable issuing_country cannot be null');
if (is_null($last_name)) {
throw new \InvalidArgumentException('non-nullable last_name cannot be null');
}
$this->container['issuing_country'] = $issuing_country;
$this->container['last_name'] = $last_name;

return $this;
}

/**
* Gets last_name
* Gets gender
*
* @return string|null
*/
public function getLastName()
public function getGender()
{
return $this->container['last_name'];
return $this->container['gender'];
}

/**
* Sets last_name
* Sets gender
*
* @param string|null $last_name last_name
* @param string|null $gender gender
*
* @return self
*/
public function setLastName($last_name)
public function setGender($gender)
{
if (is_null($last_name)) {
throw new \InvalidArgumentException('non-nullable last_name cannot be null');
if (is_null($gender)) {
throw new \InvalidArgumentException('non-nullable gender cannot be null');
}
$this->container['last_name'] = $last_name;
$this->container['gender'] = $gender;

return $this;
}

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

/**
* Sets issuing_country
*
* @param string|null $issuing_country issuing_country
*
* @return self
*/
public function setIssuingCountry($issuing_country)
{
if (is_null($issuing_country)) {
throw new \InvalidArgumentException('non-nullable issuing_country cannot be null');
}
$this->container['issuing_country'] = $issuing_country;

return $this;
}
Expand Down
2 changes: 2 additions & 0 deletions lib/Model/DocumentShared.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ public function getModelName()
}

public const FILE_TYPE_JPG = 'jpg';
public const FILE_TYPE_JPEG = 'jpeg';
public const FILE_TYPE_PNG = 'png';
public const FILE_TYPE_PDF = 'pdf';
public const FILE_TYPE_UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api';
Expand All @@ -269,6 +270,7 @@ public function getFileTypeAllowableValues()
{
return [
self::FILE_TYPE_JPG,
self::FILE_TYPE_JPEG,
self::FILE_TYPE_PNG,
self::FILE_TYPE_PDF,
self::FILE_TYPE_UNKNOWN_DEFAULT_OPEN_API,
Expand Down
Loading

0 comments on commit 61a7728

Please sign in to comment.