Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ To install the bindings via [Composer](https://getcomposer.org/), add the follow
```json
{
"require": {
"dropbox/sign": "^1.12.0"
"dropbox/sign": "^1.13.0"
},
"minimum-stability": "dev"
}
Expand All @@ -64,7 +64,7 @@ Then run `composer install`
Alternatively, install directly with

```
composer require dropbox/sign:^1.12.0
composer require dropbox/sign:^1.13.0
```

## Getting Started
Expand Down Expand Up @@ -447,6 +447,6 @@ apisupport@hellosign.com
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: `3.0.0`
- Package version: `1.12.0`
- Package version: `1.13.0`
- Generator version: `7.12.0`
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.12.0
1.13.0
1 change: 1 addition & 0 deletions docs/Model/TemplateResponseDocumentFormFieldDropdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
| `type`<sup>*_required_</sup> | ```string``` | The type of this form field. See [field types](/api/reference/constants/#field-types).<br><br>* Text Field uses `TemplateResponseDocumentFormFieldText`<br>* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`<br>* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`<br>* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`<br>* Radio Field uses `TemplateResponseDocumentFormFieldRadio`<br>* Signature Field uses `TemplateResponseDocumentFormFieldSignature`<br>* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`<br>* Initials Field uses `TemplateResponseDocumentFormFieldInitials` | [default to 'dropdown'] |
| `group` | ```string``` | The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. | |
| `options` | ```string[]``` | The options available for this dropdown form field. | |

[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md)
4 changes: 2 additions & 2 deletions openapi-config.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
generatorName: php
additionalProperties:
packageName: dropbox/sign
packageVersion: "^1.12.0"
artifactVersion: 1.12.0
packageVersion: "^1.13.0"
artifactVersion: 1.13.0
invokerPackage: "Dropbox\\Sign"
sortModelPropertiesByRequiredFlag: true
srcBasePath: src
Expand Down
5 changes: 5 additions & 0 deletions openapi-sdk.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13104,6 +13104,11 @@ components:
description: 'The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.'
type: string
nullable: true
options:
description: 'The options available for this dropdown form field.'
type: array
items:
type: string
type: object
TemplateResponseDocumentFormFieldHyperlink:
description: 'This class extends `TemplateResponseDocumentFormFieldBase`'
Expand Down
4 changes: 2 additions & 2 deletions src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/1.12.0/PHP';
protected $userAgent = 'OpenAPI-Generator/1.13.0/PHP';

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

return $report;
Expand Down
34 changes: 34 additions & 0 deletions src/Model/TemplateResponseDocumentFormFieldDropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ class TemplateResponseDocumentFormFieldDropdown extends TemplateResponseDocument
protected static $openAPITypes = [
'type' => 'string',
'group' => 'string',
'options' => 'string[]',
];

/**
Expand All @@ -71,6 +72,7 @@ class TemplateResponseDocumentFormFieldDropdown extends TemplateResponseDocument
protected static $openAPIFormats = [
'type' => null,
'group' => null,
'options' => null,
];

/**
Expand All @@ -81,6 +83,7 @@ class TemplateResponseDocumentFormFieldDropdown extends TemplateResponseDocument
protected static array $openAPINullables = [
'type' => false,
'group' => true,
'options' => false,
];

/**
Expand Down Expand Up @@ -163,6 +166,7 @@ public function isNullableSetToNull(string $property): bool
protected static $attributeMap = [
'type' => 'type',
'group' => 'group',
'options' => 'options',
];

/**
Expand All @@ -173,6 +177,7 @@ public function isNullableSetToNull(string $property): bool
protected static $setters = [
'type' => 'setType',
'group' => 'setGroup',
'options' => 'setOptions',
];

/**
Expand All @@ -183,6 +188,7 @@ public function isNullableSetToNull(string $property): bool
protected static $getters = [
'type' => 'getType',
'group' => 'getGroup',
'options' => 'getOptions',
];

/**
Expand Down Expand Up @@ -238,6 +244,7 @@ public function __construct(?array $data = null)

$this->setIfExists('type', $data ?? [], 'dropdown');
$this->setIfExists('group', $data ?? [], null);
$this->setIfExists('options', $data ?? [], null);
}

/**
Expand Down Expand Up @@ -363,6 +370,33 @@ public function setGroup(?string $group)
return $this;
}

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

/**
* Sets options
*
* @param string[]|null $options the options available for this dropdown form field
*
* @return self
*/
public function setOptions(?array $options)
{
if (is_null($options)) {
throw new InvalidArgumentException('non-nullable options cannot be null');
}
$this->container['options'] = $options;

return $this;
}

/**
* Returns true if offset exists. False otherwise.
*
Expand Down
Loading