diff --git a/openapi-fern.yaml b/openapi-fern.yaml index 7ca8f36cc..3eb4a5986 100644 --- a/openapi-fern.yaml +++ b/openapi-fern.yaml @@ -28363,6 +28363,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/openapi-raw.yaml b/openapi-raw.yaml index 2b401a8c8..4a5769db1 100644 --- a/openapi-raw.yaml +++ b/openapi-raw.yaml @@ -12664,6 +12664,11 @@ components: description: '_t__TemplateResponseDocumentFormField::GROUP' type: string nullable: true + options: + description: '_t__TemplateResponseDocumentFormField::OPTIONS' + type: array + items: + type: string type: object TemplateResponseDocumentFormFieldHyperlink: description: '_t__TemplateResponseDocumentFormField::DESCRIPTION_EXTENDS' diff --git a/openapi-sdk.yaml b/openapi-sdk.yaml index 72b323aeb..c7f08a119 100644 --- a/openapi-sdk.yaml +++ b/openapi-sdk.yaml @@ -13106,6 +13106,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/openapi.yaml b/openapi.yaml index b9ac61877..7d7de1641 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -13092,6 +13092,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/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDropdown.md b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDropdown.md index 62b9123c6..d374b05c8 100644 --- a/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDropdown.md +++ b/sdks/dotnet/docs/TemplateResponseDocumentFormFieldDropdown.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **Width** | **int** | The width in pixels of this form field. | [optional] **Height** | **int** | The height in pixels of this form field. | [optional] **Required** | **bool** | Boolean showing whether or not this field is required. | [optional] -**Type** | **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. | [optional] +**Type** | **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. | [optional] **Options** | **List<string>** | The options available for this dropdown form field. | [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) diff --git a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs index b1670234d..0e84b5464 100644 --- a/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs +++ b/sdks/dotnet/src/Dropbox.Sign/Model/TemplateResponseDocumentFormFieldDropdown.cs @@ -43,6 +43,7 @@ protected TemplateResponseDocumentFormFieldDropdown() { } /// /// 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` (required) (default to "dropdown"). /// The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields.. + /// The options available for this dropdown form field.. /// A unique id for the form field.. /// The name of the form field.. /// The signer of the Form Field.. @@ -51,7 +52,7 @@ protected TemplateResponseDocumentFormFieldDropdown() { } /// The width in pixels of this form field.. /// The height in pixels of this form field.. /// Boolean showing whether or not this field is required.. - public TemplateResponseDocumentFormFieldDropdown(string type = @"dropdown", string group = default(string), string apiId = default(string), string name = default(string), Object signer = null, int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool)) + public TemplateResponseDocumentFormFieldDropdown(string type = @"dropdown", string group = default(string), List options = default(List), string apiId = default(string), string name = default(string), Object signer = null, int x = default(int), int y = default(int), int width = default(int), int height = default(int), bool required = default(bool)) { this.ApiId = apiId; this.Name = name; @@ -69,6 +70,7 @@ protected TemplateResponseDocumentFormFieldDropdown() { } } this.Type = type; this.Group = group; + this.Options = options; } /// @@ -101,6 +103,13 @@ public static TemplateResponseDocumentFormFieldDropdown Init(string jsonData) [DataMember(Name = "group", EmitDefaultValue = true)] public string Group { get; set; } + /// + /// The options available for this dropdown form field. + /// + /// The options available for this dropdown form field. + [DataMember(Name = "options", EmitDefaultValue = true)] + public List Options { get; set; } + /// /// Returns the string presentation of the object /// @@ -112,6 +121,7 @@ public override string ToString() sb.Append(" ").Append(base.ToString().Replace("\n", "\n ")).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Group: ").Append(Group).Append("\n"); + sb.Append(" Options: ").Append(Options).Append("\n"); sb.Append("}\n"); return sb.ToString(); } @@ -156,6 +166,12 @@ public bool Equals(TemplateResponseDocumentFormFieldDropdown input) this.Group == input.Group || (this.Group != null && this.Group.Equals(input.Group)) + ) && base.Equals(input) && + ( + this.Options == input.Options || + this.Options != null && + input.Options != null && + this.Options.SequenceEqual(input.Options) ); } @@ -176,6 +192,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Group.GetHashCode(); } + if (this.Options != null) + { + hashCode = (hashCode * 59) + this.Options.GetHashCode(); + } return hashCode; } } @@ -220,6 +240,13 @@ public List GetOpenApiTypes() Type = "string", Value = Group, }); + types.Add(new OpenApiType() + { + Name = "options", + Property = "Options", + Type = "List", + Value = Options, + }); return types; } diff --git a/sdks/java-v1/docs/TemplateResponseDocumentFormFieldDropdown.md b/sdks/java-v1/docs/TemplateResponseDocumentFormFieldDropdown.md index 70e5da455..9d975d4c1 100644 --- a/sdks/java-v1/docs/TemplateResponseDocumentFormFieldDropdown.md +++ b/sdks/java-v1/docs/TemplateResponseDocumentFormFieldDropdown.md @@ -10,6 +10,7 @@ This class extends `TemplateResponseDocumentFormFieldBase` |------------ | ------------- | ------------- | -------------| | `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` | | | `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` | ```List``` | The options available for this dropdown form field. | | diff --git a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java index 109b3413f..86de698c7 100644 --- a/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java +++ b/sdks/java-v1/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java @@ -20,14 +20,17 @@ import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.databind.ObjectMapper; +import java.util.ArrayList; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.Objects; /** This class extends `TemplateResponseDocumentFormFieldBase` */ @JsonPropertyOrder({ TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_TYPE, - TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_GROUP + TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_GROUP, + TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_OPTIONS }) @javax.annotation.Generated( value = "org.openapitools.codegen.languages.JavaClientCodegen", @@ -48,6 +51,9 @@ public class TemplateResponseDocumentFormFieldDropdown public static final String JSON_PROPERTY_GROUP = "group"; @javax.annotation.Nullable private String group; + public static final String JSON_PROPERTY_OPTIONS = "options"; + @javax.annotation.Nullable private List options = null; + public TemplateResponseDocumentFormFieldDropdown() {} /** @@ -122,6 +128,37 @@ public void setGroup(@javax.annotation.Nullable String group) { this.group = group; } + public TemplateResponseDocumentFormFieldDropdown options( + @javax.annotation.Nullable List options) { + this.options = options; + return this; + } + + public TemplateResponseDocumentFormFieldDropdown addOptionsItem(String optionsItem) { + if (this.options == null) { + this.options = new ArrayList<>(); + } + this.options.add(optionsItem); + return this; + } + + /** + * The options available for this dropdown form field. + * + * @return options + */ + @javax.annotation.Nullable @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getOptions() { + return options; + } + + @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOptions(@javax.annotation.Nullable List options) { + this.options = options; + } + /** Return true if this TemplateResponseDocumentFormFieldDropdown object is equal to o. */ @Override public boolean equals(Object o) { @@ -135,12 +172,13 @@ public boolean equals(Object o) { (TemplateResponseDocumentFormFieldDropdown) o; return Objects.equals(this.type, templateResponseDocumentFormFieldDropdown.type) && Objects.equals(this.group, templateResponseDocumentFormFieldDropdown.group) + && Objects.equals(this.options, templateResponseDocumentFormFieldDropdown.options) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, group, super.hashCode()); + return Objects.hash(type, group, options, super.hashCode()); } @Override @@ -150,6 +188,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); + sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append("}"); return sb.toString(); } @@ -195,6 +234,24 @@ public Map createFormData() throws ApiException { map.put("group", JSON.getDefault().getMapper().writeValueAsString(group)); } } + if (options != null) { + if (isFileTypeOrListOfFiles(options)) { + fileTypeFound = true; + } + + if (options.getClass().equals(java.io.File.class) + || options.getClass().equals(Integer.class) + || options.getClass().equals(String.class) + || options.getClass().isEnum()) { + map.put("options", options); + } else if (isListOfFile(options)) { + for (int i = 0; i < getListSize(options); i++) { + map.put("options[" + i + "]", getFromList(options, i)); + } + } else { + map.put("options", JSON.getDefault().getMapper().writeValueAsString(options)); + } + } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/java-v2/docs/TemplateResponseDocumentFormFieldDropdown.md b/sdks/java-v2/docs/TemplateResponseDocumentFormFieldDropdown.md index 70e5da455..9d975d4c1 100644 --- a/sdks/java-v2/docs/TemplateResponseDocumentFormFieldDropdown.md +++ b/sdks/java-v2/docs/TemplateResponseDocumentFormFieldDropdown.md @@ -10,6 +10,7 @@ This class extends `TemplateResponseDocumentFormFieldBase` |------------ | ------------- | ------------- | -------------| | `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` | | | `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` | ```List``` | The options available for this dropdown form field. | | diff --git a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java index 951081dcf..f02ea38e3 100644 --- a/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java +++ b/sdks/java-v2/src/main/java/com/dropbox/sign/model/TemplateResponseDocumentFormFieldDropdown.java @@ -25,7 +25,9 @@ import com.fasterxml.jackson.annotation.JsonTypeInfo; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.dropbox.sign.JSON; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -38,7 +40,8 @@ */ @JsonPropertyOrder({ TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_TYPE, - TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_GROUP + TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_GROUP, + TemplateResponseDocumentFormFieldDropdown.JSON_PROPERTY_OPTIONS }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.12.0") @JsonIgnoreProperties( @@ -56,6 +59,10 @@ public class TemplateResponseDocumentFormFieldDropdown extends TemplateResponseD @jakarta.annotation.Nullable private String group; + public static final String JSON_PROPERTY_OPTIONS = "options"; + @jakarta.annotation.Nullable + private List options = null; + public TemplateResponseDocumentFormFieldDropdown() { } @@ -124,6 +131,39 @@ public void setGroup(@jakarta.annotation.Nullable String group) { } + public TemplateResponseDocumentFormFieldDropdown options(@jakarta.annotation.Nullable List options) { + this.options = options; + return this; + } + + public TemplateResponseDocumentFormFieldDropdown addOptionsItem(String optionsItem) { + if (this.options == null) { + this.options = new ArrayList<>(); + } + this.options.add(optionsItem); + return this; + } + + /** + * The options available for this dropdown form field. + * @return options + */ + @jakarta.annotation.Nullable + @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getOptions() { + return options; + } + + + @JsonProperty(JSON_PROPERTY_OPTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOptions(@jakarta.annotation.Nullable List options) { + this.options = options; + } + + /** * Return true if this TemplateResponseDocumentFormFieldDropdown object is equal to o. */ @@ -138,12 +178,13 @@ public boolean equals(Object o) { TemplateResponseDocumentFormFieldDropdown templateResponseDocumentFormFieldDropdown = (TemplateResponseDocumentFormFieldDropdown) o; return Objects.equals(this.type, templateResponseDocumentFormFieldDropdown.type) && Objects.equals(this.group, templateResponseDocumentFormFieldDropdown.group) && + Objects.equals(this.options, templateResponseDocumentFormFieldDropdown.options) && super.equals(o); } @Override public int hashCode() { - return Objects.hash(type, group, super.hashCode()); + return Objects.hash(type, group, options, super.hashCode()); } @Override @@ -153,6 +194,7 @@ public String toString() { sb.append(" ").append(toIndentedString(super.toString())).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" group: ").append(toIndentedString(group)).append("\n"); + sb.append(" options: ").append(toIndentedString(options)).append("\n"); sb.append("}"); return sb.toString(); } @@ -200,6 +242,25 @@ public Map createFormData() throws ApiException { map.put("group", JSON.getDefault().getMapper().writeValueAsString(group)); } } + if (options != null) { + if (isFileTypeOrListOfFiles(options)) { + fileTypeFound = true; + } + + if (options.getClass().equals(java.io.File.class) || + options.getClass().equals(Integer.class) || + options.getClass().equals(String.class) || + options.getClass().isEnum()) { + map.put("options", options); + } else if (isListOfFile(options)) { + for(int i = 0; i< getListSize(options); i++) { + map.put("options[" + i + "]", getFromList(options, i)); + } + } + else { + map.put("options", JSON.getDefault().getMapper().writeValueAsString(options)); + } + } } catch (Exception e) { throw new ApiException(e); } diff --git a/sdks/node/dist/api.js b/sdks/node/dist/api.js index a1419df7a..180301fe1 100644 --- a/sdks/node/dist/api.js +++ b/sdks/node/dist/api.js @@ -25195,6 +25195,11 @@ var TemplateResponseDocumentFormFieldDropdown = class _TemplateResponseDocumentF name: "group", baseName: "group", type: "string" + }, + { + name: "options", + baseName: "options", + type: "Array" } ]; } diff --git a/sdks/node/docs/model/TemplateResponseDocumentFormFieldDropdown.md b/sdks/node/docs/model/TemplateResponseDocumentFormFieldDropdown.md index 35cadabb5..24cfdbaad 100644 --- a/sdks/node/docs/model/TemplateResponseDocumentFormFieldDropdown.md +++ b/sdks/node/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` | ```Array``` | 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/sdks/node/model/templateResponseDocumentFormFieldDropdown.ts b/sdks/node/model/templateResponseDocumentFormFieldDropdown.ts index 0aeb3e4e0..4a7101988 100644 --- a/sdks/node/model/templateResponseDocumentFormFieldDropdown.ts +++ b/sdks/node/model/templateResponseDocumentFormFieldDropdown.ts @@ -37,6 +37,10 @@ export class TemplateResponseDocumentFormFieldDropdown extends TemplateResponseD * The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. */ "group"?: string | null; + /** + * The options available for this dropdown form field. + */ + "options"?: Array; static discriminator: string | undefined = undefined; @@ -51,6 +55,11 @@ export class TemplateResponseDocumentFormFieldDropdown extends TemplateResponseD baseName: "group", type: "string", }, + { + name: "options", + baseName: "options", + type: "Array", + }, ]; static getAttributeTypeMap(): AttributeTypeMap { diff --git a/sdks/node/types/model/templateResponseDocumentFormFieldDropdown.d.ts b/sdks/node/types/model/templateResponseDocumentFormFieldDropdown.d.ts index b9f96a26f..e125b2eea 100644 --- a/sdks/node/types/model/templateResponseDocumentFormFieldDropdown.d.ts +++ b/sdks/node/types/model/templateResponseDocumentFormFieldDropdown.d.ts @@ -3,6 +3,7 @@ import { TemplateResponseDocumentFormFieldBase } from "./templateResponseDocumen export declare class TemplateResponseDocumentFormFieldDropdown extends TemplateResponseDocumentFormFieldBase { "type": string; "group"?: string | null; + "options"?: Array; static discriminator: string | undefined; static attributeTypeMap: AttributeTypeMap; static getAttributeTypeMap(): AttributeTypeMap; diff --git a/sdks/php/docs/Model/TemplateResponseDocumentFormFieldDropdown.md b/sdks/php/docs/Model/TemplateResponseDocumentFormFieldDropdown.md index 35cadabb5..61b05aed0 100644 --- a/sdks/php/docs/Model/TemplateResponseDocumentFormFieldDropdown.md +++ b/sdks/php/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/sdks/php/src/Model/TemplateResponseDocumentFormFieldDropdown.php b/sdks/php/src/Model/TemplateResponseDocumentFormFieldDropdown.php index 97609128b..f4b334aba 100644 --- a/sdks/php/src/Model/TemplateResponseDocumentFormFieldDropdown.php +++ b/sdks/php/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. * diff --git a/sdks/python/docs/TemplateResponseDocumentFormFieldDropdown.md b/sdks/python/docs/TemplateResponseDocumentFormFieldDropdown.md index 2a472ec24..fa04c6e6a 100644 --- a/sdks/python/docs/TemplateResponseDocumentFormFieldDropdown.md +++ b/sdks/python/docs/TemplateResponseDocumentFormFieldDropdown.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- | `type`*_required_ | ```str``` | 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` | ```str``` | 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` | ```List[str]``` | The options available for this dropdown form field. | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/sdks/python/dropbox_sign/models/template_response_document_form_field_dropdown.py b/sdks/python/dropbox_sign/models/template_response_document_form_field_dropdown.py index 2b30ae4c5..808f449b0 100644 --- a/sdks/python/dropbox_sign/models/template_response_document_form_field_dropdown.py +++ b/sdks/python/dropbox_sign/models/template_response_document_form_field_dropdown.py @@ -42,6 +42,9 @@ class TemplateResponseDocumentFormFieldDropdown(TemplateResponseDocumentFormFiel default=None, 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.", ) + options: Optional[List[StrictStr]] = Field( + default=None, description="The options available for this dropdown form field." + ) __properties: ClassVar[List[str]] = [ "type", "api_id", @@ -53,6 +56,7 @@ class TemplateResponseDocumentFormFieldDropdown(TemplateResponseDocumentFormFiel "height", "required", "group", + "options", ] model_config = ConfigDict( @@ -128,6 +132,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: "height": obj.get("height"), "required": obj.get("required"), "group": obj.get("group"), + "options": obj.get("options"), } ) return _obj @@ -147,6 +152,7 @@ def openapi_types(cls) -> Dict[str, str]: return { "type": "(str,)", "group": "(str,)", + "options": "(List[str],)", "api_id": "(str,)", "name": "(str,)", "signer": "(int, str,)", @@ -159,4 +165,6 @@ def openapi_types(cls) -> Dict[str, str]: @classmethod def openapi_type_is_array(cls, property_name: str) -> bool: - return property_name in [] + return property_name in [ + "options", + ] diff --git a/sdks/ruby/docs/TemplateResponseDocumentFormFieldDropdown.md b/sdks/ruby/docs/TemplateResponseDocumentFormFieldDropdown.md index b224d1011..377386ff1 100644 --- a/sdks/ruby/docs/TemplateResponseDocumentFormFieldDropdown.md +++ b/sdks/ruby/docs/TemplateResponseDocumentFormFieldDropdown.md @@ -8,4 +8,5 @@ This class extends `TemplateResponseDocumentFormFieldBase` | ---- | ---- | ----------- | ----- | | `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` | ```Array``` | The options available for this dropdown form field. | | diff --git a/sdks/ruby/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb b/sdks/ruby/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb index 3d6e664e9..18bc6f9da 100644 --- a/sdks/ruby/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb +++ b/sdks/ruby/lib/dropbox-sign/models/template_response_document_form_field_dropdown.rb @@ -27,11 +27,16 @@ class TemplateResponseDocumentFormFieldDropdown < TemplateResponseDocumentFormFi # @return [String, nil] attr_accessor :group + # The options available for this dropdown form field. + # @return [Array] + attr_accessor :options + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'type' => :'type', - :'group' => :'group' + :'group' => :'group', + :'options' => :'options' } end @@ -49,14 +54,15 @@ def self.acceptable_attributes def self.openapi_types { :'type' => :'String', - :'group' => :'String' + :'group' => :'String', + :'options' => :'Array' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'group' + :'group', ]) end @@ -113,6 +119,12 @@ def initialize(attributes = {}) if attributes.key?(:'group') self.group = attributes[:'group'] end + + if attributes.key?(:'options') + if (value = attributes[:'options']).is_a?(Array) + self.options = value + end + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -149,7 +161,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && type == o.type && - group == o.group && super(o) + group == o.group && + options == o.options && super(o) end # @see the `==` method @@ -161,7 +174,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [type, group].hash + [type, group, options].hash end # Builds the object from hash diff --git a/translations/en.yaml b/translations/en.yaml index c35b7c60b..37b5aa480 100644 --- a/translations/en.yaml +++ b/translations/en.yaml @@ -1748,6 +1748,7 @@ "TemplateResponseDocumentFormField::DESCRIPTION_EXTENDS": This class extends `TemplateResponseDocumentFormFieldBase` "TemplateResponseDocumentFormField::API_ID": A unique id for the form field. "TemplateResponseDocumentFormField::GROUP": The name of the group this field is in. If this field is not a group, this defaults to `null` except for Radio fields. +"TemplateResponseDocumentFormField::OPTIONS": The options available for this dropdown form field. "TemplateResponseDocumentFormField::HEIGHT": The height in pixels of this form field. "TemplateResponseDocumentFormField::NAME": The name of the form field. "TemplateResponseDocumentFormField::REQUIRED": Boolean showing whether or not this field is required.