Skip to content

Commit

Permalink
Add document_ids field (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaran16 authored Jun 25, 2020
1 parent bc3030f commit 07519ba
Show file tree
Hide file tree
Showing 6 changed files with 48 additions and 10 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ The Onfido API is used to submit check requests.
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 3.0.0
- Package version: 5.0.1
- Package version: 5.0.2
- Build package: org.openapitools.codegen.languages.PhpClientCodegen

## Requirements
Expand All @@ -25,7 +25,7 @@ To install the bindings via [Composer](http://getcomposer.org/), add the followi
}
],
"require": {
"onfido/api-php-client": "^5.0.1"
"onfido/api-php-client": "^5.0.2"
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "onfido/api-php-client",
"version": "5.0.1",
"version": "5.0.2",
"description": "The Onfido API is used to submit check requests.",
"keywords": [
"openapitools",
Expand Down
1 change: 1 addition & 0 deletions docs/Model/Check.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Name | Type | Description | Notes
**suppress_form_emails** | **bool** | For checks where `applicant_provides_data` is `true`, applicant form will not be automatically sent if `suppress_form_emails` is set to `true`. You can manually send the form at any time after the check has been created, using the link found in the form_uri attribute of the check object. Write-only. Defaults to false. | [optional]
**asynchronous** | **bool** | Defaults to `true`. Write-only. If set to `false`, you will only receive a response when all reports in your check have completed. | [optional]
**report_ids** | **string[]** | An array of report ids. | [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]

[[Back to Model list]](../../README.md#documentation-for-models) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to README]](../../README.md)

Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/5.0.1/PHP';
protected $userAgent = 'OpenAPI-Generator/5.0.2/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -397,7 +397,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: 3.0.0' . PHP_EOL;
$report .= ' SDK Package Version: 5.0.1' . PHP_EOL;
$report .= ' SDK Package Version: 5.0.2' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
40 changes: 35 additions & 5 deletions lib/Model/Check.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ class Check implements ModelInterface, ArrayAccess
'applicant_provides_data' => 'bool',
'suppress_form_emails' => 'bool',
'asynchronous' => 'bool',
'report_ids' => 'string[]'
'report_ids' => 'string[]',
'document_ids' => 'string[]'
];

/**
Expand All @@ -96,7 +97,8 @@ class Check implements ModelInterface, ArrayAccess
'applicant_provides_data' => null,
'suppress_form_emails' => null,
'asynchronous' => null,
'report_ids' => null
'report_ids' => null,
'document_ids' => null
];

/**
Expand Down Expand Up @@ -141,7 +143,8 @@ public static function openAPIFormats()
'applicant_provides_data' => 'applicant_provides_data',
'suppress_form_emails' => 'suppress_form_emails',
'asynchronous' => 'asynchronous',
'report_ids' => 'report_ids'
'report_ids' => 'report_ids',
'document_ids' => 'document_ids'
];

/**
Expand All @@ -165,7 +168,8 @@ public static function openAPIFormats()
'applicant_provides_data' => 'setApplicantProvidesData',
'suppress_form_emails' => 'setSuppressFormEmails',
'asynchronous' => 'setAsynchronous',
'report_ids' => 'setReportIds'
'report_ids' => 'setReportIds',
'document_ids' => 'setDocumentIds'
];

/**
Expand All @@ -189,7 +193,8 @@ public static function openAPIFormats()
'applicant_provides_data' => 'getApplicantProvidesData',
'suppress_form_emails' => 'getSuppressFormEmails',
'asynchronous' => 'getAsynchronous',
'report_ids' => 'getReportIds'
'report_ids' => 'getReportIds',
'document_ids' => 'getDocumentIds'
];

/**
Expand Down Expand Up @@ -268,6 +273,7 @@ public function __construct(array $data = null)
$this->container['suppress_form_emails'] = isset($data['suppress_form_emails']) ? $data['suppress_form_emails'] : null;
$this->container['asynchronous'] = isset($data['asynchronous']) ? $data['asynchronous'] : null;
$this->container['report_ids'] = isset($data['report_ids']) ? $data['report_ids'] : null;
$this->container['document_ids'] = isset($data['document_ids']) ? $data['document_ids'] : null;
}

/**
Expand Down Expand Up @@ -677,6 +683,30 @@ public function setReportIds($report_ids)

return $this;
}

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

/**
* Sets document_ids
*
* @param string[]|null $document_ids 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.
*
* @return $this
*/
public function setDocumentIds($document_ids)
{
$this->container['document_ids'] = $document_ids;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down
7 changes: 7 additions & 0 deletions test/Model/CheckTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,4 +189,11 @@ public function testPropertyAsynchronous()
public function testPropertyReportIds()
{
}

/**
* Test attribute "document_ids"
*/
public function testPropertyDocumentIds()
{
}
}

0 comments on commit 07519ba

Please sign in to comment.