Skip to content

Commit

Permalink
Updated on 2022-12-01 15:48:49. Version: 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ndbroadbent committed Dec 1, 2022
1 parent 45a62e7 commit 2f12cea
Show file tree
Hide file tree
Showing 21 changed files with 169 additions and 52 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# ref: https://github.com/github/gitignore/blob/master/Composer.gitignore

composer.phar
/vendor/
vendor
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,8 @@ Class | Method | HTTP request | Description
- [Error](docs/Model/Error.md)
- [Folder](docs/Model/Folder.md)
- [FoldersFolder](docs/Model/FoldersFolder.md)
- [FullTemplate](docs/Model/FullTemplate.md)
- [FullTemplateDefaults](docs/Model/FullTemplateDefaults.md)
- [HtmlTemplateData](docs/Model/HtmlTemplateData.md)
- [InvalidRequest](docs/Model/InvalidRequest.md)
- [ListSubmissionsResponse](docs/Model/ListSubmissionsResponse.md)
Expand All @@ -165,8 +167,6 @@ Class | Method | HTTP request | Description
- [SubmissionDataBatchRequest](docs/Model/SubmissionDataBatchRequest.md)
- [SubmissionDataRequest](docs/Model/SubmissionDataRequest.md)
- [Template](docs/Model/Template.md)
- [Template1](docs/Model/Template1.md)
- [Template1Defaults](docs/Model/Template1Defaults.md)
- [TemplateData](docs/Model/TemplateData.md)
- [TemplatestemplateIdaddFieldsFields](docs/Model/TemplatestemplateIdaddFieldsFields.md)
- [UpdateDataRequestResponse](docs/Model/UpdateDataRequestResponse.md)
Expand Down
4 changes: 2 additions & 2 deletions docs/Api/PDFApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1025,7 +1025,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../../README.md#documentation-for-api-endpoints) [[Back to Model list]](../../README.md#documentation-for-models) [[Back to README]](../../README.md)

# **getFullTemplate**
> \DocSpring\Model\Template1 getFullTemplate($template_id)
> \DocSpring\Model\FullTemplate getFullTemplate($template_id)
Fetch the full template attributes

Expand Down Expand Up @@ -1065,7 +1065,7 @@ Name | Type | Description | Notes

### Return type

[**\DocSpring\Model\Template1**](../Model/Template1.md)
[**\DocSpring\Model\FullTemplate**](../Model/FullTemplate.md)

### Authorization

Expand Down
4 changes: 2 additions & 2 deletions docs/Model/Template1.md → docs/Model/FullTemplate.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Template1
# FullTemplate

## Properties
Name | Type | Description | Notes
Expand Down Expand Up @@ -32,7 +32,7 @@ Name | Type | Description | Notes
**shared_field_data** | **object** | | [optional]
**document_md5** | **string** | | [optional]
**first_template** | **bool** | | [optional]
**defaults** | [**\DocSpring\Model\Template1Defaults**](Template1Defaults.md) | | [optional]
**defaults** | [**\DocSpring\Model\FullTemplateDefaults**](FullTemplateDefaults.md) | | [optional]
**editable_submissions** | **bool** | | [optional]
**expire_submissions** | **bool** | | [optional]
**name** | **string** | | [optional]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Template1Defaults
# FullTemplateDefaults

