Skip to content

Commit

Permalink
Merge pull request #68 from onfido/release-upgrade
Browse files Browse the repository at this point in the history
Refresh onfido-php after onfido-openapi-spec update (c72181c)
  • Loading branch information
dvacca-onfido authored Nov 19, 2024
2 parents 80d8eef + c1800a6 commit 89847e7
Show file tree
Hide file tree
Showing 12 changed files with 1,757 additions and 14 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": "d180edd",
"long_sha": "d180eddd168dd95bf84bf7c8fe9f8c7e3c0c5494",
"version": "v4.1.0"
"short_sha": "c72181c",
"long_sha": "c72181cc5e450bf727fc5eae2639c58ba45831ac",
"version": "v4.2.0"
},
"release": "v8.1.0"
"release": "v8.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": "8.1.0",
"version": "8.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.

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

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

public const IDENTIFICATION_NUMBER_DOCUMENT = 'identification_number_document';

public const ADOPTION_CERTIFICATE = 'adoption_certificate';

public const BANK_BUILDING_SOCIETY_STATEMENT = 'bank_building_society_statement';

public const BANK_STATEMENT = 'bank_statement';

public const BENEFIT_LETTERS = 'benefit_letters';

public const CBT = 'cbt';

public const CERTIFICATE_OF_SPONSORSHIP = 'certificate_of_sponsorship';

public const CHARACTER_REFERENCE = 'character_reference';

public const CIVIL_PARTNERSHIP_CERTIFICATE = 'civil_partnership_certificate';

public const COUNCIL_TAX = 'council_tax';

public const CREDIT_CARD_STATEMENT = 'credit_card_statement';

public const DEED_POLL = 'deed_poll';

public const DIVORCE_ABSOLUTE_DECREE = 'divorce_absolute_decree';

public const EDUCATIONAL_STATEMENT = 'educational_statement';

public const ELECTRICITY_BILL = 'electricity_bill';

public const GAS_BILL = 'gas_bill';

public const GOVERNMENT_LETTER = 'government_letter';

public const INTERNET_BILL = 'internet_bill';

public const MARRIAGE_CERTIFICATE = 'marriage_certificate';

public const MOTORCYCLE_INSURANCE = 'motorcycle_insurance';

public const NATIONAL_INSURANCE_CARD = 'national_insurance_card';

public const NATURALISATION_CERTIFICATE = 'naturalisation_certificate';

public const NON_UK_DRIVING_LICENCE = 'non_uk_driving_licence';

public const P45_P60 = 'p45_p60';

public const PAYSLIP = 'payslip';

public const PHONE_BILL = 'phone_bill';

public const PROFESSIONAL_IDENTIFICATION_CARD = 'professional_identification_card';

public const RIGHT_TO_WORK_SHARE_CODE_RESULT = 'right_to_work_share_code_result';

public const STATEMENT_FACT = 'statement_fact';

public const T4_STUDENT_UNIVERSITY_TERM_DATES_EVIDENCE = 't4_student_university_term_dates_evidence';

public const UK_BIOMETRIC_RESIDENCE_PERMIT = 'uk_biometric_residence_permit';

public const UK_DRIVING_LICENCE = 'uk_driving_licence';

public const UNKNOWN = 'unknown';

public const UTILITY_BILL = 'utility_bill';

public const UTILITY_BILL_ELECTRIC = 'utility_bill_electric';

public const UTILITY_BILL_GAS = 'utility_bill_gas';

public const UTILITY_BILL_OTHER = 'utility_bill_other';

public const WATER_BILL = 'water_bill';

public const ADDRESS_CERTIFICATE = 'address_certificate';

public const GENERAL_LETTER = 'general_letter';

public const INSURANCE_STATEMENT = 'insurance_statement';

public const PENSION_PROPERTY_STATEMENT_LETTER = 'pension_property_statement_letter';

public const MORTGAGE_STATEMENT = 'mortgage_statement';

public const MOBILE_PHONE_BILL = 'mobile_phone_bill';

public const IDENTITY_DOCUMENT_WITH_ADDRESS = 'identity_document_with_address';

public const EXCHANGE_HOUSE_STATEMENT = 'exchange_house_statement';

public const ACCOMMODATION_TENANCY_CERTIFICATE = 'accommodation_tenancy_certificate';

public const UNKNOWN_DEFAULT_OPEN_API = 'unknown_default_open_api';

