Skip to content

Commit

Permalink
Merge pull request #76 from onfido/release-upgrade
Browse files Browse the repository at this point in the history
Refresh onfido-php after onfido-openapi-spec update (db5a1b5)
  • Loading branch information
dvacca-onfido authored Feb 20, 2025
2 parents bddef8f + 6ad0f03 commit 94ba1da
Show file tree
Hide file tree
Showing 302 changed files with 1,012 additions and 1,251 deletions.
3 changes: 3 additions & 0 deletions .markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"MD024": false
}
2 changes: 1 addition & 1 deletion .openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
7.9.0
7.11.0
6 changes: 3 additions & 3 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": "0eec622",
"long_sha": "0eec6225e66b9f905dac23fe4eb18a1584517f64",
"version": ""
"short_sha": "db5a1b5",
"long_sha": "db5a1b59681fa467b324b4116de24d88d56d7452",
"version": "v5.0.0"
},
"release": "v9.0.0"
}
42 changes: 38 additions & 4 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,41 @@
# Migration Guide

This guide provides detailed instructions on how to upgrade between different
major versions of the client library.

It covers changes in core resources, other endpoints, and the OpenAPI generator,
ensuring a smooth transition between versions.

## Upgrading from 8.x to 9.x

### Core Resources

- Documents
- Allow any string as `file_type`

### Other Endpoints

- Webhooks
- Drop `WORKFLOW_SIGNED_EVIDENCE_FILE_CREATED` enum value from `WebhookEventType`
enum
- Make `href` property in `WebhookEventPayloadObject` optional
- Reports
- Allow the deprecated `records` property in `WatchlistAml` and
`WatchlistStandard` reports to be any object, and not just a string
- Remove `documents` property (incl. `getDocuments()` accessors) from all
reports except Document and Facial Similarity reports

### OpenAPI generator

- Version upgraded from `7.9.0` to `7.11.0`

## Upgrading from 7.x to 8.x

### Core Resources

- Applicants
- Replace broken `ConsentsBuilder` object with a list of `ApplicantConsentBuilder` ones
- Replace broken `ConsentsBuilder` object with a list of `ApplicantConsentBuilder`
ones
- Workflow Runs
- Rename `WorkflowRunSharedLink` object into `WorkflowRunLink`
- Define `WorkflowRunStatus` enum for storing status information
Expand All @@ -22,9 +52,13 @@
- Checks
- Rename `Check::Status*` enum into `CheckStatus::*` for accessing checks status
- Reports
- Remove properties from `DeviceIntelligenceBreakdownPropertiesDevice` object: `true_os`, `os_anomaly`, `rooted` and `remote_software`
- Remove properties from `DeviceIntelligenceBreakdownPropertiesIp` object: `vpn_detection`, `proxy_detection` and `type`
- Deprecate `records` object from `WatchlistStandardProperties` and `WatchlistAmlProperties` objects (includes `WatchlistPepsOnly` and `WatchlistSanctionsOnly` ones)
- Remove properties from `DeviceIntelligenceBreakdownPropertiesDevice` object:
`true_os`, `os_anomaly`, `rooted` and `remote_software`
- Remove properties from `DeviceIntelligenceBreakdownPropertiesIp` object:
`vpn_detection`, `proxy_detection` and `type`
- Deprecate `records` object from `WatchlistStandardProperties` and
`WatchlistAmlProperties` objects (includes `WatchlistPepsOnly` and
`WatchlistSanctionsOnly` ones)

### OpenAPI generator

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ Except for accessing Task object's outputs, avoid using the square bracket synta

## Contributing

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.
This library is automatically generated using [OpenAPI Generator](https://openapi-generator.tech) (version: 7.11.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:

Expand Down
213 changes: 108 additions & 105 deletions lib/Api/DefaultApi.php

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/ApiException.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: v3.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.9.0
* Generator version: 7.11.0
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: v3.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.9.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -469,7 +469,7 @@ public function getHostSettings()
* @param array|null $variables hash of variable and the corresponding value (optional)
* @return string URL based on host settings
*/
public static function getHostString(array $hostSettings, $hostIndex, array $variables = null)
public static function getHostString(array $hostSettings, $hostIndex, ?array $variables = null)
{
if (null === $variables) {
$variables = [];
Expand Down
2 changes: 1 addition & 1 deletion lib/HeaderSelector.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: v3.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.9.0
* Generator version: 7.11.0
*/

/**
Expand Down
7 changes: 3 additions & 4 deletions lib/Model/Address.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: v3.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.9.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -305,10 +305,10 @@ public function getModelName()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('flat_number', $data ?? [], null);
$this->setIfExists('building_number', $data ?? [], null);
Expand Down Expand Up @@ -832,7 +832,6 @@ public function toHeaderValue()
{
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}

}


7 changes: 3 additions & 4 deletions lib/Model/AddressBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: v3.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.9.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -305,10 +305,10 @@ public function getModelName()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('flat_number', $data ?? [], null);
$this->setIfExists('building_number', $data ?? [], null);
Expand Down Expand Up @@ -832,7 +832,6 @@ public function toHeaderValue()
{
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}

}


7 changes: 3 additions & 4 deletions lib/Model/AddressShared.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: v3.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.9.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -305,10 +305,10 @@ public function getModelName()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('flat_number', $data ?? [], null);
$this->setIfExists('building_number', $data ?? [], null);
Expand Down Expand Up @@ -832,7 +832,6 @@ public function toHeaderValue()
{
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}

}


7 changes: 3 additions & 4 deletions lib/Model/AddressesList.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: v3.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.9.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -239,10 +239,10 @@ public function getModelName()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('addresses', $data ?? [], null);
}
Expand Down Expand Up @@ -404,7 +404,6 @@ public function toHeaderValue()
{
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}

}


7 changes: 3 additions & 4 deletions lib/Model/Applicant.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: v3.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.9.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -311,10 +311,10 @@ public function getModelName()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('email', $data ?? [], null);
$this->setIfExists('dob', $data ?? [], null);
Expand Down Expand Up @@ -833,7 +833,6 @@ public function toHeaderValue()
{
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}

}


7 changes: 3 additions & 4 deletions lib/Model/ApplicantBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: v3.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.9.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -287,10 +287,10 @@ public function getModelName()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('email', $data ?? [], null);
$this->setIfExists('dob', $data ?? [], null);
Expand Down Expand Up @@ -700,7 +700,6 @@ public function toHeaderValue()
{
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}

}


7 changes: 3 additions & 4 deletions lib/Model/ApplicantConsentBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: v3.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.9.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -245,10 +245,10 @@ public function getModelName()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('name', $data ?? [], null);
$this->setIfExists('granted', $data ?? [], null);
Expand Down Expand Up @@ -444,7 +444,6 @@ public function toHeaderValue()
{
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}

}


2 changes: 1 addition & 1 deletion lib/Model/ApplicantConsentName.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: v3.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.9.0
* Generator version: 7.11.0
*/

/**
Expand Down
7 changes: 3 additions & 4 deletions lib/Model/ApplicantCreate.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: v3.6
* Generated by: https://openapi-generator.tech
* Generator version: 7.9.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -245,10 +245,10 @@ public function getModelName()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('first_name', $data ?? [], null);
$this->setIfExists('last_name', $data ?? [], null);
Expand Down Expand Up @@ -462,7 +462,6 @@ public function toHeaderValue()
{
return json_encode(ObjectSerializer::sanitizeForSerialization($this));
}

}


Loading

0 comments on commit 94ba1da

Please sign in to comment.