## Properties
Name | Type | Description | Notes
Expand Down
1 change: 1 addition & 0 deletions docs/Model/SubmissionData.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Name | Type | Description | Notes
**css** | **string** | | [optional]
**data** | **object** | |
**data_requests** | [**\DocSpring\Model\CreateSubmissionDataRequestData[]**](CreateSubmissionDataRequestData.md) | | [optional]
**expires_in** | **int** | | [optional]
**field_overrides** | **object** | | [optional]
**html** | **string** | | [optional]
**metadata** | **object** | | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/Model/SubmissionDataRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**id** | **string** | |
**submission_id** | **string** | | [optional]
**name** | **string** | |
**email** | **string** | |
**order** | **int** | |
Expand Down
1 change: 1 addition & 0 deletions docs/Model/TemplatestemplateIdaddFieldsFields.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ Name | Type | Description | Notes
**qrcode_color_field_required** | **bool** | | [optional]
**currency** | **bool** | | [optional]
**false_text** | **string** | | [optional]
**placeholder** | **string** | | [optional]
**strikethrough** | **bool** | | [optional]
**character_spacing** | **float** | | [optional]
**number_condition_range_max** | **float** | | [optional]
Expand Down
14 changes: 7 additions & 7 deletions lib/Api/PDFApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -5866,7 +5866,7 @@ protected function getDataRequestRequest($data_request_id)
*
* @throws \DocSpring\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return \DocSpring\Model\Template1|\DocSpring\Model\AuthenticationError|\DocSpring\Model\Error
* @return \DocSpring\Model\FullTemplate|\DocSpring\Model\AuthenticationError|\DocSpring\Model\Error
*/
public function getFullTemplate($template_id)
{
Expand All @@ -5883,7 +5883,7 @@ public function getFullTemplate($template_id)
*
* @throws \DocSpring\ApiException on non-2xx response
* @throws \InvalidArgumentException
* @return array of \DocSpring\Model\Template1|\DocSpring\Model\AuthenticationError|\DocSpring\Model\Error, HTTP status code, HTTP response headers (array of strings)
* @return array of \DocSpring\Model\FullTemplate|\DocSpring\Model\AuthenticationError|\DocSpring\Model\Error, HTTP status code, HTTP response headers (array of strings)
*/
public function getFullTemplateWithHttpInfo($template_id)
{
Expand Down Expand Up @@ -5920,14 +5920,14 @@ public function getFullTemplateWithHttpInfo($template_id)
$responseBody = $response->getBody();
switch($statusCode) {
case 200:
if ('\DocSpring\Model\Template1' === '\SplFileObject') {
if ('\DocSpring\Model\FullTemplate' === '\SplFileObject') {
$content = $responseBody; //stream goes to serializer
} else {
$content = $responseBody->getContents();
}

return [
ObjectSerializer::deserialize($content, '\DocSpring\Model\Template1', []),
ObjectSerializer::deserialize($content, '\DocSpring\Model\FullTemplate', []),
$response->getStatusCode(),
$response->getHeaders()
];
Expand Down Expand Up @@ -5957,7 +5957,7 @@ public function getFullTemplateWithHttpInfo($template_id)
];
}

$returnType = '\DocSpring\Model\Template1';
$returnType = '\DocSpring\Model\FullTemplate';
$responseBody = $response->getBody();
if ($returnType === '\SplFileObject') {
$content = $responseBody; //stream goes to serializer
Expand All @@ -5976,7 +5976,7 @@ public function getFullTemplateWithHttpInfo($template_id)
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\DocSpring\Model\Template1',
'\DocSpring\Model\FullTemplate',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
Expand Down Expand Up @@ -6034,7 +6034,7 @@ function ($response) {
*/
public function getFullTemplateAsyncWithHttpInfo($template_id)
{
$returnType = '\DocSpring\Model\Template1';
$returnType = '\DocSpring\Model\FullTemplate';
$request = $this->getFullTemplateRequest($template_id);

return $this->client
Expand Down
14 changes: 7 additions & 7 deletions lib/Model/Template1.php → lib/Model/FullTemplate.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Template1
* FullTemplate
*
* PHP version 5
*
Expand Down Expand Up @@ -33,14 +33,14 @@
use \DocSpring\ObjectSerializer;

/**
* Template1 Class Doc Comment
* FullTemplate Class Doc Comment
*
* @category Class
* @package DocSpring
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Template1 implements ModelInterface, ArrayAccess
class FullTemplate implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;

Expand All @@ -49,7 +49,7 @@ class Template1 implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $openAPIModelName = 'template_1';
protected static $openAPIModelName = 'full_template';

/**
* Array of property to type mappings. Used for (de)serialization
Expand Down Expand Up @@ -86,7 +86,7 @@ class Template1 implements ModelInterface, ArrayAccess
'shared_field_data' => 'object',
'document_md5' => 'string',
'first_template' => 'bool',
'defaults' => '\DocSpring\Model\Template1Defaults',
'defaults' => '\DocSpring\Model\FullTemplateDefaults',
'editable_submissions' => 'bool',
'expire_submissions' => 'bool',
'name' => 'string',
Expand Down Expand Up @@ -1165,7 +1165,7 @@ public function setFirstTemplate($first_template)
/**
* Gets defaults
*
* @return \DocSpring\Model\Template1Defaults|null
* @return \DocSpring\Model\FullTemplateDefaults|null
*/
public function getDefaults()
{
Expand All @@ -1175,7 +1175,7 @@ public function getDefaults()
/**
* Sets defaults
*
* @param \DocSpring\Model\Template1Defaults|null $defaults defaults
* @param \DocSpring\Model\FullTemplateDefaults|null $defaults defaults
*
* @return $this
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
/**
* Template1Defaults
* FullTemplateDefaults
*
* PHP version 5
*
Expand Down Expand Up @@ -33,14 +33,14 @@
use \DocSpring\ObjectSerializer;

/**
* Template1Defaults Class Doc Comment
* FullTemplateDefaults Class Doc Comment
*
* @category Class
* @package DocSpring
* @author OpenAPI Generator team
* @link https://openapi-generator.tech
*/
class Template1Defaults implements ModelInterface, ArrayAccess
class FullTemplateDefaults implements ModelInterface, ArrayAccess
{
const DISCRIMINATOR = null;

Expand All @@ -49,7 +49,7 @@ class Template1Defaults implements ModelInterface, ArrayAccess
*
* @var string
*/
protected static $openAPIModelName = 'template_1_defaults';
protected static $openAPIModelName = 'full_template_defaults';

/**
* Array of property to type mappings. Used for (de)serialization
Expand Down
30 changes: 30 additions & 0 deletions lib/Model/SubmissionData.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ class SubmissionData implements ModelInterface, ArrayAccess
'css' => 'string',
'data' => 'object',
'data_requests' => '\DocSpring\Model\CreateSubmissionDataRequestData[]',
'expires_in' => 'int',
'field_overrides' => 'object',
'html' => 'string',
'metadata' => 'object',
Expand All @@ -76,6 +77,7 @@ class SubmissionData implements ModelInterface, ArrayAccess
'css' => null,
'data' => null,
'data_requests' => null,
'expires_in' => null,
'field_overrides' => null,
'html' => null,
'metadata' => null,
Expand Down Expand Up @@ -113,6 +115,7 @@ public static function openAPIFormats()
'css' => 'css',
'data' => 'data',
'data_requests' => 'data_requests',
'expires_in' => 'expires_in',
'field_overrides' => 'field_overrides',
'html' => 'html',
'metadata' => 'metadata',
Expand All @@ -129,6 +132,7 @@ public static function openAPIFormats()
'css' => 'setCss',
'data' => 'setData',
'data_requests' => 'setDataRequests',
'expires_in' => 'setExpiresIn',
'field_overrides' => 'setFieldOverrides',
'html' => 'setHtml',
'metadata' => 'setMetadata',
Expand All @@ -145,6 +149,7 @@ public static function openAPIFormats()
'css' => 'getCss',
'data' => 'getData',
'data_requests' => 'getDataRequests',
'expires_in' => 'getExpiresIn',
'field_overrides' => 'getFieldOverrides',
'html' => 'getHtml',
'metadata' => 'getMetadata',
Expand Down Expand Up @@ -215,6 +220,7 @@ public function __construct(array $data = null)
$this->container['css'] = isset($data['css']) ? $data['css'] : null;
$this->container['data'] = isset($data['data']) ? $data['data'] : null;
$this->container['data_requests'] = isset($data['data_requests']) ? $data['data_requests'] : null;
$this->container['expires_in'] = isset($data['expires_in']) ? $data['expires_in'] : null;
$this->container['field_overrides'] = isset($data['field_overrides']) ? $data['field_overrides'] : null;
$this->container['html'] = isset($data['html']) ? $data['html'] : null;
$this->container['metadata'] = isset($data['metadata']) ? $data['metadata'] : null;
Expand Down Expand Up @@ -321,6 +327,30 @@ public function setDataRequests($data_requests)
return $this;
}

/**
* Gets expires_in
*
* @return int|null
*/
public function getExpiresIn()
{
return $this->container['expires_in'];
}

/**
* Sets expires_in
*
* @param int|null $expires_in expires_in
*
* @return $this
*/
public function setExpiresIn($expires_in)
{
$this->container['expires_in'] = $expires_in;

return $this;
}

/**
* Gets field_overrides
*
Expand Down
Loading

0 comments on commit 2f12cea

Please sign in to comment.