Skip to content

Commit

Permalink
Add missing privacy_notices_read_consent_given param (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: david.mealha <[email protected]>
  • Loading branch information
DavidMealha and DavidMealha-Onfido authored May 24, 2022
1 parent b268dfb commit c3b947b
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/Model/CheckRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**applicant_id** | **string** | The ID of the applicant to do the check on. | [optional]
**report_names** | **string[]** | An array of report names (strings). | [optional]
**privacy_notices_read_consent_given** | **bool** | Boolean to indicate that the privacy notices and terms of service have been read and, where specific laws require, that consent has been given for Onfido. | [optional]
**document_ids** | **string[]** | Optional. An array of document ids, for use with Document reports only. If omitted, the Document report will use the most recently uploaded document by default. | [optional]
**applicant_provides_data** | **bool** | Send an applicant form to applicant to complete to proceed with check. Defaults to false. | [optional]
**asynchronous** | **bool** | Defaults to &#x60;true&#x60;. If set to &#x60;false&#x60;, you will only receive a response when all reports in your check have completed. | [optional] [default to true]
Expand Down
1 change: 1 addition & 0 deletions docs/Model/CheckResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **string** | The unique identifier for the check. | [optional]
**created_at** | **\DateTime** | The date and time when this check was created. | [optional]
**privacy_notices_read_consent_given** | **bool** | Indicates that the privacy notices and terms of service have been read and, where specific laws require, that consent has been given for Onfido. This will be true if specified during check creation, otherwise it will be null. | [optional]
**webhook_ids** | **string[]** | An array of webhook ids describing which webhooks to trigger for this check. | [optional]
**href** | **string** | The uri of this resource. | [optional]
**applicant_provides_data** | **bool** | Send an applicant form to applicant to complete to proceed with check. Defaults to false. | [optional]
Expand Down
30 changes: 30 additions & 0 deletions lib/Model/CheckRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class CheckRequest implements ModelInterface, ArrayAccess, \JsonSerializable
protected static $openAPITypes = [
'applicant_id' => 'string',
'report_names' => 'string[]',
'privacy_notices_read_consent_given' => 'bool',
'document_ids' => 'string[]',
'applicant_provides_data' => 'bool',
'asynchronous' => 'bool',
Expand All @@ -82,6 +83,7 @@ class CheckRequest implements ModelInterface, ArrayAccess, \JsonSerializable
protected static $openAPIFormats = [
'applicant_id' => null,
'report_names' => null,
'privacy_notices_read_consent_given' => null,
'document_ids' => null,
'applicant_provides_data' => null,
'asynchronous' => null,
Expand Down Expand Up @@ -122,6 +124,7 @@ public static function openAPIFormats()
protected static $attributeMap = [
'applicant_id' => 'applicant_id',
'report_names' => 'report_names',
'privacy_notices_read_consent_given' => 'privacy_notices_read_consent_given',
'document_ids' => 'document_ids',
'applicant_provides_data' => 'applicant_provides_data',
'asynchronous' => 'asynchronous',
Expand All @@ -141,6 +144,7 @@ public static function openAPIFormats()
protected static $setters = [
'applicant_id' => 'setApplicantId',
'report_names' => 'setReportNames',
'privacy_notices_read_consent_given' => 'setPrivacyNoticesReadConsentGiven',
'document_ids' => 'setDocumentIds',
'applicant_provides_data' => 'setApplicantProvidesData',
'asynchronous' => 'setAsynchronous',
Expand All @@ -160,6 +164,7 @@ public static function openAPIFormats()
protected static $getters = [
'applicant_id' => 'getApplicantId',
'report_names' => 'getReportNames',
'privacy_notices_read_consent_given' => 'getPrivacyNoticesReadConsentGiven',
'document_ids' => 'getDocumentIds',
'applicant_provides_data' => 'getApplicantProvidesData',
'asynchronous' => 'getAsynchronous',
Expand Down Expand Up @@ -230,6 +235,7 @@ public function __construct(array $data = null)
{
$this->container['applicant_id'] = $data['applicant_id'] ?? null;
$this->container['report_names'] = $data['report_names'] ?? null;
$this->container['privacy_notices_read_consent_given'] = $data['privacy_notices_read_consent_given'] ?? null;
$this->container['document_ids'] = $data['document_ids'] ?? null;
$this->container['applicant_provides_data'] = $data['applicant_provides_data'] ?? null;
$this->container['asynchronous'] = $data['asynchronous'] ?? true;
Expand Down Expand Up @@ -313,6 +319,30 @@ public function setReportNames($report_names)
return $this;
}

/**
* Gets privacy_notices_read_consent_given
*
* @return bool|null
*/
public function getPrivacyNoticesReadConsentGiven()
{
return $this->container['privacy_notices_read_consent_given'];
}

/**
* Sets privacy_notices_read_consent_given
*
* @param bool|null $privacy_notices_read_consent_given Boolean to indicate that the privacy notices and terms of service have been read and, where specific laws require, that consent has been given for Onfido.
*
* @return self
*/
public function setPrivacyNoticesReadConsentGiven($privacy_notices_read_consent_given)
{
$this->container['privacy_notices_read_consent_given'] = $privacy_notices_read_consent_given;

return $this;
}

/**
* Gets document_ids
*
Expand Down
30 changes: 30 additions & 0 deletions lib/Model/CheckResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class CheckResponse implements ModelInterface, ArrayAccess, \JsonSerializable
protected static $openAPITypes = [
'id' => 'string',
'created_at' => '\DateTime',
'privacy_notices_read_consent_given' => 'bool',
'webhook_ids' => 'string[]',
'href' => 'string',
'applicant_provides_data' => 'bool',
Expand All @@ -85,6 +86,7 @@ class CheckResponse implements ModelInterface, ArrayAccess, \JsonSerializable
protected static $openAPIFormats = [
'id' => null,
'created_at' => 'date-time',
'privacy_notices_read_consent_given' => null,
'webhook_ids' => null,
'href' => null,
'applicant_provides_data' => null,
Expand Down Expand Up @@ -128,6 +130,7 @@ public static function openAPIFormats()
protected static $attributeMap = [
'id' => 'id',
'created_at' => 'created_at',
'privacy_notices_read_consent_given' => 'privacy_notices_read_consent_given',
'webhook_ids' => 'webhook_ids',
'href' => 'href',
'applicant_provides_data' => 'applicant_provides_data',
Expand All @@ -150,6 +153,7 @@ public static function openAPIFormats()
protected static $setters = [
'id' => 'setId',
'created_at' => 'setCreatedAt',
'privacy_notices_read_consent_given' => 'setPrivacyNoticesReadConsentGiven',
'webhook_ids' => 'setWebhookIds',
'href' => 'setHref',
'applicant_provides_data' => 'setApplicantProvidesData',
Expand All @@ -172,6 +176,7 @@ public static function openAPIFormats()
protected static $getters = [
'id' => 'getId',
'created_at' => 'getCreatedAt',
'privacy_notices_read_consent_given' => 'getPrivacyNoticesReadConsentGiven',
'webhook_ids' => 'getWebhookIds',
'href' => 'getHref',
'applicant_provides_data' => 'getApplicantProvidesData',
Expand Down Expand Up @@ -245,6 +250,7 @@ public function __construct(array $data = null)
{
$this->container['id'] = $data['id'] ?? null;
$this->container['created_at'] = $data['created_at'] ?? null;
$this->container['privacy_notices_read_consent_given'] = $data['privacy_notices_read_consent_given'] ?? null;
$this->container['webhook_ids'] = $data['webhook_ids'] ?? null;
$this->container['href'] = $data['href'] ?? null;
$this->container['applicant_provides_data'] = $data['applicant_provides_data'] ?? null;
Expand Down Expand Up @@ -331,6 +337,30 @@ public function setCreatedAt($created_at)
return $this;
}

/**
* Gets privacy_notices_read_consent_given
*
* @return bool|null
*/
public function getPrivacyNoticesReadConsentGiven()
{
return $this->container['privacy_notices_read_consent_given'];
}

/**
* Sets privacy_notices_read_consent_given
*
* @param bool|null $privacy_notices_read_consent_given Indicates that the privacy notices and terms of service have been read and, where specific laws require, that consent has been given for Onfido. This will be true if specified during check creation, otherwise it will be null.
*
* @return self
*/
public function setPrivacyNoticesReadConsentGiven($privacy_notices_read_consent_given)
{
$this->container['privacy_notices_read_consent_given'] = $privacy_notices_read_consent_given;

return $this;
}

/**
* Gets webhook_ids
*
Expand Down
9 changes: 9 additions & 0 deletions test/Model/CheckRequestTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ public function testPropertyReportNames()
$this->markTestIncomplete('Not implemented');
}

/**
* Test attribute "privacy_notices_read_consent_given"
*/
public function testPropertyPrivacyNoticesReadConsentGiven()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
}

/**
* Test attribute "document_ids"
*/
Expand Down
9 changes: 9 additions & 0 deletions test/Model/CheckResponseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ public function testPropertyCreatedAt()
$this->markTestIncomplete('Not implemented');
}

/**
* Test attribute "privacy_notices_read_consent_given"
*/
public function testPropertyPrivacyNoticesReadConsentGiven()
{
// TODO: implement
$this->markTestIncomplete('Not implemented');
}

/**
* Test attribute "webhook_ids"
*/
Expand Down

0 comments on commit c3b947b

Please sign in to comment.