diff --git a/README.md b/README.md index 48e6229..d37a6ca 100644 --- a/README.md +++ b/README.md @@ -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" } @@ -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 @@ -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` diff --git a/VERSION b/VERSION index 0eed1a2..feaae22 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.12.0 +1.13.0 diff --git a/docs/Model/TemplateResponseDocumentFormFieldDropdown.md b/docs/Model/TemplateResponseDocumentFormFieldDropdown.md index 35cadab..61b05ae 100644 --- a/docs/Model/TemplateResponseDocumentFormFieldDropdown.md +++ b/docs/Model/TemplateResponseDocumentFormFieldDropdown.md @@ -8,5 +8,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type`*_required_ | ```string``` | The type of this form field. See [field types](/api/reference/constants/#field-types).

* Text Field uses `TemplateResponseDocumentFormFieldText`
* Dropdown Field uses `TemplateResponseDocumentFormFieldDropdown`
* Hyperlink Field uses `TemplateResponseDocumentFormFieldHyperlink`
* Checkbox Field uses `TemplateResponseDocumentFormFieldCheckbox`
* Radio Field uses `TemplateResponseDocumentFormFieldRadio`
* Signature Field uses `TemplateResponseDocumentFormFieldSignature`
* Date Signed Field uses `TemplateResponseDocumentFormFieldDateSigned`
* 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) diff --git a/openapi-config.yaml b/openapi-config.yaml index 99e8223..a934e6e 100644 --- a/openapi-config.yaml +++ b/openapi-config.yaml @@ -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 diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index ac9e788..576b442 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -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`' diff --git a/src/Configuration.php b/src/Configuration.php index 7ec1396..1073adc 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -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) @@ -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; diff --git a/src/Model/TemplateResponseDocumentFormFieldDropdown.php b/src/Model/TemplateResponseDocumentFormFieldDropdown.php index 9760912..f4b334a 100644 --- a/src/Model/TemplateResponseDocumentFormFieldDropdown.php +++ b/src/Model/TemplateResponseDocumentFormFieldDropdown.php @@ -59,6 +59,7 @@ class TemplateResponseDocumentFormFieldDropdown extends TemplateResponseDocument protected static $openAPITypes = [ 'type' => 'string', 'group' => 'string', + 'options' => 'string[]', ]; /** @@ -71,6 +72,7 @@ class TemplateResponseDocumentFormFieldDropdown extends TemplateResponseDocument protected static $openAPIFormats = [ 'type' => null, 'group' => null, + 'options' => null, ]; /** @@ -81,6 +83,7 @@ class TemplateResponseDocumentFormFieldDropdown extends TemplateResponseDocument protected static array $openAPINullables = [ 'type' => false, 'group' => true, + 'options' => false, ]; /** @@ -163,6 +166,7 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'type' => 'type', 'group' => 'group', + 'options' => 'options', ]; /** @@ -173,6 +177,7 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'type' => 'setType', 'group' => 'setGroup', + 'options' => 'setOptions', ]; /** @@ -183,6 +188,7 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'type' => 'getType', 'group' => 'getGroup', + 'options' => 'getOptions', ]; /** @@ -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); } /** @@ -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. *