/**
Expand Down Expand Up @@ -141,6 +233,52 @@ public static function getAllowableEnumValues()
self::VEHICLE_REGISTRATION_CERTIFICATE,
self::FORM_FOR_AFFIXING_THE_VISA,
self::IDENTIFICATION_NUMBER_DOCUMENT,
self::ADOPTION_CERTIFICATE,
self::BANK_BUILDING_SOCIETY_STATEMENT,
self::BANK_STATEMENT,
self::BENEFIT_LETTERS,
self::CBT,
self::CERTIFICATE_OF_SPONSORSHIP,
self::CHARACTER_REFERENCE,
self::CIVIL_PARTNERSHIP_CERTIFICATE,
self::COUNCIL_TAX,
self::CREDIT_CARD_STATEMENT,
self::DEED_POLL,
self::DIVORCE_ABSOLUTE_DECREE,
self::EDUCATIONAL_STATEMENT,
self::ELECTRICITY_BILL,
self::GAS_BILL,
self::GOVERNMENT_LETTER,
self::INTERNET_BILL,
self::MARRIAGE_CERTIFICATE,
self::MOTORCYCLE_INSURANCE,
self::NATIONAL_INSURANCE_CARD,
self::NATURALISATION_CERTIFICATE,
self::NON_UK_DRIVING_LICENCE,
self::P45_P60,
self::PAYSLIP,
self::PHONE_BILL,
self::PROFESSIONAL_IDENTIFICATION_CARD,
self::RIGHT_TO_WORK_SHARE_CODE_RESULT,
self::STATEMENT_FACT,
self::T4_STUDENT_UNIVERSITY_TERM_DATES_EVIDENCE,
self::UK_BIOMETRIC_RESIDENCE_PERMIT,
self::UK_DRIVING_LICENCE,
self::UNKNOWN,
self::UTILITY_BILL,
self::UTILITY_BILL_ELECTRIC,
self::UTILITY_BILL_GAS,
self::UTILITY_BILL_OTHER,
self::WATER_BILL,
self::ADDRESS_CERTIFICATE,
self::GENERAL_LETTER,
self::INSURANCE_STATEMENT,
self::PENSION_PROPERTY_STATEMENT_LETTER,
self::MORTGAGE_STATEMENT,
self::MOBILE_PHONE_BILL,
self::IDENTITY_DOCUMENT_WITH_ADDRESS,
self::EXCHANGE_HOUSE_STATEMENT,
self::ACCOMMODATION_TENANCY_CERTIFICATE,
self::UNKNOWN_DEFAULT_OPEN_API
];
}
Expand Down
136 changes: 136 additions & 0 deletions lib/Model/FacialSimilarityMotionReport.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ class FacialSimilarityMotionReport implements ModelInterface, ArrayAccess, \Json
'check_id' => 'string',
'documents' => '\Onfido\Model\ReportDocument[]',
'name' => '\Onfido\Model\ReportName',
'live_photos' => '\Onfido\Model\FacialSimilarityReportMedia[]',
'live_videos' => '\Onfido\Model\FacialSimilarityReportMedia[]',
'motion_captures' => '\Onfido\Model\FacialSimilarityReportMedia[]',
'id_photos' => '\Onfido\Model\FacialSimilarityReportMedia[]',
'breakdown' => '\Onfido\Model\FacialSimilarityMotionBreakdown',
'properties' => '\Onfido\Model\FacialSimilarityMotionProperties'
];
Expand All @@ -87,6 +91,10 @@ class FacialSimilarityMotionReport implements ModelInterface, ArrayAccess, \Json
'check_id' => 'uuid',
'documents' => null,
'name' => null,
'live_photos' => null,
'live_videos' => null,
'motion_captures' => null,
'id_photos' => null,
'breakdown' => null,
'properties' => null
];
Expand All @@ -106,6 +114,10 @@ class FacialSimilarityMotionReport implements ModelInterface, ArrayAccess, \Json
'check_id' => false,
'documents' => false,
'name' => false,
'live_photos' => false,
'live_videos' => false,
'motion_captures' => false,
'id_photos' => false,
'breakdown' => false,
'properties' => false
];
Expand Down Expand Up @@ -205,6 +217,10 @@ public function isNullableSetToNull(string $property): bool
'check_id' => 'check_id',
'documents' => 'documents',
'name' => 'name',
'live_photos' => 'live_photos',
'live_videos' => 'live_videos',
'motion_captures' => 'motion_captures',
'id_photos' => 'id_photos',
'breakdown' => 'breakdown',
'properties' => 'properties'
];
Expand All @@ -224,6 +240,10 @@ public function isNullableSetToNull(string $property): bool
'check_id' => 'setCheckId',
'documents' => 'setDocuments',
'name' => 'setName',
'live_photos' => 'setLivePhotos',
'live_videos' => 'setLiveVideos',
'motion_captures' => 'setMotionCaptures',
'id_photos' => 'setIdPhotos',
'breakdown' => 'setBreakdown',
'properties' => 'setProperties'
];
Expand All @@ -243,6 +263,10 @@ public function isNullableSetToNull(string $property): bool
'check_id' => 'getCheckId',
'documents' => 'getDocuments',
'name' => 'getName',
'live_photos' => 'getLivePhotos',
'live_videos' => 'getLiveVideos',
'motion_captures' => 'getMotionCaptures',
'id_photos' => 'getIdPhotos',
'breakdown' => 'getBreakdown',
'properties' => 'getProperties'
];
Expand Down Expand Up @@ -313,6 +337,10 @@ public function __construct(array $data = null)
$this->setIfExists('check_id', $data ?? [], null);
$this->setIfExists('documents', $data ?? [], null);
$this->setIfExists('name', $data ?? [], null);
$this->setIfExists('live_photos', $data ?? [], null);
$this->setIfExists('live_videos', $data ?? [], null);
$this->setIfExists('motion_captures', $data ?? [], null);
$this->setIfExists('id_photos', $data ?? [], null);
$this->setIfExists('breakdown', $data ?? [], null);
$this->setIfExists('properties', $data ?? [], null);
}
Expand Down Expand Up @@ -608,6 +636,114 @@ public function setName($name)
return $this;
}

/**
* Gets live_photos
*
* @return \Onfido\Model\FacialSimilarityReportMedia[]|null
*/
public function getLivePhotos()
{
return $this->container['live_photos'];
}

