Skip to content

Commit

Permalink
Updated on 2020-09-24 01:01:57. Version: 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Sep 23, 2020
1 parent 14f04c0 commit 6a4e43c
Show file tree
Hide file tree
Showing 9 changed files with 128 additions and 10 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.2.1 [September 24, 2020]

- Fixed the "include_data=true" option for the "Get Submission" API endpoint. Added the "data" property to the Submission model so that this is parsed and returned correctly when requested

### 1.2.0 [September 21, 2020]

- Renamed some internal models for template creation API endpoints. (CreateTemplateData / CreateTemplateData1 renamed to CreateHtmlTemplateData and CreateTemplateFromUploadData)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DocSpring is a service that helps you fill out and sign PDF templates.
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: v1
- Package version: 1.2.0
- Package version: 1.2.1
- Build package: com.docspring.codegen.DocSpringPhpClientCodegen

## Requirements
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": "docspring/docspring",
"version": "1.2.0",
"version": "1.2.1",
"description": "",
"keywords": [
"openapitools",
Expand Down
2 changes: 1 addition & 1 deletion docs/Api/PDFApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,7 @@ $apiInstance = new DocSpring\Api\PDFApi(
$config
);
$submission_id = sub_000000000000000001; // string |
$include_data = false; // bool |
$include_data = true; // bool |

try {
$result = $apiInstance->getSubmission($submission_id, $include_data);
Expand Down
3 changes: 3 additions & 0 deletions docs/Model/Submission.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Name | Type | Description | Notes
**expires_at** | **string** | | [optional]
**processed_at** | **string** | | [optional]
**state** | **string** | |
**data** | **object** | | [optional]
**metadata** | **object** | | [optional]
**truncated_text** | **object** | | [optional]
**pdf_hash** | **string** | | [optional]
Expand All @@ -19,6 +20,8 @@ Name | Type | Description | Notes
**batch_id** | **string** | | [optional]
**data_requests** | [**\DocSpring\Model\SubmissionDataRequest[]**](SubmissionDataRequest.md) | | [optional]
**actions** | [**\DocSpring\Model\SubmissionAction[]**](SubmissionAction.md) | | [optional]
**source** | **string** | | [optional]
**referrer** | **string** | | [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
2 changes: 1 addition & 1 deletion lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' OpenAPI Spec Version: v1' . PHP_EOL;
$report .= ' SDK Package Version: 1.2.0' . PHP_EOL;
$report .= ' SDK Package Version: 1.2.1' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down
100 changes: 95 additions & 5 deletions lib/Model/Submission.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,17 @@ class Submission implements ModelInterface, ArrayAccess
'expires_at' => 'string',
'processed_at' => 'string',
'state' => 'string',
'data' => 'object',
'metadata' => 'object',
'truncated_text' => 'object',
'pdf_hash' => 'string',
'download_url' => 'string',
'permanent_download_url' => 'string',
'batch_id' => 'string',
'data_requests' => '\DocSpring\Model\SubmissionDataRequest[]',
'actions' => '\DocSpring\Model\SubmissionAction[]'
'actions' => '\DocSpring\Model\SubmissionAction[]',
'source' => 'string',
'referrer' => 'string'
];

/**
Expand All @@ -89,14 +92,17 @@ class Submission implements ModelInterface, ArrayAccess
'expires_at' => null,
'processed_at' => null,
'state' => null,
'data' => null,
'metadata' => null,
'truncated_text' => null,
'pdf_hash' => null,
'download_url' => null,
'permanent_download_url' => null,
'batch_id' => null,
'data_requests' => null,
'actions' => null
'actions' => null,
'source' => null,
'referrer' => null
];

/**
Expand Down Expand Up @@ -134,14 +140,17 @@ public static function openAPIFormats()
'expires_at' => 'expires_at',
'processed_at' => 'processed_at',
'state' => 'state',
'data' => 'data',
'metadata' => 'metadata',
'truncated_text' => 'truncated_text',
'pdf_hash' => 'pdf_hash',
'download_url' => 'download_url',
'permanent_download_url' => 'permanent_download_url',
'batch_id' => 'batch_id',
'data_requests' => 'data_requests',
'actions' => 'actions'
'actions' => 'actions',
'source' => 'source',
'referrer' => 'referrer'
];

/**
Expand All @@ -158,14 +167,17 @@ public static function openAPIFormats()
'expires_at' => 'setExpiresAt',
'processed_at' => 'setProcessedAt',
'state' => 'setState',
'data' => 'setData',
'metadata' => 'setMetadata',
'truncated_text' => 'setTruncatedText',
'pdf_hash' => 'setPdfHash',
'download_url' => 'setDownloadUrl',
'permanent_download_url' => 'setPermanentDownloadUrl',
'batch_id' => 'setBatchId',
'data_requests' => 'setDataRequests',
'actions' => 'setActions'
'actions' => 'setActions',
'source' => 'setSource',
'referrer' => 'setReferrer'
];

/**
Expand All @@ -182,14 +194,17 @@ public static function openAPIFormats()
'expires_at' => 'getExpiresAt',
'processed_at' => 'getProcessedAt',
'state' => 'getState',
'data' => 'getData',
'metadata' => 'getMetadata',
'truncated_text' => 'getTruncatedText',
'pdf_hash' => 'getPdfHash',
'download_url' => 'getDownloadUrl',
'permanent_download_url' => 'getPermanentDownloadUrl',
'batch_id' => 'getBatchId',
'data_requests' => 'getDataRequests',
'actions' => 'getActions'
'actions' => 'getActions',
'source' => 'getSource',
'referrer' => 'getReferrer'
];

/**
Expand Down Expand Up @@ -293,6 +308,7 @@ public function __construct(array $data = null)
$this->container['expires_at'] = isset($data['expires_at']) ? $data['expires_at'] : null;
$this->container['processed_at'] = isset($data['processed_at']) ? $data['processed_at'] : null;
$this->container['state'] = isset($data['state']) ? $data['state'] : null;
$this->container['data'] = isset($data['data']) ? $data['data'] : null;
$this->container['metadata'] = isset($data['metadata']) ? $data['metadata'] : null;
$this->container['truncated_text'] = isset($data['truncated_text']) ? $data['truncated_text'] : null;
$this->container['pdf_hash'] = isset($data['pdf_hash']) ? $data['pdf_hash'] : null;
Expand All @@ -301,6 +317,8 @@ public function __construct(array $data = null)
$this->container['batch_id'] = isset($data['batch_id']) ? $data['batch_id'] : null;
$this->container['data_requests'] = isset($data['data_requests']) ? $data['data_requests'] : null;
$this->container['actions'] = isset($data['actions']) ? $data['actions'] : null;
$this->container['source'] = isset($data['source']) ? $data['source'] : null;
$this->container['referrer'] = isset($data['referrer']) ? $data['referrer'] : null;
}

/**
Expand Down Expand Up @@ -548,6 +566,30 @@ public function setState($state)
return $this;
}

/**
* Gets data
*
* @return object|null
*/
public function getData()
{
return $this->container['data'];
}

/**
* Sets data
*
* @param object|null $data data
*
* @return $this
*/
public function setData($data)
{
$this->container['data'] = $data;

return $this;
}

/**
* Gets metadata
*
Expand Down Expand Up @@ -739,6 +781,54 @@ public function setActions($actions)

return $this;
}

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

/**
* Sets source
*
* @param string|null $source source
*
* @return $this
*/
public function setSource($source)
{
$this->container['source'] = $source;

return $this;
}

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

/**
* Sets referrer
*
* @param string|null $referrer referrer
*
* @return $this
*/
public function setReferrer($referrer)
{
$this->container['referrer'] = $referrer;

return $this;
}
/**
* Returns true if offset exists. False otherwise.
*
Expand Down
2 changes: 1 addition & 1 deletion test/Api/PDFApiTest.php.original
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class PDFApiTest extends \PHPUnit_Framework_TestCase
public function testGetSubmission()
{
$submission_id = sub_000000000000000001; // string |
$include_data = false; // bool |
$include_data = true; // bool |
$result = $apiInstance->getSubmission($submission_id, $include_data);
}

Expand Down
21 changes: 21 additions & 0 deletions test/Model/SubmissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,13 @@ public function testPropertyState()
{
}

/**
* Test attribute "data"
*/
public function testPropertyData()
{
}

/**
* Test attribute "metadata"
*/
Expand Down Expand Up @@ -187,4 +194,18 @@ public function testPropertyDataRequests()
public function testPropertyActions()
{
}

/**
* Test attribute "source"
*/
public function testPropertySource()
{
}

/**
* Test attribute "referrer"
*/
public function testPropertyReferrer()
{
}
}

0 comments on commit 6a4e43c

Please sign in to comment.