diff --git a/.release.json b/.release.json index 23ed768..da62521 100644 --- a/.release.json +++ b/.release.json @@ -1,9 +1,9 @@ { "source": { "repo_url": "https://github.com/onfido/onfido-openapi-spec", - "short_sha": "54ce45f", - "long_sha": "54ce45f2138f044cc5cb40f6904dc7bc1a675be6", - "version": "v4.5.0" + "short_sha": "7887fd6", + "long_sha": "7887fd62b32910e929d833c45f4393468e181a89", + "version": "v4.6.0" }, - "release": "v8.5.0" + "release": "v8.6.0" } diff --git a/README.md b/README.md index 69f0036..abef853 100644 --- a/README.md +++ b/README.md @@ -10,8 +10,7 @@ This version uses Onfido API v3.6. Refer to our [API versioning guide](https://d ### Requirements -PHP 7.4 and later. -Should also work with PHP 8.0. +PHP 7.4 and later. Should also work with PHP 8.0. [![Latest release](https://badge.fury.io/ph/onfido%2Fonfido-php.svg)](https://badge.fury.io/ph/onfido%2Fonfido-php) ![Build Status](https://github.com/onfido/onfido-php/actions/workflows/php.yml/badge.svg) @@ -49,7 +48,7 @@ require_once('/path/to/OpenAPIClient-php/vendor/autoload.php'); ## Getting Started -Please follow the [installation procedure](#installation--usage) and then run the following: +Please follow the [installation instructions](#installation--usage) and then run the following: ```php setApiToken($_ENV['ONFIDO_API_TOKEN']); -$configuration->setRegion(Onfido\Region::EU); // Supports `EU`, `US` and `CA` +$configuration->setRegion(Onfido\Region::EU); // Supports `Region::EU`, `Region::US`, and `Region::CA` $onfidoApi = new Onfido\Api\DefaultApi( new \GuzzleHttp\Client([ @@ -93,7 +92,7 @@ try { ### Webhook event verification -Webhook events payload needs to be verified before it can be accessed. Library allows to easily decode the payload and verify its signature before returning it as an object for user convenience: +Webhook events payload needs to be verified before it can be accessed. The library allows easy decoding of the payload and verification of its signature before returning it as an object for user convenience: ```php try { @@ -111,41 +110,43 @@ try { #### Do not use square bracket syntax -Except for accessing Task object's outputs, retain from using the square bracket syntax (i.e. `[]`) to access not defined properties to avoid breaking changes when these fields will appear. +Except for accessing Task object's outputs, avoid using the square bracket syntax (i.e. `[]`) to access undefined properties to prevent breaking changes when these fields appear. ## Contributing -This library is automatically generated using [OpenAPI Generator](https://openapi-generator.tech) (version: 7.9.0); therefore all the contributions, except tests files, should target [Onfido OpenAPI specification repository](https://github.com/onfido/onfido-openapi-spec/tree/master) instead of this repository. +This library is automatically generated using [OpenAPI Generator](https://openapi-generator.tech) (version: 7.9.0); therefore, all contributions (except test files) should target the [Onfido OpenAPI specification repository](https://github.com/onfido/onfido-openapi-spec/tree/master) instead of this repository. Please follow the contribution guidelines provided in the OpenAPI specification repository. For contributions to the tests instead, please follow the steps below: -1. [Fork](https://github.com/onfido/onfido-php/fork) repository +1. Fork the [repository](https://github.com/onfido/onfido-php/fork) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Make your changes -4. Commit your changes (`git commit -am 'Add some feature'`) +4. Commit your changes (`git commit -am 'Add detailed description of the feature'`) 5. Push to the branch (`git push origin my-new-feature`) 6. Create a new Pull Request ## Versioning policy -[Semantic Versioning](https://semver.org) policy is used for library versioning, following guidelines and limitations below: +Versioning helps manage changes and ensures compatibility across different versions of the library. -- MAJOR versions (x.0.0) might: +[Semantic Versioning](https://semver.org) policy is used for library versioning, following the guidelines and limitations outlined below: + +- MAJOR versions (x.0.0) may: - target a new API version - include non-backward compatible change -- MINOR versions (0.x.0) might: +- MINOR versions (0.x.0) may: - add a new functionality, non-mandatory parameter or property - deprecate an old functionality - include non-backward compatible change to a functionality which is: - labelled as alpha or beta - completely broken and not usable -- PATCH version (0.0.x) might: +- PATCH version (0.0.x) will: - fix a bug - include backward compatible changes only ## More documentation -More documentation and code examples can be found at . +Additional documentation and code examples can be found at . ## Support diff --git a/composer.json b/composer.json index 419d2c9..05a8a8b 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "onfido/onfido-php", - "version": "8.5.0", + "version": "8.6.0", "description": "The Onfido API (v3.6)", "keywords": [ "openapitools", diff --git a/composer.lock b/composer.lock index 91d683d..a3b1a65 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "902ccc0c901360feaf96721a6d554ff2", + "content-hash": "50d3dedfd3be193a4b48aaebc8f64636", "packages": [ { "name": "guzzlehttp/guzzle", diff --git a/lib/Configuration.php b/lib/Configuration.php index 8817cf3..19b355c 100644 --- a/lib/Configuration.php +++ b/lib/Configuration.php @@ -87,7 +87,7 @@ class Configuration * * @var string */ - protected $userAgent = 'onfido-php/8.5.0'; + protected $userAgent = 'onfido-php/8.6.0'; /** * Debug switch (default set to false) @@ -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.5.0' . PHP_EOL; + $report .= ' SDK Package Version: 8.6.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/lib/Model/IdNumber.php b/lib/Model/IdNumber.php index fc6a812..d0aaeae 100644 --- a/lib/Model/IdNumber.php +++ b/lib/Model/IdNumber.php @@ -244,6 +244,7 @@ public function getModelName() public const TYPE_SOCIAL_INSURANCE = 'social_insurance'; public const TYPE_TAX_ID = 'tax_id'; public const TYPE_IDENTITY_CARD = 'identity_card'; + public const TYPE_DRIVING_LICENSE = 'driving_license'; public const TYPE_DRIVING_LICENCE = 'driving_licence'; public const TYPE_SHARE_CODE = 'share_code'; public const TYPE_VOTER_ID = 'voter_id'; @@ -263,6 +264,7 @@ public function getTypeAllowableValues() self::TYPE_SOCIAL_INSURANCE, self::TYPE_TAX_ID, self::TYPE_IDENTITY_CARD, + self::TYPE_DRIVING_LICENSE, self::TYPE_DRIVING_LICENCE, self::TYPE_SHARE_CODE, self::TYPE_VOTER_ID,