/**
* Sets live_photos
*
* @param \Onfido\Model\FacialSimilarityReportMedia[]|null $live_photos Array of objects with live photo ids that were used in the Onfido engine.
*
* @return self
*/
public function setLivePhotos($live_photos)
{
if (is_null($live_photos)) {
throw new \InvalidArgumentException('non-nullable live_photos cannot be null');
}
$this->container['live_photos'] = $live_photos;

return $this;
}

/**
* Gets live_videos
*
* @return \Onfido\Model\FacialSimilarityReportMedia[]|null
*/
public function getLiveVideos()
{
return $this->container['live_videos'];
}

/**
* Sets live_videos
*
* @param \Onfido\Model\FacialSimilarityReportMedia[]|null $live_videos Array of objects with live video ids that were used in the Onfido engine.
*
* @return self
*/
public function setLiveVideos($live_videos)
{
if (is_null($live_videos)) {
throw new \InvalidArgumentException('non-nullable live_videos cannot be null');
}
$this->container['live_videos'] = $live_videos;

return $this;
}

/**
* Gets motion_captures
*
* @return \Onfido\Model\FacialSimilarityReportMedia[]|null
*/
public function getMotionCaptures()
{
return $this->container['motion_captures'];
}

/**
* Sets motion_captures
*
* @param \Onfido\Model\FacialSimilarityReportMedia[]|null $motion_captures Array of objects with motion capture ids that were used in the Onfido engine.
*
* @return self
*/
public function setMotionCaptures($motion_captures)
{
if (is_null($motion_captures)) {
throw new \InvalidArgumentException('non-nullable motion_captures cannot be null');
}
$this->container['motion_captures'] = $motion_captures;

return $this;
}

/**
* Gets id_photos
*
* @return \Onfido\Model\FacialSimilarityReportMedia[]|null
*/
public function getIdPhotos()
{
return $this->container['id_photos'];
}

/**
* Sets id_photos
*
* @param \Onfido\Model\FacialSimilarityReportMedia[]|null $id_photos Array of objects with id photo ids that were used in the Onfido engine.
*
* @return self
*/
public function setIdPhotos($id_photos)
{
if (is_null($id_photos)) {
throw new \InvalidArgumentException('non-nullable id_photos cannot be null');
}
$this->container['id_photos'] = $id_photos;

return $this;
}

/**
* Gets breakdown
*
Expand Down
Loading

0 comments on commit 89847e7

Please sign in to comment.